2003-11-25 Michael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
78c63a3b
MS
12003-11-25 Michael Snyder <msnyder@redhat.com>
2
3 * mips-tdep.c (mips_o64_extract_return_value): Correct for
4 NUM_REGS (see changes 2003-06-21).
5 (mips_eabi_extract_return_value): Ditto.
6
aff6338a
AC
72003-11-25 Andrew Cagney <cagney@redhat.com>
8
9 * infrun.c: Don't include "exec.h".
10 (handle_inferior_event): Pass current_target, instead of exec_ops,
11 to SOLIB_ADD. Add comments.
12 * Makefile.in (infrun.o): Update dependencies.
13
9e08b29b
DJ
142003-11-24 Daniel Jacobowitz <drow@mvista.com>
15
16 * NEWS: Mention improved location expression support.
17
603942cc
AC
182003-11-23 Andrew Cagney <cagney@redhat.com>
19
20 * Makefile.in (infrun.o): Update dependencies.
21 * infrun.c: Include "exec.h".
22 (handle_inferior_event): Pass exec_ops to SOLIB_ADD.
23
66c57289
AC
242003-11-23 Andrew Cagney <cagney@redhat.com>
25
dd3ecc14
AC
26 * frame.c (frame_unwind_signed_register): Delete function.
27 * frame.h (frame_unwind_register_signed): Delete declaration.
28 * mips-tdep.c (mips_frame_saved_pc): Use frame_unwind_register_signed.
29
eec1a560
AC
30 * arch-utils.h (generic_cannot_extract_struct_value_address):
31 Delete declaration.
32
cb137aa5
AC
33 * defs.h (DEPRECATED_STREQN): Rename STREQN.
34 (DEPRECATED_STREQ): Rename STREQ.
35 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
36 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
37 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
38 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
39 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
40 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
41 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
42 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
43 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 44
cb137aa5 45 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
46 * elfread.c (elf_symtab_read): Delete STREQ from comment.
47
29dfb2ac
AC
482003-11-22 Andrew Cagney <cagney@redhat.com>
49
213cc0ad
AC
50 * frame.c (deprecated_frame_xmalloc): Delete function.
51 (deprecated_set_frame_extra_info_hack): Delete function.
52 (deprecated_set_frame_saved_regs_hack): Delete function.
53 * frame.h (deprecated_frame_xmalloc): Delete declaration.
54 (deprecated_set_frame_extra_info_hack): Delete declaration.
55 (deprecated_set_frame_saved_regs_hack): Delete declaration.
56 * mcore-tdep.c (analyze_dummy_frame): Instead of
57 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
58 and deprecated_set_frame_extra_info_hack use
59 deprecated_frame_xmalloc_with_cleanup.
60 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
61 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
62 deprecated_set_frame_saved_regs_hack.
63
35bb18ac
AC
64 * mips-tdep.c (mips_frame_chain): Delete call to
65 deprecated_inside_entry_file.
66
38a7ce4b
AC
67 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
68 (deprecated_set_frame_prev_hack): Delete declaration.
69 * frame.c (deprecated_set_frame_next_hack): Delete function.
70 (deprecated_set_frame_prev_hack): Delete function.
71 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
72 "deprecated_set_frame_next_hack" and
73 "deprecated_set_frame_prev_hack".
74 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
75
47ebcfbe
AC
76 * mips-tdep.c (mips_register_convertible): Delete function.
77 (mips_register_convert_to_virtual): Delete function.
78 (mips_register_convert_to_raw): Delete function.
79 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
80 "deprecated_register_convert_to_virtual", or
81 "deprecated_register_convert_to_raw".
82 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
83 32/64 cooked to raw register conversions.
84
2a9264f1 85 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 86 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
87 (struct frame_info): Delete member "context".
88 * frame.h (deprecated_get_frame_context): Delete declaration.
89 (deprecated_set_frame_context): Delete declaration.
90
7af6341f
AC
91 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
92 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
93 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
94 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
95
10a08821
AC
96 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
97 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
98 mips_regsize.
99 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
100 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
101 * config/mips/tm-irix5.h: Update copyright.
102 (SIGFRAME_REG_SIZE): Delete macro.
103
00d33403
AC
104 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
105 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
106 declaration.
107 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
108 * infcall.c (call_function_by_hand): Delete #ifdef
109 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
110 * infcmd.c (print_return_value): Ditto.
111
74da7425
AC
112 * mips-tdep.c (skip_prologue_using_sal): New function.
113 (mips32_skip_prologue, mips16_skip_prologue): Use
114 skip_prologue_using_sal to get an upper bound on the search.
115
369864a4
AC
116 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
117 #if 0'ed macro.
118 * infrun.c (step_into_function): Delete #ifdef
119 PROLOGUE_FIRSTLINE_OVERLAP code.
120 * symtab.c (find_function_start_sal): Ditto.
121
a5a12285
AC
122 * remote-rdp.c: Update copyright.
123 (rdp_init): #if 0 references to "target_byte_order".
124
29dfb2ac
AC
125 * mips-tdep.c (mips_o32_store_return_value): Delete function.
126 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
127 (mips_o32_extract_return_value): Delete function.
128 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
129 (mips_n32n64_extract_return_value): Delete function.
130 (mips_n32n64_store_return_value): Delete function.
131 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
132 instead of "store_return_value", "extract_return_value", and
133 "use_struct_convention".
134 (mips_n32n64_use_struct_convention): Delete function.
135
3a3da38c
KB
1362003-11-21 Kevin Buettner <kevinb@redhat.com>
137
138 * frv-tdep.c (frv_frame_this_id): Eliminate call to
139 inside_entry_func().
140
c5e656c1
MK
1412003-11-20 Mark Kettenis <kettenis@gnu.org>
142
143 * i386-tdep.c (i386_extract_return_value,
144 i386_store_return_value): Add gdbarch argument. Use it instead of
145 determining it from REGCACHE. Remove recursive call for
146 structures with a single member.
147 (i386_use_struct_convention): Remove.
148 (i386_reg_struct_return_p): New function.
149 (i386_return_value): New function.
150 (i386_gdbarch_init): Set return_value, don't set
151 extract_return_value, store_return_value and
152 use_struct_convention.
153 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
154
515cc92e
JB
1552003-11-20 Jim Blandy <jimb@redhat.com>
156
157 * osabi.c (_initialize_gdb_osabi): Don't return before registering
158 the 'set osabi' and 'show osabi' commands.
159
3f1d7f16
MK
1602003-11-19 Mark Kettenis <kettenis@gnu.org>
161
162 * frame.c (get_prev_frame): Use result from
163 get_frame_address_in_block instead of get_frame_pc as argument to
164 inside_main_func. Fixes PR backtrace/1435.
165
667e784f
AC
1662003-11-19 Andrew Cagney <cagney@redhat.com>
167
168 * stack.c (return_command): Handle "void", "legacy" and "unknown
169 location" return values separatly.
170 * values.c (using_struct_return): Return 0 for a "void" return
171 type. Mention "register_value_being_returned".
172 (register_value_being_returned): Mention "using_struct_return".
173
4cecd739
DJ
1742003-11-19 Daniel Jacobowitz <drow@mvista.com>
175
176 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
177 (frame_base_offset): Delete.
178 (read_func_scope): Delete call to decode_locdesc.
179 (decode_locdesc): Update comments. Don't set the removed variables.
180 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
181 DW_OP_fbreg support.
182
6b992462
DJ
1832003-11-18 Daniel Jacobowitz <drow@mvista.com>
184
185 * dwarf2read.c (optimized_out, islocal): Remove.
186 (decode_locdesc): Update comments. Don't set optimized_out
187 or islocal.
188
968d1cb4
JJ
1892003-11-17 Jeff Johnston <jjohnstn@redhat.com>
190 David Mosberger <davidm@hpl.hp.com>
191
192 * ia64-tdep.c: Include elf.h.
193 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
194 libunwind-ia64.h.
195 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
196 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
197 (ia64_is_fpreg, ia64_access_reg): Ditto.
198 (ia64_access_fpreg, ia64_access_mem): Ditto.
199 (get_kernel_table): Ditto.
200 (ia64_find_unwind_table): Ditto.
201 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
202 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
203 (ia64_libunwind_frame_prev_register): Ditto.
204 (ia64_libunwind_frame_sniffer): Ditto.
205 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
206 sniffer. Register libunwind functions needed by generic
207 libunwind frame code using libunwind_frame_set_descr().
208
d29caefc
DJ
2092003-11-16 Daniel Jacobowitz <drow@mvista.com>
210
211 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
212 bp_shlib_disabled breakpoint if there is a shared library mapped
213 at its expected address.
214
691c0433
AC
2152003-11-16 Andrew Cagney <cagney@redhat.com>
216
96cb1c2f
AC
217 * configure.tgt: Delete mips*tx39*-elf*.
218 * config/mips/tm-tx39.h: Delete file.
219 * config/mips/tx39.mt: Delete file.
220 * config/mips/tx39.mt: Delete file.
221
691c0433
AC
222 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
223 * remote-mips.c (common_open): Instead of
224 "mips_read_register_type" and "mips_set_processor_type_command"
225 call "deprecated_mips_set_processor_regs_hack".
226 * config/mips/tm-mips.h (mips_read_processor_type): Delete
227 declaration.
228 (mips_set_processor_type_command): Delete declaration.
229 * mips-tdep.c (mips_gdbarch_init): Update comment.
230 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
231 (mips_set_processor_type): Delete function.
232 (NUM_MIPS_PROCESSOR_REGS): Define.
233 (mips_show_processor_type_command): Delete function.
234 (mips_set_processor_type_command): Delete function.
235 (tmp_mips_processor_type): Delete.
236 (mips_processor_type): Delete.
237 (mips_processor_type_table): Delete.
238 (mips_r3051_reg_names): Delete.
239 (mips_r3081_reg_names): Delete.
240 (mips_lsi33k_reg_names): Delete.
241 (mips_processor_reg_names): Delete.
242 (mips_read_processor_type): Delete function.
243 (deprecated_mips_set_processor_regs_hack): New function.
244 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
245 (mips_register_name): Get the processor names from the tdep.
246 (mips_tx39_reg_names): New array.
247 (mips_generic_reg_names): Wire to a standard set of names.
248 (mips_gdbarch_init): Set "mips_processor_reg_names".
249 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
250 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
251 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
252
56cea623
AC
2532003-11-16 Andrew Cagney <cagney@redhat.com>
254
255 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
256 (mips_fpa0_regnum, mips_regnum): New function.
257 (mips_gdbarch_init): Fill in the "regnum" fields.
258 * mips-tdep.h (struct mips_regnum): Define.
259 (mips_regnum): Declare.
260 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
261 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
262 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
263 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
264 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
265 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
266 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
267 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
268 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
269 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
270 * remote-mips.c: Include "mips-tdep.h". Update.
271 * mipsnbsd-tdep.c: Update.
272 * mipsv4-nat.c: Update.
273 * mips-tdep.c: Update.
274 * mips-nat.c: Update.
275 * mips-linux-tdep.c: Update.
276 * mips-linux-nat.c: Update.
277 * irix5-nat.c: Update.
278 * dve3900-rom.c: Include "mips-tdep.h". Update.
279 (ignore_packet): Supress GCC warning.
280 * config/mips/nm-riscos.h: Update.
281
719ec221
AC
2822003-11-16 Andrew Cagney <cagney@redhat.com>
283
284 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
285 register_size.
286 (mips_register_raw_size): Delete function.
287 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
288 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
289 Check and set "mips64_transfers_32bit_regs_p".
290 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
291 (mips_register_convertible): Check the architecture's
292 "mips64_transfers_32bit_regs_p".
293 (set_mips64_transfers_32bit_regs): New function.
294 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
295 "set remote-mips64-transfers-32bit-regs" command. Specify
296 set_mips64_transfers_32bit_regs as the set function.
56cea623 297 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 298
20187ed5
MK
2992003-11-16 Mark Kettenis <kettenis@gnu.org>
300
301 * i386-tdep.h (i386_supply_gregset): Provide prototype.
302 * i386-tdep.c (i386_supply_gregset): Make public.
303
6771c427
AC
3042003-11-16 Andrew Cagney <cagney@redhat.com>
305
306 * mips-tdep.c (mips_register_byte): Delete function.
307 (mips_gdbarch_init): Do not set "deprecated_register_byte".
308 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
309 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
310 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
311
c8048956
MK
3122003-11-16 Mark Kettenis <kettenis@gnu.org>
313
314 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
315
cc8a868a
AC
3162003-11-16 Andrew Cagney <cagney@redhat.com>
317
318 * config/mips/linux64.mt: Delete file.
319 * config/mips/tm-linux64.h: Delete file.
320 * config/mips/tm-mips64.h: Delete file.
321 * config/mips/embed64.mt: Delete file.
322 * config/djgpp/fnchange.lst: Update.
323 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
324 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
325 * config/mips/tm-irix6.h: Update copyright. Include
326 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
327 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
328 "OP_LDGPR".
329
5ef80fb0
AC
3302003-11-15 Andrew Cagney <cagney@redhat.com>
331
332 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
333 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
334 n32 registers 64 bit.
335 (mips_register_raw_size, mips_register_byte): For pseudo
336 registers, use the register's pseudo size and not the
337 corresponding raw register's size.
338 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
339 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
340 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
341 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
342
4246e332
AC
3432003-11-15 Andrew Cagney <cagney@redhat.com>
344
8fa9cfa1
AC
345 * mips-tdep.c (struct gdbarch_tdep): Delete member
346 gdb_target_is_mips64.
347 (GDB_TARGET_IS_MIPS64): Delete macro.
348 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
349 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
350 (mips_addr_bits_remove): Simplify.
351
c73e8f27
AC
352 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
353 register_size.
354
4246e332
AC
355 Replace MIPS_REGSIZE with mips_regsize.
356 * mips-tdep.c (mips_regsize): New function.
357 * mips-tdep.h (mips_regsize): Declare.
358 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
359 (SIZEOF_STRUCT_REG): Update.
360 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
361 (mipsnbsd_fill_reg): Update.
362 (mipsnbsd_supply_fpreg): Update.
363 (mipsnbsd_fill_fpreg): Update.
364 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
365 * mips-tdep.c (mips_register_raw_size): Update.
366 (mips_register_type): Update.
367 (SIGFRAME_BASE): Update.
368 (SIGFRAME_PC_OFF): Update.
369 (SIGFRAME_REGSAVE_OFF): Update.
370 (SIGFRAME_FPREGSAVE_OFF): Update.
371 (SIGFRAME_REG_SIZE): Update.
372 (mips32_heuristic_proc_desc): Update.
373 (print_gp_register_row): Update.
374 (mips_dump_tdep): Do not print MIPS_REGSIZE.
375 * irix5-nat.c (supply_gregset): Update.
376 (fetch_core_registers): Update.
377 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
378 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
379 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
380 (MIPS_REGISTER_BYTE): Update.
381 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
382
5e044b1e
AC
3832003-11-15 Andrew Cagney <cagney@redhat.com>
384
385 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
386 USE_REGISTER_NOT_ARG.
387 * stabsread.c (define_symbol): Update.
388
3a16a68c
AC
3892003-11-15 Andrew Cagney <cagney@redhat.com>
390
391 * bcache.h (deprecated_bcache): Declare.
392 (bcache): Make returned buffer constant.
393 * bcache.c (deprecated_bcache): New function.
394 (bcache_data): New function.
395 (bcache): Call bcache data.
396 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
397 (add_psymbol_with_dem_name_to_list): Ditto.
398
bb41a796
MK
3992003-11-15 Mark Kettenis <kettenis@gnu.org>
400
401 * glibc-tdep.h (struct gdbarch): Declare opaque.
402 (glibc_skip_solib_resolver): Adjust prototype.
403 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
404 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
405 (arm_linux_init_abi): Set skip_solib_resolver.
406 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
407 (i386_linux_init_abi): Set skip_solib_resolver.
408 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
409 (arm_linux_skip_solib_resolver): Remove prototype.
410 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
411 (i386_linux_skip_solib_resolver): Remove prototype.
412
4c8c40e6
MK
4132003-11-14 Mark Kettenis <kettenis@gnu.org>
414
415 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
416 function.
417 * gdbarch.c, gdbarch.h: Regenerate.
418 * infrun.c (handle_inferior_event): Call
419 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
420 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
421 definition.
422 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
423 prototype.
424
0e5d83e3
JJ
4252003-11-14 Jeff Johnston <jjohnstn@redhat.com>
426
427 * libunwind-frame.c: New file.
428 * libunwind-frame.h: New file.
429 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
430 * configure.in: Add --with-libunwind option support. Define
431 HAVE_LIBUNWIND if libunwind support selected / defaulted.
432 Also check for libunwind.h and libunwind-ia64.h headers.
433 * configure: Regenerated.
434 * Makefile.in: Add support for libunwind-frame.o.
435 * config.in: Regenerated.
436
287a334e
JJ
4372003-11-14 Jeff Johnston <jjohnstn@redhat.com>
438
439 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
440 set up the ia64 linux native target method for getting the kernel
441 unwind table.
442 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
443 * inftarg.c (child_xfer_partial): Enable section of code to
444 handle TARGET_OBJECT_UNWIND_TABLE.
445 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
446
140be7b8
ILT
4472003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
448
449 * config/arm/nbsd.mt (TM_FILE): Define.
450 * config/arm/tm-nbsd.h: New file.
451
0a90bcdd
AC
4522003-11-14 Andrew Cagney <cagney@redhat.com>
453
454 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
455 * ppc-sysv-tdep.c: Include "objfiles.h".
456 (ppc64_sysv_abi_push_dummy_call): Provide the
457 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
458
459 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
460 "name_of_malloc" to ".malloc".
461
087f1027
MK
4622003-11-13 Mark Kettenis <kettenis@gnu.org>
463
464 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
465
3882f37a
DC
4662003-11-13 David Carlton <carlton@kealia.com>
467
468 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
469
a8cf2722
AC
4702003-11-13 Andrew Cagney <cagney@redhat.com>
471
472 * arch-utils.h (selected_architecture_name): Declare.
473 (selected_byte_order): Declare.
474 * arch-utils.c (selected_byte_order): New function.
475 (selected_architecture_name): New function.
476 (target_architecture_auto): Make static.
477 (set_architecture_string): Make static.
478 (target_byte_order): Make static.
479 (target_byte_order_auto): Make static.
480 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
481 non-multi-arch definition.
482 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
483 (target_byte_order, target_architecture): Delete declaration.
484 (target_byte_order_auto, target_architecture_auto): Ditto.
485 * gdbarch.h: Re-generate.
486 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
487 "selected_byte_order".
488
475b6ddd
AC
4892003-11-13 Andrew Cagney <cagney@redhat.com>
490
491 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
492
a22286a9
JB
4932003-11-13 Jim Blandy <jimb@redhat.com>
494
495 * cp-namespace.c: Doc fix.
496
7bb11558
MS
4972003-11-12 Michael Snyder <msnyder@redhat.com>
498
39add00a
MS
499 * sh64_tdep.c: Regularize some names.
500 (sh_sh64_register_name): Rename to sh64_register_name.
501 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
502 (sh_sh64_register_byte): Rename to sh64_register_byte.
503 (sh_sh64_build_float_register_type):
504 Rename to sh64_build_float_register_type.
505 (sh_sh64_register_convert_to_virtual):
506 Rename to sh64_register_convert_to_virtual.
507 (sh_sh64_register_convert_to_raw):
508 Rename to sh64_register_convert_to_raw.
509
2a314ed5
MS
510 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
511 sh64_media_reg_base_num, sh64_compact_reg_base_num,
512 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
513 sh64_extract_return_value, sh64_show_media_regs,
514 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
515 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
516 sh64_pseudo_register_read, sh64_pseudo_register_write,
517 sh64_do_pseudo_register, sh_compact_print_registers_info):
518 Delete unused variable 'tdep'.
519
7bb11558
MS
520 * sh64-tdep.c: Coding standard and spelling comment fixes.
521 (sh64_extract_return_value): Replace deprecated_store_floating
522 with store_typed_floating.
523 (sh_sh64_register_convert_to_raw): Replace
524 deprecated_store_floating with store_typed_floating.
525 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
526 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
527 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
528 sh64_extract_struct_value_address, sh64_pop_frame,
529 sh64_extract_return_value, sh64_store_return_value,
530 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
531 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
532 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
533 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
534 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
535 deprecated_register_virtual_type, deprecated_register_raw_size,
536 deprecated_max_register_raw_size, or
537 deprecated_max_register_virtual_size. Instead, just set
538 gdbarch_register_type.
39add00a
MS
539 (sh_sh64_register_raw_size): Delete.
540 (sh_sh64_register_virtual_size): Delete.
7bb11558 541
e7c27a73
DJ
5422003-11-12 Daniel Jacobowitz <drow@mvista.com>
543
544 * dwarf2read.c (struct dwarf2_cu): New type.
545
546 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
547 dwarf2_cu structure to pass down.
548
549 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
550 (add_partial_enumeration, locate_pdi_sibling, process_die)
551 (read_file_scope, read_func_scope)
552 (read_lexical_block_scope, dwarf2_get_pc_bounds)
553 (dwarf2_add_field, dwarf2_attach_fields_to_type)
554 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
555 (read_structure_scope, read_enumeration, read_array_type)
556 (read_common_block, read_namespace, read_tag_pointer_type)
557 (read_tag_ptr_to_member_type, read_tag_reference_type)
558 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
559 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
560 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
561 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
562 (read_full_die. read_attribute_value, read_attribute)
563 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
564 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
565 (die_containing_type, type_at_offset, tag_type_to_type)
566 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
567 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
568
1640b821
DJ
5692003-11-12 Daniel Jacobowitz <drow@mvista.com>
570
571 PR breakpoints/1450
572 * breakpoint.c (insert_bp_location): Fix a logic error by returning
573 0 after a catchpoint fails.
574
d7891507
MC
5752003-11-11 Michael Chastain <mec.gnu@mindspring.com>
576
577 * mips-tdep.c (msymbol_size): Delete.
578
f594e5e9
MC
5792003-11-07 Michael Chastain <mec@shout.net>
580
581 * symtab.h (struct minimal_symbol): Add size.
582 * dbxread.c: Use it.
583 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
584 Rename to record_minimal_symbol.
585 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
586 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
587 (install_minimal_symbols): Ditto.
588 * objfiles.c (terminate_minimal_symbol_table): Ditto.
589 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
590 * m68hc11-tdep.c: Ditto.
591 * mips-tdep.c: Ditto.
592 * sh64-tdep.c: Ditto.
593
68e39e73
MC
5942003-11-10 Michael Chastain <mec.gnu@mindspring.com>
595
596 * MAINTAINERS: Change my e-mail address.
597
b60eb90d
AC
5982003-11-10 Andrew Cagney <cagney@redhat.com>
599
963e2bb7
AC
600 * gdbarch.sh (return_value): Replace "inval" and "outval" with
601 "readbuf" and "writebuf".
602 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
603 * d10v-tdep.c (d10v_return_value): Ditto.
604 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
605 (ppc_sysv_abi_broken_return_value): Ditto.
606 (ppc64_sysv_abi_return_value): Ditto.
607 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
608 (ppc_sysv_abi_return_value): Ditto.
609 (ppc_sysv_abi_broken_return_value): Ditto.
610 (ppc64_sysv_abi_return_value): Ditto.
611 * values.c (register_value_being_returned): Update call.
612 * stack.c (return_command): Update call.
613 * gdbarch.h, gdbarch.c: Re-generate.
614
8aa91c1e
AC
615 * target.h (struct target_ops): Order xfer buffer parameters "read
616 write" not "write read".
617 * bfd-target.c (target_bfd_xfer_partial): Update.
618 * remote.c (remote_xfer_partial): Update.
619 * inftarg.c (child_xfer_partial): Update.
620 * target.c (default_xfer_partial): Update.
621 (target_read_partial, target_write_partial): Update.
622 (debug_to_xfer_partial): Update.
623
100bcc3f
AC
624 * arch-utils.h, arch-utils.c: Fix typo in comment.
625
b60eb90d
AC
626 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
627 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
628 (set_gdbarch_from_file): Call
629 "deprecated_current_gdbarch_select_hack".
b60eb90d 630
bf922ad9
AC
6312003-11-09 Andrew Cagney <cagney@redhat.com>
632
ebdba546
AC
633 * arch-utils.c (gdbarch_update_p): New function.
634 * gdbarch.sh (gdbarch_update_p): Delete function.
635 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 636 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
637 * gdbarch.c: Re-generate.
638
7de2341d
AC
639 * gdbarch.sh (clear_gdbarch_swap): Delete function.
640 (swapout_gdbarch_swap): Delete function.
641 (swapin_gdbarch_swap): Delete function.
642 (init_gdbarch_swap): Delete function.
643 (initialize_non_multiarch): Delete function.
644 (current_gdbarch_swap_in_hack): New function.
645 (current_gdbarch_swap_out_hack): New function.
646 (current_gdbarch_swap_init_hack): New function.
647 * gdbarch.c: Re-generate.
648
db446970
AC
649 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
650 parameter to "current_gdbarch". Add comment explaining why.
651 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
652 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
653 * gdbarch.c: Re-generate.
654
341e3d11
AC
655 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
656 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
657 * config/s390/xm-linux.h: Delete file.
658 * config/m88k/xm-delta88v4.h: Delete stray.
659
bf922ad9
AC
660 * Makefile.in (arch-utils.o): Update dependencies.
661 * arch-utils.c: Include "osabi.h".
662 (gdbarch_info_fill): New function.
663 * arch-utils.h (gdbarch_info_fill): Declare.
664 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
665 * gdbarch.c: Re-generate.
666
a3640c75
MK
6672003-11-09 Mark Kettenis <kettenis@gnu.org>
668 David S. Miller <davem@redhat.com>
669
670 * glibc-tdep.c, glibc-tdep.h: New files.
671 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
672 * config/i386/linux.mt (TDEPFILES): Likewise.
673 * i386-linux-tdep.c (glibc-tdep.h): Include.
674 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
675 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
676 * arm-linux-tdep.c (glibc-tdep.h): Include.
677 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
678 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
679 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
680 (glibc_tdep_h): Define.
681 (glibc-tdep.o): Add dependencies.
682 (arm-linux-tdep.o): Update dependencies.
683 (i386-linux-tdep.o): Likewise.
684
e60e0ab2
AC
6852003-11-09 Andrew Cagney <cagney@redhat.com>
686
687 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
688 * config/mips/nm-irix6.h: Delete file.
689 * config/mips/nm-linux.h: Update copyright.
690 (MIPS_GNULINUX_TARGET): Delete macro.
691 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
692 * config/mips/xm-irix6.h: Delete file.
693 * config/mips/linux.mh (XM_FILE): Delete definition.
694 * config/mips/xm-linux.h: Delete file.
695
181555e9
AC
6962003-11-09 Andrew Cagney <cagney@redhat.com>
697
698 * d10v-tdep.c (d10v_return_value): New function.
699 (d10v_use_struct_convention): Delete function.
700 (d10v_store_return_value): Delete function.
701 (d10v_extract_struct_value_address): Delete function.
702 (d10v_gdbarch_init): Set "return_value" instead of
703 "extract_return_value", "store_return_value",
704 "extract_struct_value_address", and "use_struct_convention".
705 (RET1_REGNUM): Delete const.
706
dea0c52f
MK
7072003-11-09 Mark Kettenis <kettenis@gnu.org>
708
709 From David S. Miller <davem@redhat.com>:
710 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
711 * gdbarch.c, gdbarch.h: Regenerated.
712 * arch-utils.c (generic_skip_solib_resolver): New function.
713 * arch-utils.h (generic_skip_solib_resolver): New prototype.
714 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
715
6314a349
AC
7162003-11-07 Andrew Cagney <cagney@redhat.com>
717
718 * top.c (print_gdb_version): Replace STREQ with strcmp.
719 * valops.c (value_struct_elt_for_reference): Ditto.
720 (value_struct_elt_for_reference): Ditto.
721 * symtab.c (gdb_mangle_name): Ditto.
722 (find_line_symtab): Ditto.
723 * symmisc.c (maintenance_print_symbols): Ditto.
724 * symfile.c (symbol_file_command): Ditto.
725 * stabsread.c (define_symbol, read_type): Ditto.
726 (cleanup_undefined_types, scan_file_globals): Ditto.
727 * solib.c (solib_map_sections): Ditto.
728 * solib-svr4.c (bfd_lookup_symbol): Ditto.
729 * rs6000-tdep.c (skip_prologue): Ditto.
730 * p-valprint.c (pascal_value_print): Ditto.
731 (pascal_object_is_vtbl_ptr_type): Ditto.
732 * objfiles.c (in_plt_section): Ditto.
733 * minsyms.c (lookup_minimal_symbol): Ditto.
734 (compact_minimal_symbols): Ditto.
735 (find_solib_trampoline_target): Ditto.
736 * mdebugread.c (parse_type): Ditto.
737 * language.c (set_language_command): Ditto.
738 (set_type_command, set_range_command): Ditto.
739 * f-lang.c (add_common_block): Ditto.
740 (add_common_block): Ditto.
741 (find_first_common_named): Ditto.
742 (patch_all_commons_by_name): Ditto.
743 * elfread.c (elf_locate_sections): Ditto.
744 (elf_locate_sections): Ditto.
745 (elfstab_offset_sections): Ditto.
746 * dwarf2read.c (dwarf2_locate_sections): Ditto.
747 * dbxread.c (add_old_header_file): Ditto.
748 (find_corresponding_bincl_psymtab): Ditto.
749 (read_dbx_symtab, process_one_symbol): Ditto.
750 * coffread.c (patch_opaque_types): Ditto.
751 * cli/cli-decode.c (delete_cmd): Ditto.
752 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
753 * c-typeprint.c (c_type_print_base): Ditto.
754 * breakpoint.c (bpstat_stop_status): Ditto.
755 (clear_command, breakpoint_re_set_one): Ditto.
756
49df298f
AC
7572003-11-07 Andrew Cagney <cagney@redhat.com>
758
759 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
760 * bcache.c (struct bstring): Make "length" an unsigned short, add
761 "half_hash".
762 (struct bcache): Add "half_hash_error_count".
763 (bcache): Compute and save the "half_hash". Compare the
764 "half_hash" before comparing the length. Update
765 half_hash_error_count.
766
f168dd80
AC
7672003-11-07 Andrew Cagney <cagney@redhat.com>
768
769 * inftarg.c (child_xfer_partial): New function
770 (init_child_ops): Set "to_xfer_partial".
771
05580c65
AC
7722003-11-07 Andrew Cagney <cagney@redhat.com>
773
774 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
775 set "return_value" instead of "use_struct_convention".
776 (ppc_linux_use_struct_convention): Delete function.
777 (ppc_linux_return_value): New function.
778 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
779 (ppc_sysv_abi_broken_return_value): New function.
780 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
781 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
782 static.
783 (ppc_sysv_abi_extract_return_value): Delete function.
784 (ppc_sysv_abi_broken_extract_return_value): Delete function.
785 (ppc_sysv_abi_store_return_value): Delete function.
786 (ppc_sysv_abi_broken_store_return_value): Delete function.
787 (ppc_sysv_abi_use_struct_convention): Delete function.
788 (ppc64_sysv_abi_use_struct_convention): Delete function.
789 (ppc64_sysv_abi_extract_return_value): Delete function.
790 (ppc64_sysv_abi_store_return_value): Delete function.
791 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
792 (ppcnbsd_init_abi): Set "return_value", instead of
793 "use_struct_convention", "extract_return_value", and
794 "store_return_value".
795 (ppcnbsd_use_struct_convention): Delete function.
796 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
797 (ppc_sysv_abi_return_value): Declare.
798 (ppc_sysv_abi_broken_return_value): Declare.
799 (ppc_sysv_abi_use_struct_convention): Delete.
800 (ppc_sysv_abi_store_return_value): Delete.
801 (ppc_sysv_abi_extract_return_value): Delete.
802 (ppc_sysv_abi_broken_store_return_value): Delete.
803 (ppc_sysv_abi_broken_extract_return_value): Delete.
804 (ppc64_sysv_abi_use_struct_convention): Delete.
805 (ppc64_sysv_abi_extract_return_value): Delete.
806 (ppc64_sysv_abi_store_return_value): Delete.
807 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
808 set "return_value" instead of "extract_return_value",
809 "store_return_value", and "use_struct_convention".
810
1763fba4
MK
8112003-11-07 Mark Kettenis <kettenis@gnu.org>
812
22c7ba1a
MK
813 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
814
1763fba4
MK
815 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
816 fscanf.
817
fc07cc2d
MK
8182003-11-07 Mark Kettenis <kettenis@gnu.org>
819
820 * fbsd-proc.c: Fix formatting.
821
6a748db6
KB
8222003-11-06 Kevin Buettner <kevinb@redhat.com>
823
824 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
825 Define.
826 (new_variant): Set name for iacc0_regnum.
827 (frv_register_name): Accommodate pseudo-registers.
828 (frv_register_type): Add case for iacc0_regnum.
829 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
830 (frv_gdbarch_init): Set number of pseudo registers. Establish
831 pseudo-register read/write methods.
832
bf896cb0
AC
8332003-11-06 Andrew Cagney <cagney@redhat.com>
834
835 * valops.c (destructor_name_p): Replace STREQN with strncmp.
836 * top.c (command_line_input): Ditto.
837 * objc-exp.y (yylex): Ditto.
838 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
839 * jv-exp.y (yylex): Ditto.
840 * f-exp.y (yylex): Ditto.
841 * event-top.c (command_line_handler): Ditto.
842 * environ.c (get_in_environ): Ditto.
843 (set_in_environ): Ditto.
844 * dwarfread.c (handle_producer): Ditto.
845 * dbxread.c (process_one_symbol): Ditto.
846 * c-typeprint.c (c_type_print_base): Ditto.
847 * c-exp.y (yylex): Ditto.
848
0b603eba
AC
8492003-11-06 Andrew Cagney <cagney@redhat.com>
850 Jeff Johnston <jjohnstn@redhat.com>
851
852 * target.c (add_target): Only set "to_xfer_partial" when NULL.
853 (init_dummy_target): Set "to_xfer_partial".
854
9cedbfec
AC
8552003-11-06 Andrew Cagney <cagney@redhat.com>
856
857 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
858 REGISTER_CONVENTION.
859
26bb91f3
DJ
8602003-11-06 Daniel Jacobowitz <drow@mvista.com>
861
862 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
863 static.
864
0bde7532
DJ
8652003-11-06 Daniel Jacobowitz <drow@mvista.com>
866
867 * breakpoint.c (remove_breakpoint): Take an bp_location
868 instead of a breakpoint argument. Check the bp_location's type.
869 Fix a reversed condition for hardware breakpoints.
870
871 (insert_bp_location): Update call to remove_breakpoint.
872 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
873 (remove_hw_watchpoints): Likewise.
874 (reattach_breakpoints): Likewise.
875 (detach_breakpoints): Likewise.
876 (delete_breakpoint): Likewise.
877
075f6582
DJ
8782003-11-06 Daniel Jacobowitz <drow@mvista.com>
879
880 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
881 (beakpoint_init_inferior): Likewise.
882 (breakpoint_here_p): Likewise. Only check addresses for software
883 or hardware breakpoints.
884 (breakpoint_inserted_here_p): Likewise.
885 (breakpoint_thread_match): Likewise. Correct comment.
886 (bpstat_have_active_hw_watchpoints): Likewise.
887 (check_duplicates): Likewise.
888
879bfdc2
DJ
8892003-11-06 Daniel Jacobowitz <drow@mvista.com>
890
891 * breakpoints.c (insert_bp_location): New function, broken out
892 from insert_breakpoints. Work on an bp_location instead of a
893 breakpoint.
894 (insert_breakpoints): Use it.
895
cf3a9e5b
DJ
8962003-11-06 Daniel Jacobowitz <drow@mvista.com>
897
898 * breakpoint.h (struct bp_location): Add section.
899 (struct breakpoint): Remove section.
900 * breakpoint.c (insert_breakpoints, remove_breakpoint)
901 (breakpoint_here_p, breakpoint_inserted_here_p)
902 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
903 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
904 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
905 section through loc.
906
ffce0d52
DJ
9072003-11-06 Daniel Jacobowitz <drow@mvista.com>
908
909 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
910 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
911
e049a4b5
DJ
9122003-11-06 Daniel Jacobowitz <drow@mvista.com>
913
914 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
915 arguments. Initialize owner and type for the new breakpoint
916 location item.
917 (set_raw_breakpoint): Update call to allocate_bp_location.
918
7cc221ef
DJ
9192003-11-06 Daniel Jacobowitz <drow@mvista.com>
920
921 * breakpoint.h (struct bp_location): Add a chain pointer.
922 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
923 macros.
924 (bp_location_chain): New variable.
925 (allocate_bp_location): New function.
926 (set_raw_breakpoint): Use it.
927 (delete_breakpoint): Remove ->loc from the bp_location_chain.
928
5cab636d
DJ
9292003-11-06 Daniel Jacobowitz <drow@mvista.com>
930
931 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
932 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 933 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
934 * breakpoint.c (condition_command, read_memory_nobpt)
935 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
936 (reattach_breakpoints, update_breakpoints_after_exec)
937 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
938 (breakpoint_init_inferior, breakpoint_here_p)
939 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
940 (breakpoint_thread_match, bpstat_stop_status)
941 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
942 (describe_other_breakpoints, check_duplicates)
943 (make_breakpoint_permanent, create_thread_event_breakpoint)
944 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
945 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
946 (watch_command_1, print_one_exception_catchpoint)
947 (clear_command, breakpoint_re_set_one): Adjust member accesses to
948 use the breakpoint's ->loc.
949 (set_raw_breakpoint): Likewise. Initialize ->loc.
950 (delete_breakpoint): Likewise. Free ->loc.
951
7be0c536
AC
9522003-11-05 Andrew Cagney <cagney@redhat.com>
953
4c7d882e
AC
954 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
955 macro.
956 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
957 * config/i386/tm-cygwin.h
958 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
959 * config/powerpc/tm-linux.h
960 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
961 (at_subroutine_call_instruction_target): Delete declaration.
962 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
963 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
964 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
965
7be0c536
AC
966 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
967 "struct bfd_section" and "struct bfd".
968 * target.h (struct section_table): Ditto.
969 * rs6000-nat.c (xcoff_relocate_core): Ditto.
970 * solib-svr4.c (elf_locate_base): Ditto.
971 * pa64solib.c (dld_cache_t): Ditto.
972 * objfiles.h (struct obj_section): Ditto.
973 * objfiles.c (add_to_objfile_sections): Ditto.
974 * exec.c (bfdsec_to_vmap): Ditto.
975 (add_to_section_table): Ditto.
976 (build_section_table): Ditto.
977 * corelow.c (get_core_register_section): Ditto.
978 * coffread.c (find_linenos): Ditto.
979 * elfread.c (elf_interpreter): Delete #if0'd function.
980
981 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
982 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
983 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
984 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
985
986 * arch-utils.h (generic_cannot_extract_struct_value_address):
987 Delete declaration.
988 * wince.c (_initialize_wince): Fix multi-line string.
989 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
990
d8fe84e3
EZ
9912003-11-05 Elena Zannoni <ezannoni@redhat.com>
992
993 * top.c (execute_command): Fix broken logic for command execution
994 while inferior is running in async mode.
995
cbdfc7c0
MK
9962003-11-06 Mark Kettenis <kettenis@gnu.org>
997
998 * dwarf2-frame.c (execute_cfa_program): Mark register as
999 REG_SAVED_REG for DW_CFA_register opcode.
1000
dac94105
MK
10012003-11-05 Mark Kettenis <kettenis@gnu.org>
1002
1003 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
1004 %rsp, %rip and %eflags to match ABI-change.
1005
85bf2b91
JJ
10062003-11-05 Jeff Johnston <jjohnstn@redhat.com>
1007
1008 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
1009 (ia64_gdbarch_init): Don't bother calculating the os.
1010 Instead use the gdbarch_info struct and look at the osabi field.
1011 Also use gdbarch_list_lookup_by_info() to look for a
1012 candidate gdbarch.
1013
cd31fb03
KB
10142003-11-05 Kevin Buettner <kevinb@redhat.com>
1015
1016 * frv-tdep.c (frv_register_byte): Delete.
1017 (frv_extract_return_value, frv_store_return_value)
1018 (frv_extract_struct_value_address): Don't call frv_register_byte().
1019 Convert to non-deprecated form.
1020 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
1021 Convert calls to set_gdbarch_deprecated_extract_return_value(),
1022 set_gdbarch_deprecated_store_return_value(), and
1023 set_gdbarch_deprecated_extract_struct_value_address() into
1024 non-deprecated forms.
1025
0a056982
AC
10262003-11-05 Andrew Cagney <cagney@redhat.com>
1027
1028 * mips-tdep.c (mips_dump_tdep): Do not print
1029 PRINT_EXTRA_FRAME_INFO.
1030 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1031 Rename PRINT_EXTRA_FRAME_INFO.
1032 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1033 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1034 (mips_print_extra_frame_info): Delete declaration.
1035 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1036
29e0a062
EZ
10372003-11-05 Elena Zannoni <ezannoni@redhat.com>
1038
1039 * coffread.c (coff_symtab_read): Remove passing of info parameter
1040 to prim_record_minimal_symbol_and_info.
1041
8af580fc
EZ
10422003-11-05 Elena Zannoni <ezannoni@redhat.com>
1043
1044 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1045 (decode_base_type): Delete ifdeffed out code.
1046
507836c0
AC
10472003-11-04 Andrew Cagney <cagney@redhat.com>
1048
1049 * symtab.c (find_active_alias): Delete function.
1050 (lookup_block_symbol): Delete alias code.
1051 * stabsread.c (resolve_live_range): Delete function.
1052 (add_live_range): Delete function.
1053 (resolve_symbol_reference): Delete function.
1054 (define_symbol): Delete live range and alias code.
1055 (scan_file_globals): Delete alias code.
1056 * symtab.h (SYMBOL_RANGES): Delete macro.
1057 (struct range_list): Delete structure.
1058 (struct symbol): Delete field "ranges".
1059 (SYMBOL_ALIASES): Delete macro.
1060 (struct alias_list): Delete structure.
1061 (struct symbol): Delete field "aliases".
1062
1083b3bc
MS
10632003-11-04 Michael Snyder <msnyder@redhat.com>
1064
1065 * MAINTAINERS: Remove myself as owner of breakpoints and
1066 of sparc/solaris.
1067
474e5826
CV
10682003-11-03 Corinna Vinschen <vinschen@redhat.com>
1069
1070 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1071 (sh_sh4al_dsp_register_name): Ditto.
1072 (sh4_nofpu_show_regs): Ditto.
1073 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1074 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1075
2160782c
AC
10762003-11-03 Andrew Cagney <cagney@redhat.com>
1077
1078 * bcache.c: Include "gdb_assert.h".
1079 (struct bcache): Add fields "expand_count" and
1080 "expand_hash_count".
1081 (expand_hash_table): Update the expand counts.
1082 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1083 on object sizes and hashes.
1084 * Makefile.in (bcache.o): Update dependencies.
1085
85302095
AC
10862003-11-03 Andrew Cagney <cagney@redhat.com>
1087
1088 * exec.c (xfer_memory): Eliminate xfer_fn.
1089
526eef89
KB
10902003-10-31 Kevin Buettner <kevinb@redhat.com>
1091
1092 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1093 (opcodes/frv-desc.h): Include.
1094 (iacc0h_regnum, iacc0l_regnum): Define.
1095 (last_spr_regnum, frv_num_regs): Update.
1096 (new_variant): Don't supply default names for holes in the SPRs.
1097 Supply names for iacc0h_regnum and iacc0l_regnum.
1098 (frv_register_type): Use symbolic constants first_fpr_regnum and
1099 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1100 builtin_type_int instead of builtin_type_int32.
1101 (frv_register_sim_regno): New function.
1102 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1103 * Makefile.in (gdb_sim_frv_h): Define.
1104 (frv-tdep.o): Update dependencies.
1105
9e815ec2
AC
11062003-10-31 Andrew Cagney <cagney@redhat.com>
1107
1108 * avr-tdep.c (avr_frame_this_id): Do not call
1109 deprecated_inside_entry_file.
1110 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1111 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1112 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1113 * arm-tdep.c (arm_prologue_this_id): Ditto.
1114 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1115
e372db49
JB
11162003-10-31 Jim Blandy <jimb@redhat.com>
1117
1118 * elfread.c (elf_symtab_read): Allocate correct number of tail
1119 elements to sectinfo structure. (Fix from Woody LaRue.)
1120
e8bcf01f
AC
11212003-10-31 Andrew Cagney <cagney@redhat.com>
1122
1123 * stack.c (return_command): Use get_frame_type, instead of
1124 CALL_DUMMY_HAS_COMPLETED.
1125 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1126 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1127
4c05fe53
MK
11282003-10-31 Mark Kettenis <kettenis@gnu.org>
1129
1130 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1131 explicitly specify size of array.
1132 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1133 TDEP->sc_num_regs.
1134
c8b91b89
AC
11352003-10-31 Andrew Cagney <cagney@redhat.com>
1136
1137 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1138 function.
1139 (s390_gdbarch_init): Set extract_struct_value_address.
1140 * arch-utils.c (generic_cannot_extract_struct_value_address):
1141 Delete function.
1142 * arch-utils.h (generic_cannot_extract_struct_value_address):
1143 Delete definition.
1144
fdfb6fc8
MK
11452003-10-31 Mark Kettenis <kettenis@gnu.org>
1146
1147 * i386-linux-nat.c (fetch_core_registers): Remove.
1148 (linux_elf_core_fns): Remove.
1149 (_initialize_i386_linux_nat): Remove.
1150
2f4950cd
AC
11512003-10-31 Andrew Cagney <cagney@redhat.com>
1152
1153 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1154 "exec.h".
1155 (exec_entry_point): New function.
1156 (enable_break): Create a "tmp_bfd_target", use that and
1157 entry_point_address when computing the relocation offset.
1158 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1159 * Makefile.in (solib-svr4.o): Update dependencies.
1160
bba2d28d
AC
11612003-10-31 Andrew Cagney <cagney@redhat.com>
1162
1163 * defs.h (XZALLOC): Define.
1164 * target.h (struct target_ops): Add "to_data";
1165 * bfd-target.h, bfd-target.c: New files.
1166 * Makefile.in (SFILES): Add "bfd-target.c".
1167 (COMMON_OBS): Add "bfd-target.o".
1168 (bfd-target.o): Specify dependencies.
1169 (bfd_target_h): Define.
1170 * defs.h (XZALLOC): Define.
1171
6066c3de
AC
11722003-10-31 Andrew Cagney <cagney@redhat.com>
1173
1174 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1175 adjust_breakpoint_address.
1176 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1177 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1178 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1179 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1180
4b8a223f
AC
11812003-10-31 Andrew Cagney <cagney@redhat.com>
1182
1183 * target.h (struct target_ops): Replace "to_read_partial" and
1184 "to_write_partial" with "to_xfer_partial". Update comments.
1185 * target.c (debug_to_write_partial): Delete function.
1186 (debug_to_xfer_partial): Replace debug_to_read_partial.
1187 (add_target, update_current_target, setup_target_debug): Set
1188 "to_xfer_partial" instead of "to_read_partial" and
1189 "to_write_partial".
1190 (default_xfer_partial): Replace "default_write_partial".
1191 (default_read_partial): Delete.
1192 (target_read_partial, target_write_partial): Call
1193 "to_xfer_partial".
1194 * remote.c (init_remote_ops): Set "to_xfer_partial".
1195 (init_remote_async_ops): Ditto.
1196 (remote_xfer_partial): Replace "remote_read_partial".
1197
66a72d25
MK
11982003-10-31 Mark Kettenis <kettenis@gnu.org>
1199
1200 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1201 registers in `fxsave' format.
1202 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1203
9a12a2a0
MK
12042003-10-30 Mark Kettenis <kettenis@gnu.org>
1205
e9f1aad5
MK
1206 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1207 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1208 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1209
bb489b3c
MK
1210 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1211 specify size of array.
1212 (i386_linux_init_abi): Remove initialization of
1213 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1214 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1215
da285bc4
MK
1216 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1217 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1218 core-regset.o.
1219
9a12a2a0
MK
1220 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1221 the ELF header.
1222
0e24ac5d
MK
12232003-10-29 Mark Kettenis <kettenis@gnu.org>
1224
6d6d8e9c
MK
1225 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1226 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1227 core-regset.o.
1228
25e60c9b
MK
1229 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1230
0e24ac5d
MK
1231 * corelow.c: Include "arch-utils.h", "regset.h" and
1232 "gdb_assert.h".
1233 (core_gdbarch): New variable.
1234 (sniff_core_bfd): Don't sniff if we have support for register sets
1235 in CORE_GDBARCH.
1236 (core_close): Reset CORE_GDBARCH.
1237 (core_open): Initialize CORE_GDBARCH.
1238 (get_core_register_section): Use register sets if they are
1239 supported by CORE_GDBARCH.
1240 (get_core_registers): Don't print error message if we have support
1241 for register sets in CORE_GDBARCH.
1242
0a0a4ac3
AC
12432003-10-29 Andrew Cagney <cagney@redhat.com>
1244
1245 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1246 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1247
7b097ae3
MK
12482003-10-29 Mark Kettenis <kettenis@gnu.org>
1249
1250 * objfiles.h (clear_objfile_data): New prototype.
1251 * objfiles.c (clear_objfile_data): New function.
1252 * symfile.c (reread_symbols): Clear per-objfile data.
1253
46f45a4a
JJ
12542003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1255
1256 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1257 printf_unfiltered instead of printf_filtered for output messages.
1258 (add_symbol_file_command): Ditto.
1259 (reread_symbols): Ditto.
1260 (overlay_auto_command): Ditto.
1261 (overlay_manual_command): Ditto.
1262 (overlay_off_command): Ditto.
1263
2b026650
MK
12642003-10-27 Mark Kettenis <kettenis@gnu.org>
1265
1266 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1267 (gdbarch_from_bfd): New function.
1268 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1269 deprecated_select_gdbarch_hack.
1270 * arch-utils.h (gdbarch_from_bfd): New prototype.
1271
0bcad584 12722003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1273
1274 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1275 arch_info. Use warning instead of fprintf_filtered. Do not use
1276 deprecated bfd_printable_arch_mach.
1277
7f398216
KB
12782003-10-26 Kevin Buettner <kevinb@redhat.com>
1279
1280 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1281 Delete.
1282 (frv_register_type): Rename from frv_register_virtual_type. Add
1283 ``struct gdbarch *'' parameter.
1284 (frv_gdbarch_init): Delete calls to the following functions:
1285 set_gdbarch_deprecated_size(),
1286 set_gdbarch_deprecated_register_bytes(),
1287 set_gdbarch_deprecated_register_raw_size(),
1288 set_gdbarch_deprecated_max_register_raw_size(),
1289 set_gdbarch_deprecated_register_virtual_size(),
1290 set_gdbarch_deprecated_max_register_virtual_size(),
1291 set_gdbarch_deprecated_register_virtual_size(),
1292 set_gdbarch_deprecated_register_virtual_type().
1293 Add call to function set_gdbarch_register_type().
1294
bcf48cc7
MK
12952003-10-26 Mark Kettenis <kettenis@gnu.org>
1296
6c7de422
MK
1297 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1298 FDOFF_REGNUM): Remove defines.
1299 * win32-nat.c (do_child_fetch_inferior_registers): Include
1300 "i387-tdep.h".
3e685d41 1301 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1302 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1303 undefine I387_ST0_REGNUM.
1304
f783586b
MK
1305 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1306 * x86-64-tdep.c (x86_64_store_return_value): Use
1307 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1308
bcf48cc7
MK
1309 Change register numbers to enumartion values.
1310 * i386-tdep.h (enum i386_regnum): New.
1311 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1312 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1313 I386_ST0_REGNUM): Remove defines.
1314 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1315 I386_EDI_REGNUM): Remove defines.
1316
b6591e8b
AC
13172003-10-24 Andrew Cagney <cagney@redhat.com>
1318
1319 * target.c: Include "gdbcore.h".
1320 (get_target_memory, get_target_memory_unsigned): New functions.
1321 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1322 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1323 Use get_target_memory_unsigned.
1324 * Makefile.in (target.o): Update dependencies.
1325
5f724446
AC
13262003-10-24 Andrew Cagney <cagney@redhat.com>
1327
ce2826aa
AC
1328 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1329 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1330 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1331 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1332 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1333
5f724446
AC
1334 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1335 (can_run_code_for): Use the OO term "singleton".
1336
fc70c2a0
AC
13372003-10-23 Andrew Cagney <cagney@redhat.com>
1338
1339 * Makefile.in (stack.o): Add $(regcache_h).
1340 * stack.c: Include "regcache.h"
1341 (return_command): Rewrite. Use get_frame_id and
1342 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1343 about unhandled return-values.
1344 * value.h (set_return_value): Delete declaration.
1345 * values.c (set_return_value): Delete function.
1346
4afcc598
JJ
13472003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1348
1349 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1350 (pseudo_regs): Add comment regarding register stack registers.
1351 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1352 (floatformat_valid): New static routine.
1353 (floatformat_ia64_ext): Add name field and set up is_valid routine
1354 to floatformat_valid().
1355 (examine_prologue): For the previous cfm, use
1356 frame_unwind_register()
1357 if the cfm is not stored in a register-stack register. Save the
1358 previous cfm value in the prev_cfm field. Add debug output.
1359 (ia64_frame_this_id): Use frame_id_build_special() to also register
1360 the bsp. Add debug output.
1361 (ia64_sigtramp_frame_this_id): Ditto.
1362 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1363 registers and also add some checks for framelessness before accepting
1364 current register values for fields such as return address. For cfm,
1365 use the cached prev_cfm field if available. Add comment to explain
1366 PSR logic. Add debug output.
1367 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1368 as part of initialization.
1369 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1370 calculated. Cache the bsp and cfm values.
1371 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1372 instead of using ia64_frame_prev_register() which doesn't expect most
1373 registers to be saved. The saved values for bsp and sp
1374 can be taken from the cache. Add debug output.
1375 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1376 the bsp.
1377
6cfae0bc
JB
13782003-10-23 Jim Blandy <jimb@redhat.com>
1379
1380 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1381 architecture the current arch can run code for --- but not if it's
1382 a superset.
1383 (can_run_code_for): New function.
1384
fcd182f9
JW
13852003-10-22 James E Wilson <wilson@specifixinc.com>
1386
1387 * MAINTAINERS: Move myself from paper trail section back to write
1388 after approval section.
1389
4646aa9d
AC
13902003-10-22 Andrew Cagney <cagney@redhat.com>
1391
1392 * exec.h: New file.
1393 * win32-nat.c: Include "exec.h".
1394 * solib.c: Include "exec.h".
1395 * target.h (build_section_table): Delete declaration.
1396 * somsolib.c: Include "exec.h".
1397 (exec_ops): Delete extern declaration.
1398 * rs6000-nat.c: Update copyright. Include "exec.h".
1399 (exec_ops): Delete extern declaration.
1400 * pa64solib.c: Update copyright. Include "exec.h".
1401 (exec_ops): Delete extern declaration.
1402 * exec.c: Update copyright. Include "exec.h".
1403 * corelow.c: Update dependencies. Include "exec.h".
1404 * Makefile.in (exec_h): Define.
1405 (exec.o, somsolib.o): Update dependencies.
1406 (pa64solib.o, corelow.o): Update dependencies.
1407
0088c768
AC
14082003-10-22 Andrew Cagney <cagney@redhat.com>
1409
1410 * target.c: Include "gdb_assert.h" (target_read): Call
1411 "target_read_partial", not "target_write_partial".
1412 (default_read_partial, default_write_partial): New function.
1413 (target_read_partial, target_write_partial): Simplify, assume that
1414 there is always a read/write method.
1415 (update_current_target, add_target): Always set "to_read_partial"
1416 and "to_write_partial".
1417 (target_write, target_read): Fail on a zero byte transfer.
1418 * Makefile.in (target.o): Update dependencies.
1419 * target.h: Update copyright date.
1420 (target_object): Fix typo.
1421
e2d0e7eb
AC
14222003-10-22 Andrew Cagney <cagney@redhat.com>
1423
1424 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1425 multi-arch method, add "targ" parameter.
1426 (struct target_ops): Declare.
1427 * gdbarch.h, gdbarch.c: Re-generate.
1428 * Makefile.in (c-valprint.o): Update dependencies.
1429 * arch-utils.h: Update copyright.
1430 (convert_from_func_ptr_addr_identity): Declare.
1431 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1432 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1433 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1434 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1435 * infcall.c (find_function_addr, call_function_by_hand): Update.
1436 * c-valprint.c: Include "target.h".
1437 (print_function_pointer_address): Update.
1438
f1c07ab0
AC
14392003-10-22 Andrew Cagney <cagney@redhat.com>
1440
1441 * target.c (target_close): New function.
1442 (debug_to_close): Use "target_close".
1443 (push_target): Use "target_close".
1444 (unpush_target): Use "target_close".
1445 (pop_target): Use "target_close".
1446 * target.h (struct target_ops): Add "to_xclose".
1447 (target_open): Delete macro. Move comment to "to_open".
1448 (target_close): Replace macro with function that takes a target.
1449 * top.c (quit_target): Pass "current_target" to "target_close".
1450
5520a790
EZ
14512003-10-21 Elena Zannoni <ezannoni@redhat.com>
1452
1453 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1454 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1455 * symtab.h (lookup_minimal_symbol_text): Update.
1456 * breakpoint.c (create_overlay_event_breakpoint,
1457 create_longjmp_breakpoint): Update callers.
1458 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1459 * symtab.c (find_pc_sect_line): Ditto.
1460
caa92b73
AC
14612003-10-21 Andrew Cagney <cagney@redhat.com>
1462
1463 * target.c (errno): Delete extern declaration.
1464
aa2a9a3c
JJ
14652003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1466
1467 * ia64-tdep.c: Change all occurrences of
1468 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1469 (ia64_frame_prev_register): Minor whitespace change.
1470
4beec2b7
MC
14712003-10-20 Michael Chastain <mec@shout.net>
1472
1473 * config/djgpp/fnchange.lst: Add lines for:
1474 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1475 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1476 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1477 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1478 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1479 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1480 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1481
92ad9cd9
AC
14822003-10-20 Andrew Cagney <cagney@redhat.com>
1483
1484 * values.c (register_value_being_returned): Update comments. Use
1485 "gdbarch_return_value" when available.
1486 (using_struct_return): Ditto.
1487 (set_return_value): Ditto. Use "gdbarch_return_value" when
1488 available.. Print a warning, and not an error, when an unhandled
1489 return type is encountered.
1490 * infcmd.c: Include "gdb_assert.h".
1491 (print_return_value): When gdbarch_return_value_p, and using
1492 struct return, assume that the value is not available.
1493 * defs.h (return_value_convention): Define.
1494 * gdbarch.sh (gdbarch_return_value): New predicate method.
1495 * gdbarch.h, gdbarch.c: Re-generate
1496 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1497
198beae2
AC
14982003-10-20 Andrew Cagney <cagney@redhat.com>
1499
1500 * symtab.c: Replace "struct sec" with "struct bfd_section".
1501 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1502
24d693a6 15032003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1504
1505 * config/djgpp/fnchange.lst: Add lines for:
1506 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1507 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1508 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1509
21ad8dc3
MK
15102003-10-19 Mark Kettenis <kettenis@gnu.org>
1511
1512 * amd64fbsd-nat.c (fetch_inferior_registers,
1513 store_inferior_registers): Remove functions.
1514 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1515
cced5e27
MK
15162003-10-18 Mark Kettenis <kettenis@gnu.org>
1517
1518 Add NetBSD/amd64 native configuration:
1519 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1520 * amd64nbsd-tdep.c: New file.
1521 * amd64nbsd-nat.c: New file.
1522 * amd64bsd-nat.c: New file.
1523 * config/i386/nbsd64.mh: New file.
1524 * config/i386/nbsd64.mt: New file.
1525 * configure.host: Add x86_64-*-netbsd*.
1526 * configure.tgt: Add x86_64-*-netbsd*.
1527 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1528 New targets.
1529 * NEWS (New native configurations): Mention NetBSD/amd64.
1530
666de3fd
MC
15312003-10-17 Michael Chastain <mec@shout.net>
1532
1533 * config/djgpp/fnchange.lst: Remove dead lines for:
1534 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1535 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1536 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1537 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1538 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1539 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1540 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1541 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1542 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1543 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1544 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1545 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1546 gdb/config/sparc/tm-sparclite.h,
1547 gdb/gdbtk/generic/ChangeLog-2001,
1548 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1549 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1550 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1551 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1552 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1553 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1554 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1555 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1556 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1557 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1558 itcl/iwidgets3.0.0/demos/fileselectionbox,
1559 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1560 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1561 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1562 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1563 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1564 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1565 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1566 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1567 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1568 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1569 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1570 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1571 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1572 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1573 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1574 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1575 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1576 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1577 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1578 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1579 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1580 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1581 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1582 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1583 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1584 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1585 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1586 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1587 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1588 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1589 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1590 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1591 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1592 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1593 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1594 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1595 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1596 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1597 itcl/iwidgets3.0.0/demos/scrolledframe,
1598 itcl/iwidgets3.0.0/demos/scrolledhtml,
1599 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1600 itcl/iwidgets3.0.0/demos/scrolledtext,
1601 itcl/iwidgets3.0.0/demos/selectionbox,
1602 itcl/iwidgets3.0.0/demos/selectiondialog,
1603 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1604 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1605 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1606 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1607 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1608 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1609 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1610 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1611 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1612 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1613 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1614 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1615 itcl/iwidgets3.0.0/doc/selectionbox.n,
1616 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1617 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1618 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1619 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1620 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1621 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1622 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1623 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1624 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1625 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1626 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1627 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1628 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1629 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1630 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1631 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1632 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1633 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1634 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1635 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1636 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1637 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1638 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1639 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1640 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1641 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1642 itcl/iwidgets3.0.0/tests/selectionbox.test,
1643 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1644 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1645 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1646 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1647 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1648 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1649 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1650 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1651 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1652 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1653 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1654 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1655 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1656 tk/mac/tkMacProjects.sit.hqx.
1657
1e3ff5ad
AC
16582003-10-17 Andrew Cagney <cagney@redhat.com>
1659
8db32d44
AC
1660 * target.c (target_section_by_addr): New function.
1661 (do_xfer_memory): Use "target_section_by_addr".
1662 * target.h (target_section_by_addr): Declare.
1663
1e3ff5ad
AC
1664 * target.h (struct target_ops): Add "to_read_partial" and
1665 "to_write_partial", delete "to_query".
1666 (target_read_partial, target_write_partial): Declare.
1667 (target_read, target_write): Declare.
1668 (target_query): Delete macro.
1669 * target.c (target_read_partial): New function.
1670 (target_write_partial, target_read, target_write): New function.
1671 (update_current_target): Delete inheritance of "to_query". Add
1672 comments about "to_read_partial" and "to_write_partial".
1673 (debug_to_partial_read, debug_to_partial_write): New functions.
1674 (debug_to_query): Delete function.
1675 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1676 instead of "to_query".
1677 * remote.c (remote_read_partial): Replace "remote_query".
1678 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1679 (init_remote_async_ops): Ditto.
1680 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1681 "target_read_partial" instead of "target_query".
1682 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1683 Use "target_read_partial" instead of "target_query".
1684
48c66725
JJ
16852003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1686
1687 * frame.h (struct frame_id): Add new field: special_addr.
1688 (frame_id_build_special): New prototype.
1689 * frame.c (frame_id_build_special): New function.
1690 (frame_id_build): Change to call frame_id_build_special().
1691 (frame_id_eq): Change to also test special_addr field.
1692 (frame_id_inner): Update comment.
1693
7998dfc3
AC
16942003-10-17 Andrew Cagney <cagney@redhat.com>
1695
1696 * target.c (update_current_target): Perform the target cleanup.
1697 Put the target stack beneath the squashed "current_target".
1698 (add_target): Delete disabled call to "cleanup_target".
1699 (cleanup_target): Delete function.
1700 (push_target, unpush_target): Do not call "cleanup_target".
1701
9c04404e 17022003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1703
1704 * target.c (target_stack): Change to a static target_ops.
1705 (update_current_target): Walk the "struct target_ops" stack.
1706 (pop_target, do_xfer_memory, target_info): Ditto.
1707 (find_target_beneath): Ditto.
1708 (push_target): Rewrite to use the "struct target_ops" stack.
1709 (unpush_target): Ditto.
1710 * target.h (struct target_stack_item): Delete definition.
1711 (target_stack): Delete declaration.
1712 (struct target_ops): Add field "beneath".
1713
c98a2b49 17142003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1715
1716 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1717 declaration.
1718 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1719 (h8300_examine_prologue): Use h8300_normal_mode flag
1720 (h8300_gdbarch_init): Set architecture info for normal mode
1721
506fb367
DJ
17222003-10-16 Daniel Jacobowitz <drow@mvista.com>
1723
1724 * remote.c (remote_protocol_vcont): New variable.
1725 (set_remote_protocol_vcont_packet_cmd): New function.
1726 (show_remote_protocol_vcont_packet_cmd): New function.
1727 (init_all_packet_configs): Handle remote_protocol_vcont.
1728 (remote_vcont_probe): New function.
1729 (remote_vcont_resume): New function.
1730 (remote_resume): Use it.
1731 (remote_async_resume): Call remote_resume.
1732 (_initialize_remote): Add verbose-resume packet commands.
1733
65815ea1
AC
17342003-10-16 Andrew Cagney <cagney@redhat.com>
1735
1736 * infrun.c (handle_inferior_event): Add comment about
1737 "frame_id_inner" being too weak.
1738
40324f1b
EZ
17392003-10-16 Elena Zannoni <ezannoni@redhat.com>
1740
1741 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1742 second parameter, which is always null. Remove
1743 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1744 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1745 accordingly.
1746 * somsolib.c (som_solib_create_inferior_hook,
1747 som_solib_desire_dynamic_linker_symbols): Update callers.
1748 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1749
17502003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1751
1752 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1753 debug interface, SDI (Scalable Debug Interface).
1754 * NEWS: Mention m32r SDI protocol was supported.
1755 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1756 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1757
51931cbb
JJ
17582003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1759
1760 * ia64-linux-tdep.c: Include gdbcore.h.
1761 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1762 (ia64_linux_sigcontext_register_addr): Find the address of the
1763 sigcontext area stored in the sigframe instead of using
1764 a magic offset constant.
1765
84e7fd53
AC
17662003-10-15 Andrew Cagney <cagney@redhat.com>
1767
1768 * remote.c (remote_search): Delete function.
1769 * target.h (target_search): Delete disabled macro.
1770 (struct target_ops): Delete disabled field "to_search".
1771
0f4d7c52
KB
17722003-10-14 Kevin Buettner <kevinb@redhat.com>
1773
1774 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1775 instead of deprecated_inside_entry_file().
1776
2e952408
CV
17772003-10-14 Corinna Vinschen <vinschen@redhat.com>
1778
1779 * sh-tdep.c: Fix copy/paste hangover in comment.
1780 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1781 mode.
1782 (sh3e_sh4_extract_return_value): Ditto.
1783
7e86466e
RH
17842003-10-13 Richard Henderson <rth@redhat.com>
1785
1786 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1787 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1788 match c_val_print a bit closer.
1789
46a16dba
KB
17902003-10-13 Kevin Buettner <kevinb@redhat.com>
1791
1792 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1793 (frv_gdbarch_adjust_breakpoint_address): New function.
1794 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1795 method.
1796
76897487
KB
17972003-10-13 Kevin Buettner <kevinb@redhat.com>
1798
1799 * breakpoint.h (struct breakpoint): Add new member
1800 ``requested_address''.
1801 * breakpoint.c (breakpoint_adjustment_warning)
1802 (adjust_breakpoint_address): New static functions.
1803 (print_it_typical): Issue warning if breakpoint's address is different
1804 from its requested address.
1805 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1806 (breakpoint_re_set_one): Set breakpoint's
1807 ``requested_address'' field. Set ``address'' field to the
1808 result of calling adjust_breakpoint_address() on the requested
1809 address.
1810
a1131521
KB
18112003-10-13 Kevin Buettner <kevinb@redhat.com>
1812
1813 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1814 * gdbarch.h, gdbarch.c: Regenerate.
1815
6ce6d90f
MK
18162003-10-11 Mark Kettenis <kettenis@gnu.org>
1817
155c1d33
MK
1818 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1819 TDEP->sc_num_regs.
1820
8a96bc77
MK
1821 * i386fbsd-tdep.c: New file.
1822 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1823 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1824 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1825 i386bsd-tdep.c.
1826 (_initialize_i386fbsd_tdep): New function.
1827 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1828 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1829 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1830 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1831 TDEP->sc_num_regs.
1832 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1833 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1834 to initialize TDEP->sc_num_regs.
1835 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1836 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1837 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1838 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1839 FreeBSD ELF OS/ABI's here.
1840 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1841 (i386fbsd-tdep.o): New target.
1842 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1843 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1844
477f40d1
MK
1845 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1846 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1847 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1848 in initialization of TDEP->sc_num_regs.
1849
c6b33596
MK
1850 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1851 (x86_64_init_abi): Initialize regset_from_core_section if
1852 appropriate.
1853
8446b36a
MK
1854 * i386-tdep.c (i386_regset_from_core_section): New function.
1855 (i386_gdbarch_init): Initialize regset_from_core_section if
1856 appropriate.
1857 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1858
c783cbd6
MK
1859 * i386-tdep.h (struct regset): Declare opaque.
1860
6ce6d90f
MK
1861 * gdbarch.sh (regset_from_core_section): New method.
1862 (struct regset): Declare opaque.
1863 * gdbarch.c, gdbarch.h: Regenerated.
1864
b98ed7be
AM
18652003-10-11 Alan Modra <amodra@bigpond.net.au>
1866
1867 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1868 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1869 Correct test for pc within section.
1870
f6214256
MK
18712003-10-11 Mark Kettenis <kettenis@gnu.org>
1872
1873 * gdbarch.sh: Remove trailing whitepsace from comments.
1874
a8f4cde1
RM
18752003-10-08 Roland McGrath <roland@redhat.com>
1876
1877 * gcore.c (make_mem_sec): Function removed, folded into ...
1878 (gcore_create_callback): ... here. To omit a section, clear its
1879 SEC_LOAD bit rather than zeroing its size.
1880 Omit read-only sections only if they correspond to a known disk file.
1881 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1882
74276724
MS
18832003-10-10 Michael Snyder <msnyder@redhat.com>
1884
1885 * d10v-tdep.c: Fix typo in comment.
1886
e754ae69
AC
18872003-10-10 Andrew Cagney <cagney@redhat.com>
1888
1889 * rs6000-tdep.c (e500_store_return_value): Delete function.
1890 (e500_extract_return_value): Delete function.
1891 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1892 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1893 "ppc_sysv_abi_restore_return_value" where applicable.
1894 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1895 (ppc_sysv_abi_extract_return_value): Declare.
1896 (ppc_sysv_abi_broken_store_return_value): Declare.
1897 (ppc_sysv_abi_broken_extract_return_value): Declare.
1898 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1899 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1900 start of file.
1901 (do_ppc_sysv_return_value): New function.
1902 (ppc_sysv_abi_extract_return_value): New function.
1903 (ppc_sysv_abi_store_return_value): New function.
1904 (ppc_sysv_abi_broken_extract_return_value): New function.
1905 (ppc_sysv_abi_broken_store_return_value): New function.
1906 (ppc_sysv_abi_use_struct_convention): Call
1907 do_ppc_sysv_return_value.
1908
8d4ce20a
JB
19092003-10-10 J. Brobecker <brobecker@gnat.com>
1910
1911 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1912 to lookup the main function symbol.
1913
afce3d2a
CV
19142003-10-10 Corinna Vinschen <vinschen@redhat.com>
1915
1916 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1917 types correctly.
1918 (sh_push_dummy_call_fpu): Fix argument passing rules.
1919 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1920 float types.
1921 (sh3e_sh4_store_return_value): Ditto.
1922
7fe958be
EZ
19232003-10-10 Elena Zannoni <ezannoni@redhat.com>
1924
1925 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1926 comment.
1927
3f997a97
CV
19282003-10-10 Corinna Vinschen <vinschen@redhat.com>
1929
1930 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1931 more readable code. Accomodate passing of bitfields.
1932
8be9034a
AC
19332003-10-10 Andrew Cagney <cagney@redhat.com>
1934
1935 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1936 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1937 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1938 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1939 (ppc64_sysv_abi_push_dummy_call): New function.
1940 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1941 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1942 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1943
85a453d5
KI
19442003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1945
1946 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1947 * README: Ditto.
1948 * d10v-tdep.c: Ditto.
1949 * h8300-tdep.c: Ditto.
1950 * remote-e7000.c: Ditto.
1951 * remote-hms.c: Ditto.
1952 * ser-e7kpc.c: Ditto.
1953 * sh-stub.c: Ditto.
1954 * sh-tdep.c: Ditto.
1955 * sh-tdep.h: Ditto.
1956 * sh3-rom.c: Ditto.
1957 * sh64-tdep.c: Ditto.
1958 * top.c: Ditto.
1959 * wince.c: Ditto.
1960 * config/d10v/d10v.mt: Ditto.
1961 * config/sh/embed.mt: Ditto.
1962 * config/sh/linux.mt: Ditto.
1963 * config/sh/tm-linux.h: Ditto.
1964 * config/sh/tm-sh.h: Ditto.
1965 * config/sh/wince.mt: Ditto.
1966
221c12ff
AC
19672003-10-09 Andrew Cagney <cagney@redhat.com>
1968
1969 * ppc-tdep.h (struct type): Declare opaque.
1970 * x86-64-tdep.h (struct regcache): Declare opaque.
1971 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1972 coding style.
1973
ef5200c1
AC
19742003-10-09 Andrew Cagney <cagney@redhat.com>
1975
1976 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1977 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1978 (SOFTWARE_SINGLE_STEP_P): Ditto.
1979 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1980 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1981 (SOFTWARE_SINGLE_STEP_P): Ditto.
1982 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1983 software_single_step to rs6000_software_single_step.
a8f4cde1 1984
9644bbdd
AC
19852003-10-09 Andrew Cagney <cagney@redhat.com>
1986
1987 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1988
db72fa6b
MS
19892003-10-09 Michael Snyder <msnyder@redhat.com>
1990
f3efb16c
MS
1991 * frame.h: Fix typo in comment.
1992 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1993 * d10v-tdep.c: Random whitespace/comment tweaks.
1994
9a5cef92
EZ
19952003-10-09 Elena Zannoni <ezannoni@redhat.com>
1996
1997 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1998 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1999 on stack.
a8f4cde1 2000
9a5cef92
EZ
2001 Based on input by Stephen Clarke (stephen.clarke@superh.com):
2002 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
2003 in detail.
a8f4cde1 2004
0f317a0c
DJ
20052003-10-09 Daniel Jacobowitz <drow@mvista.com>
2006
2007 * remote-mips.c (mips_initialize): Remove unneeded call to
2008 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
2009
bbab2f46
DJ
20102003-10-09 Daniel Jacobowitz <drow@mvista.com>
2011
2012 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
2013 a memory pointer.
2014
550950b8
JJ
20152003-10-08 Jeff Johnston <jjohnstn@redhat.com>
2016
2017 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
2018 for any lwp we resume.
2019 (running_callback): Add lwps that have pending status events
2020 against them to be considered running.
2021
15c69bc7
KI
20222003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
2023
2024 * m32r-tdep.c : Include "dis-asm.h".
2025 * Makefile.in (m32r-tdep.o): Update dependencies.
2026
51065942
JB
20272003-10-06 J. Brobecker <brobecker@gnat.com>
2028
2029 * completer.h (get_gdb_completer_word_break_characters): Delete.
2030 * completer.c: include language.h.
2031 (gdb_completer_word_break_characters): Delete.
2032 (get_gdb_completer_word_break_characters): Delete.
2033 (location_completer): Use the word break characters of the current
2034 language.
2035 (complete_line): Likewise.
2036 (line_completion_function): Likewise.
2037 (skip_quoted_chars): Likewise.
2038 * Makefile.in (completer.o): Add dependency on language.h.
2039 * top.c (init_main): Set the readline word break characters
2040 to GDB's default word break characters.
2041
6084f43a
JB
20422003-10-06 J. Brobecker <brobecker@gnat.com>
2043
2044 * language.h (language_defn): new field, la_word_break_characters.
2045 * language.c (unknown_language_defn): Set new field to
2046 default_word_break_characters.
2047 (auto_language_defn): Likewise.
2048 (local_language_defn): Likewise.
2049 * ada-lang.c (ada_language_defn): Likewise.
2050 * c-lang.c (c_language_defn): Likewise.
2051 (cplus_language_defn): Likewise.
2052 (asm_language_defn): Likewise.
2053 (minimal_language_defn): Likewise.
2054 * f-lang.c (f_language_defn): Likewise.
2055 * jv-lang.c (java_language_defn): Likewise.
2056 * m2-lang.c (m2_language_defn): Likewise.
2057 * objc-lang.c (objc_language_defn): Likewise.
2058 * p-lang.c (pascal_language_defn): Likewise.
2059 * scm-lang.c (scm_language_defn): Likewise.
2060
944fcfab
AC
20612003-10-06 Andrew Cagney <cagney@redhat.com>
2062
2063 * ppc-sysv-tdep.c: Re-indent.
2064
9f0a5303
JB
20652003-10-06 J. Brobecker <brobecker@gnat.com>
2066
2067 * language.h (default_word_break_characters): Add prototype.
2068 * language.c (default_word_break_characters): New function.
2069
7270b6ed
AS
20702003-10-06 Andreas Schwab <schwab@suse.de>
2071
2072 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2073 with %eax.
2074
a5d61f66
AC
20752003-10-06 Andrew Cagney <cagney@redhat.com>
2076
2077 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2078 "h8500-tdep.c".
2079 (z8k-tdep.o): Delete custom build rule.
2080
28a86f5c
AC
20812003-10-06 Andrew Cagney <cagney@redhat.com>
2082
1bfd8a83
AC
2083 * Makefile.in: Update all dependencies.
2084
17144ef8
AC
2085 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2086 No longer list PA as as obsolete candidate. List m32r as
2087 broken instead of obsolete.
a8f4cde1 2088
a5679ae5
AC
2089 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2090 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2091 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2092 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2093 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2094 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2095 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2096 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2097 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2098 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2099 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2100 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2101 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2102 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2103 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2104 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2105 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2106 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2107 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2108 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2109 * config/z8k/z8k.mt: Ditto.
2110
4a8269c0
AC
2111 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2112 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2113 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2114 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2115 sparclite were removed.
2116 * configure.host, configure.tgt: Remove corresponding tuples.
2117
41989fcd
AC
2118 * breakpoint.c, breakpoint.h: Remove obsolete code.
2119 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2120 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2121 * stabsread.h, xcoffread.c: Ditto.
2122
28a86f5c
AC
2123 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2124 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2125 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2126 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2127
4efdaa0d
DL
21282003-10-06 David Lecomber <dsl@sources.redhat.com>
2129
2130 * f-valprint.c: Reformatting
2131
ae53de43
MK
21322003-10-06 Mark Kettenis <kettenis@gnu.org>
2133
a8bb57e7
MK
2134 * x86-64-tdep.c: Remove duplicate comment.
2135
ae53de43
MK
2136 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2137 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2138 names for return values. This fixes a bug since we looked at %rbx
2139 instead of %rdx.
2140
473f17b0
MK
21412003-10-05 Mark Kettenis <kettenis@gnu.org>
2142
2c261fae
MK
2143 * x86-64-tdep.c: Include "regset.h".
2144
473f17b0
MK
2145 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2146 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2147 sizeof_fpregset.
2148 * i386-tdep.c: Include "regset.h".
2149 (i386_supply_gregset): New function.
2150 (i386_supply_fpregset): New function.
2151 (i386_gdbarch_init): Initialze register set-related members of
2152 TDEP.
2153 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2154 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2155
afd48b75
AC
21562003-10-03 Andrew Cagney <cagney@redhat.com>
2157
2158 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2159 set extract_return_value, store_return_value and
2160 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2161 ppc64_sysv_abi_store_return_value and
2162 ppc64_sysv_abi_use_struct_convention.
2163 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2164 (ppc64_sysv_abi_store_return_value): Declare.
2165 (ppc64_sysv_abi_use_struct_convention): Declare.
2166 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2167 (ppc64_sysv_abi_extract_return_value): New function.
2168 (ppc64_sysv_abi_store_return_value): New function.
2169 (ppc64_sysv_abi_use_struct_convention): New function.
2170 (ppc64_sysv_abi_return_value): New function.
2171
9b540880
AC
21722003-10-03 Andrew Cagney <cagney@redhat.com>
2173
2174 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2175 convert a descriptor to a function when it's in the ".opd"
2176 section.
2177
8748518b
CV
21782003-10-03 Corinna Vinschen <vinschen@redhat.com>
2179
2180 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2181 reg_size to keep GCC silent.
2182
0fd85043
CV
21832003-10-03 Corinna Vinschen <vinschen@redhat.com>
2184
2185 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2186 base for DW_EH_PE_textrel encodings.
2187 (read_encoded_value): Add a DW_EH_PE_textrel case.
2188 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2189 section.
2190
37b517aa
MK
21912003-10-03 Mark Kettenis <kettenis@gnu.org>
2192
2193 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2194
12c266ea
AC
21952003-10-02 Andrew Cagney <cagney@redhat.com>
2196
2197 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2198 REGISTER_RAW_SIZE.
2199 * gdbarch.h, gdbarch.c: Re-generate.
2200 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2201 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2202 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2203 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2204 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2205 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2206 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2207 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2208 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2209 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2210 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2211 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2212 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2213 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2214 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2215 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2216
78ba4af6
JB
22172003-10-02 Jim Blandy <jimb@redhat.com>
2218
2219 * dwarf2read.c (struct die_info): Doc fix.
2220
617daa0e
CV
22212003-10-02 Corinna Vinschen <vinschen@redhat.com>
2222
2223 * sh-tdep.c: Running thru gdb_indent.sh.
2224
e5e33cd9
CV
22252003-10-02 Corinna Vinschen <vinschen@redhat.com>
2226
2227 * sh-tdep.c (sh_justify_value_in_reg): New function.
2228 (sh_stack_allocsize): Ditto.
2229 (flt_argreg_array): New array used for floating point argument
2230 passing.
2231 (sh_init_flt_argreg): New function.
a8f4cde1 2232 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2233 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2234 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2235 Fix argument passing strategy.
2236 (sh_push_dummy_call_nofpu): Ditto.
2237
5fe830e4
AC
22382003-10-01 Andrew Cagney <cagney@redhat.com>
2239
2240 * value.h (register_value_being_returned): Declare. Replace
2241 "value_being_returned".
2242 * infcall.c (call_function_by_hand): Use
2243 register_value_being_returned.
2244 * infcmd.c (print_return_value): Call
2245 "register_value_being_returned", handle struct return locally.
2246 * values.c (register_value_being_returned): New function. Replace
2247 "value_being_returned".
a8f4cde1 2248
5fe830e4 22492003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2250
2251 * linux-proc.c (linux_do_registers): New function.
2252 (linux_make_note_section): Use linux_do_registers in case of
2253 single threaded inferior programs.
2254
64f395bf
AC
22552003-10-01 Andrew Cagney <cagney@redhat.com>
2256
2257 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2258 use STRUCT_ADDR. When not using "struct return convention", pass
2259 "0" to "value_being_returned". Add FIXMEs.
2260 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2261 value_being_returned. Add comments.
2262 * values.c (value_being_returned): Add fixme.
2263 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2264 (hppa_value_returned_from_stack): Add FIXME.
2265
639d11d3
DC
22662003-09-30 David Carlton <carlton@kealia.com>
2267
2268 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2269 'has_children' and 'next' by 'child' and 'sibling'.
2270 (read_comp_unit): Rework algorithm, breaking body into
2271 read_die_and_children and read_die_and_siblings.
2272 (read_die_and_children, read_die_and_siblings): New.
2273 (read_full_die): Add 'has_children' argument; set it instead of
2274 the die's 'has_children' field. Minor formatting cleanup.
2275 (free_die_list): Use die->child and die->sibling instead of
2276 die->next.
2277 (dump_die_list): Ditto.
2278 (sibling_die): Use die->sibling.
2279 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2280 'has_children' and 'next' fields.
a8f4cde1
RM
2281 (process_die, read_file_scope, read_func_scope)
2282 (read_lexical_block_scope, read_structure_scope)
2283 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2284 (read_namespace, read_subroutine_type, dump_die): Ditto.
2285
5bffac25
AC
22862003-09-30 Andrew Cagney <cagney@redhat.com>
2287
2288 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2289 to 224, not 220.
2290
f30992d4
AC
22912003-09-30 Andrew Cagney <cagney@redhat.com>
2292
2293 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2294 REGISTER_VIRTUAL_SIZE.
2295 * gdbarch.h, gdbarch.c: Regenerate.
2296 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2297 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2298 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2299
2e092625
AC
23002003-09-29 Andrew Cagney <cagney@redhat.com>
2301
2302 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2303 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2304 * gdbarch.h, gdbarch.c: Regenerate.
2305 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2306 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2307
2308 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2309 * remote-vxmips.c (vx_read_register): Ditto.
2310 * remote-vx68.c (vx_read_register): Ditto.
2311 * gnu-nat.c (inf_validate_procs): Ditto.
2312
7a5dd6ee
JB
23132003-09-29 J. Brobecker <brobecker@gnat.com>
2314
2315 * infcall.c (call_function_by_hand): Fix build failure
2316 introduced in the previous change to this file.
2317
1fe43d45
AC
23182003-09-29 Andrew Cagney <cagney@redhat.com>
2319
2320 * NEWS: Mention Objective-C.
2321
e28a332c
JG
23222003-09-29 Jerome Guitton <guitton@act-europe.fr>
2323
2324 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2325 test if the register has been saved on the stack.
2326 (arm_scan_prologue_cache): When analysing the instruction
2327 "str lr, [sp, #-4]", save the address where lr has been stored.
2328
9ff63c35
AC
23292003-09-28 Andrew Cagney <cagney@redhat.com>
2330
7f5f525d
AC
2331 * frame.c (frame_read_unsigned_register): Delete function.
2332 * frame.h (frame_read_unsigned_register): Delete declaration.
2333 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2334 get_frame_register_unsigned.
2335 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2336 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2337 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2338
7f5f525d
AC
2339 * frame.h (frame_read_register): Delete declaration.
2340 * frame.c (frame_read_register): Delete function.
2341 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2342 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2343 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2344 * mips-tdep.c (mips_register_to_value): Ditto.
2345 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2346 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2347
2348 * frame.c (frame_read_signed_register): Delete function.
2349 (frame_read_unsigned_register): Update comments.
2350 * frame.h (frame_read_signed_register): Delete declaration.
2351 * h8300-tdep.c (h8300_print_register): Use
2352 get_frame_register_signed.
2353 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2354
9ff63c35
AC
2355 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2356 Rename VALUE_RETURNED_FROM_STACK.
2357 * infcmd.c (print_return_value): Update.
2358 * infcall.c (call_function_by_hand): Update.
2359
41d041d6
MK
23602003-09-28 Mark Kettenis <kettenis@gnu.org>
2361
2362 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2363 regcache argument and reverse the order of the other two
2364 arguments. Remove local regcache variable. Determine
2365 architecture from REGCACHE. Update comments.
2366 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2367 reverse the order of the other two arguments. Remove local
2368 regcache variable. Determine architecture from REGCACHE. Update
2369 comments.
2370 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2371 prototypes. Update comments.
2372 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2373 comment.
2374 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2375 Update.
2376 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2377 * i386-interix-nat.c (supply_fpregset): Update.
2378 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2379 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2380 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2381 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2382 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2383 Update.
2384 * i386obsd-tdep.c (fetch_core_registers): Update.
2385 * i386v4-nat.c (supply_fpregset): Update.
2386 * x86-64-linux-nat.c (supply_fpregset): Update.
2387 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2388
1cb97e17
MK
23892003-09-27 Mark Kettenis <kettenis@gnu.org>
2390
5716833c
MK
2391 * i386-tdep.h: Put opaque declarations in alphabetical
2392 order. Remove spurious whitespace.
2393 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2394 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2395 * i386-tdep.c (MM0_REGNUM): Remove define.
2396 (i386_mmx_regnum_p): Add gdbarch argument.
2397 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2398 Rewrite using new macro definitions for FPU/SSE registers.
2399 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2400 definitions from i387-tdep.h.
2401 (i386_register_name): Update.
2402 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2403 new macro definitions for FPU/SSE registers.
2404 (i386_extract_return_value): Determine whether floating-point
2405 registers are present by examining REGCACHE's architecture.
2406 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2407 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2408 FPU/SSE registers.
2409 (i386_register_type): Update.
2410 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2411 definitions for FPU registers. Use REGCACHE's architecture to
2412 determine the appropriate register numbers.
2413 (i386_pseudo_register_read, i386_pseudo_register_write,
2414 i386_register_reggroup_p): Update.
2415 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2416 TDEP->mm0_regnum.
2417 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2418 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2419 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2420 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2421 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2422 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2423 *' to `void *'.
2424 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2425 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2426 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2427 definitions for FPU/SSE registers.
2428 (FXSAVE_MXCSR_ADDR): New define.
2429 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2430 TDEP->mm0_regnum.
2431 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2432 (I387_ST0_REGNUM): Define.
2433
41d35cb0
MK
2434 * regcache.h (get_regcache_arch): New prototype.
2435 * regcache.c (get_regcache_arch): New function.
2436
54e74f72
MK
2437 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2438 whitespace.
2439
1cb97e17
MK
2440 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2441 Initialize using ARRAY_SIZE.
2442
0968aa8c
AC
24432003-09-27 Andrew Cagney <cagney@redhat.com>
2444
2445 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2446 "init_frame_pc_default".
2447 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2448 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2449 * vax-tdep.c (vax_gdbarch_init): Update.
2450 * v850-tdep.c (v850_gdbarch_init): Update.
2451 * sh64-tdep.c (sh64_gdbarch_init): Update.
2452 * s390-tdep.c (s390_gdbarch_init): Update.
2453 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2454 * mcore-tdep.c (mcore_gdbarch_init): Update.
2455 * h8300-tdep.c (h8300_gdbarch_init): Update.
2456 * cris-tdep.c (cris_gdbarch_init): Update.
2457 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2458
54c84734
MK
24592003-09-26 Mark Kettenis <kettenis@gnu.org>
2460
2461 * regset.h: New file.
2462 * Makefile.in (regset_h): Add.
2463
1b1d3794
AC
24642003-09-25 Andrew Cagney <cagney@redhat.com>
2465
2466 * frame.h (deprecated_frame_saved_regs): Rename
2467 get_frame_saved_regs.
2468 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2469 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2470 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2471 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2472 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2473
e6beb428
AC
24742003-09-25 Andrew Cagney <cagney@redhat.com>
2475
2476 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2477 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2478 and Java.
2479 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2480 arm*-*-* do not use the new frame code.
2481
710122da
DC
24822003-09-25 David Carlton <carlton@kealia.com>
2483
2484 * c-exp.y: Remove 'register' declarations.
2485 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2486
79c2c32d
DC
24872003-09-25 David Carlton <carlton@kealia.com>
2488
2489 * c-exp.y: Include cp-support.h. Add qualified_type.
2490 (yylex): Delete nested type hack; add comments.
2491 * cp-namespace.c (cp_lookup_nested_type): New function.
2492 * cp-support.h: Declare cp_lookup_nested_type.
2493 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2494 instead of value_struct_elt_for_reference.
2495 * valops.c: Include cp-support.h.
2496 (value_aggregate_elt): New function.
2497 (value_namespace_elt): Ditto.
2498 (value_struct_elt_for_reference): Make static.
2499 * value.h: Delete declaration of value_struct_elt_for_reference;
2500 add declaration for value_aggregate_elt.
2501 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2502 (valops.o): Ditto.
2503
898c62f5
DJ
25042003-09-25 Daniel Jacobowitz <drow@mvista.com>
2505
2506 * stack.c: Include "reggroups.h".
2507 (frame_info): Only display registers in all_reggroup.
2508 * Makefile.in (stack.o): Update dependencies.
2509
28cd8767
JG
25102003-09-25 Jerome Guitton <guitton@act-europe.fr>
2511
2512 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2513 "add ip, sp #n" in the prologue.
2514 (arm_scan_prologue): Ditto.
2515
a4ab2b5d
JG
25162003-09-25 Jerome Guitton <guitton@act-europe.fr>
2517
2518 * MAINTAINERS (write after approval): Add myself.
2519
3f244638
AS
25202003-09-25 Andreas Schwab <schwab@suse.de>
2521
2522 * m68k-tdep.c: Include "dwarf2-frame.h".
2523 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2524 * Makefile.in (m68k-tdep.o): Update dependencies.
2525
1c0159e0
CV
25262003-09-25 Corinna Vinschen <vinschen@redhat.com>
2527
2528 * sh-tdep.c (struct frame_extra_info): Remove.
2529 (struct sh_frame_cache): New structure.
2530 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2531 (GET_TARGET_REG): Ditto but target register.
2532 (GET_PUSHED_REG): Remove.
2533 (IS_MOV_ARG_TO_REG): New macro.
2534 (IS_MOV_ARG_TO_IND_R14): New macro.
2535 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2536 (IS_MOVW_PCREL_TO_REG): New macro.
2537 (IS_MOVL_PCREL_TO_REG): New macro.
2538 (IS_SUB_REG_FROM_SP): New macro.
2539 (IS_ARG_MOV): Remove.
2540 (IS_MOV_TO_R14): Remove.
2541 (IS_RESTORE_FP): New macro.
2542 (IS_RTS): New macro.
2543 (IS_LDS): New macro.
2544 (IS_MOV_FP_SP): New macro.
2545 (IS_ADD_REG_TO_FP): New macro.
2546 (IS_ADD_IMM_FP): New macro.
2547 (sh_skip_prologue_hard_way): Remove.
2548 (sh_saved_pc_after_call): Remove.
2549 (sh_frame_chain): Remove.
2550 (sh_find_callers_reg): Remove.
a8f4cde1 2551 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2552 (sh_fp_frame_init_saved_regs): Remove.
2553 (sh_init_extra_frame_info): Remove.
2554 (sh_analyze_prologue): New function.
2555 (sh_skip_prologue): Remove deprecated code. Rely on new function
2556 sh_analyze_prologue when after_prologue fails.
2557 (sh_frame_saved_pc): Remove.
2558 (sh_alloc_frame_cache): New function.
2559 (sh_frame_cache): Ditto.
2560 (sh_frame_prev_register): Ditto.
2561 (sh_frame_this_id): Ditto.
2562 (sh_frame_unwind): New structure defining the heuristic frame
2563 sniffer interface.
2564 (sh_frame_sniffer): New function.
2565 (sh_unwind_sp): Ditto.
2566 (sh_unwind_pc): Ditto.
2567 (sh_unwind_dummy_id): Ditto.
2568 (sh_frame_base_address): Ditto.
2569 (sh_frame_base): New structure defining new frame base code.
2570 (sh_in_function_epilogue_p): New function.
2571 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2572 code and to call all new code instead. Initialize dwarf2 and
2573 heuristic frame sniffer.
2574
5f9769d1
PH
25752003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2576
a8f4cde1
RM
2577 * parser-defs.h (struct exp_descriptor): New definition, containing
2578 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2579 evaluating expressions.
2580 (exp_descriptor_standard): Declare new variable.
2581 (print_subexp): Make global and declare here (from expprint.c).
2582 (dump_subexp): Ditto.
2583 (dump_subexp_body_standard): Declare.
2584 (operator_length_standard): Declare.
2585 (op_name_standard): Declare.
2586 (print_subexp): Declare.
2587 (print_subexp_standard): Declare.
2588
2589 * language.h (struct language_defn): Add la_exp_desc field to hold
2590 pointer to table for language-specific operators.
2591 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2592
2593 * parse.c (operator_length): Move most code to new
5f9769d1 2594 operator_length_standard function. Use language-specific information.
a8f4cde1 2595 (operator_length_standard): New function taking most code from
5f9769d1
PH
2596 operator_length.
2597 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2598
2599 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2600 and OP_EXTENDED_LAST.
a8f4cde1
RM
2601
2602 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2603 Make global; remove static declaration.
2604 Move most code to print_subexp_standard.
a8f4cde1 2605 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2606 print_subexp.
2607 (op_name): Add expression to argument signature.
a8f4cde1 2608 Use langauge-specific op_name.
5f9769d1
PH
2609 Move most code to op_name_standard.
2610 (op_name_standard): New function, containing code formerly in op_name.
2611 (dump_subexp): Use new version of op_name function.
2612 Use language-specific dump_subexp_body, and move most existing code to
2613 dump_subexp_body_standard.
2614 (dump_raw_expression): Use new op_name interface.
2615 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2616 (dump_subexp_body_standard): New function, containing code formerly
2617 in dump_subexp_body.
a8f4cde1 2618
5f9769d1
PH
2619 * language.c (unknown_language): Add default la_exp_desc field and
2620 remove evaluate_exp field.
2621 (auto_language): Ditto.
2622 (local_language): Ditto.
2623 * f-lang.c (f_language_defn): Ditto.
2624 * c-lang.c (c_language_defn): Ditto.
2625 (cplus_language_defn): Ditto.
2626 (asm_language_defn): Ditto.
2627 (minimal_language_defn): Ditto.
2628 * p-lang.c (pascal_language_defn): Ditto.
2629 * m2-lang.c (m2_language_defn): Ditto.
2630 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2631
2632 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2633 Java-specific expression evaluator.
2634 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2635 field.
a8f4cde1 2636 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2637 Scheme-specific expression evaluator.
2638 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2639 field.
2640 * objc-lang.c (print_object_command): Take evaluate_exp from the
2641 la_exp_desc field.
a8f4cde1 2642
5f9769d1 2643 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2644
2645 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2646 la_exp_desc's type.
2647 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2648
24daaebc
PH
26492003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2650
2651 * parser-defs.h (operator_length): Declare.
a8f4cde1 2652
24daaebc
PH
2653 * parse.c (length_of_subexp): Use operator_length to get operator
2654 lengths and arities for operators.
2655 Move most code to new operator_length function.
a8f4cde1 2656 (operator_length): New function absorbing most code from
24daaebc
PH
2657 length_of_subexp.
2658 (prefixify_subexp): Remove large case and use operator_length instead.
2659 (parse_exp_1): Use renamings:
a8f4cde1 2660 dump_prefix_expression => dump_raw_expression and
24daaebc 2661 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2662
24daaebc
PH
2663 * expression.h (dump_prefix_expression): Rename to ...
2664 (dump_raw_expression): New name.
2665 (dump_postfix_expression): Rename to ...
2666 (dump_prefix_expression): New name.
a8f4cde1 2667
24daaebc
PH
2668 * expprint.c (dump_subexp): Make global. Add comment.
2669 Move most existing code to dump_subexp_body.
2670 (dump_subexp_body): New function.
2671 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2672 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2673 work before the expression is prefixified.
2674 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2675 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2676 that's what it does.
a8f4cde1 2677 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2678 prefixified expression.
2679 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2680
8c2957c4
JB
26812003-09-22 Jim Blandy <jimb@redhat.com>
2682
2683 * dwarf2read.c (read_array_type): When building the type for an
2684 array of unspecified length, make sure to choose the upper bound
2685 so that the array's total length comes out to be zero --- that's
2686 how we represent such arrays.
2687
592e3010
MC
26882003-09-22 Michael Chastain <mec@shout.net>
2689
2690 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2691
365c70b1
JJ
26922003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2693
2694 * top.c (quit_force): Fix indirect call to quit_target so
2695 a struct qt_args pointer is passed.
2696
5d6eb653
AC
26972003-09-22 Andrew Cagney <cagney@redhat.com>
2698
2699 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2700 * arch-utils.c (init_frame_pc_noop): Delete function.
2701 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2702 "init_frame_pc".
2703 * mips-tdep.c (mips_gdbarch_init): Ditto.
2704 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2705 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2706 declaration.
2707 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2708 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2709 declaration.
2710 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2711
b222a67f
AG
27122003-09-22 Anthony Green <green@redhat.com>
2713
2714 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2715 declaration.
2716
d5b5ac79
AC
27172003-09-20 Andrew Cagney <cagney@redhat.com>
2718
deafb061
AC
2719 * breakpoint.c: Eliminate ARGSUSED.
2720 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2721 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2722 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2723 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2724 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2725 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2726 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2727 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2728 * wince.c, remote-vx.c: Ditto.
2729
d5b5ac79
AC
2730 * cli/cli-script.c: Remove "register" attributes.
2731 * config/pa/tm-hppa.h: Ditto.
2732 * cli/cli-decode.c: Ditto.
2733 * cli/cli-cmds.c: Ditto.
2734
c6316faa
AC
27352003-09-19 Andrew Cagney <cagney@redhat.com>
2736
2737 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2738 DEPRECATED_NPC_REGNUM.
2739 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2740
f4f99b11
CF
27412003-09-19 Christopher Faylor <cgf@redhat.com>
2742
2743 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2744
1708f284
JB
27452003-09-19 Jim Blandy <jimb@redhat.com>
2746
2747 * macrotab.c (macro_include): Use the correct comparison to find
2748 the appropriate place for this inclusion in the list.
2749
b9fbf434
AC
27502003-09-19 Andrew Cagney <cagney@redhat.com>
2751
2752 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2753 (DEPRECATED_HPUX_TEXT_END): Define.
2754 (deprecated_hpux_text_end): Declare.
2755 (struct target_ops): Declare opaque.
2756 * hppah-nat.c (text_end): Make static.
2757 (deprecated_hpux_text_end): New function.
2758 * exec.c (text_end): Delete global variable.
2759 (NEED_TEXT_START_END): Do not define.
2760 (exec_file_attach): Replace code computing "text_end" code with
2761 call to DEPRECATED_HPUX_TEXT_END.
2762
5b03f266
AC
27632003-09-19 Andrew Cagney <cagney@redhat.com>
2764
2765 * utils.c (align_up, align_down): New functions.
2766 * defs.h (align_up, align_down): Declare.
2767 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2768 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2769 and "align_down".
2770 (round_up, round_down): Delete functions.
2771 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2772 "align_down".
2773 (ROUND_DOWN, ROUND_UP): Delete macros.
2774 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2775 * h8300-tdep.c: Replace "round_up" and "round_down" with
2776 "align_up" and "align_down".
2777 (round_up, round_down): Delete macros.
2778 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2779 "align_down".
2780 (ROUND_UP, ROUND_DOWN): Delete macros.
2781
51db5742
JB
27822003-09-18 J. Brobecker <brobecker@gnat.com>
2783
2784 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2785 hard-coded constant. Use the proper machine name instead.
2786
77949794
AC
27872003-09-17 Andrew Cagney <cagney@redhat.com>
2788
2789 * sparc-tdep.c (legacy_register_name): Delete function.
2790 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2791 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2792 * infcmd.c (gdb_register_name): Delete variable.
2793 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2794 REGISTER_NAME and "tm.h".
2795 * gdbarch.h, gdbarch.c: Regenerate.
2796 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2797 REGISTER_NAMES in comments.
2798 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2799 * m68klinux-nat.c (regmap): Ditto.
2800
b55c33cc
JB
28012003-09-17 Jim Blandy <jimb@redhat.com>
2802
2803 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2804
957e27ac
AC
28052003-09-17 Andrew Cagney <cagney@redhat.com>
2806
2807 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2808 (ppcnbsd_init_abi): Set "use_struct_convention" to
2809 "ppcnbsd_use_struct_convention".
2810
192cb3d4
MK
28112003-09-17 Mark Kettenis <kettenis@gnu.org>
2812
2813 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2814 * gdbarch.h, gdbarch.c: Regenerate.
2815 (stabs_argument_has_addr): New architecture method.
2816 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2817 * arch-utils.c: Include "buildsym.h".
2818 (default_stabs_argument_has_addr): New function.
2819 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2820 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2821
efe59759
AC
28222003-09-17 Andrew Cagney <cagney@redhat.com>
2823
2824 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2825 * gdbarch.h, gdbarch.c: Regenerate.
2826 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2827 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2828 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2829 * sparcnbsd-tdep.c: Update.
a8f4cde1 2830
62700349
AC
28312003-09-17 Andrew Cagney <cagney@redhat.com>
2832
2833 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2834 * gdbarch.h, gdbarch.c: Regenerate.
2835 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2836 * d10v-tdep.c, frame.c: Update.
2837 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2838 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2839 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2840 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2841 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2842 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2843 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2844 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2845 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2846 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2847 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2848 * config/pa/nm-hppah.h: Update.
2849
b9ff3018
AC
28502003-09-16 Andrew Cagney <cagney@redhat.com>
2851
2852 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2853 "use_struct_convention" to "ppc_linux_use_struct_convention".
2854 (ppc_linux_use_struct_convention): New function.
2855 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2856 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2857 "rs6000_use_struct_convention".
2858 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2859 declaration.
2860 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2861 Delete function.
2862
aa1ee363
AC
28632003-09-16 Andrew Cagney <cagney@redhat.com>
2864
2865 * buildsym.c: Remove more occurances of "register".
2866 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2867 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2868 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2869 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2870 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2871 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2872 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2873 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2874
f2ea0907
CV
28752003-09-16 Corinna Vinschen <vinschen@redhat.com>
2876
2877 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2878 numbers to enumeration values.
2879 * sh-tdep.c: Accomodate above change.
2880 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2881 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2882 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2883 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2884 (IS_FPUSH): Rename from IS_FMOV.
2885 (sh_extract_struct_value_address): Remove useless comment.
2886 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2887 instead of own local values.
2888 (sh_dump_tdep): Remove.
2889 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2890 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2891
1c704f11
AC
28922003-09-15 Andrew Cagney <cagney@redhat.com>
2893
2894 * doublest.c (convert_floatformat_to_doublest): No longer need to
2895 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2896
ac79b88b
DJ
28972003-09-15 Daniel Jacobowitz <drow@mvista.com>
2898
2899 * values.c (unpack_double): Call floatformat_is_valid.
2900
1c671366
MK
29012003-09-15 Mark Kettenis <kettenis@gnu.org>
2902
de5227fb
MK
2903 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2904 ps_strings into a long.
2905
1c671366
MK
2906 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2907 _initialize_am64fbsd_nat.
2908
a604369a
KB
29092003-09-15 Kevin Buettner <kevinb@redhat.com>
2910
2911 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2912 associated with DW_AT_ranges attribute is out of bounds.
2913
b3cacbee
DL
29142003-09-15 David Lecomber <dsl@sources.redhat.com>
2915
2916 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2917
d0f37bb2
MC
29182003-09-14 Michael Chastain <mec@shout.net>
2919
2920 * config/m68k/nm-apollo68v.h: Delete.
2921 * config/m68k/xm-apollo68v.h: Delete.
2922
69517000
AC
29232003-09-14 Andrew Cagney <cagney@redhat.com>
2924
2925 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2926 * dcache.c: Update copyrights and descriptions.
2927 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2928
ef8b349d
AC
29292003-09-14 Andrew Cagney <cagney@redhat.com>
2930
2931 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2932 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2933
52f0bd74
AC
29342003-09-14 Andrew Cagney <cagney@redhat.com>
2935
2936 * alpha-nat.c: Remove some occurances of "register".
2937 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2938 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2939 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2940 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2941 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2942 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2943 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2944 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2945 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2946 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2947 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2948 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2949 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2950 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2951 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2952 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2953 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2954 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2955 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2956 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2957 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2958 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2959
4a4b3fed
AC
29602003-09-13 Andrew Cagney <cagney@redhat.com>
2961
2962 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2963 * ppc-tdep.h (struct regcache): Declare opaque.
2964 * objfiles.h (struct objfile_data): Declare opaque.
2965 * cp-support.h (struct objfile): Declare opaque.
2966 * linux-nat.h (target_waitstatus): Declare opaque.
2967
2110b94f
MK
29682003-09-14 Mark Kettenis <kettenis@gnu.org>
2969
1c671366
MK
2970 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2971 (stabs_argument_has_addr): New architecture method.
2972 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2973 * arch-utils.c: Include "buildsym.h".
2974 (default_stabs_argument_has_addr): New function.
2975 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2976 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2977
2110b94f
MK
2978 * cris-tdep.c (cris_gdbarch_init): Set
2979 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2980 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2981 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2982 * mips-tdep.c (mips_gdbarch_init): Likewise.
2983 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2984 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2985
48436ce6
AC
29862003-09-13 Andrew Cagney <cagney@redhat.com>
2987
2988 * values.c (using_struct_return): Delete "function" and "funcaddr"
2989 parameters.
2990 * value.h (using_struct_return): Update declaration.
2991 * infcmd.c (finish_command_continuation): Update.
2992 (finish_command): Update.
2993 * infcall.c (call_function_by_hand): Update.
2994 * eval.c (evaluate_subexp_standard): Update.
2995
403d9909
CF
29962003-09-13 Christopher Faylor <cgf@redhat.com>
2997
2998 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2999 SSE registers since gdb will not operate correctly without this.
3000 Restore include file ordering munged in previous change.
3001 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
3002
ebf7d56b
MK
30032003-09-13 Mark Kettenis <kettenis@gnu.org>
3004
8e823e25
MK
3005 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
3006 REG_STRUCT_HAS_ADDR.
3007 * gdbarch.c, gdbarch.h: Updated.
3008 * infcall.c (call_function_by_hand): Update.
3009 * stabsread.c (define_symbol): Updated.
a8f4cde1 3010
ebf7d56b
MK
3011 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
3012
d3f13f72
CF
30132003-09-12 Christopher Faylor <cgf@redhat.com>
3014
3015 * win32-nat.c: Reorganize so that defines used by target headers are
3016 actually defined by the system headers.
3017 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
3018 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
3019
14f75137
JB
30202003-09-12 Jim Blandy <jimb@redhat.com>
3021
d646061f
JB
3022 * dbxread.c (read_dbx_symtab): Don't report an internal error if
3023 the file has no .data, .bss, or .rodata sections. Instead wait
3024 until we see a variable alleged to live in one of those sections.
3025
2a13f9bc
JB
3026 * dbxread.c (read_dbx_symtab): If we have no .data section and no
3027 .bss section, presume that any variables we find live in the
3028 .rodata section.
3029
4f49b26b
JB
3030 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3031 offsets for global and static variables.
3032
14f75137
JB
3033 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3034 symbol types are, by definition, in the .data section, so it is
3035 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3036 If there is no .data section, there should be no N_DATA or N_DATA
3037 | N_EXT symbols.
3038
212c460c
MK
30392003-09-12 Mark Kettenis <kettenis@gnu.org>
3040
3041 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3042 (amd64fbsd_sigcontext_addr): Rewrite.
3043 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3044 with correct values.
3045 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3046 (amd64fbsd_init_abi): Fix typo.
3047
68856ea3
AC
30482003-09-12 Andrew Cagney <cagney@redhat.com>
3049
3050 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3051 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3052
627b3ba2
AC
30532003-09-12 Andrew Cagney <cagney@redhat.com>
3054
3055 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3056 "entry_file_highpc". Update comments.
3057 * defs.h (deprecated_inside_entry_file): Rename
3058 "inside_entry_file".
3059 * blockframe.c (deprecated_inside_entry_file): Rename
3060 "inside_entry_file".
3061 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3062 * vax-tdep.c (vax_frame_chain): Update.
3063 * sh64-tdep.c (sh64_frame_chain): Update.
3064 * sh-tdep.c (sh_frame_chain): Update.
3065 * rs6000-tdep.c (rs6000_frame_chain): Update.
3066 * ns32k-tdep.c (ns32k_frame_chain): Update.
3067 * mips-tdep.c (mips_frame_chain): Update.
3068 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3069 * m32r-tdep.c (m32r_frame_this_id): Update.
3070 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3071 * frv-tdep.c (frv_frame_this_id): Update.
3072 * d10v-tdep.c (d10v_frame_this_id): Update.
3073 * cris-tdep.c (cris_frame_chain): Update.
3074 * blockframe.c (legacy_frame_chain_valid): Update.
3075 * avr-tdep.c (avr_frame_this_id): Update.
3076 * arm-tdep.c (arm_prologue_this_id): Update.
3077 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3078 * objfiles.c (objfile_relocate): Update.
3079 * mipsread.c (mipscoff_symfile_read): Update.
3080 (mipscoff_symfile_read): Update.
3081 * mdebugread.c (parse_partial_symbols): Update.
3082 * dwarfread.c (read_file_scope): Update.
3083 * dwarf2read.c (read_file_scope): Update.
3084 * dbxread.c (read_dbx_symtab): Update.
3085 (read_dbx_symtab): Update.
3086 * coffread.c (complete_symtab): Update.
3087
b0abbc58
JJ
30882003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3089
3090 * top.c (quit_target): New static helper function.
3091 (quit_force): Moved code to quit_target(). Call quit_target()
3092 via catch_errors() to catch errors during quit.
3093
a1632d59
DC
30942003-09-11 David Carlton <carlton@kealia.com>
3095
3096 * buildsym.c (finish_block): Use allocate_block to allocate the
3097 block.
3098 * mdebugread.c (new_block): Add FIXME.
3099
5c4e30ca
DC
31002003-09-11 David Carlton <carlton@kealia.com>
3101
3102 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3103 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3104 (recursive_dump_type): Ditto.
3105 * printcmd.c (print_formatted): Ditto.
3106 * typeprint.c (print_type_scalar): Ditto.
3107 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3108 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3109 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3110 maint_cplus_cmd_list.
3111 * cp-support.c: Make maint_cplus_cmd_list extern.
3112 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3113 command.h.
3114 (lookup_symbol_file): Look in possible namespace blocks when
3115 appropriate.
3116 (initialize_namespace_symtab): New.
3117 (get_possible_namespace_block, free_namespace_block)
3118 (check_possible_namespace_symbols)
3119 (check_possible_namespace_symbols_loop)
3120 (check_one_possible_namespace_symbol)
3121 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3122 (_initialize_cp_namespace): Ditto.
3123 * block.h: Declare allocate_block.
3124 * block.c (allocate_block): New.
3125 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3126 allocate_block.
3127 * symfile.h: Update declaration of add_psymbol_to_list.
3128 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3129 question.
3130 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3131 scan_partial_symbols_call.
3132 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3133 helper functions.
3134 (add_partial_symbol): If necessary, scan mangled names for names
3135 of namespaces.
3136 (add_partial_namespace): Add NAMESPACE argument; generate partial
3137 symbols associated to namespaces.
3138 (add_partial_enumeration): Add NAMESPACE argument.
3139 (new_symbol): Allow namespace syms.
3140 (read_namespace): Generate namespace syms.
3141 * objfiles.h: Add opaque declaration of struct symtab.
3142 (struct objfile): Add cp_namespace_symtab member.
3143 * objfiles.c (allocate_objfile): Set
3144 objfile->cp_namespace_symtab.
3145 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3146 dictionary_h, command_h.
3147
33a7c2fc
AC
31482003-09-11 Andrew Cagney <cagney@redhat.com>
3149
3150 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3151 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3152 near the function's end.
3153 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3154 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3155 regcache_raw_write_signed to set SP_REGNUM.
3156
63cd24fe
EZ
31572003-09-11 Elena Zannoni <ezannoni@redhat.com>
3158
3159 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3160 orig_addrs is set up properly.
3161
f27dd7fd
AC
31622003-09-11 Andrew Cagney <cagney@redhat.com>
3163
3164 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3165 * gdbarch.h, gdbarch.c: Re-generate.
3166 * infcall.c (call_function_by_hand): Update.
3167 * hppa-tdep.c (hppa_push_arguments): Update.
3168 * ada-lang.c (place_on_stack): Update.
3169 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3170 * sparc-tdep.c (sparc_gdbarch_init): Update.
3171 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3172 * hppa-tdep.c (hppa_gdbarch_init): Update.
3173 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3174 stack_align.
3175
f630a401
DJ
31762003-09-11 Daniel Jacobowitz <drow@mvista.com>
3177
3178 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3179 register do need a frame.
3180
0ddabb4c
AC
31812003-09-11 Andrew Cagney <cagney@redhat.com>
3182
3183 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3184 buildable since GDB 5.0.
3185 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3186 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3187 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3188 * irix4-nat.c: Delete file.
3189 * config/mips/irix4.mh: Delete file.
3190 * config/mips/irix3.mh: Delete file.
3191 * config/mips/irix3.mt: Delete file.
3192 * config/mips/tm-irix3.h: Delete file.
3193 * config/mips/nm-irix3.h: Delete file.
3194 * config/mips/xm-irix3.h: Delete file.
3195 * config/mips/nm-irix4.h: Delete file.
3196 * config/mips/xm-irix4.h: Delete file.
3197 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3198
fde2cceb
JB
31992003-09-10 J. Brobecker <brobecker@gnat.com>
3200
3201 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3202 * Makefile.in (hppa-tdep.o): Update dependencies.
3203
66f667f5
JW
32042003-09-10 James E Wilson <wilson@specifixinc.com>
3205
ef5fd69f
JW
3206 * MAINTAINERS: Change my e-mail address. Move to paper trail
3207 section.
66f667f5 3208
53e8aaea
KB
32092003-09-10 Kevin Buettner <kevinb@redhat.com>
3210
3211 * MAINTAINERS (frv): New ISA entry.
3212
dcc6aaff
KB
32132003-09-10 Kevin Buettner <kevinb@redhat.com>
3214
3215 * frv-tdep.c (dis-asm.h): Include.
3216 * Makefile.in (frv-tdep.o): Update dependencies.
3217
932644f0
JJ
32182003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3219
3220 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3221 Fix typo for high range of floating registers.
3222
91c24f0a
DC
32232003-09-09 David Carlton <carlton@kealia.com>
3224
3225 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3226 highpc initialization here out of scan_partial_symbols.
3227 (scan_partial_symbols): Restructure into a recursive version,
3228 calling add_partial_namespace and add_partial_enumeration when
3229 appropriate.
3230 (add_partial_namespace): New.
3231 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3232
c9263853
AC
32332003-09-09 Andrew Cagney <cagney@redhat.com>
3234
e56a0ecc
AC
3235 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3236 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3237 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3238 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3239
794a477a
AC
3240 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3241 (rs6000_push_dummy_call): Set the "TOC" register.
3242
c9263853
AC
3243 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3244 methods "max_register_raw_size", "max_register_virtual_size" or
3245 "register_virtual_size".
3246
afa7d0b2
ILT
32472003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3248
3249 * MAINTAINERS: Update my e-mail address.
3250
7a41266b
AC
32512003-09-09 Andrew Cagney <cagney@redhat.com>
3252
3253 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3254 (rs6000_push_dummy_call): Store the struct return address.
3255 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3256
77b2b6d4
AC
32572003-09-09 Andrew Cagney <cagney@redhat.com>
3258
3259 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3260 "ppc_sysv_abi_push_arguments".
3261 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3262 "ppc_sysv_abi_push_arguments".
3263 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3264 instead of "push_arguments".
3265 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3266
e8a7b686
AC
32672003-09-09 Andrew Cagney <cagney@redhat.com>
3268
3269 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3270 instead of CALL_DUMMY_ADDRESS.
3271
f86f5ca3
PH
32722003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3273
3274 * p-lang.c: Eliminate "register".
3275 * c-lang.c: Ditto.
3276 * expprint.c: Ditto.
3277 * f-lang.c: Ditto.
3278 * jv-lang.c: Ditto.
3279 * language.c: Ditto.
3280 * m2-lang.c: Ditto.
3281 * parse.c: Ditto.
3282 * scm-lang.c: Ditto.
3283 * objc-lang.c: Ditto.
3284
83ee270e
NC
32852003-09-09 Nick Clifton <nickc@redhat.com>
3286
3287 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3288
a89aa300
AC
32892003-09-04 Andrew Cagney <cagney@redhat.com>
3290
3291 * avr-tdep.c: Include "dis-asm.h".
3292 * cris-tdep.c: Include "dis-asm.h".
3293 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3294 instead of corresponding typedef.
3295 * h8300-tdep.c: Include "dis-asm.h".
3296 * ia64-tdep.c: Include "dis-asm.h".
3297 * i386-tdep.c: Include "dis-asm.h".
3298 (i386_print_insn): Use "struct disassemble_info" instead of
3299 corresponding typedef.
3300 * m68k-tdep.c: Include "dis-asm.h".
3301 * mcore-tdep.c: Include "dis-asm.h".
3302 * mips-tdep.c: Include "dis-asm.h".
3303 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3304 instead of corresponding typedef.
3305 * ns32k-tdep.c: Include "dis-asm.h".
3306 * s390-tdep.c: Include "dis-asm.h".
3307 * sparc-tdep.c: Include "dis-asm.h".
3308 * vax-tdep.c: Include "dis-asm.h".
3309 * v850-tdep.c: Include "dis-asm.h".
3310 * mn10300-tdep.c: Include "dis-asm.h".
3311 * rs6000-tdep.c: Include "dis-asm.h".
3312 * xstormy16-tdep.c: Include "dis-asm.h".
3313 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3314 print_insn_xstormy16.
3315 * Makefile.in (v850-tdep.o): Update dependencies.
3316 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3317 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3318 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3319 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3320 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3321 (gdbarch_h): Remove $(dis_asm_h).
3322 * disasm.c: Include "dis-asm.h".
3323 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3324 corresponding typedef.
3325 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3326 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3327 * gdbarch.sh: Do not include "dis-asm.h".
3328 (struct disassemble_info): Declare opaque.
3329 (TARGET_PRINT_INSN): Update declaration.
3330 * gdbarch.h, gdbarch.c: Re-generate.
3331
88a82a65
AC
33322003-09-08 Andrew Cagney <cagney@redhat.com>
3333
3334 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3335 CALL_DUMMY_ADDRESS, change to a predicate.
3336 * gdbarch.h, gdbarch.c: Re-generate.
3337 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3338 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3339 * infcall.c (call_function_by_hand): Ditto.
3340 * sparc-tdep.c (sparc_push_return_address): Ditto.
3341 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3342 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3343 CALL_DUMMY_ADDRESS with entry_point_address.
3344 * v850-tdep.c (v850_push_return_address): Ditto.
3345 * s390-tdep.c (s390_push_return_address): Ditto.
3346 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3347 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3348 * mcore-tdep.c (mcore_push_return_address): Ditto.
3349 * cris-tdep.c (cris_push_return_address): Ditto.
3350 * arm-tdep.c (arm_push_return_address): Ditto.
3351
3e2c4033
AC
33522003-09-08 Andrew Cagney <cagney@redhat.com>
3353
3354 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3355 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3356 and REG_UNMODIFIED to REG_SAME_VALUE.
3357 (execute_cfa_program): Update.
3358 (dwarf2_frame_cache): Update. Initialize table to
3359 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3360 location.
3361 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3362
39efb398
AC
33632003-09-08 Andrew Cagney <cagney@redhat.com>
3364
3365 * gnu-nat.c: Remove "inline" function attribute.
3366 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3367
f5cb5aca
KB
33682003-09-08 Kevin Buettner <kevinb@redhat.com>
3369
3370 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3371 target.
3372
1cb761c7
KB
33732003-09-08 Kevin Buettner <kevinb@redhat.com>
3374
3375 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3376 (frame_extra_info): Rename this struct to frv_unwind_cache.
3377 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3378 Add fields ``prev_sp'' and ``base''.
3379 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3380 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3381 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3382 Delete.
3383 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3384 Revise all callers. Fill in the unwind cache argument and make
3385 other adjustments to account for new frame mechanisms.
3386 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3387 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3388 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3389 (frv_frame_unwind, frv_frame_base): New structs.
3390 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3391 additional arguments expected by this method and adjust function
3392 body accordingly.
3393 (frv_gdbarch_init): Remove calls to the following functions:
3394 set_gdbarch_deprecated_init_frame_pc(),
3395 set_gdbarch_deprecated_saved_pc_after_call(),
3396 set_gdbarch_deprecated_frame_chain(),
3397 set_gdbarch_deprecated_frame_saved_pc(),
3398 set_gdbarch_deprecated_frame_init_saved_regs(),
3399 set_gdbarch_deprecated_push_arguments(),
3400 set_gdbarch_deprecated_push_return_address(),
3401 set_gdbarch_deprecated_pop_frame(),
3402 set_gdbarch_deprecated_call_dummy_words(),
3403 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3404 set_gdbarch_deprecated_init_extra_frame_info(),
3405 set_gdbarch_deprecated_dummy_write_sp(), and
3406 set_gdbarch_deprecated_pc_in_call_dummy().
3407 Add calls to the following functions:
3408 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3409 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3410 frame_base_set_default().
3411 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3412
68f6cf99
MK
34132003-09-09 Mark Kettenis <kettenis@gnu.org>
3414
3415 * dwarf2-frame.c (read_encoded_value): Add support for
3416 DW_EH_PE_aligned encoding.
3417
73b65bb0
DJ
34182003-09-08 Daniel Jacobowitz <drow@mvista.com>
3419
3420 * infrun.c (normal_stop): Don't print a message if the inferior
3421 has exited.
3422
7c8a5605
JB
34232003-09-08 Jim Blandy <jimb@redhat.com>
3424
3425 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3426 * dbxread.c: #include "gdb_assert.h".
3427 (read_dbx_symtab): If the objfile has no .data section, use the
3428 section index for the .bss section instead.
3429
7dd88986
DJ
34302003-09-08 Daniel Jacobowitz <drow@mvista.com>
3431
3432 * frame.c (deprecated_safe_get_selected_frame): New function.
3433 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3434 * findvar.c (read_var_value): Call it.
3435
55ff77ac
CV
34362003-09-08 Corinna Vinschen <vinschen@redhat.com>
3437
3438 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3439 (sh64-tdep.o): Add dependencies.
3440 * configure.tgt: Add FIXME to sh-*-linux*.
3441 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3442 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3443 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3444 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3445 * sh64-tdep.c: New file, containing all sh64 related code from
3446 sh-tdep.c.
3447 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3448 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3449 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3450 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3451 * config/sh/wince.mt (TDEPFILES): Ditto.
3452
bfb39158
DJ
34532003-09-07 Daniel Jacobowitz <drow@mvista.com>
3454
3455 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3456 (stop_wait_callback): Handle !lp->signalled also.
3457 (lin_lwp_has_pending, flush_callback): New functions.
3458 (lin_lwp_wait): Call flush_callback.
3459 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3460 (linux_proc_pending_signals): New function.
3461 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3462
9407de8e
DJ
34632003-09-07 Daniel Jacobowitz <drow@mvista.com>
3464
3465 From Nick Kelsey <nickk@ubicom.com>:
3466 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3467 when the stop PC is at the beginning of a function also.
3468
2ef47cd0
DJ
34692003-09-06 Daniel Jacobowitz <drow@mvista.com>
3470
3471 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3472 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3473
6f4492c8
MK
34742003-09-06 Mark Kettenis <kettenis@gnu.org>
3475
3476 * sol-thread.c: Include "gdb_string.h".
3477
d3420b2f
MK
34782003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3479
3480 * gcore.c: Reorder include files in alphabetical order. Include
3481 "gdb_assert.h". Various coding style fixes.
3482 (derive_stack_segment, derive_heap_segment): Replace check for
3483 non-null BOTTOM and TOP with gdb_assert.
3484 (derive_heap_segment): Replace check for successful creation of
3485 ZERO with gdb_assert.
3486 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3487
5220ea4c
AC
34882003-09-04 Andrew Cagney <cagney@redhat.com>
3489
3490 * thread-db.c (verbose_dlsym): New function.
3491 (thread_db_load): Use verbose_dlsym
3492 (thread_db_new_objfile): Print that libthread_db was loaded, and
3493 that thread debugging was enabled.
3494
6e8c2c06
AC
34952003-09-04 Andrew Cagney <cagney@redhat.com>
3496
3497 * configure.tgt: Add "mips64*-*-*" target. Delete
3498 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3499 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3500 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3501 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3502 mips*-sony-*, and mips64*-*-elf* targets.
3503 * config/mips/embedl.mt: Delete file.
3504 * config/mips/embedl64.mt: Delete file.
3505 * config/mips/mips.mt: Delete file.
3506 * config/mips/mips64.mt: Delete file.
3507 * config/mips/tm-embed.h: Delete file.
3508 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3509 * config/mips/embed64.mt: Delete out-of-date comment.
3510
3a3bc038
AC
35112003-09-04 Andrew Cagney <cagney@redhat.com>
3512
3513 * hppa-tdep.c (hppa_gdbarch_init): Set
3514 "have_nonsteppable_watchpoint".
3515 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3516 * mips-tdep.c (mips_dump_tdep): Do not print
3517 HAVE_NONSTEPPABLE_WATCHPOINT.
3518 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3519 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3520 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3521 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3522
a957e642
CV
35232003-09-04 Corinna Vinschen <vinschen@redhat.com>
3524
3525 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3526 unused code. Add comment.
3527
a6fbcf2f
CV
35282003-09-04 Corinna Vinschen <vinschen@redhat.com>
3529
3530 * breakpoint.c (watchpoint_check): Check for pc being in an
3531 epilogue if watchpoint frame couldn't be found.
3532
c14a44d5
AC
35332003-09-04 Andrew Cagney <cagney@redhat.com>
3534
3535 * Makefile.in: Re-generate all dependencies.
3536
f6c40618
AC
35372003-09-03 Andrew Cagney <cagney@redhat.com>
3538
3539 * arch-utils.h (legacy_print_insn): Delete declaration.
3540 * arch-utils.c (legacy_print_insn): Delete function.
3541 * disasm.c (deprecated_tm_print_insn_info): Delete.
3542 (_initialize_disasm): Delete function, contained code initializing
3543 deprecated_tm_print_insn_info.
3544 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3545 (deprecated_tm_print_insn_info): Delete.
3546 (TARGET_PRINT_INSN): Do not provide a default.
3547 * gdbarch.h, gdbarch.c: Re-generate.
3548
242e8be5
AC
35492003-09-03 Andrew Cagney <cagney@redhat.com>
3550
3551 * disasm.c (fprintf_disasm): New function.
3552 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3553 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3554 reverts 2003-08-14 change.
3555 (_initialize_disasm): Call "init_disassemble_info", instead of
3556 INIT_DISASSEMBLE_INFO_NO_ARCH.
3557
3ffc3dda
MS
35582003-09-03 Michael Snyder <msnyder@redhat.com>
3559
3560 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3561
52d16ba8
AC
35622003-09-03 Andrew Cagney <cagney@redhat.com>
3563
3564 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3565 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3566 * symfile.c (syms_from_objfile): Update.
3567 (reread_symbols): `Update
3568 * exec.c (exec_file_attach): Update.
3569 (exec_file_attach): Update.
3570 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3571 2003-08-29 change.
3572 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3573
eb5492fa
DJ
35742003-09-03 Daniel Jacobowitz <drow@mvista.com>
3575
3576 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3577 trad-frame.h.
3578 (arm_get_cache): Delete macro.
3579 (struct arm_prologue_cache): Update comments. Make saved_regs into
3580 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3581 to prev_sp.
3582 (thumb_scan_prologue): Update for cache changes. Don't call
3583 DEPRECATED_PC_IN_CALL_DUMMY.
3584 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3585 argument and use it in desperation search for our prologue. Do not
3586 search past the specified PC.
3587 (arm_make_prologue_cache): Simplify.
3588
3589 (arm_prologue_this_id, arm_prologue_prev_register)
3590 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3591 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3592 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3593 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3594 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3595
3596 (arm_frame_chain_valid, arm_find_callers_reg)
3597 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3598 (arm_pop_frame): Delete obsolete methods.
3599 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3600
3601 (arm_gdbarch_init): Update for new frame methods. Register prologue
3602 and sigtramp unwinders. Set the default frame base method.
3603
3604 * Makefile.in (arm-tdep.o): Update dependencies.
3605 * varobj.c (find_frame_addr_in_frame_chain): Call
3606 get_frame_base_address.
3607 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3608
24de872b
DJ
36092003-09-03 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3612 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3613 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3614 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3615 Take NEXT_FRAME and CACHE arguments. Call
3616 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3617 Set unwound_pc in CACHE instead of modifying the frame argument.
3618 Don't bother checking the frame type when looking for sigtramp
3619 frames.
3620 (arm_make_prologue_cache, arm_frame_chain)
3621 (arm_init_extra_frame_info): New functions.
3622
9b8d791a
DJ
36232003-09-03 Daniel Jacobowitz <drow@mvista.com>
3624
3625 * arm-tdep.c (arm_get_cache): Define.
3626 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3627 unwound_sp, unwound_pc, and saved_regs.
3628 (thumb_scan_prologue): Take a cache instead of the frame.
3629 (arm_scan_prologue): Likewise.
3630 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3631 instead of a temporary frame.
3632 (arm_init_extra_frame_info): Allocate and use a cache.
3633 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3634
7ee3275f
AC
36352003-09-03 Andrew Cagney <cagney@redhat.com>
3636
3637 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3638 * config/mips/wince.mt (TM_CLIBS): Ditto.
3639 * config/sh/wince.mt (TM_CLIBS): Ditto.
3640 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3641 * config/sparc/sp64.mt (CC): Delete.
3642
57b29be7
AC
36432003-09-03 Andrew Cagney <cagney@redhat.com>
3644
3645 * defs.h: Do not include "arch-utils.h".
3646 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3647 GDB_MULTI_ARCH_PURE.
3648 * configure.in (GDB_MULTI_ARCH): Do not define.
3649 * configure, config.in: Regenerate.
3650 * configure.tgt: Do not set variable "gdb_multi_arch".
3651 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3652 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3653 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3654 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3655 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3656 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3657 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3658 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3659 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3660 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3661 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3662 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3663 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3664 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3665 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3666 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3667 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3668 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3669
12e035e2
MC
36702003-08-30 Michael Chastain <mec@shout.net>
3671
3672 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3673 * config/m68k/nm-hp300hpux.h: Delete.
3674 * config/m68k/tm-hp300hpux.h: Delete.
3675 * config/m68k/xm-hp300hpux.h: Delete.
3676 * config/m68k/xm-hp300bsd.h: Delete.
3677 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3678 tm-hp300hpux.h, xm-hp300hpux.h.
3679 * somsolib.c: Remove comment about hp300 shared libraries.
3680
bda34dc2
MK
36812003-08-31 Mark Kettenis <kettenis@gnu.org>
3682
5bca7895
MK
3683 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3684 Only define PTRACE_GET_THREAD_AREA is not already defined.
3685 Various style fixes in code and comments and some additional
3686 spelling fixes in comments. Move after functions dealing with
3687 debug registers.
3688 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3689 Fix coding-style.
3690
bda34dc2
MK
3691 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3692 frame_unwind_register_unsigned instead of
3693 frame_unwind_unsigned_register.
3694
c890192f
MK
36952003-08-30 Mark Kettenis <kettenis@gnu.org>
3696
3697 * configure.in: Search for gethostbyname in libnsl.
3698 * configure: Regenerated.
3699
60fac5b8
MK
37002003-08-29 Mark Kettenis <kettenis@gnu.org>
3701
e294916c
MK
3702 * configure.in: Remove redundant AC_MSG_RESULT in check for
3703 uintptr_t in stdint.h.
3704 * configure: Regenerated.
3705
c40d267a
MK
3706 * amd64-nat.h (struct regcache): Add opaque declaration.
3707
60fac5b8
MK
3708 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3709 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3710 Change "register array" to "register cache" in comments.
3711 (x86_64_linux_gregset64_reg_offset): New variable.
3712 (GETREGS_SUPPLIES): Remove macro.
3713 (supply_gregset): Call amd64_supply_native_gregset instead of
3714 x86_64_linux_supply_gregset.
3715 (fill_gregset): Rename `regno' to `regnum'. Call
3716 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3717 (store_regs): Rename `regno' to `regnum'.
3718 (store_fpregs): Rename `regno' to `regnum'.
3719 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3720 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3721 Reorganize function a bit.
3722 (store_inferior_registers): Rename `regno' to `regnum'. Use
3723 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3724 Reorganize function a bit.
3725 (_initialize_x86_64_linux_nat): New function.
3726 * config/i386/x86-64linux.mh.
3727
546143b6
AC
37282003-08-29 Andrew Cagney <cagney@redhat.com>
3729
3730 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3731 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3732 (target_remove_watchpoint): Delete macro.
3733 (target_insert_watchpoint): Delete macro.
3734 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3735 (remote_mips_stopped_by_watchpoint): Delete declaration.
3736 (remote_mips_remove_watchpoint): Delete declaration.
3737 (remote_mips_set_watchpoint): Delete declaration.
3738 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3739 * remote-mips.c (_initialize_remote_mips): Set
3740 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3741 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3742 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3743 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3744 (mips_stopped_by_watchpoint): Rename
3745 remote_mips_stopped_by_watchpoint.
3746 (mips_can_hardware_watchpoint): Rename
3747 remote_mips_can_use_hardware_watchpoint, update function
3748 signature.
3749
7bace51b
MK
37502003-08-29 Mark Kettenis <kettenis@gnu.org>
3751
b0f5c6f2
MK
3752 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3753 USER_DS. We haven't given them a register number yet.
3754
2a6d284d
MK
3755 * amd64-nat.h: New file.
3756 * amd64-nat.c: New file.
3757 * amd64fbsd-nat.c: Include "amd64-nat.h".
3758 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3759 (amd64fbsd32_r_reg_offset): New variable.
3760 (supply_gregset): Simply call amd64_supply_native_gregset.
3761 (fill_gregset): Rename `regno' to `regnum'. Simply call
3762 amd64_collect_native_gregset.
3763 (fill_fpregset): Rename `regno' to `regnum'.
3764 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3765 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3766 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3767 `fpregset_t'. Call amd64_supply_native_gregset instead of
3768 supply_gregset. Call x86_64_supply_fxsave instead of
3769 supply_fpregset.
3770 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3771 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3772 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3773 `fpregset_t'. Call amd64_collect_native_gregset instead of
3774 fill_gregset. Call x86_64_collect_fxsave instead of
3775 fill_fpregset.
3776 (_initialize_am64fbsd_nat): Initialize
3777 amd64_native_gregset32_reg_offset and
3778 amd64_native_gregset64_reg_offset.
3779 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3780
a16d75cc
MK
3781 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3782 null pointer. Fix typo in comment.
3783
7bace51b
MK
3784 * regcache.c (supply_register): Reimplement to call
3785 regcache_raw_supply.
3786 (regcache_collect): Reimplement by calling regcache_raw_collect.
3787
9a661b68
MK
37882003-08-28 Mark Kettenis <kettenis@gnu.org>
3789
3790 * regcache.c (register_buffer): Consitify first argument.
3791 (regcache_raw_supply, regcache_raw_collect): New
3792 functions.
3793
e94cc8fa
DJ
37942003-08-28 Daniel Jacobowitz <drow@mvista.com>
3795
3796 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3797 by Nathan J. Williams.
3798
c64bd0ce
DJ
37992003-08-28 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * lin-lwp.c (wait_lwp): New function, copied from
3802 stop_wait_callback. Clean up.
3803 (stop_wait_callback): Use wait_lwp.
3804
e5ab0dce
AC
38052003-08-28 Andrew Cagney <cagney@redhat.com>
3806
3807 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3808 flavour and disassembler options.
3809 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3810 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3811 deprecated_tm_print_insn_info.
a8f4cde1 3812
a788de9b
AC
38132003-08-27 Andrew Cagney <cagney@redhat.com>
3814
3815 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3816 Use target_read_memory.
3817 (s390_get_frame_info): Update. Do not reference
3818 deprecated_tm_print_insn_info.
3819 (s390_check_function_end, s390_is_sigreturn): Ditto.
3820
36482093
AC
38212003-08-27 Andrew Cagney <cagney@redhat.com>
3822
3823 * Makefile.in (cris-tdep.o): Update dependencies.
3824 * cris-tdep.c: Include "gdb_assert.h".
3825 (cris_gdbarch_init): Set print_insn.
3826 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3827 (cris_delayed_get_disassembler): Simplify, directly call the
3828 disassembler returned by cris_get_disassembler.
3829 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3830 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3831 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3832 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3833 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3834 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3835 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3836 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3837 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3838 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3839 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3840 (gdb_print_insn_sparc): Delete function.
3841 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3842 deprecated_tm_print_insn_info.
3843 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3844 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3845 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3846 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3847 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3848 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3849 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3850 (s390_gdbarch_init): Set print_insn.
3851
0285512f
AC
38522003-08-27 Andrew Cagney <cagney@redhat.com>
3853
3854 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3855 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3856 * infcall.c (call_function_by_hand): Convert the entry point
3857 address into a code address.
3858
cdcd5552
AC
38592003-08-27 Andrew Cagney <cagney@redhat.com>
3860
3861 * dsrec.c: Include "gdb_string.h".
3862 * Makefile.in (dsrec.o): Update dependencies.
3863
e85cddad
MC
38642003-08-27 Michael Chastain <mec@shout.net>
3865
3866 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3867
8bbfbb23
AC
38682003-08-27 Andrew Cagney <cagney@redhat.com>
3869
3870 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3871 (alpha_osf1_init_abi): Do not set call_dummy_address.
3872
ba058b66
DC
38732003-08-27 David Carlton <carlton@kealia.com>
3874
3875 From Randolph Chung <tausq@debian.org>:
3876 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3877 compiles with -Wformat-nonliteral -Werror.
3878
87f84c9d
JB
38792003-08-26 Jim Blandy <jimb@redhat.com>
3880
3881 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3882 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3883 bfd_lookup_symbol, since we only want symbols in code sections.
3884 (look_for_base): Pass zero as the SECT_FLAGS argument to
3885 bfd_lookup_symbol, since we're not concerned about which section
3886 the symbol is in.
3887
102d615a
JJ
38882003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3889
3890 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3891 we are frameless or the return address register is already known.
102d615a 3892
cc7ad3ea
AC
38932003-08-26 Andrew Cagney <cagney@redhat.com>
3894
3895 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3896 in size. Add comments.
3897
af8b88dd
JJ
38982003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3899
3900 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3901 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3902
e0a4f5a1
JM
39032003-08-26 Jason Merrill <jason@redhat.com>
3904
3905 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3906 case out of #ifdef MIPS block.
3907
4ae9ee8e
DJ
39082003-08-25 Daniel Jacobowitz <drow@mvista.com>
3909
3910 PR java/1322
3911 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3912 available before calling SECT_OFF_TEXT.
3c164570 3913 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3914
004d836a
JJ
39152003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3916
a8f4cde1 3917 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3918 bof, and nat0-nat127 as pseudo-registers.
3919 (ia64_frame_cache): New struct used to cache frame info.
3920 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3921 register grouping so registers without names are still saved and
004d836a 3922 restored.
a8f4cde1 3923 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3924 pseudo values.
3925 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3926 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3927 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3928 ia64_frame_cache.
3929 (examine_prologue): Change prototype to add next_frame pointer.
3930 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3931 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3932 alloc insn and if equal, mark as not frameless. At end of routine,
3933 if not frameless, calculate registers for the previous frame and store
3934 in the cache, if a cache is provided.
3935 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3936 and pass 0 for next_frame.
3937 (ia64_store_return_value): Change to use convert_typed_floating()
3938 instead of calling ia64_convert_to_raw().
3939 (ia64_extract_return_value): Change to use convert_typed_floating()
3940 instead of calling ia64_convert_to_virtual().
3941 (ia64_frame_cache): New routine to support new frame model.
3942 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3943 (ia64_frame_sniffer): Ditto.
3944 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3945 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3946 (ia64_sigtramp_frame_prev_register): Ditto.
3947 (ia64_sigtramp_frame_sniffer): Ditto.
3948 (ia64_frame_base_address): Ditto.
3949 (ia64_extract_struct_value_address): Change to issue error message.
3950 (ia64_frame_align): New routine to align sp.
3951 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3952 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3953 ia64_push_dummy_call().
3954 (ia64_push_return_address): Ditto.
3955 (ia64_unwind_dummy_id): New function.
3956 (ia64_unwind_pc): Ditto.
3957 (ia64_convert_register_p): Ditto.
3958 (ia64_register_to_value): Ditto.
3959 (ia64_value_to_register): Ditto.
3960 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3961 (ia64_register_byte, ia64_register_raw_size): Ditto.
3962 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3963 (ia64_saved_pc_after_call): Ditto.
3964 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3965 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3966 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3967 (ia64_register_convert_to_raw): Ditto.
3968 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3969 (ia64_init_extra_frame_info): Ditto.
3970 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3971 (ia64_gdbarch_init): Remove registering of deprecated functions that
3972 are no longer used. Add registration of new gdbarch functions.
3973 Remove registering deprecated_write_sp. Replace
3974 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3975 Delete set_gdbarch_deprecated_register_convertible(),
3976 set_gdbarch_deprecated_register_convert_to_virtual(), and
3977 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3978 set_gdbarch_deprecated_register_size(),
3979 set_gdbarch_deprecated_register_bytes(),
3980 set_gdbarch_pcregnum(),
3981 set_gdbarch_deprecated_register_byte(),
3982 set_gdbarch_deprecated_register_raw_size(),
3983 set_gdbarch_deprecated_max_register_raw_size(),
3984 set_gdbarch_deprecated_register_virtual_size(),
3985 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3986 Replace set_gdbarch_deprecated_extract_return_value() with
3987 set_gdbarch_extract_return_value(). Remove calls to:
3988 set_gdbarch_deprecated_saved_pc_after_call();
3989 set_gdbarch_deprecated_frame_chain(),
3990 set_gdbarch_deprecated_frame_saved_pc(),
3991 set_gdbarch_deprecated_frame_init_saved_regs(),
3992 set_gdbarch_deprecated_get_saved_register(),
3993 set_gdbarch_deprecated_call_dummy_words(),
3994 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3995 set_gdbarch_deprecated_init_extra_frame_info(),
3996 set_gdbarch_deprecated_frame_args_address(),
3997 set_gdbarch_deprecated_frame_locals_address(),
3998 and set_gdbarch_deprecated_dummy_write_sp().
3999 Add set_gdbarch_convert_register_p(),
4000 set_gdbarch_register_to_value(),
4001 set_gdbarch_value_to_register(),
4002 set_gdbarch_push_dummy_call(),
4003 set_gdbarch_frame_align(),
4004 set_gdbarch_unwind_dummy_id(),
4005 set_gdbarch_unwind_pc(),
4006 frame_unwind_append_sniffer(),
4007 frame_unwind_append_sniffer(),
4008 and frame_base_set_default().
4009
aede7613
CD
40102003-08-25 Chris Demetriou <cgd@broadcom.com>
4011
4012 * configure.tgt: Document need for special "mipsisa64" handling.
4013 (mipsisa64*-*-linux64): Handle as target linux64.
4014 (mipsisa64*-*-*): Handle as target embed64.
4015
43c3a82e
MC
40162003-08-18 Michael Chastain <mec@shout.net>
4017
4018 * PROBLEMS: Document pr gdb/1322, the Java anonymous
4019 objfile bug.
4020
6564f77d
MK
40212003-08-24 Mark Kettenis <kettenis@gnu.org>
4022
2de139ba
MK
4023 * i387-tdep.h: Update copyright date.
4024 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
4025
6564f77d
MK
4026 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
4027 CFLAGS games to reflect reality.
4028
42cf1509
AC
40292003-08-24 Andrew Cagney <cagney@redhat.com>
4030
4031 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4032 GDB_MULTI_ARCH is always non-zero.
4033 * osabi.c (_initialize_gdb_osabi): Ditto.
4034 (gdbarch_init_osabi): Ditto.
4035 * sparc-tdep.c: Ditto for #if code.
4036
0485f6ad
MK
40372003-08-23 Mark Kettenis <kettenis@gnu.org>
4038
4039 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4040 Update comments.
4041 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4042 comments.
4043 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4044 x86_64_supply_fxsave.
4045 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4046 x86_64_supply_fxsave.
4047 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4048 x86_64_supply_fxsave.
4049
c7716133
AJ
40502003-08-23 Andreas Jaeger <aj@suse.de>
4051
4052 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4053 i387_supply_fxsave.
4054
ed504bdf
MK
40552003-08-23 Mark Kettenis <kettenis@gnu.org>
4056
4057 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4058 i387_supply_register.
4059 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4060 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4061 i387_supply_fsave.
4062 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4063 i387_supply_fxsave.
4064 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4065 i387_supply_fsave.
4066 * i386bsd-nat.c (supply_fpregset): Adjust call to
4067 i387_supply_fsave.
4068 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4069 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4070 supply_fpregset.
4071 (store_inferior_registers): Remove extraneous whitespace. Call
4072 i387_fill_fsave instead of fill_fpregset.
4073 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4074 (supply_fpregset): Likewise.
4075 * i386v4-nat.c (supply_fpregset): Adjust call to
4076 i387_supply_fsave.
4077 * i386-interix-nat.c (supply_fpregset): Adjust call to
4078 i387_supply_fsave.
4079 * i386-linux-nat.c (supply_fpregset): Adjust call to
4080 i387_supply_fsave.
4081 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4082 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4083 i387supply_fsave and i387_supply_fxsave.
4084 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4085 Incorporate code from `i387_supply_register.
4086 (i387_supply_register): Remove.
4087 (i387_supply_fxsave): Add `regnum' argument.
4088 Update comments.
4089 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4090 prototype.
4091 (i387_supply_register): remove prototype.
4092 Update comments.
a8f4cde1 4093
4be5d520
MC
40942003-08-22 Michael Chastain <mec@shout.net>
4095
4096 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4097 Add lines for files in gdb/testsuite/gdb.cp/* that are
4098 still not 8.3 unique.
4099
7ed85d26
DJ
41002003-08-22 Daniel Jacobowitz <drow@mvista.com>
4101
4102 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4103 TYPE_VPTR_FIELDNO is valid.
4104
eb0d3137
MK
41052003-08-19 Mark Kettenis <kettenis@gnu.org>
4106
4107 * utils.c (set_width_command): Remove prototypes.
4108 (set_screen_size): New prototype.
4109 (init_page_info): Simplify by fetching the screen size from
4110 Readline. Call set_screen_size.
4111 (set_screen_size): New function.
4112 (set_width): Add missing whitespace in comment.
4113 (set_width_command): Call set_screen_size.
4114 (set_height_command): New function.
4115 (initialize_utils): Fix formatting. Make "set height" command
4116 call set_height_command. Remove redundant code that turns off
4117 pagination if output isn't a terminal. Remove redundant call to
4118 set_width_command.
a8f4cde1 4119
7e6d0ac8
MK
41202003-08-22 Mark Kettenis <kettenis@gnu.org>
4121
3567a8ea
MK
4122 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4123 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4124 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4125 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4126 `case' keyword.
4127 (sparc64_register_info): Give the reister with number
4128 SPARC64_STATE_REGNUM a name.
4129 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4130 %asi and %ccr.
4131 (sparc64_push_dummy_call): Take BIAS into account when checking
4132 stcak alignment.
4133 (sparc_software_single_step): Remove assertions that check whether
4134 NPC and NNPC were zero.
4135 (sparc_supply_rwindow): Make public. Merge functionality with
4136 sparc64_supply_rwindow.
4137 (sparc_fill_rwindow): Make public. Merge functionality with
4138 sparc64_fill_rwindow.
4139 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4140 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4141 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4142 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4143 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4144
7e6d0ac8
MK
4145 * reggroups.c: Add whitespace after declarations of local
4146 variables in functions.
4147
72e5f484
MC
41482003-08-21 Michael Chastain <mec@shout.net>
4149
4150 * gdbtypes.h: Change array bound type from an int to enum.
4151
435ac228
AC
41522003-08-21 Andrew Cagney <cagney@redhat.com>
4153
4154 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4155 * config/sparc/tm-sparc.h: Ditto.
4156 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4157 unconditionally.
4158 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4159
0d0e1a63
MK
41602003-07-13 Mark Kettenis <kettenis@gnu.org>
4161
4162 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4163 (register_objfile_data, set_objfile_data, objfile_data): New
4164 prototypes.
4165 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4166 prototypes.
4167 (allocate_objfile): Call objfile_alloc_data.
4168 (free_objfile): Call objfile_free_data.
4169 (struct objfile_data): New.
4170 (struct objfile_data_registration): New.
4171 (struct objfile_data_registry): New.
4172 (objfile_data_registry): New variable.
4173 (register_objfile_data): New function.
4174 (objfile_alloc_data, objfile_free_data): New functions.
4175 (set_objfile_data, objfile_data): New functions.
4176 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4177 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4178 (_initialize_dwarf2_frame): New function and prototype.
4179
d90cf509
AC
41802003-08-21 Andrew Cagney <cagney@redhat.com>
4181
4182 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4183 a specific architecture.
4184 * arch-utils.h (set_architecture_from_arch_mach): Delete
4185 declaration.
4186 (target_architecture_hook): Delete declaration.
4187 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4188 (default_float_format): Assume GDB_MULTI_ARCH.
4189 (default_double_format): Assume GDB_MULTI_ARCH.
4190 (set_endian_from_file): Delete function.
4191 (arch_ok): Delete function.
4192 (set_arch): Delete function.
4193 (set_architecture_from_arch_mach): Delete function.
4194 (set_architecture_from_file): Delete function.
4195 (set_architecture): Assume GDB_MULTI_ARCH.
4196 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4197
8b39fe56
MK
41982003-08-21 Mark Kettenis <kettenis@gnu.org>
4199
4200 Rewrite FreeBSD/sparc64 native configuration.
4201 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4202 * sparc64fbsd-nat.c: New file.
4203 * sparc64fbsd-tdep.c: New file.
4204 * sparc64-tdep.c sparc64-tdep.h: New files.
4205 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4206 sparc64fbsd-tdep.o): New dependencies.
4207 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4208 and sparc64fbsd-tdep.c.
4209 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4210 * config/sparc/fbsd.mh: Remove copyright notice.
4211 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4212 sparcbsd-nat.o.
4213 * config/sparc/fbsd.mt: Remove copyright notice.
4214 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4215 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4216 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4217 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4218 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4219 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4220 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4221 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4222 "sparc/tm-sp64.h".
4223 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4224 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4225
a7f19c79
MC
42262003-08-21 Michael Chastain <mec@shout.net>
4227
4228 * symtab.h: Add doco on the space critical structures and
4229 some measurements of space usage.
4230
da08ea5b
MS
42312003-08-21 Michael Snyder <msnyder@redhat.com>
4232
4233 * tracepoint.c (trace_dump_command): Trace break address
4234 is subject to DECR_PC_AFTER_BREAK.
4235 (set_traceframe_context): Make "trace_line" an int.
4236 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4237
6df2bf50
MS
42382003-08-20 Michael Snyder <msnyder@redhat.com>
4239
4240 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4241 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4242 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4243 argument passing.
a8f4cde1 4244 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4245 functions, replace sh_push_dummy_call.
4246 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4247
0955bbf0
MC
42482003-08-20 Michael Chastain <mec@shout.net>
4249
4250 * gdbtypes.h (struct main_type): Rearrange to save space.
4251
260a4188
MS
42522003-08-20 Michael Snyder <msnyder@redhat.com>
4253
4254 * trad-frame.c: Comment typo fix.
4255
8baa6f92
KB
42562003-08-20 Michael Snyder <msnyder@redhat.com>
4257 Kevin Buettner <kevinb@redhat.com>
4258
4259 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4260 (frv_frame_init_saved_regs): Add declaration.
4261 (frame_extra_info): Add new field ``saved_regs''.
4262 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4263 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4264 Update frame related code.
4265 (frv_extract_struct_value_address): Adjust formatting.
4266 * Makefile.in (frv-tdep.o): Update dependencies.
4267 * config/frv/tm-frv.h (target_insert_watchpoint)
4268 (target_remove_watchpoint, target_insert_hw_breakpoint)
4269 (target_remove_hw_breakpoint): Delete these macros.
4270 (remote_insert_watchpoint, remote_remove_watchpoint)
4271 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4272 these declarations.
4273
87193939
MC
42742003-08-20 Michael Chastain <mec@shout.net>
4275
4276 * defs.h (ENUM_BITFIELD): New macro.
4277 * symtab.h (ENUM_BITFIELD): Use it.
4278 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4279
062103ba
SA
42802003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4281
4282 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4283
8b148df9
AC
42842003-08-18 Andrew Cagney <cagney@redhat.com>
4285
4286 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4287 * gdbarch.h, gdbarch.c: Re-generate.
4288 * infcall.c (call_function_by_hand): Adjust the SP by
4289 frame_red_zone_size before allocating any stack space.
4290 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4291 * x86-64-tdep.c (x86_64_frame_align): New function.
4292 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4293
4294 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4295 Remove code adjusting SP so that it skips over the Red Zone.
4296
954a4db8
MK
42972003-08-18 Mark Kettenis <kettenis@gnu.org>
4298
4299 * NEWS (New native configurations): Mention FreeBSD/amd64.
4300
1a241548
AC
43012003-08-18 Andrew Cagney <cagney@redhat.com>
4302
4303 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4304 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4305 "m68k_frame_p".
4306 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4307
f82b2acd
MK
43082003-08-18 Mark Kettenis <kettenis@gnu.org>
4309
4310 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4311
4056d258
ML
43122003-08-18 Michal Ludvig <mludvig@suse.cz>
4313
4314 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4315 Define.
4316 * i386-linux-nat.c: Include "linux-nat.h".
4317 (child_post_startup_inferior): New function.
a8f4cde1 4318
99ab4326
MK
43192003-08-18 Mark Kettenis <kettenis@gnu.org>
4320
4321 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4322 at the start of a frameless function. This probably fixes PR
4323 backtrace/1338.
4324
c8d5f0d6
MC
43252003-08-17 Michael Chastain <mec@shout.net>
4326
4327 * symfile.c (find_sym_fns): Remove special case for apollo target.
4328
9016a515
DJ
43292003-08-17 Daniel Jacobowitz <drow@mvista.com>
4330
4331 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4332 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4333 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4334 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4335 (linux_supports_tracevforkdone): New function.
4336 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4337 TRACEVFORKDONE.
4338 (child_follow_fork): Handle vfork.
4339 (linux_handle_extended_wait): Likewise. Also handle exec.
4340 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4341 * NEWS: Mention fork tracing.
4342
c538c11c
DJ
43432003-08-17 Daniel Jacobowitz <drow@mvista.com>
4344
4345 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4346
4de4c07c
DJ
43472003-08-17 Daniel Jacobowitz <drow@mvista.com>
4348
4349 * Makefile.in (i386-linux-nat.o): Update dependencies.
4350 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4351 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4352 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4353 * i386-linux-nat.c: Include "linux-nat.h".
4354 (child_post_startup_inferior): New function.
4355 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4356 * infptrace.c (kill_inferior): Wrap in #ifdef.
4357 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4358 attaching to each LWP.
4359 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4360 (init_lin_lwp_ops): Fill in some more operations.
4361 * linux-nat.h (linux_enable_event_reporting)
4362 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4363 prototypes.
4364 * linux-nat.c (linux_enable_event_reporting): New function.
4365 (child_post_attach, linux_child_post_startup_inferior)
4366 (child_post_startup_inferior, child_follow_fork)
4367 (linux_handle_extended_wait, kill_inferior): New functions.
4368
7996bcec
AC
43692003-08-16 Andrew Cagney <cagney@redhat.com>
4370
4371 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4372 * gdbarch.h, gdbarch.c: Re-generate.
4373
3d48a7a0
MK
43742003-08-16 Mark Kettenis <kettenis@gnu.org>
4375
4376 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4377
7989c619
AC
43782003-08-16 Andrew Cagney <cagney@redhat.com>
4379
4380 * NEWS: Mention that "set prompt-escape-char" was deleted.
4381 * top.c (get_prompt_1): Delete function.
4382 (gdb_prompt_escape):
4383 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4384 prompt-escape-char" command.
4385 (MAX_PROMPT_SIZE): Delete macro.
4386 (get_prompt): Simplify, do not call get_prompt_1.
4387
07978cd8
AC
43882003-08-16 Andrew Cagney <cagney@redhat.com>
4389
4390 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4391 -Werror. -Wformat-nonliteral problems.
4392
3ff7cf9e
JB
43932003-08-15 J. Brobecker <brobecker@gnat.com>
4394
4395 Further multiarching work mostly for hppa64-*-hpux11:
4396 * hppa-tdep.h: New file.
4397 * hppa-tdep.c: #include hppa-tdep.c.
4398 (hppa32_num_regs): Renamed from hppa_num_regs.
4399 (hppa64_num_regs): New constant.
4400 (hppa64_call_dummy_breakpoint_offset): New constant.
4401 (hppa32_call_dummy_length): New constant.
4402 (hppa64_call_dummy_length): New constant.
4403 (hppa32_stack_align): Make name 32bit explicit.
4404 (hppa32_register_virtual_type): Likewise.
4405 (hppa32_extract_return_value): Likewise.
4406 (hppa32_use_struct_convention): Likewise.
4407 (hppa32_store_return_value): Likewise.
4408 (hppa64_register_virtual_type): New function.
4409 (hppa64_extract_return_value): New function.
4410 (hppa64_use_struct_convention): New function.
4411 (hppa64_store_return_value): New function.
4412 (hppa_frame_locals_address): Remove declaration, function does
4413 not exist anymore.
4414 (hppa_register_byte): Add support for PA64 ABI.
4415 (hppa_gdbarch_init): Add support for PA64 ABI.
4416 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4417 Make name 32bit explicit.
4418 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4419 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4420 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4421 (hppa64_hpux_frame_base_before_sigtramp): New function.
4422 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4423 * config/pa/tm-hppa64.h: Remove macros that are no longer
4424 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4425 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4426 * config/pa/tm-hppah.h: Update function calls in macros
4427 following the function renaming in hppa-hpux-tdep.c.
4428 * Makefile.in (hppa_tdep_h): New variable.
4429 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4430
5d05ca6d
MS
44312003-08-14 Michael Snyder <msnyder@redhat.com>
4432
4433 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4434
37ba2569
JB
44352003-08-13 J. Brobecker <brobecker@gnat.com>
4436
4437 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4438 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4439 routine.
4440
aed7f26a
MS
44412003-08-13 Michael Snyder <msnyder@redhat.com>
4442
4443 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4444 (frv_saved_pc_after_call): Use deprecated ftype.
4445 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4446 (frv_remote_translate_xfer_address): Remove.
4447 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4448
752d4ac1
JB
44492003-08-13 J. Brobecker <brobecker@gnat.com>
4450
4451 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4452 initialization after the common gdbarch initialization, not before.
4453
1426ac1d
JB
44542003-08-13 J. Brobecker <brobecker@gnat.com>
4455
4456 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4457 (ADDR_BITS_REMOVE): Remove, redundant.
4458
b6fbdd1d
JB
44592003-08-13 J. Brobecker <brobecker@gnat.com>
4460
4461 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4462 gdbarch method to clear the 2 low bits of text addresses.
4463
44160db3
AC
44642003-08-12 Andrew Cagney <cagney@redhat.com>
4465
4466 * Makefile.in (dsrec.o): Update dependencies.
4467 * dsrec.c: Include "gdb_assert.h".
4468 (make_srec): Use snprintf instead of sprintf, use a literal format
4469 string.
4470
bcf7d3ca
AC
44712003-08-12 Andrew Cagney <cagney@redhat.com>
4472
4473 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4474 FRAME_OBSTACK_ZALLOC.
4475
49ed40de
KB
44762003-08-12 Kevin Buettner <kevinb@redhat.com>
4477
4478 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4479 SSE registers.
4480
b246147c
MK
44812003-08-10 Mark Kettenis <kettenis@gnu.org>
4482
4483 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4484 amd64fbsd_sc_reg_offset): Add extern declarations.
4485 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4486 declarations.
4487
d95fdc0d
BE
44882003-08-11 Ben Elliston <bje@wasabisystems.com>
4489
4490 * MAINTAINERS (write after approval): Update my mail address.
4491
cf6a0e73
AC
44922003-08-10 Andrew Cagney <cagney@redhat.com>
4493
4494 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4495
f837910f
MK
44962003-08-10 Mark Kettenis <kettenis@gnu.org>
4497
e2dbbd2d
MK
4498 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4499 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4500 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4501 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4502 i386bsd_sc_reg_offset): Add extern declarations.
4503 * i386obsd-nat.c: Include "i386-tdep.h"
4504 (_initialize_i386obsd_nat): Remove extern declarations.
4505 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4506 declarations.
4507 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4508 declarations.
4509
f837910f
MK
4510 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4511 instead of frame_read_register.
4512 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4513 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4514 SP_REGNUM.
4515 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4516 instead of frame_unwind_unsigned_register. Use
4517 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4518 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4519 instead of read_register. Use builtin_type_void_data_ptr instead
4520 of builtin_type_void_func_ptr when extracting the address of the
4521 jmp_buf.
4522 (i386_extract_return_value, i386_store_return_value,
4523 i386_pseudo_register_read, i386_pseudo_register_write): Use
4524 register_size instead REGISTER_RAW_SIZE.
4525
edcf254d
AC
45262003-08-10 Andrew Cagney <cagney@redhat.com>
4527
4528 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4529 sprintf. Make "name" constant.
4530
26604a34
MK
45312003-08-10 Mark Kettenis <kettenis@gnu.org>
4532
192285c6
MK
4533 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4534 instead of frame_read_register.
f837910f
MK
4535 (i387_print_float_info): Use get_frame_register and
4536 get_frame_register_unsigned instead of frame_register_read.
192285c6 4537
f0925262
MK
4538 * i386fbsd-nat.c: Include "i386-tdep.h".
4539 (child_resume): Make `eflags' an ULONGEST. Use
4540 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4541 instead of register_read and register_write.
4542
a144416f
MK
4543 * i386bsd-nat.c (fetch_inferior_registers,
4544 store_inferior_registers): Don't use && at the end of a line.
4545 (_initialize_i386bsd_nat): Fix typo.
4546
fec74868
MK
4547 * frame.c (_initialize_frame): Add missing backslash.
4548
87232496
MK
4549 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4550 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4551 and supply_register instead of manipulating the register buffer
4552 directly.
4553
c9b9de0b
MK
4554 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4555 * config/i386/nm-i386sol2.h
4556 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4557
26604a34
MK
4558 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4559 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4560 instructions that GCC likes to mingle into the prologue. Fixes
4561 gdb/1253 and gdb/1255.
4562
25d29d70
AC
45632003-08-09 Andrew Cagney <cagney@redhat.com>
4564
4565 Fix GDB PR cli/926.
4566 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4567 * command.h (add_setshow_uinteger_cmd): Declare.
4568 * frame.c (set_backtrace_cmd): New function.
4569 (show_backtrace_cmd): New function.
4570 * frame.c (_initialize_frame): Replace "set/show
4571 backtrace-below-main" with "set/show backtrace past-main". Add
4572 command "set/show backtrace limit".
4573 (backtrace_past_main): Rename "backtrace_below_main".
4574 (backtrace_limit): New variable.
4575 (get_prev_frame): Update. Check the backtrace_limit.
4576
9ebf4acf
AC
45772003-08-09 Andrew Cagney <cagney@redhat.com>
4578
4579 * defs.h (xstrprintf): Declare.
4580 * utils.c (xstrprintf): New function.
4581 * breakpoint.c (insert_breakpoints): Replace sprintf and
4582 non-literal format strings, with xstrprintf and cleanups.
4583 (delete_breakpoint,breakpoint_re_set): Ditto.
4584 (commands_command, insert_breakpoints): Ditto.
4585 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4586 (break_at_finish_command_1): Ditto.
4587
3771659b
AC
45882003-08-09 Andrew Cagney <cagney@redhat.com>
4589
4590 * MAINTAINERS (language support): List Adam Fedor as Objective C
4591 maintainer.
4592
b4263afa
JB
45932003-08-08 J. Brobecker <brobecker@gnat.com>
4594
4595 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4596 are now multiarched.
4597
d84defb1
JB
45982003-08-08 J. Brobecker <brobecker@gnat.com>
4599
4600 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4601 longer necessary now that hppa64 is partially multiarch'ed.
4602
f786f615
AC
46032003-08-08 Andrew Cagney <cagney@redhat.com>
4604
4605 * interps.c (interp_set): Check for a NULL "old_interp".
4606
c938e9b0
L
46072003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4608
4609 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4610 (install-only): Support DESTDIR.
4611 (uninstall): Likewise.
4612 (install-gdbtk): Likewise.
4613
9a146a11
EZ
46142003-08-08 Elena Zannoni <ezannoni@redhat.com>
4615
4616 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4617 contains something meaningful at all times.
4618
4619Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4620
62599e99 4621 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4622
56296155
BC
4623Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4624
62599e99 4625 * MAINTAINERS (write after approval): Added self.
56296155 4626
9710e734
AC
46272003-08-07 Andrew Cagney <cagney@redhat.com>
4628
4629 * inferior.h (AT_SYMBOL): Define.
4630 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4631 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4632 * mips-tdep.c (mips_call_dummy_address): Delete function.
4633 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4634 set call_dummy_address.
4635
98b3ab73
AC
46362003-08-07 Andrew Cagney <cagney@redhat.com>
4637
4638 * language.c (op_error): Delete function.
4639 (binop_type_check): Delete function.
4640 * language.h (type_op_error, range_op_error): Delete macros.
4641 (op_error): Delete declaration.
4642
2fcf52f0
AC
46432003-08-07 Andrew Cagney <cagney@redhat.com>
4644
4645 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4646
abd4220e 46472003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4648
abd4220e 4649 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4650 (x86_64_push_arguments): Skip the red zone.
abd4220e 4651
9dd5f34f
AC
46522003-08-05 Andrew Cagney <cagney@redhat.com>
4653
4654 * reggroups.c (reggroup_next): Check for the final entry.
4655
e5e78edc
AC
46562003-08-04 Andrew Cagney <cagney@redhat.com>
4657
ab4e3d93
AC
4658 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4659 * cli/cli-script.c (define_command): Call query directly, instead
4660 of passing it a buffer.
4661 * ocd.c (ocd_error): Pass error a constant format string.
4662 * remote-mips.c (mips_error): Use fputs_filtered.
4663
1062ca82
AC
4664 * solib-svr4.c (_initialize_svr4_solib): Update
4665 register_gdbarch_data call.
4666 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4667
fcc1c85c
AC
4668 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4669 (register_gdbarch_data): Delete "free" parameter. Update
4670 comments.
4671 * gdbarch.h, gdbarch.c: Re-generate.
4672 * reggroups.c (_initialize_reggroup): Update.
4673 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4674 * frame-base.c (_initialize_frame_base): Update.
4675 * frame-unwind.c (_initialize_frame_unwind): Update.
4676 * user-regs.c (_initialize_user_regs): Update.
4677 * remote.c (_initialize_remote): Update.
4678 * regcache.c (_initialize_regcache): Update.
4679
116f06ea
AC
4680 * regcache.c (xfree_regcache_descr): Delete function.
4681 (_initialize_regcache): Update call to register_gdbarch_data.
4682 (init_regcache_descr, init_legacy_regcache_descr): Use
4683 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4684
e5e78edc
AC
4685 * remote.c (free_remote_state): Delete function.
4686 (_initialize_remote): Update register_gdbarch_data.
4687 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4688 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4689
6c7d17ba
AC
46902003-08-04 Andrew Cagney <cagney@redhat.com>
4691
4692 * reggroups.c (struct reggroup_el): Define.
4693 (struct reggroups): Delete field "nr_group". Replace array
4694 "group" with a "first" to "last" linked list.
4695 (reggroups_init): Update. Allocate using gdbarch's obstack.
4696 (reggroups_free): Delete function.
4697 (add_group): Update. Add "el" parameter.
4698 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4699 (default_groups): Update.
4700 (reggroup_next): Replace reggroups.
4701 (reggroups_dump): Update.
4702 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4703 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4704 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4705
89b7795b
DJ
47062003-08-04 Daniel Jacobowitz <drow@mvista.com>
4707
4708 * Makefile.in (tui-interp.o): Update dependencies.
4709
306d9ac5
DC
47102003-08-04 David Carlton <carlton@kealia.com>
4711
4712 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4713 to internal_error call.
4714 * source.c (forward_search_command): Add "%s" format argument.
4715 (reverse_search_command): Ditto.
4716 * top.c (quit_confirm): Ditto.
4717 * cli/cli-setshow.c (do_setshow_command): Ditto.
4718 * cp-valprint.c (cp_print_class_method): Replace
4719 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4720 (cp_print_class_member): Ditto.
4721 * event-top.c (command_line_handler): Ditto.
4722 * linux-proc.c (linux_info_proc_cmd): Ditto.
4723 * p-typeprint.c (pascal_type_print_base): Ditto.
4724 * p-valprint.c (pascal_object_print_class_method): Ditto.
4725 (pascal_object_print_class_member): Ditto.
4726 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4727 * remote.c (remote_cisco_section_offsets): Ditto.
4728 * top.c (command_line_input): Ditto.
4729 * utils.c (vwarning,error_stream,quit): Ditto.
4730 * valprint.c (print_floating,print_binary_chars)
4731 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4732
57bfe177
AC
47332003-08-04 Andrew Cagney <cagney@redhat.com>
4734
4735 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4736
e546b999
AC
47372003-08-02 Andrew Cagney <cagney@redhat.com>
4738
4739 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4740 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4741 amd64fbsd-nat.c.
4742
91092ee5
AC
47432003-08-02 Andrew Cagney <cagney@redhat.com>
4744
4745 * Makefile.in: Update all dependencies and definitions.
4746
889f28e2
AF
47472003-08-02 Adam Fedor <fedor@gnu.org>
4748
4749 * linespec.c (is_objc_method_format): New function
4750 (decode_line_1, locate_first_half): Use it.
4751 Fixes PR objc/1298
4752
880bc914
AC
47532003-08-01 Andrew Cagney <cagney@redhat.com>
4754
4755 * NEWS: Mention that m32r is multi-arch.
4756 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4757 * configure.tgt: Recognize m32r-*-*.
4758 * config/m32r/tm-m32r.h: Delete file.
4759 * config/m32r/m32r.mt: New file.
a8f4cde1 4760 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4761 gethostname succeeds, in order to avoid a compilation
4762 warning.
4763 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4764 compiler warning.
4765
19f59343
MS
47662003-08-01 Michael Snyder <msnyder@redhat.com>
4767
4768 * sh-tdep.c (sh_frame_align): New gdbarch method.
4769 (sh_gdbarch_init): Set up frame_align method.
4770
4e7d7511
MS
47712003-07-31 Michael Snyder <msnyder@redhat.com>
4772
4773 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4774 which is already covered by the new frames infrastructure.
4775
63022984
AC
47762003-07-31 Andrew Cagney <cagney@redhat.com>
4777
4778 * user-regs.c (struct user_reg): Add "next" link.
4779 (struct user_regs): Replace "user" with "first" and "last" links.
4780 (append_user_reg): Add pre-allocated "reg" parameter.
4781 (builtin_user_regs): Provide initial value for "last".
4782 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4783 (user_regs_init): Allocate memory from the gdbarch obstack.
4784 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4785 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4786 linked list.
4787 (usernum_to_user_reg): New function.
4788 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4789 (value_of_user_reg): Use usernum_to_user_reg.
4790 (user_regs_free): Delete function.
4791 (_initialize_user_regs): Update register_gdbarch_data call.
4792
7cf6e574
DJ
47932003-07-31 Daniel Jacobowitz <drow@mvista.com>
4794
4795 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4796
c48a845b
MS
47972003-07-30 Michael Snyder <msnyder@redhat.com>
4798
4e7d7511 4799 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4800 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4801 value_being_returned.
4802 * infcmd.c (print_return_value): Pass zero as struct_addr.
4803 * values.c (value_being_returned): If struct_addr is passed,
4804 use it instead of trying to recover it from the inferior.
4805
f0d8db19
KB
48062003-07-30 Kevin Buettner <kevinb@redhat.com>
4807
4808 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4809 the prologue analyzer won't need to attempt to extract the pc
4810 value from the woefully incomplete dummy frame.
4811 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4812 possible. Disable code which modifies the frame.
4813
e5c113a1
AC
48142003-07-28 Andrew Cagney <cagney@redhat.com>
4815
4816 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4817 to level 2.
4818 (annotate_breakpoints_table, annotate_record): Ditto.
4819 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4820 (annotate_field_name_end, annotate_field_value): Ditto.
4821 (annotate_field_end, annotate_frame_source_begin): Ditto.
4822 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4823 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4824 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4825 (annotate_frame_address_end, annotate_frame_address): Ditto.
4826 (annotate_frame_args, annotate_frame_end): Ditto.
4827 (annotate_frame_where, annotate_arg_begin): Ditto.
4828 (annotate_arg_name_end, annotate_arg_value): Ditto.
4829 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4830 (annotate_function_call, annotate_signal_name): Ditto.
4831 (annotate_signal_string, annotate_signal_name_end): Ditto.
4832 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4833 (annotate_value_begin, annotate_value_history_value): Ditto.
4834 (annotate_value_history_end, annotate_value_end): Ditto.
4835 (annotate_display_begin, annotate_display_number_end): Ditto.
4836 (annotate_display_format, annotate_display_expression): Ditto.
4837 (annotate_display_expression_end, annotate_display_value): Ditto.
4838 (annotate_display_end, annotate_array_section_begin): Ditto.
4839 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4840 (annotate_elt, annotate_array_section_end): Ditto.
4841
bb1db049
AC
48422003-07-28 Andrew Cagney <cagney@redhat.com>
4843
4844 * regcache.c (struct regcache_descr): Update comments on
4845 nr_raw_registers.
4846 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4847 sizeof_raw_register_valid_p.
4848 (init_regcache_descr): Set nr_raw_registers and
4849 sizeof_raw_register_valid_p before calling
4850 init_legacy_regcache_descr.
4851
20e6603c
AC
48522003-07-28 Andrew Cagney <cagney@redhat.com>
4853
4854 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4855 MOD NUM_REGS.
4856
db742940
DJ
48572003-07-28 Daniel Jacobowitz <drow@mvista.com>
4858
4859 * thread.c (info_threads_command): Use get_selected_frame ().
4860 Check that there is at least one non-sentinel frame.
4861
ce7f4371
SC
48622003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4863
4864 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4865 (m68hc11_pop_frame): Remove.
4866 (m68hc11_frame_saved_pc): Remove.
4867 (m68hc11_frame_chain): Remove.
4868 (m68hc11_frame_init_saved_regs): Remove.
4869 (m68hc11_init_extra_frame_info): Remove.
4870 (m68hc11_store_struct_return): Remove.
4871 (m68hc11_saved_pc_after_call): Remove.
4872
1ea653ae
SC
48732003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4874
4875 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4876 frame unwind information.
4877 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4878 and adapted for frame unwinding.
4879 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4880 (m68hc11_unwind_pc): New function.
4881 (m68hc11_frame_unwind_cache): New function to analyze frames.
4882 (m68hc11_frame_this_id): New function to create new frame struct.
4883 (m68hc11_frame_prev_register): New function to unwind a register from
4884 the frame.
4885 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4886 (m68hc11_frame_p): New function for the above.
4887 (m68hc11_frame_base_address): New function to return fp of frame.
4888 (m68hc11_frame_args_address): Update for frame.
4889 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4890 (m68hc11_unwind_sp): New function.
4891 (m68hc11_unwind_dummy_id): New function.
4892 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4893 calls.
4894
c8a7f6ac
SC
48952003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4896
4897 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4898 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4899 when we are beyond the current pc.
4900
3dc990bf
SC
49012003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4902
4903 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4904 from m68hc11_push_arguments.
4905 (m68hc11_push_arguments): Remove.
4906 (m68hc11_push_return_address): Remove.
4907 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4908 handlers; remove deprecated_extra_stack_alignment_needed.
4909
222e5d1d
AC
49102003-07-27 Andrew Cagney <cagney@redhat.com>
4911
4912 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4913 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4914 REAL_PC and not the pointer.
4915 * hppa-hpux-tdep.c: Include frame.h
4916
a7e9a47e
AC
49172003-07-27 Andrew Cagney <cagney@redhat.com>
4918
4919 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4920 GDB_MULTI_ACH_PARTIAL.
4921
7e3dd49e
AC
49222003-07-27 Andrew Cagney <cagney@redhat.com>
4923
4924 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4925 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4926 operator at start and not end of line.
4927 (decode_prologue): Ditto.
4928 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4929 frame_unwind_register_unsigned instead of
4930 frame_unwind_unsigned_register.
4931 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4932 read_register.
4933 (m32r_push_dummy_call): Use register_size instead of
4934 REGISTER_RAW_SIZE.
4935 (m32r_frame_sniffer): Replace m32r_frame_p.
4936 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4937 * m32r-rom.c (report_transfer_performance): Delete extern
4938 declaration.
4939 (m32r_load, m32r_upload_command): Use print_transfer_performance
4940 instead of report_transfer_performance.
4941 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4942 / add_show_from_set.
4943
0880807f
AC
49442003-07-26 Andrew Cagney <cagney@redhat.com>
4945
4946 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4947 store_return_value and extract_struct_value_address.
4948
64ae9269
DJ
49492003-07-26 Daniel Jacobowitz <drow@mvista.com>
4950
4951 PR c++/1267
4952 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4953 NULL, default to the section containing PC.
4954
e286caf2
SC
49552003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4956
4957 * NEWS: Mention "regs" deprecated for m68hc11 too.
4958
4959 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4960 (m68hc11_print_register): New function to print out one register.
4961 (m68hc11_print_registers_info): New function to print registers.
4962 (show_regs): Deprecate and use the above.
4963 (m68hc11_gdbarch_init): Install the print_registers_info.
4964
705b278b
JJ
49652003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4966
4967 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4968 that we have a SIGTRAP before returning non-zero.
4969
63cd4198
EZ
49702003-07-23 Michal Ludvig <mludvig@suse.cz>
4971 Elena Zannoni <ezannoni@redhat.com>
4972
a8f4cde1 4973 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4974 find_function_start_sal() returns empty record.
4975
6926787d
AS
49762003-07-23 Andreas Schwab <schwab@suse.de>
4977
4978 * ia64-tdep.c (ia64_print_insn): New function.
4979 (ia64_gdbarch_init): Set print_insn to it.
4980 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4981 deprecated_tm_print_insn_info.
4982
708cc1b6
MS
49832003-07-22 Michael Snyder <msnyder@redhat.com>
4984
4985 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4986 handle 8-bit returns (long long).
4987 (h8300h_extract_return_value): Ditto.
4988 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4989
aebd7893
AC
49902003-07-22 Andrew Cagney <cagney@redhat.com>
4991
4992 * gdbarch.c Include "gdb_obstack.h".
4993 (struct gdbarch): Add an "obstack".
4994 (alloc_gdbarch_data): Allocate the gdbarch data using
4995 GDBARCH_OBSTACK_CALLOC.
4996 (free_gdbarch_data): Delete function.
4997 (gdbarch_obstack_zalloc): New function.
4998 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4999 Assert that the architecture is not initialized.
5000 (gdbarch_alloc): Allocate an obstack, allocate the architecture
5001 vector from the obstack.
5002 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
5003 architecture obstack.
5004 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
5005 (set_gdbarch_data): Assert that the data is not initialized.
5006 (struct gdbarch_data): Delete member "free".
5007 (register_gdbarch_data): Do not initialize "free".
5008 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 5009
153721e6
AC
50102003-07-22 Andrew Cagney <cagney@redhat.com>
5011
5012 * configure.in (build_warnings): Add -Wformat-nonliteral.
5013 * configure: Re-generate.
5014
c193f044 50152003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
5016
5017 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 5018
c3228f12
EZ
50192003-07-22 Elena Zannoni <ezannoni@redhat.com>
5020
5021 * findvar.c (read_var_value): Remove case for thread local storage
5022 variables. It is now entirely handled by the dwarf2 location
5023 expression code.
5024 * printcmd.c (address_info): Ditto.
5025 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
5026 enumeration value.
5027 (struct symbol): Remove objfile field, which was used by
5028 LOC_THREAD_LOCAL_STATIC only.
5029 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5030 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5031 usage of objfile pointer.
5032 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5033 thread local variables.
5034 Add include of objfiles.h.
5035 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5036 storage variables.
5037 * Makefile.in (dwarf2loc.o): Update dependencies.
5038
aef9bcd2
AC
50392003-07-22 Andrew Cagney <cagney@redhat.com>
5040
5041 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5042 get_frame_base.
5043 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5044 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5045 (struct value): Add opaque declaration.
5046 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5047
d95a8903
AC
50482003-07-21 Andrew Cagney <cagney@redhat.com>
5049
5050 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5051 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5052
4db73d49
SC
50532003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5054
a8f4cde1 5055 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5056 regcache_cooked_read_unsigned instead of read_register.
5057 (m68hc11_saved_pc_after_call): Likewise.
5058 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5059 instead of write_register.
5060 (m68hc11_register_type): New function.
5061 (m68hc11_register_virtual_type): Remove.
5062 (m68hc11_store_return_value): Convert to use the regcache.
5063 (m68hc11_extract_struct_value_address): Likewise.
5064 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5065 m68hc11_register_type; undeprecate store_return_value and
5066 extract_struct_value_address.
5067
ef2b8fcd
SC
50682003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5069
5070 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5071 and translate to use regcache.
5072 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5073
625b0b97
AC
50742003-07-18 Andrew Cagney <cagney@redhat.com>
5075
5076 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5077 * gdbarch.h, gdbarch.c: Re-generate.
5078 * i386-tdep.c (i386_gdbarch_init): Do not set
5079 DWARF2_BUILD_FRAME_INFO.
5080 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5081 unconditionally.
5082 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5083 DWARF2_BUILD_FRAME_INFO.
5084
22b0d388
AC
50852003-07-18 Andrew Cagney <cagney@redhat.com>
5086
5087 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5088 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5089
1ce5d6dd
AC
50902003-07-18 Andrew Cagney <cagney@redhat.com>
5091
5092 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5093 frame_unwind_address_in_block, instead of frame_pc_unwind.
5094 (dwarf2_frame_cache): Ditto.
5095
e6e5e94c
AC
50962003-07-18 Andrew Cagney <cagney@redhat.com>
5097
5098 * user-regs.h (struct gdbarch): Declare opaque.
5099 * ui-out.h (struct ui_file): Declare opaque.
5100 * dwarf2-frame.h (struct frame_info): Declare opaque.
5101
5483d879
KW
51022003-07-18 Kris Warkentin <kewarken@qnx.com>
5103
5104 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5105 #include "...".
5106 (procfs_meminfo): Change strerror to safe_strerror.
5107 (procfs_can_run): Remove K&R badness.
5108
278a7cf7
MS
51092003-07-17 Michael Snyder <msnyder@redhat.com>
5110
5111 * remote-sim.c: Comment typo fix.
5112
606e3b82
AC
51132003-07-17 Andrew Cagney <cagney@redhat.com>
5114
5115 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5116 configure.
5117 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5118 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5119 GDB_MULTI_ARCH_PARTIAL.
5120
c43af07c
EZ
51212003-07-17 Elena Zannoni <ezannoni@redhat.com>
5122
5123 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5124 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5125 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5126
3b85b0f1
TR
51272003-07-16 Theodore A. Roth <troth@openavr.org>
5128
5129 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5130 found.
5131 (avr_frame_unwind_cache): Don't unwind FP for main.
5132 Update a comment.
5133 Save the computed prev_sp.
5134 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5135 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5136 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5137
336d1bba
AC
51382003-07-16 Andrew Cagney <cagney@redhat.com>
5139
5140 * frame-base.h (frame_base_p_ftype): Delete definition.
5141 (frame_base_append_predicate): Delete declaration.
5142 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5143 (frame_unwind_append_predicate): Delete declaration.
5144 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5145 (append_predicate): Delete parameter "p".
5146 (frame_unwind_append_predicate): Delete function.
5147 (frame_unwind_append_sniffer): Update call to append_predicate.
5148 (frame_unwind_free): Delete function.
5149 (_initialize_frame_unwind): Pass NULL as "free" to
5150 register_gdbarch_data.
5151 (frame_unwind_init): Append the dummy_frame_sniffer.
5152 (frame_unwind_find_by_frame): Simplify.
5153 * frame-base.c (struct frame_base_table): Delete field "p".
5154 (append_predicate): Delete parameter "p".
5155 (frame_base_append_predicate): Delete function.
5156 (frame_base_append_sniffer): Update call to append_predicate.
5157 (frame_base_free): Delete function.
5158 (frame_base_find_by_frame): Simplify.
5159 (_initialize_frame_base): Pass NULL as "free" to
5160 register_gdbarch_data.
5161 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5162 (x86_64_sigtramp_frame_sniffer): Replace
5163 "x86_64_sigtramp_frame_p".
5164 (x86_64_init_abi): Set the frame unwind sniffers.
5165 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5166 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5167 (m68k_gdbarch_init): Set the frame unwind sniffers.
5168 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5169 "i386_sigtramp_frame_p".
5170 (i386_frame_sniffer): Replace "i386_frame_p".
5171 (i386_gdbarch_init): Set the frame unwind sniffers.
5172 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5173 (avr_gdbarch_init): Set the frame unwind sniffers.
5174 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5175 "alpha_sigtramp_frame_p"
5176 (alpha_heuristic_frame_sniffer): Replace
5177 "alpha_heuristic_frame_p".
5178 (alpha_gdbarch_init): Set the frame unwind sniffers.
5179 (alpha_dwarf2_init_abi): Ditto.
5180 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5181 "alpha_debug_frame_p".
5182 (alpha_mdebug_frame_base_sniffer): Replace
5183 "alpha_mdebug_frame_base_p".
5184 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5185 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5186 (d10v_gdbarch_init): Set the frame unwind sniffer.
5187 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5188 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5189 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5190 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5191 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5192 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5193
48db5a3c
CV
51942003-07-16 Michael Snyder <msnyder@redhat.com>
5195
5196 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5197 should go thru sh_dsp_register_sim_regno, else the dsp regs
5198 will not get the right values.
5199
52002003-07-16 Corinna Vinschen <vinschen@redhat.com>
5201
5202 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5203 deprecated_store_floating by call to store_typed_floating.
5204 (sh_sh4_register_convert_to_raw): Substitute call to
5205 deprecated_extract_floating by call to extract_typed_floating.
5206
52072003-07-16 Corinna Vinschen <vinschen@redhat.com>
5208
5209 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5210
52112003-07-16 Corinna Vinschen <vinschen@redhat.com>
5212
5213 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5214 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5215 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5216 as possible.
5217 (do_pseudo_register): Remove.
5218 (sh_push_dummy_code): New function.
5219 (sh64_store_struct_return): Rename from sh_store_struct_return.
5220 Only called for sh64 now.
5221 (sh_extract_struct_value_address): Regcache'ify.
5222 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5223 and accomodate new tasks.
5224 (sh64_push_return_address): Rename from sh_push_return_address.
5225 Only called for sh64 now.
5226 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5227 Regcache'ify.
5228 (sh3e_sh4_extract_return_value): Regcache'ify.
5229 (sh_default_store_return_value): Ditto.
5230 (sh3e_sh4_store_return_value): Ditto.
5231 (sh_default_register_byte): Remove.
5232 (sh_sh4_register_byte): Remove.
5233 (sh_default_register_raw_size): Remove.
5234 (sh_sh4_register_raw_size): Remove.
5235 (sh_register_virtual_size): Remove.
5236 (sh_sh3e_register_virtual_type): Remove.
5237 (sh_sh3e_register_type): New function.
5238 (sh_sh4_register_virtual_type): Remove.
5239 (sh_sh4_register_type): New function.
5240 (sh_default_register_virtual_type): Remove.
5241 (sh_default_register_type): New function.
5242 (do_fv_register_info): Add parameters to accomodate call from
5243 sh_print_registers_info.
5244 (do_dr_register_info): Ditto.
5245 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5246 Add parameters to accomodate call from sh_print_registers_info.
5247 (sh_do_fp_register): Ditto.
5248 (sh64_do_pseudo_register): Call do_dr_register_info,
5249 do_fv_register_info and sh_do_fp_register with default parameters.
5250 (sh_do_register): Add parameters to accomodate call from
5251 sh_print_registers_info.
5252 (sh_print_register): Ditto.
5253 (sh_print_registers_info): Rename from sh_do_registers_info.
5254 Add parameters to be used as gdbarch_print_registers_info
5255 implementation. Accomodate removed do_pseudo_register function
5256 pointer.
5257 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5258 function pointer. Call sh_print_register with default parameters.
5259 (sh64_do_registers_info): Call sh_print_registers_info instead of
5260 sh_do_registers_info.
5261 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5262 detection of deprecated vs. non-deprecated functionality.
5263 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5264 function pointer assignments by direct function calls.
5265
e8a89fe2
AC
52662003-07-15 Andrew Cagney <cagney@redhat.com>
5267
5268 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5269 (frame_register_unwind, create_new_frame): Ditto.
5270 (legacy_get_prev_frame, get_frame_type): Ditto.
5271 (get_frame_base_address): Use frame_base_find_by_frame.
5272 (get_frame_locals_address): Use frame_base_find_by_frame.
5273 (get_frame_args_address): Use frame_base_find_by_frame.
5274 * frame-base.h (frame_base_sniffer_ftype): Declare.
5275 (frame_base_append_sniffer): Declare.
5276 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5277 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5278 (frame_base_append_sniffer): New function.
5279 (frame_base_append_predicate): Add a NULL sniffer.
5280 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5281 (struct frame_base_table): Add "sniffer".
5282 (frame_base_free): Free the "sniffer" table.
5283 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5284 (frame_unwind_append_sniffer): Declare.
5285 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5286 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5287 (struct frame_unwind_table): Add "sniffer", delete "middle".
5288 (append_predicate): Add "sniffer" parameter, append the sniffer.
5289 (frame_unwind_init): Update append_predicate call.
5290 (frame_unwind_append_sniffer): New function.
5291 (frame_unwind_append_predicate): Update append_predicate call.
5292 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5293
0714963c
AC
52942003-07-15 Andrew Cagney <cagney@redhat.com>
5295
5296 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5297 before code inhibiting repeated unwind attempts. Add to
5298 commentary on that test's problems.
5299 * blockframe.c (inside_main_func): Look for "main" in the minimal
5300 symbol table.
5301 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5302 identical.
5303
d9170e22
AC
53042003-07-15 Andrew Cagney <cagney@redhat.com>
5305
5306 * complaints.c (struct explanation): Define.
5307 (struct complaints): Change type of "explanation" to "struct
5308 explanation".
5309 (symfile_explanations): Convert to a "struct explanation" table.
5310 (vcomplaint): Update.
5311
eba29c8c
ML
53122003-07-15 Michal Ludvig <mludvig@suse.cz>
5313
5314 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5315 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5316 x86_64_linux_(fill,supply)_gregset functions.
5317 * x86-64-linux-tdep.c (USER_*): New defines.
5318 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5319 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5320 New functions.
5321 (fetch_core_registers): Ditto.
5322 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5323 * x86-64-linux-tdep.h: New file.
5324 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5325 and core-regset.o.
5326 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5327
68cc0bfb
MK
53282003-07-13 Mark Kettenis <kettenis@gnu.org>
5329
88a115f7
MK
5330 * x86-64-tdep.c (x86_64_store_return_value): Use
5331 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5332
68cc0bfb
MK
5333 * configure.host: Add x86_64-*-freebsd*.
5334 * configure.tgt: Add x86_64-*-freebsd*.
5335 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5336 * amd64fbsd-nat.c: New file.
5337 * amd64fbsd-tdep.c: New file.
5338 * config/i386/nm-fbsd64.h: New file.
5339 * config/i386/fbsd64.mh: New file.
5340 * config/i386/fbsd64.mt: New file.
5341
138e7be5
MK
53422003-07-11 Mark Kettenis <kettenis@gnu.org>
5343
5344 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5345 `sc_regs_offset' and `sc_fpregs_offset'.
5346 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5347 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5348 (alpha_sigtramp_register_address): Rewrite to use new members of
5349 `struct gdbarch_tdep'.
5350 (alpha_gdbarch_init): Initialize new members of struct
5351 gdbarch_tdep'.
5352 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5353 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5354 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5355 (alphafbsd_pc_in_sigtramp): Implement.
5356 (alphafbsd_sigtramp_offset): New function.
5357 (alphafbsd_sigcontext_addr): New function.
5358 (alphafbsd_init_abi): Initialize signal trampoline related members
5359 of `struct gdbarch_tdep'.
5360 (_initialize_alphafbsd_tdep): Add prototype.
5361
95303a68
TR
53622003-07-11 Theodore A. Roth <troth@openavr.org>
5363
ba292e4c
TR
5364 * Makefile.in (install-only): Quote sed expression when generating
5365 transformed_name.
95303a68 5366
6896c0c7
RH
53672003-07-11 Richard Henderson <rth@redhat.com>
5368
5369 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5370 * dwarf2-frame.c: Include complaints.h.
5371 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5372 variable initialization; return NULL on error.
5373 (decode_frame_entry): New.
5374
8edd5d01
AC
53752003-07-11 Andrew Cagney <cagney@redhat.com>
5376
c4a09524
AC
5377 * frame.h (frame_address_in_block): Delete declaration.
5378 * blockframe.c (frame_address_in_block): Delete function.
5379 (get_frame_block): Use get_frame_address_in_block.
5380 (block_innermost_frame): Ditto.
5381 * stack.c (print_frame, backtrace_command_1): Ditto.
5382
8edd5d01
AC
5383 * frame.h (get_frame_address_in_block): Declare.
5384 (frame_unwind_address_in_block): Declare.
5385 * frame.c (frame_unwind_address_in_block): New function.
5386 (get_frame_address_in_block): New function.
5387
f7968451
AC
53882003-07-10 Andrew Cagney <cagney@redhat.com>
5389
5390 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5391 pre-default. Note: re-generate has no effect.
a8f4cde1 5392
ae99b398
AC
53932003-07-10 Andrew Cagney <cagney@redhat.com>
5394
5395 * gdbarch.sh: When a variable, but not a function, compare against
5396 0. Fix problem in previous patch.
5397 * gdbarch.c: Re-generate.
a8f4cde1 5398
956ac328
AC
53992003-07-10 Andrew Cagney <cagney@redhat.com>
5400
5401 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5402 functions against NULL, not 0.
5403 * gdbarch.c: Re-generate.
a8f4cde1 5404
287c3240
FF
54052003-07-10 Fred Fish <fnf@ninemoons.com>
5406
5407 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5408 null string instead of a null pointer.
5409 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5410
32f63c4b
MS
54112003-07-09 Michael Snyder <msnyder@redhat.com>
5412
5413 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5414
402ecd56
MK
54152003-07-09 Mark Kettenis <kettenis@gnu.org>
5416
5417 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5418 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5419 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5420 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5421 * x86-64-tdep.c: ... from here.
5422
c481dac7
AS
54232003-07-09 Andreas Schwab <schwab@suse.de>
5424
5425 * m68k-tdep.h (enum struct_return): Define.
5426 (struct gdbarch_tdep): Add struct_return.
5427 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5428 bytes are padded to the right, not to the left. Pass struct value
5429 address in register %a1, not on stack.
5430 (m68k_use_struct_convention): New function.
5431 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5432 struct_return in tdep to pcc_struct_return.
5433 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5434 reg_struct_return.
5435
a8f4cde1 54362003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5437
a8f4cde1 5438 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5439
96a4ee76
AC
54402003-07-09 Andrew Cagney <cagney@redhat.com>
5441
5442 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5443 Add comments about the checks.
5444
1517c6d1
AC
54452003-07-08 Andrew Cagney <cagney@redhat.com>
5446
5447 * Makefile.in: Make dependency section headers consistent.
5448 (config_h): Move to $BUILD headers section.
5449 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5450 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5451 (ada-exp.tab.c): Move to YACC/LEX section.
5452 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5453 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5454
dc5dd1eb
KW
54552003-07-08 Kris Warkentin <kewarken@qnx.com>
5456
5457 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5458 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5459 of strerror with safe_strerror, use ISO C function definitions,
5460 and replace instances of sprintf with snprintf.
dc5dd1eb 5461
612dde91
AC
54622003-07-07 Andrew Cagney <cagney@redhat.com>
5463
5464 * frame.c (get_prev_frame): Enable check for identical frames.
5465 Update comments. Update error messages.
5466
492c11d3
JB
54672003-07-07 Joel Brobecker <brobecker@gnat.com>
5468
5469 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5470
376a5a49
JB
54712003-07-07 Joel Brobecker <brobecker@gnat.com>
5472
5473 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5474 sort_symtab_syms, no longer necessary.
5475
22b4a9ad
JB
54762003-07-07 Joel Brobecker <brobecker@gnat.com>
5477
5478 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5479
5bbcb741
JB
54802003-07-07 Joel Brobecker <brobecker@gnat.com>
5481
5482 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5483 (mips_register_byte): Likewise.
5484
c139e7d9
DJ
54852003-07-07 Daniel Jacobowitz <drow@mvista.com>
5486
5487 * Makefile.in (sparc_tdep_h): New.
5488 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5489 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5490 * sparc-linux-nat.c: Include "sparc-tdep.h".
5491 * sparc-nat.c: Likewise.
5492 * sparc-tdep.c: Likewise.
5493 * sparc64nbsd-nat.c: Likewise.
5494 * sparcnbsd-nat.c: Likewise.
5495 * sparcnbsd-tdep.c: Likewise.
5496 * sparc-tdep.h: New file.
5497 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5498 and sparc_npc_regnum.
5499
fd8f87c5
DJ
55002003-07-07 Daniel Jacobowitz <drow@mvista.com>
5501
5502 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5503 (mips_linux_cannot_store_register): List supported instead of
5504 unsupported registers.
5505
13adf674
DJ
55062003-07-07 Daniel Jacobowitz <drow@mvista.com>
5507
5508 * disasm.c (dump_insns): Separate instructions from addresses.
5509
8de307e0
AS
55102003-07-07 Andreas Schwab <schwab@suse.de>
5511
5512 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5513 dependencies.
5514 * m68k-tdep.c (NUM_FREGS): Delete.
5515 (SIG_PC_FP_OFFSET): Delete.
5516 (TARGET_M68K): Delete.
5517 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5518 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5519 P_MOVEL_SP, P_MOVEML_SP): Define.
5520 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5521 P_TRAP): Delete.
5522 (m68k_register_raw_size): Delete.
5523 (m68k_register_virtual_size): Delete.
5524 (m68k_register_type): Renamed from m68k_register_virtual_type and
5525 add gdbarch argument.
5526 (m68k_store_struct_return): Delete.
5527 (m68k_deprecated_extract_return_value): Delete.
5528 (m68k_deprecated_extract_struct_value_address): Delete.
5529 (m68k_frame_chain): Delete.
5530 (m68k_frame_saved_pc): Delete.
5531 (m68k_fix_call_dummy): Delete.
5532 (m68k_push_dummy_frame): Delete.
5533 (m68k_pop_frame): Delete.
5534 (m68k_extract_return_value): New function.
5535 (m68k_store_return_value): Rewrite using regcache.
5536 (m68k_extract_struct_value_address): Rewrite using regcache.
5537 (m68k_push_dummy_call): New function.
5538 (struct m68k_frame_cache): Define.
5539 (m68k_alloc_frame_cache): New function.
5540 (m68k_analyze_frame_setup): New function.
5541 (m68k_analyze_register_saves): New function.
5542 (m68k_analyze_prologue): New function.
5543 (m68k_skip_prologue): Rewrite using above functions.
5544 (m68k_unwind_pc): New function.
5545 (m68k_frame_cache): New function.
5546 (m68k_frame_this_id): New function.
5547 (m68k_frame_prev_register): New function.
5548 (m68k_frame_unwind): New variable.
5549 (m68k_frame_p): New function.
5550 (m68k_sigtramp_frame_cache): New function.
5551 (m68k_sigtramp_frame_this_id): New function.
5552 (m68k_sigtramp_frame_prev_register): New function.
5553 (m68k_sigtramp_frame_unwind): New variable.
5554 (m68k_sigtramp_frame_p): New function.
5555 (m68k_frame_base_address): New function.
5556 (m68k_frame_base): New function.
5557 (m68k_unwind_dummy_id): New function.
5558 (fill_gregset): Use regcache_collect.
5559 (fill_fpregset): Likewise.
5560 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5561 defined.
5562 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5563 deprecated_init_frame_pc, deprecated_store_struct_return,
5564 deprecated_extract_return_value, deprecated_store_return_value,
5565 deprecated_frame_chain, deprecated_frame_saved_pc,
5566 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5567 deprecated_register_virtual_size,
5568 deprecated_max_register_raw_size,
5569 deprecated_max_register_virtual_size,
5570 deprecated_register_virtual_type, deprecated_register_size,
5571 deprecated_register_byte, deprecated_register_bytes,
5572 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5573 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5574 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5575 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5576 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5577 deprecated_push_dummy_frame, deprecated_pop_frame,
5578 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5579 only if SYSCALL_TRAP is defined. Set extract_return_value,
5580 store_return_value, extract_struct_value_address, register_type,
5581 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5582 predicates.
5583 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5584 M68K_MAX_REGISTER_SIZE): Define.
5585 (struct m68k_sigtramp_info): Define.
5586 (struct gdbarch_tdep): Add get_sigtramp_info.
5587 * m68klinux-nat.c (fetch_register): Use register_size instead of
5588 REGISTER_RAW_SIZE. Don't put assignment in if.
5589 (store_register): Likewise.
5590 (fetch_inferior_registers): Likewise.
5591 (store_inferior_registers): Likewise.
5592 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5593 (m68k_linux_frame_saved_pc): Delete.
5594 (m68k_linux_sigcontext_reg_offset,
5595 m68k_linux_ucontext_reg_offset): Define.
5596 (m68k_linux_get_sigtramp_info): New function.
5597 (m68k_linux_extract_return_value): Rewrite using regcache.
5598 (m68k_linux_store_return_value): Likewise.
5599 (m68k_linux_extract_struct_value_address): Likewise.
5600 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5601 Don't set deprecated_frame_saved_pc,
5602 deprecated_extract_return_value, deprecated_store_return_value,
5603 deprecated_extract_struct_value_address. Set
5604 extract_return_value, store_return_value,
5605 extract_struct_value_address.
5606
eb8bc282
AC
56072003-07-07 Andrew Cagney <cagney@redhat.com>
5608
5609 * expprint.c: Include "user-regs.h" instead of "frame.h".
5610 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5611 frame_map_regnum_to_name.
5612 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5613 (frame_map_name_to_regnum): Simplify, call
5614 user_reg_map_name_to_regnum.
5615 (frame_map_regnum_to_name): Simplify, call
5616 user_reg_map_regnum_to_name.
5617 (frame_register_unwind): Update.
5618 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5619 (_initialize_frame_reg): Call user_reg_add_builtin.
5620 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5621 (value_of_register): Use value_of_user_reg.
5622 * eval.c (evaluate_subexp_standard): Update.
5623 * parse.c (write_dollar_variable): Update.
5624 * d10v-tdep.c (d10v_print_registers_info): Update.
5625 * infcmd.c (registers_info): Update.
5626 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5627 (builtin_regs_h): Delete macro.
5628 (user_regs_h): Define.
5629 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5630 (builtin-regs.o): Delete target.
5631 (user-regs.o): Specify dependencies.
5632 (expprint.o): Update dependencies.
5633 (findvar.o): Update dependencies.
5634 (frame.o): Update dependencies.
5635 (std-regs.o): Update dependencies.
5636
9f476a01
CF
56372003-07-06 Christopher Faylor <cgf@redhat.com>
5638
5639 * win32-nat.c (solib_symbols_add): Use one variable for all section
5640 address stuff. Pass variable rather than address of variable to
5641 safe_symbol_file_add.
5642
a731b831
AS
56432003-07-06 Andreas Schwab <schwab@suse.de>
5644
5645 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5646
9f83329d
JB
56472003-07-04 Joel Brobecker <brobecker@gnat.com>
5648
5649 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5650
27e28cc5
KW
56512003-07-04 Kris Warkentin <kewarken@qnx.com>
5652
5653 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5654
56552003-07-04 Kris Warkentin <kewarken@qnx.com>
5656
5657 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5658 * config/i386/nto.mh: New file.
5659 * config/i386/nm-nto.h: New file.
5660 * configure.host: Add i[3456]86-*-nto*.
5661
100f2e98
JB
56622003-07-03 Joel Brobecker <brobecker@gnat.com>
5663
5664 * remote-vx.c (vx_add_symbols): Fix compilation error.
5665
e23457df
AC
56662003-07-03 Andrew Cagney <cagney@redhat.com>
5667
5668 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5669 * gdbarch.h, gdbarch.c: Re-generate.
5670 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5671 (legacy_register_name): Declare.
5672 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5673 (REGISTER_NAME): Define.
5674 * sparc-tdep.c (legacy_register_name): New function.
5675 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5676 (REGISTER_NAME): Define.
5677 (hppa64_register_name): Declare.
5678 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5679 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5680 (hppa64_register_name): New function.
5681 (hppa_register_name): New function.
5682 * arch-utils.c (legacy_register_name): Delete.
5683 * arch-utils.h (legacy_register_name): Delete.
5684
38caaeec
DJ
56852003-07-03 Daniel Jacobowitz <drow@mvista.com>
5686
5687 * cli/cli-interp.c (cli_interpreter_resume): Update the
5688 cli_uiout's stream to gdb_stdout.
5689
dadd712e
AC
56902003-07-03 Andrew Cagney <cagney@redhat.com>
5691
5692 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5693 predicate.
5694 * gdbarch.h, gdbarch.c: Re-generate.
5695 * regcache.c (init_regcache_descr): Use legacy code when either
5696 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5697
c7f1390e
DJ
56982003-07-02 Daniel Jacobowitz <drow@mvista.com>
5699
5700 * NEWS: Move "set logging" entry into GDB 6.0 section.
5701
4bc8c588
JB
57022003-07-02 Jim Blandy <jimb@redhat.com>
5703
a9dd42f1
JB
5704 * s390-tdep.c (struct frame_extra_info): new member:
5705 'stack_bought_valid'.
5706 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5707 initialize fextra_info->stack_bought.
5708 (s390_frameless_function_invocation): Don't trust the value of
5709 fextra_info_ptr->stack_bought unless
5710 fextra_info->stack_bought_valid is set.
5711
4bc8c588
JB
5712 New S390 prologue analyzer.
5713 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5714 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5715 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5716 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5717 compute_x_addr, s390_on_stack, s390_store,
5718 s390_get_signal_frame_info): New functions.
5719 (S390_NUM_SPILL_SLOTS): New macro.
5720 (s390_get_frame_info): Rewritten.
5721 (is_arg_reg): Deleted.
5722
5723 Break out the decoding of S/390 instructions into separate
5724 functions, to make it more legible, and easier to check
5725 against the spec.
5726 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5727 is_rx, is_rxe): New functions.
5728 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5729 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5730 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5731 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5732 enums for opcode values. (Is this an improvement?)
5733
fd13a04a
AC
57342003-07-02 Andrew Cagney <cagney@redhat.com>
5735
5736 * i386-tdep.c: Revert change committed as part of trad-frame code
5737 below.
5738
3f8091c1
DJ
57392003-07-02 Daniel Jacobowitz <drow@mvista.com>
5740
5741 * breakpoint.c (insert_catchpoint): Make static.
5742
8dd5115e
AS
57432003-07-02 Andreas Schwab <schwab@suse.de>
5744
5745 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5746 former ia64_push_arguments and ia64_push_return_address, and use
5747 regcache functions instead of read/write_register.
5748 (ia64_gdbarch_init): Set push_dummy_call instead of
5749 deprecated_push_arguments and deprecated_push_return_address.
5750
a2229c23
AJ
57512003-07-01 Andreas Jaeger <aj@suse.de>
5752
5753 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5754 before the call.
5755 Set %rax only to number of SSE registers used.
5756
3b3850e8
AC
57572003-07-01 Andrew Cagney <cagney@redhat.com>
5758
5759 * trad-frame.h: Update comments, a -1 .addr is reserved.
5760 (trad_frame_value_p, trad_frame_addr_p): Declare.
5761 (trad_frame_reg_p): Declare.
5762 (trad_frame_set_value): Rename trad_frame_register_value.
5763 (trad_frame_set_unknown): Declare.
5764 * trad-frame.c (trad_frame_realreg_p): New function.
5765 (trad_frame_addr_p, trad_frame_value_p): New function.
5766 (trad_frame_set_unknown): New function.
5767 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5768 (trad_frame_prev_register): Use trad_frame_realreg_p,
5769 trad_frame_addr_p and trad_frame_value_p.
5770 (trad_frame_set_value): Rename trad_frame_register_value.
5771 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5772 and trad_frame_set_value.
a2229c23 5773
4d819d0e
JB
57742003-06-30 Jim Blandy <jimb@redhat.com>
5775
5776 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5777 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5778 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5779 for 16 registers, and then 32 more bytes.
5780 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5781 New macros.
5782 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5783 Move up in the file, since it's now used by is_simple_arg.
5784 (is_simple_arg): Don't assume registers are four bytes long.
5785 Exclude all double arguments. Extended floats are not simple
5786 args.
5787 (is_power_of_two): New function.
5788 (pass_by_copy_ref): Call is_power_of_two, and check that the
5789 length fits in a register, rather than listing all the acceptable
5790 sizes. Extended floats are not passed by reference.
5791 (s390_push_arguments): Don't assume registers are four bytes long.
5792 Reserve an argument register to point to the buffer for structures
5793 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5794 S390_STACK_FRAME_OVERHEAD.
5795
1ad828f1
AS
57962003-06-30 Andreas Schwab <schwab@suse.de>
5797
5798 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5799 format error message.
5800
39b00981
JB
58012003-06-30 Joel Brobecker <brobecker@gnat.com>
5802
5803 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5804
b2a7f303
DC
58052003-06-30 David Carlton <carlton@kealia.com>
5806
5807 Band-aid for PR c++/1245.
5808 * Makefile.in (cp-support.o): Depend on complaints_h.
5809 * cp-support.c: Include complaints.h. Add declaration for
5810 find_last_component.
5811 (cp_find_first_component): Separate code into
5812 cp_find_first_component_aux.
5813 (cp_find_first_component_aux): Call demangled_name_complaint.
5814 (demangled_name_complaint): New.
5815
a257b5bb
AC
58162003-06-30 Andrew Cagney <cagney@redhat.com>
5817
5818 * remote.c (remote_write_bytes): Explicitly compute and then use
5819 the payload size. Update comments to reflect. Fixes problem of
5820 GDB not sending small packets as found by Fred Fish.
5821
0a2cfde4
AC
58222003-06-30 Andrew Cagney <cagney@redhat.com>
5823
5824 * remote.c (remote_async_wait): Fix -Wformat problem.
5825
3fcb8548
AC
58262003-06-29 Andrew Cagney <cagney@redhat.com>
5827
5828 * remote.c (remote_wait): Call error, and not warning, when the
5829 packet is corrupt.
5830 (remote_async_wait): Ditto.
5831
9f9970a3
DJ
58322003-06-29 Daniel Jacobowitz <drow@mvista.com>
5833
5834 * sparc-tdep.c (sparc_y_regnum): Make external again.
5835
83a8ccca
DJ
58362003-06-29 Daniel Jacobowitz <drow@mvista.com>
5837
5838 * cli/cli-logging.c (pop_output_files): Add void to function
5839 definition.
5840
d2cf594a
AC
58412003-06-29 Andrew Cagney <cagney@redhat.com>
5842
5843 * frame.c (frame_register_unwind): Use unsigned char when dumping
5844 the buffer contents.
5845
0fac0b41
DJ
58462003-06-28 Daniel Jacobowitz <drow@mvista.com>
5847
5848 * cli/cli-logging.c: New file.
5849 * cli-out.c (struct ui_out_data): Add original_stream.
5850 (cli_redirect): New function.
5851 (cli_ui_out_impl): Add cli_redirect.
5852 (cli_out_new): Initialize original_stream.
5853 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5854 (uo_redirect, ui_out_redirect): New.
5855 * ui-out.h (struct ui_out_impl): Add redirect member.
5856 (redirect_ftype): New.
5857 (ui_out_redirect): Add prototype.
5858 * Makefile.in: Add rules for cli-logging.c.
5859 * NEWS: Mention "set logging".
5860
88a07d7c
EZ
58612003-06-27 Elena Zannoni <ezannoni@redhat.com>
5862
5863 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5864
4eb58876
AC
58652003-06-27 Andrew Cagney <cagney@redhat.com>
5866
5867 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5868 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5869 * avr-tdep.c (avr_call_dummy_address): Delete function.
5870 (avr_gdbarch_init): Do not set call_dummy_address.
5871
1549f619
EZ
58722003-06-27 Elena Zannoni <ezannoni@redhat.com>
5873
5874 * symfile.c (syms_from_objfile): Move variables to inner block.
5875 Move the checks for the non-mainline case a bit earlier to avoid
5876 doing some useless computations.
5877
3cb3398d
EZ
58782003-06-27 Elena Zannoni <ezannoni@redhat.com>
5879
5880 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5881
3799ccc6
EZ
58822003-06-26 Elena Zannoni <ezannoni@redhat.com>
5883
5884 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5885 sections.
5886
ce1f6491
MC
58872003-06-26 Michael Chastain <mec@shout.net>
5888
5889 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5890 gdb/testsuite/gdb.c++/pr-1210.exp.
5891
d958dfd0
AC
58922003-06-26 Andrew Cagney <cagney@redhat.com>
5893
5894 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5895 altivec_expression.h and altivec_registers.h.
5896
d31431ed
AC
58972003-06-26 Andrew Cagney <cagney@redhat.com>
5898
5899 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5900 info->mach when MIPS16. Patch suggested by Fred Fish.
5901
714b1282
AC
59022003-06-26 Andrew Cagney <cagney@redhat.com>
5903
5904 * utils.c (internal_vproblem): Print the problem to a reason
5905 buffer and then pass to query. Make the msg variable more local.
5906
42efa47a
AC
59072003-06-26 Andrew Cagney <cagney@redhat.com>
5908
5909 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5910 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5911 * gdbarch.h, gdbarch.c: Re-generate.
5912 * frame-base.c (default_frame_args_address): Update. Use
5913 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5914 not available.
5915 (default_frame_locals_address): Ditto for
5916 DEPRECATED_FRAME_LOCALS_ADDRESS.
5917 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5918 (vax_frame_num_args): Update.
5919 (vax_gdbarch_init): Update.
5920 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5921 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5922 * mcore-tdep.c (mcore_gdbarch_init): Update.
5923 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5924 * ia64-tdep.c (ia64_gdbarch_init): Update.
5925 * symtab.h (address_class): Update comments.
5926 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5927 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5928 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5929 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5930 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5931 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5932 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5933 * alpha-mdebug-tdep.c: Update.
5934 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5935
8ffd9b1b
AJ
59362003-06-26 Andreas Jaeger <aj@suse.de>
5937
5938 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5939 of SSE registers so that varargs functions work. Rework handling
5940 of passing arguments on the stack.
5941 (x86_64_store_return_value): Return double and float values in SSE
5942 register.
5943
e8ac10a6
MC
59442003-06-24 Michael Chastain <mec@shout.net>
5945
5946 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5947 the "constructor breakpoints ignored" bug.
5948
986af8e6
DC
59492003-06-25 David Carlton <carlton@kealia.com>
5950
5951 * MAINTAINERS: Update e-mail address.
5952
d64558a5
JB
59532003-06-24 Jim Blandy <jimb@redhat.com>
5954
e538d2d7
JB
5955 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5956
02631ec0
JB
5957 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5958 function.
5959 (ppc_linux_init_abi): Register it as the
5960 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5961
e716d87a
JB
5962 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5963 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5964 method.
5965
d64558a5
JB
5966 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5967 (ppc64_standard_linkage_target): Use it.
5968
449a5da4
AC
59692003-06-23 Andrew Cagney <cagney@redhat.com>
5970
5971 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5972 for 0 "int0" and 4 "int32" sized registers.
5973 * gdbtypes.c (builtin_type_int0): Define.
5974 (build_gdbtypes): Initialize builtin_type_int0.
5975 * gdbtypes.h (builtin_type_int0): Declare.
5976
b2a02dda
SC
59772003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5978
5979 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5980 as characters are unsigned.
5981
fba3138e
DJ
59822003-06-22 Daniel Jacobowitz <drow@mvista.com>
5983
5984 PR gdb/1179
5985 * dwarfread.c (struct_type): Skip static fields without crashing.
5986
f6c8180b
AC
59872003-06-22 Andrew Cagney <cagney@redhat.com>
5988
5989 GDB 6.0 branch created.
f2c06f52
AC
5990 * README: Update.
5991 * PROBLEMS: Update. Empty.
5992 * NEWS: Update.
f6c8180b 5993
ae822768
DJ
59942003-06-22 Daniel Jacobowitz <drow@mvista.com>
5995
5996 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5997 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5998
261de166
AC
59992003-06-22 Andrew Cagney <cagney@redhat.com>
6000
6001 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
6002 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
6003 Velikov.
6004
30e94205
DJ
60052003-06-22 Daniel Jacobowitz <drow@mvista.com>
6006
6007 * cli/cli-cmds.c (shell_escape): Silence warnings from old
6008 compilers.
6009
9e14d721
DJ
60102003-06-21 Daniel Jacobowitz <drow@mvista.com>
6011
6012 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
6013 argument of val_print.
6014 * cp-valprint.c (cp_print_value): Don't add the offset parameter
6015 to the address argument of baseclass_offset or target_read_memory.
6016 Do add it to the argument of cp_print_value_fields.
6017
a4b8ebc8
AC
60182003-06-21 Andrew Cagney <cagney@redhat.com>
6019
6020 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
6021 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
6022 instead of 0..NUM_REGS.
6023 (mips_register_reggroup_p): New function.
6024 (mips_pseudo_register_write): New function.
6025 (mips_pseudo_register_read): New function.
6026 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
6027 based on the register's type.
6028 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
6029 cooked.
6030 (mips_get_saved_register): Simplify. Assert that REGNO is a
6031 pseudo / cooked.
6032 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6033 (mips_register_type): Replace mips_register_virtual_type. Map
6034 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6035 when available.
6036 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6037 that the register is cooked / virtual.
6038 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6039 Only get the extra info when needed.
6040 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6041 (mips32_heuristic_proc_desc): Fetch the cooked register.
6042 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6043 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6044 (mips_print_register): Use gdbarch_register_type, instead of
6045 REGISTER_VIRTUAL_TYPE.
6046 (print_gp_register_row): Use gdbarch_register_type, instead of
6047 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6048 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6049 Print the pseudo / cooked registers.
6050 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6051 Print the pseudo / cooked registers.
6052 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6053 REG_NUM is pseudo / cooked.
6054 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6055 (mips_n32n64_xfer_return_value): Ditto.
6056 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6057 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6058 (mips_register_sim_regno): New function.
6059 (mips_gdbarch_init): Set deprecated_register_byte,
6060 register_group_p, pseudo_register_write, pseudo_register_read,
6061 register_sim_regno, and num_pseudo_regs. Set register_type,
6062 instead of register_virtual_type.
6063 * Makefile.in (mips-tdep.o): Update dependencies.
6064 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6065 REGISTER_VIRTUAL_TYPE.
6066 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6067 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6068 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6069 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6070 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6071
325ed089
DJ
60722003-06-21 Daniel Jacobowitz <drow@mvista.com>
6073
6074 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6075 * cli/cli-cmds.c: Include "gdb_vfork.h".
6076 (shell_escape): Use vfork.
6077
f0e7d0e8
AC
60782003-06-21 Andrew Cagney <cagney@redhat.com>
6079
c57bb9fa
AC
6080 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6081 32 bit floating-point register saves.
6082
6e51443a
AC
6083 * frame.h (deprecated_unwind_get_saved_register): Delete.
6084 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6085 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6086 and deprecated_get_next_frame_hack instead of
6087 deprecated_unwind_get_saved_register.
6088
ed183c7c
AC
6089 * mips-tdep.c (mips_dump_tdep): Do not print
6090 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6091
f0e7d0e8
AC
6092 * frame.c (get_frame_register): New function.
6093 (frame_unwind_register_signed): New function.
6094 (get_frame_register_signed): New function.
6095 (frame_unwind_register_unsigned): New function.
6096 (get_frame_register_unsigned): New function.
6097 * frame.h: Add comments on naming schema.
6098 (get_frame_register, frame_unwind_register_signed): Declare.
6099 (get_frame_register_signed, get_frame_register_signed): Declare.
6100 (frame_unwind_register_unsigned): Declare.
6101 (get_frame_register_unsigned): Declare.
6102
2224d941
TR
61032003-06-20 Theodore A. Roth <troth@openavr.org>
6104
6105 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6106
8619218d
TR
61072003-06-20 Theodore A. Roth <troth@openavr.org>
6108
6109 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6110 (avr_read_sp): Ditto.
6111
0b1b50c0
DJ
61122003-06-20 Daniel Jacobowitz <drow@mvista.com>
6113
6114 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6115 * config/arm/nm-linux.h: Likewise.
6116 * config/arm/tm-linux.h: Likewise.
6117 * config/ia64/nm-linux.h: Likewise.
6118 * config/ia64/tm-ia64.h: Likewise.
6119 * config/s390/tm-linux.h: Likewise.
6120 * config/s390/tm-s390.h: Likewise.
6121 * s390-nat.c: Likewise.
6122 * s390-tdep.c: Likewise.
6123
6124 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6125 * config/ia64/linux.mt: Likewise.
6126 * config/m68k/linux.mh: Likewise.
6127 * config/mips/linux.mt: Likewise.
6128 * config/powerpc/linux.mh: Likewise.
6129 * config/sh/linux.mt: Likewise.
6130
c8c18e65
KW
61312003-06-19 Kris Warkentin <kewarken@qnx.com>
6132
6133 * solib.c (solib_open): Change tests for whether to search
6134 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6135 comments.
6136
dcccef2e
TR
61372003-06-19 Theodore A. Roth <troth@openavr.org>
6138
6139 * avr-tdep.c (avr_frame_address): Delete function.
6140 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6141 set_gdbarch_frame_args_address.
6142
5861a190
AC
61432003-06-19 Andrew Cagney <cagney@redhat.com>
6144
6145 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6146 (REGISTER_CONVERT_FROM_TYPE): Delete.
6147 (mips_register_convert_to_type): Delete declaration.
6148 (mips_register_convert_from_type): Delete declaration.
6149 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6150 kernel/.
6151
0274a8ce
MS
61522003-06-19 Michael Snyder <msnyder@redhat.com>
6153
6154 * linux-nat.h: New file.
6155 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6156 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6157 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6158 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6159 (linux_make_note_section): Iterate over lwps instead of threads.
6160 (linux_do_thread_registers): Use lwp instead of merged pid.
6161 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6162 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6163 Add dependency on linux_nat_h.
6164
adf5f719
TR
61652003-06-19 Theodore A. Roth <troth@openavr.org>
6166
6167 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6168
6766a268
DJ
61692003-06-19 Daniel Jacobowitz <drow@mvista.com>
6170
6171 * varobj.c (get_type, get_target_type): Use check_typedef.
6172
1171114a
DJ
61732003-06-19 Daniel Jacobowitz <drow@mvista.com>
6174
6175 * breakpoint.c (insert_catchpoint): Call internal_error.
6176
adcf68a2
TR
61772003-06-19 Theodore A. Roth <troth@openavr.org>
6178
6179 * avr-tdep.c (avr_push_dummy_code): Delete function.
6180 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6181
ea67f13b
DJ
61822003-06-19 Daniel Jacobowitz <drow@mvista.com>
6183
6184 * arch-utils.c (default_prepare_to_proceed): Remove.
6185 (generic_prepare_to_proceed): Remove.
6186 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6187 (generic_prepare_to_proceed): Remove prototype.
6188 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6189 * gdbarch.c: Regenerate.
6190 * gdbarch.h: Regenerate.
6191 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6192 * hppah-nat.c (hppa_switched_threads): Remove.
6193 * infrun.c (prepare_to_proceed): New static function, copied from
6194 generic_prepare_to_proceed. Remove select_it argument.
6195 (proceed): Call prepare_to_proceed.
6196 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6197 variables.
6198 (ptrace_wait): Don't set the removed variables.
6199 (hppa_switched_threads): Remove.
6200 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6201 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6202 (lin_lwp_prepare_to_proceed): Remove prototype.
6203 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6204 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6205
4add8633
TR
62062003-06-18 Theodore A. Roth <troth@openavr.org>
6207
6208 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6209 trad-frame.h.
6210 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6211 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6212 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6213 (AVR_PROLOGUE_*): Enumerate prologue types.
6214 (struct frame_extra_info): Remove.
6215 (struct avr_unwind_cache): Define.
6216 (avr_write_sp): Delete function.
6217 (avr_read_fp): Ditto.
6218 (avr_init_extra_frame_info): Ditto.
6219 (avr_pop_frame): Ditto.
6220 (avr_frame_saved_pc): Ditto.
6221 (avr_saved_pc_after_call): Ditto.
6222 (avr_push_return_address): Ditto.
6223 (avr_frame_chain): Ditto.
6224 (avr_store_struct_return): Ditto.
6225 (avr_push_arguments): Ditto.
6226 (avr_scan_prologue): Update comments. Changed to set up the info for
6227 cache unwinding. Now returns end of prologue PC.
6228 (avr_skip_prologue): Better handling of functions lacking a prologue
6229 by using avr_scan_prologue.
6230 (avr_scan_arg_moves): New function.
6231 (avr_saved_regs_unwinder): Ditto.
6232 (avr_frame_unwind_cache): Ditto.
6233 (avr_unwind_pc): Ditto.
6234 (avr_frame_this_id): Ditto.
6235 (avr_frame_prev_register): Ditto.
6236 (avr_frame_p): Ditto.
6237 (avr_frame_base_address ): Ditto.
6238 (avr_unwind_dummy_id): Ditto.
6239 (avr_push_dummy_code): Ditto.
6240 (push_stack_item): Ditto.
6241 (pop_stack_item): Ditto.
6242 (avr_push_dummy_call): Ditto.
6243 (struct stack_item): Define.
6244 (avr_frame_unwind): Declare structure.
6245 (avr_frame_base): Ditto.
6246 (avr_gdbarch_init): Remove calls to
6247 set_gdbarch_deprecated_init_frame_pc,
6248 set_gdbarch_deprecated_target_read_fp,
6249 set_gdbarch_deprecated_dummy_write_sp,
6250 set_gdbarch_deprecated_fp_regnum,
6251 set_gdbarch_deprecated_push_arguments,
6252 set_gdbarch_deprecated_push_return_address,
6253 set_gdbarch_deprecated_pop_frame,
6254 set_gdbarch_deprecated_store_struct_return,
6255 set_gdbarch_deprecated_frame_init_saved_regs,
6256 set_gdbarch_deprecated_init_extra_frame_info,
6257 set_gdbarch_deprecated_frame_chain,
6258 set_gdbarch_deprecated_frame_saved_pc,
6259 set_gdbarch_deprecated_saved_pc_after_call.
6260 Add calls to set_gdbarch_push_dummy_call,
6261 set_gdbarch_push_dummy_code,
6262 frame_unwind_append_predicate,
6263 frame_base_set_default,
6264 set_gdbarch_unwind_dummy_id,
6265 set_gdbarch_unwind_pc.
6266 Wrap a long line.
6267
7be04a68
MS
62682003-06-18 Corinna Vinschen <vinschen@redhat.com>
6269
6270 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6271 registers for H8/300S.
6272 (h8300_print_registers_info): Ditto.
8ffd9b1b 6273 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6274
ae087d01
DJ
62752003-06-18 Daniel Jacobowitz <drow@mvista.com>
6276
6277 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6278 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6279 (lin_lwp_wait): Likewise. Update comments.
6280 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6281 (pull_pid_from_list, linux_record_stopped_pid): New.
6282
07d8f827
SC
62832003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6284
6285 * ada-lang.c (scan_discrim_bound): Name first argument.
6286 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6287 declared by ALL_BLOCK_SYMBOLS.
6288
7cb47b14
SC
62892003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6290
6291 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6292 ("regcache.h"): Include it.
6293 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6294
6ad8ae5c
DJ
62952003-06-17 Daniel Jacobowitz <drow@mvista.com>
6296
6297 * NEWS: Mention gdbserver detach change and "disconnect" command.
6298 * infcmd.c (disconnect_command): New function.
6299 (_initialize_infcmd): Add ``disconnect'' command.
6300 * remote.c (remote_async_detach): Delete.
6301 (remote_detach): Merge remote_async_detach.
6302 (remote_disconnect): New.
6303 (init_remote_ops): Set to_disconnect.
6304 (init_remote_cisco_ops): Likewise.
6305 (init_remote_async_ops): Likewise. Use remote_detach.
6306 * target.c (cleanup_target): Default to_disconnect.
6307 (update_current_target): Inherit to_disconnect.
6308 (target_disconnect, debug_to_disconnect): New functions.
6309 (setup_target_debug): Set to_disconnect.
6310 * target.h (struct target_ops): Add to_disconnect.
6311 (target_disconnect): Add prototype.
6312
687595f9
DJ
63132003-06-17 Daniel Jacobowitz <drow@mvista.com>
6314
6315 * breakpoint.c (insert_catchpoint): New function.
6316 (insert_breakpoints): Use catch_exceptions to call
6317 insert_catchpoint. Disable catchpoints if they fail to insert.
6318
29239a8f
DJ
63192003-06-17 Daniel Jacobowitz <drow@mvista.com>
6320
6321 * symfile.c (reread_symbols): Clear sym_private.
6322
2cdf3c63
AC
63232003-06-17 Andrew Cagney <cagney@redhat.com>
6324
6325 * trad-frame.h (struct frame_info): Add opaque declaration.
6326 * remote-fileio.h (struct cmd_list_element): Add opaque
6327 declaration.
6328 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6329 comments.
6330
cf0e1e0d
DJ
63312003-06-17 Daniel Jacobowitz <drow@mvista.com>
6332
6333 * remote.c (remote_prepare_to_store): Replace call to
6334 deprecated_read_register_bytes with multiple regcache_raw_read
6335 calls.
6336
192cdb19
KW
63372003-06-17 Kris Warkentin <kewarken@qnx.com>
6338
6339 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6340 (nto_find_and_open_solib): Likewise.
6341 (nto_init_solib_absolute_prefix): Likewise.
6342 (_initialize_nto_tdep): Fix indentation.
6343
89929b45
KW
63442003-06-17 Kris Warkentin <kewarken@qnx.com>
6345
6346 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6347
46019f27
KW
63482003-06-17 Kris Warkentin <kewarken@qnx.com>
6349
6350 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6351
1a38736e
JB
63522003-06-17 Jim Blandy <jimb@redhat.com>
6353
6354 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6355
3605c34a
TR
63562003-06-16 Theodore A. Roth <troth@openavr.org>
6357
6358 * avr-tdep.c (avr_extract_return_value): New function.
6359 (avr_gdbarch_init): Set extract_return_value method.
6360
870b3035
AC
63612003-06-16 Andrew Cagney <cagney@redhat.com>
6362
6363 * frame.h (deprecated_get_next_frame_hack): Declare.
6364 * frame.c (legacy_saved_regs_prev_register): Only require
6365 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6366 there are always saved regs.
6367 (deprecated_generic_get_saved_register): Do not require
6368 DEPRECATED_FRAME_INIT_SAVED_REGS.
6369 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6370 use frame ID unwind instead.
6371 (deprecated_get_next_frame_hack): New function.
6372
63d47a7d
CV
63732003-06-16 Corinna Vinschen <vinschen@redhat.com>
6374
6375 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6376 (h8300_push_dummy_call): ...this function. Some minor optimization.
6377 (h8300_push_return_address): Remove.
6378 (h8300_gdbarch_init): Remove calls to
6379 set_gdbarch_deprecated_dummy_write_sp,
6380 set_gdbarch_deprecated_push_arguments and
6381 set_gdbarch_deprecated_push_return_address.
6382 Add call to set_gdbarch_push_dummy_call.
6383
4bb1dc5e
CV
63842003-06-16 Corinna Vinschen <vinschen@redhat.com>
6385
6386 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6387 (E_PSEUDO_EXR_REGNUM): Ditto.
6388 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6389 registers into safe registers.
4bb1dc5e
CV
6390 (h8300_skip_prologue): Check for stm instruction to push registers
6391 used for register variables onto stack.
6392 (gdb_print_insn_h8300): Remove.
6393 (h8300_examine_prologue): Add a comment.
6394 (h8300_register_name): Take pseudo registers into account.
6395 (h8300s_register_name): Ditto.
6396 (h8300sx_register_name): Ditto.
6397 (h8300_print_register): Ditto.
6398 (h8300_print_registers_info): Define "nice" printing order.
6399 (h8300_saved_pc_after_call): Take pseudo registers into account.
6400 (h8300_register_type): Ditto. Return type used for remote connection
6401 when requesting real CCR or EXR register, return actual type when
6402 requesting pseudo CCR or EXR.
6403 (h8300_pseudo_register_read): New function.
6404 (h8300_pseudo_register_write): Ditto.
6405 (h8300_dbg_reg_to_regnum): Ditto.
6406 (h8300s_dbg_reg_to_regnum): Ditto.
6407 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6408 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6409 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6410 set_gdbarch_print_insn architecture dependent.
6411 Call set_gdbarch_pseudo_register_read and
6412 set_gdbarch_pseudo_register_write.
6413 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6414
a59fe496
AC
64152003-06-16 Andrew Cagney <cagney@redhat.com>
6416
6417 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6418 * gdbarch.h, gdbarch.c: Re-generate.
6419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6420 * s390-tdep.c (s390_gdbarch_init): Update.
6421 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6422 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6423 * mips-tdep.c (mips_gdbarch_init): Update.
6424 * mcore-tdep.c (mcore_gdbarch_init): Update.
6425 * cris-tdep.c (cris_gdbarch_init): Update.
6426 * infcall.c (call_function_by_hand): Update.
6427 * ia64-tdep.c (ia64_push_arguments): Update comment.
6428 * frame.c (legacy_get_prev_frame): Do not assume
6429 SAVE_DUMMY_FRAME_TOS_P.
6430 * dummy-frame.c (find_dummy_frame): Update comment.
6431
6f4e5a41
AC
64322003-06-16 Andrew Cagney <cagney@redhat.com>
6433
6434 * regcache.c (do_cooked_read): Do not use register_valid_p.
6435
72fab697
TR
64362003-06-15 Theodore A. Roth <troth@openavr.org>
6437
6438 * avr-tdep.c (avr_register_type): Remove a blank line.
6439 (avr_scan_prologue): Correct some comments.
6440
e3d8b004
TR
64412003-06-15 Theodore A. Roth <troth@openavr.org>
6442
6443 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6444 prologue types.
8ffd9b1b 6445 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6446 option.
6447 Add code to scan -mcall-prologues for mega devices.
6448
866b76ea
TR
64492003-06-15 Theodore A. Roth <troth@openavr.org>
6450
6451 * avr-tdep.c (avr_register_byte): Delete function.
6452 (avr_register_raw_size): Delete function.
6453 (avr_register_virtual_size): Delete function.
6454 (avr_register_virtual_type): Delete function.
6455 (avr_register_type): New function.
6456 (avr_address_to_pointer): Remove unused code.
6457 (avr_read_fp): Need to read FP as two separate bytes due to change to
6458 avr_register_type() usage.
6459 (avr_gdbarch_init): Don't set deprecated_register_size.
6460 Don't set deprecated_register_bytes.
6461 Don't set deprecated_register_byte.
6462 Don't set deprecated_register_raw_size.
6463 Don't set deprecated_max_register_raw_size.
6464 Don't set deprecated_register_virtual_size.
6465 Don't set deprecated_max_register_virtual_size.
6466 Don't set deprecated_register_virtual_type.
6467 Set register_type method.
6468
3993f6b1
DJ
64692003-06-15 Daniel Jacobowitz <drow@mvista.com>
6470
6471 * Makefile.in (linux-nat.o): Add rule.
6472 * linux-nat.c: New file.
6473 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6474 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6475 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6476 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6477 * config/arm/linux.mh (NATDEPFILES): Likewise.
6478 * config/i386/linux.mh (NATDEPFILES): Likewise.
6479 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6480 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6481 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6482 * config/mips/linux.mh (NATDEPFILES): Likewise.
6483 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6484 * config/s390/s390.mh (NATDEPFILES): Likewise.
6485 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6486
786a90bb
MK
64872003-06-15 Mark Kettenis <kettenis@gnu.org>
6488
6489 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6490 replace out-of-date comment.
6491
3bd3f01e
AC
64922003-06-15 Andrew Cagney <cagney@redhat.com>
6493
6494 * rdi-share/host.h (Fail): Change to a varargs function.
6495 * remote-rdi.c (Fail): Update.
8ffd9b1b 6496
de5b9bb9
MK
64972003-06-15 Mark Kettenis <kettenis@gnu.org>
6498
6499 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6500 (i386_convert_register_p, i386_register_to_value,
6501 i386_register_from_value): Handle types longer than 8 bytes.
6502
d532c08f
MK
65032003-06-15 Mark Kettenis <kettenis@gnu.org>
6504
6505 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6506 Move floating-point code to new function in i387-tdep.c.
6507 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6508 New functions containing code moved here from i386-tdep.c.
6509 * i387-tdep.h: Add opaque declaration for `struct type'.
6510 (i387_register_to_value, i387_value_to_register): New prototypes.
6511 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6512 (x86_64_init_abi): Set convert_register_p, register_to_value and
6513 value_to_register here.
8ffd9b1b 6514
42c466d7
AC
65152003-06-14 Andrew Cagney <cagney@redhat.com>
6516
6517 * mips-tdep.c (mips_register_to_value): Make static.
6518 (mips_value_to_register): Make static.
6519 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6520 * ia64-tdep.c (ia64_register_raw_size): Make static.
6521 (ia64_register_virtual_size): Make static.
6522 (ia64_register_byte): Make static.
6523 * i387-tdep.c: Include "i387-tdep.h".
6524 (print_387_control_word): Delete function.
6525 (print_387_status_word): Delete function.
6526 (print_387_status_bits): Delete function.
6527 (print_387_control_bits): Delete function.
6528 * Makefile.in (i387-tdep.o): Update dependencies.
6529 * rdi-share/host.h (Fail): Declare.
6530 * remote-rdi.c (Fail): Update to match declaration.
6531
2a9cda49
AC
65322003-06-14 Andrew Cagney <cagney@redhat.com>
6533
6534 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6535 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6536 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6537 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6538 * README: Delete reference to remote-array.
6539 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6540 (remote-array.o): Delete target.
6541 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6542 * remote-array.c: Delete file.
6543
ff2e87ac
AC
65442003-06-14 Andrew Cagney <cagney@redhat.com>
6545 Mark Kettenis <kettenis@gnu.org>
6546
6547 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6548 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6549 parameter with "frame".
6550 * gdbarch.h, gdbarch.c: Re-generate.
6551 * frame.h (put_frame_register): Declare.
6552 * frame.c (put_frame_register): New function.
6553 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6554 (legacy_register_to_value): Rewrite, use "frame" to get the
6555 register value.
6556 (legacy_value_to_register): Rewrite, use "frame" to find the
6557 register's location before storing.
6558 * arch-utils.h (legacy_convert_register_p): Update.
6559 (legacy_register_to_value, legacy_value_to_register): Update.
6560 * findvar.c (value_from_register): Rewrite, eliminate use of
6561 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6562 "frame" to REGISTER_TO_VALUE.
6563 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6564 lval_reg_frame_relative + lval_register branch of the switch. Do
6565 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6566 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6567 I386_EDI_REGNUM): New defines.
6568 (i386_next_regnum, i386_convert_register_p,
6569 i386_register_to_value, i386_value_to_register): New functions.
6570 (i386_register_convertible, i386_register_convert_to_virtual,
6571 i386_convert_to_raw): Remove functions.
6572 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6573 value_to_register instead of register_convertible,
6574 register_convert_to_virtual and register_convert_to_raw.
6575 * mips-tdep.c (mips_convert_register_p): New function.
6576 (mips_value_to_register): Replace mips_register_convert_from_type.
6577 (mips_register_to_value): Replace mips_register_convert_to_type.
6578 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6579 register_to_value.
6580 * alpha-tdep.c (alpha_convert_register_p): Update.
6581 (alpha_value_to_register): Update, store the register.
6582 (alpha_register_to_value): Update, fetch the register.
6583
98be1e77
TR
65842003-06-14 Theodore A. Roth <troth@openavr.org>
6585
6586 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6587 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6588 Don't set deprecated_call_dummy_words.
6589 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6590 Don't set remote_translate_xfer_address.
6591 (avr_io_reg_read_command): Remove commented out debug printf.
6592 Wrap a long line.
6593
57bc6122
TR
65942003-06-14 Theodore A. Roth <troth@openavr.org>
6595
6596 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6597 causes gdb to seg fault.
6598
eb01fc62
DJ
65992003-06-14 Daniel Jacobowitz <drow@mvista.com>
6600
6601 * sparc-nat.c (fetch_inferior_registers): Correct
6602 a reference to "registers".
6603
3b3e6bee
DJ
66042003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6605
6606 * Makefile.in (exc_request_U_h): Define
6607 (exc_request_S_h): Likewise.
6608 (msg_reply_S_h): Likewise.
6609 (msg_U_h): Likewise.
6610 (notify_S_h): Likewise.
6611 (process_reply_S_h): Likewise.
6612 (gnu-nat.o): Depend on gdb_obstack_h
6613 * gnu-nat.c: Include "gdb_obstack.h".
6614
b8de8283
AC
66152003-06-13 Andrew Cagney <cagney@redhat.com>
6616
6617 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6618 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6619
f3be58bc
AC
66202003-06-13 Andrew Cagney <cagney@redhat.com>
6621
6622 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6623 when deprecated REGISTER macros can be deleted.
6624 * gdbarch.h, gdbarch.c: Re-generate.
6625
4c0122c8
JB
66262003-06-13 Jim Blandy <jimb@redhat.com>
6627
6628 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6629 Linux entry point symbols for _dl_debug_state, too.
6630
3e210248
AC
66312003-06-13 Andrew Cagney <cagney@redhat.com>
6632
6633 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6634 available, do not use the FP register, and always save the TOS.
6635 * dummy-frame.c (dummy_frame_this_id): Do not assert
6636 SAVE_DUMMY_FRAME_TOS.
6637 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6638 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6639 (i386_push_dummy_call): Add 8 to the returned SP.
6640 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6641 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6642 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6643 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6644 (x86_64_push_dummy_call): Return "sp + 16".
6645 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6646 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6647 save_dummy_frame_tos.
6648
0b65af49
JB
66492003-06-13 Jim Blandy <jimb@redhat.com>
6650
6651 * frv-tdep.c (frv_use_struct_convention): Delete static
6652 declaration for function deleted in my change of 2003-06-12.
6653
4ea2465e
TR
66542003-06-13 Theodore A. Roth <troth@openavr.org>
6655
6656 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6657 (avr_pointer_to_address): Shift code addrs left 1 bit.
6658 (avr_convert_from_func_ptr_addr): Delete function since operation is
6659 better handled by avr_address_to_pointer and avr_pointer_to_address.
6660 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6661
1581182a
MK
66622003-06-13 Mark Kettenis <kettenis@gnu.org>
6663
6664 From Kelley Cook <kelleycook@wideopenwest.com>:
6665 * configure.host: Accept i[34567]86 variants.
6666 * configure.tgt: Likewise.
6667 * nlm/configure.in: Likewise.
6668 * nlm/configure: Regenerated.
6669
7aa1783e
RE
66702003-06-13 Richard Earnshaw <rearnsha@arm.com>
6671
6672 * arm-tdep.c (solib-svr4.h): Dont' include it.
6673 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6674 * arm-linux-tdep.c: ... here. Make static.
6675 (arm_linux_init_abi): Register it.
6676 (solib-svr4.h): Include it.
6677 * Makefile.in: Update dependencies.
6678 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6679 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6680
0261a0d0
CV
66812003-06-13 Corinna Vinschen <vinschen@redhat.com>
6682
6683 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6684 indicate registers used for return values.
6685 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6686 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6687 members.
6688 (h8300_init_extra_frame_info): Ditto.
6689 (h8300_frame_locals_address): Removed.
6690 (h8300_frame_args_address): Removed.
6691 (h8300_extract_return_value): Use new regcache structure. Only care
6692 for 16 bit CPUs.
6693 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6694 (h8300_store_return_value): Use new regcache structure. Only care
6695 for 16 bit CPUs.
6696 (h8300h_store_return_value): Same function for 32 bit CPUs.
6697 (h8300_store_struct_return): Removed.
6698 (h8300_extract_struct_value_address): Use new regcache structure.
6699 (h8300h_extract_struct_value_address): Removed.
6700 (h8300_push_dummy_code): New function.
6701 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6702 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6703 set_gdbarch_store_return_value architecture dependent.
6704 Call set_gdbarch_push_dummy_code and
6705 set_gdbarch_extract_struct_value_address.
6706 Remove calls to set_gdbarch_frame_args_address,
6707 set_gdbarch_frame_locals_address,
6708 set_gdbarch_deprecated_store_struct_return,
6709 set_gdbarch_deprecated_extract_return_value,
6710 set_gdbarch_deprecated_extract_struct_value_address,
6711 set_gdbarch_deprecated_call_dummy_words and
6712 set_gdbarch_deprecated_sizeof_call_dummy_words.
6713
055c394a
CV
67142003-06-13 Corinna Vinschen <vinschen@redhat.com>
6715
6716 * h8300-tdep.c (h8300_register_byte): Remove.
6717 (h8300h_register_byte): Remove.
6718 (h8300_register_virtual_type): Remove. Substitute by...
6719 (h8300_register_type): New function.
6720 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6721 (h8300h_extract_struct_value_address): Ditto.
6722 (h8300_gdbarch_init): Drop calls to
6723 set_gdbarch_deprecated_register_byte and
6724 set_gdbarch_deprecated_register_virtual_type.
6725 Add call to set_gdbarch_register_type.
6726
9c04cab7
AC
67272003-06-13 Andrew Cagney <cagney@redhat.com>
6728
6729 * gdbarch.sh: Update comments on registers.
6730 (deprecated_register_byte): Rename register_byte.
6731 (deprecated_register_raw_size): Rename register_raw_size.
6732 (deprecated_register_virtual_size): Rename register_virtual_size.
6733 (deprecated_register_virtual_type): Rename register_virtual_type.
6734 * gdbarch.h, gdbarch.c: Re-generate.
6735 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6736 * vax-tdep.c (vax_gdbarch_init): Update.
6737 * v850-tdep.c (v850_gdbarch_init): Update.
6738 * sparc-tdep.c (sparc_gdbarch_init): Update.
6739 * sh-tdep.c (sh_gdbarch_init): Update.
6740 * s390-tdep.c (s390_gdbarch_init): Update.
6741 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6742 * ns32k-tdep.c: Update.
6743 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6744 * mips-tdep.c (mips_gdbarch_init): Update.
6745 * mcore-tdep.c (mcore_gdbarch_init): Update.
6746 * m68k-tdep.c (m68k_gdbarch_init): Update.
6747 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6748 * ia64-tdep.c (ia64_gdbarch_init): Update.
6749 * hppa-tdep.c (hppa_gdbarch_init): Update.
6750 * h8300-tdep.c (h8300_gdbarch_init): Update.
6751 * frv-tdep.c (frv_gdbarch_init): Update.
6752 * cris-tdep.c (cris_gdbarch_init): Update.
6753 * avr-tdep.c (avr_gdbarch_init): Update.
6754 * alpha-tdep.c (alpha_gdbarch_init): Update.
6755 * arm-tdep.c (arm_gdbarch_init): Update.
6756
b060cbea
AC
67572003-06-13 Andrew Cagney <cagney@redhat.com>
6758
6759 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6760 mips_o32_use_struct_convention with always_use_struct_convention.
6761
0fc9922a
DC
67622003-06-12 David Carlton <carlton@kealia.com>
6763
6764 * cp-namespace.c (cp_set_block_scope): Comment out
6765 processing_has_namespace_info branch.
6766
1fd35568
JB
67672003-06-12 Jim Blandy <jimb@redhat.com>
6768
f470a70a
JB
6769 Recognize and skip 64-bit PowerPC Linux linkage functions.
6770 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6771 insn_pattern, insns_match_pattern, d_field, ds_field): New
6772 functions, macros, and types for working with PPC instructions.
6773 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6774 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6775 ppc64_skip_trampoline_code): New functions, variables, and macros
6776 for recognizing and skipping linkage functions.
6777 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6778 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6779
49ff75ad
JB
6780 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6781 register offsets for both the 32- and 64-bit interfaces.
6782
bd918c83
JB
6783 Actually finish the job started by my change of 2003-05-29.
6784 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6785 other #definition of this.
6786 (ppc_linux_skip_trampoline_code): Remove declaration.
6787 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6788 static.
6789 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6790 method for GDBARCH.
6791
6792 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6793 'long' on ppc64-*-linux*.
6794
f8c59253
JB
6795 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6796 isn't #defined, assume the register doesn't exist: act as if
6797 tdep->ppc_mq_regnum were -1.
6798
8fbb30b1
JB
6799 * configure.host, configure.tgt: Add entries for
6800 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6801 powerpc/linux.mt.
6802 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6803 New files.
6804
1fd35568
JB
6805 * arch-utils.c (always_use_struct_convention): New function.
6806 * arch-utils.h (always_use_struct_convention): New prototype.
6807 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6808 (alpha_gdbarch_init): Register always_use_struct_convention,
6809 instead of alpha_use_struct_convention.
6810 * cris-tdep.c (cris_use_struct_convention): Delete.
6811 (cris_gdbarch_init): Register always_use_struct_convention,
6812 instead of cris_use_struct_convention.
6813 * frv-tdep.c (frv_use_struct_convention): Delete.
6814 (frv_gdbarch_init): Register always_use_struct_convention,
6815 instead of frv_use_struct_convention.
6816 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6817 (h8300_gdbarch_init): Register always_use_struct_convention,
6818 instead of h8300_use_struct_convention.
e3305dd9 6819 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6820 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6821 instead of mips_o32_use_struct_convention.
6822
e14e6e9c
AC
68232003-06-12 Andrew Cagney <cagney@redhat.com>
6824
6825 * wince.c: Include "mips-tdep.h".
6826 * mips-tdep.h (mips_next_pc): Declare.
6827 * mcore-tdep.c: Make more local functions static.
6828 * Makefile.in (wince.o): Update dependencies.
6829
2335f48e
DC
68302003-06-12 David Carlton <carlton@kealia.com>
6831
6832 * symtab.c (lookup_symbol_aux_minsyms): Replace
6833 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6834 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6835 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6836 SYMBOL_NATURAL_NAME.
6837
f70a7d61
AS
68382003-06-12 Andreas Schwab <schwab@suse.de>
6839
6840 * Makefile.in (tuiDisassem.o): Update dependencies.
6841
b6429628
DC
68422003-06-12 David Carlton <carlton@bactrian.org>
6843
6844 * symtab.h: Delete declaration of make_symbol_overload_list.
6845 Add declaration of lookup_partial_symbol.
6846 * symtab.c (remove_params): Move to cp-support.c.
6847 (overload_list_add_symbol, make_symbol_overload_list)
6848 (sym_return_val_size, sym_return_val_index): Ditto.
6849 (lookup_partial_symbol): Make extern.
6850 * cp-support.h: Add declaration of make_symbol_overload_list.
6851 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6852 symtab.h, and block.h.
6853 (remove_params): Move here from symtab.c.
6854 (overload_list_add_symbol, make_symbol_overload_list)
6855 (sym_return_val_size, sym_return_val_index): Ditto.
6856 * valops.c: Include cp-support.h.
6857 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6858 frame_h, and block_h.
6859 (valops.o): Depend on cp_support_h.
6860
084edea5
CV
68612003-06-12 Corinna Vinschen <vinschen@redhat.com>
6862
6863 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6864 substitute by NUM_REGS throughout.
6865 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6866 (h8300s_register_name): New function for H8S registers.
6867 (h8300sx_register_name): Ditto for H8SX registers.
6868 (h8300_print_register): Revise register printing, avoid depending
6869 on 32 bit long.
0261a0d0 6870 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6871 (h8300h_register_byte): New function for any other architecture.
6872 (h8300_register_raw_size): Remove.
6873 (h8300_register_virtual_type): Revise to return actually useful
6874 type.
6875 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6876 (h8300h_extract_struct_value_address): New function for any other
6877 architecture.
6878 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6879 set_gdbarch_register_name, set_gdbarch_register_byte,
6880 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6881 Remove calls to set_gdbarch_deprecated_register_size,
6882 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6883 set_gdbarch_deprecated_max_register_raw_size,
6884 set_gdbarch_register_virtual_size and
6885 set_gdbarch_deprecated_max_register_virtual_size entirely.
6886 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6887 set_gdbarch_long_double_bit.
6888
06194148
JJ
68892003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6890
8ffd9b1b
AJ
6891 * doublest.c (convert_doublest_to_floatformat): When dealing
6892 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6893 processing a full 32 bits of mantissa.
6894
de4f826b
DC
68952003-06-11 David Carlton <carlton@bactrian.org>
6896
6897 * dictionary.h: New.
6898 * dictionary.c: New.
6899 * block.h: Add opaque declaration for struct dictionary.
6900 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6901 'sym' members.
6902 (BLOCK_DICT): New macro.
6903 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6904 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6905 BLOCK_SHOULD_SORT.
6906 (ALL_BLOCK_SYMBOLS): Update definition.
6907 * Makefile.in (SFILES): Add dictionary.c.
6908 (dictionary_h): New.
6909 (COMMON_OBS): Add dictionary.o.
6910 (dictionary.o): New.
6911 (ada-lang.o): Depend on dictionary_h.
6912 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6913 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6914 (mi-cmd-stack.o): Ditto.
6915 (gdbtk-cmds.o): Update dependencies.
6916 (gdbtk-stack.o): Ditto.
6917 * ada-lang.c: Include dictionary.h.
6918 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6919 (fill_in_ada_prototype, debug_print_block): Ditto.
6920 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6921 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6922 'is_sorted'.
6923 * mdebugread.c: Include dictionary.h.
6924 (struct parse_stack): Delete 'maxsyms' member.
6925 (parse_symbol): Update calls to new_block. Delete calls to
6926 shrink_block. Use dictionary methods.
6927 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6928 Update calls to new_symtab. Don't maintain maxsyms data.
6929 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6930 (add_symbol): Just call dict_add_symbol.
6931 (new_symtab): Delete 'maxsyms' argument.
6932 (new_symtab): Update calls to new_block.
6933 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6934 (shrink_block): Delete function.
6935 (fixup_sigtramp): Update call to new_block. Add symbol via
6936 dict_add_symbol.
6937 * jv-lang.c: Include dictionary.h.
6938 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6939 appropriately. Set class_symtab->free_func. Make sure the
6940 blockvector is big enough to hold two blocks.
6941 (add_class_symtab_symbol): Use dictionary methods.
6942 (free_class_block): New function.
6943 (type_from_class): Replace explicit iteration by
6944 ALL_BLOCK_SYMBOLS.
6945 * symtab.h (struct symtab): Replace 'free_ptr' method by
6946 'free_func'.
6947 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6948 sort_symtab_syms.
6949 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6950 sort_symtab_syms.
6951 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6952 Include dictionary.h.
6953 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6954 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6955 sort_symtab_syms.
6956 * objfiles.c: Include dictionary.h.
6957 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6958 * buildsym.c: Include dictionary.h.
6959 (finish_block): Use dictionary methods.
6960 (end_symtab): Set free_func to NULL, not free_ptr.
6961 * tracepoint.c: Include dictionary.h.
6962 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6963 (scope_info): Ditto.
6964 * stack.c: Include dictionary.h.
6965 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6966 (print_block_frame_labels, print_frame_arg_vars)
6967 (print_frame_args): Ditto.
6968 * symmisc.c (free_symtab_block): Use dictionary methods.
6969 (dump_symtab): Ditto.
6970 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6971 Include dictionary.h.
6972 * symfile.h: Delete declarations of sort_block_syms,
6973 sort_symtab_syms.
6974 * symfile.c (sort_block_syms): Delete.
6975 (sort_symtab_syms): Delete.
6976 * symtab.c: Include dictionary.h.
6977 (lookup_block_symbol): Use dictionary iterators.
6978 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6979 (search_symbols, make_symbol_completion_list): Ditto.
6980 (make_symbol_overload_list): Ditto.
6981 * valops.c (value_of_local): Use dict_empty.
6982 Include dictionary.h.
6983
a31f978c
JB
69842003-06-11 J. Brobecker <brobecker@gnat.com>
6985
6986 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6987
526e70c0
DC
69882003-06-11 David Carlton <carlton@bactrian.org>
6989
6990 * block.h (BLOCK_SHOULD_SORT): Delete.
6991 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6992 blocks.
6993 * ada-lang.c (ada_add_block_symbols): Ditto.
6994 * symfile.c (sort_block_syms): Delete.
6995 (sort_symtab_syms): Ditto.
6996 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6997 declarations.
6998 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6999 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
7000 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
7001 * dwarfread.c (psymtab_to_symtab_1): Ditto.
7002 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
7003 * mdebugread.c (psymtab_to_symtab_1): Ditto.
7004 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
7005
33c08150
JJ
70062003-06-11 Jeff Johnston <jjohnstn@redhat.com>
7007
8ffd9b1b 7008 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
7009 bits to 128.
7010
781a750d
AC
70112003-06-11 Andrew Cagney <cagney@redhat.com>
7012
7013 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
7014 REGISTER_CONVERTIBLE.
7015 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
7016 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
7017 * gdbarch.h, gdbarch.c: Re-generate.
7018 * arch-utils.h (deprecated_register_convertible_not): Rename
7019 generic_register_convertible_not.
7020 * arch-utils.c (deprecated_register_convertible_not): Rename
7021 generic_register_convertible.
7022 (legacy_convert_register_p, legacy_register_to_value): Update.
7023 * sh-tdep.c (sh64_push_arguments): Update.
7024 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
7025 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
7026 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
7027 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
7028 * arch-utils.c (legacy_value_to_register): Update.
7029 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7030 (rs6000_register_convert_to_raw): Make parameter "from" const.
7031 * mips-tdep.c (mips_gdbarch_init): Update.
7032 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7033 * infcmd.c (default_print_registers_info): Update.
7034 * ia64-tdep.c (ia64_gdbarch_init): Update.
7035 (ia64_register_convert_to_raw): Make parameter "from" const.
7036 * i386-tdep.c (i386_gdbarch_init): Update.
7037 (i386_register_convert_to_raw): Update.
7038
cd90e54f
AC
70392003-06-11 Andrew Cagney <cagney@redhat.com>
7040
7041 * remote-fileio.c: Include "remote-fileio.h".
7042 * Makefile.in (remote-fileio.o): Update dependencies.
7043 (remote_fileio_h): Fix typo.
7044
a78f21af
AC
70452003-06-11 Andrew Cagney <cagney@redhat.com>
7046
7047 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7048 (xstormy16_save_dummy_frame_tos): Make static.
7049 (_initialize_xstormy16_tdep): Add declaration.
7050 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7051 * v850-tdep.c: Make local functions static.
7052 (_initialize_v850_tdep): Add declaration.
7053 * sparc-tdep.c: Make local functions static.
7054 (_initialize_sparc_tdep): Add declaration.
7055 * sh-tdep.c: Make local functions static.
7056 (_initialize_sh_tdep): Add declaration.
7057 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7058 * s390-tdep.c: Make local functions static.
7059 (_initialize_s390_tdep): Add declaration.
7060 * dbxread.c (find_stab_function_addr): Make static.
7061 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7062 * ocd.c (_initialize_remote_ocd): Add declaration.
7063 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7064 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7065 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7066 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7067 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7068 * remote-array.c (_initialize_array): Add declaration.
7069 (_initialize_remote_monitors): Add declaration.
7070 * remote-mips.c: Make local functions static.
7071 (_initialize_remote_mips): Add declaration.
7072 * mcore-tdep.c: Make all local functions static.
7073 (_initialize_mcore_tdep): Add declaration.
7074 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7075 * abug-rom.c (_initialize_abug_rom): Add declaration.
7076 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7077 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7078 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7079 * remote-est.c (_initialize_est): Add declaration.
7080 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7081 (m68hc11_call_dummy_address): Make static.
7082 * ia64-tdep.c: Make local functions static.
7083 (_initialize_ia64_tdep): Add declaration.
7084 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7085 * monitor.c (monitor_wait_filter): Make static.
7086 (_initialize_remote_monitors): Add declaration.
7087 * remote-hms.c (_initialize_remote_hms): Add declaration.
7088 * remote-e7000.c (fetch_regs_from_dump): Make static.
7089 (expect_n): Make static.
7090 (_initialize_remote_e7000): Add declaration.
7091 * ser-e7kpc.c: Always include "defs.h".
7092 (_initialize_ser_e7000pc): Add declaration.
7093 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7094 * cris-tdep.c: Make all but one function static.
7095 (_initialize_cris_tdep): Add declaration.
7096 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7097 * solib.c (update_solib_list): Make static.
7098 (_initialize_solib): Add declaration.
7099 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7100 (_initialize_avr_tdep): Add declaration.
7101 * remote-rdi.c (voiddummy): Make static.
7102 (_initialize_remote_rdi): Add declaration.
7103 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7104 * remote-rdp.c (send_rdp): Make static.
7105 (_initialize_remote_rdp): Add declaration.
7106 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7107
cbcdb1f5
CV
71082003-06-11 Corinna Vinschen <vinschen@redhat.com>
7109
7110 * remote-fileio.c: Make ari happy.
7111
a191ea8d
JB
71122003-06-10 J. Brobecker <brobecker@gnat.com>
7113
7114 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7115 fetching the trailing bytes of the buffer we are about to write.
7116
0ef75e11
AC
71172003-06-10 Andrew Cagney <cagney@redhat.com>
7118
7119 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7120 * Makefile.in (remote-fileio.o): Update dependencies.
7121 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7122 include <setjmp.h>, or <sys/types.h> conditional on USG.
7123 (remote_fio_jmp_buf): Delete global variable.
7124
449092f6 71252003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7126 Martin M. Hunt <hunt@redhat.com>
449092f6 7127
559fa028
AC
7128 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7129 (SFILES): Add remote-fileio.c.
7130 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7131 dependencies for building remote.o.
449092f6
CV
7132 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7133 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7134 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7135 static storage class.
7136 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7137 'F' packet.
7138 (_initialize_remote): Call initialize_remote_fileio().
7139 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7140 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7141 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7142 (captured_main): Initialize new ui_files.
7143 * ui-file.c: Add read and fgets input functions.
7144 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7145 (null_file_read): New function.
7146 (ui_file_read): New function.
7147 (set_ui_file_read): New function.
7148 (stdio_file_read): New function.
7149 * ui-file.h: New type ui_file_read_ftype.
7150 (set_ui_file_read): Declare.
7151 (ui_file_read): Declare.
7152
248de703
AC
71532003-06-09 Andrew Cagney <cagney@redhat.com>
7154
7155 * frame.h (deprecated_unwind_get_saved_register): Rename
7156 generic_unwind_get_saved_register, update comments.
7157 * mips-tdep.c (mips_get_saved_register): Update.
7158 * frame.c (deprecated_unwind_get_saved_register): Update.
7159
0ed8aa57
AC
71602003-06-09 Andrew Cagney <cagney@redhat.com>
7161
7162 * vax-tdep.c (vax_frame_locals_address): Delete function.
7163 (vax_gdbarch_init): Do not set frame_locals_address.
7164 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7165 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7166 * s390-tdep.c (s390_frame_args_address): Delete function.
7167 (s390_gdbarch_init): Do not set frame_args_address or
7168 frame_locals_address.
7169 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7170 (ns32k_gdbarch_init): Do not set frame_locals_address.
7171 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7172 (hppa_frame_locals_address): Delete function.
7173 (hppa_gdbarch_init): Do not set frame_args_address, or
7174 frame_locals_address.
7175 * arm-tdep.c (arm_frame_args_address): Delete.
7176 (arm_frame_locals_address): Delete.
7177 (arm_gdbarch_init): Do not set frame_args_address, or
7178 frame_locals_address.
7179
983a287a
AC
71802003-06-09 Andrew Cagney <cagney@redhat.com>
7181
7182 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7183 * gdbarch.h, gdbarch.c: Re-generate.
7184 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7185 * arch-utils.c (frame_num_args_unknown): Delete function.
7186 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7187 (frame_info): Use FRAME_NUM_ARGS_P.
7188 * arm-tdep.c (arm_frame_num_args): Delete function.
7189 (arm_gdbarch_init): Do not set frame_num_args.
7190 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7191 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7192 (hppa_gdbarch_init): Do not set frame_num_args.
7193 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7194 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7195 frame_num_args to default frame_num_args_unknown.
7196 * v850-tdep.c (v850_gdbarch_init): Ditto.
7197 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7198 * sh-tdep.c (sh_gdbarch_init): Ditto.
7199 * s390-tdep.c (s390_gdbarch_init): Ditto.
7200 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7201 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7202 * mips-tdep.c (mips_gdbarch_init): Ditto.
7203 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7204 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7206 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7207 * i386-tdep.c (i386_gdbarch_init): Ditto.
7208 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7209 * frv-tdep.c (frv_gdbarch_init): Ditto.
7210 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7211 * cris-tdep.c (cris_gdbarch_init): Ditto.
7212 * avr-tdep.c (avr_gdbarch_init): Ditto.
7213 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7214
8d3b0994
AC
72152003-06-09 Andrew Cagney <cagney@redhat.com>
7216
7217 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7218 (print_frame_args): Moved to "stack.c".
7219 * stack.c: Include "gdb_assert.h".
7220 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7221 (print_frame_args): Moved from "printcmd.c".
7222 * frame.h (print_frame_args): Delete declaration.
7223 * Makefile.in (stack.o): Update dependencies.
7224
25e3a86b
AC
72252003-06-08 Andrew Cagney <cagney@redhat.com>
7226
7227 * frame.c (get_prev_frame): Remove reference to
7228 frame_args_address_correct in comments.
7229 * frame-base.c (default_frame_args_address): Delete code
7230 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7231 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7232 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7233 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7234 (vax_frame_args_address_correct): Delete declaration.
7235
a9e5fdc2
AC
72362003-06-08 Andrew Cagney <cagney@redhat.com>
7237
7238 * gdbarch.sh (UNWIND_SP): Add.
7239 * gdbarch.h, gdbarch.c: Re-generate.
7240 * frame.c (frame_sp_unwind): New function.
7241 (get_frame_sp): New function.
7242 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7243 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7244 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7245 value.
7246 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7247 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7248
8983bd83
AC
72492003-06-08 Andrew Cagney <cagney@redhat.com>
7250
7fec2c59
AC
7251 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7252 REMOTE_BREAKPOINT.
7253 * remote.c: Update.
7254 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7255 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7256 * config/m68k/tm-sun3.h: Update.
7257 * config/m68k/tm-m68klynx.h: Update.
7258 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7259
8983bd83
AC
7260 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7261 trad_frame". Update comments.
7262 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7263 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7264 (trad_frame_register_value, trad_frame_prev_register): Update.
7265
b9362cc7
AC
72662003-06-08 Andrew Cagney <cagney@redhat.com>
7267
7268 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7269 from GCC's acinclude.m4.
7270 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7271 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7272 * main.c (error_init): Delete declaration.
7273 * defs.h (error_init): Declare.
7274 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7275 (rs6000_convert_from_func_ptr_addr): Make static.
7276 (_initialize_rs6000_tdep): Add declaration.
7277 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7278 (show_commands, set_verbose, show_history): Delete declaration.
7279 * top.h (set_verbose): Add declaration.
7280 (show_history, set_history, show_commands): Add declaration.
7281 (do_restore_instream_cleanup): Add declaration.
7282 * objc-lang.c (specialcmp): Make static.
7283 (print_object_command): Make static.
7284 (find_objc_msgsend): Make static.
7285 (find_objc_msgcall_submethod_helper): Make static.
7286 (find_objc_msgcall_submethod): Make static.
7287 (_initialize_objc_language): Add declaration.
7288 (find_implementation_from_class): Make static.
7289 (find_implementation): Make static.
7290 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7291 * objc-lang.h (lookup_struct_typedef): Add declaration.
7292 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7293 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7294 (do_restore_user_call_depth): Make static.
7295 (do_restore_instream_cleanup): Delete declaration.
7296 (dont_repeat): Delete declaration.
7297 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7298 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7299 * reggroups.c (_initialize_reggroup): Add declaration.
7300 * cp-support.c (_initialize_cp_support): Add declaration.
7301 * cp-abi.c (_initialize_cp_abi): Add declaration.
7302 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7303 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7304 (_initialize_gnu_v3_abi): Add declaration.
7305 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7306 (_initialize_gnu_v2_abi): Add declaration.
7307 * frame-base.c (_initialize_frame_base): Add declaration.
7308 * doublest.c (floatformat_from_length): Make static.
7309 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7310 * frame.c (create_sentinel_frame): Make static.
7311 (_initialize_frame): Add declaration.
7312 * top.c (do_catch_errors): Make static.
7313 (gdb_rl_operate_and_get_next_completion): Make static.
7314 * typeprint.c: Include "typeprint.h".
7315 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7316 (sentinel_frame_this_id): Make static.
7317 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7318 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7319 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7320 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7321 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7322 * maint.c (maintenance_print_architecture): Make static.
7323 * signals/signals.c (_initialize_signals): Add declaration.
7324 * std-regs.c (_initialize_frame_reg): Add declaration.
7325 * jv-exp.y (push_variable): ISO C definition.
7326 (push_qualified_expression_name): Ditto.
7327 * memattr.c (_initialize_mem): Add declaration.
7328 * remote.c (remote_check_watch_resources): Make static.
7329 (remote_stopped_by_watchpoint): Make static.
7330 (remote_stopped_data_address): Make static.
7331 * d10v-tdep.c (nr_dmap_regs): Make static.
7332 (a0_regnum): Make static.
7333 (d10v_frame_unwind_cache): Make static.
7334 (d10v_frame_p): Make static.
7335 * osabi.c (show_osabi): Make static.
7336 (_initialize_gdb_osabi): Add extern declaration.
7337 * gdbtypes.c (make_qualified_type): Make static.
7338 (safe_parse_type): Make static.
7339 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7340 * macrotab.c (macro_bcache_free): Make static.
7341 * interps.c (interp_set_quiet): Make static.
7342 (interpreter_exec_cmd): Make static.
7343 * stack.h (select_frame_command): New file.
7344 * stack.c: Include "stack.h".
7345 (select_frame_command_wrapper): Delete function.
7346 (select_frame_command): Make global.
7347 * infcall.c: Include "infcall.h".
7348 * linespec.c: Include "linespec.h".
7349 * symfile.c (sections_overlap): Make static.
7350 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7351 * charset.c (_initialize_charset): Add missing prototype.
7352 * regcache.c (init_legacy_regcache_descr): Make static.
7353 (do_regcache_xfree): Make static.
7354 (regcache_xfer_part): Make static.
7355 (_initialize_regcache): Add missing prototype.
7356 * breakpoint.c (parse_breakpoint_sals): Make static.
7357 (breakpoint_sals_to_pc): Make static.
7358 * interps.h (clear_interpreter_hooks): ISO C declaration.
7359 * Makefile.in (stack_h): Define.
7360 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7361 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7362
a0f267c7
AC
73632003-06-08 Andrew Cagney <cagney@redhat.com>
7364
7365 * Makefile.in (d10v-tdep.o): Update dependencies.
7366 (SFILES): Add trad-frame.c.
7367 (trad_frame_h): Define.
7368 (COMMON_OBS): Add trad-frame.o.
7369 (trad-frame.o): Specify dependencies.
7370 * d10v-tdep.c: Include "trad-frame.h".
7371 (saved_regs_unwinder): Delete function.
7372 (d10v_frame_prev_register): Use trad_frame_prev_register.
7373 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7374 trad_frame", delete "regs" and "prev_sp".
7375 (prologue_find_regs): Use trad-frame.
7376 * trad-frame.h, trad-frame.c: New files.
7377
4538b4f4
MK
73782003-06-08 Mark Kettenis <kettenis@gnu.org>
7379
7380 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7381
a0273b2f
AF
73822003-06-07 Adam Fedor <fedor@gnu.org>
7383
7384 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7385 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7386 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7387 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7388 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7389 Use it.
7390
3a6c3343
AC
73912003-06-07 Andrew Cagney <cagney@redhat.com>
7392
7393 * symfile.h: Re-indent, clean up comments.
7394
b46e02f6
AC
73952003-06-07 Andrew Cagney <cagney@redhat.com>
7396
7397 * inferior.h (deprecated_write_sp): Replace
7398 generic_target_write_sp.
7399 * regcache.c (deprecated_write_sp): Replace
7400 generic_target_write_sp.
7401 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7402 * vax-tdep.c (vax_gdbarch_init): Update.
7403 * v850-tdep.c (v850_gdbarch_init): Update.
7404 * sparc-tdep.c (sparc_gdbarch_init): Update.
7405 * sh-tdep.c (sh_gdbarch_init): Update.
7406 * s390-tdep.c (s390_gdbarch_init): Update.
7407 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7408 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7409 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7410 * mcore-tdep.c (mcore_gdbarch_init): Update.
7411 * m68k-tdep.c (m68k_gdbarch_init): Update.
7412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7413 * ia64-tdep.c (ia64_gdbarch_init): Update.
7414 * h8300-tdep.c (h8300_gdbarch_init): Update.
7415 * frv-tdep.c (frv_gdbarch_init): Update.
7416 * cris-tdep.c (cris_gdbarch_init): Update.
7417 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7418
a42e117c
AC
74192003-06-07 Andrew Cagney <cagney@redhat.com>
7420
7421 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7422 Assert that PC_REGNUM is valid.
7423 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7424
bd1ce8ba
AC
74252003-06-07 Andrew Cagney <cagney@redhat.com>
7426
7427 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7428 * gdbarch.h, gdbarch.c: Regenerate.
7429 * mn10300-tdep.c: Include "gdb_assert.h".
7430 (mn10300_read_fp): New function.
7431 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7432 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7433 * ia64-tdep.c: Include "gdb_assert.h".
7434 (ia64_read_fp): New function.
7435 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7436 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7437 * regcache.c (generic_target_read_sp): Delete function.
7438 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7439 * inferior.h (generic_target_read_sp): Delete declaration.
7440 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7441 generic_target_read_sp.
7442 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7443 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7444 * sh-tdep.c (sh_gdbarch_init): Ditto.
7445 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7446 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7447
ec5cbaec
AC
74482003-06-07 Andrew Cagney <cagney@redhat.com>
7449
7450 * gdbarch.sh: Comment each field of startup_gdbarch.
7451 * gdbarch.h, gdbarch.c: Re-generate.
7452
cde9ea48
AC
74532003-06-07 Andrew Cagney <cagney@redhat.com>
7454
7455 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7456 * gdbarch.h, gdbarch.c: Re-generate.
7457 * regcache.c: Update comments on read_pc et.al.
7458 (generic_target_read_pc): Delete function.
7459 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7460 * inferior.h (generic_target_read_pc): Delete declaration.
7461 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7462 generic_target_read_pc.
7463 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7464 * sh-tdep.c (sh_gdbarch_init): Ditto.
7465 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7466 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7467
9a90a780
AC
74682003-06-07 Andrew Cagney <cagney@redhat.com>
7469
7470 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7471 "index" with "special_local_sect". Use strcmp instead of STREQ.
7472 Append period to coments.
7473
a39a16c4
MM
74742003-06-06 Mark Mitchell <mark@codesourcery.com>
7475
7476 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7477 (elfstab_offset_sections): Likewise.
7478 * gdb-stabs.h (stab_section_info): Likewise.
7479 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7480 * objfiles.c (objfile_relocate): Likewise.
7481 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7482 * remote.c (get_offsets): Likewise.
7483 (remote_cisco_objfile_relocate): Likewise.
7484 * somread.c (som_symfile_offsets): Likewise.
7485 * symfile.c (alloc_section_addr_info): New function.
7486 (build_section_addr_info_from_section_tab): Use it.
7487 (free_section_addr_info): Adjust.
7488 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7489 (syms_from_objfile): Allocate local_addr dynamically.
7490 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7491 dynamically.
7492 (add_symbol_file_command): Allocate sect_opts dynamically.
7493 (reread_symbols): Avoid use of SECT_OFF_MAX.
7494 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7495 (alloc_section_addr_info): Declare it.
7496 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7497 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7498 dynamically.
7499 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7500
20c6c2f8
AC
75012003-06-06 Andrew Cagney <cagney@redhat.com>
7502
7503 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7504 (d10v_frame_unwind_cache): Do not set "return_pc".
7505
884a26c8
MS
75062003-06-06 Michael Snyder <msnyder@redhat.com>
7507
7508 * h8300-tdep.c: Make tidy (long lines).
7509
088ce440
ML
75102003-06-06 Michal Ludvig <mludvig@suse.cz>
7511
8ffd9b1b 7512 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7513 to regcache_collect().
7514
7d773d96
JB
75152003-06-05 J. Brobecker <brobecker@gnat.com>
7516
7517 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7518 pc_in_sigtramp multiarch method.
7519 (hppa_hpux_som_init_abi): Use it.
7520 (hppa_hpux_elf_init_abi): Likewise.
7521 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7522 macro has been multiarched.
7523 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7524 macro here, as hppa64 isn't multiarched yet.
7525
1df6926e
AC
75262003-06-05 Andrew Cagney <cagney@redhat.com>
7527
7528 * Makefile.in (value_h): Add $(frame_h).
7529 * value.h: Include "frame.h".
7530 (struct value): Replace "frame_addr" with "frame_id".
7531 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7532 * values.c (allocate_value): Use VALUE_FRAME_ID.
7533 (value_copy): Use VALUE_FRAME_ID.
7534 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7535 * valops.c (value_assign): Update. Use frame_find_by_id.
7536
6b53acc6
ML
75372003-06-05 Michal Ludvig <mludvig@suse.cz>
7538
7539 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7540 in each pass.
7541
4d9850d3
JJ
75422003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7543
7544 * thread-db.c (check_event): For create/death event breakpoints,
7545 loop through all messages to ensure that we read the message
7546 corresponding to the breakpoint we are at.
7547
8efca6ba
MS
75482003-06-04 Michael Snyder <msnyder@redhat.com>
7549
7550 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7551
0912c7f2
MK
75522003-06-04 Mark Kettenis <kettenis@gnu.org>
7553
7554 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7555 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7556 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7557 when handling .eh_frame sections.
7558
4e370325
JB
75592003-06-04 J. Brobecker <brobecker@gnat.com>
7560
7561 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7562 prepare_to_proceed procedure instead of the hppa-specific one.
7563 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7564
b757528f 75652003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7566
b757528f
JJ
7567 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7568 * config.in: Regenerated.
7569 * configure.in: Add test for syscall function and check for
7570 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7571 * configure: Regenerated.
7572 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7573 <sys/syscall.h>.
7574 (kill_lwp): New function that uses tkill syscall or
7575 uses kill, depending on whether threading model is nptl or not.
7576 All callers of kill() changed to use kill_lwp().
7577 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7578 see if all threads have already exited in the nptl model.
7579 (stop_and_resume_callback): New callback function used by the
7580 lin_lwp_wait thread exit handling code.
7581 (stop_wait_callback): Check for threads already having exited and
7582 delete such threads fromt the lwp list when discovered.
7583 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7584
b757528f
JJ
7585 Roland McGrath <roland@redhat.com>
7586 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7587 nptl libthread_db.
7588
087779b1
RH
75892003-06-03 Richard Henderson <rth@redhat.com>
7590
b21fd293
RH
7591 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7592 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7593 (alpha_sigtramp_frame_prev_register): Likewise.
7594 (alpha_heuristic_frame_prev_register): Likewise.
7595 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7596
8ffd9b1b 7597 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7598 alpha-specific register id names.
7599 (alpha_mdebug_frame_unwind_cache): Likewise.
7600 (alpha_mdebug_frame_prev_register): Likewise.
7601
baa490c4
RH
76022003-06-03 Richard Henderson <rth@redhat.com>
7603
7604 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7605 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7606 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7607 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7608 unwind routines.
7609 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7610 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7611 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7612
7613 * alpha-linux-tdep.c: Remove unnecessary includes.
7614 * Makefile.in (alpha-linux-tdep.o): Update.
7615
76162003-06-03 Richard Henderson <rth@redhat.com>
7617
7618 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7619 (alphabsd_fill_fpreg): Likewise.
7620
f534e522
JB
76212003-06-03 J. Brobecker <brobecker@gnat.com>
7622
7623 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7624 references to struct frame_info fields by calls to the equivalent
7625 accessors. Necessary now that frame_info is opaque.
7626
4035536b
JB
76272003-06-03 J. Brobecker <brobecker@gnat.com>
7628
7629 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7630 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7631 structure, field no longer exists.
7632
0bd79c5c
JB
76332003-06-03 J. Brobecker <brobecker@gnat.com>
7634
7635 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7636 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7637
37bb6d9f
JB
76382003-06-03 J. Brobecker <brobecker@gnat.com>
7639
7640 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7641 references to struct frame_info fields by calls to the equivalent
7642 accessors. Necessary now that frame_info is opaque.
7643
852ee05c
JB
76442003-06-03 J. Brobecker <brobecker@gnat.com>
7645
7646 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7647 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7648 structure, field no longer exists.
7649
7d58c67d
TR
76502003-06-03 Theodore A. Roth <troth@openavr.org>
7651
8ffd9b1b 7652 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7653 accumulation of the size of all registers instead of blindly using
7654 DEPRECATED_REGISTER_BYTES.
7655
0a48e7e8
MS
76562003-06-03 Michael Snyder <msnyder@redhat.com>
7657
7658 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7659 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7660 for h8300sx.
7661
9798ab0d
JB
76622003-06-03 J. Brobecker <brobecker@gnat.com>
7663
7664 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7665 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7666
00b037e2
AC
76672003-06-03 Andrew Cagney <cagney@redhat.com>
7668
7669 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7670 (sparc_convert_to_raw): Delete function.
7671 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7672 register_convert_to_virtual.
7673
043b2f77
JJ
76742003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7675
7676 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7677 layer if not dealing with a statically-linked threaded program.
7678
f43caff8
KW
76792003-06-03 Kris Warkentin <kewarken@qnx.com>
7680
7681 * solib.c (solib_open): Update comment to reflect actual search order.
7682
ae1e7417
AC
76832003-06-03 Andrew Cagney <cagney@redhat.com>
7684
7685 * frame.c (get_frame_memory_signed): New function.
7686 (get_frame_memory, get_frame_memory_unsigned): New function.
7687 (get_frame_arch): New function.
7688 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7689 (get_frame_memory, get_frame_unsigned_memory): Declare.
7690 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7691 get_frame_memory_unsigned and get_frame_arch.
7692 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7693
cb123844
RG
76942003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7695
7696 * MAINTAINERS (write after approval): Add myself.
7697
1bb792e9
JB
76982003-06-03 Jim Blandy <jimb@redhat.com>
7699
7700 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7701 elements of gregset_t are 64 bits each, but access registers
7702 are still 32 bits, so they're packed two per gregset_t
7703 element. Unpack/pack them properly.
7704
aee8d8ba
DC
77052003-06-02 David Carlton <carlton@bactrian.org>
7706
7707 * linespec.c (find_methods): Break out code into
7708 add_matching_methods and add_constructors.
7709 (add_matching_methods): New.
7710 (add_constructors): Ditto.
7711
bf7488d2
AC
77122003-06-02 Andrew Cagney <cagney@redhat.com>
7713
bf7488d2
AC
7714 * sparc-tdep.c (sparc_print_registers): Delete call to
7715 REGISTER_CONVERTIBLE.
7716 (sparc_gdbarch_init): Do not set register_convertible.
7717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7718 * frv-tdep.c (frv_gdbarch_init): Ditto.
7719 * cris-tdep.c (cris_gdbarch_init): Ditto.
7720
adedef68
EZ
77212003-06-02 Elena Zannoni <ezannoni@redhat.com>
7722
8ffd9b1b 7723 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7724 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7725 (syms_from_objfile): Ditto.
7726
650fcc91
AS
77272003-06-03 Andreas Schwab <schwab@suse.de>
7728
7729 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7730 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7731
df4a182b
RH
77322003-06-02 Richard Henderson <rth@redhat.com>
7733
7734 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7735 a member of all_reggroup.
7736
c483c494
RH
77372003-06-02 Richard Henderson <rth@redhat.com>
7738
7739 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7740 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7741 (alpha_lds, alpha_sts): New.
7742 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7743 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7744 restructure and fail for type sizes other than 4 or 8.
7745 (alpha_value_to_register): Similarly.
7746 (alpha_extract_return_value): Use alpha_sts.
7747 (alpha_store_return_value): Use alpha_lds.
7748 (alpha_gdbarch_init): Update hooks.
7749
b38b6be2
RH
77502003-06-02 Richard Henderson <rth@redhat.com>
7751
7752 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7753 regnum identifiers.
7754 (alpha_sigtramp_register_address): Likewise.
7755
98a8e1e5
RH
77562003-06-02 Richard Henderson <rth@redhat.com>
7757
7758 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7759 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7760 * alpha-tdep.h: Declare them.
7761
7762 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7763 Remove zerobuf. Don't error on UNIQUE.
7764 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7765 (ALPHA_REGSET_UNIQUE): Provide default.
7766 (supply_gregset): Use alpha_supply_int_regs.
7767 (fill_gregset): Use alpha_fill_int_regs.
7768 (supply_fpregset): Use alpha_supply_fp_regs.
7769 (fill_fpregset): Use alpha_fill_fp_regs.
7770 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7771 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7772 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7773 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7774 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7775 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7776
67dfac52
RH
77772003-06-02 Richard Henderson <rth@redhat.com>
7778
f75d70cc
RH
7779 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7780
67dfac52
RH
7781 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7782 (alpha_store_return_value): Likewise.
7783
0cf566ec
DC
77842003-06-02 David Carlton <carlton@math.stanford.edu>
7785
7786 * block.c (contained_in): Add 'const' to arguments.
7787 (block_function): Ditto.
7788 * block.h: Update declarations for block_function and
7789 contained_in.
7790
cdef89d0
DC
77912003-06-02 David Carlton <carlton@math.stanford.edu>
7792
7793 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7794 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7795 * p-valprint.c (pascal_val_print): Ditto.
7796 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7797
72667056
RH
77982003-06-02 Richard Henderson <rth@redhat.com>
7799
98a8e1e5
RH
7800 * alpha-tdep.c (alpha_push_dummy_call): Use
7801 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7802
8ffd9b1b 7803 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7804 sign-extension of 32-bit values.
7805 (alpha_store_return_value): Similarly.
0ede8eca 7806
98a8e1e5
RH
7807 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7808 (alpha_extract_return_value): Likewise.
7809 (alpha_store_return_value): Likewise.
7b5e1cb3 7810
98a8e1e5
RH
7811 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7812 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7813
98a8e1e5
RH
7814 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7815 (alpha_extract_struct_value_address): Likewise.
7816 (alpha_store_return_value): Likewise.
7817 (alpha_store_struct_return): Remove.
7818 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7819
98a8e1e5
RH
7820 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7821 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7822 macros where appropriate.
7823 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7824 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7825
98a8e1e5
RH
7826 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7827 for SP, GP; void_func_ptr for PC; non-language-specific types
7828 for all others.
7829 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7830
6dd77b81
RH
78312003-06-02 Richard Henderson <rth@redhat.com>
7832
7833 * top.h (lim_at_start): Declare.
7834 * main.c (captured_main): Set it.
7835 * top.c (lim_at_start): Define.
7836 (command_loop): Use it instead of &environ.
7837 * event-top.c (command_handler): Likewise.
7838
f4dbdb54
JT
78392003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7840
7841 * mipsnbsd-tdep.c: Update copyright years.
7842 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7843
8f285956
RH
78442003-06-01 Richard Henderson <rth@redhat.com>
7845
98a8e1e5
RH
7846 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7847 (alpha-linux-tdep.o): Update dependencies.
7848 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7849 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7850
615967cb
RH
78512003-06-01 Richard Henderson <rth@redhat.com>
7852
98a8e1e5
RH
7853 * alpha-tdep.c (alpha_register_reggroup_p): New.
7854 (alpha_gdbarch_init): Register it.
615967cb 7855
b59661bd
AC
78562003-06-02 Andrew Cagney <cagney@redhat.com>
7857
7858 * dwarfread.c: Eliminate "register"
7859 (decode_die_type): Eliminate assignment within "if".
7860 (struct_type, decode_array_element_type): Ditto.
7861 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7862 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7863 (decode_modified_type, completedieinfo): Ditto.
7864 * block.c: Eliminate "register".
7865 (blockvector_for_pc_sect): Eliminate assignment within "if".
7866 * cp-support.h (struct symbol): Opaque declaration.
7867 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7868
5ef165c2
RH
78692003-06-01 Richard Henderson <rth@redhat.com>
7870
98a8e1e5
RH
7871 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7872 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7873
143985b7
AF
78742003-06-01 Adam Fedor <fedor@gnu.org>
7875
7876 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7877 * gdbarch.[ch]: Regenerate.
7878 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7879 (hppa_gdbarch_init): Set it in the gdbarch vector.
7880 * i386-tdep.c (i386_fetch_pointer_argument): New
7881 (i386_gdbarch_init): Set it into gdbarch.
7882 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7883 (rs6000_gdbarch_init): Set it in gdbarch.
7884 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7885 (sparc_gdbarch_init): Set it in gdbarch.
7886
ae0167b9
AC
78872003-06-01 Andrew Cagney <cagney@redhat.com>
7888
7c0b4a20
AC
7889 * defs.h (extract_address): Delete declaration.
7890 * findvar.c (extract_address): Delete function.
7891 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7892 extract_address with the inline equivalent,
7893 extract_unsigned_integer.
7894 (xstormy16_extract_struct_value_address): Ditto.
7895 (xstormy16_pointer_to_address): Ditto.
7896 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7897 * v850-tdep.c (v850_push_arguments): Ditto.
7898 (v850_extract_return_value): Ditto.
7899 (v850_extract_struct_value_address): Ditto.
7900 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7901 (sparcnbsd_get_longjmp_target_64): Ditto.
7902 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7903 (get_longjmp_target): Ditto.
7904 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7905 (sh64_extract_struct_value_address): Ditto.
7906 (sh_push_arguments): Ditto.
7907 (sh64_push_arguments): Ditto.
7908 * remote-vxsparc.c (vx_read_register): Ditto.
7909 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7910 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7911 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7912 * mipsv4-nat.c (get_longjmp_target): Ditto.
7913 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7914 * mips-nat.c (get_longjmp_target): Ditto.
7915 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7916 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7917 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7918 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7919 * irix5-nat.c (get_longjmp_target): Ditto.
7920 * irix4-nat.c (get_longjmp_target): Ditto.
7921 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7922 (ia64_push_arguments): Ditto.
7923 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7924 * h8300-tdep.c (h8300_push_arguments): Ditto.
7925 (h8300_store_return_value): Ditto.
7926 (h8300_extract_struct_value_address): Ditto.
7927 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7928 (frv_push_arguments): Ditto.
7929 * avr-tdep.c (avr_pointer_to_address): Ditto.
7930 (avr_push_arguments): Ditto.
7931 * arm-tdep.c (arm_push_dummy_call): Ditto.
7932 (arm_get_longjmp_target): Ditto.
7933 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7934 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7935 (alpha_get_longjmp_target): Ditto.
7936
ae0167b9
AC
7937 * solib-irix.c (extract_mips_address): Inline extract_address,
7938 replacing it with extract_signed_integer.
7939 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7940 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7941 (first_link_map_member, open_symbol_file_object): Ditto.
7942 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7943 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7944 (LM_NEXT, LM_NAME): Ditto.
7945
44d88583
RH
79462003-06-01 Richard Henderson <rth@redhat.com>
7947
98a8e1e5
RH
7948 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7949 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7950 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7951 (alpha_cannot_store_register): Likewise.
7952 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7953 * alpha-nat.c (supply_gregset): Likewise.
7954 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7955
310e9b6a
AC
79562003-06-01 Andrew Cagney <cagney@redhat.com>
7957
7958 * infcall.c (call_function_by_hand): Update comment on
7959 DEPRECATED_DUMMY_WRITE_SP.
7960
7961 * mips-tdep.c (mips_gdbarch_init): Do not set
7962 deprecated_dummy_write_sp.
7963 (mips_eabi_push_dummy_call): Set the SP register.
7964 (mips_o64_push_dummy_call): Set the SP register.
7965 (mips_o32_push_dummy_call): Set the SP register.
7966 (mips_n32n64_push_dummy_call): Set the SP register.
7967
5ab84872
RH
79682003-06-01 Richard Henderson <rth@redhat.com>
7969
98a8e1e5
RH
7970 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7971 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7972 (supply_gregset): Likewise.
7973 * alpha-tdep.c (alpha_store_return_value): Likewise.
7974 (alpha_get_longjmp_target): Likewise.
7975 (alpha_register_name): Constify array.
7976 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7977 deprecated_register_size, deprecated_register_bytes,
7978 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7979 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7980 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7981
09cc52fd
RH
79822003-06-01 Richard Henderson <rth@redhat.com>
7983
7984 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7985 from arg_reg_buffer to regcache to avoid double conversion.
7986
c7f16359
MK
79872003-06-01 Mark Kettenis <kettenis@gnu.org>
7988
7989 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7990 SP_REGNUM.
7991 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7992 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7993
7131cb6e
RH
79942003-06-01 Richard Henderson <rth@redhat.com>
7995
98a8e1e5
RH
7996 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7997 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7998
f3e0f90b
RH
79992003-06-01 Richard Henderson <rth@redhat.com>
8000
98a8e1e5
RH
8001 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
8002 not overlapping PC_REGNUM.
f3e0f90b 8003
c88e30c0
RH
80042003-06-01 Richard Henderson <rth@redhat.com>
8005
98a8e1e5
RH
8006 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
8007 alpha_push_arguments. Don't dump argument register data to
8008 the target stack. Fix float and 128-bit long double semantics.
8009 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
8010 (alpha_fix_call_dummy): Remove.
8011 (alpha_call_dummy_words): Remove.
8012 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 8013
f1a559ae
RH
80142003-06-01 Richard Henderson <rth@redhat.com>
8015
8016 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
8017
5e045346
AC
80182003-06-01 Andrew Cagney <cagney@redhat.com>
8019
95404a3e
AC
8020 * mips-tdep.c (is_mips16_addr): New function.
8021 (make_mips16_addr, unmake_mips16_addr): New functions.
8022 (pc_is_mips16, mips_fetch_instruction): Use.
8023 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
8024 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
8025 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
8026 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
8027 TARGET_MIPS.
8028 * config/mips/tm-mips.h: Update copyright.
8029 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8030 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8031 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8032 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8033 (TM_PRINT_INSN_MACH): Delete.
8034 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8035
5e045346
AC
8036 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8037 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8038 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8039 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8040 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8041 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8042 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8043 mips*-*-riscos* and mips*-*-sysv* onto mips.
8044 * config/mips/mips64.mt: New file.
8045 * config/mips/mips.mt: New file.
8046 * config/mips/littlemips.mt: Delete file.
8047 * config/mips/decstation.mt: Delete file.
8048 * config/mips/vr4300el.mt: Delete file.
8049 * config/mips/vr5000el.mt: Delete file.
8050 * config/mips/vr5000.mt: Delete file.
8051 * config/mips/vr4100.mt: Delete file.
8052 * config/mips/vr4xxxel.mt: Delete file.
8053 * config/mips/vr4300.mt: Delete file.
8054 * config/mips/vr4xxx.mt: Delete file.
8055 * config/mips/bigmips.mt: Delete file.
8056 * config/mips/bigmips64.mt: Delete file.
8057 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8058 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8059 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8060 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8061 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8062 "tm-bigmips.h".
8063 * config/mips/tm-irix3.h: Ditto.
8064 * config/mips/tm-mipsv4.h: Ditto.
8065 * config/mips/tm-embed.h: Ditto.
8066 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8067 "tm-bigmips64.h".
8068 * config/mips/tm-vr5000el.h: Delete file.
8069 * config/mips/tm-tx39l.h: Delete file.
8070 * config/mips/tm-vr4300el.h: Delete file.
8071 * config/mips/tm-vr4xxxel.h: Delete file.
8072 * config/mips/tm-vr4300.h: Delete file.
8073 * config/mips/tm-vr4100.h: Delete file.
8074 * config/mips/tm-vr4xxx.h: Delete file.
8075 * config/mips/tm-vr5000.h: Delete file.
8076 * config/mips/tm-embedl64.h: Delete file.
8077 * config/mips/tm-embedl.h: Delete file.
8078 * config/mips/tm-embed64.h: Delete file.
8079 * config/mips/tm-bigmips64.h: Delete file.
8080 * config/mips/tm-bigmips.h: Delete file.
8081
2473a4a9
MK
80822003-06-01 Mark Kettenis <kettenis@gnu.org>
8083
97a5b208
MK
8084 Fix gdb/1216.
8085 * shnbsd-nat.c: Include "sh-tdep.h".
8086
2473a4a9
MK
8087 From Richard Henderson <rth@redhat.com>:
8088 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8089
e0f7ec59
AC
80902003-05-31 Andrew Cagney <cagney@redhat.com>
8091
8092 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8093 forward declaration.
8094 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8095 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8096 (mips_find_saved_regs): Use set_reg_offset.
8097 (mips_frame_init_saved_regs): Delete function.
8098 (mips_pop_frame): Call mips_find_saved_regs instead of
8099 DEPRECATED_FRAME_INIT_SAVED_REGS.
8100
68dcc709
AC
81012003-05-31 Andrew Cagney <cagney@redhat.com>
8102
8103 * mips-tdep.c (mips_gdbarch_init): Do not set
8104 deprecated_max_register_raw_size, register_virtual_size, and
8105 deprecated_max_register_virtual_size.
8106
cfc14b3a
MK
81072003-05-31 Mark Kettenis <kettenis@gnu.org>
8108
6405b0a6
MK
8109 * i386-tdep.c: Include "dwarf2-frame.h".
8110 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8111 * Makefile.in (i386-tdep.o): Update dependencies.
8112
cfc14b3a
MK
8113 * dwarf2-frame.c, dwarf2-frame.h: New files.
8114 * Makefile.in (SFILES): Add dwarf2-frame.c.
8115 (dwarf2_frame_h): Define.
8116 (COMMON_OBS): Add dwarf2-frame.o.
8117 (dwarf2-frame.o): Add dependencies.
8118
6a2751d2
AJ
81192003-05-31 Andreas Jaeger <aj@suse.de>
8120
8121 * x86-64-linux-nat.c: Fix comment.
8122
1c3545ae
MK
81232003-05-31 Mark Kettenis <kettenis@gnu.org>
8124
10f93086
MK
8125 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8126 function signature.
8127
1c3545ae
MK
8128 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8129 have a sigcontext_addr handler.
8130 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8131 sigcontext_addr handler.
8132
e11c53d2
AC
81332003-05-31 Andrew Cagney <cagney@redhat.com>
8134
8135 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8136 (print_fp_register_row): Replace do_fp_register_row.
8137 (mips_print_fp_register): Add "file" and "frame" parameters.
8138 (mips_print_register): Add "file" and "frame" parameters.
8139 (mips_print_registers_info): Replace mips_do_registers_info.
8140 (mips_gdbarch_init): Set print_registers_info instead of
8141 deprecated_do_registers_info.
8142 (mips_read_fp_register_single): Add "frame" parameter.
8143 (mips_read_fp_register_double): Add "frame" parameter.
8144
a3386186
MK
81452003-05-31 Mark Kettenis <kettenis@gnu.org>
8146
70913449
MK
8147 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8148 Fixes a bug where GDB would print the wrong register names for
8149 targets without SSE.
8150
2b5e0749
MK
8151 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8152 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8153 registers.
8154
8155 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8156 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8157 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8158 TDEP->sc_sp_offset.
8159
a3386186
MK
8160 From Michal Ludvig <mludvig@suse.cz>:
8161 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8162 and `sc_num_regs'.
8163 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8164 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8165 I386_ST0_REGNUM): Move here from...
8166 * i386-tdep.c: ... here.
8167 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8168 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8169 registers if possible.
8170 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8171 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8172 Remove variables.
8173 (i386bsd_sc_reg_offset): New variable.
8174 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8175 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8176 TDEP->sc_sp_offset.
8177 (i386fbsd_sc_reg_offset): New variable.
8178 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8179 TDEP->sc_num_regs.
8180 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8181 variables.
8182 (i386fbsd4_sc_reg_offset): New variable.
8183 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8184 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8185 TDEP->sc_sp_offset.
8186 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8187 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8188 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8189 Remove variables.
8190 (i386nbsd_sc_reg_offset): New variable.
8191 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8192 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8193 TDEP->sc_sp_offset.
8194 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8195 Remove variables.
8196 (i386obsd_sc_reg_offset): New variable.
8197 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8198 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8199 TDEP->sc_sp_offset.
8200 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8201 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8202 for frame pointer offset in `struct sigcontext'.
8203
25ab4790
AC
82042003-05-31 Andrew Cagney <cagney@redhat.com>
8205
8206 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8207 architecture methods call_dummy_words, sizeof_call_dummy_words,
8208 push_return_address, store_struct_return, and fix_call_dummy. Set
8209 push_dummy_call instead of deprecated_push_arguments.
8210 (mips_store_struct_return): Delete function.
8211 (mips_fix_call_dummy): Delete function.
8212 (mips_push_return_address): Delete function.
8213 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8214 RA_REGNUM and T9_REGNUM.
8215 (mips_n32n64_push_dummy_call): Ditto for
8216 mips_n32n64_push_arguments.
8217 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8218 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8219
6a65450a
AC
82202003-05-31 Andrew Cagney <cagney@redhat.com>
8221
8222 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8223 "dummy_addr" to "bp_addr".
8224 * infcall.c (call_function_by_hand): Pass "funaddr" to
8225 gdbarch_push_dummy_call.
8226 * gdbarch.h, gdbarch.c: Re-generate.
8227 * i386-tdep.c (i386_push_dummy_call): Update.
8228 * arm-tdep.c (arm_push_dummy_call): Update.
8229 * d10v-tdep.c (d10v_push_dummy_call): Update.
8230
c4f35dd8
MK
82312003-05-31 Mark Kettenis <kettenis@gnu.org>
8232
8233 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8234 variable declarations.
8235 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8236 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8237 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8238 x86_64_init_frame_pc, x86_64_init_frame_pc,
8239 x86_64_function_has_prologue): Remove prototypes.
8240 (X86_64_NUM_GREGS): New define.
8241 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8242 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8243 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8244 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8245 XMM1_REGNUM): Remove defines.
8246 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8247 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8248 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8249 X86_64_XMM1_REGNUM): New defines.
8250 (struct x86_64_register_info): Renamed from `struct
8251 register_info'. Remove `size' member.
8252 (x86_64_register_info_table): Remove variable.
8253 (x86_64_register_info): New variable.
8254 (X86_64_NUM_REGS): New define.
8255 (X86_64_NUM_GREGS): Remove define.
8256 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8257 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8258 Remove variables.
8259 (x86_54_dwarf2_reg_to_regnum): Remove function.
8260 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8261 (x86_64_dwarf_reg_to_regnum): New function.
8262 (x86_64_register_name): Rewrite.
8263 (x86_64_register_raw_size): Remove function.
8264 (x86_64_register_byte_table): Remove variable.
8265 (x86_64_register_byte): Remove function.
8266 (x86_64_register_virtual_type): Remove function.
8267 (x86_64_register_type): New function.
8268 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8269 x86_64_register_convert_to_raw): Remove functions.
8270 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8271 (x86_64_use_struct_convention): Make static. Adjust for renamed
8272 defines.
8273 (x86_64_frame_init_saved_regs): Remove function.
8274 (x86_64_push_arguments): Make static. Change to accept a regcache
8275 as argument.
8276 (x86_64_store_return_value, x86_64_extract_return_value): Make
8277 static. Rewrite based on i386 counterparts.
8278 (x86_64_push_dummy_call): New function.
8279 (X86_64_NUM_SAVED_REGS): New define.
8280 (x86_64_register_number): Remove function.
8281 (x86_64_store_struct_return): Remove function.
8282 (x86_64_frameless_function_invocation,
8283 x86_64_function_has_prologue): Remove functions.
8284 (PROLOG_BUFSIZE): Remove define.
8285 (struct x86_64_frame_cache): New structure.
8286 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8287 x86_64_frame_cache, x86_64_frame_this_id,
8288 x86_64_frame_prev_register, x86_64_frame_p,
8289 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8290 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8291 functions.
8292 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8293 variables.
8294 (x86_64_skip_prologue): Rewrite in terms of
8295 x86_64_analyze_prologue.
8296 (x86_64_frame_base_address): New function.
8297 (x86_64_frame_base): New variable.
8298 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8299 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8300 set deprecated_fp_regnum, deprecated_register_size,
8301 deprecated_register_bytes, register_raw_size, register_byte,
8302 register_virtual_type, register_convertiable,
8303 register_convert_to_virtual, convert_to_raw,
8304 deprecated_get_saved_register, deprecated_target_read_fp,
8305 deprecated_push_arguments, deprecated_push_return_address,
8306 deprecated_pop_frame, deprecated_store_struct_return,
8307 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8308 frameless_function_invocation, deprecated_frame_saved_pc,
8309 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8310 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8311 deprecated_init_frame_pc and virtual_frame_pointer. Call
8312 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8313 and x86_64_frame_p. Call frame_base_set_default to register
8314 x86_64_frame_base.
8315 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8316 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8317 (_initialize_x86_64_tdep): Remove function.
8318 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8319 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8320 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8321 define.
8322 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8323 (x86_64_linux_sigcontext_addr): Rewrite.
8324 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8325 x86_64_linux_frame_saved_pc): Remove functions.
8326 (x86_64_linux_pc_in_sigtramp): Renamed from
8327 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8328 trampoline.
8329 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8330 Remove_functions.
8331 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8332 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8333 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8334 (x86_64_regmap): Rename to regmap.
8335 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8336 x86_64_num_gregs.
8337 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8338 x86_64_regmap.
8339 (x86_64_fxsave_offset): Remove function.
8340 (supply_fpregset): Simply call x86_64_supply_fxsave.
8341 (fill_fpregset): Simply call x86_64_fill_fxsave.
8342 (fetch_inferior_registers, store_inferior_registers): Avoid
8343 asignment in if-statement.
8344 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8345 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8346 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8347 (fetch_core_registers): Remove function.
8348 (linux_elf_core_fns): Remove.
8349 (offsetoff): Don't define.
8350 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8351 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8352 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8353 add core-regset.o.
8354 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8355 protection against multiple includes instead of NM_X86_64_h. Add
8356 various comments. Include "config/nm-linux.h". Don't include
8357 <signal.h>.
8358 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8359 GET_THREAD_SIGNALS): Remove defines.
8360 (x86_64_register_u_addr, kernel_u_size,
8361 lin_thread_get_thread_signals): Remove prototypes.
8362 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8363 [HAVE_LINK_H]: Don't include "solib.h".
8364 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8365 * config/i386/tm-x86-64linux.h: Fix comments.
8366 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8367 x86-64-tdep.o): Update dependencies.
8368
c25083af
AC
83692003-05-30 Andrew Cagney <cagney@redhat.com>
8370
c8f55a7b
AC
8371 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8372 Change parameter type to a "struct regcache *".
8373
c25083af
AC
8374 * gdbarch.sh: Regardless of the multi-arch level, always define
8375 the macro when not already defined.
8376 * gdbarch.h, gdbarch.c: Re-generate.
8377
fbe586ae
RH
83782003-05-30 Richard Henderson <rth@redhat.com>
8379
8380 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8381 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8382 (alpha_mdebug_frame_this_id): Likewise.
8383 (alpha_mdebug_frame_prev_register): Likewise.
8384 (alpha_mdebug_frame_base_address): Likewise.
8385 (alpha_mdebug_frame_locals_address): Likewise.
8386 (alpha_mdebug_frame_args_address): Likewise.
8387 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8388 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8389 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8390 loop increment.
8391 (alpha_heuristic_frame_this_id): Make static.
8392 (alpha_heuristic_frame_prev_register): Likewise.
8393 (alpha_heuristic_frame_base_address): Likewise.
8394 * alpha-tdep.h: Update.
8395
acd5c798
MK
83962003-05-30 Mark Kettenis <kettenis@gnu.org>
8397
8398 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8399 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8400 defenitions.
8401 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8402 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8403 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8404 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8405 I386_ST0_REGNUM): New defines.
8406 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8407 codestream_get): Remove define.
8408 (codestream_next_addr, condestream_addr, condestream_buf,
8409 codestream_off, codestream_cnt): Remove variables.
8410 (codestream_fill, codestream_seek, codestream_read): Remove
8411 functions.
8412 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8413 functionality.
8414 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8415 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8416 i386_frame_saved_pc, i386_saved_pc_after_call,
8417 i386_frame_num_args, i386_frame_init_saved_regs,
8418 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8419 i386_push_arguments): Remove functions.
8420 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8421 functionality. Use i386_analyze_prologue instead of
8422 i386_get_frame_setup.
8423 (I386_NUM_SAVED_REGS): New define.
8424 (struct i386_frame_cache): New structure.
8425 (i386_alloc_frame_cache, i386_analyze_struct_return,
8426 i386_skip_probe, i386_analyze_frame_setup,
8427 i386_analyze_register_saves, i386_analyze_prologue,
8428 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8429 i386_frame_prev_register, i386_sigtramp_frame_cache,
8430 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8431 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8432 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8433 New functions.
8434 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8435 New variables.
8436 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8437 I386_EAX_REGNUM and I386_EDX_REGNUM.
8438 (i386_extract_return_value, i386_store_return_value): Use
8439 I386_ST0_REGNUM where appropriate.
8440 (i386_extract_struct_value_address): Rewrite to use extract_address.
8441 (i386_svr4_pc_in_sigtramp): Add comment.
8442 (i386_svr4_sigcontext_addr): Rewrite.
8443 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8444 TDEP->sc_sp_offset.
8445 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8446 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8447 of new defines. Set push_dummy_call, don't set
8448 deprecated_push_arguments, deprecated_push_return_address,
8449 deprecated_pop_frame. Don't set parm_boundary. Don't set
8450 deprecated_frame_chain, deprecated_frame_saved_pc,
8451 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8452 save_dummy_frame_tos, unwind_pc. Call
8453 frame_unwind_append_predicate and frame_base_set_default. Don't
8454 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8455 Don't set frameless_function_invocation. Don't set
8456 deprecated_register_bytes, deprecated_register_size,
8457 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8458 * i386-linux-tdep.c: Fix formatting in some comments.
8459 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8460 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8461 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8462 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8463 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8464 redundant parentheses.
8465 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8466 (i386_linux_sigcontext_addr): Use it. Rewrite.
8467 (find_minsym_and_objfile): Change name of second argument.
8468 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8469 changed. Use frame_pc_unwind instead of
8470 DEPRECATED_SAVED_PC_AFTER_CALL.
8471 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8472 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8473 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8474 unwinder.
8475 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8476 "dummy-frame.h".
8477 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8478 (_initialize_i386_cygwin_tdep): New prototype.
8479 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8480 deprecated_frame_chain_valid.
8481 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8482 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8483 Rely on the SVR4 defaults.
8484 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8485 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8486
c89b70f1
AC
84872003-05-30 Andrew Cagney <cagney@redhat.com>
8488
8489 * infcall.c (call_function_by_hand): Always call
8490 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8491
85b32d22
RH
84922003-05-30 Richard Henderson <rth@redhat.com>
8493
c89b70f1
AC
8494 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8495 increment.
85b32d22 8496
bfe51b1e
JB
84972003-05-29 Jim Blandy <jimb@redhat.com>
8498
8499 Use gdbarch methods for solib stuff on PowerPC Linux.
8500 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8501 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8502 show through.
8503 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8504 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8505 giving the same effect as the #definitions above.
8506
1abf022c
AF
85072003-05-29 Adam Fedor <fedor@gnu.org>
8508
8509 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8510 (find_implementation_from_class): Replace it with the standard
8511 case i.e. do nothing.
8512
d2427a71
RH
85132003-05-29 Richard Henderson <rth@redhat.com>
8514
8515 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8516 (alpha_linux_sigtramp_offset): Use it. Make static.
8517 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8518 update for new frame model.
8519 * alpha-mdebug-tdep.c: New file.
8520 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8521 (alpha_osf1_init_abi): Install it.
8522 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8523 (linked_proc_desc_table): Remove.
8524 (alpha_frame_past_sigtramp_frame): Remove.
8525 (alpha_dynamic_sigtramp_offset): Remove.
8526 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8527 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8528 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8529 (push_sigtramp_desc): Remove.
8530 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8531 (alpha_cannot_store_register): Likewise.
8532 (alpha_sigcontext_addr): Remove.
8533 (alpha_find_saved_regs): Remove.
8534 (alpha_frame_init_saved_regs): Remove.
8535 (alpha_init_frame_pc_first): Remove.
8536 (read_next_frame_reg): Remove.
8537 (alpha_frame_saved_pc): Remove.
8538 (alpha_saved_pc_after_call): Remove.
8539 (temp_proc_desc, temp_saved_regs): Remove.
8540 (alpha_about_to_return): Remove.
8541 (cached_proc_desc): Remove.
8542 (alpha_frame_chain): Remove.
8543 (alpha_print_extra_frame_info): Remove.
8544 (alpha_init_extra_frame_info): Remove.
8545 (alpha_frame_locals_address): Remove.
8546 (alpha_frame_args_address): Remove.
8547 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8548 (alpha_push_dummy_frame): Remove.
8549 (alpha_pop_frame): Remove.
8550 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8551 (alpha_read_insn): New.
8552 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8553 for different insn encodings.
8554 (alpha_in_lenient_prologue): Remove.
8555 (struct alpha_sigtramp_unwind_cache): New.
8556 (alpha_sigtramp_frame_unwind_cache): New.
8557 (alpha_sigtramp_register_address): New.
8558 (alpha_sigtramp_frame_this_id): New.
8559 (alpha_sigtramp_frame_prev_register): New.
8560 (alpha_sigtramp_frame_unwind): New.
8561 (alpha_sigtramp_frame_p): New.
8562 (struct alpha_heuristic_unwind_cache): New.
8563 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8564 don't count nop insns that occur between functions.
8565 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8566 heuristic_proc_desc, but without the mdebug wrapping.
8567 (alpha_heuristic_frame_this_id): New.
8568 (alpha_heuristic_frame_prev_register): New.
8569 (alpha_heuristic_frame_unwind): New.
8570 (alpha_heuristic_frame_p): New.
8571 (alpha_heuristic_frame_base_address): New.
8572 (alpha_heuristic_frame_base): New.
8573 (alpha_unwind_dummy_id): New.
8574 (alpha_unwind_pc): New.
8575 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8576 frame related deprecated initializations; install replacements.
8577 (alpha_dump_tdep): Remove.
8578 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8579 (alpha_read_insn, alpha_after_prologue,
8580 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8581 alpha_heuristic_frame_prev_register,
8582 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8583 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8584 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8585 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8586
93ec1121
AC
85872003-05-29 Andrew Cagney <cagney@redhat.com>
8588
8589 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8590 dependant on the availability of ASSERT_FUNCTION.
8591 (ASSERT_FUNCTION): Do not define when there is no function name.
8592
98f08d3d
KB
85932003-05-29 Kevin Buettner <kevinb@redhat.com>
8594
8595 From Jimi X <jimix@watson.ibm.com>:
8596 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8597
0897f59b
JB
85982003-05-28 Jim Blandy <jimb@redhat.com>
8599
8600 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8601 argument to ptrace to int; the system headers should give it the
8602 right type, and pointers don't fit in ints on powerpc64-*-*.
8603
14898363
L
86042003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8605
8606 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8607 DW_TAG_catch_block.
8608
a7a48797
EZ
86092003-05-26 Elena Zannoni <ezannoni@redhat.com>
8610
8611 * stabsread.c (dbx_lookup_type): Make static.
8612 (read_type): Ditto.
8613 (add_undefined_type): Ditto.
8614 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8615 not export.
8616
f5479e9c
EZ
86172003-05-26 Elena Zannoni <ezannoni@redhat.com>
8618
8619 * hpread.c (hpread_has_name): Make static.
8620 (hpread_psymtab_to_symtab): Ditto.
8621 (file_exists): Ditto.
8622 (hpread_call_pxdb): Ditto.
8623 (hpread_pxdb_needed): Ditto.
8624 (hpread_quick_traverse): Ditto.
8625 (hpread_get_header): Ditto.
8626 (hpread_get_lntt): Ditto.
8627 (hpread_get_slt): Ditto.
8628 (class_of): Ditto.
8629
eb2e12d7
AS
86302003-05-25 Andreas Schwab <schwab@suse.de>
8631
78bf922a
AS
8632 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8633 stack_align and deprecated_extra_stack_alignment_needed.
8634 (m68k_stack_align): Delete.
8635
eb2e12d7
AS
8636 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8637 (m68k_register_virtual_size): Likewise.
8638 (altos_skip_prologue): Remove obsolete function.
8639 (isi_frame_num_args): Likewise.
8640 (news_frame_num_args): Likewise.
8641 (m68k_fix_call_dummy): Make static.
8642 (m68k_push_dummy_frame): Likewise.
8643 (m68k_pop_frame): Likewise.
8644 (m68k_skip_prologue): Likewise.
8645 (m68k_frame_init_saved_regs): Likewise.
8646 (m68k_saved_pc_after_call): Likewise.
8647 (m68k_get_longjmp_target): Make multi-arch.
8648 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8649 structure. Register m68k_get_longjmp_target if enabled.
8650 * m68k-tdep.h (struct gdbarch_tdep): Define.
8651 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8652
8653 * Makefile.in (config.status): Also depend on configure.tgt
8654 and configure.host.
8655 (m68klinux-tdep.o): Update dependencies.
8656 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8657 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8658 (M68K_LINUX_JB_PC): Define.
8659 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8660 and take additional parameter.
8661 (m68k_linux_sigtramp_saved_pc): Update.
8662 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8663 m68k_linux_pc_in_sigtramp, in_plt_section,
8664 find_solib_trampoline_target.
8665 * config/m68k/tm-linux.h: Don't include any tm headers.
8666 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8667 (JB_ELEMENT_SIZE): Likewise.
8668 (JB_PC): Likewise.
8669 (GET_LONGJMP_TARGET): Likewise.
8670 (IN_SIGTRAMP): Likewise.
8671 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8672
eb2c22dc
MK
86732003-05-25 Mark Kettenis <kettenis@gnu.org>
8674
8675 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8676 (sparc32_push_arguments): Re-implement by calling
8677 sparc32_do_push_arguments.
8678
44b7b84e
MK
86792003-05-25 Mark Kettenis <kettenis@gnu.org>
8680
8681 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8682 SPARC_O1_REGNUM): New defines.
8683 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8684 (sparc32_store_return_value): New function.
8685 (sparc_extract_struct_value_address): Rewrite to operate on a
8686 regcache.
8687 (sparc_gdbarch_init): Don't set
8688 deprecated_extract_struct_value_address. Set
8689 extract_struct_value_address instead. Don't set
8690 deprecated_extract_return_value and deprecated_store_return_value
8691 for 32-bit targets. Set extract_return_value and
8692 store_return_value instead.
8693 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8694 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8695 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8696 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8697 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8698 (sparc_store_return_value): Remove prototype.
8699 (sparc32_store_return_value): New prototype.
8700 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8701 Adjust prototypes.
8702
f6ad61e3
MK
87032003-05-24 Mark Kettenis <kettenis@gnu.org>
8704
8705 * sparcnbsd-tdep.c: Include "gdb_string.h".
8706
b276f1bb
AC
87072003-05-23 Andrew Cagney <cagney@redhat.com>
8708
8709 * p-valprint.c (pascal_val_print): Replace extract_address with
8710 the inline equivalent extract_unsigned_integer.
8711 * jv-valprint.c (java_value_print): Ditto.
8712 * ada-valprint.c (ada_val_print_1): Ditto.
8713 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8714
e76c5fcc
TR
87152003-05-23 Theodore A. Roth <troth@openavr.org>
8716
8717 * blockframe.c (frameless_look_for_prologue): Remove unused
8718 after_prologue variable.
8719
2cdd89cb
MK
87202003-05-23 Mark Kettenis <kettenis@gnu.org>
8721
8722 * blockframe.c (get_pc_function_start): Rewrite to avoid
8723 asignments in if-statements.
8724
182d43bc
EZ
87252003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8726
8727 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8728 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8729 files, don't relocate absolute symbols (and do use mst_abs).
8730
e8f3fcdd
AC
87312003-05-23 Andrew Cagney <cagney@redhat.com>
8732
8733 * objc-lang.c: Include "gdb_assert.h".
8734 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8735 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8736 (gdb_check, gdb_check_fatal): Delete functions.
8737 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8738 gdb_assert.
8739 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8740 * Makefile.in (objc-lang.o): Update dependencies.
8741
3c23e6fb
ILT
87422003-05-22 Ian Lance Taylor <ian@airs.com>
8743
8744 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8745 with fprintf_filtered, not fprintf_unfiltered.
8746
af1342ab
AC
87472003-05-22 Andrew Cagney <cagney@redhat.com>
8748
8749 * stack.c (frame_info): Inline extract_address, replacing it with
8750 extract_unsigned_integer.
8751 * findvar.c (unsigned_pointer_to_address): Ditto.
8752 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8753 * dwarf2expr.c (dwarf2_read_address): Ditto.
8754 * frame.c (frame_pc_unwind): Update comment.
8755 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8756
47e242ec
JJ
87572003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8758
8759 * infptrace.c (detach): Call print_sys_errmsg rather than
8760 perror_with_name to issue warning message when errno is non-zero
8761 after calling ptrace detach.
8762
e2ac8128
JB
87632003-05-21 J. Brobecker <brobecker@gnat.com>
8764
8765 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8766 macro definitions from here...
8767 * hppa-tdep.c: ...to there.
8768
92b3541e
KB
87692003-05-20 Kevin Buettner <kevinb@redhat.com>
8770
8771 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8772 register_ptrace_addr(). Fix all callers.
8773
55809acb
AS
87742003-05-21 Andreas Schwab <schwab@suse.de>
8775
8776 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8777 dependencies.
8778 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8779 end.
8780 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8781 (_initialize_m68k_linux_tdep): New function.
8782 (m68k_linux_frame_saved_pc): Make static.
8783 (m68k_linux_extract_return_value): Likewise.
8784 (m68k_linux_store_return_value): Likewise.
8785 (m68k_linux_extract_struct_value_address): Likewise.
8786 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8787 Remove.
8788 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8789 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8790 (DEPRECATED_FRAME_SAVED_PC): Remove.
8791
0fbc10f7
KW
87922003-05-20 Kris Warkentin <kewarken@qnx.com>
8793
8794 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8795 regset numbering rather than our own.
8796
58da2eb2
DC
87972003-05-19 David Carlton <carlton@bactrian.org>
8798
8799 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8800
1fcb5155
DC
88012003-05-19 David Carlton <carlton@bactrian.org>
8802
8803 Partial fix for PR c++/827.
8804 * cp-support.h: Include symtab.h.
8805 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8806 * cp-namespace.c: Update contributors.
8807 (cp_lookup_symbol_nonlocal): New.
8808 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8809 (lookup_symbol_file): Ditto.
8810 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8811 * block.h: Declare block_scope, block_using, block_global_block.
8812 * block.c (block_scope): New.
8813 (block_using, block_global_block): Ditto.
8814 * Makefile.in (cp_support_h): Depend on symtab_h.
8815 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8816
5f9a71c3
DC
88172003-05-19 David Carlton <carlton@bactrian.org>
8818
8819 * language.h (struct language_defn): Add 'la_value_of_this'
8820 and 'la_lookup_symbol_nonlocal' members.
8821 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8822 lookup_symbol_static, lookup_symbol_global,
8823 lookup_symbol_aux_block.
8824 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8825 if we should search fields of this and how to do static/global
8826 lookup.
8827 (lookup_symbol_aux_block): Make extern.
8828 (basic_lookup_symbol_nonlocal): New.
8829 (lookup_symbol_static, lookup_symbol_global): Ditto.
8830 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8831 'la_lookup_symbol_nonlocal' members.
8832 * c-lang.c (c_language_defn, cplus_language_defn)
8833 (asm_language_defn, minimal_language_defn): Ditto.
8834 * jv-lang.c (java_language_defn): Ditto.
8835 * language.c (unknown_language_defn, auto_language_defn)
8836 (local_language_defn): Ditto.
8837 * m2-lang.c (m2_language_defn): Ditto.
8838 * objc-lang.c (objc_language_defn): Ditto.
8839 * scm-lang.c (scm_language_defn): Ditto.
8840 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8841 * p-lang.c (pascal_language_defn): Ditto for both.
8842 * Makefile.in (f-lang.o): Depend on value_h.
8843 (p-lang.o): Ditto.
8844
89a9d1b1
DC
88452003-05-19 David Carlton <carlton@bactrian.org>
8846
8847 * block.h: Declare block_static_block.
8848 * block.c (block_static_block): New.
8849 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8850 lookup_symbol_aux_local, calling block_static_block instead.
8851 (lookup_symbol_aux_local): Delete 'static_block' argument.
8852
eed3f8ab
DC
88532003-05-19 David Carlton <carlton@bactrian.org>
8854
8855 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8856
a09d8bda
ML
88572003-05-19 Michal Ludvig <mludvig@suse.cz>
8858
8859 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8860 register numbers mapping.
8861
69636828
AF
88622003-05-18 Adam Fedor <fedor@gnu.org>
8863
8864 * symtab.c (completion_list_objc_symbol): New function.
8865 (make_symbol_completion_list): Use it to add ObjC symbols
8866 when looking though the list.
8867 (language_search_unquoted_string): New function.
8868 (make_file_symbol_completion_list): Use it.
8869
55baeb84
AS
88702003-05-18 Andreas Schwab <schwab@suse.de>
8871
d0b45d99
AS
8872 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8873 dependencies.
8874 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8875 as m68k_linux_extract_return_value.
8876 (DEPRECATED_STORE_RETURN_VALUE): Define as
8877 m68k_linux_store_return_value.
8878 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8879 m68k_linux_extract_struct_value_address.
8880 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8881 get_next_frame, get_frame_base, get_frame_pc.
8882 (m68k_linux_frame_saved_pc): Use get_frame_base.
8883 (m68k_linux_extract_return_value): New function.
8884 (m68k_linux_store_return_value): New function.
8885 (m68k_linux_extract_struct_value_address): New function.
8886 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8887
55baeb84
AS
8888 * c-exp.y (typebase): Remove duplicate occurence of
8889 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8890 of lookup_signed_typename.
55baeb84 8891
b6b08ebf
MK
88922003-05-18 Mark Kettenis <kettenis@gnu.org>
8893
8894 * dwarf2loc.c (find_location_expression): Change type of second
8895 argument to `size_t *'.
8896 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8897 for size variable.
8898
5ad1c190
DC
88992003-05-18 David Carlton <carlton@bactrian.org>
8900
8901 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8902 'linkage_name'. Add comment.
8903 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8904 'linkage_name'.
8905 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8906 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8907 (lookup_block_symbol): Ditto.
8908
b8b527c5
AC
89092003-05-16 Andrew Cagney <cagney@redhat.com>
8910
8911 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8912 * gdbarch.h, gdbarch.c: Re-generate.
8913 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8914 * TODO (REGISTER_BYTES): Delete reference.
8915 * alpha-tdep.c (alpha_gdbarch_init): Update.
8916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8917 * x86-64-tdep.c (x86_64_init_abi): Update.
8918 * vax-tdep.c (vax_gdbarch_init): Update.
8919 * v850-tdep.c (v850_gdbarch_init): Update.
8920 * sparc-tdep.c (sparc_gdbarch_init): Update.
8921 * sh-tdep.c (sh_gdbarch_init): Update.
8922 * s390-tdep.c (s390_gdbarch_init): Update.
8923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8924 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8925 (ns32k_gdbarch_init_32382): Update.
8926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8927 * mcore-tdep.c (mcore_gdbarch_init): Update.
8928 * m68k-tdep.c (m68k_gdbarch_init): Update.
8929 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8930 * ia64-tdep.c (ia64_gdbarch_init): Update.
8931 * i386-tdep.c (i386_gdbarch_init): Update.
8932 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8933 * hppa-tdep.c (hppa_gdbarch_init): Update.
8934 * h8300-tdep.c (h8300_gdbarch_init): Update.
8935 * frv-tdep.c (frv_gdbarch_init): Update.
8936 * cris-tdep.c (cris_gdbarch_init): Update.
8937 * avr-tdep.c (avr_gdbarch_init): Update.
8938 * arm-tdep.c (arm_gdbarch_init): Update.
8939 * sparc-tdep.c (sparc_pop_frame): Update.
8940 * rs6000-tdep.c (rs6000_pop_frame): Update.
8941 * remote.c (init_remote_state): Update.
8942 (remote_prepare_to_store): Update.
8943 * remote-vx.c (vx_prepare_to_store): Update.
8944 * remote-sds.c (sds_fetch_registers): Update.
8945 (sds_prepare_to_store): Update.
8946 * remote-array.c: Update.
8947 * regcache.c (init_legacy_regcache_descr): Update.
8948 (init_regcache_descr): Update.
8949 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8950 (mips_o64_extract_return_value): Update.
8951 * irix5-nat.c (fetch_core_registers): Update.
8952 * irix4-nat.c (fetch_core_registers): Update.
8953 * i386-tdep.h: Update.
8954 * hppa-tdep.c (pa_do_registers_info): Update.
8955 (pa_do_strcat_registers_info): Update.
8956 * cris-tdep.c (cris_register_bytes_ok): Update.
8957 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8958 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8959 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8960 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8961 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8962 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8963 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8964 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8965 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8966 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8967 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8968 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8969 (REGISTER_BYTES_OK): Update.
8970 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8971 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8972
ee2842e2
ILT
89732003-05-16 Ian Lance Taylor <ian@airs.com>
8974
8975 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8976 (vax_print_insn, print_insn_arg): Remove static functions.
8977 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8978 print_insn_vax from opcodes library.
8979 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8980
973177d3
AC
89812003-05-15 Andrew Cagney <cagney@redhat.com>
8982
aaab4dba
AC
8983 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8984 * target.h (memory_breakpoint_from_pc): Delete declaration.
8985 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8986 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8987 * monitor.c (monitor_insert_breakpoint): Use
8988 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8989 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8990 * gdbarch.h, gdbarch.c: Re-generate.
8991 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8992 (sparc_gdbarch_init): Set breakpoint_from_pc to
8993 sparc_breakpoint_from_pc.
8994 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8995 (BREAKPOINT_FROM_PC): Define.
8996 (sparc_breakpoint_from_pc): Declare.
8997 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8998 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8999 (BREAKPOINT_FROM_PC): Define.
9000 (BREAKPOINT): Delete macro.
9001 * target.h: Update comment.
9002 * s390-tdep.c (s390_gdbarch_init): Update comments.
9003 * remote.c: Update comments.
9004 * remote-mips.c: Update comments.
9005 * proc-api.c (write_with_trace): Do not check for a breakpoint.
9006 * mem-break.c: Update comment.
9007 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
9008 (ia64_memory_insert_breakpoint): Update.
9009 * config/sparc/tm-sparc.h: Update comment.
9010 * config/pa/tm-hppa64.h: Update comment.
9011 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9012 (rs6000_breakpoint_from_pc): Update.
9013 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
9014 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
9015 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
9016 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
9017 (mips_breakpoint_from_pc): Update.
9018 (mips_dump_tdep): Update.
9019
e06963ff
AC
9020 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
9021 * minsyms.c (lookup_minimal_symbol): Inline
9022 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
9023
973177d3
AC
9024 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
9025 * p-valprint.c (pascal_object_print_value_fields): Ditto.
9026 * p-lang.c (pascal_printstr): Ditto.
9027 * objc-lang.c (objc_printstr): Ditto.
9028 * m2-lang.c (m2_printstr): Ditto.
9029 * jv-valprint.c (java_print_value_fields): Ditto.
9030 * f-lang.c (f_printstr): Ditto.
9031 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9032 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9033 for repeat_count_threshold.
9034 * Makefile.in (cp-valprint.o): Update dependencies.
9035
5ea2bd7f 90362003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9037
5ea2bd7f
JJ
9038 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9039 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9040 they start with mov r2,r12. Support skipping over indirect stores
9041 of the input registers. Upon hitting a non-nop branch instruction
9042 or predicated instruction, bail out by setting lim_pc to the current
9043 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9044 beyond our calculated value and we have trust_limit set,
9045 use the lim_pc value.
9046
cc8c88f3
AC
90472003-05-15 Andrew Cagney <cagney@redhat.com>
9048
9049 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9050 generic_find_dummy_frame.
9051 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9052 (deprecated_generic_find_dummy_frame): Update.
9053 (deprecated_read_register_dummy): Update.
9054 * frame.c (deprecated_generic_get_saved_register): Update.
9055
909cd28e
TR
90562003-05-15 Theodore A. Roth <troth@openavr.org>
9057
9058 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9059 (avr_gdbarch_init): Set breakpoint_from_pc method.
9060
b923b08d
AC
90612003-05-15 Andrew Cagney <cagney@redhat.com>
9062
9063 * regcache.c (build_regcache): Set deprecated_register_valid
9064 directly.
9065 (deprecated_grub_regcache_for_register_valid): Delete function.
9066 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9067 declaration.
9068
ae2f03ac 90692003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9070
9071 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9072 * symtab.c (lookup_symbol_aux): Delete calls to
9073 lookup_symbol_aux_minsyms.
9074 (lookup_symbol_aux_minsyms): Comment out function and
9075 prototype. Delete lookup by mangled name.
ae2f03ac 9076
18ec9831
KB
90772003-05-14 Kevin Buettner <kevinb@redhat.com>
9078
9079 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9080 correctly indicate an empty stack and ``stack_allocated'' to the
9081 indicate the number of elements initially allocated.
9082 (dwarf_expr_grow_stack): Simplify method for computing new
9083 stack size. Don't loop infinitely if ``stack_len'' is zero.
9084 (execute_stack_op): Move ``ctx->in_reg'' initialization
9085 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9086 be used in conjuction with DW_OP_piece. Revise error message
9087 accordingly.
9088
de18ac1f
TR
90892003-05-14 Theodore A. Roth <troth@openavr.org>
9090
9091 * MAINTAINERS: Update my email address.
9092 * avr-tdep.c: Ditto.
9093
176620f1
EZ
90942003-05-14 Elena Zannoni <ezannoni@redhat.com>
9095
9096 * symtab.h (enum domain_enum): Rename from namespace_enum.
9097 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9098 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9099 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9100 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9101 TYPES_NAMESPACE, METHODS_NAMESPACE.
9102 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9103 (struct symbol, struct partial_symbol): Rename field
9104 'namespace_enum namespace' to 'domain_enum domain'.
9105 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9106 Delete old define kludge for namespace.
9107
9108 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9109 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9110 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9111 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9112 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9113 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9114 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9115 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9116 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9117 occurrences of the above.
9118
b7f31508
ILT
91192003-05-14 Ian Lance Taylor <ian@airs.com>
9120
9121 * Makefile.in (install-only): Use $(SHELL) when running
9122 mkinstalldirs.
9123
2fdbdd39
ILT
91242003-05-13 Ian Lance Taylor <ian@airs.com>
9125
a208d82c
ILT
9126 * MAINTAINERS (write after approval): Add myself.
9127
2fdbdd39
ILT
9128 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9129 second and third arguments.
9130 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9131 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9132
fbd9dcd3
AC
91332003-05-13 Andrew Cagney <cagney@redhat.com>
9134
9135 * defs.h (store_address): Delete declaration.
9136 findvar.c (store_address): Delete function.
9137 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9138 store_unsigned_integer.
9139 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9140 * v850-tdep.c (v850_push_arguments): Ditto.
9141 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9142 * sh-tdep.c (sh64_get_saved_register): Ditto.
9143 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9144 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9145 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9146 (mips_get_saved_register): Ditto.
9147 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9148 (find_func_descr, ia64_push_arguments): Ditto.
9149 * i386-tdep.c (i386_push_arguments): Ditto.
9150 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9151 * frv-tdep.c (frv_push_arguments): Ditto.
9152 * frame.c (legacy_saved_regs_prev_register): Ditto.
9153 (deprecated_generic_get_saved_register): Ditto.
9154 * findvar.c (unsigned_address_to_pointer): Ditto.
9155 * dwarf2read.c (dwarf2_const_value): Ditto.
9156 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9157 * alpha-tdep.c (alpha_push_arguments): Ditto.
9158
6760f9e6
JB
91592003-05-12 J. Brobecker <brobecker@gnat.com>
9160
9161 * NEWS: Mention that the hppa-hpux port has been partially
9162 multiarched (32bit ABIT only, so far).
9163
30e221b4
AC
91642003-05-11 Andrew Cagney <cagney@redhat.com>
9165
9166 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9167 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9168 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9169 sim/testsuite/sim/arm/misaligned2.ms, and
9170 sim/testsuite/sim/arm/misaligned3.ms.
9171 * disasm.h (struct ui_file): Add opaque struct declaration.
9172 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9173 * frame.h (struct ui_file): Ditto.
9174
dea7f9ba
MK
91752003-05-11 Mark Kettenis <kettenis@gnu.org>
9176
9177 * value.h: Pretty print.
9178
01986c48
MK
91792003-05-10 Mark Kettenis <kettenis@gnu.org>
9180
9181 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9182
123a958e
AC
91832003-05-08 Andrew Cagney <cagney@redhat.com>
9184
9185 * regcache.h (max_register_size): Delete declaration.
9186 * regcache.c (max_register_size): Delete function.
9187 (struct regcache_descr): Delete field "max_register_size".
9188 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9189 registers fit in MAX_REGISTER_SIZE.
9190 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9191 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9192 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9193 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9194 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9195 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9196 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9197 * dve3900-rom.c, hppa-tdep.c: Ditto.
9198
eb294659
DC
91992003-05-08 David Carlton <carlton@math.stanford.edu>
9200
9201 * valops.c (push_word): Fix typo.
9202
d9d9c31f
AC
92032003-05-08 Andrew Cagney <cagney@redhat.com>
9204
9205 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9206 * gdbarch.h: Re-generate.
9207 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9208 (legacy_max_register_raw_size): Delete declaration.
9209 * regcache.c (legacy_max_register_raw_size): Delete function.
9210 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9211 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9212 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9213 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9214 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9215 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9216 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9217 * findvar.c, dwarf2cfi.c: Ditto.
9218
22540ece
AC
92192003-05-08 Andrew Cagney <cagney@redhat.com>
9220
9221 * mips-tdep.c (read_signed_register): New function, moved to here
9222 from "regcache.c".
9223 (read_signed_register_pid): Ditto.
9224 * regcache.c (read_signed_register_pid): Delete function, moved to
9225 "mips-tdep.c".
9226 (read_signed_register): Ditto.
9227 * regcache.h (read_signed_register): Delete declaration.
9228 (read_signed_register_pid): Delete declaration.
9229
0c92afe8
AC
92302003-05-08 Andrew Cagney <cagney@redhat.com>
9231
9232 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9233 * gdbarch.h: Re-generate.
9234 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9235 (legacy_max_register_virtual_size): Delete declaration.
9236 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9237 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9238 * tracepoint.c (memrange_sortmerge): Ditto.
9239 * sparc-tdep.c (sparc_print_registers): Ditto.
9240 * regcache.c (legacy_max_register_virtual_size): Delete function.
9241
6037b830
JB
92422002-05-08 J. Brobecker <brobecker@gnat.com>
9243
9244 * fork-child.c (escape_bang_in_quoted_argument): New function.
9245 (fork_inferior): Escape '!' characters in quoted arguments
9246 only when needed.
9247
5d62c8b1
JB
92482003-05-08 J. Brobecker <brobecker@gnat.com>
9249
9250 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9251 the language of the CU is not currently supported by GDB.
9252
20a0e81d
JB
92532003-05-08 J. Brobecker <brobecker@gnat.com>
9254
9255 * defs.h (language): Add language_minimal enum value.
9256 * c-lang.c (minimal_language_defn): New language definition.
9257 (_initialize_c_language): Add the new minimal language to the list
9258 of languages known to GDB.
9259
710ee10a
KB
92602003-05-08 Kevin Buettner <kevinb@redhat.com>
9261
9262 * frame.c (get_frame_type): Don't attempt to lazily initialize
9263 frame's unwinder for legacy frames.
9264
1750fa04
AC
92652003-05-07 Andrew Cagney <cagney@redhat.com>
9266
9267 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9268 and "regcache" parameters.
9269 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9270
ddf9f258 92712003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9272
9273 * dwarf2read.c (dwarf_decode_lines): Only use output of
9274 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9275 the current address.
9276
87767c29
AC
92772003-05-07 Andrew Cagney <cagney@redhat.com>
9278
9279 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9280 code.
9281
5e7b2f39
JB
92822003-05-07 Jim Blandy <jimb@redhat.com>
9283
9284 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9285 'maint info symtabs' and 'maint info psymtabs'.
9286 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9287 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9288 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9289 Declarations updated.
9290 * maint.c (maintenance_list_command): Delete.
9291 (_initialize_maint_cmds): Update calls to add_cmd.
9292 * gdbcmd.h (maintenancelistlist): Delete declaration.
9293 * cli/cli-cmds.c (maintenancelistlist): Delete.
9294 (init_cmd_lists): Don't initialize it.
9295 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9296
f6684c31
AC
92972003-05-07 Andrew Cagney <cagney@redhat.com>
9298
9299 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9300 "regcache".
9301 (d10v_print_registers_info): Update.
9302 (d10v_dmap_register, d10v_imap_register): Delete functions.
9303 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9304 and "imap_register".
9305 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9306 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9307 * arch-utils.c (generic_remote_translate_xfer_address): Add
9308 "regcache" and "gdbarch" parameters.
9309 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9310 parameter. Change class to multi-arch.
9311 * gdbarch.h, gdbarch.c: Re-generate.
9312 * remote.c (remote_xfer_memory): Use
9313 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9314
e4846b08
JJ
93152003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9316
9317 * infrun.c (prev_pc): Move declaration ahead of proceed().
9318 (proceed): Refresh prev_pc value before resuming.
9319 (stop_stepping): Remove code to refresh prev_pc.
9320
6b71b8ac
KW
93212003-05-06 Kris Warkentin <kewarken@qnx.com>
9322
9323 * nto-tdep.c: Removed stray comment.
9324
47979a4b
KW
93252003-05-06 Kris Warkentin <kewarken@qnx.com>
9326
9327 * i386-nto-tdep.c: Fix old K&R function definitions.
9328 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9329 Also change add_show_from_set() call to add_setshow_cmd().
9330 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9331
00905d52
AC
93322003-05-05 Andrew Cagney <cagney@redhat.com>
9333
9334 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9335 (fprint_dummy_frames): New function.
9336 (maintenance_print_dummy_frames): New function.
9337 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9338 * frame.c (fprint_frame_id): Make global.
9339 * frame.h (fprint_frame_id): Declare.
9340 * Makefile.in (dummy-frame.o): Update dependencies.
9341
b1e29e33
AC
93422003-05-05 Andrew Cagney <cagney@redhat.com>
9343
9344 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9345 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9346 SIZEOF_CALL_DUMMY_WORDS.
9347 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9348 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9349 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9350 CALL_DUMMY_BREAKPOINT_OFFSET.
9351 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9352 CALL_DUMMY_START_OFFSET.
9353 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9354 * gdbarch.h, gdbarch.c: Re-generate.
9355 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9356 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9357 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9358 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9359 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9360 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9361 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9362 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9363 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9364 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9365 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9366 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9367 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9368 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9369 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9370
93712003-05-05 Kris Warkentin <kewarken@qnx.com>
9372
9373 * configure.tgt: Add i[3456]86-*-nto*.
9374 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9375 * nto-tdep.c: New file. Neutrino target support routines.
9376 * nto-tdep.h: New file. Neutrino target header.
9377 * config/tm-qnxnto.h: New file.
9378 * config/i386/i386nto.mt: New file.
9379 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9380
0ce3d317
AC
93812003-05-04 Andrew Cagney <cagney@redhat.com>
9382
9383 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9384 (load_infrun_state): Ditto.
9385 (struct thread_info): Drop "prev_func_name" field.
9386 * thread.c (load_infrun_state): Update.
9387 (save_infrun_state): Update.
9388 * infrun.c (prev_func_name): Delete variable.
9389 (init_wait_for_inferior): Do not clear prev_func_name.
9390 (stop_stepping, keep_going, context_switch): Do not swap
9391 prev_func_name.
9392 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9393 instead of PC_IN_SIGTRAMP.
9394
46654a5b
AC
93952003-05-04 Andrew Cagney <cagney@redhat.com>
9396
9397 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9398 REGISTER_BYTE with register_offset_hack.
9399 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9400 that REGISTER_BYTE is consistent with the regcache.
9401 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9402 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9403
14b08c1b
MK
94042003-05-04 Mark Kettenis <kettenis@gnu.org>
9405
04c8243f
MK
9406 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9407 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9408
14b08c1b
MK
9409 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9410
c7a11e01
JB
94112003-05-03 J. Brobecker <brobecker@gnat.com>
9412
9413 From Thierry Schneider <tpschneider1@yahoo.com>
9414 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9415 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9416 (mi-cmd-symbol.o): Add rule.
9417
7043d8dc
AC
94182003-05-03 Andrew Cagney <cagney@redhat.com>
9419
9420 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9421 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9422 * gdbarch.h, gdbarch.c: Re-generate.
9423 * d10v-tdep.c (d10v_push_dummy_code): New function.
9424 (d10v_gdbarch_init): Set push_dummy_code.
9425 * infcall.c (legacy_push_dummy_code): New function.
9426 (generic_push_dummy_code): New function.
9427 (push_dummy_code): New function.
9428 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9429 instead of dummy_addr, to push_dummy_call. Move call to
9430 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9431 switch.
9432 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9433
92bf2b80
AC
94342003-05-03 Andrew Cagney <cagney@redhat.com>
9435
9436 * disasm.h (print_insn): Declare.
9437 * disasm.c (init_gdb_disassemble_info): New function.
9438 (gdb_disassembly): Call init_gdb_disassemble_info.
9439 (gdb_print_insn): New function.
9440 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9441 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9442 * mcore-tdep.c: Include "disasm.h"
9443 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9444 * d10v-tdep.c: Include "disasm.h".
9445 (display_trace): Call gdb_print_insn, instead of print_insn.
9446 (print_insn): Delete function.
9447 * printcmd.c: Include "disasm.h".
9448 (print_insn): Delete function.
9449 (print_formatted): Call gdb_print_insn, instead of print_insn.
9450 * Makefile.in (printcmd.o): Update dependencies.
9451 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9452
27d94c49
AC
94532003-05-02 Andrew Cagney <cagney@redhat.com>
9454
82de1e5b
AC
9455 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9456 PC_REGNUM, re-indent.
9457 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9458 PC_REGNUM isn't set.
9459
27d94c49
AC
9460 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9461 * gdbarch.h, gdbarch.c: Re-generate.
9462 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9463 register_virtual_size, pc_regnum, or register_bytes.
9464 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9465 (d10v_register_type): Use D10V_PC_REGNUM.
9466 (d10v_print_registers_info, d10v_read_pc): Ditto.
9467 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9468 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9469
a9c0dc7f
DC
94702003-05-02 David Carlton <carlton@bactrian.org>
9471
9472 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9473 the name with mstrsave.
9474
e33d66ec
EZ
94752003-05-02 Elena Zannoni <ezannoni@redhat.com>
9476
9477 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9478 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9479 (host_charset_name, target_charset_name): New vars for use by
9480 set/show commands.
9481 (host_charset_enum, target_charset_enum): New enums for set/show
9482 commands.
9483 (set_charset_sfunc, set_host_charset_sfunc,
9484 set_target_charset_sfunc): New functions.
9485 (set_host_charset, set_target_charset): Make static.
9486 (list_charsets, set_host_charset_command,
9487 set_target_charset_command): Delete functions.
9488 (show_charset_command): Rewrite as....
9489 (show_charset): Hook this up with the set/show command mechanism.
9490 (_initialize_charset): Change names of charsets to match the
9491 set/show enums. Use host_charset_name and target_charset_name.
9492 Use set/show mechanism for charset, host-charset, target-charset
9493 commands. Do not make 'show host-charset' and 'show
9494 target-charset' be aliases of 'show charset'.
9495
9496 * charset.h (set_host_charset, set_target_charset): Don't export,
9497 they are not used outside the file.
9498
2b6fd0d8
AC
94992003-05-01 Andrew Cagney <cagney@redhat.com>
9500
9501 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9502 (gdb_disassembly): Make "di" non static, always initialize and
9503 cleanup. Always use dis_asm_read_memory.
9504 (gdb_dis_asm_read_memory): Delete function.
9505
6ae2f580
AC
95062003-05-01 Andrew Cagney <cagney@redhat.com>
9507
9508 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9509 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9510
810ecf9f
AC
95112003-04-30 Andrew Cagney <cagney@redhat.com>
9512
9513 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9514 "tm_print_insn_info".
9515 (TARGET_PRINT_INSN_INFO): Delete macro.
9516 (dis_asm_read_memory): Delete function declaration.
9517 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9518 (tm_print_insn_info): Delete variable definition.
9519 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9520 * gdbarch.h, gdbarch.c: Re-generate.
9521 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9522 "deprecated_tm_print_insn_info".
9523 * mcore-tdep.c (mcore_dump_insn): Ditto.
9524 * mips-tdep.c (mips_gdbarch_init): Ditto.
9525 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9526 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9527 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9528 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9529 instead of TARGET_PRINT_INSN_INFO, add comment.
9530 * s390-tdep.c (s390_get_frame_info): Instead of
9531 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9532 (s390_check_function_end, s390_is_sigreturn): Ditto.
9533 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9534 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9535 * disasm.c: Include "gdbcore.h".
9536 (_initialize_disasm): New function, initialize
9537 "deprecated_tm_print_insn_info".
9538 (deprecated_tm_print_insn_info): New variable.
9539 (dis_asm_read_memory): Moved from "corefile.c", made static.
9540 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9541 * Makefile.in (disasm.o): Update dependencies.
9542
07020390
AC
95432003-04-30 Andrew Cagney <cagney@redhat.com>
9544
9545 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9546
a9fa03de
AF
95472003-04-29 Adam Fedor <fedor@gnu.org>
9548
9549 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9550 * infcall.c (find_function_addr): Make non-static.
9551 * infcall.h (find_function_addr): Declare.
9552 * Makefile.in (eval.o): Update dependencies.
9553
1bae87b9
AF
95542003-04-28 Adam Fedor <fedor@gnu.org>
9555
9556 * symtab.c (symbol_find_demangled_name): Check for and demangle
9557 ObjC symbols.
9558 (symbol_init_demangled_name): Init for language_objc as well.
9559
0ba6dca9
AC
95602003-04-28 Andrew Cagney <cagney@redhat.com>
9561
9562 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9563 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9564 * gdbarch.h, gdbarch.c: Re-generate.
9565 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9566 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9567 * inferior.h (deprecated_read_fp): Rename read_fp.
9568 (generic_target_read_fp): Delete declaration.
9569 * regcache.c (generic_target_read_fp): Delete function.
9570 (deprecated_read_fp): Replace read_fp, use
9571 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9572 * d10v-tdep.c (d10v_read_fp): Delete function.
9573 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9574
9575 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9576 deprecated_target_read_fp to generic_target_read_fp.
9577 * sh-tdep.c (sh_gdbarch_init): Ditto.
9578 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9580 * frv-tdep.c (frv_gdbarch_init): Ditto.
9581
9582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9583 deprecated_fp_regnum.
9584 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9585 * vax-tdep.c (vax_gdbarch_init): Ditto.
9586 * v850-tdep.c (v850_gdbarch_init): Ditto.
9587 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9588 * sh-tdep.c (sh_gdbarch_init): Ditto.
9589 * s390-tdep.c (s390_gdbarch_init): Ditto.
9590 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9591 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9592 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9593 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9595 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9596 * i386-tdep.c (i386_gdbarch_init): Ditto.
9597 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9598 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9599 * frv-tdep.c (frv_gdbarch_init): Ditto.
9600 * cris-tdep.c (cris_gdbarch_init): Ditto.
9601 * avr-tdep.c (avr_gdbarch_init): Ditto.
9602 * arm-tdep.c (arm_gdbarch_init): Ditto.
9603 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9604
9605 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9606 * v850-tdep.c (v850_gdbarch_init): Ditto.
9607 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9608 * sh-tdep.c (sh_gdbarch_init): Ditto.
9609 * s390-tdep.c (s390_gdbarch_init): Ditto.
9610 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9611 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9612 * mips-tdep.c (mips_gdbarch_init): Ditto.
9613 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9614 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9615 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9616 * frv-tdep.c (frv_gdbarch_init): Ditto.
9617 * avr-tdep.c (avr_gdbarch_init): Ditto.
9618 * arm-tdep.c (arm_gdbarch_init): Ditto.
9619
9620 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9621 DEPRECATED_FP_REGNUM.
9622 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9623 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9624 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9625 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9626 (sparc32_register_virtual_type): Ditto.
9627 * sh-tdep.c (sh64_frame_chain): Ditto.
9628 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9629 (sh_nofp_frame_init_saved_regs): Ditto.
9630 (sh64_nofp_frame_init_saved_regs): Ditto.
9631 (sh_fp_frame_init_saved_regs): Ditto.
9632 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9633 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9634 * procfs.c (procfs_fetch_registers): Ditto.
9635 (procfs_store_registers): Ditto.
9636 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9637 (store_inferior_registers, fetch_core_registers): Ditto.
9638 (fetch_kcore_registers, clear_regs): Ditto.
9639 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9640 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9641 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9642 * nlm/i386.c (do_status): Ditto.
9643 * mipsv4-nat.c (supply_gregset): Ditto.
9644 * mips-tdep.c: Ditto for comments.
9645 * mips-nat.c (fetch_inferior_registers): Ditto.
9646 (store_inferior_registers, fetch_core_registers): Ditto.
9647 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9648 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9649 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9650 (i386_do_pop_frame, i386_register_type): Ditto.
9651 * hppa-tdep.c (hppa_frame_chain): Ditto.
9652 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9653 (hppa_pop_frame, hppa_read_fp): Ditto.
9654 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9655 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9656 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9657 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9658 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9659 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9660 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9661 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9662 * blockframe.c: Ditto for comments.
9663 * arch-utils.h: Ditto for comments.
9664 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9665 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9666 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9667 * alpha-tdep.h: Ditto for comments.
9668 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9669 (alpha_cannot_store_register): Ditto.
9670 (alpha_push_dummy_frame): Ditto.
9671 * alpha-nat.c (supply_gregset): Ditto.
9672
9673 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9674 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9675 * config/sparc/tm-sparc.h: Update comment.
9676
9677 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9678 deprecated_read_fp instead of TARGET_READ_FP.
9679 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9680 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9681 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9682 deprecated_read_fp instead of read_fp.
9683 * s390-tdep.c (s390_push_arguments): Ditto.
9684 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9685 * frame.h: Ditto in comments.
9686 * frame.c (legacy_get_prev_frame): Ditto.
9687 * dummy-frame.c (dummy_frame_this_id): Ditto.
9688 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9689
d7a27068
AC
96902003-04-28 Andrew Cagney <cagney@redhat.com>
9691
9692 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9693 * gdbarch.h, gdbarch.c: Re-generate.
9694 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9695 * vax-tdep.c (_initialize_vax_tdep): Update.
9696 * v850-tdep.c (_initialize_v850_tdep): Update.
9697 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9698 * s390-tdep.c (_initialize_s390_tdep): Update.
9699 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9700 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9701 * mips-tdep.c (_initialize_mips_tdep): Update.
9702 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9703 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9704 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9705 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9706 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9707 * frv-tdep.c (_initialize_frv_tdep): Update.
9708 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9709 (_initialize_cris_tdep): Update.
9710 * arch-utils.c (legacy_print_insn): Update.
9711 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9712
d2630e69
AF
97132003-04-26 Adam Fedor <fedor@gnu.org>
9714
9715 * linespec.c (decode_objc): New function to decode ObjC calls
9716 (decode_line_1): Check for ObjC calls (using decode_objc)
9717 * Makefile (linespec.o): Update dependencies.
9718
3086aeae
DJ
97192003-04-26 Daniel Jacobowitz <drow@mvista.com>
9720
9721 * breakpoint.h (struct breakpoint_ops): New.
9722 (struct breakpoint): Add ops member.
9723
9724 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9725 (mention): Use new breakpoint ops member.
9726 (set_raw_breakpoint): Initialize ops field to NULL.
9727 (print_exception_catchpoint, print_one_exception_catchpoint)
9728 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9729 (gnu_v3_exception_catchpoint_ops): New.
9730 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9731
1fbec6c3
AF
97322003-04-25 Adam Fedor <fedor@gnu.org>
9733
9734 * Makefile.in (COMMON_OBS): Add objc-lang.o
9735
0ef21242
AC
97362003-04-25 Andrew Cagney <cagney@redhat.com>
9737
9738 * d10v-tdep.c (print_insn): Delete function.
9739 (display_trace): Use TARGET_PRINT_INSN.
9740 (_initialize_d10v_tdep): Do not set tm_print_insn.
9741 (d10v_gdbarch_init): Set print_insn.
9742
f75493ed
AC
97432003-04-25 Andrew Cagney <cagney@redhat.com>
9744
9745 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9746 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9747 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9748 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9749 (nr_dmap_regs, a0_regnum): ... new functions.
9750 (d10v_print_registers_info): Use a0_regnum, use register_size.
9751 (d10v_register_byte): Delete function.
9752 (d10v_register_raw_size): Delete function.
9753 (d10v_register_type): Use a0_regnum.
9754 (d10v_print_registers_info): Use a0_regnum.
9755 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9756 (d10v_gdbarch_init): Do not set register_byte or
9757 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9758 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9759 extract_address.
9760 (trace_command): Use XCALLOC.
9761 (print_insn): Delete reference to tm_print_insn.
9762 (saved_regs_unwinder): Use store_unsigned_integer instead of
9763 store_address.
9764 * frame.h (FRAME_OBSTACK_CALLOC): Define
9765
2202b100
DC
97662003-04-25 David Carlton <carlton@bactrian.org>
9767
9768 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9769
4e45ca2e
AF
97702003-04-24 Adam Fedor <fedor@gnu.org>
9771
9772 * objc-lang.c: Include "valprint.h"
9773 * Makefile.in (objc-lang.o): Update dependencies.
9774
93de3e7f
AF
97752003-04-24 Adam Fedor <fedor@gnu.org>
9776
8ffd9b1b 9777 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9778 architecture dependant compilation and mark as unimplemented
9779 (until they get put in the gdbarch vector).
9780
0f20eeea
DC
97812003-04-23 David Carlton <carlton@bactrian.org>
9782
9783 * cp-support.c (cp_find_first_component): Accept 'operator' in
9784 more locations.
9785
74cfe982
AC
97862003-04-23 Andrew Cagney <cagney@redhat.com>
9787
9788 * infcall.c (call_function_by_hand): Eliminate redundant
9789 indentation. Move "saved_async" and "old_cleanups" to where they
9790 are needed.
8ffd9b1b 9791
52557533
AC
97922003-04-23 Andrew Cagney <cagney@redhat.com>
9793
9794 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9795 and "buffer". Move the "name" code to where it is needed.
9796
158775de
AC
97972003-04-23 Andrew Cagney <cagney@redhat.com>
9798
9799 * infcall.c (call_function_by_hand): Move variables "start_sp",
9800 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9801 code to ON_STACK switch branch.
8ffd9b1b 9802
ebc7896c
AC
98032003-04-23 Andrew Cagney <cagney@redhat.com>
9804
9805 * infcall.c (call_function_by_hand): Make declaration of "i",
9806 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9807 lint.
9808
d727590f
AC
98092003-04-23 Andrew Cagney <cagney@redhat.com>
9810
9811 * infcall.c (call_function_by_hand): Delete variable
9812 "n_method_args". Localize "param_type"'s declaration to the loop
9813 that it is used. Reinstate code assigning to said variable -
9814 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9815 Rationalize code using "param_type".
9816
d585e13a
AC
98172003-04-22 Andrew Cagney <cagney@redhat.com>
9818
9819 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9820 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9821 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9822 to DEPRECATED_PUSH_RETURN_ADDRESS.
9823
051caad9
KB
98242003-04-22 Kevin Buettner <kevinb@redhat.com>
9825
9826 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9827 on the DWARF2 register number prior to fetching a register.
9828
77296879
JB
98292003-04-22 J. Brobecker <brobecker@gnat.com>
9830
9831 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9832 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9833 this macro was always set to 0.
77296879
JB
9834 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9835 considering the fact that this macro was always set to 0.
9836 * hppa-tdep.h (hppa_store_return_value): Likewise.
9837 (hppa_extract_return_value): Likewise.
9838
4252f1df
JB
98392003-04-22 J. Brobecker <brobecker@gnat.com>
9840
9841 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9842 the hppa-pro target only.
9843
14604c6b
JB
98442003-04-21 J. Brobecker <brobecker@gnat.com>
9845
9846 Ongoing multi-arch conversion effort for HP/UX:
9847 * config/pa/tm-hppa.h: Move all macro that are no longer
9848 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9849 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9850
77eb01d1
JB
98512003-04-21 J. Brobecker <brobecker@gnat.com>
9852
9853 * config/pa/tm-hppa.h: Obsolete a section that was only used
9854 for hppa-pro.
9855
61995b3b
JB
98562003-04-21 J. Brobecker <brobecker@gnat.com>
9857
9858 Ongoing multi-arch conversion for HP/UX.
9859 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9860 if already defined (allows hppa64 to stay non-multiarched for now).
9861 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9862
4aa79dcc
AC
98632003-04-21 Andrew Cagney <cagney@redhat.com>
9864
9865 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9866
0f751ff2
AC
98672003-04-21 Andrew Cagney <cagney@redhat.com>
9868
9869 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9870 "i386_num_mmx_regs".
9871
04714b91
AC
98722003-04-21 Andrew Cagney <cagney@redhat.com>
9873
9874 * infcall.c: New file.
9875 * infcall.h: New file.
9876 * valarith.c: Include "infcall.h".
9877 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9878 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9879 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9880 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9881 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9882 (SFILES): Add "infcall.c"
9883 (COMMON_OBS): Add "infcall.o".
9884 (infcall.o): Specify dependencies.
9885 * value.h (call_function_by_hand): Delete declaration.
9886 * inferior.h (run_stack_dummy): Delete declaration.
9887 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9888 (run_stack_dummy): Move to "infcall.c", merged into
9889 call_function_by_hand.
9890 * valops.c (call_function_by_hand): Moved to "infcall.c".
9891 (find_function_addr, value_arg_coerce): Ditto.
9892 (unwindonsignal_p, coerce_float_to_double): Ditto.
9893 (_initialize_valops): Move "set/show coerce-float-to-double", and
9894 "set/show unwindonsignal" commands to "infcall.c".
9895 * v850-tdep.c, target.h: Update comments.
9896 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9897 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9898 (sh64_init_extra_frame_info): Update comments.
9899 * mn10300-tdep.c: Update comments.
9900 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9901 * config/sparc/tm-sparc.h: Update comments.
9902 * breakpoint.h: Update comments.
9903 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9904 * arm-tdep.c: Update comment.
9905
f9d3c2a8
MK
99062003-04-19 Mark Kettenis <kettenis@gnu.org>
9907
c40e1eab
MK
9908 * i386-tdep.c (i386_num_register_names): New variable.
9909 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9910 (MM0_REGNUM): Remove redundant parentheses in define.
9911 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9912 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9913 i386_mxcsr_regnum_p): Remove redundant parentheses.
9914 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9915
94ea66b3
MK
9916 * i386-tdep.c (i386_extract_return_value,
9917 i386_store_return_value): Correct check for availability of
9918 floating-point registers.
9919
54299a1d
MK
9920 * i386-tdep.c (i386_frame_num_args): Remove function.
9921 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9922
c86c27af
MK
9923 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9924 mmx_regnum_to_fp_regnum. Adjust all callers.
9925
f9d3c2a8
MK
9926 * i386-tdep.c (i386_get_longjmp_target): Use
9927 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9928 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9929 extract_address.
9930
94ba74a9
MK
99312003-04-19 Mark Kettenis <kettenis@gnu.org>
9932
9933 * core-regset.c: Update comments to reflect reality. Re-order
9934 includes.
9935 (fetch_core_registers): Use switch instead of if. Remove
9936 redundant prototype.
9937
4074e13c
JB
99382003-04-18 Jim Blandy <jimb@redhat.com>
9939
9940 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9941 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9942
e3ab4aba
RH
99432003-04-17 Richard Henderson <rth@redhat.com>
9944
9945 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9946
627bf7c1
EZ
99472003-04-17 Michael Snyder <msnyder@redhat.com>
9948 Karen Bennet <bennet@redhat.com>
9949
9950 Committed by Elena Zannoni <ezannoni@redhat.com>
9951 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9952
514621a9
EZ
99532003-04-17 Elena Zannoni <ezannoni@redhat.com>
9954
9955 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9956 value if the return type is void.
514621a9 9957
b4acd559
JJ
99582003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9959
9960 * thread-db.c: Reindented.
8ffd9b1b 9961
530b167e 99622003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9963
9964 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9965 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9966 as types.
9967
0a48e7e8
MS
9968
9969
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982
9983
9984
9985
9986
9987
9988
9989
9990
8ffd9b1b 9991
ab9fe00e
KB
99922003-04-16 Kevin Buettner <kevinb@redhat.com>
9993
610a3745 9994 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9995 the size of ``long double'' to 16, instead of 8.
9996
e64a344c
MK
99972003-04-16 Mark Kettenis <kettenis@gnu.org>
9998
9999 * i386-linux-nat.c: Add some whitespace to make things more
10000 readable.
10001 (fetch_register, store_register, fetch_inferior_registers,
10002 store_inferior_registers): Get rid of assignment in if-statement.
10003 (store_register): Fix typo in error message.
10004
25d41031
AC
100052003-04-16 Andrew Cagney <cagney@redhat.com>
10006
10007 * utils.c (xmmalloc): Always allocate something, matches
10008 libiberty/xmalloc's semantics.
10009 (xmrealloc, xmcalloc): Ditto.
10010
c50901fd
AC
100112003-04-16 Andrew Cagney <cagney@redhat.com>
10012
10013 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
10014 update comments.
10015 (get_frame_type): Initialize unwind and type when needed.
10016 (get_frame_id, frame_register_unwind): Ditto.
10017
f81824a9
AC
100182003-04-16 Andrew Cagney <cagney@redhat.com>
10019
10020 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
10021 obsolete.
10022 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
10023 * sparcl-stub.c: Obsolete file.
10024 * config/sparc/tm-sparclet.h: Obsolete file.
10025 * sparclet-stub.c: Obsolete file.
10026 * sparclet-rom.c: Obsolete file.
10027 * sparcl-tdep.c: Obsolete file.
10028 * config/sparc/tm-sparclite.h: Obsolete file.
10029 * config/sparc/sparclite.mt: Obsolete file.
10030 * config/sparc/sparclet.mt: Obsolete file.
10031 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10032 sparc86x-*-* obsolete.
10033
9219021c
DC
100342003-04-15 David Carlton <carlton@math.stanford.edu>
10035
10036 * Makefile.in (SFILES): Add cp-namespace.c.
10037 (COMMON_OBS): Add cp-namespace.o.
10038 (block.o): Depend on gdb_obstack_h and cp_support_h.
10039 (buildsym.o): Depend on cp_support_h.
10040 (cp-namespace.o): New.
10041 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10042 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10043 (dwarf2read.o): Depend on cp_support_h.
10044 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10045 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10046 processing_current_namespace.
10047 (read_namespace): Update processing_current_namespace; check for
10048 anonymous namespaces.
10049 (dwarf2_name): New function.
10050 (dwarf2_extension): Ditto.
10051 * cp-support.h: Update copyright, contributors.
10052 Add inclusion guards.
10053 Add opaque declaration for structs obstack, block, symbol.
10054 (struct using_direct): New struct.
10055 Add declarations for cp_find_first_component,
10056 cp_entire_prefix_len, processing_has_namespace_info,
10057 processing_current_namespace, cp_is_anonymous,
10058 cp_add_using_directive, cp_initialize_namespace,
10059 cp_finalize_namespace, cp_set_block_scope,
10060 cp_scan_for_anonymous_namespaces.
10061 * cp-namespace.c: New file.
10062 * cp-support.c: Update copyright.
10063 Include ctype.h, gdb_assert.h, gdbcmd.h.
10064 New variable maint_cplus_cmd_list.
10065 (cp_find_first_component): New function.
10066 (cp_entire_prefix_len, maint_cplus_command)
10067 (first_component_command, _initialize_cp_support): Ditto.
10068 * buildsym.c: Include cp-support.h.
10069 New variable using_list.
10070 (add_symbol_to_list): Check for anonymous namespaces.
10071 (finish_block): Set block's scope.
10072 (start_symtab): Initialize C++ namespace support.
10073 (end_symtab): Finalize C++ namespace support.
10074 * block.h: Add opaque declarations for structs
10075 block_namespace_info, using_direct, and obstack.
10076 Add declarations for block_set_scope and block_set_using.
10077 (struct block): Add 'language_specific' member.
10078 (BLOCK_NAMESPACE): New macro.
10079 * block.c: Include gdb_obstack.h and cp-support.h.
10080 (struct block_namespace_info): New struct.
10081 (block_set_scope): New function.
10082 (block_set_using, block_initialize_namespace): Ditto.
10083
d5a921c9
KB
100842003-04-14 Kevin Buettner <kevinb@redhat.com>
10085
10086 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10087 (locate_base): Return early if there aren't any link map offsets.
10088 (svr4_solib_create_inferior_hook): Warn if shared library support
10089 is unavailable.
10090
d2a52b27
DC
100912003-04-14 David Carlton <carlton@math.stanford.edu>
10092
10093 * symtab.c (symbol_set_names): Add prefix when storing Java names
10094 in hash table. Fix for PR java/1039.
10095
980cae7a
DC
100962003-04-14 David Carlton <carlton@math.stanford.edu>
10097
10098 * symtab.c (symbol_set_names): Rename 'name' arg to
10099 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10100 * symtab.h: Change 'name' argument in declaration of
10101 symbol_set_names to 'linkage_name'.
10102 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10103
e227b13c
AC
101042003-04-14 Andrew Cagney <cagney@redhat.com>
10105
10106 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10107 return the fully sign-extended register value.
10108 (get_frame_pointer): Ditto.
10109 (mips_pop_frame): Initialize "proc_desc" after checking for a
10110 dummy frame.
10111
36712a20
AC
101122003-04-14 Andrew Cagney <cagney@redhat.com>
10113
10114 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10115 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10116 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10117 (mips_push_register): Delete function.
10118 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10119 PUSH_FP_REGNUM.
10120
44ea7b70
JB
101212003-04-14 Jim Blandy <jimb@redhat.com>
10122
10123 * symmisc.c: #include "gdb_regex.h".
10124 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10125 functions.
10126 * maint.c (maintenance_list_command): New function.
10127 (_initialize_maint_cmds): Register the above as commands.
10128 * symtab.h (maintenance_list_symtabs,
10129 maintenance_list_psymtabs): New declarations.
10130 * cli/cli-cmds.c (maintenancelistlist): New variable.
10131 (init_cmd_lists): Initialize it.
10132 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10133 * gdbcmd.h (maintenancelistlist): New declaration.
10134 * Makefile.in (symmisc.o): Update dependencies.
10135
2d0c7962
EZ
101362003-04-14 Elena Zannoni <ezannoni@redhat.com>
10137
10138 * s390-nat.c: Include asm/types.h for addr_t.
10139
1947a811
CV
101402003-04-14 Corinna Vinschen <vinschen@redhat.com>
10141
10142 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10143 actually incoming type.
10144
adb616d7
AC
101452003-04-13 Andrew Cagney <cagney@redhat.com>
10146
10147 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10148 get_next_frame and get_frame_saved_regs.
10149
9b5e151c
AC
101502003-04-13 Andrew Cagney <cagney@redhat.com>
10151
10152 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10153 of gdbarch_num_regs.
10154
ef6e7e13
AC
101552003-04-13 Andrew Cagney <cagney@redhat.com>
10156
10157 * frame.h: Mention what replaced what in "struct frame_info".
10158 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10159 deprecated_update_frame_base_hack and
10160 deprecated_update_frame_pc_hack.
10161 * hppa-tdep.c: Ditto.
10162
61fbb938
DJ
101632003-04-13 Daniel Jacobowitz <drow@mvista.com>
10164
10165 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10166 to read_reg and update its comment. Remove regnum member.
10167 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10168 Don't call read_reg when setting in_reg. Call read_reg to get
10169 the frame base if it's in a register. Return the register number
10170 on the stack instead of in the context. Remove extra arguments
10171 to read_reg.
10172 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10173 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10174 the register number on the expression stack.
10175 (needs_frame_read_reg): Remove extra arguments.
10176
0d53c4c4
DJ
101772003-04-13 Daniel Jacobowitz <drow@mvista.com>
10178
10179 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10180 made non-static.
10181 (execute_stack_op): All callers updated.
10182 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10183 * dwarf2loc.c (find_location_expression): New function.
10184 (dwarf_expr_frame_base): Call it.
10185 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10186 (dwarf2_tracepoint_var_ref): New function, broken out from
10187 locexpr_tracepoint_var_ref.
10188 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10189 Make static.
10190 (loclist_read_variable, loclist_read_needs_frame): New functions.
10191 (loclist_describe_location, loclist_tracepoint_var_ref): New
10192 functions.
10193 (dwarf2_loclist_funcs): New struct location_funcs.
10194 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10195 (struct dwarf2_locexpr_baton): Add comments.
10196 (dwarf2_loclist_funcs): New extern.
10197 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10198 base_address and base_known.
10199 (dwarf_loc_buffer): New variable.
10200 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10201 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10202 (dwarf2_has_info): Initialize dwarf_loc_offset.
10203 (dwarf2_build_psymtabs): Read in .debug_loc.
10204 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10205 DWARF_LOC_SIZE.
10206 (psymtab_to_symtab_1): Likewise. Move base address calculation
10207 here, from...
10208 (dwarf2_get_pc_bounds): ... here. Use the base address from
10209 cu_header.
10210 (dwarf2_symbol_mark_computed): Handle location lists.
10211
6aca59a3
DJ
102122003-04-13 Daniel Jacobowitz <drow@mvista.com>
10213
10214 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10215 if the linkage name demangled successfully.
10216
aca1fcd0
MK
102172003-04-13 Mark Kettenis <kettenis@gnu.org>
10218
97095916
MK
10219 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10220 disassmbly_flavour): Removed.
10221
aca1fcd0
MK
10222 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10223
562a961f
MK
102242003-04-13 Mark Kettenis <kettenis@gnu.org>
10225
10226 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10227
bd013d54
AC
102282003-04-12 Andrew Cagney <cagney@redhat.com>
10229
10230 * frame.h (struct frame_info): Move definition from here ...
10231 * frame.c (struct frame_info): ... to here.
10232
167ef8b1
AC
102332003-04-12 Andrew Cagney <cagney@redhat.com>
10234
10235 * gdbthread.h (save_infrun_state): Delete parameter
10236 "prev_func_start".
10237 (struct thread_info): Delete field "prev_func_start".
10238 (load_infrun_state): Ditto.
10239 * thread.c (load_infrun_state, save_infrun_state): Update.
10240 * infrun.c (prev_func_start): Delete variable.
10241 (context_switch, init_wait_for_inferior): Update.
10242 (stop_stepping, keep_going): Update.
10243
da3331ec
AC
102442003-04-12 Andrew Cagney <cagney@redhat.com>
10245
10246 * gdbarch.sh: Add missing opaque declarations.
10247 * gdbarch.h: Regnerate.
10248 * symtab.h: Add missing opaque declarations.
10249 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10250 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10251 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10252 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10253 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10254 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10255 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10256 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10257 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10258 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10259 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10260 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10261 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10262
18adea3f
AC
102632003-04-11 Andrew Cagney <cagney@redhat.com>
10264
10265 * frame.c (get_frame_id): Return this frame's "id".
10266 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10267 function start.
10268 (legacy_saved_regs_this_id): Replace function body with
10269 internal-error.
10270 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10271 FRAME_OBSTACK_ZALLOC.
10272 (create_new_frame): Mark the frame ID as valid.
10273
2252e863
AO
102742003-04-11 Alexandre Oliva <aoliva@redhat.com>
10275
10276 * Makefile.in (libbfd_h): Added missing setting.
10277 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10278 according to the selected ABI.
10279
a8245ab8
JJ
102802003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10281
10282 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10283
6913c89a
AC
102842003-04-11 Andrew Cagney <cagney@redhat.com>
10285
10286 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10287 SAVED_PC_AFTER_CALL.
10288 * gdbarch.h, gdbarch.c: Regenerate.
10289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10290 * x86-64-tdep.c (x86_64_init_abi): Update.
10291 * vax-tdep.c (vax_gdbarch_init): Update.
10292 * v850-tdep.c (v850_gdbarch_init): Update.
10293 * sparc-tdep.c (sparc_gdbarch_init): Update.
10294 * sh-tdep.c (sh_gdbarch_init): Update.
10295 * s390-tdep.c (s390_gdbarch_init): Update.
10296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10299 * mips-tdep.c (mips_gdbarch_init): Update.
10300 * mcore-tdep.c (mcore_gdbarch_init): Update.
10301 * m68k-tdep.c (m68k_gdbarch_init): Update.
10302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10303 * ia64-tdep.c (ia64_gdbarch_init): Update.
10304 (ia64_saved_pc_after_call): Update declaration.
10305 * i386ly-tdep.c (i386lynx_init_abi): Update.
10306 * i386-tdep.c (i386_gdbarch_init): Update.
10307 * hppa-tdep.c (hppa_gdbarch_init): Update.
10308 * h8300-tdep.c (h8300_gdbarch_init): Update.
10309 * frv-tdep.c (frv_gdbarch_init): Update.
10310 * cris-tdep.c (cris_gdbarch_init): Update.
10311 * avr-tdep.c (avr_gdbarch_init): Update.
10312 * arm-tdep.c (arm_gdbarch_init): Update.
10313 * alpha-tdep.c (alpha_gdbarch_init): Update.
10314 * ns32knbsd-nat.c (frame_num_args): Update.
10315 * ns32k-tdep.c (umax_frame_num_args): Update.
10316 * mips-tdep.c (mips_init_frame_pc_first): Update.
10317 * infrun.c (step_over_function): Update.
10318 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10319 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10320 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10321 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10322 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10323 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10324 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10325 * arch-utils.c (init_frame_pc_default): Update.
10326 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10327 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10328 declaration.
8ffd9b1b 10329
38edeab8
AC
103302003-04-11 Andrew Cagney <cagney@redhat.com>
10331
10332 * i387-tdep.c: Update copyright.
10333 (i387_to_double): Delete function.
10334 (double_to_i387): Delete function.
10335
81f8a206
AC
103362003-04-10 Andrew Cagney <cagney@redhat.com>
10337
10338 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10339 frame's function's address. Simplify.
10340 (d10v_frame_unwind_cache): Check that the frame's function is
10341 non-zero.
10342
6e691f7a
JB
103432003-04-10 Jim Blandy <jimb@redhat.com>
10344
10345 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10346 call to set_gdbarch_deprecated_push_arguments.
10347
7f78e237
AC
103482003-04-10 Andrew Cagney <cagney@redhat.com>
10349
10350 * frame.c (fprint_frame_id): New function.
10351 (fprint_frame_type, fprint_frame): New function.
10352 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10353 (create_sentinel_frame, get_frame_id): Ditto.
10354 (frame_id_p, frame_id_eq): Ditto.
10355 (frame_id_inner, create_new_frame): Ditto.
10356 (legacy_get_prev_frame, get_prev_frame): Ditto.
10357 (deprecated_update_frame_pc_hack): Ditto.
10358 (frame_register_unwind): Ditto.
10359 (deprecated_update_frame_base_hack): Ditto.
10360
f870b49b
CV
103612003-04-10 Corinna Vinschen <vinschen@redhat.com>
10362
10363 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10364 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10365 frame_chain function.
10366 * Makefile.in: Add dependencies due to above change.
10367
7c86889b
CV
103682003-04-10 Corinna Vinschen <vinschen@redhat.com>
10369
10370 * blockframe.c (legacy_frame_chain_valid): Move call to
10371 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10372 inside_entry_file.
10373
d0a55772
AC
103742003-04-09 Andrew Cagney <cagney@redhat.com>
10375
10376 * frame.h (struct frame_id): Replace "pc" and "base" with
10377 "stack_addr" and "code_addr". Update comments.
10378 (frame_id_build): Update parameter names and comment.
10379 (struct frame_info): Replace "id_p" and "id" with "this_id".
10380 * dummy-frame.c (dummy_frame_this_id): Update.
10381 * breakpoint.c (print_one_breakpoint): Update.
10382 * frame.c (get_frame_id): Update.
10383 (get_frame_base, frame_id_build): Update.
10384 (create_sentinel_frame, legacy_get_prev_frame): Update.
10385 (deprecated_update_frame_base_hack): Update.
10386 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10387 (frame_id_inner): Ditto.
10388
ac16bf07
AC
103892003-04-09 Andrew Cagney <cagney@redhat.com>
10390
10391 * defs.h (gdb_print_host_address): Make "addr" parameter a
10392 pointer constant.
10393 * utils.c (gdb_print_host_address): Update.
10394
366cfc9e
KB
103952003-04-09 Kevin Buettner <kevinb@redhat.com>
10396
10397 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10398 register number for R0 is 0.
10399
cd983b5c
JB
104002003-04-09 J. Brobecker <brobecker@gnat.com>
10401
10402 * frame.h (struct gdbarch): Add opaque structure definition
10403 to avoid a compilation warning on LynxOS 4.0.
10404
d1340264
AC
104052003-04-09 Andrew Cagney <cagney@redhat.com>
10406
10407 * frame.h (struct frame_info): Delete field "pc". Replace
10408 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10409 structure.
10410 * frame.c (frame_pc_unwind): Update.
10411 (create_sentinel_frame): Do not set "pc".
10412 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10413 (get_frame_pc): Call frame_pc_unwind.
10414 (deprecated_update_frame_pc_hack): Update.
10415 (create_new_frame): Use "pc" not "->pc".
10416
90a6fffb
AC
104172003-04-09 Andrew Cagney <cagney@redhat.com>
10418
10419 * frame.c (get_frame_id): Eliminate code updating "frame".
10420 (legacy_get_prev_frame): Ditto.
10421 (get_frame_base): Return id.base directly.
10422 (deprecated_update_frame_base_hack): Update "id.base".
10423 * frame.h (struct frame_info): Delete field "frame".
10424
2fbce691
AC
104252003-04-09 Andrew Cagney <cagney@redhat.com>
10426
10427 * NEWS: Mention that the "Sequent family" is obsolete.
10428 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10429 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10430 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10431 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10432 * config/i386/tm-ptx4.h: Obsolete file.
10433 * config/i386/tm-ptx.h: Obsolete file.
10434 * symm-tdep.c: Obsolete file.
10435 * config/i386/symmetry.mt: Obsolete file.
10436 * config/i386/tm-symmetry.h: Obsolete file.
10437 * symm-nat.c: Obsolete file.
10438 * config/i386/nm-symmetry.h: Obsolete file.
10439 * config/i386/xm-symmetry.h: Obsolete file.
10440 * config/i386/symmetry.mh: Obsolete file.
10441 * config/i386/nm-ptx4.h: Obsolete file.
10442 * config/i386/ptx4.mh: Obsolete file.
10443 * config/i386/ptx.mt: Obsolete file.
10444 * config/i386/ptx.mh: Obsolete file.
10445 * config/i386/xm-ptx4.h: Obsolete file.
10446 * config/i386/xm-ptx.h: Obsolete file.
10447
78c43945
AC
104482003-04-09 Andrew Cagney <cagney@redhat.com>
10449
10450 Obsolete mips*-*-mach3*.
10451 * NEWS: Mention that mips*-*-mach3* is obsolete.
10452 * m3-nat.c: Obsolete file.
10453 * config/nm-m3.h: Obsolete file.
10454 * config/mips/tm-mipsm3.h: Obsolete file.
10455 * config/mips/mipsm3.mt: Obsolete file.
10456 * config/mips/mipsm3.mh: Obsolete file.
10457 * config/mips/xm-mipsm3.h: Obsolete file.
10458 * mipsm3-nat.c: Obsolete file.
10459 * configure.host: Obsolete mips-dec-mach3*.
10460 * configure.tgt: Obsolete mips*-*-mach3*.
10461
f1908289
AC
104622003-04-09 Andrew Cagney <cagney@redhat.com>
10463
10464 * doublest.h: Update copyright.
10465 (deprecated_store_floating, deprecated_extract_floating): Rename
10466 store_floating and extract_floating. Update comments.
10467 * doublest.c: Update copyright.
10468 (extract_floating_by_length): Replace extract_floating.
10469 (store_floating_by_length): Replace store_floating.
10470 (deprecated_extract_floating): New function.
10471 (deprecated_store_floating): New function.
10472 (extract_typed_floating): Call extract_floating_by_length.
10473 (store_typed_floating): Call store_floating_by_length.
10474 * x86-64-tdep.c (x86_64_store_return_value): Update.
10475 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10476 (sh64_extract_return_value): Update.
10477 (sh_sh4_register_convert_to_virtual): Update.
10478 (sh_sh64_register_convert_to_virtual): Update.
10479 (sh_sh4_register_convert_to_raw): Update.
10480 (sh_sh64_register_convert_to_raw): Update.
10481 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10482 (rs6000_register_convert_to_raw): Update.
10483 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10484 (ia64_register_convert_to_raw): Update.
10485 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10486 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10487 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10488 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10489 (alpha_register_convert_to_raw): Update.
10490
4443bd83
AC
104912003-04-08 Andrew Cagney <cagney@redhat.com>
10492
10493 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10494 * gdbarch.h, gdbarch.c: Re-generate.
10495 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10496 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10497 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10498 conditionally, use frame_pc_unwind as an alternative. Add
10499 comments.
10500 * arch-utils.c (init_frame_pc_default): Only call
10501 SAVED_PC_AFTER_CALL when available.
10502
c0236d92
EZ
105032003-04-08 Elena Zannoni <ezannoni@redhat.com>
10504
fbe586ae 10505 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10506 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10507 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10508 (start_remote): Ditto.
10509 (handle_inferior_event): Ditto.
10510 (save_inferior_status): Ditto.
10511 (restore_inferior_status): Ditto.
10512 * infcmd.c (attach_command): Ditto.
10513 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10514 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10515 * alpha-tdep.c (heuristic_proc_start): Ditto.
10516 * mips-tdep.c (heuristic_proc_start): Ditto.
10517 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10518 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10519 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10520 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10521 * remote-vx.c (vx_create_inferior): Ditto.
10522
105232003-04-08 Elena Zannoni <ezannoni@redhat.com>
10524
10525 * infrun.c (stop_soon_quietly): Make it an enum, to better
10526 override the default behavior of handle_inferior_event.
10527 (clear_proceed_status): Update uses of stop_soon_quietly to
10528 reflect that it is now an enum.
10529 (start_remote): Ditto.
10530 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10531 is set to handle the new GNU/Linux kernel behavior for
10532 attach/sigstop. Update uses of stop_soon_quietly.
10533 * inferior.h (enum stop_kind): New enum.
10534 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10535 Reset normal handle_inferior_event behavior, afterwards.
10536 * fork-child.c (startup_inferior): Update.
10537 * alpha-tdep.c (heuristic_proc_start): Update.
10538 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10539 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10540 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10541 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10542 * remote-vx.c (vx_create_inferior): Update.
10543 * mips-tdep.c (heuristic_proc_start): Update.
10544
1211bce3
EZ
105452003-04-07 Elena Zannoni <ezannoni@redhat.com>
10546
10547 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10548 be freed more than once, causing wild memory corruptions.
1211bce3 10549 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10550 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10551 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10552 with the "core" target.
1211bce3 10553
f0ef6b29
KB
105542003-04-07 Kevin Buettner <kevinb@redhat.com>
10555
10556 * mips-tdep.c (mips_print_fp_register): New function, created from
10557 do_fp_register_row(). Registers are now (also) printed as hex.
10558 Only one register is printed per row.
10559 (mips_print_register, do_fp_register_row): Print floating point
10560 registers with mips_print_fp_register().
10561
8cf71652
AC
105622003-04-06 Andrew Cagney <cagney@redhat.com>
10563
5e488a7b
AC
10564 * valprint.h (inspect_it): Add extern declaration.
10565 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10566 (selectors_info, classes_info): Ditto.
10567 (find_objc_msgcall): Fix indentation.
10568 (objc_printstr): Delete extern declarations.
10569
8cf71652
AC
10570 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10571
e6ba3bc9
AC
105722003-04-06 Andrew Cagney <cagney@redhat.com>
10573
10574 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10575 Update comment.
10576 * frame.c (legacy_saved_regs_this_id): Update.
10577 (legacy_get_prev_frame): Update.
10578 * xstormy16-tdep.c: Update comment.
10579 * sparc-tdep.c (sparc_frame_chain): Update comment.
10580 * blockframe.c (legacy_frame_chain_valid): Update.
10581
55e1d7e7
AC
105822003-04-06 Andrew Cagney <cagney@redhat.com>
10583
996179ee
AC
10584 * valprint.c (val_print_type_code_int): Delete #ifdef
10585 PRINT_TYPELESS_INTEGER code.
10586
55e1d7e7
AC
10587 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10588 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10589 multi-arch definition.
10590 * gdbarch.h: Re-generate.
10591
43bd9a9e
AC
105922003-04-05 Andrew Cagney <cagney@redhat.com>
10593
10594 Eliminate FRAME_FIND_SAVED_REGS.
10595 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10596 Change FSR parameter to a pointer.
10597 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10598 Assume FSR parameter is a pointer.
10599 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10600 Make fsr a pointer.
10601 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10602 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10603 saved_regs a pointer.
10604 (hppa_frame_saved_pc): Ditto.
10605 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10606 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10607 pointer.
10608 (restore_pc_queue): Make fsr a pointer.
10609 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10610 (hppa_frame_chain): Make saved_regs a pointer, call
10611 hppa_frame_init_saved_regs.
10612 * sparc-tdep.c: Include "gdb_assert.h".
10613 (sparc_frame_find_saved_regs): Replace internal_error with
10614 gdb_assert.
10615 * remote-vxsparc.c (vx_read_register): Delete reference to
10616 FRAME_FIND_SAVED_REGS.
10617 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10618 * gdbarch.h: Regenerate.
10619 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10620 (deprecated_get_frame_saved_regs): Delete declaration.
10621 (struct frame_saved_regs): Delete definition.
10622 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10623 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10624 (hppa_frame_find_saved_regs): Delete declaration.
10625 (FRAME_FIND_SAVED_REGS): Delete macro.
10626 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10627 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10628 FRAME_FIND_SAVED_REGS in comment.
10629
be41e9f4
AC
106302003-04-05 Andrew Cagney <cagney@redhat.com>
10631
10632 * frame.c (frame_func_unwind, get_frame_func): New functions.
10633 * frame.h (get_frame_func, frame_func_unwind): Declare.
10634 (struct frame_info): Add field "prev_func" for caching the
10635 previous frame's function address.
10636 * arm-tdep.c (arm_frameless_function_invocation): Combine
10637 get_pc_function_start and get_frame_pc into get_frame_func.
10638 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10639 (sh64_nofp_frame_init_saved_regs): Ditto.
10640 * s390-tdep.c (s390_function_start): Ditto.
10641 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10642 (rs6000_frameless_function_invocation): Ditto.
10643 (rs6000_frame_saved_pc): Ditto.
10644 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10645 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10646 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10647 (i386_frame_init_saved_regs): Ditto.
10648 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10649 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10650 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10651 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10652 * blockframe.c (frameless_look_for_prologue): Ditto.
10653
a01dd7cc
AC
106542003-04-05 Andrew Cagney <cagney@redhat.com>
10655
10656 * frame.c (legacy_get_prev_frame): Link prev to next at the
10657 function start. Update comments.
10658
5e5592e6
AC
106592003-04-05 Andrew Cagney <cagney@redhat.com>
10660
10661 * frame.c (get_frame_id): Update comment.
10662 (legacy_get_prev_frame): Update comment.
10663 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10664 * gdbarch.h: Regenerate.
10665 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10666 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10667
6fba5002
AC
106682003-04-05 Andrew Cagney <cagney@redhat.com>
10669
10670 * stack.c (print_frame_info): Use get_frame_pc.
10671
7df05f2b
AC
106722003-04-04 Andrew Cagney <cagney@redhat.com>
10673
10674 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10675 the frame's type from the unwinder.
10676 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10677 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10678 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10679 (get_frame_base_address): Use get_frame_type.
10680 (get_frame_locals_address, get_frame_args_address): Ditto.
10681 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10682 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10683 (struct frame_info): Add comment explaining why the frame contains
10684 a "type" field.
10685 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10686 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10687 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10688 NORMAL_FRAME.
10689 * frame-unwind.h: Include "frame.h".
10690 (struct frame_unwind): Add "type" field.
10691 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10692
11889732
AC
106932003-04-04 Andrew Cagney <cagney@redhat.com>
10694
10695 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10696 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10697 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10698 get_frame_base.
10699 (d10v_unwind_dummy_id): Use frame_id_build.
10700 * frame.c (find_frame_sal): Use get_frame_pc.
10701 (create_new_frame): Use deprecated_update_frame_pc_hack and
10702 deprecated_update_frame_base_hack.
10703 (create_sentinel_frame): Add comment about ->pc going away.
10704 (get_prev_frame): Add comment about ->pc going away.
10705 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10706 frame_id_build, deprecated_update_frame_pc_hack and
10707 deprecated_update_frame_base_hack.
10708 (select_frame): Use get_frame_pc.
10709 (legacy_saved_regs_this_id): Use frame_id_build.
10710
50c46a0d
EZ
107112003-04-04 Elena Zannoni <ezannoni@redhat.com>
10712
fbe586ae
RH
10713 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10714 signed integer case.
10715 (classify_argument): Handle enumerations and references.
50c46a0d 10716
50bbdbd9
AC
107172003-04-04 Andrew Cagney <cagney@redhat.com>
10718
10719 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10720 ID to NULL.
10721
36018d2e
AF
107222003-04-01 Adam Fedor <fedor@gnu.org>
10723
10724 * gdb/objc-lang.c (selectors_info): Replace calls to
10725 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10726 SYMBOL_NATURAL_NAME.
10727 (classes_info, find_methods): Likewise.
10728
35cec841
KB
107292003-04-03 Kevin Buettner <kevinb@redhat.com>
10730
10731 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10732 ``mach'' to the value determined by bfd_default_set_arch_mach().
10733
43136899
BR
107342003-04-02 Bob Rossi <bob_rossi@cox.net>
10735
10736 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10737 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10738 (mi-cmd-file.o): Update dependencies.
10739
040b99fd
KB
107402003-04-01 Kevin Buettner <kevinb@redhat.com>
10741
10742 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10743 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10744
9a3d7dfd
AF
107452003-04-01 Adam Fedor <fedor@gnu.org>
10746
10747 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10748 * language.h (struct language_defn): Add la_demangle.
10749 (language_demangle): Declare.
10750 * language.c (language_demangle): New function.
10751 (unk_lang_demangle): Likewise.
10752 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10753 Add ukn_lang_demangle.
9a3d7dfd 10754 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10755 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10756 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10757 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10758 * jv-lang.c (java_demangle): New function
10759 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10760 * objc-lang.c (objc_demangle): Add options argument
10761 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10762 * maint.c (maintenance_demangle): Replace switch with
10763 call to language_demangle.
10764 * utils.c (fprintf_symbol_filtered): Likewise.
10765
5e074003
AC
107662003-04-01 Andrew Cagney <cagney@redhat.com>
10767
10768 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10769 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10770 PRINT_TYPELESS_INTEGER.
10771 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10772 PUSH_RETURN_ADDRESS.
10773
270cb5d6
AC
107742003-04-01 Andrew Cagney <cagney@redhat.com>
10775
10776 * Makefile.in (d10v-tdep.o): Update dependencies.
10777 * d10v-tdep.c: Include "frame-base.h".
10778 (d10v_frame_unwind): Make constant.
10779 (d10v_frame_base_address): New function.
10780 (d10v_frame_base): New variable.
10781 (d10v_gdbarch_init): Set frame_base default.
10782 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10783 comment for base.
10784 (d10v_frame_unwind_cache): Set and use "prev_sp".
10785 (d10v_frame_this_id): Use the previous frame's inner most stack
10786 address and this frame's func address for the frame ID. Use
10787 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10788
6bfb3e36
AC
107892003-04-01 Andrew Cagney <cagney@redhat.com>
10790
10791 * frame.h (get_frame_locals_address, get_frame_args_address):
10792 Refer to the base address, instead of the address of the first
10793 local or parameter.
8ffd9b1b 10794
da62e633
AC
107952003-04-01 Andrew Cagney <cagney@redhat.com>
10796
10797 Add frame debug info addresses:
10798 * frame-base.c: New file.
10799 * frame-base.h: New file.
10800 * frame.h (struct frame_base): Add opaque declaration.
10801 (get_frame_base): Update comment.
10802 (get_frame_base_address): Declare.
10803 (get_frame_locals_address): Declare.
10804 (get_frame_args_address): Declare.
10805 (struct frame_info): Add "base" and "base_cache". Update
10806 comments on the unwinder.
10807 * frame.c: Include "frame-base.h".
10808 (get_frame_locals_address): New function.
10809 (get_frame_base_address): New function.
10810 (get_frame_args_address): New function.
10811 * findvar.c (read_var_value): Use get_frame_locals_address and
10812 get_frame_args_address.
10813 * stack.c (frame_info): Use get_frame_locals_address and
10814 get_frame_args_address.
10815 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10816 moved to "frame-base.c".
10817 * printcmd.c (print_frame_nameless_args): Ditto.
10818 * symtab.h (address_class): Update comments.
10819 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10820 get_frame_base_address.
10821 * dwarf2expr.c (execute_stack_op): Ditto.
10822 * Makefile.in (frame_base_h): Define.
10823 (frame.o): Update dependencies.
10824 (frame-base.o): Add dependencies.
10825 (SFILES): Add frame-base.c.
10826 (COMMON_OBS): Add frame-base.o.
10827
3d30e9c2
AC
108282003-04-01 Andrew Cagney <cagney@redhat.com>
10829
10830 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10831 CALL_DUMMY_LENGTH): Ditto.
10832 * gdbarch.c: Re-generate.
10833 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10834 (CALL_DUMMY_LENGTH): Delete macro.
10835 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10836 * arm-tdep.c (arm_gdbarch_init): Ditto.
10837 * avr-tdep.c (avr_gdbarch_init): Ditto.
10838 * cris-tdep.c (cris_gdbarch_init): Ditto.
10839 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10840 * frv-tdep.c (frv_gdbarch_init): Ditto.
10841 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10842 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10843 * i386-tdep.c (i386_gdbarch_init): Ditto.
10844 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10845 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10846 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10847 * mips-tdep.c (mips_gdbarch_init): Ditto.
10848 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10849 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10850 * s390-tdep.c (s390_gdbarch_init): Ditto.
10851 * sh-tdep.c (sh_gdbarch_init): Ditto.
10852 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10853 * v850-tdep.c (v850_gdbarch_init): Ditto.
10854 * vax-tdep.c (vax_gdbarch_init): Ditto.
10855 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10856
ce0c7262
CV
108572003-04-01 Corinna Vinschen <vinschen@redhat.com>
10858
10859 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10860
73dd234f
AC
108612003-04-01 Andrew Cagney <cagney@redhat.com>
10862
10863 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10864 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10865 * gdbarch.h, gdbarch.c: Re-generate.
10866 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10867 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10868 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10869 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10870 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10871 * infcmd.c (run_stack_dummy): Simplify assuming
10872 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10873 * infrun.c (handle_inferior_event): Ditto.
10874 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10875 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10876 * arm-tdep.c (arm_gdbarch_init): Ditto.
10877 * avr-tdep.c (avr_gdbarch_init): Ditto.
10878 * cris-tdep.c (cris_gdbarch_init): Ditto.
10879 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10880 * frv-tdep.c (frv_gdbarch_init): Ditto.
10881 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10882 * i386-tdep.c (i386_gdbarch_init): Ditto.
10883 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10884 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10885 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10886 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10887 * mips-tdep.c (mips_gdbarch_init): Ditto.
10888 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10889 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10890 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10891 * s390-tdep.c (s390_gdbarch_init): Ditto.
10892 * sh-tdep.c (sh_gdbarch_init): Ditto.
10893 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10894 * v850-tdep.c (v850_gdbarch_init): Ditto.
10895 * vax-tdep.c (vax_gdbarch_init): Ditto.
10896 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10897
97606a13
DJ
108982003-04-01 Daniel Jacobowitz <drow@mvista.com>
10899
10900 * symfile.c (symfile_relocate_debug_section): Update call to
10901 bfd_simple_get_relocated_section_contents.
10902
e8ab51f7
AC
109032003-03-31 Andrew Cagney <cagney@redhat.com>
10904
10905 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10906 * gdbarch.h, gdbarch.c: Regenerate.
10907 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10908 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10909 available.
10910 * frame.h (generic_fix_call_dummy): Delete declaration.
10911 * dummy-frame.h: Update comment.
10912 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10913 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10914 fix_call_dummy.
10915 * sh-tdep.c (sh_gdbarch_init): Ditto.
10916 * s390-tdep.c (s390_gdbarch_init): Ditto.
10917 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10918 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10919 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10920 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10921 * i386-tdep.c (i386_gdbarch_init): Ditto.
10922 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10923 * frv-tdep.c (frv_gdbarch_init): Ditto.
10924 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10925 * cris-tdep.c (cris_gdbarch_init): Ditto.
10926 * avr-tdep.c (avr_gdbarch_init): Ditto.
10927 * arm-tdep.c (arm_gdbarch_init): Ditto.
10928
018d1b48
JB
109292003-03-31 J. Brobecker <brobecker@gnat.com>
10930
10931 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10932 (INIT_FRAME_AP): Likewise.
10933 (EXTRA_FRAME_INFO): Likewise.
10934
e9a2674e
AC
109352003-03-31 Andrew Cagney <cagney@redhat.com>
10936
10937 * gdbarch.sh: Include "symfile.h".
10938 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10939 * gdbarch.h, gdbarch.c: Re-generate.
10940 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10941 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10942 call_dummy_address, the default is at entry_point_address.
10943 * v850-tdep.c (v850_gdbarch_init): Ditto.
10944 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10945 * sh-tdep.c (sh_gdbarch_init): Ditto.
10946 * s390-tdep.c (s390_gdbarch_init): Ditto.
10947 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10948 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10949 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10950 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10951 * i386-tdep.c (i386_gdbarch_init): Ditto.
10952 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10953 * frv-tdep.c (frv_gdbarch_init): Ditto.
10954 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10955 * cris-tdep.c (cris_gdbarch_init): Ditto.
10956 * arm-tdep.c (arm_gdbarch_init): Ditto.
10957
e8a8712a
AC
109582003-03-31 Andrew Cagney <cagney@redhat.com>
10959
10960 * gdbarch.sh (CALL_DUMMY_P): Delete.
10961 * gdbarch.h, gdbarch.c: Re-generate.
10962 * inferior.h (CALL_DUMMY_P): Delete macro.
10963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10964 * vax-tdep.c (vax_gdbarch_init): Update.
10965 * v850-tdep.c (v850_gdbarch_init): Update.
10966 * sparc-tdep.c (sparc_gdbarch_init): Update.
10967 * sh-tdep.c (sh_gdbarch_init): Update.
10968 * s390-tdep.c (s390_gdbarch_init): Update.
10969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10970 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10971 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10972 * mips-tdep.c (mips_gdbarch_init): Update.
10973 * mcore-tdep.c (mcore_gdbarch_init): Update.
10974 * m68k-tdep.c (m68k_gdbarch_init): Update.
10975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10976 * ia64-tdep.c (ia64_gdbarch_init): Update.
10977 * i386-tdep.c (i386_gdbarch_init): Update.
10978 * h8300-tdep.c (h8300_gdbarch_init): Update.
10979 * frv-tdep.c (frv_gdbarch_init): Update.
10980 * d10v-tdep.c (d10v_gdbarch_init): Update.
10981 * cris-tdep.c (cris_gdbarch_init): Update.
10982 * breakpoint.c (deprecated_frame_in_dummy): Update.
10983 * avr-tdep.c (avr_gdbarch_init): Update.
10984 * alpha-tdep.c (alpha_gdbarch_init): Update.
10985 * arm-tdep.c (arm_gdbarch_init): Update.
10986 * dummy-frame.c (dummy_frame_this_id): Update comments.
10987 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10988 * frame.c (legacy_get_prev_frame): Ditto.
10989 * valops.c (call_function_by_hand): Delete function.
10990 (hand_function_call): Rename to call_function_by_hand
10991
ed234cf8
AC
109922003-03-30 Andrew Cagney <cagney@redhat.com>
10993
10994 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10995 * value.h (struct value): Update comment.
ed234cf8 10996
06c77151
AC
109972003-03-30 Andrew Cagney <cagney@redhat.com>
10998
6c2b5168
AC
10999 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
11000 D10V_FP_REGNUM.
11001 (d10v_gdbarch_init): Do not set fp_regnum.
11002
06c77151
AC
11003 * frame.c (get_frame_base): Force ID initialization.
11004 (get_prev_frame): Move computation of the frame ID from here ...
11005 (get_frame_id): ... to here.
11006 (legacy_get_prev_frame): Mark the frame ID as valid.
11007 * frame.h (struct frame_info): Add field "id_p".
11008
97a1a11c
MK
110092003-03-30 Mark Kettenis <kettenis@gnu.org>
11010
11011 * i386-tdep.c (i386_store_struct_return): Removed.
11012 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
11013
6c0e89ed
AC
110142003-03-30 Andrew Cagney <cagney@redhat.com>
11015
11016 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
11017 * gdbarch.h, gdbarch.c: Regenerate.
11018 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
11019 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
11020 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11021 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11022 * i386-tdep.c (i386_gdbarch_init): Ditto.
11023 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11024 * cris-tdep.c (cris_gdbarch_init): Ditto.
11025 * vax-tdep.c (vax_gdbarch_init): Ditto.
11026 * s390-tdep.c (s390_gdbarch_init): Ditto.
11027 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11028 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11029 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11030 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11031 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11032 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11033 * sparc-tdep.c (sparc_gdbarch_init): Update.
11034 * sh-tdep.c (sh_gdbarch_init): Update.
11035 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11036 * mips-tdep.c (mips_gdbarch_init): Update.
11037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11038 * ia64-tdep.c (ia64_gdbarch_init): Update.
11039 * frv-tdep.c (frv_gdbarch_init): Update.
11040 * avr-tdep.c (avr_gdbarch_init): Update.
11041 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11042 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11043 instead of when push_dummy_call is not available.
8ffd9b1b 11044
f7dd6af2
AC
110452003-03-30 Andrew Cagney <cagney@redhat.com>
11046
11047 * infttrace.c: Include "gdbthread.h".
11048 (parent_attach_all): Fix function signature.
11049 (call_ptrace): Update call.
11050 * Makefile.in (infttrace.o): Update dependencies.
11051
28f617b3
AC
110522003-03-30 Andrew Cagney <cagney@redhat.com>
11053
11054 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11055 PUSH_RETURN_ADDRESS.
11056 * gdbarch.h, gdbarch.c: Regenerate.
11057 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11058 * x86-64-tdep.c (x86_64_init_abi): Update.
11059 * v850-tdep.c (v850_gdbarch_init): Update.
11060 * sparc-tdep.c (sparc_gdbarch_init): Update.
11061 * sh-tdep.c (sh_gdbarch_init): Update.
11062 * s390-tdep.c (s390_gdbarch_init): Update.
11063 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11064 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11065 * mips-tdep.c (mips_gdbarch_init): Update.
11066 * mcore-tdep.c (mcore_gdbarch_init): Update.
11067 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11068 * ia64-tdep.c (ia64_gdbarch_init): Update.
11069 * i386-tdep.c (i386_gdbarch_init): Update.
11070 * h8300-tdep.c (h8300_gdbarch_init): Update.
11071 * frv-tdep.c (frv_gdbarch_init): Update.
11072 * cris-tdep.c (cris_gdbarch_init): Update.
11073 * avr-tdep.c (avr_gdbarch_init): Update.
11074 * arm-tdep.c (arm_gdbarch_init): Update.
11075 * valops.c (hand_function_call): Update.
11076
4d628cd7
AC
110772003-03-29 Andrew Cagney <cagney@redhat.com>
11078
11079 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11080 sizeof_call_dummy_words.
11081 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11082 define.
11083 * gdbarch.h: Regenerate.
8ffd9b1b 11084
65e82032
AC
110852003-03-29 Andrew Cagney <cagney@redhat.com>
11086
11087 * infttrace.h: New file.
11088 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11089 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11090 (hpread_read_doc_function_type): Detect an initialized type1.
11091 (hpread_quick_traverse): Initialize mod_name_string.
11092 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11093 (som_solib_get_solib_by_pc): Declare.
11094 (so_lib_thread_start_addr): Declare.
11095 (no_shared_libraries): Declare.
11096 * somread.c (init_import_symbols): Make static. Add forward
11097 declaration.
11098 * config/pa/nm-hppah.h: Include "infttrace.h" for
11099 parent_attach_all.
11100 (hppa_insert_hw_watchpoint): Declare.
11101 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11102 * hppah-nat.c: Include "gdb_string.h".
11103 (parent_attach_all): Delete extern declaration, moved to
11104 "infttrace.h".
11105 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11106 int.
11107 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11108 * Makefile.in (infttrace_h): Define.
11109 (hpread.o): Update dependencies.
11110 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11111 * hppa-hpux-tdep.c: Include "gdb_string.h".
11112 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11113 * infrun.c (handle_inferior_event): Always initialize
11114 stepped_after_stopped_by_watchpoint. Add default and remove
11115 fallthrough in switch statement.
11116 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11117 parameter to int.
11118 (hppa_remove_hw_watchpoint): Ditto.
11119
2c3bbe77
AC
111202003-03-29 Andrew Cagney <cagney@redhat.com>
11121
11122 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11123 offset.
11124
2dd604e7
RE
111252003-03-29 Richard Earnshaw <rearnsha@arm.com>
11126
11127 * arm-tdep.c (arm_push_arguments): Delete.
11128 (struct stack_item): New type.
11129 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11130 (arm_store_struct_return): Delte.
11131 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11132 arm_push_arguments or arm_store_struct_return.
11133
e8933a55
AC
111342003-03-28 Andrew Cagney <cagney@redhat.com>
11135
11136 * Makefile.in (d10v-tdep.o): Update dependencies.
11137 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11138 * d10v-tdep.c: Include "remote.h".
11139 (target_resume_hook): Delete extern declaration.
11140 (target_wait_loop_hook): Ditto.
11141 (tdisassemble_command): Eliminate assignment in "if" conditional.
11142 (d10v_ts2_register_sim_regno): Eliminate call to
11143 legacy_register_sim_regno.
11144 (d10v_ts3_register_sim_regno): Ditto.
11145
6949171e
JJ
111462003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11147
11148 * thread.c: Reindented.
11149 * lin-lwp.c: Ditto.
11150 * linux-proc.c: Ditto.
11151
98c7071f
BR
111522003-03-28 Bob Rossi <bob_rossi@cox.net>
11153
fbe586ae 11154 * MAINTAINERS (write after approval): Add myself.
98c7071f 11155
5edc9ca6
TR
111562003-03-27 Theodore A. Roth <troth@openavr.org>
11157
11158 * objc-exp.y: Add missing semi-colons.
11159
378bfd1b
AC
111602003-03-27 Andrew Cagney <cagney@redhat.com>
11161
11162 * regcache.c (write_sp): Delete function and references.
11163 * inferior.h (write_sp): Delete declaration.
11164 * valops.c (hand_function_call): Replace write_sp with
11165 TARGET_WRITE_SP.
11166 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11167 (sparc_pop_frame): Ditto.
8ffd9b1b 11168
56056df7
AC
111692003-03-27 Andrew Cagney <cagney@redhat.com>
11170
11171 * NEWS: Mention removal of support for hppa*-*-bsd* and
11172 hppa*-*-osf* natives, and hppa*-*-pro* target.
11173 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11174 * config/pa/xm-pa.h: Obsolete file.
11175 * config/pa/xm-hppab.h: Obsolete file.
11176 * config/pa/nm-hppab.h: Obsolete file.
11177 * config/pa/tm-hppab.h: Obsolete file.
11178 * config/pa/tm-hppao.h: Obsolete file.
11179 * config/pa/nm-hppao.h: Obsolete file.
11180 * config/pa/tm-pro.h: Obsolete file.
11181 * config/pa/hppaosf.mt: Obsolete file.
11182 * config/pa/hppaosf.mh: Obsolete file.
11183 * config/pa/hppapro.mt: Obsolete file.
11184 * config/pa/hppabsd.mt: Obsolete file.
11185 * config/pa/hppabsd.mh: Obsolete file.
11186 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11187 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11188 hppa*-*-osf*.
11189
5873a88d
AC
111902003-03-27 Andrew Cagney <cagney@redhat.com>
11191
11192 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11193 push_arguments. Don't set push_return_address or write_sp.
11194 (d10v_push_dummy_call): Replace d10v_push_arguments.
11195 (d10v_push_return_address, d10v_write_sp): Delete function,
11196 handled by push_dummy_call.
11197
b81774d8
AC
111982003-03-26 Andrew Cagney <cagney@redhat.com>
11199
11200 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11201 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11202 regcache and dummy_addr parameters.
11203 * gdbarch.h, gdbarch.c: Re-generate.
11204 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11205 available; assume it will handle stack alignment and return
11206 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11207 legacy_push_arguments.
11208 (legacy_push_arguments): Rename default_push_arguments.
11209 * value.h (legacy_push_arguments): Rename default_push_arguments.
11210 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11211 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11212 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11213 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11214 * config/i386/tm-symmetry.h: Update.
11215 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11216 * x86-64-tdep.c (x86_64_init_abi): Update.
11217 * v850-tdep.c (v850_gdbarch_init): Update.
11218 * sparc-tdep.c (sparc_gdbarch_init): Update.
11219 * sh-tdep.c (sh_gdbarch_init): Update.
11220 * s390-tdep.c (s390_gdbarch_init): Update.
11221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11222 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11223 * mips-tdep.c (mips_gdbarch_init): Update.
11224 * mcore-tdep.c (mcore_gdbarch_init): Update.
11225 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11226 * ia64-tdep.c (ia64_gdbarch_init): Update.
11227 * i386-tdep.c (i386_gdbarch_init): Update.
11228 * hppa-tdep.c (hppa_gdbarch_init): Update.
11229 * h8300-tdep.c (h8300_gdbarch_init): Update.
11230 * frv-tdep.c (frv_gdbarch_init): Update.
11231 * d10v-tdep.c (d10v_gdbarch_init): Update.
11232 * cris-tdep.c (cris_gdbarch_init): Update.
11233 * avr-tdep.c (avr_gdbarch_init): Update.
11234 * arm-tdep.c (arm_gdbarch_init): Update.
11235 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11236 * alpha-tdep.c (alpha_gdbarch_init): Update.
11237
f541410f
DJ
112382003-03-26 Daniel Jacobowitz <drow@mvista.com>
11239
11240 * signals/signals.c (do_target_signal_to_host): Correct realtime
11241 signal range test.
11242
69f567ae
DJ
112432003-03-26 Daniel Jacobowitz <drow@mvista.com>
11244
11245 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11246 (struct sal_chain, map_catch_names): Remove.
11247 (catch_exception_command_1): Don't call
11248 handle_gnu_4_16_catch_command.
11249
d5d14a5a
DJ
112502003-03-26 Daniel Jacobowitz <drow@mvista.com>
11251
11252 From Mark Dettinger <dettinge@de.ibm.com>:
11253 * dwarf2cfi.c (read_2u): Increment pointer by two.
11254
bdd73e22
DJ
112552003-03-26 Daniel Jacobowitz <drow@mvista.com>
11256
11257 * signals/signals.c: Fix typos in last change.
11258
960cb555
DJ
112592003-03-26 Daniel Jacobowitz <drow@mvista.com>
11260
11261 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11262 not already defined. Use __SIGRTMIN if available.
11263 (target_signal_from_host): Remove SIGRTMIN block.
11264 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11265 the signal is within the realtime range.
11266
f636b87d
AF
112672003-03-25 Adam Fedor <fedor@gnu.org>
11268
11269 * Makefile.in (infrun.o): Add $(language_h)
11270 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11271 for language specific trampolines.
11272 * language.h (struct language_defn): Add skip_trampoline.
11273 (skip_language_trampoline): Declare.
11274 * language.c (unk_lang_trampoline, skip_language_trampoline):
11275 New functions.
11276 (unknown_language_defn, auto_language_defn, local_language_defn):
11277 Add ukn_lang_trampoline.
11278 * ada-lang.c (ada_language_defn): Add NULL for language
11279 specific skip_trampoline.
11280 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11281 scm-lang.c: Likewise.
11282 * objc-lang.c (objc_skip_trampoline): New function.
11283 (objc_language_defn): Add objc_skip_trampoline.
11284
28f617b3 112852003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11286
11287 * frame.c (get_prev_frame): Delay validating a frame's ID -
11288 non-NULL, didn't go backwards - until an attempt to unwind it to
11289 the previous frame.
11290
f933a9c5
AC
112912003-03-25 Andrew Cagney <cagney@redhat.com>
11292
11293 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11294 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11295 * gdbarch.h, gdbarch.c: Re-generate.
11296 * config/sparc/tm-sparc.h
11297 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11298 * sparc-tdep.c (sparc_gdbarch_init): Set
11299 deprecated_extra_stack_alignment_needed.
11300 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11301 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11302 extra_stack_alignment_needed.
11303 * v850-tdep.c (v850_gdbarch_init): Ditto.
11304 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11305 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11306 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11307 * cris-tdep.c (cris_gdbarch_init): Ditto.
11308 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11309 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11310
4183d812
AC
113112003-03-25 Andrew Cagney <cagney@redhat.com>
11312
11313 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11314 STORE_STRUCT_RETURN.
11315 * gdbarch.h, gdbarch.c: Regenerate.
11316 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11317 (d10v_push_arguments): Set the struct return register.
11318 (d10v_gdbarch_init): Update.
11319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11320 * x86-64-tdep.c (x86_64_init_abi): Update.
11321 * vax-tdep.c (vax_gdbarch_init): Update.
11322 * v850-tdep.c (v850_gdbarch_init): Update.
11323 * sparc-tdep.c (sparc_gdbarch_init): Update.
11324 * sh-tdep.c (sh_gdbarch_init): Update.
11325 * s390-tdep.c (s390_gdbarch_init): Update.
11326 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11327 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11328 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11329 * mips-tdep.c (mips_gdbarch_init): Update.
11330 * mcore-tdep.c (mcore_gdbarch_init): Update.
11331 * m68k-tdep.c (m68k_gdbarch_init): Update.
11332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11333 * ia64-tdep.c (ia64_gdbarch_init): Update.
11334 * i386-tdep.c (i386_gdbarch_init): Update.
11335 * hppa-tdep.c (hppa_gdbarch_init): Update.
11336 * h8300-tdep.c (h8300_gdbarch_init): Update.
11337 * frv-tdep.c (frv_gdbarch_init): Update.
11338 * cris-tdep.c (cris_gdbarch_init): Update.
11339 * avr-tdep.c (avr_gdbarch_init): Update.
11340 * arm-tdep.c (arm_gdbarch_init): Update.
11341 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11342
1bf6d5cc
AC
113432003-03-25 Andrew Cagney <cagney@redhat.com>
11344
11345 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11346 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11347 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11348 * gdbarch.h, gdbarch.c: Regenerate.
11349 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11350 call_dummy_stack_adjust_p.
11351 * vax-tdep.c (vax_gdbarch_init): Ditto.
11352 * v850-tdep.c (v850_gdbarch_init): Ditto.
11353 * sh-tdep.c (sh_gdbarch_init): Ditto.
11354 * s390-tdep.c (s390_gdbarch_init): Ditto.
11355 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11356 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11357 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11358 * mips-tdep.c (mips_gdbarch_init): Ditto.
11359 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11360 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11361 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11362 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11363 * i386-tdep.c (i386_gdbarch_init): Ditto.
11364 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11365 * frv-tdep.c (frv_gdbarch_init): Ditto.
11366 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11367 * cris-tdep.c (cris_gdbarch_init): Ditto.
11368 * avr-tdep.c (avr_gdbarch_init): Ditto.
11369 * arm-tdep.c (arm_gdbarch_init): Ditto.
11370 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11371 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11372 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11373 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11374 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11375 call_dummy_stack_adjust_p.
11376 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11377 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11378 * sparc-tdep.c (sparc32_push_arguments): Update.
11379 * valops.c (hand_function_call): Update.
11380
71c08af0
CV
113812003-03-25 Corinna Vinschen <vinschen@redhat.com>
11382
11383 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11384 set_gdbarch_char_signed.
11385
30757f90
RE
113862003-03-25 Richard Earnshaw <rearnsha@arm.com>
11387
11388 PR cli/548
11389 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11390
03d48a7d
RE
113912003-03-25 Richard Earnshaw <rearnsha@arm.com>
11392
11393 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11394 (_initialize_arm_tdep): Don't set tm_print_insn.
11395
2cf6873c
AF
113962003-03-24 Adam Fedor <fedor@gnu.org>
11397
11398 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11399 * objc-lang.h: Add multiple inclusion protection.
11400 (start_msglist, add_msglist, end_msglist): Additional declarations.
11401
17c0759e
RE
114022003-03-24 Richard Earnshaw <rearnsha@arm.com>
11403
11404 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11405 value was renamed to ARM_FLOAT_SOFT_FPA.
11406
618ce49f
AC
114072003-03-23 Andrew Cagney <cagney@redhat.com>
11408
11409 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11410 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11411 * gdbarch.h, gdbarch.c: Regenerate.
11412 * valops.c (hand_function_call): Update.
11413 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11414 * frame.c (legacy_saved_regs_this_id): Update.
11415 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11416 * dummy-frame.h: Update.
11417 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11418 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11419 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11420 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11421 * config/m68k/tm-sun3.h: Update.
11422 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11423 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11424 * x86-64-tdep.c (x86_64_init_abi): Update.
11425 * vax-tdep.c (vax_gdbarch_init): Update.
11426 * v850-tdep.c (v850_gdbarch_init): Update.
11427 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11428 * sh-tdep.c (sh_gdbarch_init): Update.
11429 * s390-tdep.c (s390_gdbarch_init): Update.
11430 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11431 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11432 (frame_get_saved_regs): Update.
11433 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11434 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11435 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11436 * mips-tdep.c (mips_gdbarch_init): Update.
11437 * mcore-tdep.c (mcore_gdbarch_init): Update.
11438 * m68k-tdep.c (m68k_gdbarch_init): Update.
11439 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11440 * ia64-tdep.c (ia64_gdbarch_init): Update.
11441 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11442 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11443 (i386_interix_back_one_frame): Update.
11444 * hppa-tdep.c (hppa_gdbarch_init): Update.
11445 (hppa_init_extra_frame_info): Update.
11446 * h8300-tdep.c (h8300_gdbarch_init): Update.
11447 * frv-tdep.c (frv_gdbarch_init): Update.
11448 * cris-tdep.c (cris_gdbarch_init): Update.
11449 * avr-tdep.c (avr_gdbarch_init): Update.
11450 * arm-tdep.c (arm_gdbarch_init): Update.
11451 * alpha-tdep.c (alpha_gdbarch_init): Update.
11452
fd50bc42
RE
114532003-03-22 Richard Earnshaw <rearnsha@arm.com>
11454
11455 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11456 (arm_get_fp_model): Declare.
11457 * arm-tdep.c (fp_model_strings): New string array.
11458 (arm_fp_model, current_fp_model): New variables.
11459 (arm_get_fp_model): New function.
11460 (arm_set_fp): New function.
11461 (set_fp_model_sfunc): New function.
11462 (show_fp_model): New function.
11463 (_initialize_arm_tdep): Add new command to set/show the FPU.
11464 (arm_extract_return_value): Use arm_get_fp_model.
11465 (arm_store_return_value): Likewise.
11466 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11467 to initialize the floating-point data types.
11468 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11469 model is FPA.
11470
26304000
RE
114712003-03-22 Richard Earnshaw <rearnsha@arm.com>
11472
11473 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11474 the current setting of each value.
11475 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11476 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11477 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11478 commands and add new version as subcommands of "set/show arm".
11479
afd7eef0
RE
114802003-03-22 Richard Earnshaw <rearnsha@arm.com>
11481
11482 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11483 (set_arm_command, show_arm_command): New functions.
11484 (_initialize_arm_tdep): Add them.
11485 (num_disassembly_options): Renamed from num_flavor_options.
11486 (valid_disassembly_styles): Renamed from valid_flavors.
11487 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11488 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11489 set_disassembly_flavor_sfunc.
11490 (set_disassembly_style): Renamed from set_disassembly_flavor.
11491 (arm_othernames): Updated.
11492 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11493 command. Add "set/show arm disassembly" commands. Deprecate
11494 "othernames" command.
11495
299a7944
RE
114962003-03-22 Richard Earnshaw <rearnsha@arm.com>
11497
11498 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11499 (arm-tdep.o): Depend on elf_arm_h.
11500
c1dac9e6
RE
115012003-03-22 Richard Earnshaw <rearnsha@arm.com>
11502
11503 * Makefile.in (coff_internal_h): Define.
11504 (arm-tdep.o): Update dependencies.
11505
2702d96c
RE
115062003-03-22 Richard Earnshaw <rearnsha@arm.com>
11507
11508 * arm-tdep.c (prologue_cache): Delete.
11509 (check_prologue_cache, save_prologue_cache): Delete.
11510 (arm_scan_prologue): Don't check or update the prologue_cache.
11511 (arm_gdb_arch_init): Don't initialize it.
11512 (_initialize_arm_tdep): Likewise.
11513
27d5d74b
SC
115142003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11515
11516 * MAINTAINERS (tui): Maintainer of tui code.
11517
1762d96d
CV
115182003-03-21 Corinna Vinschen <vinschen@redhat.com>
11519
11520 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11521 (i386-cygwin-tdep.o): Add dependencies.
11522 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11523 * i386-cygwin-tdep.c: New file.
11524 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11525 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11526
4c2e2391
AC
115272003-03-20 Andrew Cagney <cagney@redhat.com>
11528
f20d38b7
AC
11529 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11530 (handle_inferior_event): Remove code calling
11531 DYNAMIC_TRAMPOLINE_NEXTPC.
11532
0022b738
AC
11533 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11534 already has a full path.
11535
864dbc90
AC
11536 * main.c (gdb_main): Return 1.
11537 (captured_main): Call error to report an invalid interpreter.
11538
4c2e2391
AC
11539 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11540 * alpha-osf1-tdep.c: Include "gdb_string.h".
11541
5ef7553b
JB
115422003-03-19 J. Brobecker <brobecker@gnat.com>
11543
11544 Continuing work to convert the hppa targets to multiarch partial.
11545
11546 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11547 method, now that hppa_push_dummy_frame has a conformant prototype.
11548 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11549 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11550 for the switch to multiarch partial.
11551
7bde8967
KB
115522003-03-19 Kevin Buettner <kevinb@redhat.com>
11553
11554 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11555 when iss is issNull.
11556
b006a9e9
KB
115572003-03-18 Kevin Buettner <kevinb@redhat.com>
11558
11559 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11560 NUM_REGS bounds check.
11561
5e2e9765
KB
115622003-03-18 Kevin Buettner <kevinb@redhat.com>
11563
11564 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11565 * mips-tdep.c (gdb_assert.h): Include.
11566 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11567 (mips_register_name): Handle integer registers explicitly. Add
11568 bounds checking.
11569 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11570 (mips_lsi33k_reg_names): Don't list integer registers; they're
11571 handled by mips_register_name() now.
11572 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11573 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11574 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11575 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11576 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11577
a2867626
AC
115782003-03-18 Andrew Cagney <cagney@redhat.com>
11579
11580 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11581 a void pointer.
11582 * gdbtypes.h (print_scalar_formatted): Update declaration.
11583 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11584
06600e06
JB
115852003-03-18 J. Brobecker <brobecker@gnat.com>
11586
11587 * infrun.c (observer.h): Add #include.
11588 (normal_stop): Add call to observer_notify_normal_stop.
11589 * Makefile.in (infrun.o): Add dependency on observer.h.
11590
7daf4f5b
JB
115912003-03-18 J. Brobecker <brobecker@gnat.com>
11592
11593 Continuing work to convert the hppa targets to multiarch partial.
11594 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11595 parameter. Reformat comment.
11596 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11597 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11598 to match new profile.
11599
3371ccc0
JB
116002003-03-18 J. Brobecker <brobecker@gnat.com>
11601
11602 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11603 appear to be working in any case.
11604
4fbe891e
JB
116052003-03-18 J. Brobecker <brobecker@gnat.com>
11606
11607 * observer.c (observer_test_first_observer): New static variable.
11608 (observer_test_second_observer): Likewise.
11609 (observer_test_third_observer): Likewise.
11610 (observer_test_first_notification_function): New static function.
11611 (observer_test_second_notification_function): Likewise.
11612 (observer_test_third_notification_function): Likewise.
11613
a7ff40e7
JB
116142003-03-17 J. Brobecker <brobecker@gnat.com>
11615
11616 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11617 * somsolib.c (gdb_assert.h): Likewise.
11618 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11619 (somsolib.o): Likewise.
11620
26ca4152
AC
116212003-03-17 Andrew Cagney <cagney@redhat.com>
11622
11623 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11624 BFD. Simplify setting of di.endian.
11625
0a613259
AC
116262003-03-17 Andrew Cagney <cagney@redhat.com>
11627
11628 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11629 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11630
11631 From Elena Zannoni <ezannoni@redhat.com>
11632 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11633 vector and floating-point parameters.
11634 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11635 convention.
11636 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11637
1132738f
FN
116382003-03-17 Fernando Nasser <fnasser@redhat.com>
11639
11640 * MAINTAINERS: Remove my name from several maintainership roles.
11641
6dc42492
AC
116422003-03-17 Andrew Cagney <cagney@redhat.com>
11643
11644 Fix frame off-by-one bug.
11645 * frame-unwind.h (frame_this_id_ftype): Replace
11646 frame_unwind_id_ftype.
11647 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11648 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11649 with "prev_register".
11650 * frame-unwind.c (frame_unwind_find_by_pc): Return
11651 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11652 comment.
11653 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11654 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11655 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11656 (dummy_frame_unwind): Update.
11657 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11658 sentinel_frame_register_unwind.
11659 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11660 (sentinel_frame_unwinder): Update.
11661 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11662 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11663 * frame.c (create_sentinel_frame): Update. Initialize
11664 "prologue_cache" instead of "unwind_cache".
11665 (frame_register_unwind): Call this frame's prev_register with the
11666 next frame and this frame's prologue cache.
11667 (get_prev_frame): Simplify. Always call prev frame's this_id with
11668 this frame and prev frame's prologue cache. Document that this
11669 call is shifted one to the left when compared to the
11670 frame_register_unwind call.
11671 (legacy_saved_regs_prev_register): Replace
11672 frame_saved_regs_register_unwind.
11673 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11674 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11675 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11676 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11677 (d10v_frame_unwind): Update.
11678 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11679 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11680 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11681 "saved_regs" with "this_saved_regs".
11682
efd710d6
AC
116832003-03-16 Andrew Cagney <cagney@redhat.com>
11684
11685 * frame.c (frame_pop): Don't call target_store_registers. Fix
11686 problem reported by Mark Kettenis.
11687
4e259f09
MK
116882003-03-16 Mark Kettenis <kettenis@gnu.org>
11689
11690 * i386-tdep.c (i386_register_type): Renamed from
11691 i386_register_virtual_type. Adjust function signature.
11692 (i386_gdbarch_init): Set register_type instead of
11693 deprecated_max_register_raw_size,
11694 deprecated_max_register_virtual_size and register_virtual_type.
11695
055bb976
AC
116962003-03-14 Andrew Cagney <cagney@redhat.com>
11697
11698 * frame.c (get_prev_frame): When a legacy frame, always call
11699 legacy_get_prev_frame. Simplify unwind code using assumption that
11700 the unwinder is new.
11701 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11702 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11703 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11704
ac2adee5
AC
117052003-03-14 Andrew Cagney <cagney@redhat.com>
11706
11707 * frame.c (get_saved_register): Delete function.
11708 * frame.h (get_saved_register): Delete declaration.
11709 * xstormy16-tdep.c: Update comment.
11710 * regcache.h: Update comments.
11711 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11712 get_saved_register and extract_address, use
11713 frame_read_unsigned_register.
11714 (sparc_frame_saved_pc): Ditto.
11715 (sparc_get_saved_register): Instead of get_saved_register, use
11716 frame_register.
11717 (sparc_pop_frame): Ditto.
11718 * findvar.c: Update comments.
11719 (value_of_register): Call frame_register instead of
11720 get_saved_register.
11721 (value_from_register): Ditto.
11722 * config/sparc/tm-sparc.h: Update comment.
11723 * breakpoint.c: Update comment.
11724
129c1cd6
AC
117252003-03-14 Andrew Cagney <cagney@redhat.com>
11726
11727 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11728 GET_SAVED_REGISTER.
11729 * gdbarch.h, gdbarch.c: Re-generate.
11730 * frame.h: Update comments.
11731 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11732 * x86-64-tdep.c (x86_64_init_abi): Update.
11733 * sparc-tdep.c (sparc_gdbarch_init): Update.
11734 * sh-tdep.c (sh_gdbarch_init): Update.
11735 * mips-tdep.c (mips_gdbarch_init): Update.
11736 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11737 * cris-tdep.c (cris_gdbarch_init): Update.
11738 * ia64-tdep.c (ia64_gdbarch_init): Update.
11739 * frame.c (frame_register): Update.
11740 (get_saved_register): Update.
11741 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11742
749b82f6
AC
117432003-03-13 Andrew Cagney <cagney@redhat.com>
11744
11745 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11746 * gdbarch.h, gdbarch.c: Regenerate.
11747 * valops.c (hand_function_call): Update comment.
11748 * stack.c (return_command): Update comment.
11749 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11750 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11751 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11752 * x86-64-tdep.c (x86_64_init_abi): Update.
11753 * vax-tdep.c (vax_gdbarch_init): Update.
11754 * v850-tdep.c (v850_gdbarch_init): Update.
11755 * sparc-tdep.c (sparc_gdbarch_init): Update.
11756 * sh-tdep.c (sh_gdbarch_init): Update.
11757 * s390-tdep.c (s390_gdbarch_init): Update.
11758 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11759 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11760 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11761 * mips-tdep.c (mips_gdbarch_init): Update.
11762 * mcore-tdep.c (mcore_gdbarch_init): Update.
11763 * m68k-tdep.c (m68k_gdbarch_init): Update.
11764 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11765 * ia64-tdep.c (ia64_gdbarch_init): Update.
11766 * i386-tdep.c (i386_gdbarch_init): Update.
11767 * hppa-tdep.c (hppa_gdbarch_init): Update.
11768 * h8300-tdep.c (h8300_gdbarch_init): Update.
11769 * frv-tdep.c (frv_gdbarch_init): Update.
11770 * cris-tdep.c (cris_gdbarch_init): Update.
11771 * avr-tdep.c (avr_gdbarch_init): Update.
11772 * arm-tdep.c (arm_gdbarch_init): Update.
11773 * alpha-tdep.c (alpha_gdbarch_init): Update.
11774
1594fa56
AC
117752003-03-13 Andrew Cagney <cagney@redhat.com>
11776
11777 * frame.c (legacy_frame_p): New function.
11778 (get_prev_frame): Use legacy_frame_p.
11779 * frame.h (legacy_frame_p): Declare.
11780
7717fda3
V
117812003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11782
fbe586ae 11783 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11784 listing corrected.
11785
0c67cbe9
V
117862003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11787
fbe586ae 11788 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11789
03febf99
AC
117902003-03-12 Andrew Cagney <cagney@redhat.com>
11791
11792 * frame.c (get_prev_frame): Rename the frame parameter to
11793 "this_frame".
11794 (get_next_frame, legacy_get_prev_frame): Ditto.
11795
0a1e1ca1
AC
117962003-03-12 Andrew Cagney <cagney@redhat.com>
11797
11798 * frame.c (get_current_frame): Check target_has_registers before
11799 checking target_has_stack.
11800 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11801 instead of deprecated_selected_frame.
11802 * findvar.c (value_of_register): Pass "frame", not
11803 deprecated_selected_frame, to value_of_builtin_reg.
11804
a66a9c23
AC
118052003-03-12 Andrew Cagney <cagney@redhat.com>
11806
11807 * regcache.c (regcache_cooked_write_signed): New function.
11808 (regcache_cooked_write_unsigned): New function.
11809 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11810 (regcache_cooked_read_signed): Fix regnum in range assertion.
11811 * regcache.h (regcache_cooked_write_signed): Declare.
11812 (regcache_cooked_write_unsigned): Declare.
11813
8bedc050
AC
118142003-03-12 Andrew Cagney <cagney@redhat.com>
11815
11816 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11817 * gdbarch.h, gdbarch.c: Re-generate.
11818 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11819 * x86-64-tdep.h: Update.
11820 * x86-64-tdep.c (x86_64_init_abi): Update.
11821 * v850-tdep.c (v850_gdbarch_init): Update.
11822 * sparc-tdep.c (sparc_gdbarch_init): Update.
11823 * sh-tdep.c (sh_gdbarch_init): Update.
11824 * s390-tdep.c (s390_gdbarch_init): Update.
11825 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11826 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11827 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11828 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11829 * mips-tdep.c (mips_gdbarch_init): Update.
11830 * mcore-tdep.c (mcore_gdbarch_init): Update.
11831 * m68k-tdep.c (m68k_gdbarch_init): Update.
11832 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11833 * ia64-tdep.c (ia64_gdbarch_init): Update.
11834 * i386-tdep.c (i386_gdbarch_init): Update.
11835 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11836 * hppa-tdep.c (hppa_gdbarch_init): Update.
11837 * h8300-tdep.c (h8300_gdbarch_init): Update.
11838 * frv-tdep.c (frv_gdbarch_init): Update.
11839 * cris-tdep.c (cris_gdbarch_init): Update.
11840 * avr-tdep.c (avr_gdbarch_init): Update.
11841 * arm-tdep.c (arm_gdbarch_init): Update.
11842 * alpha-tdep.c (alpha_gdbarch_init): Update.
11843 * sh-tdep.c (sh_init_extra_frame_info): Update.
11844 (sh64_init_extra_frame_info): Update.
11845 * ns32knbsd-nat.c (frame_num_args): Update.
11846 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11847 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11848 (xstormy16_frame_chain_valid): Update.
11849 * vax-tdep.c (vax_saved_pc_after_call): Update.
11850 * v850-tdep.c (v850_frame_chain): Update.
11851 (v850_pop_frame): Update.
11852 (v850_init_extra_frame_info): Update.
11853 * sparc-tdep.c (setup_arbitrary_frame): Update.
11854 * ns32k-tdep.c (umax_frame_num_args): Update.
11855 * s390-tdep.c (s390_pop_frame_regular): Update.
11856 * mn10300-tdep.c (mn10300_frame_chain): Update.
11857 (mn10300_pop_frame_regular): Update.
11858 (mn10300_init_extra_frame_info): Update.
11859 * mips-tdep.c (mips_init_frame_pc_first): Update.
11860 (mips_frame_chain): Update.
11861 (mips_pop_frame): Update.
11862 * mcore-tdep.c (mcore_frame_chain): Update.
11863 (mcore_pop_frame): Update.
11864 (mcore_init_extra_frame_info): Update.
11865 * arch-utils.c (init_frame_pc_default): Update.
11866 * m68k-tdep.c (isi_frame_num_args): Update.
11867 (delta68_frame_num_args): Update.
11868 (news_frame_num_args): Update.
11869 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11870 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11871 (alpha_frame_chain): Update.
11872 (alpha_pop_frame): Update.
11873 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11874 (hppa_init_extra_frame_info): Update.
11875 (hppa_frame_chain): Update.
11876 (hppa_frame_chain_valid): Update.
11877 * cris-tdep.c (cris_init_extra_frame_info): Update.
11878 * avr-tdep.c (avr_init_extra_frame_info): Update.
11879 * arm-tdep.c (arm_frame_chain_valid): Update.
11880 (arm_init_extra_frame_info): Update.
11881 (arm_pop_frame): Update.
11882 * frame.c (frame_pc_unwind): Update.
11883 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11884 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11885 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11886 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11887 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11888 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11889
7a25a7c1
AC
118902003-03-12 Andrew Cagney <cagney@redhat.com>
11891
11892 Eliminate the need for POP_FRAME.
11893 * frame.c (do_frame_unwind_register): New function.
11894 (frame_pop): When no POP_FRAME, pop the frame using register
11895 unwind and a scratch regcache.
11896 (frame_saved_regs_pop): Delete function.
11897 (trad_frame_unwinder): Update.
11898 * d10v-tdep.c (d10v_frame_pop): Delete function.
11899 (d10v_frame_unwind): Update.
11900 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11901 (sentinel_frame_unwinder): Update.
11902 * dummy-frame.c (dummy_frame_pop): Delete function.
11903 (dummy_frame_unwind): Update.
11904 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11905 (struct frame_unwind): Update.
11906
2f38ef89
KB
119072003-03-11 Kevin Buettner <kevinb@redhat.com>
11908
11909 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11910 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11911 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11912 Do range checks on register number obtained from debugging info.
11913 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11914 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11915 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11916 mapping function.
11917 (do_fp_register_row): Fix typo which caused double type to be
11918 used when attempting to unpack a float.
11919
552f4abf
JB
119202003-03-11 J. Brobecker <brobecker@gnat.com>
11921
11922 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11923
e0d2ae16
AC
119242003-03-11 Andrew Cagney <cagney@redhat.com>
11925
11926 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11927 frame. Problem found by Corinna Vinschen.
11928
ddbfdd06
PM
119292003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11930
11931 * doublest.c (floatformat_from_length): Accept also
11932 the real size of 'long double' type.
11933
088b2ddc 119342003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11935
088b2ddc 11936 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11937 * breakpoint.c (bpstat_copy): Copy the command lines as well
11938 as the old value, to match what is freed in bpstat_clear.
11939
f56f77c1
DC
119402003-03-10 David Carlton <carlton@math.stanford.edu>
11941
11942 * minsyms.c (add_minsym_to_hash_table): Replace
11943 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11944 (compare_minimal_symbols, compact_minimal_symbols)
11945 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11946 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11947 of DEPRECATED_SYMBOL_MATCHES_NAME.
11948 (lookup_minimal_symbol_solib_trampoline): Ditto.
11949
5602984a
AC
119502003-03-10 Andrew Cagney <cagney@redhat.com>
11951
11952 * regcache.h (regcache_cooked_read_ftype): Define.
11953 (regcache_save, regcache_restore): Add a cooked_read parameter.
11954 * regcache.c (regcache_save, regcache_restore): Update.
11955 (do_cooked_read): New function.
11956 (regcache_cpy): Pass do_cooked_read to regcache_save and
11957 regcache_restore.
11958
8bedc050
AC
119592003-03-10 Andrew Cagney <cagney@redhat.com>
11960
11961 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11962 * gdbarch.h, gdbarch.c: Re-generate.
11963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11964 * x86-64-tdep.h: Update.
11965 * x86-64-tdep.c (x86_64_init_abi): Update.
11966 * v850-tdep.c (v850_gdbarch_init): Update.
11967 * sparc-tdep.c (sparc_gdbarch_init): Update.
11968 * sh-tdep.c (sh_gdbarch_init): Update.
11969 * s390-tdep.c (s390_gdbarch_init): Update.
11970 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11971 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11972 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11973 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11974 * mips-tdep.c (mips_gdbarch_init): Update.
11975 * mcore-tdep.c (mcore_gdbarch_init): Update.
11976 * m68k-tdep.c (m68k_gdbarch_init): Update.
11977 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11978 * ia64-tdep.c (ia64_gdbarch_init): Update.
11979 * i386-tdep.c (i386_gdbarch_init): Update.
11980 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11981 * hppa-tdep.c (hppa_gdbarch_init): Update.
11982 * h8300-tdep.c (h8300_gdbarch_init): Update.
11983 * frv-tdep.c (frv_gdbarch_init): Update.
11984 * cris-tdep.c (cris_gdbarch_init): Update.
11985 * avr-tdep.c (avr_gdbarch_init): Update.
11986 * arm-tdep.c (arm_gdbarch_init): Update.
11987 * alpha-tdep.c (alpha_gdbarch_init): Update.
11988 * sh-tdep.c (sh_init_extra_frame_info): Update.
11989 (sh64_init_extra_frame_info): Update.
11990 * ns32knbsd-nat.c (frame_num_args): Update.
11991 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11992 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11993 (xstormy16_frame_chain_valid): Update.
11994 * vax-tdep.c (vax_saved_pc_after_call): Update.
11995 * v850-tdep.c (v850_frame_chain): Update.
11996 (v850_pop_frame): Update.
11997 (v850_init_extra_frame_info): Update.
11998 * sparc-tdep.c (setup_arbitrary_frame): Update.
11999 * ns32k-tdep.c (umax_frame_num_args): Update.
12000 * s390-tdep.c (s390_pop_frame_regular): Update.
12001 * mn10300-tdep.c (mn10300_frame_chain): Update.
12002 (mn10300_pop_frame_regular): Update.
12003 (mn10300_init_extra_frame_info): Update.
12004 * mips-tdep.c (mips_init_frame_pc_first): Update.
12005 (mips_frame_chain): Update.
12006 (mips_pop_frame): Update.
12007 * mcore-tdep.c (mcore_frame_chain): Update.
12008 (mcore_pop_frame): Update.
12009 (mcore_init_extra_frame_info): Update.
12010 * arch-utils.c (init_frame_pc_default): Update.
12011 * m68k-tdep.c (isi_frame_num_args): Update.
12012 (delta68_frame_num_args): Update.
12013 (news_frame_num_args): Update.
12014 * ia64-tdep.c (ia64_pop_frame_regular): Update.
12015 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
12016 (alpha_frame_chain): Update.
12017 (alpha_pop_frame): Update.
12018 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
12019 (hppa_init_extra_frame_info): Update.
12020 (hppa_frame_chain): Update.
12021 (hppa_frame_chain_valid): Update.
12022 * cris-tdep.c (cris_init_extra_frame_info): Update.
12023 * avr-tdep.c (avr_init_extra_frame_info): Update.
12024 * arm-tdep.c (arm_frame_chain_valid): Update.
12025 (arm_init_extra_frame_info): Update.
12026 (arm_pop_frame): Update.
12027 * frame.c (frame_pc_unwind): Update.
12028 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
12029 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12030 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12031 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12032 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12033 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12034
12cc2063
AC
120352003-03-10 Andrew Cagney <cagney@redhat.com>
12036
12037 * gdbarch.sh (gdbarch_unwind_pc): New method.
12038 * gdbarch.h, gdbarch.c: Regenerate.
12039 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12040 but use read_pc and FRAME_SAVED_PC as fall backs.
12041 (frame_saved_regs_pc_unwind): Delete function.
12042 (trad_frame_unwinder): Update.
12043 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12044 (struct frame_unwind): Update.
12045 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12046 (dummy_frame_unwind): Update.
12047 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12048 (sentinel_frame_unwinder): Update.
12049 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12050 (d10v_frame_unwind): Update.
12051 (d10v_unwind_pc): New function.
12052 (d10v_gdbarch_init): Set unwind_pc.
12053
ef840a37
AC
120542003-03-10 Andrew Cagney <cagney@redhat.com>
12055
a2ce2e56
AC
12056 * gdbarch.h: Re-generate.
12057
ef840a37
AC
12058 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12059 PC.
12060 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12061 the PC register.
12062
08f3424b
MK
120632003-03-08 Mark Kettenis <kettenis@gnu.org>
12064
12065 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12066
1248ede2
AC
120672003-03-08 Andrew Cagney <cagney@redhat.com>
12068
12069 * cli-out.c: Update copyright.
12070 (cli_out_data): Define typedef. Use instead of ui_out_data.
12071
f49bacc8
AC
120722003-03-08 Andrew Cagney <cagney@redhat.com>
12073
12074 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12075 the result.
12076
9b05f993
AC
120772003-03-07 Andrew Cagney <cagney@redhat.com>
12078
12079 * gdbarch.sh: Don't generate two macro definitions when an
12080 undefined macro taking no arguments.
12081 * gdbarch.h: Regenerate.
8ffd9b1b 12082
166f4c7b
ML
120832002-03-07 Michal Ludvig <mludvig@suse.cz>
12084
12085 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12086 (x86_64_unwind_dummy_id): New functions.
12087 (x86_64_init_abi): Register these two new functions.
12088
6d686a84
ML
120892003-03-07 Michal Ludvig <mludvig@suse.cz>
12090
12091 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12092 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12093 separate function.
12094 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12095
6314f104
AC
120962003-03-05 Andrew Cagney <cagney@redhat.com>
12097
12098 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12099 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12100 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12101 to use unwind_dummy_id when a dummy frame.
12102 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12103 predicate.
12104 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12105
ceea5145
AC
121062003-03-05 Andrew Cagney <cagney@redhat.com>
12107
12108 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12109 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12110 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12111 values.
12112
0d843116
AC
121132003-03-05 Andrew Cagney <cagney@redhat.com>
12114
12115 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12116 (struct d10v_unwind_cache): Delete field "frameless". Replace
12117 "next_addr" with "sp_offset". Add "r11_offset".
12118 (d10v_frame_unwind_cache): Update.
12119 (prologue_find_regs): Update. When "mv r11, sp", save the
12120 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12121 RN was saved in r11_offset.
12122
b2579786
AC
121232003-03-05 Andrew Cagney <cagney@redhat.com>
12124
12125 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12126 cached PC value in the next frame.
12127
218e5956
AC
121282003-03-05 Andrew Cagney <cagney@redhat.com>
12129
12130 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12131 "id_unwind_cache" with "id".
12132 (frame_id_unwind): Delete declaration.
12133 * frame.c (frame_id_unwind): Delete function.
12134 (get_prev_frame): Call the frame id unwind method directly. Store
12135 the returned next frame's ID value in NEXT_FRAME. Note that there
12136 is a problem with the wrong unwind ID being called with the wrong
12137 unwind cache.
12138
ed363b1b
DJ
121392003-03-05 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12142
fe1f4a5e
DJ
121432003-03-05 James Ingham <jingham@apple.com>
12144 Daniel Jacobowitz <drow@mvista.com>
12145
12146 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12147 (auto_cp_abi): New variable.
12148 (current_cp_abi, num_cp_abis): Make static.
12149 (CP_ABI_MAX): Define.
12150 (cp_abis): Turn into an array.
12151 (value_virtual_fn_field): Fix formatting.
12152 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12153 takes a pointer.
12154 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12155 (list_cp_abis, _initialize_cp_abi): New functions.
12156 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12157 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12158 switch_to_cp_abi. Update prototype for register_cp_abi.
12159 * Makefile.in (cp-abi.o): Update dependencies.
12160 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12161 instead of switch_to_cp_abi.
12162 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12163 register_cp_abi.
12164 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12165 register_cp_abi.
12166 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12167
e4adbba9
DJ
121682003-03-05 Daniel Jacobowitz <drow@mvista.com>
12169
12170 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12171 * dwarf2loc.c: Include "regcache.h".
12172 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12173 register_size.
12174 * Makefile.in (dwarf2loc.o): Update dependencies.
12175
91ccbfc1
TR
121762003-03-04 Theodore A. Roth <troth@openavr.org>
12177
12178 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12179 number of io registers reported by remote target is not a multiple of
12180 step.
12181
3d4e8fd2
DC
121822003-03-04 David Carlton <carlton@math.stanford.edu>
12183
12184 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12185 (lookup_symbol_aux_psymtabs): Update call to
12186 lookup_partial_symbol.
12187 (lookup_transparent_type, find_main_psymtab)
12188 (make_symbol_overload_list): Ditto.
12189
ed42d87b
KH
121902003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12191
12192 * MAINTAINERS (Write after approval): Update my email address.
12193
a0ed5532
AC
121942003-03-03 Andrew Cagney <cagney@redhat.com>
12195
12196 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12197 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12198 predicate. Replace MAX_REGISTER_RAW_SIZE.
12199 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12200 MAX_REGISTER_VIRTUAL_SIZE.
12201 * regcache.c (legacy_max_register_raw_size): New function.
12202 (legacy_max_register_virtual_size): New function.
12203 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12204 (MAX_REGISTER_RAW_SIZE): Define.
12205 (legacy_max_register_raw_size): Declare.
12206 (legacy_max_register_virtual_size): Declare.
12207 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12208 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12209 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12210 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12211 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12212 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12213 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12214 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12215 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12216 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12217 * vax-tdep.c (vax_gdbarch_init): Update.
12218 * v850-tdep.c (v850_gdbarch_init): Update.
12219 * sparc-tdep.c (sparc_gdbarch_init): Update.
12220 * sh-tdep.c (sh_gdbarch_init): Update.
12221 * s390-tdep.c (s390_gdbarch_init): Update.
12222 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12225 * mips-tdep.c (mips_gdbarch_init): Update.
12226 * mcore-tdep.c (mcore_gdbarch_init): Update.
12227 * m68k-tdep.c (m68k_gdbarch_init): Update.
12228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12229 * ia64-tdep.c (ia64_gdbarch_init): Update.
12230 * i386-tdep.c (i386_gdbarch_init): Update.
12231 * hppa-tdep.c (hppa_gdbarch_init): Update.
12232 * h8300-tdep.c (h8300_gdbarch_init): Update.
12233 * frv-tdep.c (frv_gdbarch_init): Update.
12234 * cris-tdep.c (cris_gdbarch_init): Update.
12235 * avr-tdep.c (avr_gdbarch_init): Update.
12236 * arm-tdep.c (arm_gdbarch_init): Update.
12237 * alpha-tdep.c (alpha_gdbarch_init): Update.
12238 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12239 max_register_raw_size or max_register_virtual_size.
12240
8e437497
DC
122412003-03-03 David Carlton <carlton@math.stanford.edu>
12242
12243 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12244 SYMBOL_MATCHES_NAME, add comment.
12245 (SYMBOL_MATCHES_NATURAL_NAME): New.
12246 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12247 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12248 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12249 * symtab.c (lookup_partial_symbol): Use
12250 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12251 unhelpful comment.
12252 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12253 SYMBOL_MATCHES_NAME.
12254 Fix for PR c++/33.
12255
25120b0d
DC
122562003-03-03 David Carlton <carlton@math.stanford.edu>
12257
12258 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12259 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12260 by regexp matching against SYMBOL_NATURAL_NAME.
12261
78a11fb4
DC
122622003-03-03 David Carlton <carlton@math.stanford.edu>
12263
12264 * linespec.c (find_method): Extract code into collect_methods.
12265 (collect_methods): New.
12266
645dd519
MK
122672003-03-02 Mark Kettenis <kettenis@gnu.org>
12268
b4700d91
MK
12269 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12270 get_frame_base.
12271
645dd519
MK
12272 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12273 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12274
0aa7e1aa
SC
122752003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12276
8ffd9b1b 12277 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12278 and not regnum when summing the size of all registers up to regnum.
12279
f30ee0bc
AC
122802003-03-01 Andrew Cagney <cagney@redhat.com>
12281
12282 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12283 FRAME_INIT_SAVED_REGS.
12284 * gdbarch.h, gdbarch.c: Regenerate.
12285 * stack.c (frame_info): Update.
12286 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12287 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12288 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12289 * ns32k-tdep.c (ns32k_pop_frame): Update.
12290 * mips-tdep.c (mips_pop_frame): Update.
12291 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12292 * ia64-tdep.c (ia64_frame_chain): Update.
12293 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12294 (ia64_frameless_function_invocation): Update.
12295 (ia64_init_extra_frame_info): Update.
12296 (ia64_pop_frame_regular): Update.
12297 * frame.h (struct frame_info): Update comment.
12298 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12299 * frame.c (frame_saved_regs_register_unwind): Update.
12300 (frame_saved_regs_register_unwind): Update.
12301 (deprecated_generic_get_saved_register): Update.
12302 * cris-tdep.c: Update comment.
12303 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12304 Rename macro.
12305 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12306 * x86-64-tdep.c (x86_64_init_abi): Update.
12307 * vax-tdep.c (vax_gdbarch_init): Update.
12308 * v850-tdep.c (v850_gdbarch_init): Update.
12309 * sparc-tdep.c (sparc_gdbarch_init): Update.
12310 * sh-tdep.c (sh_gdbarch_init): Update.
12311 * s390-tdep.c (s390_gdbarch_init): Update.
12312 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12313 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12314 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12315 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12316 * mips-tdep.c (mips_gdbarch_init): Update.
12317 * mcore-tdep.c (mcore_gdbarch_init): Update.
12318 * m68k-tdep.c (m68k_gdbarch_init): Update.
12319 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12320 * ia64-tdep.c (ia64_gdbarch_init): Update.
12321 * i386-tdep.c (i386_gdbarch_init): Update.
12322 * frv-tdep.c (frv_gdbarch_init): Update.
12323 * avr-tdep.c (avr_gdbarch_init): Update.
12324 * arm-tdep.c (arm_gdbarch_init): Update.
12325 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12326
42fa7c0f
AC
123272003-03-01 Andrew Cagney <cagney@redhat.com>
12328
12329 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12330 option enum and switch. When no windows, set the interpreter to
12331 INTERP_CONSOLE.
8ffd9b1b 12332
49c7e338
AC
123332003-03-01 Andrew Cagney <cagney@redhat.com>
12334
12335 * main.c (captured_main): Replace magic option characters with an
12336 enum.
12337
e9582e71
AC
123382003-03-01 Andrew Cagney <cagney@redhat.com>
12339
12340 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12341 INIT_EXTRA_FRAME_INFO.
12342 * gdbarch.h, gdbarch.c: Regenerate.
12343 * arm-tdep.c: Update comments.
12344 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12345 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12346 * frame.h, avr-tdep.c: Ditto.
12347 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12348 (create_new_frame, legacy_get_prev_frame): Ditto.
12349 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12350 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12351 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12352 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12353 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12354 * v850-tdep.c (v850_gdbarch_init): Ditto.
12355 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12356 * sh-tdep.c (sh_gdbarch_init): Ditto.
12357 * s390-tdep.c (s390_gdbarch_init): Ditto.
12358 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12359 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12360 * mips-tdep.c (mips_gdbarch_init): Ditto.
12361 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12362 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12363 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12364 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12365 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12366 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12367 * frv-tdep.c (frv_gdbarch_init): Ditto.
12368 * cris-tdep.c (cris_gdbarch_init): Ditto.
12369 * avr-tdep.c (avr_gdbarch_init): Ditto.
12370 * arm-tdep.c (arm_gdbarch_init): Ditto.
12371 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12372 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12373
35cac7cf
AC
123742003-03-01 Andrew Cagney <cagney@redhat.com>
12375
12376 * gdbarch.sh (register_type): New function with predicate.
12377 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12378 * gdbarch.h, gdbarch.c: Re-generate.
12379 * arch-utils.c (generic_register_byte): Use generic_register_size.
12380 (generic_register_size): When available, use
12381 gdbarch_register_type.
12382 * regcache.c (init_regcache_descr): When available, initialize the
12383 register type array using gdbarch_register_type. If the
12384 architecture supplies gdbarch_register_type, do not use the legacy
12385 regcache layout.
12386 * d10v-tdep.c (d10v_register_type): Replace
12387 d10v_register_virtual_type.
12388 (d10v_gdbarch_init): Set register_type instead of
12389 register_virtual_type.
12390
7b83296f
AC
123912003-03-01 Andrew Cagney <cagney@redhat.com>
12392
12393 * Makefile.in (ax-gdb.o): Update dependencies.
12394 * ax-gdb.c: Include "regcache.h".
12395 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12396 * findvar.c (value_of_register): Ditto.
12397 * infcmd.c (default_print_registers_info): Ditto.
12398
eadc1c87
MK
123992003-03-01 Mark Kettenis <kettenis@gnu.org>
12400
12401 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12402 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12403
14143612
MK
124042003-03-01 Mark Kettenis <kettenis@gnu.org>
12405
12406 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12407 of STREQ.
12408
a55cc764
DJ
124092003-02-28 Daniel Jacobowitz <drow@mvista.com>
12410
12411 * Makefile.in (dwarf2loc.o): Update dependencies.
12412 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12413 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12414 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12415 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12416 (locexpr_tracepoint_var_ref): New function.
12417 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12418
08a617da
AC
124192003-02-28 Andrew Cagney <cagney@redhat.com>
12420
12421 * regcache.c (register_size): New function.
12422 * regcache.h (register_size): Declare
12423 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12424 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12425
4224873a
DC
124262003-02-28 David Carlton <carlton@math.stanford.edu>
12427
12428 * linespec.c (decode_compound): Extract code into find_method.
12429 (find_method): New.
12430
ccdc5d7f
JB
124312003-02-28 J. Brobecker <brobecker@gnat.com>
12432
12433 * Makefile.in: Add rules to build and link in observer.o.
12434
974e8ced
JB
124352003-02-27 J. Brobecker <brobecker@gnat.com>
12436
12437 * observer.c: Minor comments edits.
12438
7a28f973
JB
124392003-02-27 J. Brobecker <brobecker@gnat.com>
12440
12441 * observer.h, observer.c: New file.
12442
27cddce2
AC
124432003-02-27 Andrew Cagney <cagney@redhat.com>
12444
12445 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12446
b94a41a1
SC
124472003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12448
12449 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12450 (M6812_OP_STS_EXT): Likewise.
12451 (m6811_prologue): Use the above to recognize prologue.
12452 (m6812_prologue): Likewise.
12453
c8be8951
DC
124542003-02-27 David Carlton <carlton@math.stanford.edu>
12455
12456 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12457 SYMBOL_PRINT_NAME.
12458 (compare_psymbols): Ditto.
12459 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12460
d05bb1fc
MS
124612003-02-27 Michael Snyder <msnyder@redhat.com>
12462
4e845cd3
MS
12463 * f-lang.c (build_fortran_types): New function.
12464 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12465 * doublest.c (extract_floating): Fix warning text.
12466
f3824013
AC
124672003-02-27 Andrew Cagney <cagney@redhat.com>
12468
12469 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12470 predicate. Replaces PUSH_DUMMY_FRAME.
12471 * gdbarch.h, gdbarch.c: Regnerate.
12472 * valops.c (hand_function_call): Update. Call
12473 generic_push_dummy_frame directly.
12474 * vax-tdep.c (vax_gdbarch_init): Update.
12475 * sparc-tdep.c (sparc_gdbarch_init): Update.
12476 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12477 * m68k-tdep.c (m68k_gdbarch_init): Update.
12478 * hppa-tdep.c (hppa_gdbarch_init): Update.
12479 * alpha-tdep.c (alpha_gdbarch_init): Update.
12480 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12481 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12482 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12483 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12484 push_dummy_frame to generic_push_dummy_frame.
12485 * v850-tdep.c (v850_gdbarch_init): Ditto.
12486 * sh-tdep.c (sh_gdbarch_init): Ditto.
12487 * s390-tdep.c (s390_gdbarch_init): Ditto.
12488 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12489 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12490 * mips-tdep.c (mips_gdbarch_init): Ditto.
12491 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12492 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12493 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12494 * i386-tdep.c (i386_gdbarch_init): Ditto.
12495 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12496 * frv-tdep.c (frv_gdbarch_init): Ditto.
12497 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12498 * cris-tdep.c (cris_gdbarch_init): Ditto.
12499 * avr-tdep.c (avr_gdbarch_init): Ditto.
12500 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12501
ad188201
KB
125022003-02-26 Kevin Buettner <kevinb@redhat.com>
12503
12504 * mips-tdep.c (show_mips_abi): New function.
12505 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12506 command ``show mips abi''.
12507
6b37567a 125082003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12509
6b37567a 12510 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12511 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12512 more sline entries have been seen for the function.
12513
d3e0a5bf
MC
125142003-02-26 Michael Chastain <mec@shout.net>
12515
12516 * configure: Regenerate with autoconf 000227.
12517
18972eea
MC
125182003-02-26 Michael Chastain <mec@shout.net>
12519
12520 Close PR build/660.
12521 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12522 for old libc5/glibc.
12523 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12524
0bbde931
KW
125252003-02-26 Kris Warkentin <kewarken@qnx.com>
12526
12527 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12528 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12529
27ca5dad
MC
125302003-02-26 Michael Chastain <mec@shout.net>
12531
12532 * configure.in: New variable HAVE_UINTPTR_T.
12533 * configure, config.in: Regenerated.
12534
6f88d630
DJ
125352003-02-26 Daniel Jacobowitz <drow@mvista.com>
12536
12537 Fix PR build/1097.
12538 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12539
b14185ce
AC
125402003-02-25 Andrew Cagney <cagney@redhat.com>
12541
12542 * frame.c (get_prev_frame): Add comment on check for
12543 inside_entry_func. Only check for inside_entry_file when not a
12544 dummy and not a sentinel. Check that the new frame is not inner
12545 to the old frame.
12546
ac2bd0a9
AC
125472003-02-25 Andrew Cagney <cagney@redhat.com>
12548
12549 * frame.c (frame_debug): New variable.
12550 (_initialize_frame): Add "set/show debug frame" command.
12551 (get_prev_frame): When frame_debug, print reason why unwind
12552 failed.
12553
b18a0fd2
MC
125542003-02-25 Michael Chastain <mec@shout.net>
12555
12556 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12557 to avoid uintptr_t definition problems.
12558
22abf04a
DC
125592003-02-25 David Carlton <carlton@math.stanford.edu>
12560
12561 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12562 (SYMBOL_LINKAGE_NAME): Ditto.
12563 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12564 SYMBOL_LINKAGE_NAME.
12565 (struct general_symbol_info): Expand comment.
12566 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12567 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12568 (SYMBOL_MATCHES_REGEXP): Ditto.
12569 * symtab.c (symbol_natural_name): New function.
12570 * objfiles.h: Replace all uses of SYMBOL_NAME by
12571 DEPRECATED_SYMBOL_NAME.
12572 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12573 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12574 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12575 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12576 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12577 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12578 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12579 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12580 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12581 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12582 * ada-exp.y: Ditto.
12583 * ada-exp.y: Update copyright.
12584 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12585 * cp-valprint.c: Ditto.
12586
1a5848f6
JJ
125872003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12588
12589 * infptrace.c (detach): Do not flag error if ptrace detach fails
12590 and errno is set to ESRCH.
12591
7343d46a
AC
125922003-02-24 Andrew Cagney <cagney@redhat.com>
12593
12594 * infptrace.c (udot_info): Change type of udot_off to long. Use
12595 paddr when printing udot_off's value.
12596
49fa1dc2
DC
125972003-02-24 David Carlton <carlton@math.stanford.edu>
12598
12599 * symtab.c (make_symbol_overload_list): Only read in partial
12600 symtabs containing a matching partial symbol.
12601
0fe19209
DC
126022003-02-24 David Carlton <carlton@math.stanford.edu>
12603
12604 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12605 do the comparison, not strcmp.
12606 * symfile.c (compare_psymbols): Ditto.
12607 * defs.h: Declare strcmp_iw_ordered.
12608 * utils.c (strcmp_iw_ordered): New function.
12609
8e3ee7b5
JB
126102003-02-24 Jim Blandy <jimb@redhat.com>
12611
12612 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12613 support, shared libs): Remove my name from here, to better reflect
12614 reality.
12615
7df1a324
KW
126162003-02-24 Kris Warkentin <kewarken@qnx.com>
12617
12618 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12619 (target_ops): Add to_have_continuable_watchpoint.
12620 * target.c (update_current_target): Add INHERIT line for
12621 to_have_continuable_watchpoint.
12622 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12623 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12624 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12625 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12626
d1c76907
EZ
126272003-02-24 Elena Zannoni <ezannoni@redhat.com>
12628
12629 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12630 maintainership.
12631
2610b0bf
KW
126322003-02-24 Kris Warkentin <kewarken@qnx.com>
12633
f46169db
KW
12634 * solib.c (solib_open): Call target defined search function after
12635 failing with solib-search-path.
12636 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12637 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12638
9a3c34fe
KW
126392003-02-24 Kris Warkentin <kewarken@qnx.com>
12640
f46169db 12641 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12642
2417dd25
SC
126432003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12644
12645 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12646
b631436b
SC
126472003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12648
12649 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12650 (m68hc11_add_reggroups): New function.
12651 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12652 (m68hc11_gdbarch_init): Install the reggroups.
12653 (_initialize_m68hc11_tdep): Initialize them.
12654
0aa8c1e4
JW
126552003-02-21 James E Wilson <wilson@tuliptree.org>
12656
12657 * MAINTAINERS: Update my email address.
12658
50ceaba5
DC
126592003-02-21 David Carlton <carlton@math.stanford.edu>
12660
12661 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12662
4c2df51b
DJ
126632003-02-21 Daniel Jacobowitz <drow@mvista.com>
12664
12665 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12666 * symtab.h: Add opaque declarations of struct axs_value and
12667 struct agent_expr.
12668 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12669 (struct location_funcs): New type.
12670 (struct symbol): Add "loc" to aux_value.
12671 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12672 * dwarf2read.c: Include "dwarf2expr.h".
12673 (dwarf2_symbol_mark_computed): New function.
12674 (read_func_scope): Use it.
12675 (var_decode_location): New function.
12676 (new_symbol): Use it.
12677 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12678
12679 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12680 (dwarf2expr_h, dwarf2loc_h): New variables.
12681 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12682 (dwarf2expr.o, dwarf2loc.o): New rules.
12683 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12684 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12685 LOC_COMPUTED_ARG.
12686 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12687 * m2-exp.y (yylex): Likewise.
12688 * printcmd.c (address_info, print_frame_args): Likewise.
12689 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12690 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12691 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12692 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12693 * symtab.c (lookup_block_symbol): Likewise.
12694
5784d15e
AF
126952003-02-20 Adam Fedor <fedor@gnu.org>
12696
12697 * symtab.h: Remove objc_specific struct
12698 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12699 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12700 Have language_objc use cplus_specific struct.
12701
d4cad8db
TT
127022003-02-20 Tom Tromey <tromey@redhat.com>
12703
12704 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12705 TYPE_NAME, when printing a String value. PR java/1075.
12706
2f9a90b4
AF
127072003-02-20 Adam Fedor <fedor@gnu.org>
12708
d38074a8 12709 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12710 * objc-lang.c (find_methods): Make static.
2f9a90b4 12711
6f17862b
CF
127122003-02-20 Christopher Faylor <cgf@redhat.com>
12713
12714 * win32-nat.c (get_image_name): Check return value from
12715 ReadProcessMemory.
12716 (child_xfer_memory): Ditto.
12717
715d1656
AO
127182003-02-20 Alexandre Oliva <aoliva@redhat.com>
12719
12720 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12721 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12722 '${exec_prefix}' (in addition to the expansion thereof) as
12723 relocatable.
12724 * configure: Rebuilt.
12725
b1262a02
DC
127262003-02-20 David Carlton <carlton@math.stanford.edu>
12727
12728 * symtab.c (search_symbols): Revert the search_symbols part of my
12729 2002-12-23 patch. Add comment.
12730
7134143f
DJ
127312002-02-20 Daniel Jacobowitz <drow@mvista.com>
12732
12733 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12734 * dbxread.c (elfstab_build_psymtabs): Don't call
12735 install_minimal_symbols.
12736 (stabsect_build_psymtabs): Likewise.
12737 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12738 earlier.
12739 * somread.c (som_symfile_read): Call install_minimal_symbols
12740 and do_cleanups earlier.
12741 * nlmread.c (nlm_symfile_read): Likewise.
12742 * mdebugread.c (elfmdebug_build_psymtabs): Call
12743 install_minimal_symbols and make appropriate cleanups.
12744
cf466558
KB
127452003-02-20 Kevin Buettner <kevinb@redhat.com>
12746
12747 * solib.c (reload_shared_libraries): New function.
12748 (_initialize_solib): Add callbacks for ``set solib-search-path''
12749 and ``set solib-absolute-prefix''.
12750
de5ad195
DC
127512003-02-20 David Carlton <carlton@math.stanford.edu>
12752
12753 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12754 expand comment.
12755 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12756 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12757 * ada-typeprint.c (ada_typedef_print): Ditto.
12758 * ax-gdb.c (gen_var_ref): Ditto.
12759 * breakpoint.c (print_one_breakpoint): Ditto.
12760 * buildsym.c (finish_block): Ditto.
12761 * c-valprint.c (c_val_print): Ditto.
12762 * expprint.c (print_subexp): Ditto.
12763 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12764 * infcmd.c (jump_command): Ditto.
12765 * linespec.c (decode_line_2, decode_compound): Ditto.
12766 * maint.c (maintenance_translate_address): Ditto.
12767 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12768 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12769 Ditto.
8ffd9b1b
AJ
12770 * p-valprint.c (pascal_val_print): Ditto.
12771 * stabsread.c (define_symbol): Ditto.
de5ad195 12772 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12773 (print_frame_arg_vars, return_command): Ditto.
12774 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12775 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12776 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12777 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12778 (rbreak_command): Ditto.
12779 * tracepoint.c (tracepoints_info): Ditto.
12780 * typeprint.c (typedef_print): Ditto.
12781 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12782 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12783 * ada-typeprint.c: Update Copyright.
12784 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12785 * tracepoint.c, cli/cli-cmds.c: Ditto.
12786
f796e4be
KB
127872003-02-20 Kevin Buettner <kevinb@redhat.com>
12788
12789 * frame.c (generic_unwind_get_saved_register): Make non-static.
12790 * frame.h (generic_unwind_get_saved_register): Declare.
12791 * mips-tdep.c (read_next_frame_reg): Fetch register from
12792 current regcache when frame is NULL.
12793 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12794 that must be NULL.
12795 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12796 instead of frame_register_unwind().
12797
836cc9f4
AC
127982003-02-20 Andrew Cagney <ac131313@redhat.com>
12799
12800 * remote-sim.c (gdbsim_insert_breakpoint)
12801 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12802 code.
12803
501eef12
AC
128042003-02-20 Andrew Cagney <ac131313@redhat.com>
12805
12806 * remote.c (_initialize_remote): Add commands "set/show remote
12807 hardware-watchpoint-limit" and "set/show remote
12808 hardware-breakpoint-limit".
12809 (remote_hw_watchpoint_limit): Initialize to -1.
12810 (remote_hw_breakpoint_limit): Ditto.
12811 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12812
1b6bc7e0
CF
128132003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12814
12815 * coff-pe-read.c: New file - support reading of minimal symbols from a
12816 portable executable using the export table.
12817 * coff-pe-read.h: New file.
12818 * coffread.c: Include coff-pe-read.h.
12819 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12820 debugging symbols found.
12821 * Makefile.in (SFILES): Add coff-pe-read.o.
12822 (coff_pe_read_h): Define.
12823 (COMMON_OBS): Add coff-pe-read.o.
12824 (coffread.o): Add coff_pe_read_h dependency.
12825 (coff-pe-read.o): New target.
12826
fe898f56
DC
128272003-02-19 David Carlton <carlton@math.stanford.edu>
12828
12829 * Makefile.in (SFILES): Add block.c.
12830 (block_h): New.
12831 (COMMON_OBS): Add block.o.
12832 (block.o): New.
12833 (x86-64-tdep.o): Add $(block_h).
12834 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12835 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12836 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12837 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12838 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12839 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12840 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12841 * value.h: Add opaque declaration for struct block.
12842 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12843 * ada-lang.h: Ditto.
12844 * x86-64-tdep.c: #include "block.h"
12845 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12846 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12847 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12848 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12849 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12850 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12851 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12852 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12853 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12854 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12855 * symtab.c (block_function): Ditto.
12856 (contained_in): Ditto.
12857 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12858 block.h. Add opaque declaration for struct block.
12859 * symtab.h: Move block_function and contained_in declarations to
12860 block.h. Add opaque declarations for struct block, struct
12861 blockvector.
12862 (struct block): Move to block.h.
12863 (struct blockvector): Ditto.
12864 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12865 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12866 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12867 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12868 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12869 Ditto.
12870 * block.c: New file.
12871 * block.h: New file.
12872
173345b5
TR
128732003-02-19 Theodore A. Roth <troth@openavr.org>
12874
12875 * avr-tdep.c (avr_extract_return_value): Remove function.
12876 (avr_store_return_value): Remove function.
12877 (avr_extract_struct_value_address): Remove function.
12878 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12879
338ef23d
AC
128802003-02-19 Andrew Cagney <ac131313@redhat.com>
12881
12882 * rs6000-tdep.c: Include "gdb_assert.h".
12883 (registers_e500): Add "acc" and "spefscr".
12884 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12885 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12886 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12887 really is "r0".
12888 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12889
5412f5f3
KS
128902003-02-18 Keith Seitz <keiths@redhat.com>
12891
12892 * Makefile.in: Add gdbtk-interps.c.
12893
881324eb
KB
128942003-02-18 Kevin Buettner <kevinb@redhat.com>
12895
12896 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12897 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12898
6a2f5abf
AC
128992003-02-18 Andrew Cagney <cagney@redhat.com>
12900
12901 * symtab.h (struct objfile): Add opaque declaration.
12902
54c7009d
EZ
129032003-02-18 Elena Zannoni <ezannoni@redhat.com>
12904
12905 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12906 * dbxread.c (process_one_symbol): Use last_function_start rather
12907 than function_start_offset to find the real beginning of the
12908 current function. The latter is just the text section offset on
12909 some systems, the former is always the real function start.
54c7009d 12910
7ee6d7eb
AC
129112003-02-17 Andrew Cagney <cagney@redhat.com>
12912
12913 * configure.in: Revert ${target} != ${host}.
12914
2846da9b
AC
129152003-02-17 Andrew Cagney <ac131313@redhat.com>
12916
12917 * configure.in (Makefile): Use the test ${target} != ${host},
12918 instead of the absence of the "nm.h" file, to determine of the
12919 configuration non-native.
12920 * configure: Regenerate.
8ffd9b1b 12921
3b27aeea
EZ
129222003-02-14 Elena Zannoni <ezannoni@redhat.com>
12923
fbe586ae 12924 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12925
12926 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12927 conditionalize tui_active test.
12928 (lookup_cmd_1): Ditto.
12929
b0b1c2c0
MK
129302003-02-14 Mark Kettenis <kettenis@gnu.org>
12931
12932 * configure.in: Add check for _etext.
12933 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12934 available.
12935 * config.in, configure: regenerated.
12936
8f05cde5
DJ
129372003-02-14 Daniel Jacobowitz <drow@mvista.com>
12938
12939 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12940
021e7609
AC
129412003-02-14 Andrew Cagney <ac131313@redhat.com>
12942
12943 * main.c (tui_version): Delete variable.
12944 (captured_main): When --tui, set interpreter_p to "tui" instead of
12945 enabling tui_version.
12946 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12947 tui_version.
12948 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12949 * cli/cli-cmds.c (disassemble_command): Ditto.
12950 * defs.h (tui_version): Delete declaration.
12951 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12952 (tui-interp.o): Add rules.
12953 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12954
e325dcec
CF
129552003-02-14 Christopher Faylor <cgf@redhat.com>
12956
36ffb041 12957 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12958 just-loaded dll.
12959
c4f90d87
JM
129602003-02-12 Jason Molenda (jmolenda@apple.com)
12961
fbe586ae
RH
12962 * symmisc.c (print_objfile_statistics): Include information about
12963 the number of psymtabs and symtabs in each object file.
c4f90d87 12964
e46e5ccd
KS
129652003-02-13 Keith R Seitz <keiths@redhat.com>
12966
12967 * main.h (struct captured_main_args): Add interpreter_p.
12968 * main.c (captured_main): Initialize interpreter_p from context.
12969 * gdb.c (main): Set interpreter_p argument.
12970 * Makefile.in (gdb.o): Add dependency for interps.h.
12971
fe97fe9c
AC
129722003-02-12 Andrew Cagney <ac131313@redhat.com>
12973
12974 * event-top.c (cli_command_loop): Delete declaration.
12975 (_initialize_event_loop): Delete function setting event_loop_hook.
12976 * event-top.h (cli_command_loop): Declare. Update copyright.
12977 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12978 * interps.c (current_interp_command_loop): When event_loop_p, call
12979 cli_command_loop.
12980
1cdac4ef
AC
129812003-02-12 Andrew Cagney <ac131313@redhat.com>
12982
12983 * interps.h (interp_command_loop_ftype): Change return type to
12984 void.
12985
48037ead
ML
129862003-02-12 Michal Ludvig <mludvig@suse.cz>
12987
12988 * x86-64-tdep.c (x86_64_extract_return_value)
12989 (x86_64_store_return_value): Use regcache instead of regbuf.
12990 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12991 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12992
033afc63
AC
129932003-02-11 Andrew Cagney <ac131313@redhat.com>
12994
12995 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12996 * aclocal.m4: Regenerate.
12997 * configure: Regenerate.
12998
12999 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
13000 TCL_LD_SEARCH_FLAGS.
13001
40d02bca
ML
130022003-02-10 Michal Ludvig <mludvig@suse.cz>
13003
13004 * dwarf2cfi.c: Reindented.
13005
11308a41
AC
130062003-02-09 Andrew Cagney <ac131313@redhat.com>
13007
13008 * interps.c (clear_interpreter_hooks): Convert function definition
13009 to ISO C.
13010
e1c1c0f6
DC
130112003-02-07 David Carlton <carlton@math.stanford.edu>
13012
13013 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
13014
ab5d3da6
KB
130152003-02-07 Kevin Buettner <kevinb@redhat.com>
13016
13017 * gdbtypes.h (struct main_type): Move ``length'' field from here...
13018 (struct type): ...to here.
13019 (TYPE_LENGTH): Adjust to reflect different location of ``length''
13020 field.
13021 * gdbtypes.c (make_qualified_type): Set length on newly created type.
13022 (replace_type): Set length on all type variants for a given type.
13023
b8a92b82
AC
130242003-02-07 Andrew Cagney <ac131313@redhat.com>
13025
13026 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
13027 <sys/stat.h>.
13028 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 13029
5cb316ef
AC
130302003-02-06 Andrew Cagney <ac131313@redhat.com>
13031
2555fe1a
AC
13032 * Makefile.in (symm-nat.o): Update dependencies.
13033 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13034 (lynx-nat.o, ia64-linux-nat.): Ditto.
13035 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13036 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13037 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13038
44270758
AC
13039 * Makefile.in (inflow_h): Define.
13040 (procfs.o, inflow.o, procfs.o): Update dependencies.
13041 * inftarg.c (child_stop): Delete extern declaration of
13042 inferior_process_group. Include "inflow.h".
13043 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13044 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13045 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13046 (our_process_group, inferior_process_group): Extern declarations.
13047
df8f7274
AC
13048 * procfs.c: Include "gdb_assert.h".
13049
5cb316ef
AC
13050 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13051 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13052 * jv-typeprint.c (java_type_print_base): Ditto.
13053 * typeprint.c (typedef_print): Eliminate STREQ.
13054 * cli/cli-script.c (define_command, define_command): Ditto.
13055 * main.c (captured_main): Ditto.
13056 * values.c (lookup_internalvar): Ditto.
13057 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13058 within `if' conditional.
13059 * linespec.c (decode_line_2): Ditto.
13060 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13061 (bfd_openw_with_cleanup): Ditto.
13062
2a28ccea
MK
130632003-02-07 Mark Kettenis <kettenis@gnu.org>
13064
13065 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13066 legacy_extract_return_value and store_return_value to
13067 legacy_return_value.
13068
786b8124
CF
130692003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13070
13071 * win32-nat.c (get_relocated_section_addrs): New function. Find
13072 section load addresses for symbol handling in relocated DLLs.
13073 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13074
b871e4ec
FF
130752003-02-05 Fred Fish <fnf@intrinsity.com>
13076
13077 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13078 '=' and '!='.
13079 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13080 with '&' and '=='.
13081 (angel_RDI_info): Ditto.
13082 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13083 with '&' and '!='.
13084 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13085
4389a95a 130862003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13087 Keith Seitz <keiths@redhat.com>
13088 Elena Zannoni <ezannoni@redhat.com>
13089 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13090
13091 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13092 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13093 (SUBDIR_MI_OBS): Add "mi-interp.o".
13094 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13095 (SFILES): Add "interps.c".
13096 (COMMON_OBS): Add "interps.o".
13097 (interps_h, mi_main_h): Define.
13098 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13099 (mi-main.o, main.o, event-top.o): Update dependencies.
13100 * cli/cli-interp.c: New file.
13101 * interps.h, interps.c: New files.
13102 * top.c: (gdb_init): Don't install the default interpreter, handed
13103 by captured_main.
13104 * main.c: Include "interps.h".
13105 (interpreter_p): Note that it should malloc'ed.
13106 (captured_command_loop): Call current_interp_command_loop.
13107 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13108 xfree and xstrdup when updating interpreter_p. Install the
13109 default interpreter. Add hack to stop mi1's copyright notice
13110 being encoded.
13111 * event-top.h (gdb_setup_readline): Declare.
13112 (gdb_disable_readline): Declare.
13113 * event-top.c: Include "interps.h".
13114 (display_gdb_prompt): Call current_interp_display_prompt_p.
13115 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13116 gdb_stdlog, and gdb_stdtarg.
13117 (_initialize_event_loop): Don't call gdb_setup_readline.
13118 * cli-out.c (cli_out_set_stream): New function.
13119 * cli-out.h (cli_out_set_stream): Declare.
13120
ff3b5810
MK
131212003-02-06 Mark Kettenis <kettenis@gnu.org>
13122
13123 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13124 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13125 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13126 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13127 config/i386/i386v42mp.mt: Removed.
13128
5b729aa5
MK
131292003-02-05 Mark Kettenis <kettenis@gnu.org>
13130
13131 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13132 GDB_OSABI_SOLARIS.
13133
8cc15142
MC
131342003-02-05 Michael Chastain <mec@shout.net>
13135
13136 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13137 2.12.1 and earlier versions.
13138
5aa5d4b9
AC
131392003-02-05 Andrew Cagney <ac131313@redhat.com>
13140
13141 Remove orphaned hosts, targets and files.
13142 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13143 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13144 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13145 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13146 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13147 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13148 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13149 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13150 * config/sparc/tm-sp64sim.h: Delete.
13151 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13152 hosts.
13153 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13154 mips*-dec-mach3* targets.
13155
b68767c1
MC
131562003-02-04 Michael Chastain <mec@shout.net>
13157
13158 * NEWS: Fix typo: sepcifying -> specifying.
13159
5ae7ca1d
MC
131602003-02-04 Michael Chastain <mec@shout.net>
13161
13162 * dwarfread.c: Add documentation on the state of dwarf-1,
13163 looking towards obsoletion.
13164
d08a4280
MC
131652003-02-03 Michael Chastain <mec@shout.net>
13166
13167 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13168 gdb/testsuite/gdb.c++/pr-1023.exp.
13169
e9be73e4
AC
131702003-02-04 Andrew Cagney <ac131313@redhat.com>
13171
13172 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13173 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13174
13175 * utils.c (init_page_info): Delete reference to MPW in comments.
13176 * main.c (captured_main): Delete #ifdef MPW.
13177
05d57f6f
AC
131782003-02-04 Andrew Cagney <ac131313@redhat.com>
13179
8ffd9b1b 13180 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13181 * monitor.c (monitor_expect): Obsolete reference to m32r.
13182 * configure.tgt: Mark m32r-*-elf* as obsolete.
13183 * MAINTAINERS: Mark m32k as obsolete.
13184 * m32r-rom.c: Obsolete file.
13185 * config/m32r/m32r.mt: Obsolete file.
13186 * config/m32r/tm-m32r.h: Obsolete file.
13187 * m32r-stub.c: Obsolete file.
13188 * m32r-tdep.c: Obsolete file.
13189
8b0e5691
AC
131902003-02-04 Andrew Cagney <ac131313@redhat.com>
13191
13192 * NEWS: Mention that the z8k-zilog-none is obsolete.
13193 * MAINTAINERS: Mark z8k as obsolete.
13194 * configure.tgt: Obsolete the z8k-*-coff* target.
13195 * config/z8k/z8k.mt: Obsolete file.
13196 * config/z8k/tm-z8k.h: Obsolete file.
13197 * z8k-tdep.c: Obsolete file.
13198
67f16606
AC
131992003-02-04 Andrew Cagney <ac131313@redhat.com>
13200
13201 * NEWS: Mention that the mn10200-elf is obsolete.
13202 * configure.tgt: Obsolete mn10200-*-* target.
13203 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13204 mention that the mn10200 is obsolete.
13205 * breakpoint.h: Ditto.
13206 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13207 * config/mn10200/mn10200.mt: Obsolete file.
13208 * config/mn10200/tm-mn10200.h: Obsolete file.
13209 * mn10200-tdep.c: Obsolete file.
13210
fd2299bd
AC
132112003-02-04 Andrew Cagney <ac131313@redhat.com>
13212
13213 * MAINTAINERS: Mark h8500 as obsolete.
13214 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13215 * findvar.c (value_from_register): Ditto.
13216 * h8500-tdep.c: Mark file as obsolete.
13217 * config/h8500/h8500.mt: Ditto.
13218 * config/h8500/tm-h8500.h: Ditto.
13219 * NEWS: Mention that h8500 is obsolete.
13220
eb9a305d
DC
132212003-02-04 David Carlton <carlton@math.stanford.edu>
13222
13223 * objfiles.c (allocate_objfile): Always set name. Add comment at
13224 start of function.
13225 * jv-lang.c (get_dynamics_objfile): Add comment.
13226
406fc7fb
DC
132272003-02-04 David Carlton <carlton@math.stanford.edu>
13228
13229 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13230 * printcmd.c (build_address_symbolic): Replace uses of
13231 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13232 SYMBOL_NAME, and asm_demangle.
13233 Update copyright.
13234
93d91629
DC
132352003-02-04 David Carlton <carlton@math.stanford.edu>
13236
13237 * linespec.c (decode_compound): Extract code into
13238 lookup_prefix_sym.
13239 (lookup_prefix_sym): New function.
13240
1c5cb38e
DC
132412003-02-04 David Carlton <carlton@math.stanford.edu>
13242
13243 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13244 FLOAT_COERCION_BADNESS.
13245 * gdbtypes.c (rank_one_type): Replace all uses of
13246 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13247
0cf824c9
JB
132482003-02-04 Jim Blandy <jimb@redhat.com>
13249
13250 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13251 section, let dwarf_macinfo_section point to it, not
13252 dwarf_loc_section.
13253
a2d356b0
DJ
132542003-02-04 Daniel Jacobowitz <drow@mvista.com>
13255
13256 Pointed out by Anton Blanchard <anton@samba.org>.
13257 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13258 (ppc_linux_at_sigtramp_return_path): Use it.
13259
2de7ced7
DJ
132602003-02-04 Daniel Jacobowitz <drow@mvista.com>
13261
13262 * defs.h (streq): Add prototype.
13263 * utils.c (streq): New function.
13264
13265 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13266 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13267 * mdebugread.c (new_symbol): Likewise.
13268 * stabsread.c (define_symbol): Likewise.
13269 * coffread.c (process_coff_symbol): Likewise.
13270 * dwarfread.c (new_symbol): Likewise.
13271
13272 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13273 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13274 here.
13275 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13276 SYMBOL_INIT_DEMANGLED_NAME.
13277 * objfiles.c: Include "hashtab.h".
13278 (allocate_objfile): Call htab_set_functions_ex for the
13279 demangled_names_hash.
13280 (free_objfile): Call htab_delete for the demangled_names_hash.
13281 * objfiles.h (struct htab): Add declaration.
13282 (struct objfile): Add demangled_names_hash.
13283 * symfile.c: Include "hashtab.h".
13284 (reread_symbols): Call htab_delete for the demangled_names_hash.
13285 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13286 SYMBOL_NAME in the bcache.
13287 * symtab.c: Include "hashtab.h". Update comments.
13288 (create_demangled_names_hash, symbol_set_names): New functions.
13289 (symbol_find_demangled_name): New function, broken out from
13290 symbol_init_demangled_names.
13291 (symbol_init_demangled_names): Use it.
13292 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13293 (SYMBOL_SET_NAMES): New macro.
13294 (symbol_set_names): Add prototype.
13295
15831452
JB
132962003-02-03 Jim Blandy <jimb@redhat.com>
13297
13298 Use a single, consistent representation for an empty minimal
13299 symbol table in an objfile.
13300 * objfiles.c (terminate_minimal_symbol_table): New function.
13301 (allocate_objfile): Call it.
13302 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13303 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13304 non-NULL.
15831452
JB
13305 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13306 objfile has minimal symbols, compare minimal_symbol_count to zero,
13307 instead of comparing msymbols with NULL.
13308 * objfiles.c (have_minimal_symbols): Same.
13309 * solib-sunos.c (solib_add_common_symbols): Call
13310 terminate_minimal_symbol_table.
13311 * symfile.c (reread_symbols): Same.
8ffd9b1b 13312
ffc65945
KB
133132003-02-03 Kevin Buettner <kevinb@redhat.com>
13314
13315 * s390-tdep.c (s390_address_class_type_flags)
13316 (s390_address_class_type_flags_to_name)
13317 (s390_address_class_name_to_type_flags): New functions.
13318 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13319 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13320
f211c6d4
MS
133212003-02-03 Michael Snyder <msnyder@redhat.com>
13322
13323 * arm-tdep.c: Fix spell-o in comment.
13324
659b0389
ML
133252003-02-03 Michal Ludvig <mludvig@suse.cz>
13326
13327 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13328 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13329 error messages to contain BFD filename.
659b0389 13330
3b31d625
EZ
133312003-02-02 Elena Zannoni <ezannoni@redhat.com>
13332
997b089a 13333 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13334 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13335 (do_mixed_source_and_assembly): Use
13336 make_cleanup_ui_out_tuple_begin_end and
13337 make_cleanup_ui_out_tuple_begin_end.
13338 (do_mixed_source_and_assembly): Ditto.
13339 * thread.c (do_captured_list_thread_ids): Ditto.
13340 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13341 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13342 ui_out_tuple_end): Delete prototypes.
13343 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13344 ui_out_list_end, ui_out_tuple_end): Delete.
13345
13346 From Kevin Buettner <kevinb@redhat.com>:
13347 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13348 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13349 (do_cleanup_table_end): New functions.
13350 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13351 Use cleanups to invoke_ui_out_tuple_end().
13352 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13353 * cli/cli-setshow.c (cmd_show_list): Use
13354 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13355
5b181d62
AC
133562003-02-02 Andrew Cagney <ac131313@redhat.com>
13357
13358 * frame.c (frame_unwind_register): New function.
13359 (frame_unwind_unsigned_register): Use.
13360 (frame_unwind_signed_register): Use.
13361 (frame_read_register): New function.
13362 * frame.h (frame_unwind_register): Declare.
13363 (frame_read_register): Declare.
13364
13365 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13366 and frame_unwind_register instead of read_memory, write_register
13367 and deprecated_write_register_bytes.
13368
5f601589
AC
133692003-02-02 Andrew Cagney <ac131313@redhat.com>
13370
13371 * frame.h: Note that namelen can be negative.
13372 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13373 NAME's length.
13374
13375 * NEWS: Mention that the d10v's `regs' command is deprecated.
13376 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13377 (d10v_print_registers_info): New function.
13378 (show_regs): Call d10v_print_registers_info.
13379 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13380
6a3fe0a4
MK
133812003-02-02 Mark Kettenis <kettenis@gnu.org>
13382
13383 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13384 lost in the previous patch.
13385
075559bc
AC
133862003-02-01 Andrew Cagney <ac131313@redhat.com>
13387
13388 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13389 * stack.c (print_frame_info_base): Output complete FRAME tuple
13390 for synthesized frames.
075559bc 13391
6789195b
AC
133922003-02-02 Andrew Cagney <ac131313@redhat.com>
13393
13394 * mips-nat.c (zerobuf): Delete.
13395 (fetch_inferior_registers): Alloc local zerobuf.
13396 (fetch_core_registers): Alloc local zerobuf.
13397 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13398 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13399 * thread-db.c (thread_db_store_registers): Ditto.
13400 * sh-tdep.c (sh_do_register): Ditto.
13401 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13402 * remote-sim.c (gdbsim_store_register): Ditto.
13403 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13404 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13405 * monitor.c (monitor_supply_register): Ditto.
13406 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13407 * mips-nat.c (fetch_inferior_registers): Ditto.
13408 * m68klinux-nat.c (fetch_register): Ditto.
13409 * lynx-nat.c (fetch_inferior_registers): Ditto.
13410 (fetch_inferior_registers): Ditto.
13411 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13412 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13413 (hpux_thread_store_registers): Ditto.
13414 * hppah-nat.c (fetch_register): Ditto.
13415 * hppab-nat.c (fetch_register): Ditto.
13416 * hppa-tdep.c (pa_register_look_aside): Ditto.
13417 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13418 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13419
e669114a
AC
134202003-02-01 Andrew Cagney <ac131313@redhat.com>
13421
13422 * gdbarch.sh: Explictly specify all method levels. When a
13423 variable with an empty level, provide a non-multi-arch default.
13424 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13425 * gdbarch.h: Re-generate.
13426 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13427 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13428
9a043c1d
AC
134292003-02-01 Andrew Cagney <ac131313@redhat.com>
13430
13431 * defs.h (host_pointer_to_address): Delete declaration.
13432 (address_to_host_pointer): Delete declaration.
13433 * utils.c (host_pointer_to_address): Delete function.
13434 (address_to_host_pointer): Delete function.
13435 * procfs.c (procfs_address_to_host_pointer): New function.
13436 * procfs.c (proc_set_watchpoint): Use.
13437 (procfs_can_use_hw_breakpoint): Update comments.
13438 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13439 (som_solib_add): Use.
13440 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13441 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13442
7ca9f392
AC
134432003-02-01 Andrew Cagney <ac131313@redhat.com>
13444
94bbfd30
AC
13445 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13446 strlen d_name.
13447
7ca9f392
AC
13448 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13449 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13450 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13451 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13452 (define_symbol): Update.
13453 * symfile.c (generic_load): Remove references to nindy.
13454 * symtab.c: Remove references to nindy.
13455
31a85ea2
AC
134562003-02-01 Andrew Cagney <ac131313@redhat.com>
13457
13458 * infcmd.c (print_float_info): Delete code conditional on
13459 FLOAT_INFO.
13460 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13461 * config/m68k/nm-apollo68b.h: Ditto.
13462 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13463 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13464 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13465
f6e85fc8
MK
134662003-02-01 Mark Kettenis <kettenis@gnu.org>
13467
6015b6a0
MK
13468 * config/i386/tm-i386os9k.h: Removed.
13469
f7a30bdf
MK
13470 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13471 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13472 they're identical to i[3456]86-*-sysv* now.
13473 * config/i386/i386v32.mh: Removed.
13474 * config/i386/xm-i386v32.h: Removed.
13475 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13476
28d52111
MK
13477 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13478
4d3f6bce
MK
13479 * config/i386/i386dgux.mh: Removed.
13480 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13481
f6e85fc8
MK
13482 * configure.in: Fix typo.
13483 * configure: Regenerated.
13484
53955967
DC
134852003-01-31 David Carlton <carlton@math.stanford.edu>
13486
13487 * dwarf2read.c (dwarf2_locate_sections): Set
13488 dwarf_ranges_section.
13489
b1364885
AC
134902003-01-31 Andrew Cagney <ac131313@redhat.com>
13491
8dbb1c65
AC
13492 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13493 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13494
8731e58e
AC
13495 * utils.c: Re-indent.
13496
b1364885
AC
13497 * config/djgpp/fnchange.lst: Delete nindy files.
13498 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13499 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13500 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13501 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13502 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13503 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13504 * Makefile.in (init.c): Remove nindy references.
13505 (saber_gdb): Delete rule.
13506 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13507 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13508 and a68v-nat.c.
13509 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13510 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13511 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13512 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13513 nindy-share/stop.h.
13514 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13515 * saber.suppress: Delete file.
13516
086df311
DJ
135172003-01-31 Daniel Jacobowitz <drow@mvista.com>
13518
13519 * dbxread.c (stabs_data): New static variable.
13520 (fill_symbuf): Support an in-memory buffer for stabs data.
13521 (stabs_seek): New function.
13522 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13523 (read_ofile_symtab): Use stabs_seek.
13524 (elfstab_build_psymtabs): Take an asection* instead of
13525 an offset and size. Relocate the stabs data if necessary.
13526 Save the section* for dbx_psymtab_to_symtab.
13527 * dwarf2read.c: Add section variables for each debug section.
13528 (dwarf2_locate_sections): Fill them in.
13529 (dwarf2_read_section): Take an asection* argument.
13530 Relocate the section contents if necessary.
13531 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13532 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13533 it to dwarf2_read_section.
13534 (dwarf2_build_frame_info): Update callers.
13535 * elfread.c (elf_symfile_read): Update call to
13536 elfstab_build_psymtabs.
13537 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13538 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13539 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13540 * symfile.c (symfile_dummy_outputs): New function.
13541 (symfile_relocate_debug_section): New function.
13542 * symfile.h (symfile_relocate_debug_section): Add prototype.
13543
87d1b352
RH
135442003-01-31 Richard Henderson <rth@redhat.com>
13545
13546 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13547 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13548 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13549 * alpha-tdep.c (alpha_register_name): Add "unique".
13550 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13551 (ALPHA_UNIQUE_REGNUM): New.
13552 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13553
c48861fb
AC
135542003-01-31 Andrew Cagney <ac131313@redhat.com>
13555
13556 * README: Remove reference to Ericsson 1800 monitor.
13557 * Makefile.in (remote-es.o): Delete rule.
13558 (ALLDEPFILES): Delete remote-es.c.
13559 * remote-es.c: Delete file.
13560 * config/m68k/es1800.mt: Delete file.
13561 * config/djgpp/fnchange.lst: Update.
13562 * configure.tgt: Delete m68*-ericsson-* target.
13563
d764a824
AF
135642003-01-31 Adam Fedor <fedor@gnu.org>
13565
13566 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13567 Remove duplicate/shadowing variable of same name.
13568
fe36c4f4
JB
135692003-01-30 Jim Blandy <jimb@redhat.com>
13570
13571 * symfile.c (find_separate_debug_file): Assert that the objfile's
13572 directory name we compute ends with a slash, and then assume that
13573 that's so everywhere we use it.
13574
cb741690
DJ
135752003-01-30 Daniel Jacobowitz <drow@mvista.com>
13576
13577 * valops.c (value_assign): Flush frame cache after stores to memory
13578 also.
13579
96ee5227
AC
135802003-01-30 Andrew Cagney <ac131313@redhat.com>
13581
13582 * Makefile.in (mon960-rom.o): Delete rule.
13583 * mon960-rom.c: Delete file.
13584
7f6104a9
AC
135852003-01-30 Andrew Cagney <ac131313@redhat.com>
13586
13587 * d10v-tdep.c: Include "frame-unwind.h".
13588 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13589 list.
13590 (next_addr, uses_frame): Delete.
13591 (struct d10v_unwind_cache): Define.
13592 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13593 Use info instead of next_addr and uses_frame globals.
13594 (d10v_frame_init_saved_regs): Delete function.
13595 (d10v_init_extra_frame_info): Delete function.
13596 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13597 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13598 init_frame_pc or frame_saved_pc.
13599 (d10v_pop_frame): Delete function.
13600 (do_d10v_pop_frame): Delete function.
13601 (d10v_frame_chain): Delete function.
13602 (d10v_frame_chain_valid): Delete function.
13603 (d10v_frame_pc_unwind): New function.
13604 (d10v_frame_id_unwind): New function.
13605 (saved_regs_unwinder): New function.
13606 (d10v_frame_register_unwind): New function.
13607 (d10v_frame_pop): New function.
13608 (d10v_frame_unwind): New variable.
13609 (d10v_frame_p): New function.
13610 (d10v_frame_saved_pc): Delete function.
13611 * Makefile.in (d10v-tdep.o): Update dependencies.
13612
cad2e848
JB
136132003-01-30 J. Brobecker <brobecker@gnat.com>
13614
13615 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13616 causing some regressions due to a change in the default value
13617 for this macro.
13618
af34e669
DJ
136192003-01-29 Richard Henderson <rth@redhat.com>
13620 Elena Zannoni <ezannoni@redhat.com>
13621 Daniel Jacobowitz <drow@mvista.com>
13622
13623 Fix PR gdb/961.
8ffd9b1b 13624 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13625 variables.
13626 (RANGES_SECTION): New.
13627 (dwarf_ranges_buffer): New variable.
13628 (struct comp_unit_head): Add member "die".
13629 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13630 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13631 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13632 (dwarf2_locate_sections): Likewise.
13633 (dwarf2_build_psymtabs): Read .debug_ranges.
13634 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13635 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13636 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13637 Look for DW_AT_ranges and return the bounding box.
13638
baa93fa6
CF
136392003-01-29 Brian Ford <ford@vss.fsi.com>
13640
13641 * win32-nat.c (cygwin_pid): Removed as unused.
13642 (child_attach): Try fall back to Cygwin pid.
13643
c63f977f
JB
136442003-01-29 Jim Blandy <jimb@redhat.com>
13645
13646 * objfiles.h (struct objfile): Doc fix.
13647
d62d1979
AC
136482003-01-29 Andrew Cagney <ac131313@redhat.com>
13649
13650 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13651 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13652 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13653 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13654 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13655 (FRAME_SAVED_PC): Change to a function with predicate.
13656 * gdbarch.h, gdbarch.c: Re-generate.
13657
1ae18a04
AC
136582003-01-28 Andrew Cagney <ac131313@redhat.com>
13659
52287340
AC
13660 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13661
1ae18a04
AC
13662 * complaints.c (complain): Delete function.
13663 * complaints.h (struct deprecated_complaint): Delete definition.
13664 (complain): Delete declaration.
13665
f2c16bd6
KB
136662003-01-28 Kevin Buettner <kevinb@redhat.com>
13667
13668 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13669 dummy frames.
13670
a94dd1fd
AC
136712003-01-27 Andrew Cagney <ac131313@redhat.com>
13672
13673 * sentinel-frame.h, sentinel-frame.c: New files.
13674 * Makefile.in (frame.o): Update dependencies.
13675 (SFILES): Add sentinel-frame.c.
13676 (sentinel_frame_h): Define.
13677 (COMMON_OBS): Add sentinel-frame.o.
13678 (sentinel-frame.o): Specify dependencies.
13679 * frame.c: Include "sentinel-frame.h".
13680 (frame_register_unwind): Rewrite assuming that there is always a a
13681 ->next frame.
13682 (frame_register, generic_unwind_get_saved_register): Ditto.
13683 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13684 (create_sentinel_frame, unwind_to_current_frame): New functions.
13685 (get_current_frame): Rewrite using create_sentinel_frame and
13686 unwind_to_current_frame. When possible, always create a frame.
13687 (create_new_frame): Set next to the sentinel frame.
13688 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13689 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13690 ID cache when necessary.
13691 (frame_saved_regs_id_unwind): Use frame_relative_level.
13692 (deprecated_generic_get_saved_register): Use frame_relative_level,
13693 get_frame_saved_regs, get_frame_pc, get_frame_base and
13694 get_next_frame.
13695 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13696 frame_register.
13697
5378adc4
DJ
136982003-01-27 Daniel Jacobowitz <drow@mvista.com>
13699
13700 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13701
51ee2ddc
DJ
137022003-01-27 Daniel Jacobowitz <drow@mvista.com>
13703
13704 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13705 (maintenance_set_profile_cmd): Use error () instead of warning ().
13706
d9feb4e7
DJ
137072003-01-27 Daniel Jacobowitz <drow@mvista.com>
13708
13709 * configure.in: Check that -pg works if using --enable-profiling.
13710 Check for monstartup and _mcleanup regardless of --enable-profiling.
13711 * maint.c: Check for monstartup and _mcleanup before using them.
13712 * config.in: Regenerated.
13713 * configure: Regenerated.
13714
2d188dd3
NC
137152003-01-24 Nick Clifton <nickc@redhat.com>
13716
13717 * Add sh2e support:
13718
13719 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13720
13721 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13722 (sh2e_show_regs): New.
13723 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13724 * config/sh/tm-sh.h: Added sh2e to comments.
13725
cb3c37b2
JB
137262003-01-23 Jim Blandy <jimb@redhat.com>
13727
13728 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13729 symbols found)" message here; we haven't checked for a separate
13730 debug info file yet, so we don't know yet.
13731 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13732 we've looked everywhere. Also, there's no need to print a special
13733 message when we're loading the separate debug info file: the one
13734 symbol_file_add prints is fine.
13735
5b5d99cf
JB
137362003-01-23 Alexander Larsson <alexl@redhat.com>
13737 Jim Blandy <jimb@redhat.com>
13738
13739 Add support for executables whose debug info has been separated
13740 out into a separate file, leaving only a link behind.
13741 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13742 and separate_debug_objfile_backlink.
13743 (put_objfile_before): New declaration.
13744 * symfile.c: #include "filenames.h".
13745 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13746 debug info in a separate file, read that, too. Save the addrs
13747 argument, so we can use it again to read the separated debug info;
13748 syms_from_objfile modifies the table we pass it.
13749 (reread_symbols): After re-reading an objfile, call
13750 reread_separate_symbols to refresh its separate debug info
13751 objfile, if it has one.
13752 (reread_separate_symbols, find_separate_debug_file,
13753 get_debug_link_info, separate_debug_file_exists): New functions.
13754 (debug_file_directory): New global var.
13755 (_initialize_symfile): Initialize debug_file_directory, and
13756 provide the new `set debug-file-directory' command to let the user
13757 change it.
13758 * objfiles.c (free_objfile): If this objfile has its debug info in
13759 a separate objfile, free that one too. If this is itself a
13760 separate debug info objfile, clear our parent's backlink.
13761 (put_objfile_before): New function.
13762 * utils.c (gnu_debuglink_crc32): New function.
13763 * defs.h (gnu_debuglink_crc32): New declaration.
13764 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13765 * configure.in: Handle --with-separate-debug-dir config option.
13766 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13767 * acconfig.h (DEBUGDIR): New macro.
13768 * configure, aclocal.m4, config.in: Regenerated.
13769
7e8580c1
JB
137702003-01-22 Jim Blandy <jimb@redhat.com>
13771
7904e09f
JB
13772 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13773 like the old symbol_file_add, but taking new arguments: you can
13774 now pass in either a `struct section_addr_info' list to say where
13775 each section is loaded, or a `struct section_offsets' table. Pass
13776 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13777 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13778 with the appropriate quiescent values for the new arguments.
13779
7e8580c1
JB
13780 * symfile.c: #include "gdb_assert.h".
13781 (syms_from_objfile): Add the ability to pass in a section offset
13782 table directly, as an alternative to the section_addr_info table.
13783 Document arguments better.
13784 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13785 * symfile.h (syms_from_objfile): Update declaration.
13786 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13787 syms_from_objfile.
13788 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13789
d28f9cdf
DJ
137902003-01-22 Daniel Jacobowitz <drow@mvista.com>
13791
13792 Original patch by Tom Tromey <tromey@cygnus.com> and
13793 Jason Molenda <jmolenda@apple.com>.
13794 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13795 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13796 * NEWS: Mention profiling.
13797 * configure.in (--enable-gdbtk): Fix typo.
13798 (--enable-profiling): New. Set PROFILE_CFLAGS.
13799 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13800 Fill in function.
13801 (profiling_state): New variable.
13802 (mcleanup_wrapper): New function.
13803 (_initialize_maint): Remove NOTYET, fix call to
13804 add_setshow_boolean_cmd for "maint set profile".
13805 * configure: Regenerated.
13806
df21e465
MH
138072003-01-21 Martin M. Hunt <hunt@redhat.com>
13808
13809 * Makefile.in (install-gdbtk): Install PNG images too.
13810
73c1f219
AC
138112003-01-21 Andrew Cagney <ac131313@redhat.com>
13812
13813 * exec.c (text_start): Delete global variable.
13814 (exec_file_attach): Make text_start local to the function.
13815 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13816 * valops.c (hand_function_call): Delete code that handles
13817 BEFORE_TEXT_END and AFTER_TEXT_END.
13818 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13819 of CALL_DUMMY_LOCATION.
13820 * gdbarch.c: Regenerate.
13821 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13822 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13823 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13824 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13825 (text_end): Delete extern declaration.
13826
eb4f72c5
AC
138272003-01-21 Andrew Cagney <ac131313@redhat.com>
13828
13829 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13830 * blockframe.c (backtrace_below_main): Move to "frame.c".
13831 (frame_chain_valid): Delete check for backtrace_below_main.
13832 (_initialize_blockframe): Delete initialization, move ``set
13833 backtrace-below-main'' command to "frame.c".
13834 (do_flush_frames_sfunc): Delete function.
13835 * frame.c: Include "command.h" and "gdbcmd.h".
13836 (frame_type_from_pc): New function.
13837 (create_new_frame): Use frame_type_from_pc.
13838 (legacy_get_prev_frame): New function.
13839 (get_prev_frame): Rewrite. When an old style frame, call
13840 legacy_get_prev_frame. Otherwize, unwind the PC first.
13841 (_initialize_frame): Add ``set backtrace-below-main'' command.
13842 * Makefile.in (frame.o): Update dependencies.
13843
778ce8cc
AC
138442003-01-19 Andrew Cagney <ac131313@redhat.com>
13845
13846 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13847 DEPRECATED_REGISTERS_INFO.
13848
01c193c8
AC
138492003-01-19 Andrew Cagney <ac131313@redhat.com>
13850
13851 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13852 Maintainers'. Update `Various Maintainers'.
13853
dedc2a2b
AC
138542003-01-19 Andrew Cagney <ac131313@redhat.com>
13855
13856 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13857 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13858 Suppress actual parameters when `-'.
13859 * gdbarch.h, gdbarch.c: Regenerate.
13860
b7261c70
AC
138612003-01-19 Andrew Cagney <ac131313@redhat.com>
13862
13863 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13864 code handling dummy frames.
13865
dbe9fe58
AC
138662003-01-19 Andrew Cagney <ac131313@redhat.com>
13867
13868 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13869 (struct frame_unwind): Add field pop.
13870 * frame.h (frame_pop): Declare.
13871 * frame.c (frame_saved_regs_pop): New function.
13872 (trad_frame_unwinder): Add frame_saved_regs_pop.
13873 (frame_pop): New function.
13874 * dummy-frame.c (dummy_frame_pop): New function.
13875 (discard_innermost_dummy): New function.
13876 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13877 (dummy_frame_unwind): Add dummy_frame_pop.
13878 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13879 * valops.c (hand_function_call): Ditto.
13880 * stack.c (return_command): Ditto.
13881
570b8f7c
AC
138822003-01-18 Andrew Cagney <ac131313@redhat.com>
13883
13884 * cris-tdep.c: Fix function declaration indentation.
13885 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13886 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13887 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13888 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13889 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13890 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13891
138922003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13893
13894 * README (Unpacking and Installation -- quick overview):
13895 Warn against ".../gdb-5.3/gdb/configure".
13896
494cca16
AC
138972003-01-18 Andrew Cagney <ac131313@redhat.com>
13898
13899 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13900 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13901 (struct frame_unwind): Declare opaque.
13902 (dummy_frame_p): Declare function.
13903 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13904 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13905 * dummy-frame.c: Include "frame-unwind.h".
13906 (dummy_frame_p): New function.
13907 (dummy_frame_unwind): New variable.
13908 * frame.c: Include "frame-unwind.h".
13909 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13910 to use the new unwind field.
13911 (set_unwind_by_pc): Delete function.
13912 (create_new_frame, get_prev_frame): Set unwind field using
13913 frame_unwind_find_by_pc.
13914 (trad_frame_unwind, trad_frame_unwinder): New variables.
13915 * frame.h (trad_frame_unwind): Declare variable.
13916 (frame_id_unwind_ftype): Delete declaration.
13917 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13918 (struct frame_unwind): Declare opaque.
13919 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13920 register_unwind with a single unwind pointer.
13921 * frame-unwind.h, frame-unwind.c: New files.
13922 * Makefile.in (SFILES): Add frame-unwind.c.
13923 (frame_unwind_h): Define.
13924 (COMMON_OBS): Add frame-unwind.o.
13925 (frame-unwind.o): Specify dependencies.
13926 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13927
4efb68b1
AC
139282003-01-18 Andrew Cagney <ac131313@redhat.com>
13929
13930 * ada-valprint.c: Eliminate PTR.
13931 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13932 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13933 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13934 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13935 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13936 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13937 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13938
a84d24ee
AC
139392003-01-17 Andrew Cagney <ac131313@redhat.com>
13940
762f08a3
AC
13941 * main.c (captured_main): Don't use PTR.
13942 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13943 * gdbtypes.c (lookup_primitive_typename): Ditto.
13944 (lookup_struct_elt_type): Ditto.
13945 * f-valprint.c (info_common_command): Ditto.
13946 (list_all_visible_commons): Ditto.
13947 * jv-typeprint.c (java_type_print_base): Ditto.
13948
a84d24ee
AC
13949 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13950 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13951 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13952 i386-interix-nat.c and i386-interix-tdep.c. Rename
13953 m68klinux-nat.c and m68klinux-tdep.c. Rename
13954 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13955 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13956 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13957 * main.c (captured_main): Use xfree, not free.
13958
c170fb60
AC
139592003-01-16 Andrew Cagney <ac131313@redhat.com>
13960
13961 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13962 ID back using a parameter.
13963 * frame.c (frame_id_unwind): Update call.
13964 (frame_saved_regs_id_unwind): Update.
13965 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13966 * dummy-frame.h (struct frame_id): Add opaque declaration.
13967 (dummy_frame_id_unwind): Update declaration.
13968
867f3898
AC
139692003-01-15 Andrew Cagney <ac131313@redhat.com>
13970
13971 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13972
40622be8 139732003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13974
40622be8 13975 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13976
ae66c1fc
EZ
139772003-01-14 Elena Zannoni <ezannoni@redhat.com>
13978
997b089a 13979 Fix PR gdb/898
ae66c1fc
EZ
13980 * breakpoint.c (until_break_command): Add new argument. Use it to
13981 decide whether to stop only at the current frame or not.
13982 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13983 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13984 call.
13985 (advance_command): New function.
13986 (_initialize_infcmd): Update help string for 'until' command.
13987 Add new 'advance' command.
13988
a04257e6
DC
139892003-01-14 David Carlton <carlton@math.stanford.edu>
13990
13991 * linespec.c (decode_line_1): Normalize comments.
13992 (set_flags): Ditto.
13993 (locate_first_half): Ditto.
13994 (decode_compound): Ditto.
13995 (symtab_from_filename): Ditto.
13996 (decode_all_digits): Ditto.
13997 (decode_dollar): Ditto.
13998 (find_methods): Ditto.
13999 (find_toplevel_char): Ditto.
14000
1bac305b
AC
140012003-01-13 Andrew Cagney <ac131313@redhat.com>
14002
14003 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
14004 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
14005 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
14006 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
14007 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
14008 * language.c, language.h, m32r-tdep.c: Update copyright.
14009 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
14010 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
14011 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
14012 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
14013 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
14014 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
14015
25caa7a8
EZ
140162003-01-13 Elena Zannoni <ezannoni@redhat.com>
14017
14018 * stabsread.h (process_later, resolve_cfront_continuation):
14019 Obsolete.
14020 Update copyright years.
14021 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
14022 Update copyright year.
14023 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 14024 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
14025 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
14026 Update copyright year.
14027 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
14028 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
14029 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14030 (parse_partial_symbols): Obsolete cfront support.
14031 * stabsread.c
14032 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14033 macros.
14034 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14035 read_cfront_baseclasses, read_cfront_member_functions,
14036 resolve_cfront_continuation,read_cfront_static_fields,
14037 copy_cfront_struct_fields): Obsolete functions.
14038 (define_symbol, read_one_struct_field): Obsolete cfront support.
14039 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14040 Update Copyright year.
14041
7789c6f5
EZ
140422003-01-13 Elena Zannoni <ezannoni@redhat.com>
14043
14044 * stack.c (print_frame_info, print_stack_frame_base_stub,
14045 print_stack_frame_base, show_and_print_stack_frame_stub,
14046 show_and_print_stack_frame, print_only_stack_frame_stub,
14047 print_only_stack_frame): Delete functions.
14048 (print_stack_frame_stub): Call print_frame_info instead of
14049 print_frame_info_base.
14050 (print_frame_info_base): Rename to print_frame_info.
14051 (backtrace_command_1): Call print_frame_info, instead of
14052 print_frame_info_base.
14053 (current_frame_command): Call print_stack_frame, instead of
14054 print_only_stack_frame.
14055 (frame_command): Call print_stack_frame, instead of
14056 show_and_print_stack_frame.
14057 (up_command): Ditto.
14058 (down_command): Ditto.
14059 * frame.h (print_only_stack_frame): Delete prototype.
14060 * infrun.c (normal_stop): Call print_stack_frame, instead of
14061 show_and_print_stack_frame.
14062 * thread.c (info_threads_command): Call print_stack_frame, instead
14063 of print_only_stack_frame.
14064
3f5a3016
AC
140652003-01-13 Andrew Cagney <ac131313@redhat.com>
14066
d99ba314
AC
14067 * README (Graphical interface to GDB): Update URL. Point at
14068 gdb/links/.
14069
3f5a3016
AC
14070 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14071 version match.
14072
083ae935
DJ
140732003-01-13 Daniel Jacobowitz <drow@mvista.com>
14074
14075 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14076 lines.
14077
5365276c
DJ
140782003-01-13 Daniel Jacobowitz <drow@mvista.com>
14079
14080 * thread-db.c (attach_thread): Prototype.
14081 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14082 thread information (ti), and valid flags (th_valid, ti_valid).
14083 (attach_thread): Move target_pid_to_str call to after the thread
14084 is added to GDB's list. Initialize the cache.
14085 (thread_get_info_callback, thread_db_map_id2thr)
14086 (thread_db_get_info): New functions.
14087 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14088 (thread_db_store_registers, thread_db_thread_alive)
14089 (thread_db_get_thread_local_address): Use them.
14090 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14091 of calling error() for threads in unknown state.
14092
14093 (clear_lwpid_callback): New function.
14094 (thread_db_resume): Use it to clear the cache.
14095
9fc30b6b
DJ
140962003-01-13 Daniel Jacobowitz <drow@mvista.com>
14097
14098 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14099 (resume_callback): Remove dead code.
14100
8f871025
AC
141012003-01-13 Andrew Cagney <ac131313@redhat.com>
14102
14103 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14104 predicate.
14105 * gdbarch.h, gdbarch.c: Regenerate.
14106 * stack.c (frame_info): Only initialize the saved registers when
14107 FRAME_INIT_SAVED_REGS_P.
14108 * frame.c (frame_saved_regs_register_unwind): Assert
14109 FRAME_INIT_SAVED_REGS_P.
14110 (deprecated_generic_get_saved_register): Ditto.
14111
3f565f1e
DJ
141122003-01-13 Daniel Jacobowitz <drow@mvista.com>
14113
14114 * source.c (openp): Squelch warning about "filename".
14115
072b1022
DJ
141162003-01-13 Daniel Jacobowitz <drow@mvista.com>
14117
14118 * source.c (openp): If the file does not exist don't necessarily
14119 search the path.
14120
973ccf8b
DJ
141212003-01-13 Daniel Jacobowitz <drow@mvista.com>
14122
14123 Fix PR gdb/872.
14124 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14125 (integer_types_same_name_p): New function.
14126 (rank_one_type): Use it.
14127 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14128
030292b7
DJ
141292003-01-13 Daniel Jacobowitz <drow@mvista.com>
14130
14131 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14132 variables.
14133 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14134 * configure.in: Add --with-sysroot.
14135 * configure: Regenerated.
14136 * main.c (gdb_sysroot): New variable.
14137 (captured_main): Initialize gdb_sysroot.
14138 * defs.h (gdb_sysroot): New extern declaration.
14139 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14140
afb5d334
MC
141412003-01-12 Michael Chastain <mec@shout.net>
14142
14143 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14144
751ceeb4
MC
141452003-01-12 Michael Chastain <mec@shout.net>
14146
14147 * top.c (print_gdb_version): Bump copyright year to 2003.
14148
94cd26f8
DC
141492003-01-12 David Carlton <carlton@bactrian.org>
14150
14151 * linespec.c (symtab_from_filename): Rename variable 's' to
14152 'file_symtab'.
14153
1ce79225
AC
141542003-01-12 Andrew Cagney <ac131313@redhat.com>
14155
14156 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14157 dummy frame.
14158 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14159
fa1fd571
AC
141602003-01-12 Andrew Cagney <ac131313@redhat.com>
14161
14162 * d10v-tdep.c: Include "gdb_assert.h".
14163 (d10v_store_return_value): Rewrite to match current interface.
14164 (d10v_extract_struct_value_address): Ditto.
14165 (d10v_extract_return_value): Ditto.
14166 (d10v_gdbarch_init): Set store_restore_value,
14167 extract_struct_value_address and extract_return_value.
14168
68b8d23e
JB
141692003-01-12 J. Brobecker <brobecker@gnat.com>
14170
14171 * hpread.c (set_namestring): New procedure replacing the
14172 SET_NAMESTRING macro.
14173 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14174 by calls to set_namestring.
14175
141762003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14177
14178 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14179 a compilation warning.
14180 (hpread_process_one_debug_symbol): Likewise.
14181
88d262ca
DC
141822003-01-10 David Carlton <carlton@math.stanford.edu>
14183
14184 * linespec.c (decode_line_1): Rename variable 's' to
14185 'file_symtab'.
14186 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14187 (decode_dollar): Ditto.
14188 (decode_variable): Ditto.
14189 (symbol_found): Ditto.
14190
86669319
MC
141912003-01-09 Michael Chastain <mec@shout.net>
14192
14193 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14194
616a9dc4
CV
141952003-01-07 Corinna Vinschen <vinschen@redhat.com>
14196
14197 * win32-nat.c (set_process_privilege): New function.
14198 (child_attach): Call set_process_privilege() to enable the
14199 SE_DEBUG_NAME user privilege if available in process token.
14200
3269bcfa
JB
142012003-01-10 J. Brobecker <brobecker@gnat.com>
14202
14203 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14204 compilation error in the previous revision.
14205
2b0ee454
DC
142062003-01-09 David Carlton <carlton@math.stanford.edu>
14207
14208 * linespec.c: Update copyright.
14209
b3ba1b44
DJ
142102003-01-09 Daniel Jacobowitz <drow@mvista.com>
14211
14212 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14213 than inferior_ptid.
14214 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14215
4ef3f3be
AC
142162003-01-09 Andrew Cagney <ac131313@redhat.com>
14217
479ab5a0
AC
14218 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14219 Update comments.
14220 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14221 (frame_saved_regs_zalloc): Update.
14222 (frame_saved_regs_register_unwind): Update.
14223 (create_new_frame): Update.
14224 (get_prev_frame): Update.
14225 (frame_extra_info_zalloc): Update.
14226 (deprecated_get_frame_saved_regs): Update.
14227 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14228 * cris-tdep.c: Update comment.
14229
bde58177
AC
14230 * somsolib.h: Fix function indentation.
14231 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14232 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14233 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14234 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14235 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14236
4ef3f3be
AC
14237 * infrun.c (follow_fork): Use ISO C definition.
14238 * expprint.c (print_subexp): Use xfree instead of free.
14239 * charset.c: Include "gdb_string.h" instead of <string.h>.
14240 (register_iconv_charsets): Use ISO C definition.
14241 (host_charset, target_charset): Ditto.
14242 * Makefile.in (charset.o): Update dependencies.
14243 (mi-cmd-env.o): Update dependencies.
14244
1c615f7a
AC
142452003-01-08 Andrew Cagney <cagney@redhat.com>
14246
14247 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14248 get_frame_base.
14249
c9a1dc08
AC
142502003-01-08 Andrew Cagney <ac131313@redhat.com>
14251
14252 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14253 build directories. Save edited gdb output in Mbuild.log. If a
14254 build fails, remove any final GDB executable.
14255
dbad9d94
AC
142562003-01-08 Andrew Cagney <ac131313@redhat.com>
14257
14258 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14259 replacing hex constants with function names and stripping leading
14260 file name directory prefixes.
14261
8d357cca
AC
142622003-01-08 Andrew Cagney <cagney@redhat.com>
14263
14264 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14265 get_frame_base.
14266
bca02a8a
DC
142672003-01-08 David Carlton <carlton@math.stanford.edu>
14268
14269 * linespec.c (decode_line_1): Move code into decode_variable.
14270 (decode_variable): New function.
14271
7f8ab3a0
AC
142722003-01-08 Andrew Cagney <ac131313@redhat.com>
14273
14274 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14275
7b5849cc
AC
142762003-01-08 Andrew Cagney <cagney@redhat.com>
14277
14278 * cris-tdep.c (cris_frame_init_saved_regs): Use
14279 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14280 saved_regs buffer.
14281 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14282 (sh64_nofp_frame_init_saved_regs): Ditto.
14283 (sh_fp_frame_init_saved_regs): Ditto.
14284 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14285 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14286 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14287 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14288
72a5efb3
DJ
142892003-01-08 Daniel Jacobowitz <drow@mvista.com>
14290
14291 * minsyms.c (lookup_minimal_symbol): Update comment.
14292 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14293 (lookup_minimal_symbol_solib_trampoline): Likewise.
14294
11c02a10
AC
142952003-01-08 Andrew Cagney <cagney@redhat.com>
14296
aab3ea25
AC
14297 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14298 frame_relative_level.
14299
da50a4b7
AC
14300 * alpha-tdep.c: Use get_frame_extra_info.
14301 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14302 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14303 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14304 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14305
11c02a10
AC
14306 * alpha-tdep.c: Use get_next_frame.
14307 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14308 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14309 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14310 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14311 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14312 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14313 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14314
1e2330ba
AC
143152003-01-07 Andrew Cagney <cagney@redhat.com>
14316
14317 * alpha-tdep.c: Use get_frame_base.
14318 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14319 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14320 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14321 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14322 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14323 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14324 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14325 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14326
2d75187b
AC
143272003-01-07 Andrew Cagney <cagney@redhat.com>
14328
14329 * frame.c (deprecated_get_frame_context): New function.
14330 (deprecated_set_frame_context): New function.
14331 * frame.h (deprecated_get_frame_context): Declare.
14332 (deprecated_set_frame_context): Declare.
14333 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14334 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14335
483d36b2
AC
143362003-01-07 Andrew Cagney <cagney@redhat.com>
14337
14338 * frame.c (deprecated_set_frame_next_hack): New function.
14339 (deprecated_set_frame_prev_hack): New function.
14340 * frame.h (deprecated_set_frame_next_hack): Declare.
14341 (deprecated_set_frame_prev_hack): Declare.
14342 * mcore-tdep.c (analyze_dummy_frame): Use
14343 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14344 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14345
14e91ac5
DC
143462003-01-07 David Carlton <carlton@math.stanford.edu>
14347
14348 * linespec.c (decode_line_1): Move code into decode_dollar.
14349 (decode_dollar): New function.
14350
b0c6b05c
AC
143512003-01-07 Andrew Cagney <cagney@redhat.com>
14352
14353 * arm-tdep.c (arm_init_extra_frame_info): Use
14354 deprecated_update_frame_base_hack.
14355 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14356 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14357 (fix_frame_pointer): Ditto.
14358 (mn10300_analyze_prologue): Ditto.
14359
a00a19e9
AC
143602003-01-07 Andrew Cagney <cagney@redhat.com>
14361
14362 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14363 extra_info using frame_extra_info_zalloc.
14364 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14365 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14366 (sh64_init_extra_frame_info): Ditto.
14367 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14368 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14369 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14370 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14371 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14372 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14373 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14374 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14375 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14376 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14377 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14378 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14379
14380 * mn10300-tdep.c (analyze_dummy_frame): Use
14381 deprecated_set_frame_extra_info_hack.
14382 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14383
1fb4c65b
JB
143842003-01-07 J. Brobecker <brobecker@gnat.com>
14385
14386 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14387 class is not scText. These do not define "real" procedures.
14388 (parse_partial_symbols): Likewise.
14389
9fe7d6bf
MS
143902003-01-06 Michael Snyder <msnyder@redhat.com>
14391
14392 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14393
f6c609c4
AC
143942003-01-06 Andrew Cagney <ac131313@redhat.com>
14395
14396 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14397 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14398 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14399 deprecated_frame_xmalloc_with_cleanup.
14400 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14401 deprecated_frame_xmalloc.
14402 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14403 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14404
d995ff4b
AC
144052003-01-06 Andrew Cagney <cagney@redhat.com>
14406
84dc46cb
AC
14407 * x86-64-linux-tdep.c: Include "osabi.h".
14408 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14409
d995ff4b
AC
14410 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14411
66140c26
AC
144122003-01-06 Andrew Cagney <cagney@redhat.com>
14413
14414 * MAINTAINERS (Target Instruction Set Architectures): Update
14415 arm-elf. Can be built with -Werror, has been multiarched.
14416
14417 * value.h (unpack_long): Make buffer parameter constant.
14418 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14419 * scm-lang.h (scm_parse): Ditto.
14420 * defs.h (extract_typed_address, extract_address): Ditto.
14421 (extract_long_unsigned_integer): Ditto.
14422 * inferior.h (unsigned_pointer_to_address): Ditto.
14423 (signed_pointer_to_address): Ditto.
14424 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14425 * gdbarch.h, gdbarch.c: Regenerate.
14426 * findvar.c (extract_long_unsigned_integer): Update.
14427 (extract_address): Update.
14428 (extract_typed_address): Update.
14429 (unsigned_pointer_to_address): Update.
14430 * values.c (unpack_long): Update.
14431 (unpack_double): Update.
14432 (unpack_pointer): Update.
14433 (unpack_field_as_long): Update.
14434 * d10v-tdep.c (d10v_pointer_to_address): Update.
14435 * avr-tdep.c (avr_pointer_to_address): Update.
14436 * scm-lang.c (scm_unpack): Update.
14437 * findvar.c (signed_pointer_to_address): Update.
14438
b089b3da
ML
144392003-01-06 Michal Ludvig <mludvig@suse.cz>
14440
8ffd9b1b 14441 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14442 since it is in i386-tdep.c.
14443
aff87235
JB
144442003-01-06 J. Brobecker <brobecker@gnat.com>
14445
14446 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14447 failure introduced in the previous change.
14448
34f5e845
MC
144492003-01-05 Michael Chastain <mec@shout.net>
14450
14451 * README: Remove references to deleted remote-*.c files:
14452 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14453 remote-nrom.c, remote-os9k.c, remote-udi.c.
14454
28bcfd30
MK
144552003-01-05 Mark Kettenis <kettenis@gnu.org>
14456
14457 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14458 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14459 i386_get_longjmp_target.
14460
15a5b3ee
AC
144612003-01-05 Andrew Cagney <ac131313@redhat.com>
14462
14463 * arm-tdep.c (prologue_cache): Change to a pointer.
14464 (_initialize_arm_tdep): Allocate prologue_cache.
14465 (check_prologue_cache): Update.
14466 (save_prologue_cache): Update.
14467 (arm_gdbarch_init): Update.
14468
c263362b
DJ
144692003-01-04 Daniel Jacobowitz <drow@mvista.com>
14470
14471 * stabsread.c (update_method_name_from_physname): Call complaint()
14472 instead of error.
14473
51603483
DJ
144742003-01-04 Daniel Jacobowitz <drow@mvista.com>
14475
14476 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14477 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14478 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14479
14480 * blockframe.c: Include "gdbcmd.h" and "command.h".
14481 (backtrace_below_main): New variable.
14482 (file_frame_chain_valid, func_frame_chain_valid)
14483 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14484 (generic_func_frame_chain_valid): Remove functions.
14485 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14486 (_initialize_blockframe): New function.
14487 * Makefile.in (blockframe.o): Update dependencies.
14488 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14489 comment. Call frame_chain_valid ().
14490 * frame.h: Remove old prototypes. Add prototype for
14491 frame_chain_valid and update comments to match.
14492 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14493 Remove old comment.
14494 * gdbarch.h: Regenerated.
14495 * gdbarch.c: Regenerated.
14496
14497 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14498 set_gdbarch_frame_chain_valid.
14499 * avr-tdep.c (avr_gdbarch_init): Likewise.
14500 * cris-tdep.c (cris_gdbarch_init): Likewise.
14501 * frv-tdep.c (frv_gdbarch_init): Likewise.
14502 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14503 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14504 (i386_nw_init_abi): Likewise.
14505 (i386_gdbarch_init): Likewise.
14506 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14508 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14509 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14510 * mips-tdep.c (mips_gdbarch_init): Likewise.
14511 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14512 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14513 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14514 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14515 * s390-tdep.c (s390_gdbarch_init): Likewise.
14516 * sh-tdep.c (sh_gdbarch_init): Likewise.
14517 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14518 * v850-tdep.c (v850_gdbarch_init): Likewise.
14519 * vax-tdep.c (vax_gdbarch_init): Likewise.
14520 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14521
14522 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14523 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14524 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14525 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14526 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14527 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14528 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14529 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14530
b00a8037
DJ
145312002-01-04 Daniel Jacobowitz <drow@mvista.com>
14532
14533 * Makefile.in (acconfig_h): Remove incorrect macro.
14534 (config_h): Define.
14535 (osabi.o): Update dependencies.
14536 * configure.tgt: Set gdb_osabi based on target triplet.
14537 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14538 * configure: Regenerated.
14539 * config.in: Regenerated.
14540 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14541 (GDB_OSABI_DEFAULT): Define if not already defined.
14542 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14543 (set_osabi_string): New variables.
14544 (gdbarch_register_osabi): Add new OS ABI to
14545 gdb_osabi_available_names.
14546 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14547 (set_osabi, show_osabi): New functions.
14548 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14549
4be87837
DJ
145502003-01-04 Daniel Jacobowitz <drow@mvista.com>
14551
14552 * arch-utils.c (gdbarch_info_init): Set osabi to
14553 GDB_OSABI_UNINITIALIZED.
14554 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14555 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14556 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14557 * gdbarch.c: Regenerated.
14558 * gdbarch.h: Regenerated.
14559 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14560 there's no BFD.
14561 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14562 * osabi.h (enum gdb_osabi): Move to defs.h.
14563 (gdbarch_init_osabi): Update prototype.
14564 * defs.h (enum gdb_osabi): Moved here.
14565 * Makefile.in: Update dependencies.
14566
14567 * alpha-tdep.h: Don't include "osabi.h".
14568 (struct gdbarch_tdep): Remove osabi member.
14569 * alpha-tdep.c: Include "osabi.h".
14570 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14571 iterate over arches. Update call to gdbarch_init_osabi.
14572 (alpha_dump_tdep): Don't dump osabi.
14573 * alpha-linux-tdep.c: Include "osabi.h".
14574 * alpha-osf1-tdep.c: Include "osabi.h".
14575 * alphafbsd-tdep.c: Include "osabi.h".
14576 * alphanbsd-tdep.c: Include "osabi.h".
14577
14578 * arm-tdep.h: Don't include "osabi.h".
14579 (struct gdbarch_tdep): Remove osabi member.
14580 * arm-tdep.c: Include "osabi.h".
14581 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14582 iterate over arches. Update call to gdbarch_init_osabi.
14583 (arm_dump_tdep): Don't dump osabi.
14584 * arm-linux-tdep.c: Include "osabi.h".
14585 * armnbsd-tdep.c: Include "osabi.h".
14586
14587 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14588 Update call to gdbarch_init_osabi.
14589
14590 * i386-tdep.h: Don't include "osabi.h".
14591 (struct gdbarch_tdep): Remove osabi member.
14592 * i386-tdep.c: Include "osabi.h".
14593 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14594 iterate over arches. Update call to gdbarch_init_osabi.
14595 (i386_dump_tdep): Don't dump osabi.
14596 * i386-linux-tdep.c: Include "osabi.h".
14597 * i386-sol2-tdep.c: Include "osabi.h".
14598 * i386bsd-tdep.c: Include "osabi.h".
14599 * i386gnu-tdep.c: Include "osabi.h".
14600 * i386ly-tdep.c: Include "osabi.h".
14601 * i386nbsd-tdep.c: Include "osabi.h".
14602 * i386obsd-tdep.c: Include "osabi.h".
14603
14604 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14605 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14606 check osabi when iterating over arches. Update call to
14607 gdbarch_init_osabi.
14608 (mips_dump_tdep): Don't dump osabi.
14609
14610 * ns32k-tdep.h: Don't include "osabi.h".
14611 (struct gdbarch_tdep): Remove.
14612 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14613 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14614 allocate tdep. Update call to gdbarch_init_osabi.
14615 (ns32k_dump_tdep): Remove.
14616 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14617 * ns32knbsd-tdep.c: Include "osabi.h".
14618
14619 * ppc-tdep.h: Don't include "osabi.h".
14620 (struct gdbarch_tdep): Remove osabi member.
14621 * rs6000-tdep.c: Include "osabi.h".
14622 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14623 osabi when iterating over arches. Update call to
14624 gdbarch_init_osabi.
14625 (rs6000_dump_tdep): Don't dump osabi.
14626 * ppc-linux-tdep.c: Include "osabi.h".
14627 * ppcnbsd-tdep.c: Include "osabi.h".
14628
14629 * sh-tdep.h: Don't include "osabi.h".
14630 (struct gdbarch_tdep): Remove osabi member.
14631 * sh-tdep.c: Include "osabi.h".
14632 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14633 iterate over arches. Update call to gdbarch_init_osabi.
14634 (sh_dump_tdep): Don't dump osabi.
14635 * shnbsd-tdep.c: Include "osabi.h".
14636
14637 * sparc-tdep.c: Include "osabi.h".
14638 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14639 iterate over arches. Update call to gdbarch_init_osabi.
14640 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14641 tdep structure.
14642
14643 * vax-tdep.h: Don't include "osabi.h".
14644 (struct gdbarch_tdep): Remove.
14645 * vax-tdep.c: Include "osabi.h".
14646 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14647 iterate over arches. Don't allocate tdep. Update call
14648 to gdbarch_init_osabi.
14649 (vax_dump_tdep): Remove.
14650 (_initialize_vax_tdep): Update call to gdbarch_register.
14651
a881cf8e
DJ
146522003-01-04 Daniel Jacobowitz <drow@mvista.com>
14653
14654 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14655 entirely.
14656 (breakpoint_re_set_one): Don't fetch the value for a disabled
14657 watchpoint.
14658
1e698235
DJ
146592003-01-04 Daniel Jacobowitz <drow@mvista.com>
14660
14661 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14662 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14663 (COERCE_FLOAT_TO_DOUBLE): Remove.
14664 * gdbarch.c: Regenerate.
14665 * gdbarch.h: Regenerate.
14666 * Makefile.in: Remove value_h from gdbarch_h.
14667 * valops.c (coerce_float_to_double): New variable.
14668 (default_coerce_float_to_double): Remove.
14669 (standard_coerce_float_to_double): Remove.
14670 (value_arg_coerce): Use coerce_float_to_double.
14671 (_initialize_valops): Add "set coerce-float-to-double".
14672 * value.h (default_coerce_float_to_double): Remove prototype.
14673 (standard_coerce_float_to_double): Remove prototype.
14674
14675 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14676 prototyped.
14677 * mdebugread.c (parse_symbol): Likewise.
14678 * stabsread.c (define_symbol): Mark all functions as prototyped.
14679
14680 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14681 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14682 set_gdbarch_coerce_float_to_double.
14683 * arm-tdep.c (arm_gdbarch_init): Likewise.
14684 * frv-tdep.c (frv_gdbarch_init): Likewise.
14685 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14686 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14687 * mips-tdep.c (mips_gdbarch_init): Likewise.
14688 (mips_coerce_float_to_double): Remove.
14689 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14690 (rs6000_coerce_float_to_double): Remove.
14691 * s390-tdep.c (s390_gdbarch_init): Likewise.
14692 * sh-tdep.c (sh_gdbarch_init): Likewise.
14693 (sh_coerce_float_to_double): Remove.
14694 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14695 (sparc_coerce_float_to_double): Remove.
14696 * v850-tdep.c (v850_gdbarch_init): Likewise.
14697 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14698 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14699 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14700 (hppa_coerce_float_to_double): Remove prototype.
14701 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14702
f436a26a
DJ
147032003-01-04 Daniel Jacobowitz <drow@mvista.com>
14704
14705 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14706
248f8055
DJ
147072003-01-04 Daniel Jacobowitz <drow@mvista.com>
14708
14709 Suggested by Stewart Brown <sb24@avaya.com>:
14710 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14711 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14712 (c_type_print_varspec_suffix): Likewise.
14713
72cfdc76
MK
147142003-01-04 Mark Kettenis <kettenis@gnu.org>
14715
bfd260bb
MK
14716 * configure.in: Don't set and AC_SUBST SUBDIRS.
14717 * configure: Regenerated.
14718
72cfdc76
MK
14719 * configure.in: Remove code dealing with shared libraries.
14720 * Makefile.in: Remove HLDFLAGS and HLDENV.
14721 * configure: Regenerated.
14722
c8b8a898
AC
147232003-01-04 Andrew Cagney <ac131313@redhat.com>
14724
14725 * frame.c (deprecated_frame_xmalloc): New function.
14726 (deprecated_set_frame_saved_regs_hack): New function.
14727 (deprecated_set_frame_extra_info_hack): New function.
14728 * frame.h (deprecated_frame_xmalloc): Declare.
14729 (deprecated_set_frame_saved_regs_hack): Declare.
14730 (deprecated_set_frame_extra_info_hack): Declare.
14731
14abd0fb
MK
147322003-01-04 Mark Kettenis <kettenis@gnu.org>
14733
8ee53726
MK
14734 * configure.in: Move code that provides the --enable-gdbtk option
14735 right after the code that handles the --enable-tui option, and
14736 polish it somewhat.
14737 * configure: Regenerated.
14738
14abd0fb
MK
14739 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14740 AC_CHECK_FUNCS and remove the old check for pread64.
14741 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14742 * acconfig.h (_GNU_SOURCE): Add.
14743 (HAVE_PREAD64): Remove.
14744 * configure, aclocal.m4, config.in: Regenerated.
14745
b2fb4676
AC
147462003-01-03 Andrew Cagney <ac131313@redhat.com>
14747
14748 * alpha-tdep.c: Use get_frame_saved_regs.
14749 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14750 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14751 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14752 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14753 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14754
8dcde887
MK
147552003-01-03 Mark Kettenis <kettenis@gnu.org>
14756
14757 * configure.in: Remove all use of the SUBDIRS variable; add
14758 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14759 code providing the --enable-multi-ice option, and move it right in
14760 front of the code that checks whether gdbserver is supported.
14761 Polish that too.
14762 * configure: Regenerated.
14763 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14764 @SUBDIRS@.
14765
8ccd593b
AC
147662003-01-03 Andrew Cagney <cagney@redhat.com>
14767
14768 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14769 * avr-tdep.c, cris-tdep.c: Ditto.
14770 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14771 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14772
91151a06
MK
147732003-01-03 Mark Kettenis <kettenis@gnu.org>
14774
14775 * configure.in: Remove --enable-netrom option.
14776 * configure: Regenerated.
14777
8fe84d01
MK
147782003-01-03 Mark Kettenis <kettenis@gnu.org>
14779
14780 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14781 declaration for `struct re_pattern_buffer' instead.
14782 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14783
f0394be6
JB
147842003-01-03 J. Brobecker <brobecker@gnat.com>
14785
14786 * mdebugread.c (parse_symbol): Count until the stEnd matching
14787 the structure name.
14788
27e9bf90
MK
147892003-01-02 Mark Kettenis <kettenis@gnu.org>
14790
93d331ba
MK
14791 * configure.in: Remove --with-cpu option.
14792 subscripts. Remove evil changequotes here.
14793 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14794 * config.in, configure: Regenerated.
8ffd9b1b 14795
27e9bf90
MK
14796 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14797 * configure.in: Cleanup section that sources GDB and BFD configure
14798 subscripts. Remove evil changequotes here.
14799 * config.in, configure: Regenerated.
14800
50abf9e5
AC
148012003-01-02 Andrew Cagney <ac131313@redhat.com>
14802
14803 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14804 frame accessor methods.
14805 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14806 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14807 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14808 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14809 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14810 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14811 * z8k-tdep.c: Ditto.
8ffd9b1b 14812
287c1a40
MK
148132003-01-02 Mark Kettenis <kettenis@gnu.org>
14814
f5dbc56d
MK
14815 * configure.in: Remove UI_OUT configuration code.
14816 * ada-lang.c: Update assuming UI_OUT is always true.
14817 * Makefile.in (UIOUT_CFLAGS): Remove.
14818 * configure: Regenerated.
14819 * TODO: Remove blurb about elimination of -DUI_OUT.
14820
627af7ea
MK
14821 * configure.in: Move code that provides the --enable-gdbcli,
14822 --enable-gdbmi options right before the code that handles the
14823 --enable-tui option. Polish a bit.
14824 * configure: Regenerated.
14825
06825bd1
MK
14826 * configure.in: Rewrite check for GNU regex and the
14827 --without-included regex option, and move it into the "Checks for
14828 library functions" section. This makes us use the system regex
14829 again by default on systems with version 2 of the GNU C library.
14830 This was apparently broken.
14831 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14832 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14833 * config.in, configure: Regenerated.
14834
287c1a40
MK
14835 * configure.in: Move code that provides the --enable-tui option
14836 before the "Checks for libraries" section. Polish the code
14837 somewhat and set need_curses to yes if we build the TUI. Rewrite
14838 code that looks for a library providing termcap functionality to
14839 match more closely what's done in the Readline library, and move
14840 it into to the "Checks for libraries" section.
14841 * configure: Regenerated.
14842 * Makefile.in (TERMCAP): Remove variable.
14843 * config/i386/go32.mh (TERMCAP): Remove variable.
14844
684e56bf
AC
148452003-01-02 Andrew Cagney <ac131313@redhat.com>
14846
14847 * MAINTAINERS: Mention gdb_mbuild.sh.
14848 * gdb_mbuild.sh: Rewrite.
14849
e1ea1d75
MK
148502003-01-02 Mark Kettenis <kettenis@gnu.org>
14851
14852 * configure.in: Fix typo in last change.
14853 * config.in, configure: Regenerated.
14854
1b831c93
AC
148552003-01-02 Andrew Cagney <ac131313@redhat.com>
14856
14857 * valarith.c (value_binop): Delete obsolete code and comments.
14858 * configure.host: Ditto.
14859 * buildsym.h (make_blockvector): Ditto.
14860 * buildsym.c (make_blockvector): Ditto.
14861 * defs.h (enum language): Ditto.
14862 (chill_demangle): Ditto.
14863 * elfread.c (elf_symtab_read): Ditto.
14864 * dwarfread.c (CHILL_PRODUCER): Ditto.
14865 (set_cu_language): Ditto.
14866 (handle_producer): Ditto.
14867 * expprint.c (print_subexp): Ditto.
14868 * gdbtypes.c (chill_varying_type): Ditto.
14869 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14870 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14871 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14872 (chill_varying_type): Ditto.
14873 * language.h (_LANG_chill): Ditto.
14874 * language.c (binop_result_type, integral_type): Ditto.
14875 (character_type, string_type, structured_type): Ditto.
14876 (lang_bool_type, binop_type_check): Ditto.
14877 * stabsread.h (os9k_stabs): Ditto.
14878 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14879 (define_symbol, read_type, read_struct_fields): Ditto.
14880 (read_array_type, read_enum_type, read_huge_number): Ditto.
14881 (read_range_type, start_stabs): Ditto.
14882 * symfile.c (init_filename_language_table): Ditto.
14883 (add_psymbol_with_dem_name_to_list): Ditto.
14884 * symtab.c (symbol_init_language_specific): Ditto.
14885 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14886 * symtab.h (struct general_symbol_info): Ditto.
14887 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14888 * typeprint.c (typedef_print): Ditto.
14889 * utils.c (fprintf_symbol_filtered): Ditto.
14890 * valops.c (value_cast, search_struct_field, value_slice): Delete
14891 obsolete code.
14892 (varying_to_slice): Delete function.
14893 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14894 (varying_to_slice): Delete declaration.
14895 * MAINTAINERS: Update.
14896
8bb2c122
MK
148972003-01-02 Mark Kettenis <kettenis@gnu.org>
14898
97bf5e38
MK
14899 * configure.in: Reorganize "Checks for library functions section"
14900 a bit. Remove check for `btowc' and `isascii' functions.
14901 * configure: Regenerated.
14902
5ee754fc
MK
14903 * acconfig.h (_MSE_INT_H): Remove.
14904 * configure.in: Create "Checks for header files" section, and move
14905 appropriate tests there. Don't check for objlist.h, wchar.h,
14906 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14907 misdetection fix. Also add "Checks for types", "Checks for
14908 compiler characteristics" and "Checks for library functions"
14909 sections.
14910 * config.in, configure: Regenerated.
14911
8bb2c122
MK
14912 * configure.in: Create "Checks for programs" section, and move
14913 appropriate tests there.
14914
9a156167
MK
149152003-01-01 Mark Kettenis <kettenis@gnu.org>
14916
14917 * configure.in: Create "Checks for libraries" section, and move
14918 appropriate tests there. Cleanup check for wctype in libw. Use
14919 AC_SEARCH_LIBS to see whether we need libsocket.
14920 * configure: Regenerated.
14921
a80e2bcb 14922For older changes see ChangeLog-2002
c906108c
SS
14923\f
14924Local Variables:
14925mode: change-log
14926left-margin: 8
14927fill-column: 74
14928version-control: never
14929End:
This page took 1.372166 seconds and 4 git commands to generate.