2003-11-23 Andrew Cagney <cagney@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
66c57289
AC
12003-11-23 Andrew Cagney <cagney@redhat.com>
2
cb137aa5
AC
3 * defs.h (DEPRECATED_STREQN): Rename STREQN.
4 (DEPRECATED_STREQ): Rename STREQ.
5 * ada-exp.y, ada-lang.c, ada-lex.l, coffread.c: Update.
6 * config/mips/tm-irix5.h, config/mips/tm-irix6.h: Update.
7 * config/mips/tm-mipsv4.h, config/sparc/tm-sun4sol2.h: Update.
8 * dbxread.c, dwarf2read.c, dwarfread.c, environ.c: Update.
9 * eval.c, exec.c, f-lang.c, hppa-tdep.c, hpread.c: Update.
10 * jv-exp.y, language.c, m2-exp.y, mcore-rom.c: Update.
11 * mdebugread.c, mipsread.c, objc-exp.y, objfiles.c: Update.
12 * p-exp.y, p-typeprint.c, p-valprint.c, rs6000-nat.c: Update.
13 * source.c, sparc-tdep.c, stack.c, target.c: Update.
66c57289 14
cb137aa5 15 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
66c57289
AC
16 * elfread.c (elf_symtab_read): Delete STREQ from comment.
17
29dfb2ac
AC
182003-11-22 Andrew Cagney <cagney@redhat.com>
19
213cc0ad
AC
20 * frame.c (deprecated_frame_xmalloc): Delete function.
21 (deprecated_set_frame_extra_info_hack): Delete function.
22 (deprecated_set_frame_saved_regs_hack): Delete function.
23 * frame.h (deprecated_frame_xmalloc): Delete declaration.
24 (deprecated_set_frame_extra_info_hack): Delete declaration.
25 (deprecated_set_frame_saved_regs_hack): Delete declaration.
26 * mcore-tdep.c (analyze_dummy_frame): Instead of
27 deprecated_frame_xmalloc, deprecated_set_frame_saved_regs_hack,
28 and deprecated_set_frame_extra_info_hack use
29 deprecated_frame_xmalloc_with_cleanup.
30 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
31 * mips-tdep.c (mips_init_extra_frame_info): Delete call to
32 deprecated_set_frame_saved_regs_hack.
33
35bb18ac
AC
34 * mips-tdep.c (mips_frame_chain): Delete call to
35 deprecated_inside_entry_file.
36
38a7ce4b
AC
37 * frame.h (deprecated_set_frame_next_hack): Delete declaration.
38 (deprecated_set_frame_prev_hack): Delete declaration.
39 * frame.c (deprecated_set_frame_next_hack): Delete function.
40 (deprecated_set_frame_prev_hack): Delete function.
41 * mcore-tdep.c (analyze_dummy_frame): Delete calls to
42 "deprecated_set_frame_next_hack" and
43 "deprecated_set_frame_prev_hack".
44 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
45
47ebcfbe
AC
46 * mips-tdep.c (mips_register_convertible): Delete function.
47 (mips_register_convert_to_virtual): Delete function.
48 (mips_register_convert_to_raw): Delete function.
49 (mips_gdbarch_init): Do not set "deprecated_register_convertible",
50 "deprecated_register_convert_to_virtual", or
51 "deprecated_register_convert_to_raw".
52 (mips_pseudo_register_write, mips_pseudo_register_read): Handle
53 32/64 cooked to raw register conversions.
54
2a9264f1 55 * frame.c (deprecated_get_frame_context): Delete function.
38a7ce4b 56 (deprecated_set_frame_context): Delete function.
2a9264f1
AC
57 (struct frame_info): Delete member "context".
58 * frame.h (deprecated_get_frame_context): Delete declaration.
59 (deprecated_set_frame_context): Delete declaration.
60
7af6341f
AC
61 * procfs.c (procfs_wait): Delete FAULTED_USE_SIGINFO comment.
62 * config/sparc/tm-sun4sol2.h (FAULTED_USE_SIGINFO): Delete macro.
63 * config/i386/tm-i386sol2.h (FAULTED_USE_SIGINFO): Delete macro.
64 * config/alpha/nm-osf2.h (FAULTED_USE_SIGINFO): Delete macro.
65
10a08821
AC
66 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
67 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
68 mips_regsize.
69 (mips_dump_tdep): Do not print SIGFRAME_REG_SIZE.
70 * config/mips/tm-irix6.h (SIGFRAME_REG_SIZE): Delete macro.
71 * config/mips/tm-irix5.h: Update copyright.
72 (SIGFRAME_REG_SIZE): Delete macro.
73
00d33403
AC
74 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
75 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
76 declaration.
77 (DEPRECATED_VALUE_RETURNED_FROM_STACK): Delete macro.
78 * infcall.c (call_function_by_hand): Delete #ifdef
79 DEPRECATED_VALUE_RETURNED_FROM_STACK code.
80 * infcmd.c (print_return_value): Ditto.
81
74da7425
AC
82 * mips-tdep.c (skip_prologue_using_sal): New function.
83 (mips32_skip_prologue, mips16_skip_prologue): Use
84 skip_prologue_using_sal to get an upper bound on the search.
85
369864a4
AC
86 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
87 #if 0'ed macro.
88 * infrun.c (step_into_function): Delete #ifdef
89 PROLOGUE_FIRSTLINE_OVERLAP code.
90 * symtab.c (find_function_start_sal): Ditto.
91
a5a12285
AC
92 * remote-rdp.c: Update copyright.
93 (rdp_init): #if 0 references to "target_byte_order".
94
29dfb2ac
AC
95 * mips-tdep.c (mips_o32_store_return_value): Delete function.
96 (mips_o32_return_value): Replace mips_o32_xfer_return_value.
97 (mips_o32_extract_return_value): Delete function.
98 (mips_n32n64_return_value): Replace mips_n32n64_xfer_return_value.
99 (mips_n32n64_extract_return_value): Delete function.
100 (mips_n32n64_store_return_value): Delete function.
101 (mips_gdbarch_init): For o32 and n32n64, set "return_value"
102 instead of "store_return_value", "extract_return_value", and
103 "use_struct_convention".
104 (mips_n32n64_use_struct_convention): Delete function.
105
3a3da38c
KB
1062003-11-21 Kevin Buettner <kevinb@redhat.com>
107
108 * frv-tdep.c (frv_frame_this_id): Eliminate call to
109 inside_entry_func().
110
c5e656c1
MK
1112003-11-20 Mark Kettenis <kettenis@gnu.org>
112
113 * i386-tdep.c (i386_extract_return_value,
114 i386_store_return_value): Add gdbarch argument. Use it instead of
115 determining it from REGCACHE. Remove recursive call for
116 structures with a single member.
117 (i386_use_struct_convention): Remove.
118 (i386_reg_struct_return_p): New function.
119 (i386_return_value): New function.
120 (i386_gdbarch_init): Set return_value, don't set
121 extract_return_value, store_return_value and
122 use_struct_convention.
123 * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
124
515cc92e
JB
1252003-11-20 Jim Blandy <jimb@redhat.com>
126
127 * osabi.c (_initialize_gdb_osabi): Don't return before registering
128 the 'set osabi' and 'show osabi' commands.
129
3f1d7f16
MK
1302003-11-19 Mark Kettenis <kettenis@gnu.org>
131
132 * frame.c (get_prev_frame): Use result from
133 get_frame_address_in_block instead of get_frame_pc as argument to
134 inside_main_func. Fixes PR backtrace/1435.
135
667e784f
AC
1362003-11-19 Andrew Cagney <cagney@redhat.com>
137
138 * stack.c (return_command): Handle "void", "legacy" and "unknown
139 location" return values separatly.
140 * values.c (using_struct_return): Return 0 for a "void" return
141 type. Mention "register_value_being_returned".
142 (register_value_being_returned): Mention "using_struct_return".
143
4cecd739
DJ
1442003-11-19 Daniel Jacobowitz <drow@mvista.com>
145
146 * dwarf2read.c (offreg, basereg, isderef, frame_base_reg)
147 (frame_base_offset): Delete.
148 (read_func_scope): Delete call to decode_locdesc.
149 (decode_locdesc): Update comments. Don't set the removed variables.
150 Complain for DW_OP_reg* not at the end. Remove DW_OP_breg* and
151 DW_OP_fbreg support.
152
6b992462
DJ
1532003-11-18 Daniel Jacobowitz <drow@mvista.com>
154
155 * dwarf2read.c (optimized_out, islocal): Remove.
156 (decode_locdesc): Update comments. Don't set optimized_out
157 or islocal.
158
968d1cb4
JJ
1592003-11-17 Jeff Johnston <jjohnstn@redhat.com>
160 David Mosberger <davidm@hpl.hp.com>
161
162 * ia64-tdep.c: Include elf.h.
163 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
164 libunwind-ia64.h.
165 (ia64_rse_slot_num, ia64_rse_skip_regs): New for libunwind support.
166 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum): Ditto.
167 (ia64_is_fpreg, ia64_access_reg): Ditto.
168 (ia64_access_fpreg, ia64_access_mem): Ditto.
169 (get_kernel_table): Ditto.
170 (ia64_find_unwind_table): Ditto.
171 (ia64_find_proc_info_x, ia64_put_unwind_info): Ditto.
172 (ia64_get_dyn_info_list, ia64_libunwind_frame_this_id): Ditto.
173 (ia64_libunwind_frame_prev_register): Ditto.
174 (ia64_libunwind_frame_sniffer): Ditto.
175 (ia64_gdbarch_init)[HAVE_LIBUNWIND_IA64_H]: Add libunwind frame
176 sniffer. Register libunwind functions needed by generic
177 libunwind frame code using libunwind_frame_set_descr().
178
d29caefc
DJ
1792003-11-16 Daniel Jacobowitz <drow@mvista.com>
180
181 * breakpoint.c (re_enable_breakpoints_in_shlibs): Only re-enable a
182 bp_shlib_disabled breakpoint if there is a shared library mapped
183 at its expected address.
184
691c0433
AC
1852003-11-16 Andrew Cagney <cagney@redhat.com>
186
96cb1c2f
AC
187 * configure.tgt: Delete mips*tx39*-elf*.
188 * config/mips/tm-tx39.h: Delete file.
189 * config/mips/tx39.mt: Delete file.
190 * config/mips/tx39.mt: Delete file.
191
691c0433
AC
192 * mips-tdep.h (deprecated_mips_set_processor_regs_hack): Declare.
193 * remote-mips.c (common_open): Instead of
194 "mips_read_register_type" and "mips_set_processor_type_command"
195 call "deprecated_mips_set_processor_regs_hack".
196 * config/mips/tm-mips.h (mips_read_processor_type): Delete
197 declaration.
198 (mips_set_processor_type_command): Delete declaration.
199 * mips-tdep.c (mips_gdbarch_init): Update comment.
200 (mips_dump_tdep): Do not print MIPS_REGISTER_NAMES.
201 (mips_set_processor_type): Delete function.
202 (NUM_MIPS_PROCESSOR_REGS): Define.
203 (mips_show_processor_type_command): Delete function.
204 (mips_set_processor_type_command): Delete function.
205 (tmp_mips_processor_type): Delete.
206 (mips_processor_type): Delete.
207 (mips_processor_type_table): Delete.
208 (mips_r3051_reg_names): Delete.
209 (mips_r3081_reg_names): Delete.
210 (mips_lsi33k_reg_names): Delete.
211 (mips_processor_reg_names): Delete.
212 (mips_read_processor_type): Delete function.
213 (deprecated_mips_set_processor_regs_hack): New function.
214 (struct gdbarch_tdep): Add member "mips_processor_reg_names".
215 (mips_register_name): Get the processor names from the tdep.
216 (mips_tx39_reg_names): New array.
217 (mips_generic_reg_names): Wire to a standard set of names.
218 (mips_gdbarch_init): Set "mips_processor_reg_names".
219 * config/mips/tm-irix5.h (MIPS_REGISTER_NAMES): Delete macro.
220 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Delete macro.
221 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Delete macro.
222
56cea623
AC
2232003-11-16 Andrew Cagney <cagney@redhat.com>
224
225 * mips-tdep.c (struct gdbarch_tdep): Add field "regnum".
226 (mips_fpa0_regnum, mips_regnum): New function.
227 (mips_gdbarch_init): Fill in the "regnum" fields.
228 * mips-tdep.h (struct mips_regnum): Define.
229 (mips_regnum): Declare.
230 * config/mips/tm-mips.h (BADVADDR_REGNUM): Delete macro.
231 (LO_REGNUM, HI_REGNUM, BADVADDR_REGNUM): Ditto.
232 (CAUSE_REGNUM, PC_REGNUM, FP0_REGNUM): Ditto.
233 (FCRCS_REGNUM, FCRIR_REGNUM, FPA0_REGNUM): Ditto.
234 * config/mips/tm-irix6.h (FP0_REGNUM): Delete macro.
235 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
236 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
237 * config/mips/tm-irix5.h (FP0_REGNUM): Delete macro.
238 (PC_REGNUM, CAUSE_REGNUM, BADVADDR_REGNUM): Ditto.
239 (HI_REGNUM, LO_REGNUM, FCRCS_REGNUM, FCRIR_REGNUM): Ditto.
240 * remote-mips.c: Include "mips-tdep.h". Update.
241 * mipsnbsd-tdep.c: Update.
242 * mipsv4-nat.c: Update.
243 * mips-tdep.c: Update.
244 * mips-nat.c: Update.
245 * mips-linux-tdep.c: Update.
246 * mips-linux-nat.c: Update.
247 * irix5-nat.c: Update.
248 * dve3900-rom.c: Include "mips-tdep.h". Update.
249 (ignore_packet): Supress GCC warning.
250 * config/mips/nm-riscos.h: Update.
251
719ec221
AC
2522003-11-16 Andrew Cagney <cagney@redhat.com>
253
254 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
255 register_size.
256 (mips_register_raw_size): Delete function.
257 (mips_register_type): Handle "mips64_transfers_32bit_regs_p".
258 (mips_gdbarch_init): Do not set "deprecated_register_raw_size".
259 Check and set "mips64_transfers_32bit_regs_p".
260 (struct gdbarch_tdep): Add "mips64_transfers_32bit_regs_p".
261 (mips_register_convertible): Check the architecture's
262 "mips64_transfers_32bit_regs_p".
263 (set_mips64_transfers_32bit_regs): New function.
264 (_initialize_mips_tdep): Use "add_setshow_cmd" when adding the
265 "set remote-mips64-transfers-32bit-regs" command. Specify
266 set_mips64_transfers_32bit_regs as the set function.
56cea623 267 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
719ec221 268
20187ed5
MK
2692003-11-16 Mark Kettenis <kettenis@gnu.org>
270
271 * i386-tdep.h (i386_supply_gregset): Provide prototype.
272 * i386-tdep.c (i386_supply_gregset): Make public.
273
6771c427
AC
2742003-11-16 Andrew Cagney <cagney@redhat.com>
275
276 * mips-tdep.c (mips_register_byte): Delete function.
277 (mips_gdbarch_init): Do not set "deprecated_register_byte".
278 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Delete macro.
279 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Delete macro.
280 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Delete macro.
281
c8048956
MK
2822003-11-16 Mark Kettenis <kettenis@gnu.org>
283
284 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
285
cc8a868a
AC
2862003-11-16 Andrew Cagney <cagney@redhat.com>
287
288 * config/mips/linux64.mt: Delete file.
289 * config/mips/tm-linux64.h: Delete file.
290 * config/mips/tm-mips64.h: Delete file.
291 * config/mips/embed64.mt: Delete file.
292 * config/djgpp/fnchange.lst: Update.
293 * configure.tgt: Delete explicit patterns for mipsisa64*-*-linux*,
294 mips64*-*-linux*, mips64*-*-*, and mipsisa64*-*-*.
295 * config/mips/tm-irix6.h: Update copyright. Include
296 "mips/tm-mips.h" instead of "mips/tm-mips64.h".
297 * mips-tdep.c (mips_dump_tdep): Do not print "OP_LDFPR" or
298 "OP_LDGPR".
299
5ef80fb0
AC
3002003-11-15 Andrew Cagney <cagney@redhat.com>
301
302 * mips-tdep.c (mips_register_type): Simplify. Eliminate reference
303 to MIPS_REGISTER_TYPE. Make integer registers signed. Make IRIX
304 n32 registers 64 bit.
305 (mips_register_raw_size, mips_register_byte): For pseudo
306 registers, use the register's pseudo size and not the
307 corresponding raw register's size.
308 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Delete macro.
309 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Delete macro.
310 * config/mips/tm-irix6.h: Don't #undef MIPS_REGISTER_TYPE.
311 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Delete macro.
312
4246e332
AC
3132003-11-15 Andrew Cagney <cagney@redhat.com>
314
8fa9cfa1
AC
315 * mips-tdep.c (struct gdbarch_tdep): Delete member
316 gdb_target_is_mips64.
317 (GDB_TARGET_IS_MIPS64): Delete macro.
318 (mips_gdbarch_init): Do not set tdep's gdb_target_is_mips64.
319 (mips_dump_tdep): Do not print GDB_TARGET_IS_MIPS64.
320 (mips_addr_bits_remove): Simplify.
321
c73e8f27
AC
322 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
323 register_size.
324
4246e332
AC
325 Replace MIPS_REGSIZE with mips_regsize.
326 * mips-tdep.c (mips_regsize): New function.
327 * mips-tdep.h (mips_regsize): Declare.
328 * mipsnbsd-tdep.h (SIZEOF_STRUCT_FPREG): Update.
329 (SIZEOF_STRUCT_REG): Update.
330 * mipsnbsd-tdep.c (mipsnbsd_supply_reg): Update.
331 (mipsnbsd_fill_reg): Update.
332 (mipsnbsd_supply_fpreg): Update.
333 (mipsnbsd_fill_fpreg): Update.
334 (NBSD_MIPS_JB_ELEMENT_SIZE): Update.
335 * mips-tdep.c (mips_register_raw_size): Update.
336 (mips_register_type): Update.
337 (SIGFRAME_BASE): Update.
338 (SIGFRAME_PC_OFF): Update.
339 (SIGFRAME_REGSAVE_OFF): Update.
340 (SIGFRAME_FPREGSAVE_OFF): Update.
341 (SIGFRAME_REG_SIZE): Update.
342 (mips32_heuristic_proc_desc): Update.
343 (print_gp_register_row): Update.
344 (mips_dump_tdep): Do not print MIPS_REGSIZE.
345 * irix5-nat.c (supply_gregset): Update.
346 (fetch_core_registers): Update.
347 * config/mips/tm-mips64.h (MIPS_REGSIZE): Delete macro.
348 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Update.
349 * config/mips/tm-mips.h (MIPS_REGSIZE): Delete macro.
350 (MIPS_REGISTER_BYTE): Update.
351 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Update.
352
5e044b1e
AC
3532003-11-15 Andrew Cagney <cagney@redhat.com>
354
355 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
356 USE_REGISTER_NOT_ARG.
357 * stabsread.c (define_symbol): Update.
358
3a16a68c
AC
3592003-11-15 Andrew Cagney <cagney@redhat.com>
360
361 * bcache.h (deprecated_bcache): Declare.
362 (bcache): Make returned buffer constant.
363 * bcache.c (deprecated_bcache): New function.
364 (bcache_data): New function.
365 (bcache): Call bcache data.
366 * symfile.c (add_psymbol_to_list): Use deprecated_bcache.
367 (add_psymbol_with_dem_name_to_list): Ditto.
368
bb41a796
MK
3692003-11-15 Mark Kettenis <kettenis@gnu.org>
370
371 * glibc-tdep.h (struct gdbarch): Declare opaque.
372 (glibc_skip_solib_resolver): Adjust prototype.
373 * glibc-tdep.c (glibc_skip_solib_resolver): Adjust.
374 * arm-linux-tdep.c (arm_linux_skip_solib_resolver): Remove.
375 (arm_linux_init_abi): Set skip_solib_resolver.
376 * i386-linux-tdep.c (i386_linux_skip_solib_resolver): Remove.
377 (i386_linux_init_abi): Set skip_solib_resolver.
378 * config/arm/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
379 (arm_linux_skip_solib_resolver): Remove prototype.
380 * config/i386/tm-linux.h (SKIP_SOLIB_RESOLVER): Remove.
381 (i386_linux_skip_solib_resolver): Remove prototype.
382
4c8c40e6
MK
3832003-11-14 Mark Kettenis <kettenis@gnu.org>
384
385 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
386 function.
387 * gdbarch.c, gdbarch.h: Regenerate.
388 * infrun.c (handle_inferior_event): Call
389 gdbarch_skip_solib_resolver instead of SKIP_SOLIB_RESOLVER.
390 * arch-utils.c (generic_in_solib_call_trampoline): Adjust function
391 definition.
392 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
393 prototype.
394
0e5d83e3
JJ
3952003-11-14 Jeff Johnston <jjohnstn@redhat.com>
396
397 * libunwind-frame.c: New file.
398 * libunwind-frame.h: New file.
399 * acconfig.h (HAVE_LIBUNWIND): #undef reference added.
400 * configure.in: Add --with-libunwind option support. Define
401 HAVE_LIBUNWIND if libunwind support selected / defaulted.
402 Also check for libunwind.h and libunwind-ia64.h headers.
403 * configure: Regenerated.
404 * Makefile.in: Add support for libunwind-frame.o.
405 * config.in: Regenerated.
406
287a334e
JJ
4072003-11-14 Jeff Johnston <jjohnstn@redhat.com>
408
409 * config/ia64/nm-linux.h (NATIVE_XFER_UNWIND_TABLE): New macro to
410 set up the ia64 linux native target method for getting the kernel
411 unwind table.
412 * ia64-linux-nat.c (ia64_linux_xfer_unwind_table): New function.
413 * inftarg.c (child_xfer_partial): Enable section of code to
414 handle TARGET_OBJECT_UNWIND_TABLE.
415 * target.h (target_object): Add new TARGET_OBJECT_UNWIND_TABLE macro.
416
140be7b8
ILT
4172003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
418
419 * config/arm/nbsd.mt (TM_FILE): Define.
420 * config/arm/tm-nbsd.h: New file.
421
0a90bcdd
AC
4222003-11-14 Andrew Cagney <cagney@redhat.com>
423
424 * Makefile.in (ppc-sysv-tdep.o): Update dependencies.
425 * ppc-sysv-tdep.c: Include "objfiles.h".
426 (ppc64_sysv_abi_push_dummy_call): Provide the
427 the FN's objfile when looking for the descriptor.
9ea97f2a
AC
428
429 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
430 "name_of_malloc" to ".malloc".
431
087f1027
MK
4322003-11-13 Mark Kettenis <kettenis@gnu.org>
433
434 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
435
3882f37a
DC
4362003-11-13 David Carlton <carlton@kealia.com>
437
438 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
439
a8cf2722
AC
4402003-11-13 Andrew Cagney <cagney@redhat.com>
441
442 * arch-utils.h (selected_architecture_name): Declare.
443 (selected_byte_order): Declare.
444 * arch-utils.c (selected_byte_order): New function.
445 (selected_architecture_name): New function.
446 (target_architecture_auto): Make static.
447 (set_architecture_string): Make static.
448 (target_byte_order): Make static.
449 (target_byte_order_auto): Make static.
450 * gdbarch.sh (TARGET_BYTE_ORDER, TARGET_ARCHITECTURE): Delete
451 non-multi-arch definition.
452 (TARGET_ARCHITECTURE_AUTO, TARGET_BYTE_ORDER_AUTO): Delete.
453 (target_byte_order, target_architecture): Delete declaration.
454 (target_byte_order_auto, target_architecture_auto): Ditto.
455 * gdbarch.h: Re-generate.
456 * remote-sim.c (gdbsim_open): Use "selected_architecture_name" and
457 "selected_byte_order".
458
475b6ddd
AC
4592003-11-13 Andrew Cagney <cagney@redhat.com>
460
461 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
462
a22286a9
JB
4632003-11-13 Jim Blandy <jimb@redhat.com>
464
465 * cp-namespace.c: Doc fix.
466
7bb11558
MS
4672003-11-12 Michael Snyder <msnyder@redhat.com>
468
39add00a
MS
469 * sh64_tdep.c: Regularize some names.
470 (sh_sh64_register_name): Rename to sh64_register_name.
471 (sh_sh64_breakpoint_from_pc): Rename to sh64_breakpoint_from_pc.
472 (sh_sh64_register_byte): Rename to sh64_register_byte.
473 (sh_sh64_build_float_register_type):
474 Rename to sh64_build_float_register_type.
475 (sh_sh64_register_convert_to_virtual):
476 Rename to sh64_register_convert_to_virtual.
477 (sh_sh64_register_convert_to_raw):
478 Rename to sh64_register_convert_to_raw.
479
2a314ed5
MS
480 * sh64-tdep.c (translate_insn_rn, is_media_pseudo,
481 sh64_media_reg_base_num, sh64_compact_reg_base_num,
482 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
483 sh64_extract_return_value, sh64_show_media_regs,
484 sh64_show_compact_regs, sh_sh64_register_byte, sh64_register_type,
485 sh_sh64_register_convert_to_virtual, sh_sh64_register_convert_to_raw,
486 sh64_pseudo_register_read, sh64_pseudo_register_write,
487 sh64_do_pseudo_register, sh_compact_print_registers_info):
488 Delete unused variable 'tdep'.
489
7bb11558
MS
490 * sh64-tdep.c: Coding standard and spelling comment fixes.
491 (sh64_extract_return_value): Replace deprecated_store_floating
492 with store_typed_floating.
493 (sh_sh64_register_convert_to_raw): Replace
494 deprecated_store_floating with store_typed_floating.
495 (sh_sh64_register_virtual_type): Convert to sh64_register_type.
496 (sh64_frame_chain, sh64_get_saved_pr, sh64_get_saved_register,
497 sh64_nofp_frame_init_saved_regs, sh64_push_arguments,
498 sh64_extract_struct_value_address, sh64_pop_frame,
499 sh64_extract_return_value, sh64_store_return_value,
500 sh_sh64_register_convert_to_virtual, sh64_pseudo_register_read,
501 sh_sh64_register_convert_to_raw, sh_pseudo_register_write):
502 Replace DEPRECATED_REGISTER_RAW_SIZE with register_size.
503 Replace DEPRECATED_REGISTER_VIRTUAL_TYPE with register_type.
504 (sh64_gdbarch_init): Don't set deprecated_register_bytes,
505 deprecated_register_virtual_type, deprecated_register_raw_size,
506 deprecated_max_register_raw_size, or
507 deprecated_max_register_virtual_size. Instead, just set
508 gdbarch_register_type.
39add00a
MS
509 (sh_sh64_register_raw_size): Delete.
510 (sh_sh64_register_virtual_size): Delete.
7bb11558 511
e7c27a73
DJ
5122003-11-12 Daniel Jacobowitz <drow@mvista.com>
513
514 * dwarf2read.c (struct dwarf2_cu): New type.
515
516 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
517 dwarf2_cu structure to pass down.
518
519 (scan_partial_symbols, add_partial_symbol, add_partial_namespace)
520 (add_partial_enumeration, locate_pdi_sibling, process_die)
521 (read_file_scope, read_func_scope)
522 (read_lexical_block_scope, dwarf2_get_pc_bounds)
523 (dwarf2_add_field, dwarf2_attach_fields_to_type)
524 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type)
525 (read_structure_scope, read_enumeration, read_array_type)
526 (read_common_block, read_namespace, read_tag_pointer_type)
527 (read_tag_ptr_to_member_type, read_tag_reference_type)
528 (read_tag_const_type, read_tag_volatile_type, read_tag_string_type)
529 (read_subroutine_type, read_typedef, read_base_type, read_comp_unit)
530 (read_die_and_children, read_die_and_siblings, dwarf2_read_section)
531 (dwarf2_read_abbrevs, dwarf2_lookup_abbrev, read_partial_die)
532 (read_full_die. read_attribute_value, read_attribute)
533 (read_address, dwarf_decode_line_header, dwarf_decode_lines)
534 (var_decode_location, new_symbol, dwarf2_const_value, die_type)
535 (die_containing_type, type_at_offset, tag_type_to_type)
536 (read_type_die, dwarf_base_type, decode_locdesc, dwarf_decode_macros)
537 (dwarf2_symbol_mark_computed): Accept and use a dwarf2_cu object.
538
1640b821
DJ
5392003-11-12 Daniel Jacobowitz <drow@mvista.com>
540
541 PR breakpoints/1450
542 * breakpoint.c (insert_bp_location): Fix a logic error by returning
543 0 after a catchpoint fails.
544
d7891507
MC
5452003-11-11 Michael Chastain <mec.gnu@mindspring.com>
546
547 * mips-tdep.c (msymbol_size): Delete.
548
f594e5e9
MC
5492003-11-07 Michael Chastain <mec@shout.net>
550
551 * symtab.h (struct minimal_symbol): Add size.
552 * dbxread.c: Use it.
553 * elfread.c: (record_minimal_symbol_and_info): Do not use info.
554 Rename to record_minimal_symbol.
555 (elf_symtab_read): Set MSYMBOL_SIZE explicitly.
556 * minsyms.c (prim_record_minimal_symbol_and_info): Initialize MSYMBOL_SIZE.
557 (install_minimal_symbols): Ditto.
558 * objfiles.c (terminate_minimal_symbol_table): Ditto.
559 * arm-tdep.c: Delete unused MSYMBOL_SIZE.
560 * m68hc11-tdep.c: Ditto.
561 * mips-tdep.c: Ditto.
562 * sh64-tdep.c: Ditto.
563
68e39e73
MC
5642003-11-10 Michael Chastain <mec.gnu@mindspring.com>
565
566 * MAINTAINERS: Change my e-mail address.
567
b60eb90d
AC
5682003-11-10 Andrew Cagney <cagney@redhat.com>
569
963e2bb7
AC
570 * gdbarch.sh (return_value): Replace "inval" and "outval" with
571 "readbuf" and "writebuf".
572 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
573 * d10v-tdep.c (d10v_return_value): Ditto.
574 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
575 (ppc_sysv_abi_broken_return_value): Ditto.
576 (ppc64_sysv_abi_return_value): Ditto.
577 * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Ditto.
578 (ppc_sysv_abi_return_value): Ditto.
579 (ppc_sysv_abi_broken_return_value): Ditto.
580 (ppc64_sysv_abi_return_value): Ditto.
581 * values.c (register_value_being_returned): Update call.
582 * stack.c (return_command): Update call.
583 * gdbarch.h, gdbarch.c: Re-generate.
584
8aa91c1e
AC
585 * target.h (struct target_ops): Order xfer buffer parameters "read
586 write" not "write read".
587 * bfd-target.c (target_bfd_xfer_partial): Update.
588 * remote.c (remote_xfer_partial): Update.
589 * inftarg.c (child_xfer_partial): Update.
590 * target.c (default_xfer_partial): Update.
591 (target_read_partial, target_write_partial): Update.
592 (debug_to_xfer_partial): Update.
593
100bcc3f
AC
594 * arch-utils.h, arch-utils.c: Fix typo in comment.
595
b60eb90d
AC
596 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
597 (gdbarch_from_bfd): Call gdbarch_find_by_info.
1b3164d8
AC
598 (set_gdbarch_from_file): Call
599 "deprecated_current_gdbarch_select_hack".
b60eb90d 600
bf922ad9
AC
6012003-11-09 Andrew Cagney <cagney@redhat.com>
602
ebdba546
AC
603 * arch-utils.c (gdbarch_update_p): New function.
604 * gdbarch.sh (gdbarch_update_p): Delete function.
605 (find_arch_by_info, gdbarch_find_by_info): New functions.
3f030793 606 (deprecated_current_gdbarch_select_hack): New function.
ebdba546
AC
607 * gdbarch.c: Re-generate.
608
7de2341d
AC
609 * gdbarch.sh (clear_gdbarch_swap): Delete function.
610 (swapout_gdbarch_swap): Delete function.
611 (swapin_gdbarch_swap): Delete function.
612 (init_gdbarch_swap): Delete function.
613 (initialize_non_multiarch): Delete function.
614 (current_gdbarch_swap_in_hack): New function.
615 (current_gdbarch_swap_out_hack): New function.
616 (current_gdbarch_swap_init_hack): New function.
617 * gdbarch.c: Re-generate.
618
db446970
AC
619 * gdbarch.sh (verify_gdbarch, gdbarch_dump): Rename "gdbarch"
620 parameter to "current_gdbarch". Add comment explaining why.
621 (TARGET_FLOAT_FORMAT: Pass "current_gdbarch" to default_double_format.
622 (TARGET_DOUBLE_FORMAT,TARGET_LONG_DOUBLE_FORMAT): Ditto.
623 * gdbarch.c: Re-generate.
624
341e3d11
AC
625 * config/s390/s390.mh (XM_FILE, XM_CLIBS): Delete macros.
626 * config/s390/nm-linux.h (KERNEL_U_ADDR): Define.
627 * config/s390/xm-linux.h: Delete file.
628 * config/m88k/xm-delta88v4.h: Delete stray.
629
bf922ad9
AC
630 * Makefile.in (arch-utils.o): Update dependencies.
631 * arch-utils.c: Include "osabi.h".
632 (gdbarch_info_fill): New function.
633 * arch-utils.h (gdbarch_info_fill): Declare.
634 * gdbarch.sh (gdbarch_update_p): Call "gdbarch_info_fill".
635 * gdbarch.c: Re-generate.
636
a3640c75
MK
6372003-11-09 Mark Kettenis <kettenis@gnu.org>
638 David S. Miller <davem@redhat.com>
639
640 * glibc-tdep.c, glibc-tdep.h: New files.
641 * config/arm/linux.mt (TDEPFILES): Add glibc-tdep.o
642 * config/i386/linux.mt (TDEPFILES): Likewise.
643 * i386-linux-tdep.c (glibc-tdep.h): Include.
644 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
645 (i386_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
646 * arm-linux-tdep.c (glibc-tdep.h): Include.
647 (find_minsym_and_objfile, skip_hurd_resolver): Delete.
648 (arm_linux_skip_solib_resolver): Call glibc_skip_solib_resolver.
649 * Makefile.in (ALLDEPFILES): Add glibc-tdep.c
650 (glibc_tdep_h): Define.
651 (glibc-tdep.o): Add dependencies.
652 (arm-linux-tdep.o): Update dependencies.
653 (i386-linux-tdep.o): Likewise.
654
e60e0ab2
AC
6552003-11-09 Andrew Cagney <cagney@redhat.com>
656
657 * config/mips/irix6.mh (NAT_FILE): Set to "nm-irix5.h".
658 * config/mips/nm-irix6.h: Delete file.
659 * config/mips/nm-linux.h: Update copyright.
660 (MIPS_GNULINUX_TARGET): Delete macro.
661 * config/mips/irix6.mh (XM_FILE): Set to "xm-irix5.h".
662 * config/mips/xm-irix6.h: Delete file.
663 * config/mips/linux.mh (XM_FILE): Delete definition.
664 * config/mips/xm-linux.h: Delete file.
665
181555e9
AC
6662003-11-09 Andrew Cagney <cagney@redhat.com>
667
668 * d10v-tdep.c (d10v_return_value): New function.
669 (d10v_use_struct_convention): Delete function.
670 (d10v_store_return_value): Delete function.
671 (d10v_extract_struct_value_address): Delete function.
672 (d10v_gdbarch_init): Set "return_value" instead of
673 "extract_return_value", "store_return_value",
674 "extract_struct_value_address", and "use_struct_convention".
675 (RET1_REGNUM): Delete const.
676
dea0c52f
MK
6772003-11-09 Mark Kettenis <kettenis@gnu.org>
678
679 From David S. Miller <davem@redhat.com>:
680 * gdbarch.sh (SKIP_SOLIB_RESOLVER): New method.
681 * gdbarch.c, gdbarch.h: Regenerated.
682 * arch-utils.c (generic_skip_solib_resolver): New function.
683 * arch-utils.h (generic_skip_solib_resolver): New prototype.
684 * infrun.c (SKIP_SOLIB_RESOLVER): Don't define.
685
6314a349
AC
6862003-11-07 Andrew Cagney <cagney@redhat.com>
687
688 * top.c (print_gdb_version): Replace STREQ with strcmp.
689 * valops.c (value_struct_elt_for_reference): Ditto.
690 (value_struct_elt_for_reference): Ditto.
691 * symtab.c (gdb_mangle_name): Ditto.
692 (find_line_symtab): Ditto.
693 * symmisc.c (maintenance_print_symbols): Ditto.
694 * symfile.c (symbol_file_command): Ditto.
695 * stabsread.c (define_symbol, read_type): Ditto.
696 (cleanup_undefined_types, scan_file_globals): Ditto.
697 * solib.c (solib_map_sections): Ditto.
698 * solib-svr4.c (bfd_lookup_symbol): Ditto.
699 * rs6000-tdep.c (skip_prologue): Ditto.
700 * p-valprint.c (pascal_value_print): Ditto.
701 (pascal_object_is_vtbl_ptr_type): Ditto.
702 * objfiles.c (in_plt_section): Ditto.
703 * minsyms.c (lookup_minimal_symbol): Ditto.
704 (compact_minimal_symbols): Ditto.
705 (find_solib_trampoline_target): Ditto.
706 * mdebugread.c (parse_type): Ditto.
707 * language.c (set_language_command): Ditto.
708 (set_type_command, set_range_command): Ditto.
709 * f-lang.c (add_common_block): Ditto.
710 (add_common_block): Ditto.
711 (find_first_common_named): Ditto.
712 (patch_all_commons_by_name): Ditto.
713 * elfread.c (elf_locate_sections): Ditto.
714 (elf_locate_sections): Ditto.
715 (elfstab_offset_sections): Ditto.
716 * dwarf2read.c (dwarf2_locate_sections): Ditto.
717 * dbxread.c (add_old_header_file): Ditto.
718 (find_corresponding_bincl_psymtab): Ditto.
719 (read_dbx_symtab, process_one_symbol): Ditto.
720 * coffread.c (patch_opaque_types): Ditto.
721 * cli/cli-decode.c (delete_cmd): Ditto.
722 * cli/cli-cmds.c (pwd_command, list_command): Ditto.
723 * c-typeprint.c (c_type_print_base): Ditto.
724 * breakpoint.c (bpstat_stop_status): Ditto.
725 (clear_command, breakpoint_re_set_one): Ditto.
726
49df298f
AC
7272003-11-07 Andrew Cagney <cagney@redhat.com>
728
729 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
730 * bcache.c (struct bstring): Make "length" an unsigned short, add
731 "half_hash".
732 (struct bcache): Add "half_hash_error_count".
733 (bcache): Compute and save the "half_hash". Compare the
734 "half_hash" before comparing the length. Update
735 half_hash_error_count.
736
f168dd80
AC
7372003-11-07 Andrew Cagney <cagney@redhat.com>
738
739 * inftarg.c (child_xfer_partial): New function
740 (init_child_ops): Set "to_xfer_partial".
741
05580c65
AC
7422003-11-07 Andrew Cagney <cagney@redhat.com>
743
744 * ppc-linux-tdep.c (ppc_linux_init_abi): When 32-bit GNU/Linux,
745 set "return_value" instead of "use_struct_convention".
746 (ppc_linux_use_struct_convention): Delete function.
747 (ppc_linux_return_value): New function.
748 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): New function.
749 (ppc_sysv_abi_broken_return_value): New function.
750 (do_ppc_sysv_return_value): Add "gdbarch" parameter.
751 (ppc64_sysv_abi_push_dummy_call): Add "gdbarch" parameter, drop
752 static.
753 (ppc_sysv_abi_extract_return_value): Delete function.
754 (ppc_sysv_abi_broken_extract_return_value): Delete function.
755 (ppc_sysv_abi_store_return_value): Delete function.
756 (ppc_sysv_abi_broken_store_return_value): Delete function.
757 (ppc_sysv_abi_use_struct_convention): Delete function.
758 (ppc64_sysv_abi_use_struct_convention): Delete function.
759 (ppc64_sysv_abi_extract_return_value): Delete function.
760 (ppc64_sysv_abi_store_return_value): Delete function.
761 * ppcnbsd-tdep.c (ppcnbsd_return_value): New function.
762 (ppcnbsd_init_abi): Set "return_value", instead of
763 "use_struct_convention", "extract_return_value", and
764 "store_return_value".
765 (ppcnbsd_use_struct_convention): Delete function.
766 * ppc-tdep.h (ppc64_sysv_abi_return_value): Declare.
767 (ppc_sysv_abi_return_value): Declare.
768 (ppc_sysv_abi_broken_return_value): Declare.
769 (ppc_sysv_abi_use_struct_convention): Delete.
770 (ppc_sysv_abi_store_return_value): Delete.
771 (ppc_sysv_abi_extract_return_value): Delete.
772 (ppc_sysv_abi_broken_store_return_value): Delete.
773 (ppc_sysv_abi_broken_extract_return_value): Delete.
774 (ppc64_sysv_abi_use_struct_convention): Delete.
775 (ppc64_sysv_abi_extract_return_value): Delete.
776 (ppc64_sysv_abi_store_return_value): Delete.
777 * rs6000-tdep.c (rs6000_gdbarch_init): For 32-bit and 64-bit SYSV,
778 set "return_value" instead of "extract_return_value",
779 "store_return_value", and "use_struct_convention".
780
1763fba4
MK
7812003-11-07 Mark Kettenis <kettenis@gnu.org>
782
22c7ba1a
MK
783 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
784
1763fba4
MK
785 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
786 fscanf.
787
fc07cc2d
MK
7882003-11-07 Mark Kettenis <kettenis@gnu.org>
789
790 * fbsd-proc.c: Fix formatting.
791
6a748db6
KB
7922003-11-06 Kevin Buettner <kevinb@redhat.com>
793
794 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
795 Define.
796 (new_variant): Set name for iacc0_regnum.
797 (frv_register_name): Accommodate pseudo-registers.
798 (frv_register_type): Add case for iacc0_regnum.
799 (frv_pseudo_register_read, frv_pseudo_register_write): New functions.
800 (frv_gdbarch_init): Set number of pseudo registers. Establish
801 pseudo-register read/write methods.
802
bf896cb0
AC
8032003-11-06 Andrew Cagney <cagney@redhat.com>
804
805 * valops.c (destructor_name_p): Replace STREQN with strncmp.
806 * top.c (command_line_input): Ditto.
807 * objc-exp.y (yylex): Ditto.
808 * minsyms.c (prim_record_minimal_symbol_and_info): Ditto.
809 * jv-exp.y (yylex): Ditto.
810 * f-exp.y (yylex): Ditto.
811 * event-top.c (command_line_handler): Ditto.
812 * environ.c (get_in_environ): Ditto.
813 (set_in_environ): Ditto.
814 * dwarfread.c (handle_producer): Ditto.
815 * dbxread.c (process_one_symbol): Ditto.
816 * c-typeprint.c (c_type_print_base): Ditto.
817 * c-exp.y (yylex): Ditto.
818
0b603eba
AC
8192003-11-06 Andrew Cagney <cagney@redhat.com>
820 Jeff Johnston <jjohnstn@redhat.com>
821
822 * target.c (add_target): Only set "to_xfer_partial" when NULL.
823 (init_dummy_target): Set "to_xfer_partial".
824
9cedbfec
AC
8252003-11-06 Andrew Cagney <cagney@redhat.com>
826
827 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
828 REGISTER_CONVENTION.
829
26bb91f3
DJ
8302003-11-06 Daniel Jacobowitz <drow@mvista.com>
831
832 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
833 static.
834
0bde7532
DJ
8352003-11-06 Daniel Jacobowitz <drow@mvista.com>
836
837 * breakpoint.c (remove_breakpoint): Take an bp_location
838 instead of a breakpoint argument. Check the bp_location's type.
839 Fix a reversed condition for hardware breakpoints.
840
841 (insert_bp_location): Update call to remove_breakpoint.
842 (remove_breakpoints): Likewise. Use ALL_BP_LOCATIONS.
843 (remove_hw_watchpoints): Likewise.
844 (reattach_breakpoints): Likewise.
845 (detach_breakpoints): Likewise.
846 (delete_breakpoint): Likewise.
847
075f6582
DJ
8482003-11-06 Daniel Jacobowitz <drow@mvista.com>
849
850 * breakpoint.c (mark_breakpoints_out): Use ALL_BP_LOCATIONS.
851 (beakpoint_init_inferior): Likewise.
852 (breakpoint_here_p): Likewise. Only check addresses for software
853 or hardware breakpoints.
854 (breakpoint_inserted_here_p): Likewise.
855 (breakpoint_thread_match): Likewise. Correct comment.
856 (bpstat_have_active_hw_watchpoints): Likewise.
857 (check_duplicates): Likewise.
858
879bfdc2
DJ
8592003-11-06 Daniel Jacobowitz <drow@mvista.com>
860
861 * breakpoints.c (insert_bp_location): New function, broken out
862 from insert_breakpoints. Work on an bp_location instead of a
863 breakpoint.
864 (insert_breakpoints): Use it.
865
cf3a9e5b
DJ
8662003-11-06 Daniel Jacobowitz <drow@mvista.com>
867
868 * breakpoint.h (struct bp_location): Add section.
869 (struct breakpoint): Remove section.
870 * breakpoint.c (insert_breakpoints, remove_breakpoint)
871 (breakpoint_here_p, breakpoint_inserted_here_p)
872 (breakpoint_thread_match, bpstat_stop_status, print_one_breakpoint)
873 (describe_other_breakpoints, check_duplicates, set_raw_breakpoint)
874 (clear_command, delete_breakpoint, breakpoint_re_set_one): Access
875 section through loc.
876
ffce0d52
DJ
8772003-11-06 Daniel Jacobowitz <drow@mvista.com>
878
879 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
880 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
881
e049a4b5
DJ
8822003-11-06 Daniel Jacobowitz <drow@mvista.com>
883
884 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
885 arguments. Initialize owner and type for the new breakpoint
886 location item.
887 (set_raw_breakpoint): Update call to allocate_bp_location.
888
7cc221ef
DJ
8892003-11-06 Daniel Jacobowitz <drow@mvista.com>
890
891 * breakpoint.h (struct bp_location): Add a chain pointer.
892 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
893 macros.
894 (bp_location_chain): New variable.
895 (allocate_bp_location): New function.
896 (set_raw_breakpoint): Use it.
897 (delete_breakpoint): Remove ->loc from the bp_location_chain.
898
5cab636d
DJ
8992003-11-06 Daniel Jacobowitz <drow@mvista.com>
900
901 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
902 (struct breakpoint): Remove address, shadow_contents, inserted,
adeee247 903 requested_address, and duplicate. Add a struct bp_location.
5cab636d
DJ
904 * breakpoint.c (condition_command, read_memory_nobpt)
905 (insert_breakpoints, remove_breakpoints, remove_hw_watchpoints)
906 (reattach_breakpoints, update_breakpoints_after_exec)
907 (detach_breakpoints, remove_breakpoint, mark_breakpoints_out)
908 (breakpoint_init_inferior, breakpoint_here_p)
909 (breakpoint_inserted_here_p, deprecated_frame_in_dummy)
910 (breakpoint_thread_match, bpstat_stop_status)
911 (bpstat_have_active_hw_watchpoints, print_one_breakpoint)
912 (describe_other_breakpoints, check_duplicates)
913 (make_breakpoint_permanent, create_thread_event_breakpoint)
914 (disable_breakpoints_in_shlibs, re_enable_berakpoints_in_shlibs)
915 (set_longjmp_resume_breakpoint, mention, create_breakpoints)
916 (watch_command_1, print_one_exception_catchpoint)
917 (clear_command, breakpoint_re_set_one): Adjust member accesses to
918 use the breakpoint's ->loc.
919 (set_raw_breakpoint): Likewise. Initialize ->loc.
920 (delete_breakpoint): Likewise. Free ->loc.
921
7be0c536
AC
9222003-11-05 Andrew Cagney <cagney@redhat.com>
923
4c7d882e
AC
924 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
925 macro.
926 * config/m68k/tm-sun3.h (SIG_PC_FP_OFFSET): Delete macro.
927 * config/i386/tm-cygwin.h
928 (LINKER_SYMBOLS_HAVE_WIN32_STDCALL_ARG_SIZES): Delete macro.
929 * config/powerpc/tm-linux.h
930 (AT_SUBROUTINE_CALL_INSTRUCTION_TARGET): Delete macro.
931 (at_subroutine_call_instruction_target): Delete declaration.
932 * config/sparc/tm-sp64linux.h (GDB_PTRACE_REGS64): Delete macro.
933 * config/m68k/tm-sun3.h (SIG_SP_FP_OFFSET): Delete macro.
934 * config/ns32k/tm-ns32k.h (NUM_GENERAL_REGS): Delete macro.
935
7be0c536
AC
936 * xcoffread.c (find_linenos): Replace "sec_ptr" and "bfd" with
937 "struct bfd_section" and "struct bfd".
938 * target.h (struct section_table): Ditto.
939 * rs6000-nat.c (xcoff_relocate_core): Ditto.
940 * solib-svr4.c (elf_locate_base): Ditto.
941 * pa64solib.c (dld_cache_t): Ditto.
942 * objfiles.h (struct obj_section): Ditto.
943 * objfiles.c (add_to_objfile_sections): Ditto.
944 * exec.c (bfdsec_to_vmap): Ditto.
945 (add_to_section_table): Ditto.
946 (build_section_table): Ditto.
947 * corelow.c (get_core_register_section): Ditto.
948 * coffread.c (find_linenos): Ditto.
949 * elfread.c (elf_interpreter): Delete #if0'd function.
950
951 * mips-tdep.c (mips_dump_tdep): Delete code prinint VX_NUM_REGS.
952 * config/sparc/tm-vxsparc.h (VX_NUM_REGS): Delete macro.
953 * config/mips/tm-vxmips.h (VX_NUM_REGS): Delete macro.
954 * config/m68k/tm-vx68.h (VX_NUM_REGS): Delete macro.
955
956 * arch-utils.h (generic_cannot_extract_struct_value_address):
957 Delete declaration.
958 * wince.c (_initialize_wince): Fix multi-line string.
959 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
960
d8fe84e3
EZ
9612003-11-05 Elena Zannoni <ezannoni@redhat.com>
962
963 * top.c (execute_command): Fix broken logic for command execution
964 while inferior is running in async mode.
965
cbdfc7c0
MK
9662003-11-06 Mark Kettenis <kettenis@gnu.org>
967
968 * dwarf2-frame.c (execute_cfa_program): Mark register as
969 REG_SAVED_REG for DW_CFA_register opcode.
970
dac94105
MK
9712003-11-05 Mark Kettenis <kettenis@gnu.org>
972
973 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
974 %rsp, %rip and %eflags to match ABI-change.
975
85bf2b91
JJ
9762003-11-05 Jeff Johnston <jjohnstn@redhat.com>
977
978 * ia64-tdep.c (struct gdbarch_tdep): Remove os_ident field.
979 (ia64_gdbarch_init): Don't bother calculating the os.
980 Instead use the gdbarch_info struct and look at the osabi field.
981 Also use gdbarch_list_lookup_by_info() to look for a
982 candidate gdbarch.
983
cd31fb03
KB
9842003-11-05 Kevin Buettner <kevinb@redhat.com>
985
986 * frv-tdep.c (frv_register_byte): Delete.
987 (frv_extract_return_value, frv_store_return_value)
988 (frv_extract_struct_value_address): Don't call frv_register_byte().
989 Convert to non-deprecated form.
990 (frv_gdbarch_init): Don't call set_gdbarch_deprecated_register_byte().
991 Convert calls to set_gdbarch_deprecated_extract_return_value(),
992 set_gdbarch_deprecated_store_return_value(), and
993 set_gdbarch_deprecated_extract_struct_value_address() into
994 non-deprecated forms.
995
0a056982
AC
9962003-11-05 Andrew Cagney <cagney@redhat.com>
997
998 * mips-tdep.c (mips_dump_tdep): Do not print
999 PRINT_EXTRA_FRAME_INFO.
1000 * config/sparc/tm-sparc.h (DEPRECATED_PRINT_EXTRA_FRAME_INFO):
1001 Rename PRINT_EXTRA_FRAME_INFO.
1002 * mips-tdep.c (mips_print_extra_frame_info): Delete function.
1003 * config/mips/tm-mips.h (PRINT_EXTRA_FRAME_INFO): Delete macro.
1004 (mips_print_extra_frame_info): Delete declaration.
1005 * stack.c (frame_info): Use DEPRECATED_PRINT_EXTRA_FRAME_INFO.
1006
29e0a062
EZ
10072003-11-05 Elena Zannoni <ezannoni@redhat.com>
1008
1009 * coffread.c (coff_symtab_read): Remove passing of info parameter
1010 to prim_record_minimal_symbol_and_info.
1011
8af580fc
EZ
10122003-11-05 Elena Zannoni <ezannoni@redhat.com>
1013
1014 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1015 (decode_base_type): Delete ifdeffed out code.
1016
507836c0
AC
10172003-11-04 Andrew Cagney <cagney@redhat.com>
1018
1019 * symtab.c (find_active_alias): Delete function.
1020 (lookup_block_symbol): Delete alias code.
1021 * stabsread.c (resolve_live_range): Delete function.
1022 (add_live_range): Delete function.
1023 (resolve_symbol_reference): Delete function.
1024 (define_symbol): Delete live range and alias code.
1025 (scan_file_globals): Delete alias code.
1026 * symtab.h (SYMBOL_RANGES): Delete macro.
1027 (struct range_list): Delete structure.
1028 (struct symbol): Delete field "ranges".
1029 (SYMBOL_ALIASES): Delete macro.
1030 (struct alias_list): Delete structure.
1031 (struct symbol): Delete field "aliases".
1032
1083b3bc
MS
10332003-11-04 Michael Snyder <msnyder@redhat.com>
1034
1035 * MAINTAINERS: Remove myself as owner of breakpoints and
1036 of sparc/solaris.
1037
474e5826
CV
10382003-11-03 Corinna Vinschen <vinschen@redhat.com>
1039
1040 * sh-tdep.c (sh_sh4_nofpu_register_name): New function.
1041 (sh_sh4al_dsp_register_name): Ditto.
1042 (sh4_nofpu_show_regs): Ditto.
1043 (sh_gdbarch_init): Add cases for bfd_mach_sh4al_dsp, bfd_mach_sh4a,
1044 bfd_mach_sh4_nofpu and bfd_mach_sh4a_nofpu.
1045
2160782c
AC
10462003-11-03 Andrew Cagney <cagney@redhat.com>
1047
1048 * bcache.c: Include "gdb_assert.h".
1049 (struct bcache): Add fields "expand_count" and
1050 "expand_hash_count".
1051 (expand_hash_table): Update the expand counts.
1052 (print_bcache_statistics): Use XCALLOC, not alloca. Print stats
1053 on object sizes and hashes.
1054 * Makefile.in (bcache.o): Update dependencies.
1055
85302095
AC
10562003-11-03 Andrew Cagney <cagney@redhat.com>
1057
1058 * exec.c (xfer_memory): Eliminate xfer_fn.
1059
526eef89
KB
10602003-10-31 Kevin Buettner <kevinb@redhat.com>
1061
1062 * frv-tdep.c (gdb_assert.h, sim-regno.h, gdb/sim-frv.h)
1063 (opcodes/frv-desc.h): Include.
1064 (iacc0h_regnum, iacc0l_regnum): Define.
1065 (last_spr_regnum, frv_num_regs): Update.
1066 (new_variant): Don't supply default names for holes in the SPRs.
1067 Supply names for iacc0h_regnum and iacc0l_regnum.
1068 (frv_register_type): Use symbolic constants first_fpr_regnum and
1069 last_fpr_regnum instead of hardcoded constants 64 and 127. Use
1070 builtin_type_int instead of builtin_type_int32.
1071 (frv_register_sim_regno): New function.
1072 (frv_gdbarch_init): Call set_gdbarch_register_sim_regno().
1073 * Makefile.in (gdb_sim_frv_h): Define.
1074 (frv-tdep.o): Update dependencies.
1075
9e815ec2
AC
10762003-10-31 Andrew Cagney <cagney@redhat.com>
1077
1078 * avr-tdep.c (avr_frame_this_id): Do not call
1079 deprecated_inside_entry_file.
1080 * m68hc11-tdep.c (m68hc11_frame_this_id): Ditto.
1081 * m32r-tdep.c (m32r_frame_this_id): Ditto.
1082 * d10v-tdep.c (d10v_frame_this_id): Ditto.
1083 * arm-tdep.c (arm_prologue_this_id): Ditto.
1084 * alpha-tdep.c (alpha_heuristic_frame_this_id): Ditto.
1085
e372db49
JB
10862003-10-31 Jim Blandy <jimb@redhat.com>
1087
1088 * elfread.c (elf_symtab_read): Allocate correct number of tail
1089 elements to sectinfo structure. (Fix from Woody LaRue.)
1090
e8bcf01f
AC
10912003-10-31 Andrew Cagney <cagney@redhat.com>
1092
1093 * stack.c (return_command): Use get_frame_type, instead of
1094 CALL_DUMMY_HAS_COMPLETED.
1095 * inferior.h (CALL_DUMMY_HAS_COMPLETED): Delete definition.
1096 * config/pa/tm-hppa.h (CALL_DUMMY_HAS_COMPLETED): Delete macro.
1097
4c05fe53
MK
10982003-10-31 Mark Kettenis <kettenis@gnu.org>
1099
1100 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): Don't
1101 explicitly specify size of array.
1102 (x86_64_linux_init_abi): Use ARRAY_SIZE to initialize
1103 TDEP->sc_num_regs.
1104
c8b91b89
AC
11052003-10-31 Andrew Cagney <cagney@redhat.com>
1106
1107 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1108 function.
1109 (s390_gdbarch_init): Set extract_struct_value_address.
1110 * arch-utils.c (generic_cannot_extract_struct_value_address):
1111 Delete function.
1112 * arch-utils.h (generic_cannot_extract_struct_value_address):
1113 Delete definition.
1114
fdfb6fc8
MK
11152003-10-31 Mark Kettenis <kettenis@gnu.org>
1116
1117 * i386-linux-nat.c (fetch_core_registers): Remove.
1118 (linux_elf_core_fns): Remove.
1119 (_initialize_i386_linux_nat): Remove.
1120
2f4950cd
AC
11212003-10-31 Andrew Cagney <cagney@redhat.com>
1122
1123 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
1124 "exec.h".
1125 (exec_entry_point): New function.
1126 (enable_break): Create a "tmp_bfd_target", use that and
1127 entry_point_address when computing the relocation offset.
1128 (svr4_relocate_main_executable): Ditto with exec_bfd and exec_ops.
1129 * Makefile.in (solib-svr4.o): Update dependencies.
1130
bba2d28d
AC
11312003-10-31 Andrew Cagney <cagney@redhat.com>
1132
1133 * defs.h (XZALLOC): Define.
1134 * target.h (struct target_ops): Add "to_data";
1135 * bfd-target.h, bfd-target.c: New files.
1136 * Makefile.in (SFILES): Add "bfd-target.c".
1137 (COMMON_OBS): Add "bfd-target.o".
1138 (bfd-target.o): Specify dependencies.
1139 (bfd_target_h): Define.
1140 * defs.h (XZALLOC): Define.
1141
6066c3de
AC
11422003-10-31 Andrew Cagney <cagney@redhat.com>
1143
1144 * rs6000-tdep.c (rs6000_gdbarch_init): For 64-bit ABI, set
1145 adjust_breakpoint_address.
1146 * Makefile.in (ppc-sysv-tdep.o): Add $(target_h).
1147 * ppc-tdep.h (ppc64_sysv_abi_adjust_breakpoint_address): Declare.
1148 * ppc-sysv-tdep.c: Include "target.h". Update copyright.
1149 (ppc64_sysv_abi_adjust_breakpoint_address): New function.
1150
4b8a223f
AC
11512003-10-31 Andrew Cagney <cagney@redhat.com>
1152
1153 * target.h (struct target_ops): Replace "to_read_partial" and
1154 "to_write_partial" with "to_xfer_partial". Update comments.
1155 * target.c (debug_to_write_partial): Delete function.
1156 (debug_to_xfer_partial): Replace debug_to_read_partial.
1157 (add_target, update_current_target, setup_target_debug): Set
1158 "to_xfer_partial" instead of "to_read_partial" and
1159 "to_write_partial".
1160 (default_xfer_partial): Replace "default_write_partial".
1161 (default_read_partial): Delete.
1162 (target_read_partial, target_write_partial): Call
1163 "to_xfer_partial".
1164 * remote.c (init_remote_ops): Set "to_xfer_partial".
1165 (init_remote_async_ops): Ditto.
1166 (remote_xfer_partial): Replace "remote_read_partial".
1167
66a72d25
MK
11682003-10-31 Mark Kettenis <kettenis@gnu.org>
1169
1170 * i386-tdep.c (i386_supply_fpregset): Support floating-point
1171 registers in `fxsave' format.
1172 (i386_regset_from_core_section): Deal with ".reg-xfp" sections.
1173
9a12a2a0
MK
11742003-10-30 Mark Kettenis <kettenis@gnu.org>
1175
e9f1aad5
MK
1176 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): New variable.
1177 (i386_linux_init_abi): Initialize TDEP->gregset_reg_offset,
1178 TDEP->gregset_num_regs and tdep->sizeof_gregset.
1179
bb489b3c
MK
1180 * i386-linux-tdep.c (i386_linux_sc_reg_offset): Don't explicitly
1181 specify size of array.
1182 (i386_linux_init_abi): Remove initialization of
1183 TDEP->num_xmm_regs. Use I386_LINUX_NUM_REGS for number of
1184 registers. Use ARRAY_SIZE to initialize TDEP->sc_num_regs.
1185
da285bc4
MK
1186 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1187 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1188 core-regset.o.
1189
9a12a2a0
MK
1190 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1191 the ELF header.
1192
0e24ac5d
MK
11932003-10-29 Mark Kettenis <kettenis@gnu.org>
1194
6d6d8e9c
MK
1195 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1196 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1197 core-regset.o.
1198
25e60c9b
MK
1199 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1200
0e24ac5d
MK
1201 * corelow.c: Include "arch-utils.h", "regset.h" and
1202 "gdb_assert.h".
1203 (core_gdbarch): New variable.
1204 (sniff_core_bfd): Don't sniff if we have support for register sets
1205 in CORE_GDBARCH.
1206 (core_close): Reset CORE_GDBARCH.
1207 (core_open): Initialize CORE_GDBARCH.
1208 (get_core_register_section): Use register sets if they are
1209 supported by CORE_GDBARCH.
1210 (get_core_registers): Don't print error message if we have support
1211 for register sets in CORE_GDBARCH.
1212
0a0a4ac3
AC
12132003-10-29 Andrew Cagney <cagney@redhat.com>
1214
1215 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Instead of the
1216 default PPC machine, register 32-bit and 64-bit PPC, and rs6k.
1217
7b097ae3
MK
12182003-10-29 Mark Kettenis <kettenis@gnu.org>
1219
1220 * objfiles.h (clear_objfile_data): New prototype.
1221 * objfiles.c (clear_objfile_data): New function.
1222 * symfile.c (reread_symbols): Clear per-objfile data.
1223
46f45a4a
JJ
12242003-10-28 Jeff Johnston <jjohnstn@redhat.com>
1225
1226 * symfile.c (symbol_file_add_with_addrs_or_offsets): Switch to use
1227 printf_unfiltered instead of printf_filtered for output messages.
1228 (add_symbol_file_command): Ditto.
1229 (reread_symbols): Ditto.
1230 (overlay_auto_command): Ditto.
1231 (overlay_manual_command): Ditto.
1232 (overlay_off_command): Ditto.
1233
2b026650
MK
12342003-10-27 Mark Kettenis <kettenis@gnu.org>
1235
1236 * arch-utils.c (deprecated_select_gdbarch_hack): New function.
1237 (gdbarch_from_bfd): New function.
1238 (set_gdbarch_from_file): Re-implement using gdbarch_from_bfd and
1239 deprecated_select_gdbarch_hack.
1240 * arch-utils.h (gdbarch_from_bfd): New prototype.
1241
0bcad584 12422003-10-27 Andrew Cagney <cagney@redhat.com>
931758af
AC
1243
1244 * osabi.c (gdbarch_init_osabi): Use info.bfd_arch_info instead of
1245 arch_info. Use warning instead of fprintf_filtered. Do not use
1246 deprecated bfd_printable_arch_mach.
1247
7f398216
KB
12482003-10-26 Kevin Buettner <kevinb@redhat.com>
1249
1250 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
1251 Delete.
1252 (frv_register_type): Rename from frv_register_virtual_type. Add
1253 ``struct gdbarch *'' parameter.
1254 (frv_gdbarch_init): Delete calls to the following functions:
1255 set_gdbarch_deprecated_size(),
1256 set_gdbarch_deprecated_register_bytes(),
1257 set_gdbarch_deprecated_register_raw_size(),
1258 set_gdbarch_deprecated_max_register_raw_size(),
1259 set_gdbarch_deprecated_register_virtual_size(),
1260 set_gdbarch_deprecated_max_register_virtual_size(),
1261 set_gdbarch_deprecated_register_virtual_size(),
1262 set_gdbarch_deprecated_register_virtual_type().
1263 Add call to function set_gdbarch_register_type().
1264
bcf48cc7
MK
12652003-10-26 Mark Kettenis <kettenis@gnu.org>
1266
6c7de422
MK
1267 * i386-tdep.h (FCS_REGNUM, FCOFF_REGNUM, FDS_REGNUM,
1268 FDOFF_REGNUM): Remove defines.
1269 * win32-nat.c (do_child_fetch_inferior_registers): Include
1270 "i387-tdep.h".
3e685d41 1271 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
6c7de422
MK
1272 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1273 undefine I387_ST0_REGNUM.
1274
f783586b
MK
1275 * i386-tdep.h (FPU_REG_RAW_SIZE): Remove define.
1276 * x86-64-tdep.c (x86_64_store_return_value): Use
1277 I386_MAX_REGISTER_SIZE instead of FPU_REG_RAW_SIZE.
1278
bcf48cc7
MK
1279 Change register numbers to enumartion values.
1280 * i386-tdep.h (enum i386_regnum): New.
1281 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1282 I386_EBP_REGNUM, I386_IP_REGNUM, I386_EFLAGS_REGNUM,
1283 I386_ST0_REGNUM): Remove defines.
1284 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
1285 I386_EDI_REGNUM): Remove defines.
1286
b6591e8b
AC
12872003-10-24 Andrew Cagney <cagney@redhat.com>
1288
1289 * target.c: Include "gdbcore.h".
1290 (get_target_memory, get_target_memory_unsigned): New functions.
1291 * target.h (get_target_memory, get_target_memory_unsigned): Declare.
1292 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr):
1293 Use get_target_memory_unsigned.
1294 * Makefile.in (target.o): Update dependencies.
1295
5f724446
AC
12962003-10-24 Andrew Cagney <cagney@redhat.com>
1297
ce2826aa
AC
1298 * osabi.c (gdbarch_init_osabi): Fix typos, and "fortunatly"[sic].
1299 * PROBLEMS, arch-utils.c, cli-out.c, command.h: Ditto.
1300 * complaints.c, cris-tdep.c, disasm.c, dwarf2-frame.c: Ditto.
1301 * frame.c, frame.h, infcall.c, infcmd.c, infrun.c: Ditto.
1302 * kod.c, mips-tdep.c, regcache.c, regcache.h, remote.c: Ditto.
1303
5f724446
AC
1304 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1305 (can_run_code_for): Use the OO term "singleton".
1306
fc70c2a0
AC
13072003-10-23 Andrew Cagney <cagney@redhat.com>
1308
1309 * Makefile.in (stack.o): Add $(regcache_h).
1310 * stack.c: Include "regcache.h"
1311 (return_command): Rewrite. Use get_frame_id and
1312 get_selected_frame. Eliminate "deprecated_selected_frame". Warn
1313 about unhandled return-values.
1314 * value.h (set_return_value): Delete declaration.
1315 * values.c (set_return_value): Delete function.
1316
4afcc598
JJ
13172003-10-23 Jeff Johnston <jjohnstn@redhat.com>
1318
1319 * ia64-tdep.c: (ia64_frame_cache): Add new prev_cfm field.
1320 (pseudo_regs): Add comment regarding register stack registers.
1321 (ia64_alloc_frame_cache): Initialize new prev_cfm field to 0.
1322 (floatformat_valid): New static routine.
1323 (floatformat_ia64_ext): Add name field and set up is_valid routine
1324 to floatformat_valid().
1325 (examine_prologue): For the previous cfm, use
1326 frame_unwind_register()
1327 if the cfm is not stored in a register-stack register. Save the
1328 previous cfm value in the prev_cfm field. Add debug output.
1329 (ia64_frame_this_id): Use frame_id_build_special() to also register
1330 the bsp. Add debug output.
1331 (ia64_sigtramp_frame_this_id): Ditto.
1332 (ia64_frame_prev_register): Look at cache saved_regs for a few more
1333 registers and also add some checks for framelessness before accepting
1334 current register values for fields such as return address. For cfm,
1335 use the cached prev_cfm field if available. Add comment to explain
1336 PSR logic. Add debug output.
1337 (ia64_sigtramp_frame_init_saved_regs): Save the bsp and sp addresses
1338 as part of initialization.
1339 (ia64_sigtramp_frame_cache): Hard-code stack size as it can't be
1340 calculated. Cache the bsp and cfm values.
1341 (ia64_sigtramp_frame_prev_register): Add logic to this routine out
1342 instead of using ia64_frame_prev_register() which doesn't expect most
1343 registers to be saved. The saved values for bsp and sp
1344 can be taken from the cache. Add debug output.
1345 (ia64_push_dummy_call): Use frame_id_build_special() to also register
1346 the bsp.
1347
6cfae0bc
JB
13482003-10-23 Jim Blandy <jimb@redhat.com>
1349
1350 * osabi.c (gdbarch_init_osabi): A handler is okay if it's for an
1351 architecture the current arch can run code for --- but not if it's
1352 a superset.
1353 (can_run_code_for): New function.
1354
fcd182f9
JW
13552003-10-22 James E Wilson <wilson@specifixinc.com>
1356
1357 * MAINTAINERS: Move myself from paper trail section back to write
1358 after approval section.
1359
4646aa9d
AC
13602003-10-22 Andrew Cagney <cagney@redhat.com>
1361
1362 * exec.h: New file.
1363 * win32-nat.c: Include "exec.h".
1364 * solib.c: Include "exec.h".
1365 * target.h (build_section_table): Delete declaration.
1366 * somsolib.c: Include "exec.h".
1367 (exec_ops): Delete extern declaration.
1368 * rs6000-nat.c: Update copyright. Include "exec.h".
1369 (exec_ops): Delete extern declaration.
1370 * pa64solib.c: Update copyright. Include "exec.h".
1371 (exec_ops): Delete extern declaration.
1372 * exec.c: Update copyright. Include "exec.h".
1373 * corelow.c: Update dependencies. Include "exec.h".
1374 * Makefile.in (exec_h): Define.
1375 (exec.o, somsolib.o): Update dependencies.
1376 (pa64solib.o, corelow.o): Update dependencies.
1377
0088c768
AC
13782003-10-22 Andrew Cagney <cagney@redhat.com>
1379
1380 * target.c: Include "gdb_assert.h" (target_read): Call
1381 "target_read_partial", not "target_write_partial".
1382 (default_read_partial, default_write_partial): New function.
1383 (target_read_partial, target_write_partial): Simplify, assume that
1384 there is always a read/write method.
1385 (update_current_target, add_target): Always set "to_read_partial"
1386 and "to_write_partial".
1387 (target_write, target_read): Fail on a zero byte transfer.
1388 * Makefile.in (target.o): Update dependencies.
1389 * target.h: Update copyright date.
1390 (target_object): Fix typo.
1391
e2d0e7eb
AC
13922003-10-22 Andrew Cagney <cagney@redhat.com>
1393
1394 * gdbarch.sh (convert_from_func_ptr_addr): Convert to a pure
1395 multi-arch method, add "targ" parameter.
1396 (struct target_ops): Declare.
1397 * gdbarch.h, gdbarch.c: Re-generate.
1398 * Makefile.in (c-valprint.o): Update dependencies.
1399 * arch-utils.h: Update copyright.
1400 (convert_from_func_ptr_addr_identity): Declare.
1401 * arch-utils.c (convert_from_func_ptr_addr_identity): New function.
1402 * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Update.
1403 * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Upate.
1404 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Update.
1405 * infcall.c (find_function_addr, call_function_by_hand): Update.
1406 * c-valprint.c: Include "target.h".
1407 (print_function_pointer_address): Update.
1408
f1c07ab0
AC
14092003-10-22 Andrew Cagney <cagney@redhat.com>
1410
1411 * target.c (target_close): New function.
1412 (debug_to_close): Use "target_close".
1413 (push_target): Use "target_close".
1414 (unpush_target): Use "target_close".
1415 (pop_target): Use "target_close".
1416 * target.h (struct target_ops): Add "to_xclose".
1417 (target_open): Delete macro. Move comment to "to_open".
1418 (target_close): Replace macro with function that takes a target.
1419 * top.c (quit_target): Pass "current_target" to "target_close".
1420
5520a790
EZ
14212003-10-21 Elena Zannoni <ezannoni@redhat.com>
1422
1423 * minsyms.c (lookup_minimal_symbol_text): Remove unused parameter.
1424 Remove SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1425 * symtab.h (lookup_minimal_symbol_text): Update.
1426 * breakpoint.c (create_overlay_event_breakpoint,
1427 create_longjmp_breakpoint): Update callers.
1428 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Update caller.
1429 * symtab.c (find_pc_sect_line): Ditto.
1430
caa92b73
AC
14312003-10-21 Andrew Cagney <cagney@redhat.com>
1432
1433 * target.c (errno): Delete extern declaration.
1434
aa2a9a3c
JJ
14352003-10-20 Jeff Johnston <jjohnstn@redhat.com>
1436
1437 * ia64-tdep.c: Change all occurrences of
1438 DEPRECATED_REGISTER_RAW_SIZE to use register_size() instead.
1439 (ia64_frame_prev_register): Minor whitespace change.
1440
4beec2b7
MC
14412003-10-20 Michael Chastain <mec@shout.net>
1442
1443 * config/djgpp/fnchange.lst: Add lines for:
1444 sim/testsuite/sim/frv/interrupts/Ipipe-fr400.cgs,
1445 sim/testsuite/sim/frv/interrupts/Ipipe-fr500.cgs,
1446 sim/testsuite/sim/frv/interrupts/badalign-fr550.cgs,
1447 sim/testsuite/sim/frv/interrupts/compound-fr550.cgs,
1448 sim/testsuite/sim/frv/interrupts/data_store_error-fr550.cgs,
1449 sim/testsuite/sim/frv/interrupts/fp_exception-fr550.cgs,
1450 sim/testsuite/sim/frv/interrupts/insn_access_error-fr550.cgs.
1451
92ad9cd9
AC
14522003-10-20 Andrew Cagney <cagney@redhat.com>
1453
1454 * values.c (register_value_being_returned): Update comments. Use
1455 "gdbarch_return_value" when available.
1456 (using_struct_return): Ditto.
1457 (set_return_value): Ditto. Use "gdbarch_return_value" when
1458 available.. Print a warning, and not an error, when an unhandled
1459 return type is encountered.
1460 * infcmd.c: Include "gdb_assert.h".
1461 (print_return_value): When gdbarch_return_value_p, and using
1462 struct return, assume that the value is not available.
1463 * defs.h (return_value_convention): Define.
1464 * gdbarch.sh (gdbarch_return_value): New predicate method.
1465 * gdbarch.h, gdbarch.c: Re-generate
1466 * ppc-sysv-tdep.c (return_value_convention): Delete definition.
1467
198beae2
AC
14682003-10-20 Andrew Cagney <cagney@redhat.com>
1469
1470 * symtab.c: Replace "struct sec" with "struct bfd_section".
1471 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1472
24d693a6 14732003-10-19 Michael Chastain <mec@shout.net>
e7cb278a
MC
1474
1475 * config/djgpp/fnchange.lst: Add lines for:
1476 gdb/amd64nbsd-nat.c, gdb/amd64nbsd-tdep.c,
1477 gdb/i386fbsd-nat.c, gdb/i386fbsd-tdep.c,
1478 gdb/sparc64fbsd-nat.c, gdb/sparc64bsd-tdep.c.
1479
21ad8dc3
MK
14802003-10-19 Mark Kettenis <kettenis@gnu.org>
1481
1482 * amd64fbsd-nat.c (fetch_inferior_registers,
1483 store_inferior_registers): Remove functions.
1484 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1485
cced5e27
MK
14862003-10-18 Mark Kettenis <kettenis@gnu.org>
1487
1488 Add NetBSD/amd64 native configuration:
1489 * x86-64-tdep.h (amd64nbsd_r_reg_offset): Add extern declarations.
1490 * amd64nbsd-tdep.c: New file.
1491 * amd64nbsd-nat.c: New file.
1492 * amd64bsd-nat.c: New file.
1493 * config/i386/nbsd64.mh: New file.
1494 * config/i386/nbsd64.mt: New file.
1495 * configure.host: Add x86_64-*-netbsd*.
1496 * configure.tgt: Add x86_64-*-netbsd*.
1497 * Makefile.in (amd64bsd-nat.o, amd64nbsd-nat.o, amd64nbsd-tdep.o):
1498 New targets.
1499 * NEWS (New native configurations): Mention NetBSD/amd64.
1500
666de3fd
MC
15012003-10-17 Michael Chastain <mec@shout.net>
1502
1503 * config/djgpp/fnchange.lst: Remove dead lines for:
1504 bfd/elf32-i386qnx.c, bfd/elf32-ppcqnx.c, bfd/elf32-shqnx.c,
1505 bfd/elf32-sh-lin.c, bfd/elf32-sh-nbsd.c, bfd/elf32-sh64-nbsd.c,
1506 bfd/elf64-alpha-fbsd.c, bfd/elf64-sh64-nbsd.c,
1507 gdb/alphanbsd-nat.c, gdb/config/i386/tm-i386mk.h,
1508 gdb/config/i386/tm-i386v42mp.h, gdb/config/i386/xm-i386mach.h,
1509 gdb/config/i386/xm-i386mk.h, gdb/config/i386/xm-i386v32.h,
1510 gdb/config/m68k/apollo68v.mh, gdb/config/m68k/nm-apollo68v.h,
1511 gdb/config/m68k/xm-apollo68v.h, gdb/config/m88k/tm-delta88v4.h,
1512 gdb/config/mips/tm-bigmips64.h, gdb/config/mips/tm-embed64.h,
1513 gdb/config/mips/tm-embedl.h, gdb/config/mips/tm-embedl64.h,
1514 gdb/config/mips/tm-vr4300el.h, gdb/config/mips/tm-vr4xxxel.h,
1515 gdb/config/mips/tm-vr5000el.h, gdb/config/sparc/tm-sparclet.h,
1516 gdb/config/sparc/tm-sparclite.h,
1517 gdb/gdbtk/generic/ChangeLog-2001,
1518 gdb/gdbtk/library/ChangeLog-2001, gdb/remote-adapt.c,
1519 gdb/remote-eb.c, gdb/remote-mm.c, gdb/remote-nrom.c,
1520 gdb/remote-udi.c, gdb/remote-vx29k.c, gdb/remote-vx960.c,
1521 gdb/sparclet-rom.c, gdb/sparclet-stub.c,
1522 gdb/testsuite/gdb.mi/mi0-var-block.exp,
1523 gdb/testsuite/gdb.mi/mi0-var-child.exp,
1524 gdb/testsuite/gdb.mi/mi0-var-cmd.exp,
1525 gdb/testsuite/gdb.mi/mi0-var-display.exp,
1526 itcl/iwidgets3.0.0/demos/extfileselectionbox,
1527 itcl/iwidgets3.0.0/demos/extfileselectiondialog,
1528 itcl/iwidgets3.0.0/demos/fileselectionbox,
1529 itcl/iwidgets3.0.0/demos/fileselectiondialog,
1530 itcl/iwidgets3.0.0/demos/html/buttonbox.n.html,
1531 itcl/iwidgets3.0.0/demos/html/canvasprintbox.n.html,
1532 itcl/iwidgets3.0.0/demos/html/canvasprintdialog.n.html,
1533 itcl/iwidgets3.0.0/demos/html/combobox.n.html,
1534 itcl/iwidgets3.0.0/demos/html/dialog.n.html,
1535 itcl/iwidgets3.0.0/demos/html/dialogshell.n.html,
1536 itcl/iwidgets3.0.0/demos/html/entryfield.n.html,
1537 itcl/iwidgets3.0.0/demos/html/feedback.n.html,
1538 itcl/iwidgets3.0.0/demos/html/fileselectionbox.n.html,
1539 itcl/iwidgets3.0.0/demos/html/fileselectiondialog.n.html,
1540 itcl/iwidgets3.0.0/demos/html/hyperhelp.n.html,
1541 itcl/iwidgets3.0.0/demos/html/iwidgets2.2.0UserCmds.html,
1542 itcl/iwidgets3.0.0/demos/html/labeledwidget.n.html,
1543 itcl/iwidgets3.0.0/demos/html/menubar.n.html,
1544 itcl/iwidgets3.0.0/demos/html/messagedialog.n.html,
1545 itcl/iwidgets3.0.0/demos/html/notebook.n.html,
1546 itcl/iwidgets3.0.0/demos/html/optionmenu.n.html,
1547 itcl/iwidgets3.0.0/demos/html/panedwindow.n.html,
1548 itcl/iwidgets3.0.0/demos/html/promptdialog.n.html,
1549 itcl/iwidgets3.0.0/demos/html/pushbutton.n.html,
1550 itcl/iwidgets3.0.0/demos/html/radiobox.n.html,
1551 itcl/iwidgets3.0.0/demos/html/scrolledcanvas.n.html,
1552 itcl/iwidgets3.0.0/demos/html/scrolledframe.n.html,
1553 itcl/iwidgets3.0.0/demos/html/scrolledhtml.n.html,
1554 itcl/iwidgets3.0.0/demos/html/scrolledlistbox.n.html,
1555 itcl/iwidgets3.0.0/demos/html/scrolledtext.n.html,
1556 itcl/iwidgets3.0.0/demos/html/selectionbox.n.html,
1557 itcl/iwidgets3.0.0/demos/html/selectiondialog.n.html,
1558 itcl/iwidgets3.0.0/demos/html/shell.n.html,
1559 itcl/iwidgets3.0.0/demos/html/spindate.n.html,
1560 itcl/iwidgets3.0.0/demos/html/spinint.n.html,
1561 itcl/iwidgets3.0.0/demos/html/spinner.n.html,
1562 itcl/iwidgets3.0.0/demos/html/spintime.n.html,
1563 itcl/iwidgets3.0.0/demos/html/tabnotebook.n.html,
1564 itcl/iwidgets3.0.0/demos/html/tabset.n.html,
1565 itcl/iwidgets3.0.0/demos/html/toolbar.n.html,
1566 itcl/iwidgets3.0.0/demos/scrolledcanvas,
1567 itcl/iwidgets3.0.0/demos/scrolledframe,
1568 itcl/iwidgets3.0.0/demos/scrolledhtml,
1569 itcl/iwidgets3.0.0/demos/scrolledlistbox,
1570 itcl/iwidgets3.0.0/demos/scrolledtext,
1571 itcl/iwidgets3.0.0/demos/selectionbox,
1572 itcl/iwidgets3.0.0/demos/selectiondialog,
1573 itcl/iwidgets3.0.0/doc/canvasprintbox.n,
1574 itcl/iwidgets3.0.0/doc/canvasprintdialog.n,
1575 itcl/iwidgets3.0.0/doc/extfileselectionbox.n,
1576 itcl/iwidgets3.0.0/doc/extfileselectiondialog.n,
1577 itcl/iwidgets3.0.0/doc/fileselectionbox.n,
1578 itcl/iwidgets3.0.0/doc/fileselectiondialog.n,
1579 itcl/iwidgets3.0.0/doc/scopedobject.n.backup,
1580 itcl/iwidgets3.0.0/doc/scrolledcanvas.n,
1581 itcl/iwidgets3.0.0/doc/scrolledframe.n,
1582 itcl/iwidgets3.0.0/doc/scrolledhtml.n,
1583 itcl/iwidgets3.0.0/doc/scrolledlistbox.n,
1584 itcl/iwidgets3.0.0/doc/scrolledtext.n,
1585 itcl/iwidgets3.0.0/doc/selectionbox.n,
1586 itcl/iwidgets3.0.0/doc/selectiondialog.n,
1587 itcl/iwidgets3.0.0/generic/canvasprintbox.itk,
1588 itcl/iwidgets3.0.0/generic/canvasprintdialog.itk,
1589 itcl/iwidgets3.0.0/generic/extfileselectionbox.itk,
1590 itcl/iwidgets3.0.0/generic/extfileselectiondialog.itk,
1591 itcl/iwidgets3.0.0/generic/fileselectionbox.itk,
1592 itcl/iwidgets3.0.0/generic/fileselectiondialog.itk,
1593 itcl/iwidgets3.0.0/generic/scrolledcanvas.itk,
1594 itcl/iwidgets3.0.0/generic/scrolledframe.itk,
1595 itcl/iwidgets3.0.0/generic/scrolledhtml.itk,
1596 itcl/iwidgets3.0.0/generic/scrolledlistbox.itk,
1597 itcl/iwidgets3.0.0/generic/scrolledtext.itk,
1598 itcl/iwidgets3.0.0/generic/scrolledwidget.itk,
1599 itcl/iwidgets3.0.0/generic/selectionbox.itk,
1600 itcl/iwidgets3.0.0/generic/selectiondialog.itk,
1601 itcl/iwidgets3.0.0/tests/canvasprintbox.test,
1602 itcl/iwidgets3.0.0/tests/canvasprintdialog.test,
1603 itcl/iwidgets3.0.0/tests/extfileselectionbox.test,
1604 itcl/iwidgets3.0.0/tests/extfileselectiondialog.test,
1605 itcl/iwidgets3.0.0/tests/fileselectionbox.test,
1606 itcl/iwidgets3.0.0/tests/fileselectiondialog.test,
1607 itcl/iwidgets3.0.0/tests/scrolledcanvas.test,
1608 itcl/iwidgets3.0.0/tests/scrolledframe.test,
1609 itcl/iwidgets3.0.0/tests/scrolledhtml.test,
1610 itcl/iwidgets3.0.0/tests/scrolledlistbox.test,
1611 itcl/iwidgets3.0.0/tests/scrolledtext.test,
1612 itcl/iwidgets3.0.0/tests/selectionbox.test,
1613 itcl/iwidgets3.0.0/tests/selectiondialog.test,
1614 itcl/iwidgets3.0.0/unix/iwidgets.tcl.in,
1615 itcl/iwidgets3.0.0/unix/pkgIndex.tcl.in,
1616 tix/docs/Release-4.1.0.html, tix/docs/Release-4.1.0.txt,
1617 tix/docs/Release-4.1a2.html, tix/docs/Release-4.1a2.txt,
1618 tix/docs/Release-4.1a3.html, tix/docs/Release-4.1a3.txt,
1619 tix/docs/Release-4.1b1.html, tix/docs/Release-4.1b1.txt,
1620 tix/docs/Release-4.1b2.html, tix/docs/Release-4.1b2.txt,
1621 tix/tixConfig.sh.in, tix/unix/tk4.2/pkgIndex.tcl.in,
1622 tix/unix/tk8.0/pkgIndex.tcl.in, tix/unix/tk8.0/pkgIndex.tcl.in,
1623 tix/unix/tk8.1/pkgIndex.tcl.in, tix/win/tkConsole41.c,
1624 tix/win/tkConsole42.c, tix/win/tkConsole80a1.c,
1625 tix/win/tkConsole80b1.c, tix/win/tkConsole81.c, tk/doc/tk4.0.ps,
1626 tk/mac/tkMacProjects.sit.hqx.
1627
1e3ff5ad
AC
16282003-10-17 Andrew Cagney <cagney@redhat.com>
1629
8db32d44
AC
1630 * target.c (target_section_by_addr): New function.
1631 (do_xfer_memory): Use "target_section_by_addr".
1632 * target.h (target_section_by_addr): Declare.
1633
1e3ff5ad
AC
1634 * target.h (struct target_ops): Add "to_read_partial" and
1635 "to_write_partial", delete "to_query".
1636 (target_read_partial, target_write_partial): Declare.
1637 (target_read, target_write): Declare.
1638 (target_query): Delete macro.
1639 * target.c (target_read_partial): New function.
1640 (target_write_partial, target_read, target_write): New function.
1641 (update_current_target): Delete inheritance of "to_query". Add
1642 comments about "to_read_partial" and "to_write_partial".
1643 (debug_to_partial_read, debug_to_partial_write): New functions.
1644 (debug_to_query): Delete function.
1645 (setup_target_debug): Set "to_read_partial" and "to_write_partial"
1646 instead of "to_query".
1647 * remote.c (remote_read_partial): Replace "remote_query".
1648 (init_remote_ops): Set "to_read_partial" instead of "to_query".
1649 (init_remote_async_ops): Ditto.
1650 * kod.c (gdb_kod_query): Make "bufsize" a LONGEST. Use
1651 "target_read_partial" instead of "target_query".
1652 * avr-tdep.c (avr_io_reg_read_command): Make "bufsize" a LONGEST.
1653 Use "target_read_partial" instead of "target_query".
1654
48c66725
JJ
16552003-10-17 Jeff Johnston <jjohnstn@redhat.com>
1656
1657 * frame.h (struct frame_id): Add new field: special_addr.
1658 (frame_id_build_special): New prototype.
1659 * frame.c (frame_id_build_special): New function.
1660 (frame_id_build): Change to call frame_id_build_special().
1661 (frame_id_eq): Change to also test special_addr field.
1662 (frame_id_inner): Update comment.
1663
7998dfc3
AC
16642003-10-17 Andrew Cagney <cagney@redhat.com>
1665
1666 * target.c (update_current_target): Perform the target cleanup.
1667 Put the target stack beneath the squashed "current_target".
1668 (add_target): Delete disabled call to "cleanup_target".
1669 (cleanup_target): Delete function.
1670 (push_target, unpush_target): Do not call "cleanup_target".
1671
9c04404e 16722003-10-17 Andrew Cagney <cagney@redhat.com>
258b763a
AC
1673
1674 * target.c (target_stack): Change to a static target_ops.
1675 (update_current_target): Walk the "struct target_ops" stack.
1676 (pop_target, do_xfer_memory, target_info): Ditto.
1677 (find_target_beneath): Ditto.
1678 (push_target): Rewrite to use the "struct target_ops" stack.
1679 (unpush_target): Ditto.
1680 * target.h (struct target_stack_item): Delete definition.
1681 (target_stack): Delete declaration.
1682 (struct target_ops): Add field "beneath".
1683
c98a2b49 16842003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
ac1764c7
AC
1685
1686 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1687 declaration.
1688 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
c98a2b49
SA
1689 (h8300_examine_prologue): Use h8300_normal_mode flag
1690 (h8300_gdbarch_init): Set architecture info for normal mode
1691
506fb367
DJ
16922003-10-16 Daniel Jacobowitz <drow@mvista.com>
1693
1694 * remote.c (remote_protocol_vcont): New variable.
1695 (set_remote_protocol_vcont_packet_cmd): New function.
1696 (show_remote_protocol_vcont_packet_cmd): New function.
1697 (init_all_packet_configs): Handle remote_protocol_vcont.
1698 (remote_vcont_probe): New function.
1699 (remote_vcont_resume): New function.
1700 (remote_resume): Use it.
1701 (remote_async_resume): Call remote_resume.
1702 (_initialize_remote): Add verbose-resume packet commands.
1703
65815ea1
AC
17042003-10-16 Andrew Cagney <cagney@redhat.com>
1705
1706 * infrun.c (handle_inferior_event): Add comment about
1707 "frame_id_inner" being too weak.
1708
40324f1b
EZ
17092003-10-16 Elena Zannoni <ezannoni@redhat.com>
1710
1711 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Remove
1712 second parameter, which is always null. Remove
1713 SOFUN_ADDRESS_MAYBE_MISSING ifdeffed code.
1714 * symtab.h (lookup_minimal_symbol_solib_trampoline): Update
1715 accordingly.
1716 * somsolib.c (som_solib_create_inferior_hook,
1717 som_solib_desire_dynamic_linker_symbols): Update callers.
1718 * hppa-tdep.c (hppa_fix_call_dummy): Ditto.
b4b4b794
KI
1719
17202003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
1721
1722 * remote-m32r-sdi.c : New file, interface to m32r on-chip
1723 debug interface, SDI (Scalable Debug Interface).
1724 * NEWS: Mention m32r SDI protocol was supported.
1725 * Makefile.in (remote-m32r-sdi.o): Add build rule.
1726 * config/m32r/m32r.mt (TDEPFILES) : Add remote-m32r-sdi.o.
1727
51931cbb
JJ
17282003-10-15 Jeff Johnston <jjohnstn@redhat.com>
1729
1730 * ia64-linux-tdep.c: Include gdbcore.h.
1731 (IA64_LINUX_SIGCONTEXT_OFFSET): Magic constant removed.
1732 (ia64_linux_sigcontext_register_addr): Find the address of the
1733 sigcontext area stored in the sigframe instead of using
1734 a magic offset constant.
1735
84e7fd53
AC
17362003-10-15 Andrew Cagney <cagney@redhat.com>
1737
1738 * remote.c (remote_search): Delete function.
1739 * target.h (target_search): Delete disabled macro.
1740 (struct target_ops): Delete disabled field "to_search".
1741
0f4d7c52
KB
17422003-10-14 Kevin Buettner <kevinb@redhat.com>
1743
1744 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1745 instead of deprecated_inside_entry_file().
1746
2e952408
CV
17472003-10-14 Corinna Vinschen <vinschen@redhat.com>
1748
1749 * sh-tdep.c: Fix copy/paste hangover in comment.
1750 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1751 mode.
1752 (sh3e_sh4_extract_return_value): Ditto.
1753
7e86466e
RH
17542003-10-13 Richard Henderson <rth@redhat.com>
1755
1756 * f-typeprint.c (f_type_print_base): Handle TYPE_CODE_REF.
1757 * f-valprint.c (f_val_print): Likewise. Tweak TYPE_CODE_PTR to
1758 match c_val_print a bit closer.
1759
46a16dba
KB
17602003-10-13 Kevin Buettner <kevinb@redhat.com>
1761
1762 * frv-tdep.c (max_instrs_per_bundle, frv_instr_size): New constants.
1763 (frv_gdbarch_adjust_breakpoint_address): New function.
1764 (frv_gdbarch_init): Initialize ``gdbarch_adjust_breakpoint_address''
1765 method.
1766
76897487
KB
17672003-10-13 Kevin Buettner <kevinb@redhat.com>
1768
1769 * breakpoint.h (struct breakpoint): Add new member
1770 ``requested_address''.
1771 * breakpoint.c (breakpoint_adjustment_warning)
1772 (adjust_breakpoint_address): New static functions.
1773 (print_it_typical): Issue warning if breakpoint's address is different
1774 from its requested address.
1775 (set_raw_breakpoint, set_longjmp_resume_breakpoint, watch_command_1)
1776 (breakpoint_re_set_one): Set breakpoint's
1777 ``requested_address'' field. Set ``address'' field to the
1778 result of calling adjust_breakpoint_address() on the requested
1779 address.
1780
a1131521
KB
17812003-10-13 Kevin Buettner <kevinb@redhat.com>
1782
1783 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1784 * gdbarch.h, gdbarch.c: Regenerate.
1785
6ce6d90f
MK
17862003-10-11 Mark Kettenis <kettenis@gnu.org>
1787
155c1d33
MK
1788 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
1789 TDEP->sc_num_regs.
1790
8a96bc77
MK
1791 * i386fbsd-tdep.c: New file.
1792 (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1793 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1794 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Move here from
1795 i386bsd-tdep.c.
1796 (_initialize_i386fbsd_tdep): New function.
1797 (i386fbsd_r_reg_offset, i386fbsd4_r_reg_offset): New varibles.
1798 (i386fbsdaout_init_abi): Initialize TDEP->gregset_reg_offset,
1799 TDEP->gregset_num_regs, TDEP->sizeof_gregset and
1800 TDEP->sizeof_fpregset. Use ARRAY_SIZE to initialize
1801 TDEP->sc_num_regs.
1802 (i386fbsd4_init_abi): Initialize TDEP->gregset_reg_offset,
1803 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1804 to initialize TDEP->sc_num_regs.
1805 * i386bsd-tdep.c (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
1806 i386fbsd_sc_reg_offset, i386fbsdaout_init_abi, i386fbsd_init_abi,
1807 i386fbsd4_sc_reg_offset, i386fbsd4_init_abi): Remove.
1808 (_initialize_i386bsd_tdep): Don't register FreeBSD a.out and
1809 FreeBSD ELF OS/ABI's here.
1810 * Makefile.in (ALLDEPFILES): Add i386fbsd-tdep.c.
1811 (i386fbsd-tdep.o): New target.
1812 * config/i386/fbsd.mt (TDEPFILES): Add i386fbsd-tdep.o.
1813 * config/i386/fbsd64.mt (TDEPFILES): Add i386fbsd-tdep.o.
1814
477f40d1
MK
1815 * amd64fbsd-tdep.c (amd64fbsd_r_reg_offset): New variable.
1816 (amd64fbsd_init_abi): Set TDEP->gregset_reg_offset,
1817 TDEP->gregset_num_regs and TDEP->sizeof_gregset. Use ARRAY_SIZE
1818 in initialization of TDEP->sc_num_regs.
1819
c6b33596
MK
1820 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1821 (x86_64_init_abi): Initialize regset_from_core_section if
1822 appropriate.
1823
8446b36a
MK
1824 * i386-tdep.c (i386_regset_from_core_section): New function.
1825 (i386_gdbarch_init): Initialize regset_from_core_section if
1826 appropriate.
1827 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1828
c783cbd6
MK
1829 * i386-tdep.h (struct regset): Declare opaque.
1830
6ce6d90f
MK
1831 * gdbarch.sh (regset_from_core_section): New method.
1832 (struct regset): Declare opaque.
1833 * gdbarch.c, gdbarch.h: Regenerated.
1834
b98ed7be
AM
18352003-10-11 Alan Modra <amodra@bigpond.net.au>
1836
1837 * hppa-tdep.c (hppa_in_solib_call_trampoline): Don't refer directly to
1838 _cooked_size and vma; Use bfd_section_size and bfd_get_section_vma.
1839 Correct test for pc within section.
1840
f6214256
MK
18412003-10-11 Mark Kettenis <kettenis@gnu.org>
1842
1843 * gdbarch.sh: Remove trailing whitepsace from comments.
1844
a8f4cde1
RM
18452003-10-08 Roland McGrath <roland@redhat.com>
1846
1847 * gcore.c (make_mem_sec): Function removed, folded into ...
1848 (gcore_create_callback): ... here. To omit a section, clear its
1849 SEC_LOAD bit rather than zeroing its size.
1850 Omit read-only sections only if they correspond to a known disk file.
1851 (gcore_copy_callback): Ignore sections without SEC_LOAD flag set.
1852
74276724
MS
18532003-10-10 Michael Snyder <msnyder@redhat.com>
1854
1855 * d10v-tdep.c: Fix typo in comment.
1856
e754ae69
AC
18572003-10-10 Andrew Cagney <cagney@redhat.com>
1858
1859 * rs6000-tdep.c (e500_store_return_value): Delete function.
1860 (e500_extract_return_value): Delete function.
1861 (rs6000_gdbarch_init): When SYSV, set "extract_return_value" and
1862 "restore_return_value" to "ppc_sysv_abi_extract_return_value" and
1863 "ppc_sysv_abi_restore_return_value" where applicable.
1864 * ppc-tdep.h: (ppc_sysv_abi_store_return_value): Declare.
1865 (ppc_sysv_abi_extract_return_value): Declare.
1866 (ppc_sysv_abi_broken_store_return_value): Declare.
1867 (ppc_sysv_abi_broken_extract_return_value): Declare.
1868 (ppc_sysv_abi_broken_use_struct_convention:) Delete declaration.
1869 * ppc-sysv-tdep.c (return_value_convention): Move definition to
1870 start of file.
1871 (do_ppc_sysv_return_value): New function.
1872 (ppc_sysv_abi_extract_return_value): New function.
1873 (ppc_sysv_abi_store_return_value): New function.
1874 (ppc_sysv_abi_broken_extract_return_value): New function.
1875 (ppc_sysv_abi_broken_store_return_value): New function.
1876 (ppc_sysv_abi_use_struct_convention): Call
1877 do_ppc_sysv_return_value.
1878
8d4ce20a
JB
18792003-10-10 J. Brobecker <brobecker@gnat.com>
1880
1881 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1882 to lookup the main function symbol.
1883
afce3d2a
CV
18842003-10-10 Corinna Vinschen <vinschen@redhat.com>
1885
1886 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1887 types correctly.
1888 (sh_push_dummy_call_fpu): Fix argument passing rules.
1889 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1890 float types.
1891 (sh3e_sh4_store_return_value): Ditto.
1892
7fe958be
EZ
18932003-10-10 Elena Zannoni <ezannoni@redhat.com>
1894
1895 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1896 comment.
1897
3f997a97
CV
18982003-10-10 Corinna Vinschen <vinschen@redhat.com>
1899
1900 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1901 more readable code. Accomodate passing of bitfields.
1902
8be9034a
AC
19032003-10-10 Andrew Cagney <cagney@redhat.com>
1904
1905 * Makefile.in (ppc-sysv-tdep.o): Add $(gdb_assert_h).
1906 * rs6000-tdep.c (rs6000_gdbarch_init): When 64 bit SysV ABI, set
1907 push_dummy_call to ppc64_sysv_abi_push_dummy_call.
1908 * ppc-sysv-tdep.c: Include "gdb_assert.h".
1909 (ppc64_sysv_abi_push_dummy_call): New function.
1910 (ppc64_sysv_abi_broken_push_dummy_call): New function.
1911 * ppc-tdep.h (ppc64_sysv_abi_push_dummy_call): Declare.
1912 (ppc64_sysv_abi_broken_push_dummy_call): Declare.
1913
85a453d5
KI
19142003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1915
1916 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
1917 * README: Ditto.
1918 * d10v-tdep.c: Ditto.
1919 * h8300-tdep.c: Ditto.
1920 * remote-e7000.c: Ditto.
1921 * remote-hms.c: Ditto.
1922 * ser-e7kpc.c: Ditto.
1923 * sh-stub.c: Ditto.
1924 * sh-tdep.c: Ditto.
1925 * sh-tdep.h: Ditto.
1926 * sh3-rom.c: Ditto.
1927 * sh64-tdep.c: Ditto.
1928 * top.c: Ditto.
1929 * wince.c: Ditto.
1930 * config/d10v/d10v.mt: Ditto.
1931 * config/sh/embed.mt: Ditto.
1932 * config/sh/linux.mt: Ditto.
1933 * config/sh/tm-linux.h: Ditto.
1934 * config/sh/tm-sh.h: Ditto.
1935 * config/sh/wince.mt: Ditto.
1936
221c12ff
AC
19372003-10-09 Andrew Cagney <cagney@redhat.com>
1938
1939 * ppc-tdep.h (struct type): Declare opaque.
1940 * x86-64-tdep.h (struct regcache): Declare opaque.
1941 * sh-tdep.c (sh_do_fp_register): Delete "register" attribute, fix
1942 coding style.
1943
ef5200c1
AC
19442003-10-09 Andrew Cagney <cagney@redhat.com>
1945
1946 Changes from 2003-09-09 Jimi Xenidis <jimix@watson.ibm.com>:
1947 * config/rs6000/tm-rs6000.h (SOFTWARE_SINGLE_STEP): Delete macro.
1948 (SOFTWARE_SINGLE_STEP_P): Ditto.
1949 * config/powerpc/tm-ppc-eabi.h (SOFTWARE_SINGLE_STEP_P): Ditto.
1950 * config/powerpc/tm-linux.h (SOFTWARE_SINGLE_STEP): Ditto.
1951 (SOFTWARE_SINGLE_STEP_P): Ditto.
1952 * rs6000-tdep.c (rs6000_gdbarch_init): When AIX, set
1953 software_single_step to rs6000_software_single_step.
a8f4cde1 1954
9644bbdd
AC
19552003-10-09 Andrew Cagney <cagney@redhat.com>
1956
1957 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1958
db72fa6b
MS
19592003-10-09 Michael Snyder <msnyder@redhat.com>
1960
f3efb16c
MS
1961 * frame.h: Fix typo in comment.
1962 * dummy-frame.c: Fix typo in comment.
db72fa6b
MS
1963 * d10v-tdep.c: Random whitespace/comment tweaks.
1964
9a5cef92
EZ
19652003-10-09 Elena Zannoni <ezannoni@redhat.com>
1966
1967 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
f49c4e4e 1968 (sh_push_dummy_code): Delete function, it's only used for dummy calls
9a5cef92 1969 on stack.
a8f4cde1 1970
9a5cef92
EZ
1971 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1972 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1973 in detail.
a8f4cde1 1974
0f317a0c
DJ
19752003-10-09 Daniel Jacobowitz <drow@mvista.com>
1976
1977 * remote-mips.c (mips_initialize): Remove unneeded call to
1978 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1979
bbab2f46
DJ
19802003-10-09 Daniel Jacobowitz <drow@mvista.com>
1981
1982 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1983 a memory pointer.
1984
550950b8
JJ
19852003-10-08 Jeff Johnston <jjohnstn@redhat.com>
1986
1987 * lin-lwp.c (stop_and_resume_callback): Set the resumed flag
1988 for any lwp we resume.
1989 (running_callback): Add lwps that have pending status events
1990 against them to be considered running.
1991
15c69bc7
KI
19922003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1993
1994 * m32r-tdep.c : Include "dis-asm.h".
1995 * Makefile.in (m32r-tdep.o): Update dependencies.
1996
51065942
JB
19972003-10-06 J. Brobecker <brobecker@gnat.com>
1998
1999 * completer.h (get_gdb_completer_word_break_characters): Delete.
2000 * completer.c: include language.h.
2001 (gdb_completer_word_break_characters): Delete.
2002 (get_gdb_completer_word_break_characters): Delete.
2003 (location_completer): Use the word break characters of the current
2004 language.
2005 (complete_line): Likewise.
2006 (line_completion_function): Likewise.
2007 (skip_quoted_chars): Likewise.
2008 * Makefile.in (completer.o): Add dependency on language.h.
2009 * top.c (init_main): Set the readline word break characters
2010 to GDB's default word break characters.
2011
6084f43a
JB
20122003-10-06 J. Brobecker <brobecker@gnat.com>
2013
2014 * language.h (language_defn): new field, la_word_break_characters.
2015 * language.c (unknown_language_defn): Set new field to
2016 default_word_break_characters.
2017 (auto_language_defn): Likewise.
2018 (local_language_defn): Likewise.
2019 * ada-lang.c (ada_language_defn): Likewise.
2020 * c-lang.c (c_language_defn): Likewise.
2021 (cplus_language_defn): Likewise.
2022 (asm_language_defn): Likewise.
2023 (minimal_language_defn): Likewise.
2024 * f-lang.c (f_language_defn): Likewise.
2025 * jv-lang.c (java_language_defn): Likewise.
2026 * m2-lang.c (m2_language_defn): Likewise.
2027 * objc-lang.c (objc_language_defn): Likewise.
2028 * p-lang.c (pascal_language_defn): Likewise.
2029 * scm-lang.c (scm_language_defn): Likewise.
2030
944fcfab
AC
20312003-10-06 Andrew Cagney <cagney@redhat.com>
2032
2033 * ppc-sysv-tdep.c: Re-indent.
2034
9f0a5303
JB
20352003-10-06 J. Brobecker <brobecker@gnat.com>
2036
2037 * language.h (default_word_break_characters): Add prototype.
2038 * language.c (default_word_break_characters): New function.
2039
7270b6ed
AS
20402003-10-06 Andreas Schwab <schwab@suse.de>
2041
2042 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2043 with %eax.
2044
a5d61f66
AC
20452003-10-06 Andrew Cagney <cagney@redhat.com>
2046
2047 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2048 "h8500-tdep.c".
2049 (z8k-tdep.o): Delete custom build rule.
2050
28a86f5c
AC
20512003-10-06 Andrew Cagney <cagney@redhat.com>
2052
1bfd8a83
AC
2053 * Makefile.in: Update all dependencies.
2054
17144ef8
AC
2055 * MAINTAINERS: Mention that h8500, mn10200, and z8k were deleted.
2056 No longer list PA as as obsolete candidate. List m32r as
2057 broken instead of obsolete.
a8f4cde1 2058
a5679ae5
AC
2059 * config/nm-m3.h, config/h8500/h8500.mt: Delete obsolete files.
2060 * config/h8500/tm-h8500.h, config/i386/nm-ptx4.h: Ditto.
2061 * config/i386/nm-symmetry.h, config/i386/ptx.mh: Ditto.
2062 * config/i386/ptx.mt, config/i386/ptx4.mh: Ditto.
2063 * config/i386/ptx4.mt, config/i386/symmetry.mh: Ditto.
2064 * config/i386/symmetry.mt, config/i386/tm-ptx.h: Ditto.
2065 * config/i386/tm-ptx4.h, config/i386/tm-symmetry.h: Ditto.
2066 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
2067 * config/i386/xm-symmetry.h, config/mips/mipsm3.mh: Ditto.
2068 * config/mips/mipsm3.mt, config/mips/tm-mipsm3.h: Ditto.
2069 * config/mips/xm-mipsm3.h, config/mn10200/mn10200.mt: Ditto.
2070 * config/mn10200/tm-mn10200.h, config/pa/hppabsd.mh: Ditto.
2071 * config/pa/hppabsd.mt, config/pa/hppaosf.mh: Ditto.
2072 * config/pa/hppaosf.mt, config/pa/hppapro.mt: Ditto.
2073 * config/pa/nm-hppab.h, config/pa/nm-hppao.h: Ditto.
2074 * config/pa/tm-hppab.h, config/pa/tm-hppao.h: Ditto.
2075 * config/pa/tm-pro.h, config/pa/xm-hppab.h: Ditto.
2076 * config/pa/xm-pa.h, config/sparc/sparclet.mt: Ditto.
2077 * config/sparc/sparclite.mt, config/sparc/tm-sparclet.h: Ditto.
2078 * config/sparc/tm-sparclite.h, config/z8k/tm-z8k.h: Ditto.
2079 * config/z8k/z8k.mt: Ditto.
2080
4a8269c0
AC
2081 * NEWS: Mention that z8k-zilog-none, z8ksim, mn10200-*-*,
2082 h8500hms, hppa*-*-bsd*, hppa*-*-osf*, hppa*-*-pro*,
2083 mips*-*-mach3*, i[3456]86-sequent-sysv4*, i[3456]86-sequent-sysv*,
2084 i[3456]86-sequent-bsd*, sparclet-*-*, sparclite-fujitsu-none, and
2085 sparclite were removed.
2086 * configure.host, configure.tgt: Remove corresponding tuples.
2087
41989fcd
AC
2088 * breakpoint.c, breakpoint.h: Remove obsolete code.
2089 * buildsym.c, dbxread.c, gdbtypes.c, mdebugread.c: Ditto.
2090 * monitor.c, sparc-tdep.c, stabsread.c: Ditto.
2091 * stabsread.h, xcoffread.c: Ditto.
2092
28a86f5c
AC
2093 * z8k-tdep.c, symm-tdep.c, symm-nat.c: Delete obsolete file.
2094 * sparclet-stub.c, sparclet-rom.c: Delete obsolete file.
2095 * sparcl-tdep.c, sparcl-stub.c, h8500-tdep.c: Delete obsolete file.
2096 * m3-nat.c, mipsm3-nat.c, mn10200-tdep.c: Delete obsolete file.
2097
4efdaa0d
DL
20982003-10-06 David Lecomber <dsl@sources.redhat.com>
2099
2100 * f-valprint.c: Reformatting
2101
ae53de43
MK
21022003-10-06 Mark Kettenis <kettenis@gnu.org>
2103
a8bb57e7
MK
2104 * x86-64-tdep.c: Remove duplicate comment.
2105
ae53de43
MK
2106 * x86-64-tdep.c (x86_64_store_return_value): Don't use
2107 DEPRECATED_REGISTER_RAW_SIZE. Use symbolic names for register
2108 names for return values. This fixes a bug since we looked at %rbx
2109 instead of %rdx.
2110
473f17b0
MK
21112003-10-05 Mark Kettenis <kettenis@gnu.org>
2112
2c261fae
MK
2113 * x86-64-tdep.c: Include "regset.h".
2114
473f17b0
MK
2115 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2116 gregset_reg_offset, gregset_num_regs, sizeof_gregset, fpregset,
2117 sizeof_fpregset.
2118 * i386-tdep.c: Include "regset.h".
2119 (i386_supply_gregset): New function.
2120 (i386_supply_fpregset): New function.
2121 (i386_gdbarch_init): Initialze register set-related members of
2122 TDEP.
2123 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2124 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2125
afd48b75
AC
21262003-10-03 Andrew Cagney <cagney@redhat.com>
2127
2128 * rs6000-tdep.c (rs6000_gdbarch_init): When the 64 bit SysV ABI,
2129 set extract_return_value, store_return_value and
2130 use_struct_convention to ppc64_sysv_abi_extract_return_value,
2131 ppc64_sysv_abi_store_return_value and
2132 ppc64_sysv_abi_use_struct_convention.
2133 * ppc-tdep.h (ppc64_sysv_abi_extract_return_value): Declare.
2134 (ppc64_sysv_abi_store_return_value): Declare.
2135 (ppc64_sysv_abi_use_struct_convention): Declare.
2136 * ppc-sysv-tdep.c (enum return_value_convention): Define.
2137 (ppc64_sysv_abi_extract_return_value): New function.
2138 (ppc64_sysv_abi_store_return_value): New function.
2139 (ppc64_sysv_abi_use_struct_convention): New function.
2140 (ppc64_sysv_abi_return_value): New function.
2141
9b540880
AC
21422003-10-03 Andrew Cagney <cagney@redhat.com>
2143
2144 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): Only
2145 convert a descriptor to a function when it's in the ".opd"
2146 section.
2147
8748518b
CV
21482003-10-03 Corinna Vinschen <vinschen@redhat.com>
2149
2150 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2151 reg_size to keep GCC silent.
2152
0fd85043
CV
21532003-10-03 Corinna Vinschen <vinschen@redhat.com>
2154
2155 * dwarf2-frame.c (struct comp_unit): Add tbase member to store
2156 base for DW_EH_PE_textrel encodings.
2157 (read_encoded_value): Add a DW_EH_PE_textrel case.
2158 (dwarf2_build_frame_info): Set unit.tbase to beginning of text
2159 section.
2160
37b517aa
MK
21612003-10-03 Mark Kettenis <kettenis@gnu.org>
2162
2163 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2164
12c266ea
AC
21652003-10-02 Andrew Cagney <cagney@redhat.com>
2166
2167 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
2168 REGISTER_RAW_SIZE.
2169 * gdbarch.h, gdbarch.c: Re-generate.
2170 * aix-thread.c, alpha-tdep.h, arm-tdep.c, core-sol2.c: Update.
2171 * cris-tdep.c, dve3900-rom.c, findvar.c, frame.c: Update.
2172 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2173 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2174 * ia64-linux-nat.c, ia64-tdep.c, infcmd.c, infptrace.c: Update.
2175 * infrun.c, irix5-nat.c, lynx-nat.c, mips-linux-tdep.c: Update.
2176 * mips-nat.c, mips-tdep.c, mipsv4-nat.c, mn10300-tdep.c: Update.
2177 * monitor.c, ns32k-tdep.c, ppc-linux-nat.c, regcache.c: Update.
2178 * remote-e7000.c, remote-mips.c, remote-sim.c: Update.
2179 * remote-vxmips.c, remote-vxsparc.c, remote.c: Update.
2180 * rom68k-rom.c, rs6000-nat.c, rs6000-tdep.c, s390-tdep.c: Update.
2181 * sh64-tdep.c, sparc-nat.c, sparc-tdep.c, stack.c: Update.
2182 * target.c, tracepoint.c, v850-tdep.c, v850ice.c, valops.c: Update.
2183 * vax-tdep.c, vax-tdep.h, x86-64-tdep.c, xstormy16-tdep.c: Update.
2184 * config/m68k/tm-delta68.h, config/m68k/tm-vx68.h: Update.
2185 * config/sparc/tm-sparc.h, config/sparc/tm-sparclynx.h: Update.
a8f4cde1 2186
78ba4af6
JB
21872003-10-02 Jim Blandy <jimb@redhat.com>
2188
2189 * dwarf2read.c (struct die_info): Doc fix.
2190
617daa0e
CV
21912003-10-02 Corinna Vinschen <vinschen@redhat.com>
2192
2193 * sh-tdep.c: Running thru gdb_indent.sh.
2194
e5e33cd9
CV
21952003-10-02 Corinna Vinschen <vinschen@redhat.com>
2196
2197 * sh-tdep.c (sh_justify_value_in_reg): New function.
2198 (sh_stack_allocsize): Ditto.
2199 (flt_argreg_array): New array used for floating point argument
2200 passing.
2201 (sh_init_flt_argreg): New function.
a8f4cde1 2202 (sh_next_flt_argreg): Ditto.
e5e33cd9
CV
2203 (sh_push_dummy_call_fpu): Simplify. Rename "odd_sized_struct" to
2204 "pass_on_stack". Use new helper functions. Accomodate Renesas ABI.
2205 Fix argument passing strategy.
2206 (sh_push_dummy_call_nofpu): Ditto.
2207
5fe830e4
AC
22082003-10-01 Andrew Cagney <cagney@redhat.com>
2209
2210 * value.h (register_value_being_returned): Declare. Replace
2211 "value_being_returned".
2212 * infcall.c (call_function_by_hand): Use
2213 register_value_being_returned.
2214 * infcmd.c (print_return_value): Call
2215 "register_value_being_returned", handle struct return locally.
2216 * values.c (register_value_being_returned): New function. Replace
2217 "value_being_returned".
a8f4cde1 2218
5fe830e4 22192003-09-30 Elena Zannoni <ezannoni@redhat.com>
cf50a87a
EZ
2220
2221 * linux-proc.c (linux_do_registers): New function.
2222 (linux_make_note_section): Use linux_do_registers in case of
2223 single threaded inferior programs.
2224
64f395bf
AC
22252003-10-01 Andrew Cagney <cagney@redhat.com>
2226
2227 * infcall.c (call_function_by_hand): When STRUCT_RETURN, always
2228 use STRUCT_ADDR. When not using "struct return convention", pass
2229 "0" to "value_being_returned". Add FIXMEs.
2230 * infcmd.c (print_return_value): Pass an explicit 0/1 to
2231 value_being_returned. Add comments.
2232 * values.c (value_being_returned): Add fixme.
2233 * hppa-tdep.c (hppa_extract_struct_value_address): Add FIXME.
2234 (hppa_value_returned_from_stack): Add FIXME.
2235
639d11d3
DC
22362003-09-30 David Carlton <carlton@kealia.com>
2237
2238 * dwarf2read.c (struct die_info): Add 'parent' field; replace
2239 'has_children' and 'next' by 'child' and 'sibling'.
2240 (read_comp_unit): Rework algorithm, breaking body into
2241 read_die_and_children and read_die_and_siblings.
2242 (read_die_and_children, read_die_and_siblings): New.
2243 (read_full_die): Add 'has_children' argument; set it instead of
2244 the die's 'has_children' field. Minor formatting cleanup.
2245 (free_die_list): Use die->child and die->sibling instead of
2246 die->next.
2247 (dump_die_list): Ditto.
2248 (sibling_die): Use die->sibling.
2249 (psymtab_to_symtab_1): Use die's 'child' field in place of its
2250 'has_children' and 'next' fields.
a8f4cde1
RM
2251 (process_die, read_file_scope, read_func_scope)
2252 (read_lexical_block_scope, read_structure_scope)
2253 (read_enumeration, read_array_type, read_common_block)
639d11d3
DC
2254 (read_namespace, read_subroutine_type, dump_die): Ditto.
2255
5bffac25
AC
22562003-09-30 Andrew Cagney <cagney@redhat.com>
2257
2258 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2259 to 224, not 220.
2260
f30992d4
AC
22612003-09-30 Andrew Cagney <cagney@redhat.com>
2262
2263 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_SIZE): Rename
2264 REGISTER_VIRTUAL_SIZE.
2265 * gdbarch.h, gdbarch.c: Regenerate.
2266 * vax-tdep.h, sparc-tdep.c, regcache.h: Update.
2267 * regcache.c, mn10300-tdep.c, mips-tdep.c: Update.
2268 * infcmd.c, frame.c, findvar.c, cris-tdep.c: Update.
2269
2e092625
AC
22702003-09-29 Andrew Cagney <cagney@redhat.com>
2271
2272 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
7bb11558 2273 REGISTER_VIRTUAL_TYPE.
2e092625
AC
2274 * gdbarch.h, gdbarch.c: Regenerate.
2275 * arch-utils.c, hppa-tdep.c, regcache.c, regcache.h: Update.
2276 * sh64-tdep.c, sparc-tdep.c: Update.
4deab737
AC
2277
2278 * remote-vxsparc.c (vx_read_register): Replace bzero with memset.
2279 * remote-vxmips.c (vx_read_register): Ditto.
2280 * remote-vx68.c (vx_read_register): Ditto.
2281 * gnu-nat.c (inf_validate_procs): Ditto.
2282
7a5dd6ee
JB
22832003-09-29 J. Brobecker <brobecker@gnat.com>
2284
2285 * infcall.c (call_function_by_hand): Fix build failure
2286 introduced in the previous change to this file.
2287
1fe43d45
AC
22882003-09-29 Andrew Cagney <cagney@redhat.com>
2289
2290 * NEWS: Mention Objective-C.
2291
e28a332c
JG
22922003-09-29 Jerome Guitton <guitton@act-europe.fr>
2293
2294 * arm-tdep.c (arm_make_prologue_cache): Use trad_frame_addr_p to
2295 test if the register has been saved on the stack.
2296 (arm_scan_prologue_cache): When analysing the instruction
2297 "str lr, [sp, #-4]", save the address where lr has been stored.
2298
9ff63c35
AC
22992003-09-28 Andrew Cagney <cagney@redhat.com>
2300
7f5f525d
AC
2301 * frame.c (frame_read_unsigned_register): Delete function.
2302 * frame.h (frame_read_unsigned_register): Delete declaration.
2303 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2304 get_frame_register_unsigned.
2305 (sparc_frame_saved_pc, sparc_pop_frame): Ditto.
2306 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2307 * d10v-tdep.c (d10v_print_registers_info): Ditto.
a8f4cde1 2308
7f5f525d
AC
2309 * frame.h (frame_read_register): Delete declaration.
2310 * frame.c (frame_read_register): Delete function.
2311 * arch-utils.c (legacy_register_to_value): Use get_frame_register.
2312 * sparc-tdep.c (sparc_fetch_pointer_argument): Ditto.
2313 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Ditto.
2314 * mips-tdep.c (mips_register_to_value): Ditto.
2315 * hppa-tdep.c (hppa_fetch_pointer_argument): Ditto.
2316 * d10v-tdep.c (d10v_print_registers_info): Ditto.
2317
2318 * frame.c (frame_read_signed_register): Delete function.
2319 (frame_read_unsigned_register): Update comments.
2320 * frame.h (frame_read_signed_register): Delete declaration.
2321 * h8300-tdep.c (h8300_print_register): Use
2322 get_frame_register_signed.
2323 * m68hc11-tdep.c (m68hc11_print_register): Ditto.
2324
9ff63c35
AC
2325 * config/pa/tm-hppa.h (DEPRECATED_VALUE_RETURNED_FROM_STACK):
2326 Rename VALUE_RETURNED_FROM_STACK.
2327 * infcmd.c (print_return_value): Update.
2328 * infcall.c (call_function_by_hand): Update.
2329
41d041d6
MK
23302003-09-28 Mark Kettenis <kettenis@gnu.org>
2331
2332 * i387-tdep.c (i387_supply_fsave, i387_supply_fxsave): Add
2333 regcache argument and reverse the order of the other two
2334 arguments. Remove local regcache variable. Determine
2335 architecture from REGCACHE. Update comments.
2336 * x86-64-tdep.c (x86_64_supply_fxsave): Add regcache argument and
2337 reverse the order of the other two arguments. Remove local
2338 regcache variable. Determine architecture from REGCACHE. Update
2339 comments.
2340 * i387-tdep.h (i387_supply_fsave, i387_supply_fxsave): Adjust
2341 prototypes. Update comments.
2342 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust prototype. Adjust
2343 comment.
2344 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
2345 Update.
2346 * go32-nat.c (fetch_register, go32_fetch_registers): Update.
2347 * i386-interix-nat.c (supply_fpregset): Update.
2348 * i386-linux-nat.c (supply_fpregset, supply_fpxregset): Update.
2349 * i386-nto-tdep.c (i386nto_supply_fpregset): Update.
2350 * i386gnu-nat.c (fetch_fpregs, supply_fpregset): Update.
2351 * i386bsd-nat.c (supply_fpregset, fetch_inferior_registers): Update.
2352 * i386nbsd-tdep.c (fetch_core_registers, fetch_elfcore_registers):
2353 Update.
2354 * i386obsd-tdep.c (fetch_core_registers): Update.
2355 * i386v4-nat.c (supply_fpregset): Update.
2356 * x86-64-linux-nat.c (supply_fpregset): Update.
2357 * x86-64-linux-tdep.c (fetch_core_registers): Update.
a8f4cde1 2358
1cb97e17
MK
23592003-09-27 Mark Kettenis <kettenis@gnu.org>
2360
5716833c
MK
2361 * i386-tdep.h: Put opaque declarations in alphabetical
2362 order. Remove spurious whitespace.
2363 (struct gdbarch_tdep): add st0_regnum and mm0_regnum members.
2364 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Remove prototypes.
2365 * i386-tdep.c (MM0_REGNUM): Remove define.
2366 (i386_mmx_regnum_p): Add gdbarch argument.
2367 (i386_sse_regnum_p, i386_mxcsr_regnum_p): Add gdbarch argument.
2368 Rewrite using new macro definitions for FPU/SSE registers.
2369 (i386_fp_regnum_p, i386_fpc_regnum_p): Rewrite using new macro
2370 definitions from i387-tdep.h.
2371 (i386_register_name): Update.
2372 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum): Update to use
2373 new macro definitions for FPU/SSE registers.
2374 (i386_extract_return_value): Determine whether floating-point
2375 registers are present by examining REGCACHE's architecture.
2376 (i386_store_return_value): Likewise. Use I386_MAX_REGISTER_SIZE
2377 instead of FPU_REG_RAW_SIZE. Use new macro definitions for
2378 FPU/SSE registers.
2379 (i386_register_type): Update.
2380 (i386_mmx_regnum_to_fp_regnum): Rewrite using new macro
2381 definitions for FPU registers. Use REGCACHE's architecture to
2382 determine the appropriate register numbers.
2383 (i386_pseudo_register_read, i386_pseudo_register_write,
2384 i386_register_reggroup_p): Update.
2385 (i386_gdbarch_init): Initialize TDEP->st0_regnum and
2386 TDEP->mm0_regnum.
2387 * i387-tdep.h (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM,
2388 I387_FTAG_REGNUM, I387_FISEG_REGNUM, I387_FIOFF_REGNUM,
2389 I387_FOSEG_REGNUM, I387_FOOFF_REGNUM, I387_FOP_REGNUM,
2390 I387_XMM0_REGNUM, I387_MXCSR_REGNUM): New defines.
2391 (i387_supply_fsave, i387_fill_fsave, i387_supply_fxsave,
2392 i387_fill_fxsave): Change type of fsave/fxsave argument from `char
2393 *' to `void *'.
2394 * i387-tdep.c (i387_print_float_info, fsave_offset, FSAVE_ADDR,
2395 i387_supply_fsave, i387_fill_fsave, fxsave_offset, FXSAVE_ADDR,
2396 i387_supply_fxsave, i387_fill_fxsave): Update to use new macro
2397 definitions for FPU/SSE registers.
2398 (FXSAVE_MXCSR_ADDR): New define.
2399 * x86-64-tdep.c (x86_64_init_abi): Override TDEP->st0_regnum and
2400 TDEP->mm0_regnum.
2401 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2402 (I387_ST0_REGNUM): Define.
2403
41d35cb0
MK
2404 * regcache.h (get_regcache_arch): New prototype.
2405 * regcache.c (get_regcache_arch): New function.
2406
54e74f72
MK
2407 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2408 whitespace.
2409
1cb97e17
MK
2410 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2411 Initialize using ARRAY_SIZE.
2412
0968aa8c
AC
24132003-09-27 Andrew Cagney <cagney@redhat.com>
2414
2415 * arch-utils.c (deprecated_init_frame_pc_default): Rename
2416 "init_frame_pc_default".
2417 * arch-utils.h (deprecated_init_frame_pc_default): Update.
2418 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2419 * vax-tdep.c (vax_gdbarch_init): Update.
2420 * v850-tdep.c (v850_gdbarch_init): Update.
2421 * sh64-tdep.c (sh64_gdbarch_init): Update.
2422 * s390-tdep.c (s390_gdbarch_init): Update.
2423 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2424 * mcore-tdep.c (mcore_gdbarch_init): Update.
2425 * h8300-tdep.c (h8300_gdbarch_init): Update.
2426 * cris-tdep.c (cris_gdbarch_init): Update.
2427 * config/pa/tm-hppa.h (DEPRECATED_INIT_FRAME_PC): Update.
2428
54c84734
MK
24292003-09-26 Mark Kettenis <kettenis@gnu.org>
2430
2431 * regset.h: New file.
2432 * Makefile.in (regset_h): Add.
2433
1b1d3794
AC
24342003-09-25 Andrew Cagney <cagney@redhat.com>
2435
2436 * frame.h (deprecated_frame_saved_regs): Rename
2437 get_frame_saved_regs.
2438 * cris-tdep.c, frame.c, h8300-tdep.c, hppa-tdep.c: Update.
2439 * mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2440 * ns32k-tdep.c, ppc-linux-tdep.c, rs6000-tdep.c: Update.
2441 * s390-tdep.c, sh64-tdep.c, stack.c: Update.
2442 * v850-tdep.c, vax-tdep.c, xstormy16-tdep.c: Update.
2443
e6beb428
AC
24442003-09-25 Andrew Cagney <cagney@redhat.com>
2445
2446 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2447 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2448 and Java.
2449 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2450 arm*-*-* do not use the new frame code.
2451
710122da
DC
24522003-09-25 David Carlton <carlton@kealia.com>
2453
2454 * c-exp.y: Remove 'register' declarations.
2455 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2456
79c2c32d
DC
24572003-09-25 David Carlton <carlton@kealia.com>
2458
2459 * c-exp.y: Include cp-support.h. Add qualified_type.
2460 (yylex): Delete nested type hack; add comments.
2461 * cp-namespace.c (cp_lookup_nested_type): New function.
2462 * cp-support.h: Declare cp_lookup_nested_type.
2463 * eval.c (evaluate_subexp_standard): Call value_aggregate_elt
2464 instead of value_struct_elt_for_reference.
2465 * valops.c: Include cp-support.h.
2466 (value_aggregate_elt): New function.
2467 (value_namespace_elt): Ditto.
2468 (value_struct_elt_for_reference): Make static.
2469 * value.h: Delete declaration of value_struct_elt_for_reference;
2470 add declaration for value_aggregate_elt.
2471 * Makefile.in (c-exp.tab.o): Depend on $(cp_support_h).
2472 (valops.o): Ditto.
2473
898c62f5
DJ
24742003-09-25 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * stack.c: Include "reggroups.h".
2477 (frame_info): Only display registers in all_reggroup.
2478 * Makefile.in (stack.o): Update dependencies.
2479
28cd8767
JG
24802003-09-25 Jerome Guitton <guitton@act-europe.fr>
2481
2482 * arm-tdep.c (arm_skip_prologue): Handle "sub ip, sp #n" and
2483 "add ip, sp #n" in the prologue.
2484 (arm_scan_prologue): Ditto.
2485
a4ab2b5d
JG
24862003-09-25 Jerome Guitton <guitton@act-europe.fr>
2487
2488 * MAINTAINERS (write after approval): Add myself.
2489
3f244638
AS
24902003-09-25 Andreas Schwab <schwab@suse.de>
2491
2492 * m68k-tdep.c: Include "dwarf2-frame.h".
2493 (m68k_gdbarch_init): Add the DWARF CFI frame unwinder.
2494 * Makefile.in (m68k-tdep.o): Update dependencies.
2495
1c0159e0
CV
24962003-09-25 Corinna Vinschen <vinschen@redhat.com>
2497
2498 * sh-tdep.c (struct frame_extra_info): Remove.
2499 (struct sh_frame_cache): New structure.
2500 (GET_SOURCE_REG): New macro extracting source register of an opcode.
2501 (GET_TARGET_REG): Ditto but target register.
2502 (GET_PUSHED_REG): Remove.
2503 (IS_MOV_ARG_TO_REG): New macro.
2504 (IS_MOV_ARG_TO_IND_R14): New macro.
2505 (IS_MOV_ARG_TO_IND_R14_WITH_DISP): New macro.
2506 (IS_MOVW_PCREL_TO_REG): New macro.
2507 (IS_MOVL_PCREL_TO_REG): New macro.
2508 (IS_SUB_REG_FROM_SP): New macro.
2509 (IS_ARG_MOV): Remove.
2510 (IS_MOV_TO_R14): Remove.
2511 (IS_RESTORE_FP): New macro.
2512 (IS_RTS): New macro.
2513 (IS_LDS): New macro.
2514 (IS_MOV_FP_SP): New macro.
2515 (IS_ADD_REG_TO_FP): New macro.
2516 (IS_ADD_IMM_FP): New macro.
2517 (sh_skip_prologue_hard_way): Remove.
2518 (sh_saved_pc_after_call): Remove.
2519 (sh_frame_chain): Remove.
2520 (sh_find_callers_reg): Remove.
a8f4cde1 2521 (sh_nofp_frame_init_saved_regs): Remove.
1c0159e0
CV
2522 (sh_fp_frame_init_saved_regs): Remove.
2523 (sh_init_extra_frame_info): Remove.
2524 (sh_analyze_prologue): New function.
2525 (sh_skip_prologue): Remove deprecated code. Rely on new function
2526 sh_analyze_prologue when after_prologue fails.
2527 (sh_frame_saved_pc): Remove.
2528 (sh_alloc_frame_cache): New function.
2529 (sh_frame_cache): Ditto.
2530 (sh_frame_prev_register): Ditto.
2531 (sh_frame_this_id): Ditto.
2532 (sh_frame_unwind): New structure defining the heuristic frame
2533 sniffer interface.
2534 (sh_frame_sniffer): New function.
2535 (sh_unwind_sp): Ditto.
2536 (sh_unwind_pc): Ditto.
2537 (sh_unwind_dummy_id): Ditto.
2538 (sh_frame_base_address): Ditto.
2539 (sh_frame_base): New structure defining new frame base code.
2540 (sh_in_function_epilogue_p): New function.
2541 (sh_gdbarch_init): Restructure and simplify to eliminate deprecated
2542 code and to call all new code instead. Initialize dwarf2 and
2543 heuristic frame sniffer.
2544
5f9769d1
PH
25452003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2546
a8f4cde1
RM
2547 * parser-defs.h (struct exp_descriptor): New definition, containing
2548 language-specific info for printing, prefixifying, dumping, and
5f9769d1
PH
2549 evaluating expressions.
2550 (exp_descriptor_standard): Declare new variable.
2551 (print_subexp): Make global and declare here (from expprint.c).
2552 (dump_subexp): Ditto.
2553 (dump_subexp_body_standard): Declare.
2554 (operator_length_standard): Declare.
2555 (op_name_standard): Declare.
2556 (print_subexp): Declare.
2557 (print_subexp_standard): Declare.
2558
2559 * language.h (struct language_defn): Add la_exp_desc field to hold
2560 pointer to table for language-specific operators.
2561 Remove evaluate_exp field, which is now in struct exp_descriptor.
a8f4cde1
RM
2562
2563 * parse.c (operator_length): Move most code to new
5f9769d1 2564 operator_length_standard function. Use language-specific information.
a8f4cde1 2565 (operator_length_standard): New function taking most code from
5f9769d1
PH
2566 operator_length.
2567 (exp_descriptor_standard): New constant.
a8f4cde1
RM
2568
2569 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
5f9769d1 2570 and OP_EXTENDED_LAST.
a8f4cde1
RM
2571
2572 * expprint.c (print_subexp): Use language-specific print_subexp.
5f9769d1
PH
2573 Make global; remove static declaration.
2574 Move most code to print_subexp_standard.
a8f4cde1 2575 (print_subexp_standard): New function, containing code formerly in
5f9769d1
PH
2576 print_subexp.
2577 (op_name): Add expression to argument signature.
a8f4cde1 2578 Use langauge-specific op_name.
5f9769d1
PH
2579 Move most code to op_name_standard.
2580 (op_name_standard): New function, containing code formerly in op_name.
2581 (dump_subexp): Use new version of op_name function.
2582 Use language-specific dump_subexp_body, and move most existing code to
2583 dump_subexp_body_standard.
2584 (dump_raw_expression): Use new op_name interface.
2585 (dump_subexp_body): Move most code to dump_subexp_body_standard.
2586 (dump_subexp_body_standard): New function, containing code formerly
2587 in dump_subexp_body.
a8f4cde1 2588
5f9769d1
PH
2589 * language.c (unknown_language): Add default la_exp_desc field and
2590 remove evaluate_exp field.
2591 (auto_language): Ditto.
2592 (local_language): Ditto.
2593 * f-lang.c (f_language_defn): Ditto.
2594 * c-lang.c (c_language_defn): Ditto.
2595 (cplus_language_defn): Ditto.
2596 (asm_language_defn): Ditto.
2597 (minimal_language_defn): Ditto.
2598 * p-lang.c (pascal_language_defn): Ditto.
2599 * m2-lang.c (m2_language_defn): Ditto.
2600 * objc-lang.c (objc_language_defn): Ditto.
a8f4cde1
RM
2601
2602 * jv-lang.c (exp_descriptor_java): New variable, containing
5f9769d1
PH
2603 Java-specific expression evaluator.
2604 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2605 field.
a8f4cde1 2606 * scm-lang.c (exp_descriptor_scm): New variable, containing
5f9769d1
PH
2607 Scheme-specific expression evaluator.
2608 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2609 field.
2610 * objc-lang.c (print_object_command): Take evaluate_exp from the
2611 la_exp_desc field.
a8f4cde1 2612
5f9769d1 2613 * Makefile.in (eval.o): Add dependency on parser-defs.h.
a8f4cde1
RM
2614
2615 * eval.c: Include parser-defs.h for the full declaration of
5f9769d1
PH
2616 la_exp_desc's type.
2617 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
a8f4cde1 2618
24daaebc
PH
26192003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2620
2621 * parser-defs.h (operator_length): Declare.
a8f4cde1 2622
24daaebc
PH
2623 * parse.c (length_of_subexp): Use operator_length to get operator
2624 lengths and arities for operators.
2625 Move most code to new operator_length function.
a8f4cde1 2626 (operator_length): New function absorbing most code from
24daaebc
PH
2627 length_of_subexp.
2628 (prefixify_subexp): Remove large case and use operator_length instead.
2629 (parse_exp_1): Use renamings:
a8f4cde1 2630 dump_prefix_expression => dump_raw_expression and
24daaebc 2631 dump_postfix_expression => dump_prefix_expression.
a8f4cde1 2632
24daaebc
PH
2633 * expression.h (dump_prefix_expression): Rename to ...
2634 (dump_raw_expression): New name.
2635 (dump_postfix_expression): Rename to ...
2636 (dump_prefix_expression): New name.
a8f4cde1 2637
24daaebc
PH
2638 * expprint.c (dump_subexp): Make global. Add comment.
2639 Move most existing code to dump_subexp_body.
2640 (dump_subexp_body): New function.
2641 (dump_prefix_expression): Rename to dump_raw_expression.
a8f4cde1 2642 Remove attempt to print the expression via print_expression: it can't
24daaebc
PH
2643 work before the expression is prefixified.
2644 (dump_raw_expression): Renamed from dump_prefix_expression.
a8f4cde1 2645 (dump_postfix_expression): Rename to dump_prefix_expression, since
24daaebc 2646 that's what it does.
a8f4cde1 2647 Remove 'note' parameter, since this routine must be used on
24daaebc
PH
2648 prefixified expression.
2649 (dump_prefix_expression): Renamed from dump_postfix_expression.
a8f4cde1 2650
8c2957c4
JB
26512003-09-22 Jim Blandy <jimb@redhat.com>
2652
2653 * dwarf2read.c (read_array_type): When building the type for an
2654 array of unspecified length, make sure to choose the upper bound
2655 so that the array's total length comes out to be zero --- that's
2656 how we represent such arrays.
2657
592e3010
MC
26582003-09-22 Michael Chastain <mec@shout.net>
2659
2660 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2661
365c70b1
JJ
26622003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2663
2664 * top.c (quit_force): Fix indirect call to quit_target so
2665 a struct qt_args pointer is passed.
2666
5d6eb653
AC
26672003-09-22 Andrew Cagney <cagney@redhat.com>
2668
2669 * arch-utils.h (init_frame_pc_noop): Delete declaration.
2670 * arch-utils.c (init_frame_pc_noop): Delete function.
2671 * mn10300-tdep.c (mn10300_gdbarch_init): Do not set
2672 "init_frame_pc".
2673 * mips-tdep.c (mips_gdbarch_init): Ditto.
2674 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
2675 * config/sparc/tm-sparc.h (init_frame_pc_noop): Delete
2676 declaration.
2677 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2678 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2679 declaration.
2680 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2681
b222a67f
AG
26822003-09-22 Anthony Green <green@redhat.com>
2683
2684 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2685 declaration.
2686
d5b5ac79
AC
26872003-09-20 Andrew Cagney <cagney@redhat.com>
2688
deafb061
AC
2689 * breakpoint.c: Eliminate ARGSUSED.
2690 * buildsym.c, cli/cli-cmds.c, cli/cli-script.c: Ditto.
2691 * coffread.c, corelow.c, dwarf2read.c, event-top.c: Ditto.
2692 * exec.c, gcore.c, hpux-thread.c, infcmd.c, inflow.c: Ditto.
2693 * infrun.c, inftarg.c, maint.c, ocd.c, printcmd.c: Ditto.
2694 * procfs.c, regcache.c, remote-rdi.c, remote-sds.c: Ditto.
2695 * remote.c, sol-thread.c, source.c, stabsread.c: Ditto.
2696 * stack.c, symfile.c, target.c, top.c, typeprint.c: Ditto.
2697 * utils.c, v850ice.c, valprint.c, values.c, win32-nat.c: Ditto.
2698 * wince.c, remote-vx.c: Ditto.
2699
d5b5ac79
AC
2700 * cli/cli-script.c: Remove "register" attributes.
2701 * config/pa/tm-hppa.h: Ditto.
2702 * cli/cli-decode.c: Ditto.
2703 * cli/cli-cmds.c: Ditto.
2704
c6316faa
AC
27052003-09-19 Andrew Cagney <cagney@redhat.com>
2706
2707 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2708 DEPRECATED_NPC_REGNUM.
2709 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2710
f4f99b11
CF
27112003-09-19 Christopher Faylor <cgf@redhat.com>
2712
2713 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2714
1708f284
JB
27152003-09-19 Jim Blandy <jimb@redhat.com>
2716
2717 * macrotab.c (macro_include): Use the correct comparison to find
2718 the appropriate place for this inclusion in the list.
2719
b9fbf434
AC
27202003-09-19 Andrew Cagney <cagney@redhat.com>
2721
2722 * config/pa/nm-hppah.h (NEED_TEXT_START_END): Delete.
2723 (DEPRECATED_HPUX_TEXT_END): Define.
2724 (deprecated_hpux_text_end): Declare.
2725 (struct target_ops): Declare opaque.
2726 * hppah-nat.c (text_end): Make static.
2727 (deprecated_hpux_text_end): New function.
2728 * exec.c (text_end): Delete global variable.
2729 (NEED_TEXT_START_END): Do not define.
2730 (exec_file_attach): Replace code computing "text_end" code with
2731 call to DEPRECATED_HPUX_TEXT_END.
2732
5b03f266
AC
27332003-09-19 Andrew Cagney <cagney@redhat.com>
2734
2735 * utils.c (align_up, align_down): New functions.
2736 * defs.h (align_up, align_down): Declare.
2737 * ppc-sysv-tdep.c (align_up, align_down): Delete functions.
2738 * s390-tdep.c: Replace "round_up" and "round_down" with "align_up"
2739 and "align_down".
2740 (round_up, round_down): Delete functions.
2741 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2742 "align_down".
2743 (ROUND_DOWN, ROUND_UP): Delete macros.
2744 (mips_dump_tdep): Do not print "ROUND_UP" or "ROUND_DOWN".
2745 * h8300-tdep.c: Replace "round_up" and "round_down" with
2746 "align_up" and "align_down".
2747 (round_up, round_down): Delete macros.
2748 * frv-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
2749 "align_down".
2750 (ROUND_UP, ROUND_DOWN): Delete macros.
2751
51db5742
JB
27522003-09-18 J. Brobecker <brobecker@gnat.com>
2753
2754 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2755 hard-coded constant. Use the proper machine name instead.
2756
77949794
AC
27572003-09-17 Andrew Cagney <cagney@redhat.com>
2758
2759 * sparc-tdep.c (legacy_register_name): Delete function.
2760 * mips-tdep.c (mips_dump_tdep): Do not print REGISTER_NAME.
2761 (mips_gdbarch_init): Refer to MIPS_REGISTER_NAME in comments.
2762 * infcmd.c (gdb_register_name): Delete variable.
2763 * gdbarch.sh (SDB_REG_TO_REGNUM): Delete reference to
2764 REGISTER_NAME and "tm.h".
2765 * gdbarch.h, gdbarch.c: Regenerate.
2766 * dpx2-nat.c (regmap): Refer to REGISTER_NAME and not
2767 REGISTER_NAMES in comments.
2768 * remote-st.c (get_reg_name), i386b-nat.c (tregmap): Ditto.
2769 * m68klinux-nat.c (regmap): Ditto.
2770
b55c33cc
JB
27712003-09-17 Jim Blandy <jimb@redhat.com>
2772
2773 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2774
957e27ac
AC
27752003-09-17 Andrew Cagney <cagney@redhat.com>
2776
2777 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2778 (ppcnbsd_init_abi): Set "use_struct_convention" to
2779 "ppcnbsd_use_struct_convention".
2780
192cb3d4
MK
27812003-09-17 Mark Kettenis <kettenis@gnu.org>
2782
2783 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2785 (stabs_argument_has_addr): New architecture method.
2786 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2787 * arch-utils.c: Include "buildsym.h".
2788 (default_stabs_argument_has_addr): New function.
2789 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2790 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2791
efe59759
AC
27922003-09-17 Andrew Cagney <cagney@redhat.com>
2793
2794 * gdbarch.sh (DEPRECATED_NPC_REGNUM): Deprecate NPC_REGNUM.
2795 * gdbarch.h, gdbarch.c: Regenerate.
2796 * core-sol2.c, hppa-tdep.c, lynx-nat.c, procfs.c: Update.
2797 * regcache.c, remote-vxsparc.c, sparc-linux-nat.c: Update.
2798 * sparc-nat.c, sparc-tdep.c, sparc64-tdep.c: Update.
2799 * sparcnbsd-tdep.c: Update.
a8f4cde1 2800
62700349
AC
28012003-09-17 Andrew Cagney <cagney@redhat.com>
2802
2803 * gdbarch.sh (DEPRECATED_REGISTER_BYTE): Rename REGISTER_BYTE.
2804 * gdbarch.h, gdbarch.c: Regenerate.
2805 * arm-linux-tdep.c, core-sol2.c, cris-tdep.c: Update.
2806 * d10v-tdep.c, frame.c: Update.
2807 * hppa-tdep.c, hppab-nat.c, hppah-nat.c, hppam3-nat.c: Update.
2808 * hpux-thread.c, i386gnu-nat.c, ia64-aix-nat.c: Update.
2809 * ia64-linux-nat.c, irix5-nat.c, lynx-nat.c, m68knbsd-nat.c: Update.
2810 * mcore-tdep.c, mips-linux-tdep.c, mips-tdep.c: Update.
2811 * mipsv4-nat.c, mn10300-tdep.c, ns32k-tdep.c: Update.
2812 * ns32knbsd-nat.c, ppc-bdm.c, regcache.c, remote-sds.c: Update.
2813 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Update.
2814 * remote.c, rs6000-tdep.c, s390-tdep.c, sh64-tdep.c: Update.
2815 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, v850-tdep.c: Update.
2816 * v850ice.c, vax-tdep.c, xstormy16-tdep.c: Update.
2817 * config/m68k/tm-cisco.h, config/m68k/tm-delta68.h: Update.
2818 * config/pa/nm-hppah.h: Update.
2819
b9ff3018
AC
28202003-09-16 Andrew Cagney <cagney@redhat.com>
2821
2822 * ppc-linux-tdep.c (ppc_linux_init_abi): Set the 32 bit
2823 "use_struct_convention" to "ppc_linux_use_struct_convention".
2824 (ppc_linux_use_struct_convention): New function.
2825 * rs6000-tdep.c (rs6000_use_struct_convention): New function.
2826 (rs6000_gdbarch_init): For AIX, set "use_struct_convention" to
2827 "rs6000_use_struct_convention".
2828 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Delete
2829 declaration.
2830 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2831 Delete function.
2832
aa1ee363
AC
28332003-09-16 Andrew Cagney <cagney@redhat.com>
2834
2835 * buildsym.c: Remove more occurances of "register".
2836 * coffread.c, dbxread.c, dcache.c, dwarf2read.c: Ditto.
2837 * environ.c, eval.c, f-valprint.c, findvar.c: Ditto.
2838 * gdbtypes.c, gnu-v2-abi.c, h8300-tdep.c, hppa-tdep.c: Ditto.
2839 * infcmd.c, mdebugread.c, minsyms.c, mips-tdep.c: Ditto.
2840 * printcmd.c, remote-vx.c, sh-stub.c, sh-tdep.c: Ditto.
2841 * sh64-tdep.c, source.c, stabsread.c, stack.c: Ditto.
2842 * standalone.c, symfile.c, symmisc.c, symtab.c: Ditto.
2843 * utils.c, valops.c, values.c, xcoffread.c: Ditto.
2844
f2ea0907
CV
28452003-09-16 Corinna Vinschen <vinschen@redhat.com>
2846
2847 * sh-tdep.h (struct gdbarch_tdep): Remove. Change all register
2848 numbers to enumeration values.
2849 * sh-tdep.c: Accomodate above change.
2850 (SH_NUM_REGS): Rename from SH_DEFAULT_NUM_REGS.
2851 (NUM_PSEUDO_REGS_SH_MEDIA): Remove (sh5 only).
2852 (NUM_PSEUDO_REGS_SH_COMPACT): Remove (sh5 only).
2853 (IS_ADD_IMM_SP): Rename from IS_ADD_SP.
2854 (IS_FPUSH): Rename from IS_FMOV.
2855 (sh_extract_struct_value_address): Remove useless comment.
2856 (sh_dsp_register_sim_regno): Use register values from sh-tdep.h
2857 instead of own local values.
2858 (sh_dump_tdep): Remove.
2859 (_initialize_sh_tdep): Accomodate removing sh_dump_tdep.
2860 * sh3-rom.c (sh3_supply_register): Accomodate sh-tdep.h changes.
2861
1c704f11
AC
28622003-09-15 Andrew Cagney <cagney@redhat.com>
2863
2864 * doublest.c (convert_floatformat_to_doublest): No longer need to
2865 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2866
ac79b88b
DJ
28672003-09-15 Daniel Jacobowitz <drow@mvista.com>
2868
2869 * values.c (unpack_double): Call floatformat_is_valid.
2870
1c671366
MK
28712003-09-15 Mark Kettenis <kettenis@gnu.org>
2872
de5227fb
MK
2873 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2874 ps_strings into a long.
2875
1c671366
MK
2876 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2877 _initialize_am64fbsd_nat.
2878
a604369a
KB
28792003-09-15 Kevin Buettner <kevinb@redhat.com>
2880
2881 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2882 associated with DW_AT_ranges attribute is out of bounds.
2883
b3cacbee
DL
28842003-09-15 David Lecomber <dsl@sources.redhat.com>
2885
2886 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2887
d0f37bb2
MC
28882003-09-14 Michael Chastain <mec@shout.net>
2889
2890 * config/m68k/nm-apollo68v.h: Delete.
2891 * config/m68k/xm-apollo68v.h: Delete.
2892
69517000
AC
28932003-09-14 Andrew Cagney <cagney@redhat.com>
2894
2895 * rs6000-tdep.c (rs6000_push_dummy_call): Fix typos.
2896 * dcache.c: Update copyrights and descriptions.
2897 * scm-exp.c, ia64-aix-nat.c, hppam3-nat.c: environ.c: Ditto.
2898
ef8b349d
AC
28992003-09-14 Andrew Cagney <cagney@redhat.com>
2900
2901 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2902 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2903
52f0bd74
AC
29042003-09-14 Andrew Cagney <cagney@redhat.com>
2905
2906 * alpha-nat.c: Remove some occurances of "register".
2907 * alpha-tdep.c, arm-tdep.c, blockframe.c, breakpoint.c: Ditto.
2908 * buildsym.c, c-typeprint.c, c-valprint.c, coffread.c: Ditto.
2909 * corefile.c, cp-support.c, cp-valprint.c, cris-tdep.c: Ditto.
2910 * dbxread.c, dcache.c, dwarf2read.c, elfread.c: Ditto.
2911 * environ.c, eval.c, event-top.c, f-typeprint.c: Ditto.
2912 * f-valprint.c, findvar.c, frame.c, gdbtypes.c: Ditto.
2913 * h8300-tdep.c, hppa-tdep.c, hppab-nat.c, hppah-nat.c: Ditto.
2914 * hppam3-nat.c, hpread.c, ia64-aix-nat.c, ia64-linux-nat.c: Ditto.
2915 * infcall.c, infcmd.c, inflow.c, infptrace.c, infrun.c: Ditto.
2916 * infttrace.c, irix5-nat.c, jv-typeprint.c: Ditto.
2917 * jv-valprint.c, m68k-tdep.c, m68klinux-nat.c, main.c: Ditto.
2918 * mdebugread.c, minsyms.c, mips-linux-tdep.c: Ditto.
2919 * mips-nat.c, mips-tdep.c, mipsread.c, mipsv4-nat.c: Ditto.
2920 * ns32k-tdep.c, objfiles.c, p-typeprint.c: Ditto.
2921 * p-valprint.c, ppc-linux-nat.c, printcmd.c: Ditto.
2922 * remote-mips.c, remote-vx.c, rs6000-nat.c: Ditto.
2923 * rs6000-tdep.c, scm-exp.c, sh-tdep.c, sh64-tdep.c: Ditto.
2924 * solib.c, somread.c, source.c, sparc-tdep.c: Ditto.
2925 * stabsread.c, stack.c, standalone.c, symfile.c: Ditto.
2926 * symmisc.c, symtab.c, top.c, tracepoint.c: Ditto.
2927 * typeprint.c, utils.c, valarith.c, valops.c: Ditto.
2928 * values.c, vax-tdep.c, xcoffread.c: Ditto.
a8f4cde1 2929
4a4b3fed
AC
29302003-09-13 Andrew Cagney <cagney@redhat.com>
2931
2932 * config/pa/tm-hppa64.h (struct frame_info): Declare opaque.
2933 * ppc-tdep.h (struct regcache): Declare opaque.
2934 * objfiles.h (struct objfile_data): Declare opaque.
2935 * cp-support.h (struct objfile): Declare opaque.
2936 * linux-nat.h (target_waitstatus): Declare opaque.
2937
2110b94f
MK
29382003-09-14 Mark Kettenis <kettenis@gnu.org>
2939
1c671366
MK
2940 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Add comment.
2941 (stabs_argument_has_addr): New architecture method.
2942 * arch-utils.h (default_stabs_argument_has_addr): New prototype.
2943 * arch-utils.c: Include "buildsym.h".
2944 (default_stabs_argument_has_addr): New function.
2945 * stabsread.c (define_symbol): Use stabs_argument_has_addr
2946 instead of DEPRECATED_REG_STRUCT_HAS_ADDR.
2947
2110b94f
MK
2948 * cris-tdep.c (cris_gdbarch_init): Set
2949 deprecated_reg_struct_has_addr instead of reg_struct_has_addr.
2950 * hppa-tdep.c (hppa_gdbarch_init): Likewise.
2951 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2952 * mips-tdep.c (mips_gdbarch_init): Likewise.
2953 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2954 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2955
48436ce6
AC
29562003-09-13 Andrew Cagney <cagney@redhat.com>
2957
2958 * values.c (using_struct_return): Delete "function" and "funcaddr"
2959 parameters.
2960 * value.h (using_struct_return): Update declaration.
2961 * infcmd.c (finish_command_continuation): Update.
2962 (finish_command): Update.
2963 * infcall.c (call_function_by_hand): Update.
2964 * eval.c (evaluate_subexp_standard): Update.
2965
403d9909
CF
29662003-09-13 Christopher Faylor <cgf@redhat.com>
2967
2968 * win32-nat.c: Just rely on CONTEXT_EXTENDED_REGISTER being defined for
2969 SSE registers since gdb will not operate correctly without this.
2970 Restore include file ordering munged in previous change.
2971 * config/i386/tm-cygwin.h: Remove HAVE_SSE_REGS define.
2972
ebf7d56b
MK
29732003-09-13 Mark Kettenis <kettenis@gnu.org>
2974
8e823e25
MK
2975 * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Renamed from
2976 REG_STRUCT_HAS_ADDR.
2977 * gdbarch.c, gdbarch.h: Updated.
2978 * infcall.c (call_function_by_hand): Update.
2979 * stabsread.c (define_symbol): Updated.
a8f4cde1 2980
ebf7d56b
MK
2981 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2982
d3f13f72
CF
29832003-09-12 Christopher Faylor <cgf@redhat.com>
2984
2985 * win32-nat.c: Reorganize so that defines used by target headers are
2986 actually defined by the system headers.
2987 * config/i386/tm-cygwin.h: Check for CONTEXT_EXTENDED_REGISTERS rather
2988 than HAVE_CONTEXT_EXTENDED_REGISTERS, since the latter actually exists.
2989
14f75137
JB
29902003-09-12 Jim Blandy <jimb@redhat.com>
2991
d646061f
JB
2992 * dbxread.c (read_dbx_symtab): Don't report an internal error if
2993 the file has no .data, .bss, or .rodata sections. Instead wait
2994 until we see a variable alleged to live in one of those sections.
2995
2a13f9bc
JB
2996 * dbxread.c (read_dbx_symtab): If we have no .data section and no
2997 .bss section, presume that any variables we find live in the
2998 .rodata section.
2999
4f49b26b
JB
3000 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3001 offsets for global and static variables.
3002
14f75137
JB
3003 * dbxread.c (read_dbx_symtab): The N_DATA and N_DATA | N_EXT
3004 symbol types are, by definition, in the .data section, so it is
3005 correct to use SECT_OFF_DATA (objfile) here, not data_sect_index.
3006 If there is no .data section, there should be no N_DATA or N_DATA
3007 | N_EXT symbols.
3008
212c460c
MK
30092003-09-12 Mark Kettenis <kettenis@gnu.org>
3010
3011 * amd64fbsd-tdep.c: Fix sigtramp recognition.
3012 (amd64fbsd_sigcontext_addr): Rewrite.
3013 (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end): Initialize
3014 with correct values.
3015 (amd64fbsd_sc_reg_offset): Initialize with correct values.
3016 (amd64fbsd_init_abi): Fix typo.
3017
68856ea3
AC
30182003-09-12 Andrew Cagney <cagney@redhat.com>
3019
3020 * ppc-sysv-tdep.c (align_up, align_down): Replace "round2" macro.
3021 (ppc_sysv_abi_push_dummy_call): Rewrite, use a two pass loop.
3022
627b3ba2
AC
30232003-09-12 Andrew Cagney <cagney@redhat.com>
3024
3025 * objfiles.h (struct entry_info): Deprecate "entry_file_lowpc" and
3026 "entry_file_highpc". Update comments.
3027 * defs.h (deprecated_inside_entry_file): Rename
3028 "inside_entry_file".
3029 * blockframe.c (deprecated_inside_entry_file): Rename
3030 "inside_entry_file".
3031 * frame.c (get_prev_frame): Update. Use if 0 instead of #if 0.
3032 * vax-tdep.c (vax_frame_chain): Update.
3033 * sh64-tdep.c (sh64_frame_chain): Update.
3034 * sh-tdep.c (sh_frame_chain): Update.
3035 * rs6000-tdep.c (rs6000_frame_chain): Update.
3036 * ns32k-tdep.c (ns32k_frame_chain): Update.
3037 * mips-tdep.c (mips_frame_chain): Update.
3038 * m68hc11-tdep.c (m68hc11_frame_this_id): Update.
3039 * m32r-tdep.c (m32r_frame_this_id): Update.
3040 * i386-interix-tdep.c (i386_interix_frame_chain_valid): Update.
3041 * frv-tdep.c (frv_frame_this_id): Update.
3042 * d10v-tdep.c (d10v_frame_this_id): Update.
3043 * cris-tdep.c (cris_frame_chain): Update.
3044 * blockframe.c (legacy_frame_chain_valid): Update.
3045 * avr-tdep.c (avr_frame_this_id): Update.
3046 * arm-tdep.c (arm_prologue_this_id): Update.
3047 * alpha-tdep.c (alpha_heuristic_frame_this_id): Update.
3048 * objfiles.c (objfile_relocate): Update.
3049 * mipsread.c (mipscoff_symfile_read): Update.
3050 (mipscoff_symfile_read): Update.
3051 * mdebugread.c (parse_partial_symbols): Update.
3052 * dwarfread.c (read_file_scope): Update.
3053 * dwarf2read.c (read_file_scope): Update.
3054 * dbxread.c (read_dbx_symtab): Update.
3055 (read_dbx_symtab): Update.
3056 * coffread.c (complete_symtab): Update.
3057
b0abbc58
JJ
30582003-09-12 Jeff Johnston <jjohnstn@redhat.com>
3059
3060 * top.c (quit_target): New static helper function.
3061 (quit_force): Moved code to quit_target(). Call quit_target()
3062 via catch_errors() to catch errors during quit.
3063
a1632d59
DC
30642003-09-11 David Carlton <carlton@kealia.com>
3065
3066 * buildsym.c (finish_block): Use allocate_block to allocate the
3067 block.
3068 * mdebugread.c (new_block): Add FIXME.
3069
5c4e30ca
DC
30702003-09-11 David Carlton <carlton@kealia.com>
3071
3072 * gdbtypes.h: Add TYPE_CODE_NAMESPACE.
3073 * gdbtypes.c (init_type): Handle TYPE_CODE_NAMESPACE.
3074 (recursive_dump_type): Ditto.
3075 * printcmd.c (print_formatted): Ditto.
3076 * typeprint.c (print_type_scalar): Ditto.
3077 * c-typeprint.c (c_type_print_varspec_prefix): Ditto.
3078 (c_type_print_varspec_suffix, c_type_print_base): Ditto.
3079 * cp-support.h: Declare cp_check_possible_namespace_symbols,
3080 maint_cplus_cmd_list.
3081 * cp-support.c: Make maint_cplus_cmd_list extern.
3082 * cp-namespace.c: Include objfiles.h, gdbtypes.h, dictionary.h,
3083 command.h.
3084 (lookup_symbol_file): Look in possible namespace blocks when
3085 appropriate.
3086 (initialize_namespace_symtab): New.
3087 (get_possible_namespace_block, free_namespace_block)
3088 (check_possible_namespace_symbols)
3089 (check_possible_namespace_symbols_loop)
3090 (check_one_possible_namespace_symbol)
3091 (lookup_possible_namespace_symbol, maintenance_cplus_namespace)
3092 (_initialize_cp_namespace): Ditto.
3093 * block.h: Declare allocate_block.
3094 * block.c (allocate_block): New.
3095 * jv-lang.c (get_java_class_symtab): Allocate blocks via
3096 allocate_block.
3097 * symfile.h: Update declaration of add_psymbol_to_list.
3098 * symfile.c (add_psymbol_to_list): Return the partial symbol in
3099 question.
3100 * dwarf2read.c (dwarf2_build_psymtabs_hard): Add argument to
3101 scan_partial_symbols_call.
3102 (scan_partial_symbols): Add NAMESPACE argument; update calls to
3103 helper functions.
3104 (add_partial_symbol): If necessary, scan mangled names for names
3105 of namespaces.
3106 (add_partial_namespace): Add NAMESPACE argument; generate partial
3107 symbols associated to namespaces.
3108 (add_partial_enumeration): Add NAMESPACE argument.
3109 (new_symbol): Allow namespace syms.
3110 (read_namespace): Generate namespace syms.
3111 * objfiles.h: Add opaque declaration of struct symtab.
3112 (struct objfile): Add cp_namespace_symtab member.
3113 * objfiles.c (allocate_objfile): Set
3114 objfile->cp_namespace_symtab.
3115 * Makefile.in (cp-namespace.o): Depend on objfiles_h, gdbtypes_h,
3116 dictionary_h, command_h.
3117
33a7c2fc
AC
31182003-09-11 Andrew Cagney <cagney@redhat.com>
3119
3120 * rs6000-tdep.c (rs6000_push_dummy_call): Use
3121 regcache_raw_write_signed to set SP_REGNUM, move the operation to
3122 near the function's end.
3123 (rs6000_gdbarch_init): Do not set "deprecated_dummy_write_sp".
3124 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use
3125 regcache_raw_write_signed to set SP_REGNUM.
3126
63cd24fe
EZ
31272003-09-11 Elena Zannoni <ezannoni@redhat.com>
3128
3129 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3130 orig_addrs is set up properly.
3131
f27dd7fd
AC
31322003-09-11 Andrew Cagney <cagney@redhat.com>
3133
3134 * gdbarch.sh (DEPRECATED_STACK_ALIGN): Rename STACK_ALIGN.
3135 * gdbarch.h, gdbarch.c: Re-generate.
3136 * infcall.c (call_function_by_hand): Update.
3137 * hppa-tdep.c (hppa_push_arguments): Update.
3138 * ada-lang.c (place_on_stack): Update.
3139 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3140 * sparc-tdep.c (sparc_gdbarch_init): Update.
3141 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3142 * hppa-tdep.c (hppa_gdbarch_init): Update.
3143 * h8300-tdep.c (h8300_gdbarch_init): Delete comment refering to
3144 stack_align.
3145
f630a401
DJ
31462003-09-11 Daniel Jacobowitz <drow@mvista.com>
3147
3148 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3149 register do need a frame.
3150
0ddabb4c
AC
31512003-09-11 Andrew Cagney <cagney@redhat.com>
3152
3153 Since the IRIX 4 configuration was forcing K&R mode it hasn't been
3154 buildable since GDB 5.0.
3155 * NEWS: Mention that IRIX 3 and IRIX 4 support were removed.
3156 * configure.host: Delete "mips-sgi-irix3*" and "mips-sgi-irix4*".
3157 * configure.tgt: Delete "mips*-sgi-*" a.k.a. irix3.
3158 * irix4-nat.c: Delete file.
3159 * config/mips/irix4.mh: Delete file.
3160 * config/mips/irix3.mh: Delete file.
3161 * config/mips/irix3.mt: Delete file.
3162 * config/mips/tm-irix3.h: Delete file.
3163 * config/mips/nm-irix3.h: Delete file.
3164 * config/mips/xm-irix3.h: Delete file.
3165 * config/mips/nm-irix4.h: Delete file.
3166 * config/mips/xm-irix4.h: Delete file.
3167 * config/mips/tm-irix5.h: Inline contents of "tm-irix3.h".
3168
fde2cceb
JB
31692003-09-10 J. Brobecker <brobecker@gnat.com>
3170
3171 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3172 * Makefile.in (hppa-tdep.o): Update dependencies.
3173
66f667f5
JW
31742003-09-10 James E Wilson <wilson@specifixinc.com>
3175
ef5fd69f
JW
3176 * MAINTAINERS: Change my e-mail address. Move to paper trail
3177 section.
66f667f5 3178
53e8aaea
KB
31792003-09-10 Kevin Buettner <kevinb@redhat.com>
3180
3181 * MAINTAINERS (frv): New ISA entry.
3182
dcc6aaff
KB
31832003-09-10 Kevin Buettner <kevinb@redhat.com>
3184
3185 * frv-tdep.c (dis-asm.h): Include.
3186 * Makefile.in (frv-tdep.o): Update dependencies.
3187
932644f0
JJ
31882003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3189
3190 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3191 Fix typo for high range of floating registers.
3192
91c24f0a
DC
31932003-09-09 David Carlton <carlton@kealia.com>
3194
3195 * dwarf2read.c (dwarf2_build_psymtabs_hard): Move lowpc and
3196 highpc initialization here out of scan_partial_symbols.
3197 (scan_partial_symbols): Restructure into a recursive version,
3198 calling add_partial_namespace and add_partial_enumeration when
3199 appropriate.
3200 (add_partial_namespace): New.
3201 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3202
c9263853
AC
32032003-09-09 Andrew Cagney <cagney@redhat.com>
3204
e56a0ecc
AC
3205 * rs6000-tdep.c (ppc_push_return_address): Delete function.
3206 (rs6000_push_dummy_call): Set LR to BP_ADDR.
3207 (rs6000_gdbarch_init): Do not set deprecated_push_return_address.
3208 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3209
794a477a
AC
3210 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3211 (rs6000_push_dummy_call): Set the "TOC" register.
3212
c9263853
AC
3213 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set the deprecated
3214 methods "max_register_raw_size", "max_register_virtual_size" or
3215 "register_virtual_size".
3216
afa7d0b2
ILT
32172003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3218
3219 * MAINTAINERS: Update my e-mail address.
3220
7a41266b
AC
32212003-09-09 Andrew Cagney <cagney@redhat.com>
3222
3223 * rs6000-tdep.c (rs6000_store_struct_return): Delete function.
3224 (rs6000_push_dummy_call): Store the struct return address.
3225 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Ditto.
3226
77b2b6d4
AC
32272003-09-09 Andrew Cagney <cagney@redhat.com>
3228
3229 * ppc-tdep.h (ppc_sysv_abi_push_dummy_call): Replace
3230 "ppc_sysv_abi_push_arguments".
3231 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Replace
3232 "ppc_sysv_abi_push_arguments".
3233 * rs6000-tdep.c (rs6000_gdbarch_init): Set "push_dummy_call"
3234 instead of "push_arguments".
3235 (rs6000_push_dummy_call): Replace "rs6000_push_arguments".
3236
e8a7b686
AC
32372003-09-09 Andrew Cagney <cagney@redhat.com>
3238
3239 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3240 instead of CALL_DUMMY_ADDRESS.
3241
f86f5ca3
PH
32422003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3243
3244 * p-lang.c: Eliminate "register".
3245 * c-lang.c: Ditto.
3246 * expprint.c: Ditto.
3247 * f-lang.c: Ditto.
3248 * jv-lang.c: Ditto.
3249 * language.c: Ditto.
3250 * m2-lang.c: Ditto.
3251 * parse.c: Ditto.
3252 * scm-lang.c: Ditto.
3253 * objc-lang.c: Ditto.
3254
83ee270e
NC
32552003-09-09 Nick Clifton <nickc@redhat.com>
3256
3257 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3258
a89aa300
AC
32592003-09-04 Andrew Cagney <cagney@redhat.com>
3260
3261 * avr-tdep.c: Include "dis-asm.h".
3262 * cris-tdep.c: Include "dis-asm.h".
3263 (cris_delayed_get_disassembler): Use "struct disassemble_info"
3264 instead of corresponding typedef.
3265 * h8300-tdep.c: Include "dis-asm.h".
3266 * ia64-tdep.c: Include "dis-asm.h".
3267 * i386-tdep.c: Include "dis-asm.h".
3268 (i386_print_insn): Use "struct disassemble_info" instead of
3269 corresponding typedef.
3270 * m68k-tdep.c: Include "dis-asm.h".
3271 * mcore-tdep.c: Include "dis-asm.h".
3272 * mips-tdep.c: Include "dis-asm.h".
3273 (gdb_print_insn_mips): Make static, use "struct disassemble_info"
3274 instead of corresponding typedef.
3275 * ns32k-tdep.c: Include "dis-asm.h".
3276 * s390-tdep.c: Include "dis-asm.h".
3277 * sparc-tdep.c: Include "dis-asm.h".
3278 * vax-tdep.c: Include "dis-asm.h".
3279 * v850-tdep.c: Include "dis-asm.h".
3280 * mn10300-tdep.c: Include "dis-asm.h".
3281 * rs6000-tdep.c: Include "dis-asm.h".
3282 * xstormy16-tdep.c: Include "dis-asm.h".
3283 (_initialize_xstormy16_tdep): Delete "extern" declaration of
3284 print_insn_xstormy16.
3285 * Makefile.in (v850-tdep.o): Update dependencies.
3286 (vax-tdep.o, sparc-tdep.o, s390-tdep.o): Ditto.
3287 (ns32k-tdep.o, mips-tdep.o, mcore-tdep.o): Ditto.
3288 (m68k-tdep.o, ia64-tdep.o, i386-tdep.o): Ditto.
3289 (h8300-tdep.o, cris-tdep.o, avr-tdep.o): Ditto.
3290 (mn10300-tdep.o, xstormy16-tdep.o, disasm.o): Ditto.
3291 (gdbarch_h): Remove $(dis_asm_h).
3292 * disasm.c: Include "dis-asm.h".
3293 (dis_asm_read_memory): Use "struct disassemble_info" instead of
3294 corresponding typedef.
3295 (dis_asm_memory_error, dump_insns, do_assembly_only): Ditto.
3296 (gdb_disassemble_info, gdb_disassembly, gdb_print_insn): Ditto.
3297 * gdbarch.sh: Do not include "dis-asm.h".
3298 (struct disassemble_info): Declare opaque.
3299 (TARGET_PRINT_INSN): Update declaration.
3300 * gdbarch.h, gdbarch.c: Re-generate.
3301
88a82a65
AC
33022003-09-08 Andrew Cagney <cagney@redhat.com>
3303
3304 * gdbarch.sh (DEPRECATED_CALL_DUMMY_ADDRESS): Rename
3305 CALL_DUMMY_ADDRESS, change to a predicate.
3306 * gdbarch.h, gdbarch.c: Re-generate.
3307 * blockframe.c (deprecated_pc_in_call_dummy_at_entry_point):
3308 Use either DEPRECATED_CALL_DUMMY_ADDRESS or entry_point_address.
3309 * infcall.c (call_function_by_hand): Ditto.
3310 * sparc-tdep.c (sparc_push_return_address): Ditto.
3311 (sparc_gdbarch_init): Set deprecated_call_dummy_address.
3312 * xstormy16-tdep.c (xstormy16_push_return_address): Replace
3313 CALL_DUMMY_ADDRESS with entry_point_address.
3314 * v850-tdep.c (v850_push_return_address): Ditto.
3315 * s390-tdep.c (s390_push_return_address): Ditto.
3316 * rs6000-tdep.c (ppc_push_return_address): Ditto.
3317 * mn10300-tdep.c (mn10300_push_return_address): Ditto.
3318 * mcore-tdep.c (mcore_push_return_address): Ditto.
3319 * cris-tdep.c (cris_push_return_address): Ditto.
3320 * arm-tdep.c (arm_push_return_address): Ditto.
3321
3e2c4033
AC
33222003-09-08 Andrew Cagney <cagney@redhat.com>
3323
3324 * dwarf2-frame.c (enum dwarf2_reg_rule): New, replace anonymous
3325 enum. Add REG_UNSPECIFIED, rename REG_UNSAVED to REG_UNDEFINED
3326 and REG_UNMODIFIED to REG_SAME_VALUE.
3327 (execute_cfa_program): Update.
3328 (dwarf2_frame_cache): Update. Initialize table to
3329 REG_UNSPECIFIED, complain if CFI fails to specify a register's
3330 location.
3331 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3332
39efb398
AC
33332003-09-08 Andrew Cagney <cagney@redhat.com>
3334
3335 * gnu-nat.c: Remove "inline" function attribute.
3336 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3337
f5cb5aca
KB
33382003-09-08 Kevin Buettner <kevinb@redhat.com>
3339
3340 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3341 target.
3342
1cb761c7
KB
33432003-09-08 Kevin Buettner <kevinb@redhat.com>
3344
3345 * frv-tdep.c (frame-unwind.h, frame-base.h): Include.
3346 (frame_extra_info): Rename this struct to frv_unwind_cache.
3347 Delete fields ``fp_to_callers_sp_offset'' and ``lr_saved_on_stack''.
3348 Add fields ``prev_sp'' and ``base''.
3349 (frv_frame_chain, frv_frame_saved_pc, frv_frame_init_saved_regs)
3350 (frv_saved_pc_after_call, frv_init_extra_frame_info)
3351 (frv_push_return_address, frv_pop_frame, frv_pop_frame_regular):
3352 Delete.
3353 (frv_analyze_prologue): Add ``struct frv_unwind_cache *'' argument.
3354 Revise all callers. Fill in the unwind cache argument and make
3355 other adjustments to account for new frame mechanisms.
3356 (frv_frame_unwind_cache, frv_frame_align, frv_unwind_pc)
3357 (frv_frame_this_id, frv_frame_prev_register, frv_frame_sniffer)
3358 (frv_frame_base_address, frv_unwind_dummy_id): New functions.
3359 (frv_frame_unwind, frv_frame_base): New structs.
3360 (frv_push_arguments): Change name to frv_push_dummy_call(). Add
3361 additional arguments expected by this method and adjust function
3362 body accordingly.
3363 (frv_gdbarch_init): Remove calls to the following functions:
3364 set_gdbarch_deprecated_init_frame_pc(),
3365 set_gdbarch_deprecated_saved_pc_after_call(),
3366 set_gdbarch_deprecated_frame_chain(),
3367 set_gdbarch_deprecated_frame_saved_pc(),
3368 set_gdbarch_deprecated_frame_init_saved_regs(),
3369 set_gdbarch_deprecated_push_arguments(),
3370 set_gdbarch_deprecated_push_return_address(),
3371 set_gdbarch_deprecated_pop_frame(),
3372 set_gdbarch_deprecated_call_dummy_words(),
3373 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3374 set_gdbarch_deprecated_init_extra_frame_info(),
3375 set_gdbarch_deprecated_dummy_write_sp(), and
3376 set_gdbarch_deprecated_pc_in_call_dummy().
3377 Add calls to the following functions:
3378 set_gdbarch_unwind_pc(), set_gdbarch_unwind_sp(),
3379 set_gdbarch_frame_align(), frame_unwind_append_sniffer(), and
3380 frame_base_set_default().
3381 * Makefile.in (frv-tdep.o): Update dependencies.
a8f4cde1 3382
68f6cf99
MK
33832003-09-09 Mark Kettenis <kettenis@gnu.org>
3384
3385 * dwarf2-frame.c (read_encoded_value): Add support for
3386 DW_EH_PE_aligned encoding.
3387
73b65bb0
DJ
33882003-09-08 Daniel Jacobowitz <drow@mvista.com>
3389
3390 * infrun.c (normal_stop): Don't print a message if the inferior
3391 has exited.
3392
7c8a5605
JB
33932003-09-08 Jim Blandy <jimb@redhat.com>
3394
3395 * Makefile.in (dbxread.o): Note new dependency on $(gdb_assert_h).
3396 * dbxread.c: #include "gdb_assert.h".
3397 (read_dbx_symtab): If the objfile has no .data section, use the
3398 section index for the .bss section instead.
3399
7dd88986
DJ
34002003-09-08 Daniel Jacobowitz <drow@mvista.com>
3401
3402 * frame.c (deprecated_safe_get_selected_frame): New function.
3403 * frame.h (deprecated_safe_get_selected_frame): Add prototype.
3404 * findvar.c (read_var_value): Call it.
3405
55ff77ac
CV
34062003-09-08 Corinna Vinschen <vinschen@redhat.com>
3407
3408 * Makefile.in (ALLDEPFILES): Add sh64-tdep.c.
3409 (sh64-tdep.o): Add dependencies.
3410 * configure.tgt: Add FIXME to sh-*-linux*.
3411 * sh-tdep.c: Move sh64 support to sh64-tdep.c.
3412 (sh_gdbarch_init): Always set correct sh_show_regs function
a8f4cde1 3413 pointer. Call sh64_gdbarch_init() if machine type is sh5.
55ff77ac
CV
3414 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3415 * sh64-tdep.c: New file, containing all sh64 related code from
3416 sh-tdep.c.
3417 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3418 * config/sh/linux.mt (TDEPFILES): Ditto.
a8f4cde1 3419 * config/sh/nbsd.mt (TDEPFILES): Ditto.
55ff77ac
CV
3420 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3421 * config/sh/wince.mt (TDEPFILES): Ditto.
3422
bfb39158
DJ
34232003-09-07 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * lin-lwp.c (detach_callback): Don't call stop_wait_callback.
3426 (stop_wait_callback): Handle !lp->signalled also.
3427 (lin_lwp_has_pending, flush_callback): New functions.
3428 (lin_lwp_wait): Call flush_callback.
3429 * linux-proc.c (linux_proc_add_line_to_sigset): New function.
3430 (linux_proc_pending_signals): New function.
3431 * linux-nat.h (linux_proc_pending_signals): Add prototype.
3432
9407de8e
DJ
34332003-09-07 Daniel Jacobowitz <drow@mvista.com>
3434
3435 From Nick Kelsey <nickk@ubicom.com>:
3436 * infrun.c (handle_inferior_event): Check IN_SOLIB_RETURN_TRAMPOLINE
3437 when the stop PC is at the beginning of a function also.
3438
2ef47cd0
DJ
34392003-09-06 Daniel Jacobowitz <drow@mvista.com>
3440
3441 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3442 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3443
6f4492c8
MK
34442003-09-06 Mark Kettenis <kettenis@gnu.org>
3445
3446 * sol-thread.c: Include "gdb_string.h".
3447
d3420b2f
MK
34482003-09-03 Mark Kettenis <m.kettenis@osp.nl>
3449
3450 * gcore.c: Reorder include files in alphabetical order. Include
3451 "gdb_assert.h". Various coding style fixes.
3452 (derive_stack_segment, derive_heap_segment): Replace check for
3453 non-null BOTTOM and TOP with gdb_assert.
3454 (derive_heap_segment): Replace check for successful creation of
3455 ZERO with gdb_assert.
3456 (make_mem_sec): Use bfd_section_lma to set OSEC->lma.
3457
5220ea4c
AC
34582003-09-04 Andrew Cagney <cagney@redhat.com>
3459
3460 * thread-db.c (verbose_dlsym): New function.
3461 (thread_db_load): Use verbose_dlsym
3462 (thread_db_new_objfile): Print that libthread_db was loaded, and
3463 that thread debugging was enabled.
3464
6e8c2c06
AC
34652003-09-04 Andrew Cagney <cagney@redhat.com>
3466
3467 * configure.tgt: Add "mips64*-*-*" target. Delete
3468 mips64*el-*-ecoff*, mips64*el-*-elf*, mips*el-*-ecoff*,
3469 mips*el-*-elf*, mips*-*-lnews*, mips*-*-sysv*, mips*-*-riscos*,
3470 mips*-*-ecoff*, mips*-*-elf*, mips*-little-*, mips*-big-*,
3471 mips*-dec-*, mips64*-big-*, mips64*vr*-*-elf*, mips64*-*-ecoff*,
3472 mips*-sony-*, and mips64*-*-elf* targets.
3473 * config/mips/embedl.mt: Delete file.
3474 * config/mips/embedl64.mt: Delete file.
3475 * config/mips/mips.mt: Delete file.
3476 * config/mips/mips64.mt: Delete file.
3477 * config/mips/tm-embed.h: Delete file.
3478 * config/mips/embed.mt (TM_FILE): Set to "tm-mips.h".
3479 * config/mips/embed64.mt: Delete out-of-date comment.
3480
3a3bc038
AC
34812003-09-04 Andrew Cagney <cagney@redhat.com>
3482
3483 * hppa-tdep.c (hppa_gdbarch_init): Set
3484 "have_nonsteppable_watchpoint".
3485 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3486 * mips-tdep.c (mips_dump_tdep): Do not print
3487 HAVE_NONSTEPPABLE_WATCHPOINT.
3488 (mips_gdbarch_init): Set "have_nonsteppable_watchpoint".
3489 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3490 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3491 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Delete.
3492
a957e642
CV
34932003-09-04 Corinna Vinschen <vinschen@redhat.com>
3494
3495 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3496 unused code. Add comment.
3497
a6fbcf2f
CV
34982003-09-04 Corinna Vinschen <vinschen@redhat.com>
3499
3500 * breakpoint.c (watchpoint_check): Check for pc being in an
3501 epilogue if watchpoint frame couldn't be found.
3502
c14a44d5
AC
35032003-09-04 Andrew Cagney <cagney@redhat.com>
3504
3505 * Makefile.in: Re-generate all dependencies.
3506
f6c40618
AC
35072003-09-03 Andrew Cagney <cagney@redhat.com>
3508
3509 * arch-utils.h (legacy_print_insn): Delete declaration.
3510 * arch-utils.c (legacy_print_insn): Delete function.
3511 * disasm.c (deprecated_tm_print_insn_info): Delete.
3512 (_initialize_disasm): Delete function, contained code initializing
3513 deprecated_tm_print_insn_info.
3514 * gdbarch.sh (deprecated_tm_print_insn): Delete.
3515 (deprecated_tm_print_insn_info): Delete.
3516 (TARGET_PRINT_INSN): Do not provide a default.
3517 * gdbarch.h, gdbarch.c: Re-generate.
3518
242e8be5
AC
35192003-09-03 Andrew Cagney <cagney@redhat.com>
3520
3521 * disasm.c (fprintf_disasm): New function.
3522 (gdb_disassemble_info): Call "init_disassemble_info", instead of
3523 INIT_DISASSEMBLE_INFO_NO_ARCH. Do not initialize "insn_sets",
3524 reverts 2003-08-14 change.
3525 (_initialize_disasm): Call "init_disassemble_info", instead of
3526 INIT_DISASSEMBLE_INFO_NO_ARCH.
3527
3ffc3dda
MS
35282003-09-03 Michael Snyder <msnyder@redhat.com>
3529
3530 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3531
52d16ba8
AC
35322003-09-03 Andrew Cagney <cagney@redhat.com>
3533
3534 * config/rs6000/tm-rs6000.h (IBM6000_TARGET): Delete definition.
3535 * config/rs6000/nm-rs6000.h (DEPRECATED_IBM6000_TARGET): Define.
3536 * symfile.c (syms_from_objfile): Update.
3537 (reread_symbols): `Update
3538 * exec.c (exec_file_attach): Update.
3539 (exec_file_attach): Update.
3540 * config/powerpc/tm-nbsd.h: Delete #undef IBM6000_TARGET, revert
3541 2003-08-29 change.
3542 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3543
eb5492fa
DJ
35442003-09-03 Daniel Jacobowitz <drow@mvista.com>
3545
3546 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
3547 trad-frame.h.
3548 (arm_get_cache): Delete macro.
3549 (struct arm_prologue_cache): Update comments. Make saved_regs into
3550 a trad_frame_saved_reg pointer. Remove unwound_pc; rename unwound_sp
3551 to prev_sp.
3552 (thumb_scan_prologue): Update for cache changes. Don't call
3553 DEPRECATED_PC_IN_CALL_DUMMY.
3554 (arm_scan_prologue): Update for cache changes. Take NEXT_FRAME
3555 argument and use it in desperation search for our prologue. Do not
3556 search past the specified PC.
3557 (arm_make_prologue_cache): Simplify.
3558
3559 (arm_prologue_this_id, arm_prologue_prev_register)
3560 (arm_prologue_unwind, arm_prologue_unwind_sniffer)
3561 (arm_normal_frame_base, arm_normal_base, arm_make_sigtramp_cache)
3562 (arm_sigtramp_this_id, arm_sigtramp_prev_register)
3563 (arm_sigtramp_unwind, arm_sigtramp_unwind_sniffer)
3564 (arm_unwind_dummy_id, arm_unwind_pc, arm_unwind_sp): New.
3565
3566 (arm_frame_chain_valid, arm_find_callers_reg)
3567 (arm_frame_saved_pc, arm_read_fp, arm_frame_init_saved_regs)
3568 (arm_pop_frame): Delete obsolete methods.
3569 (arm_minimal_frame_chain, arm_minimal_frame_info): Delete.
3570
3571 (arm_gdbarch_init): Update for new frame methods. Register prologue
3572 and sigtramp unwinders. Set the default frame base method.
3573
3574 * Makefile.in (arm-tdep.o): Update dependencies.
3575 * varobj.c (find_frame_addr_in_frame_chain): Call
3576 get_frame_base_address.
3577 * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
3578
24de872b
DJ
35792003-09-03 Daniel Jacobowitz <drow@mvista.com>
3580
3581 * arm-tdep.c (arm_minimal_frame_chain): Renamed from
3582 arm_frame_chain. Take NEXT_FRAME and CACHE arguments.
3583 Use the cache instead of DEPRECATED_FRAME_SAVED_PC.
3584 (arm_minimal_frame_info): Renamed from arm_init_extra_frame_info.
3585 Take NEXT_FRAME and CACHE arguments. Call
3586 FRAMELESS_FUNCTION_INVOCATION instead of checking FROMLEAF argument.
3587 Set unwound_pc in CACHE instead of modifying the frame argument.
3588 Don't bother checking the frame type when looking for sigtramp
3589 frames.
3590 (arm_make_prologue_cache, arm_frame_chain)
3591 (arm_init_extra_frame_info): New functions.
3592
9b8d791a
DJ
35932003-09-03 Daniel Jacobowitz <drow@mvista.com>
3594
3595 * arm-tdep.c (arm_get_cache): Define.
3596 (struct arm_prologue_cache): Renamed from frame_extra_info. Add
3597 unwound_sp, unwound_pc, and saved_regs.
3598 (thumb_scan_prologue): Take a cache instead of the frame.
3599 (arm_scan_prologue): Likewise.
3600 (arm_frame_chain): Create a temporary cache for arm_scan_prologue
3601 instead of a temporary frame.
3602 (arm_init_extra_frame_info): Allocate and use a cache.
3603 (arm_frame_saved_pc, arm_pop_frame): Use the cache.
3604
7ee3275f
AC
36052003-09-03 Andrew Cagney <cagney@redhat.com>
3606
3607 * config/arm/wince.mt (TM_CLIBS): Replace WIN32LIBS.
3608 * config/mips/wince.mt (TM_CLIBS): Ditto.
3609 * config/sh/wince.mt (TM_CLIBS): Ditto.
3610 * config/pa/hppa64.mt (TM_CLIBS): Delete.
3611 * config/sparc/sp64.mt (CC): Delete.
3612
57b29be7
AC
36132003-09-03 Andrew Cagney <cagney@redhat.com>
3614
3615 * defs.h: Do not include "arch-utils.h".
3616 (GDB_MULTI_ARCH): If not defined, set to GDB_MULTI_ARCH_PARTIAL or
3617 GDB_MULTI_ARCH_PURE.
3618 * configure.in (GDB_MULTI_ARCH): Do not define.
3619 * configure, config.in: Regenerate.
3620 * configure.tgt: Do not set variable "gdb_multi_arch".
3621 * config/s390/s390x.mt (GDB_MULTI_ARCH): Delete.
3622 * config/s390/s390.mt (GDB_MULTI_ARCH): Delete.
3623 * config/i386/x86-64linux.mt (GDB_MULTI_ARCH): Delete.
3624 * config/v850/v850.mt (TM_FILE): Delete disabled definition.
3625 * config/m68hc11/m68hc11.mt (TM_FILE): Delete definition.
3626 * config/vax/tm-vax.h (GDB_MULTI_ARCH): Delete definition.
3627 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Delete definition.
3628 * config/sparc/tm-sun4sol2.h (GDB_MULTI_ARCH): Delete definition.
3629 * config/sparc/tm-nbsd.h (GDB_MULTI_ARCH): Delete definition.
3630 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Delete definition.
3631 * config/sparc/tm-sp64.h (GDB_MULTI_ARCH): Delete definition.
3632 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Delete definition.
3633 * config/ns32k/tm-ns32k.h (GDB_MULTI_ARCH): Delete definition.
3634 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Delete definition.
3635 * config/i386/tm-i386.h (GDB_MULTI_ARCH): Delete definition.
3636 * config/h8300/tm-h8300.h (GDB_MULTI_ARCH): Delete definition.
3637 * config/frv/tm-frv.h (GDB_MULTI_ARCH): Delete definition.
3638 * config/alpha/tm-alpha.h (GDB_MULTI_ARCH): Delete definition.
a8f4cde1 3639
12e035e2
MC
36402003-08-30 Michael Chastain <mec@shout.net>
3641
3642 * Makefile.in: Remove tm-hp300bsd.h, tm-hp300hpux.h.
3643 * config/m68k/nm-hp300hpux.h: Delete.
3644 * config/m68k/tm-hp300hpux.h: Delete.
3645 * config/m68k/xm-hp300hpux.h: Delete.
3646 * config/m68k/xm-hp300bsd.h: Delete.
3647 * config/djgpp/fnchange.lst: Remove nm-hp300hpux.h,
3648 tm-hp300hpux.h, xm-hp300hpux.h.
3649 * somsolib.c: Remove comment about hp300 shared libraries.
3650
bda34dc2
MK
36512003-08-31 Mark Kettenis <kettenis@gnu.org>
3652
5bca7895
MK
3653 * i386-linux-nat.c (ps_get_thread_area): Don't define as extern.
3654 Only define PTRACE_GET_THREAD_AREA is not already defined.
3655 Various style fixes in code and comments and some additional
3656 spelling fixes in comments. Move after functions dealing with
3657 debug registers.
3658 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3659 Fix coding-style.
3660
bda34dc2
MK
3661 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3662 frame_unwind_register_unsigned instead of
3663 frame_unwind_unsigned_register.
3664
c890192f
MK
36652003-08-30 Mark Kettenis <kettenis@gnu.org>
3666
3667 * configure.in: Search for gethostbyname in libnsl.
3668 * configure: Regenerated.
3669
60fac5b8
MK
36702003-08-29 Mark Kettenis <kettenis@gnu.org>
3671
e294916c
MK
3672 * configure.in: Remove redundant AC_MSG_RESULT in check for
3673 uintptr_t in stdint.h.
3674 * configure: Regenerated.
3675
c40d267a
MK
3676 * amd64-nat.h (struct regcache): Add opaque declaration.
3677
60fac5b8
MK
3678 * i386-linux-tdep.h (I386_LINUX_NUM_REGS): New define.
3679 * x86-64-linux-nat.c: Include "i386-linux-tdep.h" and "amd64.h".
3680 Change "register array" to "register cache" in comments.
3681 (x86_64_linux_gregset64_reg_offset): New variable.
3682 (GETREGS_SUPPLIES): Remove macro.
3683 (supply_gregset): Call amd64_supply_native_gregset instead of
3684 x86_64_linux_supply_gregset.
3685 (fill_gregset): Rename `regno' to `regnum'. Call
3686 amd64_collect_native_gregset instead of x86_64_linux_fill_gregset.
3687 (store_regs): Rename `regno' to `regnum'.
3688 (store_fpregs): Rename `regno' to `regnum'.
3689 (fetch_inferior_registers): Rename `regno' to `regnum'. Use
3690 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3691 Reorganize function a bit.
3692 (store_inferior_registers): Rename `regno' to `regnum'. Use
3693 amd64_native_gregset_supplies_p instead of GREGSET_SUPPLIES.
3694 Reorganize function a bit.
3695 (_initialize_x86_64_linux_nat): New function.
3696 * config/i386/x86-64linux.mh.
3697
546143b6
AC
36982003-08-29 Andrew Cagney <cagney@redhat.com>
3699
3700 * config/mips/tm-embed.h (STOPPED_BY_WATCHPOINT): Delete macro.
3701 (TARGET_CAN_USE_HARDWARE_WATCHPOINT): Delete macro.
3702 (target_remove_watchpoint): Delete macro.
3703 (target_insert_watchpoint): Delete macro.
3704 (remote_mips_can_use_hardware_watchpoint): Delete declaration.
3705 (remote_mips_stopped_by_watchpoint): Delete declaration.
3706 (remote_mips_remove_watchpoint): Delete declaration.
3707 (remote_mips_set_watchpoint): Delete declaration.
3708 (TARGET_HAS_HARDWARE_WATCHPOINTS): Delete macro.
3709 * remote-mips.c (_initialize_remote_mips): Set
3710 "to_insert_watchpoint", "to_stopped_by_watchpoint",
3711 "to_can_use_hardware_watchpoint", and "to_remove_watchpoint".
3712 (mips_insert_watchpoint): Rename remote_mips_set_watchpoint.
3713 (mips_remove_watchpoint): Rename remote_mips_remove_watchpoint.
3714 (mips_stopped_by_watchpoint): Rename
3715 remote_mips_stopped_by_watchpoint.
3716 (mips_can_hardware_watchpoint): Rename
3717 remote_mips_can_use_hardware_watchpoint, update function
3718 signature.
3719
7bace51b
MK
37202003-08-29 Mark Kettenis <kettenis@gnu.org>
3721
b0f5c6f2
MK
3722 * x86-64-linux-tdep.c (user_to_gdb_regmap): Remove USER_CS and
3723 USER_DS. We haven't given them a register number yet.
3724
2a6d284d
MK
3725 * amd64-nat.h: New file.
3726 * amd64-nat.c: New file.
3727 * amd64fbsd-nat.c: Include "amd64-nat.h".
3728 (REG_ADDR, GETREGS_SUPPLIES): Remove macros.
3729 (amd64fbsd32_r_reg_offset): New variable.
3730 (supply_gregset): Simply call amd64_supply_native_gregset.
3731 (fill_gregset): Rename `regno' to `regnum'. Simply call
3732 amd64_collect_native_gregset.
3733 (fill_fpregset): Rename `regno' to `regnum'.
3734 (fetch_inferior_registers): Rename `regno' to `regnum'. Replace
3735 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3736 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3737 `fpregset_t'. Call amd64_supply_native_gregset instead of
3738 supply_gregset. Call x86_64_supply_fxsave instead of
3739 supply_fpregset.
3740 (store_inferior_registers): Rename `regno' to `regnum'. Replace
3741 usage of GETREGS_SUPPLIES with amd64_native_gregset_supplies_p.
3742 Use `struct reg' and `struct fpreg' instead of `gregset_t' and
3743 `fpregset_t'. Call amd64_collect_native_gregset instead of
3744 fill_gregset. Call x86_64_collect_fxsave instead of
3745 fill_fpregset.
3746 (_initialize_am64fbsd_nat): Initialize
3747 amd64_native_gregset32_reg_offset and
3748 amd64_native_gregset64_reg_offset.
3749 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64-nat.o.
3750
a16d75cc
MK
3751 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3752 null pointer. Fix typo in comment.
3753
7bace51b
MK
3754 * regcache.c (supply_register): Reimplement to call
3755 regcache_raw_supply.
3756 (regcache_collect): Reimplement by calling regcache_raw_collect.
3757
9a661b68
MK
37582003-08-28 Mark Kettenis <kettenis@gnu.org>
3759
3760 * regcache.c (register_buffer): Consitify first argument.
3761 (regcache_raw_supply, regcache_raw_collect): New
3762 functions.
3763
e94cc8fa
DJ
37642003-08-28 Daniel Jacobowitz <drow@mvista.com>
3765
3766 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3767 by Nathan J. Williams.
3768
c64bd0ce
DJ
37692003-08-28 Daniel Jacobowitz <drow@mvista.com>
3770
3771 * lin-lwp.c (wait_lwp): New function, copied from
3772 stop_wait_callback. Clean up.
3773 (stop_wait_callback): Use wait_lwp.
3774
e5ab0dce
AC
37752003-08-28 Andrew Cagney <cagney@redhat.com>
3776
3777 * mips-tdep.c (gdb_print_insn_mips): Set the disassembler's
3778 flavour and disassembler options.
3779 (_initialize_mips_tdep): Do not set deprecated_tm_print_insn.
3780 (mips_gdbarch_init): Set "print_insn". Delete initialization of
3781 deprecated_tm_print_insn_info.
a8f4cde1 3782
a788de9b
AC
37832003-08-27 Andrew Cagney <cagney@redhat.com>
3784
3785 * s390-tdep.c (s390_readinstruction): Delete "info" parameter.
3786 Use target_read_memory.
3787 (s390_get_frame_info): Update. Do not reference
3788 deprecated_tm_print_insn_info.
3789 (s390_check_function_end, s390_is_sigreturn): Ditto.
3790
36482093
AC
37912003-08-27 Andrew Cagney <cagney@redhat.com>
3792
3793 * Makefile.in (cris-tdep.o): Update dependencies.
3794 * cris-tdep.c: Include "gdb_assert.h".
3795 (cris_gdbarch_init): Set print_insn.
3796 (_initialize_cris_tdep): Do not set deprecated_tm_print_insn.
3797 (cris_delayed_get_disassembler): Simplify, directly call the
3798 disassembler returned by cris_get_disassembler.
3799 * hppa-tdep.c (hppa_gdbarch_init): Set print_insn.
3800 (_initialize_hppa_tdep): Do not set deprecated_tm_print_insn.
3801 * ns32k-tdep.c (ns32k_gdbarch_init): Set print_insn.
3802 (_initialize_ns32k_tdep): Do not set deprecated_tm_print_insn.
3803 * mn10300-tdep.c (mn10300_gdbarch_init): Set print_insn.
3804 (_initialize_mn10300_tdep): Do not set deprecated_tm_print_insn.
3805 * mcore-tdep.c (mcore_gdbarch_init): Set print_insn.
3806 (_initialize_mcore_tdep): Do not set deprecated_tm_print_insn.
3807 * frv-tdep.c (frv_gdbarch_init): Set print_insn.
3808 (_initialize_frv_tdep): Do not set deprecated_tm_print_insn.
3809 * sparc-tdep.c (sparc_gdbarch_init): Set print_insn.
3810 (gdb_print_insn_sparc): Delete function.
3811 (_initialize_sparc_tdep): Do not set deprecated_tm_print_insn or
3812 deprecated_tm_print_insn_info.
3813 * v850-tdep.c (v850_gdbarch_init): Set print_insn.
3814 (_initialize_v850_tdep): Do not set deprecated_tm_print_insn.
3815 (v850_gdbarch_init): Do not set deprecated_tm_print_insn_info.
3816 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set print_insn.
3817 (_initialize_xstormy16_tdep): Do not set deprecated_tm_print_insn.
3818 * s390-tdep.c (gdb_print_insn_s390): Delete function.
3819 (_initialize_s390_tdep): Do not set deprecated_tm_print_insn.
3820 (s390_gdbarch_init): Set print_insn.
3821
0285512f
AC
38222003-08-27 Andrew Cagney <cagney@redhat.com>
3823
3824 * ppc-linux-tdep.c (ppc64_call_dummy_address): Delete function.
3825 (ppc_linux_init_abi): For PPC64, do not set call_dummy_address.
3826 * infcall.c (call_function_by_hand): Convert the entry point
3827 address into a code address.
3828
cdcd5552
AC
38292003-08-27 Andrew Cagney <cagney@redhat.com>
3830
3831 * dsrec.c: Include "gdb_string.h".
3832 * Makefile.in (dsrec.o): Update dependencies.
3833
e85cddad
MC
38342003-08-27 Michael Chastain <mec@shout.net>
3835
3836 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3837
8bbfbb23
AC
38382003-08-27 Andrew Cagney <cagney@redhat.com>
3839
3840 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3841 (alpha_osf1_init_abi): Do not set call_dummy_address.
3842
ba058b66
DC
38432003-08-27 David Carlton <carlton@kealia.com>
3844
3845 From Randolph Chung <tausq@debian.org>:
3846 * linux-proc.c (linux_info_proc_cmd): rework the code so that it
3847 compiles with -Wformat-nonliteral -Werror.
3848
87f84c9d
JB
38492003-08-26 Jim Blandy <jimb@redhat.com>
3850
3851 * solib-svr4.c (bfd_lookup_symbol): New SECT_FLAGS argument.
3852 (enable_break): Pass SEC_CODE as the SECT_FLAGS argument to
3853 bfd_lookup_symbol, since we only want symbols in code sections.
3854 (look_for_base): Pass zero as the SECT_FLAGS argument to
3855 bfd_lookup_symbol, since we're not concerned about which section
3856 the symbol is in.
3857
102d615a
JJ
38582003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3859
3860 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
a8f4cde1 3861 we are frameless or the return address register is already known.
102d615a 3862
cc7ad3ea
AC
38632003-08-26 Andrew Cagney <cagney@redhat.com>
3864
3865 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3866 in size. Add comments.
3867
af8b88dd
JJ
38682003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3869
3870 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
a8f4cde1 3871 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
af8b88dd 3872
e0a4f5a1
JM
38732003-08-26 Jason Merrill <jason@redhat.com>
3874
3875 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3876 case out of #ifdef MIPS block.
3877
4ae9ee8e
DJ
38782003-08-25 Daniel Jacobowitz <drow@mvista.com>
3879
3880 PR java/1322
3881 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3882 available before calling SECT_OFF_TEXT.
3c164570 3883 * PROBLEMS: Remove description of java/1322.
4ae9ee8e 3884
004d836a
JJ
38852003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3886
a8f4cde1 3887 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
004d836a
JJ
3888 bof, and nat0-nat127 as pseudo-registers.
3889 (ia64_frame_cache): New struct used to cache frame info.
3890 (ia64_register_reggroup_p): New routine used to override default
a8f4cde1 3891 register grouping so registers without names are still saved and
004d836a 3892 restored.
a8f4cde1 3893 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
004d836a
JJ
3894 pseudo values.
3895 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3896 (ia64_pseudo_register_write): New routine to write pseudo-registers.
a8f4cde1 3897 (ia64_alloc_frame_cache): New routine to create a new
004d836a
JJ
3898 ia64_frame_cache.
3899 (examine_prologue): Change prototype to add next_frame pointer.
3900 Assume frameless until otherwise proven. Verify that the cfm for
a8f4cde1 3901 current frame matches the cfm that should occur for the prologues
004d836a
JJ
3902 alloc insn and if equal, mark as not frameless. At end of routine,
3903 if not frameless, calculate registers for the previous frame and store
3904 in the cache, if a cache is provided.
3905 (ia64_skip_prologue): Use new prototype when calling examine_prologue
3906 and pass 0 for next_frame.
3907 (ia64_store_return_value): Change to use convert_typed_floating()
3908 instead of calling ia64_convert_to_raw().
3909 (ia64_extract_return_value): Change to use convert_typed_floating()
3910 instead of calling ia64_convert_to_virtual().
3911 (ia64_frame_cache): New routine to support new frame model.
3912 (ia64_frame_this_id, ia64_frame_prev_register): Ditto.
3913 (ia64_frame_sniffer): Ditto.
3914 (ia64_sigtramp_frame_init_saved_regs): Ditto.
3915 (ia64_sigtramp_frame_cache, ia64_sigtramp_frame_this_id): Ditto.
3916 (ia64_sigtramp_frame_prev_register): Ditto.
3917 (ia64_sigtramp_frame_sniffer): Ditto.
3918 (ia64_frame_base_address): Ditto.
3919 (ia64_extract_struct_value_address): Change to issue error message.
3920 (ia64_frame_align): New routine to align sp.
3921 (ia64_push_dummy_call): New routine based on ia64_push_arguments().
a8f4cde1 3922 (ia64_push_arguments): Removed. Logic moved to
004d836a
JJ
3923 ia64_push_dummy_call().
3924 (ia64_push_return_address): Ditto.
3925 (ia64_unwind_dummy_id): New function.
3926 (ia64_unwind_pc): Ditto.
3927 (ia64_convert_register_p): Ditto.
3928 (ia64_register_to_value): Ditto.
3929 (ia64_value_to_register): Ditto.
3930 (ia64_pop_frame, ia64_pop_frame_regular): Removed.
3931 (ia64_register_byte, ia64_register_raw_size): Ditto.
3932 (ia64_register_virtual_size, ia64_register_virtual_byte): Ditto.
3933 (ia64_saved_pc_after_call): Ditto.
3934 (ia64_frame_chain, ia64_frame_saved_pc): Ditto.
3935 (ia64_frame_init_saved_regs, ia64_get_saved_register): Ditto.
3936 (ia64_register_convertible, ia64_register_convert_to_virtual): Ditto.
3937 (ia64_register_convert_to_raw): Ditto.
3938 (ia64_store_struct_return, ia64_call_dummy_words): Ditto.
3939 (ia64_init_extra_frame_info): Ditto.
3940 (ia64_frame_args_address, ia64_frame_locals_address): Ditto.
3941 (ia64_gdbarch_init): Remove registering of deprecated functions that
3942 are no longer used. Add registration of new gdbarch functions.
3943 Remove registering deprecated_write_sp. Replace
3944 set_gdbarch_register_virtual_type() with set_gdbarch_register_type().
3945 Delete set_gdbarch_deprecated_register_convertible(),
3946 set_gdbarch_deprecated_register_convert_to_virtual(), and
3947 set_gdbarch_deprecated_register_convert_to_raw() calls. Remove
3948 set_gdbarch_deprecated_register_size(),
3949 set_gdbarch_deprecated_register_bytes(),
3950 set_gdbarch_pcregnum(),
3951 set_gdbarch_deprecated_register_byte(),
3952 set_gdbarch_deprecated_register_raw_size(),
3953 set_gdbarch_deprecated_max_register_raw_size(),
3954 set_gdbarch_deprecated_register_virtual_size(),
3955 and set_gdbarch_deprecated_max_register_virtual_size() calls.
3956 Replace set_gdbarch_deprecated_extract_return_value() with
3957 set_gdbarch_extract_return_value(). Remove calls to:
3958 set_gdbarch_deprecated_saved_pc_after_call();
3959 set_gdbarch_deprecated_frame_chain(),
3960 set_gdbarch_deprecated_frame_saved_pc(),
3961 set_gdbarch_deprecated_frame_init_saved_regs(),
3962 set_gdbarch_deprecated_get_saved_register(),
3963 set_gdbarch_deprecated_call_dummy_words(),
3964 set_gdbarch_deprecated_sizeof_call_dummy_words(),
3965 set_gdbarch_deprecated_init_extra_frame_info(),
3966 set_gdbarch_deprecated_frame_args_address(),
3967 set_gdbarch_deprecated_frame_locals_address(),
3968 and set_gdbarch_deprecated_dummy_write_sp().
3969 Add set_gdbarch_convert_register_p(),
3970 set_gdbarch_register_to_value(),
3971 set_gdbarch_value_to_register(),
3972 set_gdbarch_push_dummy_call(),
3973 set_gdbarch_frame_align(),
3974 set_gdbarch_unwind_dummy_id(),
3975 set_gdbarch_unwind_pc(),
3976 frame_unwind_append_sniffer(),
3977 frame_unwind_append_sniffer(),
3978 and frame_base_set_default().
3979
aede7613
CD
39802003-08-25 Chris Demetriou <cgd@broadcom.com>
3981
3982 * configure.tgt: Document need for special "mipsisa64" handling.
3983 (mipsisa64*-*-linux64): Handle as target linux64.
3984 (mipsisa64*-*-*): Handle as target embed64.
3985
43c3a82e
MC
39862003-08-18 Michael Chastain <mec@shout.net>
3987
3988 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3989 objfile bug.
3990
6564f77d
MK
39912003-08-24 Mark Kettenis <kettenis@gnu.org>
3992
2de139ba
MK
3993 * i387-tdep.h: Update copyright date.
3994 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3995
6564f77d
MK
3996 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3997 CFLAGS games to reflect reality.
3998
42cf1509
AC
39992003-08-24 Andrew Cagney <cagney@redhat.com>
4000
4001 * arm-tdep.c (_initialize_arm_tdep): Simplify by assuming
4002 GDB_MULTI_ARCH is always non-zero.
4003 * osabi.c (_initialize_gdb_osabi): Ditto.
4004 (gdbarch_init_osabi): Ditto.
4005 * sparc-tdep.c: Ditto for #if code.
4006
0485f6ad
MK
40072003-08-23 Mark Kettenis <kettenis@gnu.org>
4008
4009 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4010 Update comments.
4011 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
4012 comments.
4013 * x86-64-linux-tdep.c (fetch_core_registers): Adjust call to
4014 x86_64_supply_fxsave.
4015 * x86-64-linux-nat.c (supply_fpregset): Adjust call to
4016 x86_64_supply_fxsave.
4017 * amd64fbsd-nat.c (supply_fpregset): Adjust call to
4018 x86_64_supply_fxsave.
4019
c7716133
AJ
40202003-08-23 Andreas Jaeger <aj@suse.de>
4021
4022 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4023 i387_supply_fxsave.
4024
ed504bdf
MK
40252003-08-23 Mark Kettenis <kettenis@gnu.org>
4026
4027 * go32-nat.c (fetch_register): Call i387_supply_fsave instead of
4028 i387_supply_register.
4029 (go32_fetch_registers): Adjust call to i387_supply_fsave.
4030 * i386nbsd-tdep.c (fetch_core_registers): Adjust call to
4031 i387_supply_fsave.
4032 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4033 i387_supply_fxsave.
4034 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4035 i387_supply_fsave.
4036 * i386bsd-nat.c (supply_fpregset): Adjust call to
4037 i387_supply_fsave.
4038 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4039 call to i387_supply_fxsave. Call i387_supply_fsave instead of
4040 supply_fpregset.
4041 (store_inferior_registers): Remove extraneous whitespace. Call
4042 i387_fill_fsave instead of fill_fpregset.
4043 * i386gnu-nat.c (fetch_fpregs): Adjust call to i387_supply_fsave.
4044 (supply_fpregset): Likewise.
4045 * i386v4-nat.c (supply_fpregset): Adjust call to
4046 i387_supply_fsave.
4047 * i386-interix-nat.c (supply_fpregset): Adjust call to
4048 i387_supply_fsave.
4049 * i386-linux-nat.c (supply_fpregset): Adjust call to
4050 i387_supply_fsave.
4051 (supply_fpxregset): Adjust call to i387_adjust_fxsave.
4052 * i386-nto-tdep.c (i386nto_supply_fpregset): Adjust calls to
4053 i387supply_fsave and i387_supply_fxsave.
4054 * i387-tdep.c (i387_supply_fsave): Add `regnum' argument.
4055 Incorporate code from `i387_supply_register.
4056 (i387_supply_register): Remove.
4057 (i387_supply_fxsave): Add `regnum' argument.
4058 Update comments.
4059 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4060 prototype.
4061 (i387_supply_register): remove prototype.
4062 Update comments.
a8f4cde1 4063
4be5d520
MC
40642003-08-22 Michael Chastain <mec@shout.net>
4065
4066 * config/djgpp/fnchange.lst: Remove gdb/testsuite/gdb.c++/*.
4067 Add lines for files in gdb/testsuite/gdb.cp/* that are
4068 still not 8.3 unique.
4069
7ed85d26
DJ
40702003-08-22 Daniel Jacobowitz <drow@mvista.com>
4071
4072 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4073 TYPE_VPTR_FIELDNO is valid.
4074
eb0d3137
MK
40752003-08-19 Mark Kettenis <kettenis@gnu.org>
4076
4077 * utils.c (set_width_command): Remove prototypes.
4078 (set_screen_size): New prototype.
4079 (init_page_info): Simplify by fetching the screen size from
4080 Readline. Call set_screen_size.
4081 (set_screen_size): New function.
4082 (set_width): Add missing whitespace in comment.
4083 (set_width_command): Call set_screen_size.
4084 (set_height_command): New function.
4085 (initialize_utils): Fix formatting. Make "set height" command
4086 call set_height_command. Remove redundant code that turns off
4087 pagination if output isn't a terminal. Remove redundant call to
4088 set_width_command.
a8f4cde1 4089
7e6d0ac8
MK
40902003-08-22 Mark Kettenis <kettenis@gnu.org>
4091
3567a8ea
MK
4092 * sparc64-tdep.h (sparc64_regnum): Fix comment.
4093 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove prototypes.
4094 (sparc_supply_rwindow, sparc_fill_rwindow): New prototypes.
4095 * sparc64-tdep.c (sparc64_pseudo_register_read): Add missing
4096 `case' keyword.
4097 (sparc64_register_info): Give the reister with number
4098 SPARC64_STATE_REGNUM a name.
4099 (sparc64_pseudo_register_write): Add support for %cwp, %pstate,
4100 %asi and %ccr.
4101 (sparc64_push_dummy_call): Take BIAS into account when checking
4102 stcak alignment.
4103 (sparc_software_single_step): Remove assertions that check whether
4104 NPC and NNPC were zero.
4105 (sparc_supply_rwindow): Make public. Merge functionality with
4106 sparc64_supply_rwindow.
4107 (sparc_fill_rwindow): Make public. Merge functionality with
4108 sparc64_fill_rwindow.
4109 (sparc64_supply_rwindow, sparc64_fill_rwindow): Remove.
4110 * sparc64fbsd-nat.c (_initialize_sparc64fbsd_nat): Set
4111 SPARCBSD_FPREG_SUPPLIES_P to sparc64fbsd_fpreg_supplies_p.
4112 * sparc64fbsd-tdep.c (sparc64fbsd_supply_reg): Call
4113 sparc_supply_rwindow instead of sparc64_supply_rwindow.
4114
7e6d0ac8
MK
4115 * reggroups.c: Add whitespace after declarations of local
4116 variables in functions.
4117
72e5f484
MC
41182003-08-21 Michael Chastain <mec@shout.net>
4119
4120 * gdbtypes.h: Change array bound type from an int to enum.
4121
435ac228
AC
41222003-08-21 Andrew Cagney <cagney@redhat.com>
4123
4124 * config/sparc/tm-sp64.h: Delete #if !GDB_MULTI_ARCH and #if 0 code.
4125 * config/sparc/tm-sparc.h: Ditto.
4126 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Define GDB_MULTI_ARCH
4127 unconditionally.
4128 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4129
0d0e1a63
MK
41302003-07-13 Mark Kettenis <kettenis@gnu.org>
4131
4132 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4133 (register_objfile_data, set_objfile_data, objfile_data): New
4134 prototypes.
4135 * objfiles.c (objfile_alloc_data, objfile_free_data): New
4136 prototypes.
4137 (allocate_objfile): Call objfile_alloc_data.
4138 (free_objfile): Call objfile_free_data.
4139 (struct objfile_data): New.
4140 (struct objfile_data_registration): New.
4141 (struct objfile_data_registry): New.
4142 (objfile_data_registry): New variable.
4143 (register_objfile_data): New function.
4144 (objfile_alloc_data, objfile_free_data): New functions.
4145 (set_objfile_data, objfile_data): New functions.
4146 * dwarf2-frame.c (dwarf2_frame_data): New variable.
4147 (dwarf2_frame_find_fde, add_fde): Use new per-objfile data mechanism.
4148 (_initialize_dwarf2_frame): New function and prototype.
4149
d90cf509
AC
41502003-08-21 Andrew Cagney <cagney@redhat.com>
4151
4152 * sh3-rom.c (sh3_open, sh3e_open): Use gdbarch_update_p to select
4153 a specific architecture.
4154 * arch-utils.h (set_architecture_from_arch_mach): Delete
4155 declaration.
4156 (target_architecture_hook): Delete declaration.
4157 * arch-utils.c: Delete non GDB_MULTI_ARCH includes.
4158 (default_float_format): Assume GDB_MULTI_ARCH.
4159 (default_double_format): Assume GDB_MULTI_ARCH.
4160 (set_endian_from_file): Delete function.
4161 (arch_ok): Delete function.
4162 (set_arch): Delete function.
4163 (set_architecture_from_arch_mach): Delete function.
4164 (set_architecture_from_file): Delete function.
4165 (set_architecture): Assume GDB_MULTI_ARCH.
4166 (set_gdbarch_from_file): Assume GDB_MULTI_ARCH.
4167
8b39fe56
MK
41682003-08-21 Mark Kettenis <kettenis@gnu.org>
4169
4170 Rewrite FreeBSD/sparc64 native configuration.
4171 * sparcbsd-nat.c, sparcbsd-nat.h: New files.
4172 * sparc64fbsd-nat.c: New file.
4173 * sparc64fbsd-tdep.c: New file.
4174 * sparc64-tdep.c sparc64-tdep.h: New files.
4175 * Makefile.in (sparcbsd-nat.o, sparc64fbsd-nat.o, sparc64-tdep.o,
4176 sparc64fbsd-tdep.o): New dependencies.
4177 (SFILES): Add sparcbsd-nat.c, sparc64fbsd-nat.c, sparc64-tdep.c
4178 and sparc64fbsd-tdep.c.
4179 (sparc64_tdep_h, sparcbsd_nat_h): New variables.
4180 * config/sparc/fbsd.mh: Remove copyright notice.
4181 (NATDEPFILES): Remove sparc-nat.o, add sparc64fbsd-nat.o and
4182 sparcbsd-nat.o.
4183 * config/sparc/fbsd.mt: Remove copyright notice.
4184 (TDEPFILES): Remove sparc-tdep.o, solib.o solib-svr4.o,
4185 solib-legacy.o. Add sparc64-tdep.o and sparc64fbsd-tdep.o.
4186 * config/sparc/nm-fbsd.h: Don't include "elf/common.h".
4187 (SVR4_SHARED_LIBS, PTRACE_GETREGS, PTRACE_SETREGS,
4188 PTRACE_GETFPREGS, PTRACE_SETFPREGS, GDB_GREGSET_T, GDB_FPREGSET_T,
4189 regs, r_g1, r_ps, r_pc, r_npc, r_y, FPU_FSR_TYPE, fp_status, fpu,
4190 fpu_regs, fp_fr, fpu_fsr, Fpu_fsr): Remove defines.
4191 * config/sparc/tm-fbsd.h: Don't include "solib.h" and
4192 "sparc/tm-sp64.h".
4193 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4194 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4195
a7f19c79
MC
41962003-08-21 Michael Chastain <mec@shout.net>
4197
4198 * symtab.h: Add doco on the space critical structures and
4199 some measurements of space usage.
4200
da08ea5b
MS
42012003-08-21 Michael Snyder <msnyder@redhat.com>
4202
4203 * tracepoint.c (trace_dump_command): Trace break address
4204 is subject to DECR_PC_AFTER_BREAK.
4205 (set_traceframe_context): Make "trace_line" an int.
4206 Fixes suggested by Mark Newman <mark.newman@lmco.com>
a8f4cde1 4207
6df2bf50
MS
42082003-08-20 Michael Snyder <msnyder@redhat.com>
4209
4210 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
a8f4cde1
RM
4211 * sh-tdep.c (sh_gdbarch_init): For sh2e, sh3e, and sh4, set
4212 FLOAT_ARG0_REGNUM and FLOAT_ARGLAST_REGNUM, to be used for
6df2bf50 4213 argument passing.
a8f4cde1 4214 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
6df2bf50
MS
4215 functions, replace sh_push_dummy_call.
4216 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4217
0955bbf0
MC
42182003-08-20 Michael Chastain <mec@shout.net>
4219
4220 * gdbtypes.h (struct main_type): Rearrange to save space.
4221
260a4188
MS
42222003-08-20 Michael Snyder <msnyder@redhat.com>
4223
4224 * trad-frame.c: Comment typo fix.
4225
8baa6f92
KB
42262003-08-20 Michael Snyder <msnyder@redhat.com>
4227 Kevin Buettner <kevinb@redhat.com>
4228
4229 * frv-tdep.c (gdb_string.h, frame.h, trad-frame.h): Include.
4230 (frv_frame_init_saved_regs): Add declaration.
4231 (frame_extra_info): Add new field ``saved_regs''.
4232 (frv_frame_chain, frv_frame_saved_pc, frv_analyze_prologue)
4233 (frv_skip_prologue, frv_init_extra_frame_info, frv_pop_frame_regular):
4234 Update frame related code.
4235 (frv_extract_struct_value_address): Adjust formatting.
4236 * Makefile.in (frv-tdep.o): Update dependencies.
4237 * config/frv/tm-frv.h (target_insert_watchpoint)
4238 (target_remove_watchpoint, target_insert_hw_breakpoint)
4239 (target_remove_hw_breakpoint): Delete these macros.
4240 (remote_insert_watchpoint, remote_remove_watchpoint)
4241 (remote_insert_hw_watchpoint, remote_remove_hw_watchpoint): Remove
4242 these declarations.
4243
87193939
MC
42442003-08-20 Michael Chastain <mec@shout.net>
4245
4246 * defs.h (ENUM_BITFIELD): New macro.
4247 * symtab.h (ENUM_BITFIELD): Use it.
4248 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4249
062103ba
SA
42502003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4251
4252 * MAINTAINERS (write after approval): Add myself.
a8f4cde1 4253
8b148df9
AC
42542003-08-18 Andrew Cagney <cagney@redhat.com>
4255
4256 * gdbarch.sh (FRAME_RED_ZONE_SIZE): New architecture method.
4257 * gdbarch.h, gdbarch.c: Re-generate.
4258 * infcall.c (call_function_by_hand): Adjust the SP by
4259 frame_red_zone_size before allocating any stack space.
4260 * rs6000-tdep.c (rs6000_gdbarch_init): Set "frame_red_zone_size".
4261 * x86-64-tdep.c (x86_64_frame_align): New function.
4262 (x86_64_init_abi): Set "frame_red_zone_size" and "frame_align".
4263
4264 * x86-64-tdep.c (x86_64_push_arguments): Revert 2003-08-07 change.
4265 Remove code adjusting SP so that it skips over the Red Zone.
4266
954a4db8
MK
42672003-08-18 Mark Kettenis <kettenis@gnu.org>
4268
4269 * NEWS (New native configurations): Mention FreeBSD/amd64.
4270
1a241548
AC
42712003-08-18 Andrew Cagney <cagney@redhat.com>
4272
4273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4274 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4275 "m68k_frame_p".
4276 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4277
f82b2acd
MK
42782003-08-18 Mark Kettenis <kettenis@gnu.org>
4279
4280 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4281
4056d258
ML
42822003-08-18 Michal Ludvig <mludvig@suse.cz>
4283
4284 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4285 Define.
4286 * i386-linux-nat.c: Include "linux-nat.h".
4287 (child_post_startup_inferior): New function.
a8f4cde1 4288
99ab4326
MK
42892003-08-18 Mark Kettenis <kettenis@gnu.org>
4290
4291 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4292 at the start of a frameless function. This probably fixes PR
4293 backtrace/1338.
4294
c8d5f0d6
MC
42952003-08-17 Michael Chastain <mec@shout.net>
4296
4297 * symfile.c (find_sym_fns): Remove special case for apollo target.
4298
9016a515
DJ
42992003-08-17 Daniel Jacobowitz <drow@mvista.com>
4300
4301 * linux-nat.c (PTRACE_O_TRACEVFORKDONE, PTRACE_O_TRACEEXIT): Define.
4302 (PTRACE_EVENT_VFORKDONE, PTRACE_EVENT_EXIT): Define.
4303 (linux_parent_pid, linux_supports_tracevforkdone_flag): New variable.
4304 (linux_test_for_tracefork): Set linux_supports_tracevforkdone_flag.
4305 (linux_supports_tracevforkdone): New function.
4306 (linux_enable_event_reporting): Enable TRACEVFORK, TRACEEXEC, and
4307 TRACEVFORKDONE.
4308 (child_follow_fork): Handle vfork.
4309 (linux_handle_extended_wait): Likewise. Also handle exec.
4310 (child_insert_vfork_catchpoint, child_insert_exec_catchpoint): Enable.
4311 * NEWS: Mention fork tracing.
4312
c538c11c
DJ
43132003-08-17 Daniel Jacobowitz <drow@mvista.com>
4314
4315 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4316
4de4c07c
DJ
43172003-08-17 Daniel Jacobowitz <drow@mvista.com>
4318
4319 * Makefile.in (i386-linux-nat.o): Update dependencies.
4320 * config/i386/nm-linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR): Define.
4321 * config/nm-linux.h (CHILD_POST_STARTUP_INFERIOR, CHILD_POST_ATTACH)
4322 (CHILD_FOLLOW_FORK, KILL_INFERIOR): Define.
4323 * i386-linux-nat.c: Include "linux-nat.h".
4324 (child_post_startup_inferior): New function.
4325 * i386-nat.c (child_post_startup_inferior): Wrap in #ifdef.
4326 * infptrace.c (kill_inferior): Wrap in #ifdef.
4327 * lin-lwp.c (lin_lwp_attach_lwp): Call child_post_attach after
4328 attaching to each LWP.
4329 (child_wait, lin_lwp_wait): Call linux_handle_extended_wait.
4330 (init_lin_lwp_ops): Fill in some more operations.
4331 * linux-nat.h (linux_enable_event_reporting)
4332 (linux_handle_extended_wait, linux_child_post_startup_inferior): New
4333 prototypes.
4334 * linux-nat.c (linux_enable_event_reporting): New function.
4335 (child_post_attach, linux_child_post_startup_inferior)
4336 (child_post_startup_inferior, child_follow_fork)
4337 (linux_handle_extended_wait, kill_inferior): New functions.
4338
7996bcec
AC
43392003-08-16 Andrew Cagney <cagney@redhat.com>
4340
4341 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4343
3d48a7a0
MK
43442003-08-16 Mark Kettenis <kettenis@gnu.org>
4345
4346 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4347
7989c619
AC
43482003-08-16 Andrew Cagney <cagney@redhat.com>
4349
4350 * NEWS: Mention that "set prompt-escape-char" was deleted.
4351 * top.c (get_prompt_1): Delete function.
4352 (gdb_prompt_escape):
4353 (init_main): Do not clear "gdb_prompt_escape". Delete "set
4354 prompt-escape-char" command.
4355 (MAX_PROMPT_SIZE): Delete macro.
4356 (get_prompt): Simplify, do not call get_prompt_1.
4357
07978cd8
AC
43582003-08-16 Andrew Cagney <cagney@redhat.com>
4359
4360 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4361 -Werror. -Wformat-nonliteral problems.
4362
3ff7cf9e
JB
43632003-08-15 J. Brobecker <brobecker@gnat.com>
4364
4365 Further multiarching work mostly for hppa64-*-hpux11:
4366 * hppa-tdep.h: New file.
4367 * hppa-tdep.c: #include hppa-tdep.c.
4368 (hppa32_num_regs): Renamed from hppa_num_regs.
4369 (hppa64_num_regs): New constant.
4370 (hppa64_call_dummy_breakpoint_offset): New constant.
4371 (hppa32_call_dummy_length): New constant.
4372 (hppa64_call_dummy_length): New constant.
4373 (hppa32_stack_align): Make name 32bit explicit.
4374 (hppa32_register_virtual_type): Likewise.
4375 (hppa32_extract_return_value): Likewise.
4376 (hppa32_use_struct_convention): Likewise.
4377 (hppa32_store_return_value): Likewise.
4378 (hppa64_register_virtual_type): New function.
4379 (hppa64_extract_return_value): New function.
4380 (hppa64_use_struct_convention): New function.
4381 (hppa64_store_return_value): New function.
4382 (hppa_frame_locals_address): Remove declaration, function does
4383 not exist anymore.
4384 (hppa_register_byte): Add support for PA64 ABI.
4385 (hppa_gdbarch_init): Add support for PA64 ABI.
4386 * hppa-hpux-tdep.c (hppa32_hpux_frame_saved_pc_in_sigtramp):
4387 Make name 32bit explicit.
4388 (hppa32_hpux_frame_base_before_sigtramp): Likewise.
4389 (hppa32_hpux_frame_find_saved_regs_in_sigtramp): Likewise.
4390 (hppa64_hpux_frame_saved_pc_in_sigtramp): New function.
4391 (hppa64_hpux_frame_base_before_sigtramp): New function.
4392 (hppa64_hpux_frame_find_saved_regs_in_sigtramp): New function.
4393 * config/pa/tm-hppa64.h: Remove macros that are no longer
4394 necessary now that the gdbarch vector is properly setup.
a8f4cde1 4395 Transform some macros into function calls. Some minor cleanup.
3ff7cf9e
JB
4396 * config/pa/tm-hppah.h: Update function calls in macros
4397 following the function renaming in hppa-hpux-tdep.c.
4398 * Makefile.in (hppa_tdep_h): New variable.
4399 (hppa-tdep.o): Add dependency over hppa_tdep_h.
4400
5d05ca6d
MS
44012003-08-14 Michael Snyder <msnyder@redhat.com>
4402
4403 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4404
37ba2569
JB
44052003-08-13 J. Brobecker <brobecker@gnat.com>
4406
4407 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4408 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4409 routine.
4410
aed7f26a
MS
44112003-08-13 Michael Snyder <msnyder@redhat.com>
4412
4413 * frv-tdep.c (frv_push_arguments): Use deprecated ftype.
4414 (frv_saved_pc_after_call): Use deprecated ftype.
4415 (stupid_useless_init_extra_frame_info): Remove orphan prototype.
4416 (frv_remote_translate_xfer_address): Remove.
4417 (frv_gdbarch_init): Use generic_remote_translate_xfer_address.
4418
752d4ac1
JB
44192003-08-13 J. Brobecker <brobecker@gnat.com>
4420
4421 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4422 initialization after the common gdbarch initialization, not before.
4423
1426ac1d
JB
44242003-08-13 J. Brobecker <brobecker@gnat.com>
4425
4426 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4427 (ADDR_BITS_REMOVE): Remove, redundant.
4428
b6fbdd1d
JB
44292003-08-13 J. Brobecker <brobecker@gnat.com>
4430
4431 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4432 gdbarch method to clear the 2 low bits of text addresses.
4433
44160db3
AC
44342003-08-12 Andrew Cagney <cagney@redhat.com>
4435
4436 * Makefile.in (dsrec.o): Update dependencies.
4437 * dsrec.c: Include "gdb_assert.h".
4438 (make_srec): Use snprintf instead of sprintf, use a literal format
4439 string.
4440
bcf7d3ca
AC
44412003-08-12 Andrew Cagney <cagney@redhat.com>
4442
4443 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4444 FRAME_OBSTACK_ZALLOC.
4445
49ed40de
KB
44462003-08-12 Kevin Buettner <kevinb@redhat.com>
4447
4448 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4449 SSE registers.
4450
b246147c
MK
44512003-08-10 Mark Kettenis <kettenis@gnu.org>
4452
4453 * x86-64-tdep.h (amd64fbsd_sigtramp_start, amd64fbsd_sigtramp_end,
4454 amd64fbsd_sc_reg_offset): Add extern declarations.
4455 * amd64fbsd-nat.c (_initialize_am64fbsd_nat): Remove extern
4456 declarations.
4457
d95fdc0d
BE
44582003-08-11 Ben Elliston <bje@wasabisystems.com>
4459
4460 * MAINTAINERS (write after approval): Update my mail address.
4461
cf6a0e73
AC
44622003-08-10 Andrew Cagney <cagney@redhat.com>
4463
4464 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4465
f837910f
MK
44662003-08-10 Mark Kettenis <kettenis@gnu.org>
4467
e2dbbd2d
MK
4468 * i386-tdep.h (i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
4469 i386obsd_sigtramp_start, i386obsd_sigtramp_end,
4470 i386fbsd4_sc_reg_offset, i386fbsd_sc_reg_offset,
4471 i386nbsd_sc_reg_offset, i386obsd_sc_reg_offset,
4472 i386bsd_sc_reg_offset): Add extern declarations.
4473 * i386obsd-nat.c: Include "i386-tdep.h"
4474 (_initialize_i386obsd_nat): Remove extern declarations.
4475 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Remove extern
4476 declarations.
4477 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
4478 declarations.
4479
f837910f
MK
4480 * i386-tdep.c (i386_register_to_value): Use get_frame_register
4481 instead of frame_read_register.
4482 (i386_fetch_pointer_argument): Use get_frame_register_unsigned
4483 instead of frame_read_register. Use I386_ESP_REGNUM instead of
4484 SP_REGNUM.
4485 (i386_frame_prev_register): Use frame_unwind_register_unsigned
4486 instead of frame_unwind_unsigned_register. Use
4487 I386_EFLAGS_REGISTER instead of PS_REGNUM.
4488 (i386_get_longjmp_target): Use regcache_read_unsigned_register
4489 instead of read_register. Use builtin_type_void_data_ptr instead
4490 of builtin_type_void_func_ptr when extracting the address of the
4491 jmp_buf.
4492 (i386_extract_return_value, i386_store_return_value,
4493 i386_pseudo_register_read, i386_pseudo_register_write): Use
4494 register_size instead REGISTER_RAW_SIZE.
4495
edcf254d
AC
44962003-08-10 Andrew Cagney <cagney@redhat.com>
4497
4498 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4499 sprintf. Make "name" constant.
4500
26604a34
MK
45012003-08-10 Mark Kettenis <kettenis@gnu.org>
4502
192285c6
MK
4503 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4504 instead of frame_read_register.
f837910f
MK
4505 (i387_print_float_info): Use get_frame_register and
4506 get_frame_register_unsigned instead of frame_register_read.
192285c6 4507
f0925262
MK
4508 * i386fbsd-nat.c: Include "i386-tdep.h".
4509 (child_resume): Make `eflags' an ULONGEST. Use
4510 regcache_cooked_read_unsigned and regcache_cooked_write_unsigned
4511 instead of register_read and register_write.
4512
a144416f
MK
4513 * i386bsd-nat.c (fetch_inferior_registers,
4514 store_inferior_registers): Don't use && at the end of a line.
4515 (_initialize_i386bsd_nat): Fix typo.
4516
fec74868
MK
4517 * frame.c (_initialize_frame): Add missing backslash.
4518
87232496
MK
4519 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4520 * sol-thread.c (sol_thread_store_registers): Use regcache_collect
4521 and supply_register instead of manipulating the register buffer
4522 directly.
4523
c9b9de0b
MK
4524 From Peter Schauer (Peter.Schauer@regent.e-technik.tu-muenchen.de):
4525 * config/i386/nm-i386sol2.h
4526 (TARGET_REGION_SIZE_OK_FOR_HW_WATCHPOINT): Define to one.
4527
26604a34
MK
4528 Based on a patch from Michael Elizabeth Chastain (mec@shout.net):
4529 * i386-tdep.c (i386_analyze_frame_setup): Recognize more
4530 instructions that GCC likes to mingle into the prologue. Fixes
4531 gdb/1253 and gdb/1255.
4532
25d29d70
AC
45332003-08-09 Andrew Cagney <cagney@redhat.com>
4534
4535 Fix GDB PR cli/926.
4536 * cli/cli-decode.c (add_setshow_uinteger_cmd): New function.
4537 * command.h (add_setshow_uinteger_cmd): Declare.
4538 * frame.c (set_backtrace_cmd): New function.
4539 (show_backtrace_cmd): New function.
4540 * frame.c (_initialize_frame): Replace "set/show
4541 backtrace-below-main" with "set/show backtrace past-main". Add
4542 command "set/show backtrace limit".
4543 (backtrace_past_main): Rename "backtrace_below_main".
4544 (backtrace_limit): New variable.
4545 (get_prev_frame): Update. Check the backtrace_limit.
4546
9ebf4acf
AC
45472003-08-09 Andrew Cagney <cagney@redhat.com>
4548
4549 * defs.h (xstrprintf): Declare.
4550 * utils.c (xstrprintf): New function.
4551 * breakpoint.c (insert_breakpoints): Replace sprintf and
4552 non-literal format strings, with xstrprintf and cleanups.
4553 (delete_breakpoint,breakpoint_re_set): Ditto.
4554 (commands_command, insert_breakpoints): Ditto.
4555 (bpstat_stop_status, break_at_finish_at_depth_command_1): Ditto.
4556 (break_at_finish_command_1): Ditto.
4557
3771659b
AC
45582003-08-09 Andrew Cagney <cagney@redhat.com>
4559
4560 * MAINTAINERS (language support): List Adam Fedor as Objective C
4561 maintainer.
4562
b4263afa
JB
45632003-08-08 J. Brobecker <brobecker@gnat.com>
4564
4565 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4566 are now multiarched.
4567
d84defb1
JB
45682003-08-08 J. Brobecker <brobecker@gnat.com>
4569
4570 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4571 longer necessary now that hppa64 is partially multiarch'ed.
4572
f786f615
AC
45732003-08-08 Andrew Cagney <cagney@redhat.com>
4574
4575 * interps.c (interp_set): Check for a NULL "old_interp".
4576
c938e9b0
L
45772003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4578
4579 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4580 (install-only): Support DESTDIR.
4581 (uninstall): Likewise.
4582 (install-gdbtk): Likewise.
4583
9a146a11
EZ
45842003-08-08 Elena Zannoni <ezannoni@redhat.com>
4585
4586 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4587 contains something meaningful at all times.
4588
4589Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
7a76ced5 4590
62599e99 4591 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
7a76ced5 4592
56296155
BC
4593Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4594
62599e99 4595 * MAINTAINERS (write after approval): Added self.
56296155 4596
9710e734
AC
45972003-08-07 Andrew Cagney <cagney@redhat.com>
4598
4599 * inferior.h (AT_SYMBOL): Define.
4600 * blockframe.c (inside_entry_file): Check for AT_SYMBOL.
4601 * infcall.c (call_function_by_hand): Add code to handle AT_SYMBOL.
4602 * mips-tdep.c (mips_call_dummy_address): Delete function.
4603 (mips_gdbarch_init): Set call_dummy_location to AT_SYMBOL, do not
4604 set call_dummy_address.
4605
98b3ab73
AC
46062003-08-07 Andrew Cagney <cagney@redhat.com>
4607
4608 * language.c (op_error): Delete function.
4609 (binop_type_check): Delete function.
4610 * language.h (type_op_error, range_op_error): Delete macros.
4611 (op_error): Delete declaration.
4612
2fcf52f0
AC
46132003-08-07 Andrew Cagney <cagney@redhat.com>
4614
4615 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4616
abd4220e 46172003-08-07 Michal Ludvig <mludvig@suse.cz>
fd83bada 4618
abd4220e 4619 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
fd83bada 4620 (x86_64_push_arguments): Skip the red zone.
abd4220e 4621
9dd5f34f
AC
46222003-08-05 Andrew Cagney <cagney@redhat.com>
4623
4624 * reggroups.c (reggroup_next): Check for the final entry.
4625
e5e78edc
AC
46262003-08-04 Andrew Cagney <cagney@redhat.com>
4627
ab4e3d93
AC
4628 * monitor.h (monitor_dump_reg_block): Remove ATTR_FORMAT.
4629 * cli/cli-script.c (define_command): Call query directly, instead
4630 of passing it a buffer.
4631 * ocd.c (ocd_error): Pass error a constant format string.
4632 * remote-mips.c (mips_error): Use fputs_filtered.
4633
1062ca82
AC
4634 * solib-svr4.c (_initialize_svr4_solib): Update
4635 register_gdbarch_data call.
4636 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4637
fcc1c85c
AC
4638 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4639 (register_gdbarch_data): Delete "free" parameter. Update
4640 comments.
4641 * gdbarch.h, gdbarch.c: Re-generate.
4642 * reggroups.c (_initialize_reggroup): Update.
4643 * gnu-v3-abi.c (init_gnuv3_ops): Update.
4644 * frame-base.c (_initialize_frame_base): Update.
4645 * frame-unwind.c (_initialize_frame_unwind): Update.
4646 * user-regs.c (_initialize_user_regs): Update.
4647 * remote.c (_initialize_remote): Update.
4648 * regcache.c (_initialize_regcache): Update.
4649
116f06ea
AC
4650 * regcache.c (xfree_regcache_descr): Delete function.
4651 (_initialize_regcache): Update call to register_gdbarch_data.
4652 (init_regcache_descr, init_legacy_regcache_descr): Use
4653 GDBARCH_OBSTACK_XALLOC and GDBARCH_OBSTACK_CALLOC.
4654
e5e78edc
AC
4655 * remote.c (free_remote_state): Delete function.
4656 (_initialize_remote): Update register_gdbarch_data.
4657 (init_remote_state): Use GDBARCH_OBSTACK_XALLOC and
4658 GDBARCH_OBSTACK_CALLOC instead of xmalloc / xcalloc.
4659
6c7d17ba
AC
46602003-08-04 Andrew Cagney <cagney@redhat.com>
4661
4662 * reggroups.c (struct reggroup_el): Define.
4663 (struct reggroups): Delete field "nr_group". Replace array
4664 "group" with a "first" to "last" linked list.
4665 (reggroups_init): Update. Allocate using gdbarch's obstack.
4666 (reggroups_free): Delete function.
4667 (add_group): Update. Add "el" parameter.
4668 (reggroup_add): Pass gdbarch obstack allocated space to add_group.
4669 (default_groups): Update.
4670 (reggroup_next): Replace reggroups.
4671 (reggroups_dump): Update.
4672 (_initialize_reggroup): Pass XMALLOC allocated space to add_group.
4673 * regcache.c (regcache_dump): Use reggroup_next instead of reggroups.
4674 * infcmd.c (registers_info): Use reggroup_next instead of reggroups.
4675
89b7795b
DJ
46762003-08-04 Daniel Jacobowitz <drow@mvista.com>
4677
4678 * Makefile.in (tui-interp.o): Update dependencies.
4679
306d9ac5
DC
46802003-08-04 David Carlton <carlton@kealia.com>
4681
4682 * charset.c (cached_iconv_convert): Add __FILE__ and __LINE__ args
4683 to internal_error call.
4684 * source.c (forward_search_command): Add "%s" format argument.
4685 (reverse_search_command): Ditto.
4686 * top.c (quit_confirm): Ditto.
4687 * cli/cli-setshow.c (do_setshow_command): Ditto.
4688 * cp-valprint.c (cp_print_class_method): Replace
4689 {f,}printf_{un,}filtered by {f,}puts_{un,}filtered.
4690 (cp_print_class_member): Ditto.
4691 * event-top.c (command_line_handler): Ditto.
4692 * linux-proc.c (linux_info_proc_cmd): Ditto.
4693 * p-typeprint.c (pascal_type_print_base): Ditto.
4694 * p-valprint.c (pascal_object_print_class_method): Ditto.
4695 (pascal_object_print_class_member): Ditto.
4696 * printcmd.c (print_scalar_formatted,printf_command): Ditto.
4697 * remote.c (remote_cisco_section_offsets): Ditto.
4698 * top.c (command_line_input): Ditto.
4699 * utils.c (vwarning,error_stream,quit): Ditto.
4700 * valprint.c (print_floating,print_binary_chars)
4701 (print_octal_chars,print_decimal_chars,print_hex_chars): Ditto.
4702
57bfe177
AC
47032003-08-04 Andrew Cagney <cagney@redhat.com>
4704
4705 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4706
e546b999
AC
47072003-08-02 Andrew Cagney <cagney@redhat.com>
4708
4709 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4710 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4711 amd64fbsd-nat.c.
4712
91092ee5
AC
47132003-08-02 Andrew Cagney <cagney@redhat.com>
4714
4715 * Makefile.in: Update all dependencies and definitions.
4716
889f28e2
AF
47172003-08-02 Adam Fedor <fedor@gnu.org>
4718
4719 * linespec.c (is_objc_method_format): New function
4720 (decode_line_1, locate_first_half): Use it.
4721 Fixes PR objc/1298
4722
880bc914
AC
47232003-08-01 Andrew Cagney <cagney@redhat.com>
4724
4725 * NEWS: Mention that m32r is multi-arch.
4726 From 2003-07-28 Kei Sakamoto <sakamoto.kei@renesas.com>:
4727 * configure.tgt: Recognize m32r-*-*.
4728 * config/m32r/tm-m32r.h: Delete file.
4729 * config/m32r/m32r.mt: New file.
a8f4cde1 4730 * m32r-rom.c (m32r_upload_command): Use hostent only when
880bc914
AC
4731 gethostname succeeds, in order to avoid a compilation
4732 warning.
4733 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4734 compiler warning.
4735
19f59343
MS
47362003-08-01 Michael Snyder <msnyder@redhat.com>
4737
4738 * sh-tdep.c (sh_frame_align): New gdbarch method.
4739 (sh_gdbarch_init): Set up frame_align method.
4740
4e7d7511
MS
47412003-07-31 Michael Snyder <msnyder@redhat.com>
4742
4743 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4744 which is already covered by the new frames infrastructure.
4745
63022984
AC
47462003-07-31 Andrew Cagney <cagney@redhat.com>
4747
4748 * user-regs.c (struct user_reg): Add "next" link.
4749 (struct user_regs): Replace "user" with "first" and "last" links.
4750 (append_user_reg): Add pre-allocated "reg" parameter.
4751 (builtin_user_regs): Provide initial value for "last".
4752 (user_reg_add_builtin): XMALLOC memory for append_user_reg.
4753 (user_regs_init): Allocate memory from the gdbarch obstack.
4754 (user_reg_add): GDBARCH_OBSTACK_ZALLOC memory for append_user_reg.
4755 (user_reg_map_name_to_regnum): Rewrite to search the user_reg
4756 linked list.
4757 (usernum_to_user_reg): New function.
4758 (user_reg_map_regnum_to_name): Use usernum_to_user_reg.
4759 (value_of_user_reg): Use usernum_to_user_reg.
4760 (user_regs_free): Delete function.
4761 (_initialize_user_regs): Update register_gdbarch_data call.
4762
7cf6e574
DJ
47632003-07-31 Daniel Jacobowitz <drow@mvista.com>
4764
4765 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4766
c48a845b
MS
47672003-07-30 Michael Snyder <msnyder@redhat.com>
4768
4e7d7511 4769 * value.h (value_being_returned): Add a struct_addr argument.
a8f4cde1 4770 * infcall.c (call_function_by_hand): Pass struct_addr to
c48a845b
MS
4771 value_being_returned.
4772 * infcmd.c (print_return_value): Pass zero as struct_addr.
4773 * values.c (value_being_returned): If struct_addr is passed,
4774 use it instead of trying to recover it from the inferior.
4775
f0d8db19
KB
47762003-07-30 Kevin Buettner <kevinb@redhat.com>
4777
4778 * mn10300-tdep.c (analyze_dummy_frame): Pass ``pc'' so that
4779 the prologue analyzer won't need to attempt to extract the pc
4780 value from the woefully incomplete dummy frame.
4781 (mn10300_analyze_prologue): Avoid calls to get_frame_pc() when
4782 possible. Disable code which modifies the frame.
4783
e5c113a1
AC
47842003-07-28 Andrew Cagney <cagney@redhat.com>
4785
4786 * annotate.c (annotate_breakpoints_headers): Restrict annotation
4787 to level 2.
4788 (annotate_breakpoints_table, annotate_record): Ditto.
4789 (annotate_breakpoints_table_end, annotate_field_begin): Ditto.
4790 (annotate_field_name_end, annotate_field_value): Ditto.
4791 (annotate_field_end, annotate_frame_source_begin): Ditto.
4792 (annotate_frame_source_file, annotate_frame_source_file_end): Ditto.
4793 (annotate_frame_source_line, annotate_frame_source_end): Ditto.
4794 (annotate_frame_begin, annotate_frame_function_name): Ditto.
4795 (annotate_frame_address_end, annotate_frame_address): Ditto.
4796 (annotate_frame_args, annotate_frame_end): Ditto.
4797 (annotate_frame_where, annotate_arg_begin): Ditto.
4798 (annotate_arg_name_end, annotate_arg_value): Ditto.
4799 (annotate_arg_end, annotate_signal_handler_caller): Ditto.
4800 (annotate_function_call, annotate_signal_name): Ditto.
4801 (annotate_signal_string, annotate_signal_name_end): Ditto.
4802 (annotate_signal_string_end, annotate_value_history_begin): Ditto.
4803 (annotate_value_begin, annotate_value_history_value): Ditto.
4804 (annotate_value_history_end, annotate_value_end): Ditto.
4805 (annotate_display_begin, annotate_display_number_end): Ditto.
4806 (annotate_display_format, annotate_display_expression): Ditto.
4807 (annotate_display_expression_end, annotate_display_value): Ditto.
4808 (annotate_display_end, annotate_array_section_begin): Ditto.
4809 (annotate_elt_rep, annotate_elt_rep_end): Ditto.
4810 (annotate_elt, annotate_array_section_end): Ditto.
4811
bb1db049
AC
48122003-07-28 Andrew Cagney <cagney@redhat.com>
4813
4814 * regcache.c (struct regcache_descr): Update comments on
4815 nr_raw_registers.
4816 (init_legacy_regcache_descr): Don't set nr_raw_registers or
4817 sizeof_raw_register_valid_p.
4818 (init_regcache_descr): Set nr_raw_registers and
4819 sizeof_raw_register_valid_p before calling
4820 init_legacy_regcache_descr.
4821
20e6603c
AC
48222003-07-28 Andrew Cagney <cagney@redhat.com>
4823
4824 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4825 MOD NUM_REGS.
4826
db742940
DJ
48272003-07-28 Daniel Jacobowitz <drow@mvista.com>
4828
4829 * thread.c (info_threads_command): Use get_selected_frame ().
4830 Check that there is at least one non-sentinel frame.
4831
ce7f4371
SC
48322003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4833
4834 * m68hc11-tdep.c (struct frame_extra_info): Remove.
4835 (m68hc11_pop_frame): Remove.
4836 (m68hc11_frame_saved_pc): Remove.
4837 (m68hc11_frame_chain): Remove.
4838 (m68hc11_frame_init_saved_regs): Remove.
4839 (m68hc11_init_extra_frame_info): Remove.
4840 (m68hc11_store_struct_return): Remove.
4841 (m68hc11_saved_pc_after_call): Remove.
4842
1ea653ae
SC
48432003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4844
4845 * m68hc11-tdep.c (struct m68hc11_unwind_cache): New struct to hold
4846 frame unwind information.
4847 (m68hc11_scan_prologue): New function from m68hc11_guess_from_prologue
4848 and adapted for frame unwinding.
4849 (m68hc11_skip_prologue): Update to scan prologue in temporary object.
4850 (m68hc11_unwind_pc): New function.
4851 (m68hc11_frame_unwind_cache): New function to analyze frames.
4852 (m68hc11_frame_this_id): New function to create new frame struct.
4853 (m68hc11_frame_prev_register): New function to unwind a register from
4854 the frame.
4855 (m68hc11_frame_unwind): Default 68hc11/68hc12 unwinder.
4856 (m68hc11_frame_p): New function for the above.
4857 (m68hc11_frame_base_address): New function to return fp of frame.
4858 (m68hc11_frame_args_address): Update for frame.
4859 (m68hc11_frame_base): Default 68hc11/68hc12 frame.
4860 (m68hc11_unwind_sp): New function.
4861 (m68hc11_unwind_dummy_id): New function.
4862 (m68hc11_gdbarch_init): Install the above frames; remove deprecated
4863 calls.
4864
c8a7f6ac
SC
48652003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4866
4867 * m68hc11-tdep.c (m68hc11_analyze_instruction): Don't advance the pc.
4868 (m68hc11_guess_from_prologue): Advance the pc and frame size only
4869 when we are beyond the current pc.
4870
3dc990bf
SC
48712003-07-27 Stephane Carrez <stcarrez@nerim.fr>
4872
4873 * m68hc11-tdep.c (m68hc11_push_dummy_call): New function adapted
4874 from m68hc11_push_arguments.
4875 (m68hc11_push_arguments): Remove.
4876 (m68hc11_push_return_address): Remove.
4877 (m68hc11_gdbarch_init): Install the above; remove above deprecated
4878 handlers; remove deprecated_extra_stack_alignment_needed.
4879
222e5d1d
AC
48802003-07-27 Andrew Cagney <cagney@redhat.com>
4881
4882 * config/pa/tm-hppa.h (init_frame_pc_default): Declare.
4883 * infcall.c (legacy_push_dummy_code) [GDB_TARGET_IS_HPPA]: Update
4884 REAL_PC and not the pointer.
4885 * hppa-hpux-tdep.c: Include frame.h
4886
a7e9a47e
AC
48872003-07-27 Andrew Cagney <cagney@redhat.com>
4888
4889 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4890 GDB_MULTI_ACH_PARTIAL.
4891
7e3dd49e
AC
48922003-07-27 Andrew Cagney <cagney@redhat.com>
4893
4894 Patch from 2003-07-22 Kei Sakamoto <sakamoto.kei@renesas.com>:
4895 * m32r-tdep.c (m32r_memory_insert_breakpoint): Fix code style -
4896 operator at start and not end of line.
4897 (decode_prologue): Ditto.
4898 (m32r_frame_unwind_cache, m32r_unwind_sp, m32r_unwind_pc): Use
4899 frame_unwind_register_unsigned instead of
4900 frame_unwind_unsigned_register.
4901 (m32r_read_pc): Use regcache_cooked_read_unsigned instead of
4902 read_register.
4903 (m32r_push_dummy_call): Use register_size instead of
4904 REGISTER_RAW_SIZE.
4905 (m32r_frame_sniffer): Replace m32r_frame_p.
4906 (m32r_gdbarch_init): Call frame_unwind_append_sniffer.
4907 * m32r-rom.c (report_transfer_performance): Delete extern
4908 declaration.
4909 (m32r_load, m32r_upload_command): Use print_transfer_performance
4910 instead of report_transfer_performance.
4911 (_initialize_m32r_rom): Use add_setshow_cmd instead of add_set_cmd
4912 / add_show_from_set.
4913
0880807f
AC
49142003-07-26 Andrew Cagney <cagney@redhat.com>
4915
4916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4917 store_return_value and extract_struct_value_address.
4918
64ae9269
DJ
49192003-07-26 Daniel Jacobowitz <drow@mvista.com>
4920
4921 PR c++/1267
4922 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4923 NULL, default to the section containing PC.
4924
e286caf2
SC
49252003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4926
4927 * NEWS: Mention "regs" deprecated for m68hc11 too.
4928
4929 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Deprecate "regs" command.
4930 (m68hc11_print_register): New function to print out one register.
4931 (m68hc11_print_registers_info): New function to print registers.
4932 (show_regs): Deprecate and use the above.
4933 (m68hc11_gdbarch_init): Install the print_registers_info.
4934
705b278b
JJ
49352003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4936
4937 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4938 that we have a SIGTRAP before returning non-zero.
4939
63cd4198
EZ
49402003-07-23 Michal Ludvig <mludvig@suse.cz>
4941 Elena Zannoni <ezannoni@redhat.com>
4942
a8f4cde1 4943 * linespec.c (decode_line_2): Avoid crash if
63cd4198
EZ
4944 find_function_start_sal() returns empty record.
4945
6926787d
AS
49462003-07-23 Andreas Schwab <schwab@suse.de>
4947
4948 * ia64-tdep.c (ia64_print_insn): New function.
4949 (ia64_gdbarch_init): Set print_insn to it.
4950 (_initialize_ia64_tdep): Don't set deprecated_tm_print_insn and
4951 deprecated_tm_print_insn_info.
4952
708cc1b6
MS
49532003-07-22 Michael Snyder <msnyder@redhat.com>
4954
4955 * h8300-tdep.c (h8300_extract_return_value): Teach it how to
4956 handle 8-bit returns (long long).
4957 (h8300h_extract_return_value): Ditto.
4958 (h8300_gdbarch_init): Long long is 8 bytes, char is unsigned.
4959
aebd7893
AC
49602003-07-22 Andrew Cagney <cagney@redhat.com>
4961
4962 * gdbarch.c Include "gdb_obstack.h".
4963 (struct gdbarch): Add an "obstack".
4964 (alloc_gdbarch_data): Allocate the gdbarch data using
4965 GDBARCH_OBSTACK_CALLOC.
4966 (free_gdbarch_data): Delete function.
4967 (gdbarch_obstack_zalloc): New function.
4968 (gdbarch_free): Free the obstack, do not call free_gdbarch_data.
4969 Assert that the architecture is not initialized.
4970 (gdbarch_alloc): Allocate an obstack, allocate the architecture
4971 vector from the obstack.
4972 (alloc_gdbarch_data, init_gdbarch_swap): Allocate memory using the
4973 architecture obstack.
4974 (GDBARCH_OBSTACK_CALLOC, GDBARCH_OBSTACK_ZALLOC): Define.
4975 (set_gdbarch_data): Assert that the data is not initialized.
4976 (struct gdbarch_data): Delete member "free".
4977 (register_gdbarch_data): Do not initialize "free".
4978 * gdbarch.h, gdbarch.c: Re-generate.
a8f4cde1 4979
153721e6
AC
49802003-07-22 Andrew Cagney <cagney@redhat.com>
4981
4982 * configure.in (build_warnings): Add -Wformat-nonliteral.
4983 * configure: Re-generate.
4984
c193f044 49852003-07-22 Elena Zannoni <ezannoni@redhat.com>
32ffcbed
EZ
4986
4987 * dwarf2loc.c (locexpr_describe_location): Fix typos.
c193f044 4988
c3228f12
EZ
49892003-07-22 Elena Zannoni <ezannoni@redhat.com>
4990
4991 * findvar.c (read_var_value): Remove case for thread local storage
4992 variables. It is now entirely handled by the dwarf2 location
4993 expression code.
4994 * printcmd.c (address_info): Ditto.
4995 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
4996 enumeration value.
4997 (struct symbol): Remove objfile field, which was used by
4998 LOC_THREAD_LOCAL_STATIC only.
4999 * dwarf2read.c (decode_locdesc): Remove is_thread_local variable.
5000 * dwarf2loc.h (struct dwarf2_loclist_baton): Add comment about
5001 usage of objfile pointer.
5002 * dwarf2loc.c (locexpr_describe_location): Add case to handle
5003 thread local variables.
5004 Add include of objfiles.h.
5005 * dwarf2expr.c (execute_stack_op): Add comments about thread local
5006 storage variables.
5007 * Makefile.in (dwarf2loc.o): Update dependencies.
5008
aef9bcd2
AC
50092003-07-22 Andrew Cagney <cagney@redhat.com>
5010
5011 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
5012 get_frame_base.
5013 (FRAME_BASE_BEFORE_SIGTRAMP): Ditto.
5014 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Ditto.
5015 (struct value): Add opaque declaration.
5016 (DEPRECATED_FRAME_ARGS_ADDRESS): Delete.
5017
d95a8903
AC
50182003-07-21 Andrew Cagney <cagney@redhat.com>
5019
5020 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5021 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5022
4db73d49
SC
50232003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5024
a8f4cde1 5025 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
4db73d49
SC
5026 regcache_cooked_read_unsigned instead of read_register.
5027 (m68hc11_saved_pc_after_call): Likewise.
5028 (m68hc11_pseudo_register_write): Use regcache_cooked_write_unsigned
5029 instead of write_register.
5030 (m68hc11_register_type): New function.
5031 (m68hc11_register_virtual_type): Remove.
5032 (m68hc11_store_return_value): Convert to use the regcache.
5033 (m68hc11_extract_struct_value_address): Likewise.
5034 (m68hc11_gdbarch_init): Remove deprecated ops for register to use
5035 m68hc11_register_type; undeprecate store_return_value and
5036 extract_struct_value_address.
5037
ef2b8fcd
SC
50382003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5039
5040 * m68hc11-tdep.c (m68hc11_extract_return_value): Use regcache_raw_read
5041 and translate to use regcache.
5042 (m68hc11_gdbarch_init): Undeprecate extract_return_value.
5043
625b0b97
AC
50442003-07-18 Andrew Cagney <cagney@redhat.com>
5045
5046 * gdbarch.sh (DWARF2_BUILD_FRAME_INFO): Delete method.
5047 * gdbarch.h, gdbarch.c: Re-generate.
5048 * i386-tdep.c (i386_gdbarch_init): Do not set
5049 DWARF2_BUILD_FRAME_INFO.
5050 * elfread.c (elf_symfile_read): Call dwarf2_build_frame_info
5051 unconditionally.
5052 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5053 DWARF2_BUILD_FRAME_INFO.
5054
22b0d388
AC
50552003-07-18 Andrew Cagney <cagney@redhat.com>
5056
5057 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5058 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5059
1ce5d6dd
AC
50602003-07-18 Andrew Cagney <cagney@redhat.com>
5061
5062 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5063 frame_unwind_address_in_block, instead of frame_pc_unwind.
5064 (dwarf2_frame_cache): Ditto.
5065
e6e5e94c
AC
50662003-07-18 Andrew Cagney <cagney@redhat.com>
5067
5068 * user-regs.h (struct gdbarch): Declare opaque.
5069 * ui-out.h (struct ui_file): Declare opaque.
5070 * dwarf2-frame.h (struct frame_info): Declare opaque.
5071
5483d879
KW
50722003-07-18 Kris Warkentin <kewarken@qnx.com>
5073
5074 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5075 #include "...".
5076 (procfs_meminfo): Change strerror to safe_strerror.
5077 (procfs_can_run): Remove K&R badness.
5078
278a7cf7
MS
50792003-07-17 Michael Snyder <msnyder@redhat.com>
5080
5081 * remote-sim.c: Comment typo fix.
5082
606e3b82
AC
50832003-07-17 Andrew Cagney <cagney@redhat.com>
5084
5085 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
5086 configure.
5087 * sparc-tdep.c (sparc_intreg_size): Make non-static.
5088 * config/sparc/tm-sparc.h (GDB_MULTI_ARCH): Define to
5089 GDB_MULTI_ARCH_PARTIAL.
5090
c43af07c
EZ
50912003-07-17 Elena Zannoni <ezannoni@redhat.com>
5092
5093 * Makefile.in (x86-64-linux-nat.o): Update dependencies.
5094 * x86-64-linux-nat.c (ps_get_thread_area): New function. Add
5095 include of asm/prctl.h, asm/ptrace.h, and gdb_proc_service.h.
5096
3b85b0f1
TR
50972003-07-16 Theodore A. Roth <troth@openavr.org>
5098
5099 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5100 found.
5101 (avr_frame_unwind_cache): Don't unwind FP for main.
5102 Update a comment.
5103 Save the computed prev_sp.
5104 (avr_saved_regs_unwinder): Remove function.
a8f4cde1 5105 (avr_frame_prev_register): Use PC unwind logic from
3b85b0f1
TR
5106 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5107
336d1bba
AC
51082003-07-16 Andrew Cagney <cagney@redhat.com>
5109
5110 * frame-base.h (frame_base_p_ftype): Delete definition.
5111 (frame_base_append_predicate): Delete declaration.
5112 * frame-unwind.h (frame_unwind_p_ftype): Delete definition.
5113 (frame_unwind_append_predicate): Delete declaration.
5114 * frame-unwind.c (struct frame_unwind_table): Delete field "p".
5115 (append_predicate): Delete parameter "p".
5116 (frame_unwind_append_predicate): Delete function.
5117 (frame_unwind_append_sniffer): Update call to append_predicate.
5118 (frame_unwind_free): Delete function.
5119 (_initialize_frame_unwind): Pass NULL as "free" to
5120 register_gdbarch_data.
5121 (frame_unwind_init): Append the dummy_frame_sniffer.
5122 (frame_unwind_find_by_frame): Simplify.
5123 * frame-base.c (struct frame_base_table): Delete field "p".
5124 (append_predicate): Delete parameter "p".
5125 (frame_base_append_predicate): Delete function.
5126 (frame_base_append_sniffer): Update call to append_predicate.
5127 (frame_base_free): Delete function.
5128 (frame_base_find_by_frame): Simplify.
5129 (_initialize_frame_base): Pass NULL as "free" to
5130 register_gdbarch_data.
5131 * x86-64-tdep.c (x86_64_frame_sniffer): Replace "x86_64_frame_p".
5132 (x86_64_sigtramp_frame_sniffer): Replace
5133 "x86_64_sigtramp_frame_p".
5134 (x86_64_init_abi): Set the frame unwind sniffers.
5135 * m68k-tdep.c (m68k_frame_sniffer): Replace "m68k_frame_p".
5136 (m68k_sigtramp_frame_sniffer): Replace "m68k_sigtramp_frame_p"
5137 (m68k_gdbarch_init): Set the frame unwind sniffers.
5138 * i386-tdep.c (i386_sigtramp_frame_sniffer): Replace
5139 "i386_sigtramp_frame_p".
5140 (i386_frame_sniffer): Replace "i386_frame_p".
5141 (i386_gdbarch_init): Set the frame unwind sniffers.
5142 * avr-tdep.c (avr_frame_sniffer): Replace "avr_frame_sniffer".
5143 (avr_gdbarch_init): Set the frame unwind sniffers.
5144 * alpha-tdep.c (alpha_sigtramp_frame_sniffer): Replace
5145 "alpha_sigtramp_frame_p"
5146 (alpha_heuristic_frame_sniffer): Replace
5147 "alpha_heuristic_frame_p".
5148 (alpha_gdbarch_init): Set the frame unwind sniffers.
5149 (alpha_dwarf2_init_abi): Ditto.
5150 * alpha-mdebug-tdep.c (alpha_mdebug_frame_sniffer): Replace
5151 "alpha_debug_frame_p".
5152 (alpha_mdebug_frame_base_sniffer): Replace
5153 "alpha_mdebug_frame_base_p".
5154 (alpha_mdebug_init_abi): Set the frame unwind sniffers.
5155 * d10v-tdep.c (d10v_frame_sniffer): Replace "d10v_frame_p".
5156 (d10v_gdbarch_init): Set the frame unwind sniffer.
5157 * dwarf2-frame.c (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5158 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5159 * dwarf2-frame.h (dwarf2_frame_sniffer): Replace "dwarf2_frame_p".
5160 (dwarf2_frame_base_sniffer): Replace "dwarf2_frame_base_p".
5161 * dummy-frame.c (dummy_frame_sniffer): Replace "dummy_frame_p".
5162 * dummy-frame.h (dummy_frame_sniffer): Replace "dummy_frame_p".
5163
48db5a3c
CV
51642003-07-16 Michael Snyder <msnyder@redhat.com>
5165
5166 * sh-tdep.c (sh_gdbarch_init): Fetch_registers for the sh3-dsp
5167 should go thru sh_dsp_register_sim_regno, else the dsp regs
5168 will not get the right values.
5169
51702003-07-16 Corinna Vinschen <vinschen@redhat.com>
5171
5172 * sh-tdep.c (sh_sh4_register_convert_to_virtual): Substitute call to
5173 deprecated_store_floating by call to store_typed_floating.
5174 (sh_sh4_register_convert_to_raw): Substitute call to
5175 deprecated_extract_floating by call to extract_typed_floating.
5176
51772003-07-16 Corinna Vinschen <vinschen@redhat.com>
5178
5179 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5180
51812003-07-16 Corinna Vinschen <vinschen@redhat.com>
5182
5183 * sh-tdep.c: Substitute calls to REGISTER_RAW_SIZE by calls to
5184 register_size and calls to REGISTER_VIRTUAL_TYPE by calls to
5185 gdbarch_register_type in 32 bit code throughout. Avoid current_gdbarch
5186 as possible.
5187 (do_pseudo_register): Remove.
5188 (sh_push_dummy_code): New function.
5189 (sh64_store_struct_return): Rename from sh_store_struct_return.
5190 Only called for sh64 now.
5191 (sh_extract_struct_value_address): Regcache'ify.
5192 (sh_push_dummy_call): Rename from sh_push_arguments. Regcache'ify
5193 and accomodate new tasks.
5194 (sh64_push_return_address): Rename from sh_push_return_address.
5195 Only called for sh64 now.
5196 (sh_default_extract_return_value): Rename from sh_extract_return_value.
5197 Regcache'ify.
5198 (sh3e_sh4_extract_return_value): Regcache'ify.
5199 (sh_default_store_return_value): Ditto.
5200 (sh3e_sh4_store_return_value): Ditto.
5201 (sh_default_register_byte): Remove.
5202 (sh_sh4_register_byte): Remove.
5203 (sh_default_register_raw_size): Remove.
5204 (sh_sh4_register_raw_size): Remove.
5205 (sh_register_virtual_size): Remove.
5206 (sh_sh3e_register_virtual_type): Remove.
5207 (sh_sh3e_register_type): New function.
5208 (sh_sh4_register_virtual_type): Remove.
5209 (sh_sh4_register_type): New function.
5210 (sh_default_register_virtual_type): Remove.
5211 (sh_default_register_type): New function.
5212 (do_fv_register_info): Add parameters to accomodate call from
5213 sh_print_registers_info.
5214 (do_dr_register_info): Ditto.
5215 (sh_print_pseudo_register): Rename from sh_do_pseudo_register.
5216 Add parameters to accomodate call from sh_print_registers_info.
5217 (sh_do_fp_register): Ditto.
5218 (sh64_do_pseudo_register): Call do_dr_register_info,
5219 do_fv_register_info and sh_do_fp_register with default parameters.
5220 (sh_do_register): Add parameters to accomodate call from
5221 sh_print_registers_info.
5222 (sh_print_register): Ditto.
5223 (sh_print_registers_info): Rename from sh_do_registers_info.
5224 Add parameters to be used as gdbarch_print_registers_info
5225 implementation. Accomodate removed do_pseudo_register function
5226 pointer.
5227 (sh_compact_do_registers_info): Accomodate removed do_pseudo_register
5228 function pointer. Call sh_print_register with default parameters.
5229 (sh64_do_registers_info): Call sh_print_registers_info instead of
5230 sh_do_registers_info.
5231 (sh_gdbarch_init): Rearrange to cleanup and to allow easier
5232 detection of deprecated vs. non-deprecated functionality.
5233 Rename sh_call_dummy_words to sh64_call_dummy_words. Remove
5234 function pointer assignments by direct function calls.
5235
e8a89fe2
AC
52362003-07-15 Andrew Cagney <cagney@redhat.com>
5237
5238 * frame.c (get_frame_id): Use frame_unwind_find_by_frame.
5239 (frame_register_unwind, create_new_frame): Ditto.
5240 (legacy_get_prev_frame, get_frame_type): Ditto.
5241 (get_frame_base_address): Use frame_base_find_by_frame.
5242 (get_frame_locals_address): Use frame_base_find_by_frame.
5243 (get_frame_args_address): Use frame_base_find_by_frame.
5244 * frame-base.h (frame_base_sniffer_ftype): Declare.
5245 (frame_base_append_sniffer): Declare.
5246 (frame_base_find_by_frame): Replace frame_base_find_by_pc.
5247 * frame-base.c (append_predicate): Add a "sniffer" parameter.
5248 (frame_base_append_sniffer): New function.
5249 (frame_base_append_predicate): Add a NULL sniffer.
5250 (frame_base_find_by_frame): Replace "frame_base_find_by_pc".
5251 (struct frame_base_table): Add "sniffer".
5252 (frame_base_free): Free the "sniffer" table.
5253 * frame-unwind.h (frame_unwind_sniffer_ftype): Define.
5254 (frame_unwind_append_sniffer): Declare.
5255 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5256 * frame-unwind.c (frame_unwind_free): Free the "sniffer" table.
5257 (struct frame_unwind_table): Add "sniffer", delete "middle".
5258 (append_predicate): Add "sniffer" parameter, append the sniffer.
5259 (frame_unwind_init): Update append_predicate call.
5260 (frame_unwind_append_sniffer): New function.
5261 (frame_unwind_append_predicate): Update append_predicate call.
5262 (frame_unwind_find_by_frame): Replace frame_unwind_find_by_pc.
5263
0714963c
AC
52642003-07-15 Andrew Cagney <cagney@redhat.com>
5265
5266 * frame.c (get_prev_frame): Move disabled inside_entry_func to
5267 before code inhibiting repeated unwind attempts. Add to
5268 commentary on that test's problems.
5269 * blockframe.c (inside_main_func): Look for "main" in the minimal
5270 symbol table.
5271 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5272 identical.
5273
d9170e22
AC
52742003-07-15 Andrew Cagney <cagney@redhat.com>
5275
5276 * complaints.c (struct explanation): Define.
5277 (struct complaints): Change type of "explanation" to "struct
5278 explanation".
5279 (symfile_explanations): Convert to a "struct explanation" table.
5280 (vcomplaint): Update.
5281
eba29c8c
ML
52822003-07-15 Michal Ludvig <mludvig@suse.cz>
5283
5284 * x86-64-linux-nat.c (regmap): Removed.
a8f4cde1 5285 (supply_gregset, fill_gregset): Call
eba29c8c
ML
5286 x86_64_linux_(fill,supply)_gregset functions.
5287 * x86-64-linux-tdep.c (USER_*): New defines.
5288 (user_to_gdb_regmap, x86_64_core_fns): New structure.
5289 (x86_64_linux_supply_gregset, x86_64_linux_fill_gregset):
5290 New functions.
5291 (fetch_core_registers): Ditto.
5292 (_initialize_x86_64_linux_tdep): Call add_core_fns().
5293 * x86-64-linux-tdep.h: New file.
5294 * config/i386/x86-64linux.mh (NATDEPFILES): Remove corelow.o
5295 and core-regset.o.
5296 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5297
68cc0bfb
MK
52982003-07-13 Mark Kettenis <kettenis@gnu.org>
5299
88a115f7
MK
5300 * x86-64-tdep.c (x86_64_store_return_value): Use
5301 regcache_cooked_write_part instead of regcache_cooked_write.
01e4b823 5302
68cc0bfb
MK
5303 * configure.host: Add x86_64-*-freebsd*.
5304 * configure.tgt: Add x86_64-*-freebsd*.
5305 * Makefile.in (amd64fbsd-nat.o, amd64fbsd-tdep.o): New targets.
5306 * amd64fbsd-nat.c: New file.
5307 * amd64fbsd-tdep.c: New file.
5308 * config/i386/nm-fbsd64.h: New file.
5309 * config/i386/fbsd64.mh: New file.
5310 * config/i386/fbsd64.mt: New file.
5311
138e7be5
MK
53122003-07-11 Mark Kettenis <kettenis@gnu.org>
5313
5314 * alpha-tdep.h (struct gdbarch_tdep): Add members `sc_pc_offset',
5315 `sc_regs_offset' and `sc_fpregs_offset'.
5316 * alpha-tdep.c (SIGFRAME_PC_OFF, SIGFRAME_REGSAVE_OFF,
5317 SIGFRAME_FPREGSAVE_OFF): Remove defines.
5318 (alpha_sigtramp_register_address): Rewrite to use new members of
5319 `struct gdbarch_tdep'.
5320 (alpha_gdbarch_init): Initialize new members of struct
5321 gdbarch_tdep'.
5322 * alphafbsd-tdep.c (alphafbsd_use_struct_convention): Use
5323 ALPHA_REGISTER_SIZE instead of DEPRECATED_REGISTER_SIZE.
5324 (alphafbsd_sigtramp_start, alphafbsd_sigtramp_end): Nre variables.
5325 (alphafbsd_pc_in_sigtramp): Implement.
5326 (alphafbsd_sigtramp_offset): New function.
5327 (alphafbsd_sigcontext_addr): New function.
5328 (alphafbsd_init_abi): Initialize signal trampoline related members
5329 of `struct gdbarch_tdep'.
5330 (_initialize_alphafbsd_tdep): Add prototype.
5331
95303a68
TR
53322003-07-11 Theodore A. Roth <troth@openavr.org>
5333
ba292e4c
TR
5334 * Makefile.in (install-only): Quote sed expression when generating
5335 transformed_name.
95303a68 5336
6896c0c7
RH
53372003-07-11 Richard Henderson <rth@redhat.com>
5338
5339 * Makefile.in (dwarf2-frame.o): Add complaints_h.
5340 * dwarf2-frame.c: Include complaints.h.
5341 (decode_frame_entry_1): Rename from decode_frame_entry; tidy
5342 variable initialization; return NULL on error.
5343 (decode_frame_entry): New.
5344
8edd5d01
AC
53452003-07-11 Andrew Cagney <cagney@redhat.com>
5346
c4a09524
AC
5347 * frame.h (frame_address_in_block): Delete declaration.
5348 * blockframe.c (frame_address_in_block): Delete function.
5349 (get_frame_block): Use get_frame_address_in_block.
5350 (block_innermost_frame): Ditto.
5351 * stack.c (print_frame, backtrace_command_1): Ditto.
5352
8edd5d01
AC
5353 * frame.h (get_frame_address_in_block): Declare.
5354 (frame_unwind_address_in_block): Declare.
5355 * frame.c (frame_unwind_address_in_block): New function.
5356 (get_frame_address_in_block): New function.
5357
f7968451
AC
53582003-07-10 Andrew Cagney <cagney@redhat.com>
5359
5360 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5361 pre-default. Note: re-generate has no effect.
a8f4cde1 5362
ae99b398
AC
53632003-07-10 Andrew Cagney <cagney@redhat.com>
5364
5365 * gdbarch.sh: When a variable, but not a function, compare against
5366 0. Fix problem in previous patch.
5367 * gdbarch.c: Re-generate.
a8f4cde1 5368
956ac328
AC
53692003-07-10 Andrew Cagney <cagney@redhat.com>
5370
5371 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5372 functions against NULL, not 0.
5373 * gdbarch.c: Re-generate.
a8f4cde1 5374
287c3240
FF
53752003-07-10 Fred Fish <fnf@ninemoons.com>
5376
5377 * coff-solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Default to a
5378 null string instead of a null pointer.
5379 * solib.h (SOLIB_LOADED_LIBRARY_PATHNAME): Ditto.
5380
32f63c4b
MS
53812003-07-09 Michael Snyder <msnyder@redhat.com>
5382
5383 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5384
402ecd56
MK
53852003-07-09 Mark Kettenis <kettenis@gnu.org>
5386
5387 * x86-64-tdep.h (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM,
5388 X86_64_RDI_REGNUM, X86_64_RBP_REGNUM, X86_64_RSP_REGNUM,
5389 X86_64_RIP_REGNUM, X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM,
5390 X86_64_XMM0_REGNUM, X86_64_XMM1_REGNUM): Moved here ...
5391 * x86-64-tdep.c: ... from here.
5392
c481dac7
AS
53932003-07-09 Andreas Schwab <schwab@suse.de>
5394
5395 * m68k-tdep.h (enum struct_return): Define.
5396 (struct gdbarch_tdep): Add struct_return.
5397 * m68k-tdep.c (m68k_push_dummy_call): Non-scalars bigger than 4
5398 bytes are padded to the right, not to the left. Pass struct value
5399 address in register %a1, not on stack.
5400 (m68k_use_struct_convention): New function.
5401 (m68k_gdbarch_init): Set use_struct_convention. Initialize
5402 struct_return in tdep to pcc_struct_return.
5403 * m68klinux-tdep.c (m68k_linux_init_abi): Set struct_return to
5404 reg_struct_return.
5405
a8f4cde1 54062003-07-09 Joel Brobecker <brobecker@gnat.com>
64176fa3 5407
a8f4cde1 5408 * somread.c (som_symfile_offsets): Fix compilation error.
64176fa3 5409
96a4ee76
AC
54102003-07-09 Andrew Cagney <cagney@redhat.com>
5411
5412 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5413 Add comments about the checks.
5414
1517c6d1
AC
54152003-07-08 Andrew Cagney <cagney@redhat.com>
5416
5417 * Makefile.in: Make dependency section headers consistent.
5418 (config_h): Move to $BUILD headers section.
5419 (exc_request_U_h, exc_request_S_h, msg_reply_S_h): Ditto.
5420 (msg_U_h, notify_S_h, process_reply_S_h): Ditto.
5421 (ada-exp.tab.c): Move to YACC/LEX section.
5422 (ada-lex.c, c-exp.tab.c, f-exp.tab.c): Ditto.
5423 (jv-exp.tab.c, m2-exp.tab.c, objc-exp.tab.c, p-exp.tab.c): Ditto.
5424
dc5dd1eb
KW
54252003-07-08 Kris Warkentin <kewarken@qnx.com>
5426
5427 * nto-procfs.c: Cleaned up a bunch of ARI hits.
fda848e0
KW
5428 Include "gdb_dirent.h" instead of <dirent.h>, replace all instances
5429 of strerror with safe_strerror, use ISO C function definitions,
5430 and replace instances of sprintf with snprintf.
dc5dd1eb 5431
612dde91
AC
54322003-07-07 Andrew Cagney <cagney@redhat.com>
5433
5434 * frame.c (get_prev_frame): Enable check for identical frames.
5435 Update comments. Update error messages.
5436
492c11d3
JB
54372003-07-07 Joel Brobecker <brobecker@gnat.com>
5438
5439 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5440
376a5a49
JB
54412003-07-07 Joel Brobecker <brobecker@gnat.com>
5442
5443 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5444 sort_symtab_syms, no longer necessary.
5445
22b4a9ad
JB
54462003-07-07 Joel Brobecker <brobecker@gnat.com>
5447
5448 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5449
5bbcb741
JB
54502003-07-07 Joel Brobecker <brobecker@gnat.com>
5451
5452 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5453 (mips_register_byte): Likewise.
5454
c139e7d9
DJ
54552003-07-07 Daniel Jacobowitz <drow@mvista.com>
5456
5457 * Makefile.in (sparc_tdep_h): New.
5458 (sparc-linux-nat.o, sparc-nat.o, sparc-tdep.o, sparc64nbsd-nat.o)
5459 (sparcnbsd-nat.o, sparcnbsd-tdep.o): Depend on $(sparc_tdep_h).
5460 * sparc-linux-nat.c: Include "sparc-tdep.h".
5461 * sparc-nat.c: Likewise.
5462 * sparc-tdep.c: Likewise.
5463 * sparc64nbsd-nat.c: Likewise.
5464 * sparcnbsd-nat.c: Likewise.
5465 * sparcnbsd-tdep.c: Likewise.
5466 * sparc-tdep.h: New file.
5467 * config/sparc/tm-sparc.h: Remove prototypes for sparc_y_regnum
5468 and sparc_npc_regnum.
5469
fd8f87c5
DJ
54702003-07-07 Daniel Jacobowitz <drow@mvista.com>
5471
5472 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5473 (mips_linux_cannot_store_register): List supported instead of
5474 unsupported registers.
5475
13adf674
DJ
54762003-07-07 Daniel Jacobowitz <drow@mvista.com>
5477
5478 * disasm.c (dump_insns): Separate instructions from addresses.
5479
8de307e0
AS
54802003-07-07 Andreas Schwab <schwab@suse.de>
5481
5482 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
5483 dependencies.
5484 * m68k-tdep.c (NUM_FREGS): Delete.
5485 (SIG_PC_FP_OFFSET): Delete.
5486 (TARGET_M68K): Delete.
5487 (P_MOVEAL_SP_FP, P_ADDAW_SP, P_ADDAL_SP, P_SUBQW_SP,
5488 P_SUBQL_SP, P_LEA_SP_SP, P_LEA_PC_A5, P_FMOVEMX_SP,
5489 P_MOVEL_SP, P_MOVEML_SP): Define.
5490 (P_MOVL_SP_FP, P_MOVL, P_JSR, P_BSR, P_LEAL, P_MOVML, P_FMOVM,
5491 P_TRAP): Delete.
5492 (m68k_register_raw_size): Delete.
5493 (m68k_register_virtual_size): Delete.
5494 (m68k_register_type): Renamed from m68k_register_virtual_type and
5495 add gdbarch argument.
5496 (m68k_store_struct_return): Delete.
5497 (m68k_deprecated_extract_return_value): Delete.
5498 (m68k_deprecated_extract_struct_value_address): Delete.
5499 (m68k_frame_chain): Delete.
5500 (m68k_frame_saved_pc): Delete.
5501 (m68k_fix_call_dummy): Delete.
5502 (m68k_push_dummy_frame): Delete.
5503 (m68k_pop_frame): Delete.
5504 (m68k_extract_return_value): New function.
5505 (m68k_store_return_value): Rewrite using regcache.
5506 (m68k_extract_struct_value_address): Rewrite using regcache.
5507 (m68k_push_dummy_call): New function.
5508 (struct m68k_frame_cache): Define.
5509 (m68k_alloc_frame_cache): New function.
5510 (m68k_analyze_frame_setup): New function.
5511 (m68k_analyze_register_saves): New function.
5512 (m68k_analyze_prologue): New function.
5513 (m68k_skip_prologue): Rewrite using above functions.
5514 (m68k_unwind_pc): New function.
5515 (m68k_frame_cache): New function.
5516 (m68k_frame_this_id): New function.
5517 (m68k_frame_prev_register): New function.
5518 (m68k_frame_unwind): New variable.
5519 (m68k_frame_p): New function.
5520 (m68k_sigtramp_frame_cache): New function.
5521 (m68k_sigtramp_frame_this_id): New function.
5522 (m68k_sigtramp_frame_prev_register): New function.
5523 (m68k_sigtramp_frame_unwind): New variable.
5524 (m68k_sigtramp_frame_p): New function.
5525 (m68k_frame_base_address): New function.
5526 (m68k_frame_base): New function.
5527 (m68k_unwind_dummy_id): New function.
5528 (fill_gregset): Use regcache_collect.
5529 (fill_fpregset): Likewise.
5530 (m68k_saved_pc_after_call): Only define if SYSCALL_TRAP is
5531 defined.
5532 (m68k_gdbarch_init): Don't define call_dummy_words. Don't set
5533 deprecated_init_frame_pc, deprecated_store_struct_return,
5534 deprecated_extract_return_value, deprecated_store_return_value,
5535 deprecated_frame_chain, deprecated_frame_saved_pc,
5536 deprecated_frame_init_saved_regs, deprecated_register_raw_size,
5537 deprecated_register_virtual_size,
5538 deprecated_max_register_raw_size,
5539 deprecated_max_register_virtual_size,
5540 deprecated_register_virtual_type, deprecated_register_size,
5541 deprecated_register_byte, deprecated_register_bytes,
5542 deprecated_fp_regnum, deprecated_use_generic_dummy_frames,
5543 call_dummy_location, deprecated_call_dummy_breakpoint_offset,
5544 deprecated_pc_in_call_dummy, deprecated_call_dummy_length,
5545 deprecated_call_dummy_start_offset, deprecated_call_dummy_words,
5546 deprecated_sizeof_call_dummy_words, deprecated_fix_call_dummy,
5547 deprecated_push_dummy_frame, deprecated_pop_frame,
5548 deprecated_dummy_write_sp. Set deprecated_saved_pc_after_call
5549 only if SYSCALL_TRAP is defined. Set extract_return_value,
5550 store_return_value, extract_struct_value_address, register_type,
5551 push_dummy_call, unwind_dummy_id, unwind_pc. Add two frame unwind
5552 predicates.
5553 * m68k-tdep.h (M68K_D1_REGNUM, M68K_NUM_REGS,
5554 M68K_MAX_REGISTER_SIZE): Define.
5555 (struct m68k_sigtramp_info): Define.
5556 (struct gdbarch_tdep): Add get_sigtramp_info.
5557 * m68klinux-nat.c (fetch_register): Use register_size instead of
5558 REGISTER_RAW_SIZE. Don't put assignment in if.
5559 (store_register): Likewise.
5560 (fetch_inferior_registers): Likewise.
5561 (store_inferior_registers): Likewise.
5562 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Delete.
5563 (m68k_linux_frame_saved_pc): Delete.
5564 (m68k_linux_sigcontext_reg_offset,
5565 m68k_linux_ucontext_reg_offset): Define.
5566 (m68k_linux_get_sigtramp_info): New function.
5567 (m68k_linux_extract_return_value): Rewrite using regcache.
5568 (m68k_linux_store_return_value): Likewise.
5569 (m68k_linux_extract_struct_value_address): Likewise.
5570 (m68k_linux_init_abi): Set get_sigtramp_info in tdep structure.
5571 Don't set deprecated_frame_saved_pc,
5572 deprecated_extract_return_value, deprecated_store_return_value,
5573 deprecated_extract_struct_value_address. Set
5574 extract_return_value, store_return_value,
5575 extract_struct_value_address.
5576
eb8bc282
AC
55772003-07-07 Andrew Cagney <cagney@redhat.com>
5578
5579 * expprint.c: Include "user-regs.h" instead of "frame.h".
5580 (print_subexp): Use user_reg_map_regnum_to_name, instead of
5581 frame_map_regnum_to_name.
5582 * frame.c: Include "user-regs.h" instead of "builtin-regs.h".
5583 (frame_map_name_to_regnum): Simplify, call
5584 user_reg_map_name_to_regnum.
5585 (frame_map_regnum_to_name): Simplify, call
5586 user_reg_map_regnum_to_name.
5587 (frame_register_unwind): Update.
5588 * std-regs.c: Include "user-regs.h" instead of "builtin-regs.h".
5589 (_initialize_frame_reg): Call user_reg_add_builtin.
5590 * findvar.c: Include "user-regs.h" instead of "builtin-regs.h".
5591 (value_of_register): Use value_of_user_reg.
5592 * eval.c (evaluate_subexp_standard): Update.
5593 * parse.c (write_dollar_variable): Update.
5594 * d10v-tdep.c (d10v_print_registers_info): Update.
5595 * infcmd.c (registers_info): Update.
5596 * Makefile.in (SFILES): Delete "builtin-regs.c", add "user-regs.c".
5597 (builtin_regs_h): Delete macro.
5598 (user_regs_h): Define.
5599 (COMMON_OBS): Delete "builtin-regs.o", add "user-regs.o".
5600 (builtin-regs.o): Delete target.
5601 (user-regs.o): Specify dependencies.
5602 (expprint.o): Update dependencies.
5603 (findvar.o): Update dependencies.
5604 (frame.o): Update dependencies.
5605 (std-regs.o): Update dependencies.
5606
9f476a01
CF
56072003-07-06 Christopher Faylor <cgf@redhat.com>
5608
5609 * win32-nat.c (solib_symbols_add): Use one variable for all section
5610 address stuff. Pass variable rather than address of variable to
5611 safe_symbol_file_add.
5612
a731b831
AS
56132003-07-06 Andreas Schwab <schwab@suse.de>
5614
5615 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5616
9f83329d
JB
56172003-07-04 Joel Brobecker <brobecker@gnat.com>
5618
5619 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5620
27e28cc5
KW
56212003-07-04 Kris Warkentin <kewarken@qnx.com>
5622
5623 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5624
56252003-07-04 Kris Warkentin <kewarken@qnx.com>
5626
5627 * nto-procfs.c: New file. Native procfs support for QNX Neutrino.
5628 * config/i386/nto.mh: New file.
5629 * config/i386/nm-nto.h: New file.
5630 * configure.host: Add i[3456]86-*-nto*.
5631
100f2e98
JB
56322003-07-03 Joel Brobecker <brobecker@gnat.com>
5633
5634 * remote-vx.c (vx_add_symbols): Fix compilation error.
5635
e23457df
AC
56362003-07-03 Andrew Cagney <cagney@redhat.com>
5637
5638 * gdbarch.sh (REGISTER_NAME): Do not supply a default.
5639 * gdbarch.h, gdbarch.c: Re-generate.
5640 * config/sparc/tm-sparc.h (REGISTER_NAME): Define.
5641 (legacy_register_name): Declare.
5642 * config/sparc/tm-sp64.h (legacy_register_name): Declare.
5643 (REGISTER_NAME): Define.
5644 * sparc-tdep.c (legacy_register_name): New function.
5645 * config/pa/tm-hppa64.h (REGISTER_NAMES): Delete macro.
5646 (REGISTER_NAME): Define.
5647 (hppa64_register_name): Declare.
5648 * config/pa/tm-hppa.h (REGISTER_NAMES): Delete macro.
5649 * hppa-tdep.c (hppa_gdbarch_init): Set hppa_register_name.
5650 (hppa64_register_name): New function.
5651 (hppa_register_name): New function.
5652 * arch-utils.c (legacy_register_name): Delete.
5653 * arch-utils.h (legacy_register_name): Delete.
5654
38caaeec
DJ
56552003-07-03 Daniel Jacobowitz <drow@mvista.com>
5656
5657 * cli/cli-interp.c (cli_interpreter_resume): Update the
5658 cli_uiout's stream to gdb_stdout.
5659
dadd712e
AC
56602003-07-03 Andrew Cagney <cagney@redhat.com>
5661
5662 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
5663 predicate.
5664 * gdbarch.h, gdbarch.c: Re-generate.
5665 * regcache.c (init_regcache_descr): Use legacy code when either
5666 REGISTER_BYTE or REGISTER_RAW_SIZE is set.
5667
c7f1390e
DJ
56682003-07-02 Daniel Jacobowitz <drow@mvista.com>
5669
5670 * NEWS: Move "set logging" entry into GDB 6.0 section.
5671
4bc8c588
JB
56722003-07-02 Jim Blandy <jimb@redhat.com>
5673
a9dd42f1
JB
5674 * s390-tdep.c (struct frame_extra_info): new member:
5675 'stack_bought_valid'.
5676 (s390_get_frame_info): Set fextra_info->stack_bought_valid if we
5677 initialize fextra_info->stack_bought.
5678 (s390_frameless_function_invocation): Don't trust the value of
5679 fextra_info_ptr->stack_bought unless
5680 fextra_info->stack_bought_valid is set.
5681
4bc8c588
JB
5682 New S390 prologue analyzer.
5683 * s390-tdep.c (struct prologue_value, enum pv_boolean): New types.
5684 (pv_set_to_unknown, pv_set_to_constant, pv_set_to_register,
5685 pv_constant_last, pv_add, pv_add_constant, pv_subtract,
5686 pv_logical_and, pv_is_identical, pv_is_register, pv_is_array_ref,
5687 compute_x_addr, s390_on_stack, s390_store,
5688 s390_get_signal_frame_info): New functions.
5689 (S390_NUM_SPILL_SLOTS): New macro.
5690 (s390_get_frame_info): Rewritten.
5691 (is_arg_reg): Deleted.
5692
5693 Break out the decoding of S/390 instructions into separate
5694 functions, to make it more legible, and easier to check
5695 against the spec.
5696 * s390-tdep.c (is_ri, is_ril, is_rr, is_rre, is_rs, is_rse,
5697 is_rx, is_rxe): New functions.
5698 (op1_aghi, op2_aghi, op1_ahi, op2_ahi, op_ar, op_basr, op1_bras,
5699 op2_bras, op_l, op_la, op1_larl, op2_larl, op_lgr, op1_lghi,
5700 op2_lghi, op1_lhi, op2_lhi, op_lr, op_nr, op_ngr, op_s, op_st,
5701 op_std, op1_stg, op2_stg, op_stm, op1_stmg, op2_stmg, op_svc): New
5702 enums for opcode values. (Is this an improvement?)
5703
fd13a04a
AC
57042003-07-02 Andrew Cagney <cagney@redhat.com>
5705
5706 * i386-tdep.c: Revert change committed as part of trad-frame code
5707 below.
5708
3f8091c1
DJ
57092003-07-02 Daniel Jacobowitz <drow@mvista.com>
5710
5711 * breakpoint.c (insert_catchpoint): Make static.
5712
8dd5115e
AS
57132003-07-02 Andreas Schwab <schwab@suse.de>
5714
5715 * ia64-tdep.c (ia64_push_dummy_call): Define as combination of
5716 former ia64_push_arguments and ia64_push_return_address, and use
5717 regcache functions instead of read/write_register.
5718 (ia64_gdbarch_init): Set push_dummy_call instead of
5719 deprecated_push_arguments and deprecated_push_return_address.
5720
a2229c23
AJ
57212003-07-01 Andreas Jaeger <aj@suse.de>
5722
5723 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5724 before the call.
5725 Set %rax only to number of SSE registers used.
5726
3b3850e8
AC
57272003-07-01 Andrew Cagney <cagney@redhat.com>
5728
5729 * trad-frame.h: Update comments, a -1 .addr is reserved.
5730 (trad_frame_value_p, trad_frame_addr_p): Declare.
5731 (trad_frame_reg_p): Declare.
5732 (trad_frame_set_value): Rename trad_frame_register_value.
5733 (trad_frame_set_unknown): Declare.
5734 * trad-frame.c (trad_frame_realreg_p): New function.
5735 (trad_frame_addr_p, trad_frame_value_p): New function.
5736 (trad_frame_set_unknown): New function.
5737 (trad_frame_alloc_saved_regs): Initialize .addr to -1, not zero.
5738 (trad_frame_prev_register): Use trad_frame_realreg_p,
5739 trad_frame_addr_p and trad_frame_value_p.
5740 (trad_frame_set_value): Rename trad_frame_register_value.
5741 * d10v-tdep.c (d10v_frame_unwind_cache): Use trad_frame_addr_p
5742 and trad_frame_set_value.
a2229c23 5743
4d819d0e
JB
57442003-06-30 Jim Blandy <jimb@redhat.com>
5745
5746 Patch from IBM (authors unspecified, probably Ulrich Weigand and
5747 Gerhard Tonn) for argument passing on the S/390 and S/390x:
5748 * s390-tdep.c (S390_STACK_FRAME_OVERHEAD): This is always space
5749 for 16 registers, and then 32 more bytes.
5750 (S390_STACK_PARAMETER_ALIGNMENT, S390_NUM_FP_PARAMETER_REGISTERS):
5751 New macros.
5752 (is_double_arg): The s390x doesn't handle DOUBLE_ARGS specially.
5753 Move up in the file, since it's now used by is_simple_arg.
5754 (is_simple_arg): Don't assume registers are four bytes long.
5755 Exclude all double arguments. Extended floats are not simple
5756 args.
5757 (is_power_of_two): New function.
5758 (pass_by_copy_ref): Call is_power_of_two, and check that the
5759 length fits in a register, rather than listing all the acceptable
5760 sizes. Extended floats are not passed by reference.
5761 (s390_push_arguments): Don't assume registers are four bytes long.
5762 Reserve an argument register to point to the buffer for structures
5763 returned by value. Use S390_NUM_FP_PARAMETER_REGISTERS and
5764 S390_STACK_FRAME_OVERHEAD.
5765
1ad828f1
AS
57662003-06-30 Andreas Schwab <schwab@suse.de>
5767
5768 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5769 format error message.
5770
39b00981
JB
57712003-06-30 Joel Brobecker <brobecker@gnat.com>
5772
5773 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5774
b2a7f303
DC
57752003-06-30 David Carlton <carlton@kealia.com>
5776
5777 Band-aid for PR c++/1245.
5778 * Makefile.in (cp-support.o): Depend on complaints_h.
5779 * cp-support.c: Include complaints.h. Add declaration for
5780 find_last_component.
5781 (cp_find_first_component): Separate code into
5782 cp_find_first_component_aux.
5783 (cp_find_first_component_aux): Call demangled_name_complaint.
5784 (demangled_name_complaint): New.
5785
a257b5bb
AC
57862003-06-30 Andrew Cagney <cagney@redhat.com>
5787
5788 * remote.c (remote_write_bytes): Explicitly compute and then use
5789 the payload size. Update comments to reflect. Fixes problem of
5790 GDB not sending small packets as found by Fred Fish.
5791
0a2cfde4
AC
57922003-06-30 Andrew Cagney <cagney@redhat.com>
5793
5794 * remote.c (remote_async_wait): Fix -Wformat problem.
5795
3fcb8548
AC
57962003-06-29 Andrew Cagney <cagney@redhat.com>
5797
5798 * remote.c (remote_wait): Call error, and not warning, when the
5799 packet is corrupt.
5800 (remote_async_wait): Ditto.
5801
9f9970a3
DJ
58022003-06-29 Daniel Jacobowitz <drow@mvista.com>
5803
5804 * sparc-tdep.c (sparc_y_regnum): Make external again.
5805
83a8ccca
DJ
58062003-06-29 Daniel Jacobowitz <drow@mvista.com>
5807
5808 * cli/cli-logging.c (pop_output_files): Add void to function
5809 definition.
5810
d2cf594a
AC
58112003-06-29 Andrew Cagney <cagney@redhat.com>
5812
5813 * frame.c (frame_register_unwind): Use unsigned char when dumping
5814 the buffer contents.
5815
0fac0b41
DJ
58162003-06-28 Daniel Jacobowitz <drow@mvista.com>
5817
5818 * cli/cli-logging.c: New file.
5819 * cli-out.c (struct ui_out_data): Add original_stream.
5820 (cli_redirect): New function.
5821 (cli_ui_out_impl): Add cli_redirect.
5822 (cli_out_new): Initialize original_stream.
5823 * ui-out.c (default_ui_out_impl): Add NULL for redirect member.
5824 (uo_redirect, ui_out_redirect): New.
5825 * ui-out.h (struct ui_out_impl): Add redirect member.
5826 (redirect_ftype): New.
5827 (ui_out_redirect): Add prototype.
5828 * Makefile.in: Add rules for cli-logging.c.
5829 * NEWS: Mention "set logging".
5830
88a07d7c
EZ
58312003-06-27 Elena Zannoni <ezannoni@redhat.com>
5832
5833 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5834
4eb58876
AC
58352003-06-27 Andrew Cagney <cagney@redhat.com>
5836
5837 * m68hc11-tdep.c (m68hc11_call_dummy_address): Delete function.
5838 (m68hc11_gdbarch_init): Do not set call_dummy_address.
5839 * avr-tdep.c (avr_call_dummy_address): Delete function.
5840 (avr_gdbarch_init): Do not set call_dummy_address.
5841
1549f619
EZ
58422003-06-27 Elena Zannoni <ezannoni@redhat.com>
5843
5844 * symfile.c (syms_from_objfile): Move variables to inner block.
5845 Move the checks for the non-mainline case a bit earlier to avoid
5846 doing some useless computations.
5847
3cb3398d
EZ
58482003-06-27 Elena Zannoni <ezannoni@redhat.com>
5849
5850 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5851
3799ccc6
EZ
58522003-06-26 Elena Zannoni <ezannoni@redhat.com>
5853
5854 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5855 sections.
5856
ce1f6491
MC
58572003-06-26 Michael Chastain <mec@shout.net>
5858
5859 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5860 gdb/testsuite/gdb.c++/pr-1210.exp.
5861
d958dfd0
AC
58622003-06-26 Andrew Cagney <cagney@redhat.com>
5863
5864 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5865 altivec_expression.h and altivec_registers.h.
5866
d31431ed
AC
58672003-06-26 Andrew Cagney <cagney@redhat.com>
5868
5869 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5870 info->mach when MIPS16. Patch suggested by Fred Fish.
5871
714b1282
AC
58722003-06-26 Andrew Cagney <cagney@redhat.com>
5873
5874 * utils.c (internal_vproblem): Print the problem to a reason
5875 buffer and then pass to query. Make the msg variable more local.
5876
42efa47a
AC
58772003-06-26 Andrew Cagney <cagney@redhat.com>
5878
5879 * gdbarch.sh (FRAME_ARGS_ADDRESS): Add predicate. Deprecate.
5880 (FRAME_LOCALS_ADDRESS): Add predicate. Deprecate.
5881 * gdbarch.h, gdbarch.c: Re-generate.
5882 * frame-base.c (default_frame_args_address): Update. Use
5883 default_frame_base_address when DEPRECATED_FRAME_ARGS_ADDRESS is
5884 not available.
5885 (default_frame_locals_address): Ditto for
5886 DEPRECATED_FRAME_LOCALS_ADDRESS.
5887 * vax-tdep.c (vax_sigtramp_saved_pc): Update.
5888 (vax_frame_num_args): Update.
5889 (vax_gdbarch_init): Update.
5890 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5891 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5892 * mcore-tdep.c (mcore_gdbarch_init): Update.
5893 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5894 * ia64-tdep.c (ia64_gdbarch_init): Update.
5895 * symtab.h (address_class): Update comments.
5896 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): Update.
5897 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5898 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5899 * config/pa/tm-hppa64.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5900 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5901 (DEPRECATED_FRAME_LOCALS_ADDRESS): Update.
5902 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_ARGS_ADDRESS): Update.
5903 * alpha-mdebug-tdep.c: Update.
5904 * ada-lang.c (add_symbols_from_enclosing_procs): Update.
5905
8ffd9b1b
AJ
59062003-06-26 Andreas Jaeger <aj@suse.de>
5907
5908 * x86-64-tdep.c (x86_64_push_arguments): Always set %rax to number
5909 of SSE registers so that varargs functions work. Rework handling
5910 of passing arguments on the stack.
5911 (x86_64_store_return_value): Return double and float values in SSE
5912 register.
5913
e8ac10a6
MC
59142003-06-24 Michael Chastain <mec@shout.net>
5915
5916 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5917 the "constructor breakpoints ignored" bug.
5918
986af8e6
DC
59192003-06-25 David Carlton <carlton@kealia.com>
5920
5921 * MAINTAINERS: Update e-mail address.
5922
d64558a5
JB
59232003-06-24 Jim Blandy <jimb@redhat.com>
5924
e538d2d7
JB
5925 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5926
02631ec0
JB
5927 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5928 function.
5929 (ppc_linux_init_abi): Register it as the
5930 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
5931
e716d87a
JB
5932 * ppc-linux-tdep.c (ppc64_call_dummy_address): New function.
5933 (ppc_linux_init_abi): Set it as the gdbarch's call_dummy_address
5934 method.
5935
d64558a5
JB
5936 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5937 (ppc64_standard_linkage_target): Use it.
5938
449a5da4
AC
59392003-06-23 Andrew Cagney <cagney@redhat.com>
5940
5941 * rs6000-tdep.c (rs6000_register_virtual_type): Add explict cases
5942 for 0 "int0" and 4 "int32" sized registers.
5943 * gdbtypes.c (builtin_type_int0): Define.
5944 (build_gdbtypes): Initialize builtin_type_int0.
5945 * gdbtypes.h (builtin_type_int0): Declare.
5946
b2a02dda
SC
59472003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5948
5949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5950 as characters are unsigned.
5951
fba3138e
DJ
59522003-06-22 Daniel Jacobowitz <drow@mvista.com>
5953
5954 PR gdb/1179
5955 * dwarfread.c (struct_type): Skip static fields without crashing.
5956
f6c8180b
AC
59572003-06-22 Andrew Cagney <cagney@redhat.com>
5958
5959 GDB 6.0 branch created.
f2c06f52
AC
5960 * README: Update.
5961 * PROBLEMS: Update. Empty.
5962 * NEWS: Update.
f6c8180b 5963
ae822768
DJ
59642003-06-22 Daniel Jacobowitz <drow@mvista.com>
5965
5966 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5967 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5968
261de166
AC
59692003-06-22 Andrew Cagney <cagney@redhat.com>
5970
5971 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5972 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5973 Velikov.
5974
30e94205
DJ
59752003-06-22 Daniel Jacobowitz <drow@mvista.com>
5976
5977 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5978 compilers.
5979
9e14d721
DJ
59802003-06-21 Daniel Jacobowitz <drow@mvista.com>
5981
5982 * c-valprint.c (c_value_print): Add VALUE_OFFSET to the address
5983 argument of val_print.
5984 * cp-valprint.c (cp_print_value): Don't add the offset parameter
5985 to the address argument of baseclass_offset or target_read_memory.
5986 Do add it to the argument of cp_print_value_fields.
5987
a4b8ebc8
AC
59882003-06-21 Andrew Cagney <cagney@redhat.com>
5989
5990 * mips-tdep.c: Include "reggroups.h" and "sim-regno.h".
5991 (mips_register_name): Return names for NUM_REGS..2*NUM_REGS
5992 instead of 0..NUM_REGS.
5993 (mips_register_reggroup_p): New function.
5994 (mips_pseudo_register_write): New function.
5995 (mips_pseudo_register_read): New function.
5996 (mips_register_raw_size): For NUM_REGS..2*NUM_REGS return the size
5997 based on the register's type.
5998 (read_next_frame_reg): Simplify. Assert that REGNO is a pseudo /
5999 cooked.
6000 (mips_get_saved_register): Simplify. Assert that REGNO is a
6001 pseudo / cooked.
6002 (mips_register_byte): New function. Use MIPS_REGISTER_BYTE.
6003 (mips_register_type): Replace mips_register_virtual_type. Map
6004 NUM_REGS..2*NUM_REGS onto 0..NUM_REGS. Use MIPS_REGISTER_TYPE
6005 when available.
6006 (read_next_frame_reg): Simplify, but handle SP_REGNUM. Assert
6007 that the register is cooked / virtual.
6008 (mips_frame_saved_pc): Fetch the cooked PC, and not the raw PC.
6009 Only get the extra info when needed.
6010 (set_reg_offset): Save the offset in NUM_REGS..2*NUM_REGS as well.
6011 (mips32_heuristic_proc_desc): Fetch the cooked register.
6012 (heuristic_proc_desc, mips_pop_frame, get_frame_pointer): Ditto.
6013 (mips_init_extra_frame_info, get_frame_pointer): Ditto.
6014 (mips_print_register): Use gdbarch_register_type, instead of
6015 REGISTER_VIRTUAL_TYPE.
6016 (print_gp_register_row): Use gdbarch_register_type, instead of
6017 REGISTER_VIRTUAL_TYPE. Allow for a pseudo / cooked REGNUM.
6018 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6019 Print the pseudo / cooked registers.
6020 (mips_print_registers_info): Assert REGNO is pseodo / cooked.
6021 Print the pseudo / cooked registers.
6022 (mips_xfer_register): Use regcache_cooked_read_part. Assert that
6023 REG_NUM is pseudo / cooked.
6024 (mips_o32_xfer_return_value): Xfer the pseudo / cooked register.
6025 (mips_n32n64_xfer_return_value): Ditto.
6026 (mips_stab_reg_to_regnum): Map onto NUM_REGS..2*NUM_REGS.
6027 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Ditto.
6028 (mips_register_sim_regno): New function.
6029 (mips_gdbarch_init): Set deprecated_register_byte,
6030 register_group_p, pseudo_register_write, pseudo_register_read,
6031 register_sim_regno, and num_pseudo_regs. Set register_type,
6032 instead of register_virtual_type.
6033 * Makefile.in (mips-tdep.o): Update dependencies.
6034 * config/mips/tm-mips64.h (MIPS_REGISTER_TYPE): Rename
6035 REGISTER_VIRTUAL_TYPE.
6036 * config/mips/tm-mips.h (MIPS_REGISTER_TYPE): Ditto.
6037 * config/mips/tm-irix5.h (MIPS_REGISTER_TYPE): Ditto.
6038 * config/mips/tm-mips.h (MIPS_REGISTER_BYTE): Rename REGISTER_BYTE.
6039 * config/mips/tm-irix6.h (MIPS_REGISTER_BYTE): Ditto.
6040 * config/mips/tm-irix5.h (MIPS_REGISTER_BYTE): Ditto.
6041
325ed089
DJ
60422003-06-21 Daniel Jacobowitz <drow@mvista.com>
6043
6044 * Makefile.in (cli-cmds.o): Depend on $(gdb_vfork_h)
6045 * cli/cli-cmds.c: Include "gdb_vfork.h".
6046 (shell_escape): Use vfork.
6047
f0e7d0e8
AC
60482003-06-21 Andrew Cagney <cagney@redhat.com>
6049
c57bb9fa
AC
6050 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6051 32 bit floating-point register saves.
6052
6e51443a
AC
6053 * frame.h (deprecated_unwind_get_saved_register): Delete.
6054 * frame.c (deprecated_unwind_get_saved_register): Delete function.
6055 * mips-tdep.c (mips_get_saved_register): Use frame_register_unwind
6056 and deprecated_get_next_frame_hack instead of
6057 deprecated_unwind_get_saved_register.
6058
ed183c7c
AC
6059 * mips-tdep.c (mips_dump_tdep): Do not print
6060 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
6061
f0e7d0e8
AC
6062 * frame.c (get_frame_register): New function.
6063 (frame_unwind_register_signed): New function.
6064 (get_frame_register_signed): New function.
6065 (frame_unwind_register_unsigned): New function.
6066 (get_frame_register_unsigned): New function.
6067 * frame.h: Add comments on naming schema.
6068 (get_frame_register, frame_unwind_register_signed): Declare.
6069 (get_frame_register_signed, get_frame_register_signed): Declare.
6070 (frame_unwind_register_unsigned): Declare.
6071 (get_frame_register_unsigned): Declare.
6072
2224d941
TR
60732003-06-20 Theodore A. Roth <troth@openavr.org>
6074
6075 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6076
8619218d
TR
60772003-06-20 Theodore A. Roth <troth@openavr.org>
6078
6079 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6080 (avr_read_sp): Ditto.
6081
0b1b50c0
DJ
60822003-06-20 Daniel Jacobowitz <drow@mvista.com>
6083
6084 * config/arm/linux.mt: Remove code protected by GDBSERVER define.
6085 * config/arm/nm-linux.h: Likewise.
6086 * config/arm/tm-linux.h: Likewise.
6087 * config/ia64/nm-linux.h: Likewise.
6088 * config/ia64/tm-ia64.h: Likewise.
6089 * config/s390/tm-linux.h: Likewise.
6090 * config/s390/tm-s390.h: Likewise.
6091 * s390-nat.c: Likewise.
6092 * s390-tdep.c: Likewise.
6093
6094 * config/i386/linux.mt: Don't set GDBSERVER_DEPFILES.
6095 * config/ia64/linux.mt: Likewise.
6096 * config/m68k/linux.mh: Likewise.
6097 * config/mips/linux.mt: Likewise.
6098 * config/powerpc/linux.mh: Likewise.
6099 * config/sh/linux.mt: Likewise.
6100
c8c18e65
KW
61012003-06-19 Kris Warkentin <kewarken@qnx.com>
6102
6103 * solib.c (solib_open): Change tests for whether to search
6104 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6105 comments.
6106
dcccef2e
TR
61072003-06-19 Theodore A. Roth <troth@openavr.org>
6108
6109 * avr-tdep.c (avr_frame_address): Delete function.
6110 (avr_gdbarch_init): Don't call set_gdbarch_frame_args_address,
6111 set_gdbarch_frame_args_address.
6112
5861a190
AC
61132003-06-19 Andrew Cagney <cagney@redhat.com>
6114
6115 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_TYPE): Delete.
6116 (REGISTER_CONVERT_FROM_TYPE): Delete.
6117 (mips_register_convert_to_type): Delete declaration.
6118 (mips_register_convert_from_type): Delete declaration.
6119 * linux-nat.h (struct target_ops): Declare opaque. s/Linux/Linux
6120 kernel/.
6121
0274a8ce
MS
61222003-06-19 Michael Snyder <msnyder@redhat.com>
6123
6124 * linux-nat.h: New file.
6125 * linux-nat.c: Include linux-nat.h.
8ffd9b1b 6126 * lin-lwp.c: Include linux-nat.h.
0274a8ce 6127 Move struct lwp_info def to linux-nat.h.
8ffd9b1b 6128 * linux-proc.c: Include linux-nat.h.
0274a8ce
MS
6129 (linux_make_note_section): Iterate over lwps instead of threads.
6130 (linux_do_thread_registers): Use lwp instead of merged pid.
6131 * config/nm-linux.h: Move miscelaneous def'ns to linux-nat.h.
8ffd9b1b 6132 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
0274a8ce
MS
6133 Add dependency on linux_nat_h.
6134
adf5f719
TR
61352003-06-19 Theodore A. Roth <troth@openavr.org>
6136
6137 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6138
6766a268
DJ
61392003-06-19 Daniel Jacobowitz <drow@mvista.com>
6140
6141 * varobj.c (get_type, get_target_type): Use check_typedef.
6142
1171114a
DJ
61432003-06-19 Daniel Jacobowitz <drow@mvista.com>
6144
6145 * breakpoint.c (insert_catchpoint): Call internal_error.
6146
adcf68a2
TR
61472003-06-19 Theodore A. Roth <troth@openavr.org>
6148
6149 * avr-tdep.c (avr_push_dummy_code): Delete function.
6150 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6151
ea67f13b
DJ
61522003-06-19 Daniel Jacobowitz <drow@mvista.com>
6153
6154 * arch-utils.c (default_prepare_to_proceed): Remove.
6155 (generic_prepare_to_proceed): Remove.
6156 * arch-utils.h (default_prepare_to_proceed): Remove prototype.
6157 (generic_prepare_to_proceed): Remove prototype.
6158 * gdbarch.sh (PREPARE_TO_PROCEED): Remove.
6159 * gdbarch.c: Regenerate.
6160 * gdbarch.h: Regenerate.
6161 * hppa-tdep.c (hppa_prepare_to_proceed): Remove dangling prototype.
6162 * hppah-nat.c (hppa_switched_threads): Remove.
6163 * infrun.c (prepare_to_proceed): New static function, copied from
6164 generic_prepare_to_proceed. Remove select_it argument.
6165 (proceed): Call prepare_to_proceed.
6166 * infttrace.c (old_gdb_pid, reported_pid, reported_bpt): Remove
6167 variables.
6168 (ptrace_wait): Don't set the removed variables.
6169 (hppa_switched_threads): Remove.
6170 * lin-lwp.c (lin_lwp_prepare_to_proceed): Remove.
6171 * config/nm-linux.h (PREPARE_TO_PROCEED): Don't define.
6172 (lin_lwp_prepare_to_proceed): Remove prototype.
6173 * config/i386/nm-x86-64linux.h (PREPARE_TO_PROCEED): Don't undefine.
6174 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Don't define.
6175
4add8633
TR
61762003-06-18 Theodore A. Roth <troth@openavr.org>
6177
6178 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
6179 trad-frame.h.
6180 (AVR_MAX_PROLOGUE_SIZE): Increase from 56 to 64.
6181 (AVR_ARG1_REGNUM, AVR_ARGN_REGNUM): Define.
6182 (AVR_RET1_REGNUM, AVR_RETN_REGNUM): Define.
6183 (AVR_PROLOGUE_*): Enumerate prologue types.
6184 (struct frame_extra_info): Remove.
6185 (struct avr_unwind_cache): Define.
6186 (avr_write_sp): Delete function.
6187 (avr_read_fp): Ditto.
6188 (avr_init_extra_frame_info): Ditto.
6189 (avr_pop_frame): Ditto.
6190 (avr_frame_saved_pc): Ditto.
6191 (avr_saved_pc_after_call): Ditto.
6192 (avr_push_return_address): Ditto.
6193 (avr_frame_chain): Ditto.
6194 (avr_store_struct_return): Ditto.
6195 (avr_push_arguments): Ditto.
6196 (avr_scan_prologue): Update comments. Changed to set up the info for
6197 cache unwinding. Now returns end of prologue PC.
6198 (avr_skip_prologue): Better handling of functions lacking a prologue
6199 by using avr_scan_prologue.
6200 (avr_scan_arg_moves): New function.
6201 (avr_saved_regs_unwinder): Ditto.
6202 (avr_frame_unwind_cache): Ditto.
6203 (avr_unwind_pc): Ditto.
6204 (avr_frame_this_id): Ditto.
6205 (avr_frame_prev_register): Ditto.
6206 (avr_frame_p): Ditto.
6207 (avr_frame_base_address ): Ditto.
6208 (avr_unwind_dummy_id): Ditto.
6209 (avr_push_dummy_code): Ditto.
6210 (push_stack_item): Ditto.
6211 (pop_stack_item): Ditto.
6212 (avr_push_dummy_call): Ditto.
6213 (struct stack_item): Define.
6214 (avr_frame_unwind): Declare structure.
6215 (avr_frame_base): Ditto.
6216 (avr_gdbarch_init): Remove calls to
6217 set_gdbarch_deprecated_init_frame_pc,
6218 set_gdbarch_deprecated_target_read_fp,
6219 set_gdbarch_deprecated_dummy_write_sp,
6220 set_gdbarch_deprecated_fp_regnum,
6221 set_gdbarch_deprecated_push_arguments,
6222 set_gdbarch_deprecated_push_return_address,
6223 set_gdbarch_deprecated_pop_frame,
6224 set_gdbarch_deprecated_store_struct_return,
6225 set_gdbarch_deprecated_frame_init_saved_regs,
6226 set_gdbarch_deprecated_init_extra_frame_info,
6227 set_gdbarch_deprecated_frame_chain,
6228 set_gdbarch_deprecated_frame_saved_pc,
6229 set_gdbarch_deprecated_saved_pc_after_call.
6230 Add calls to set_gdbarch_push_dummy_call,
6231 set_gdbarch_push_dummy_code,
6232 frame_unwind_append_predicate,
6233 frame_base_set_default,
6234 set_gdbarch_unwind_dummy_id,
6235 set_gdbarch_unwind_pc.
6236 Wrap a long line.
6237
7be04a68
MS
62382003-06-18 Corinna Vinschen <vinschen@redhat.com>
6239
6240 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6241 registers for H8/300S.
6242 (h8300_print_registers_info): Ditto.
8ffd9b1b 6243 (h8300_gdbarch_init): Accommodate register count for H8/300S.
7be04a68 6244
ae087d01
DJ
62452003-06-18 Daniel Jacobowitz <drow@mvista.com>
6246
6247 * config/nm-linux.h (linux_record_stopped_pid): New prototype.
6248 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
6249 (lin_lwp_wait): Likewise. Update comments.
6250 * linux-nat.c (struct simple_pid_list, add_to_pid_list)
6251 (pull_pid_from_list, linux_record_stopped_pid): New.
6252
07d8f827
SC
62532003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6254
6255 * ada-lang.c (scan_discrim_bound): Name first argument.
6256 (ada_add_block_symbols): Remove BLOCK_SYM to use local variable
6257 declared by ALL_BLOCK_SYMBOLS.
6258
7cb47b14
SC
62592003-06-17 Stephane Carrez <stcarrez@nerim.fr>
6260
6261 * ada-tasks.c (find_function_in_inferior): Don't declare it.
6262 ("regcache.h"): Include it.
6263 * ada-lex.l (block_lookup): Replace VAR_NAMESPACE with VAR_DOMAIN.
6264
6ad8ae5c
DJ
62652003-06-17 Daniel Jacobowitz <drow@mvista.com>
6266
6267 * NEWS: Mention gdbserver detach change and "disconnect" command.
6268 * infcmd.c (disconnect_command): New function.
6269 (_initialize_infcmd): Add ``disconnect'' command.
6270 * remote.c (remote_async_detach): Delete.
6271 (remote_detach): Merge remote_async_detach.
6272 (remote_disconnect): New.
6273 (init_remote_ops): Set to_disconnect.
6274 (init_remote_cisco_ops): Likewise.
6275 (init_remote_async_ops): Likewise. Use remote_detach.
6276 * target.c (cleanup_target): Default to_disconnect.
6277 (update_current_target): Inherit to_disconnect.
6278 (target_disconnect, debug_to_disconnect): New functions.
6279 (setup_target_debug): Set to_disconnect.
6280 * target.h (struct target_ops): Add to_disconnect.
6281 (target_disconnect): Add prototype.
6282
687595f9
DJ
62832003-06-17 Daniel Jacobowitz <drow@mvista.com>
6284
6285 * breakpoint.c (insert_catchpoint): New function.
6286 (insert_breakpoints): Use catch_exceptions to call
6287 insert_catchpoint. Disable catchpoints if they fail to insert.
6288
29239a8f
DJ
62892003-06-17 Daniel Jacobowitz <drow@mvista.com>
6290
6291 * symfile.c (reread_symbols): Clear sym_private.
6292
2cdf3c63
AC
62932003-06-17 Andrew Cagney <cagney@redhat.com>
6294
6295 * trad-frame.h (struct frame_info): Add opaque declaration.
6296 * remote-fileio.h (struct cmd_list_element): Add opaque
6297 declaration.
6298 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6299 comments.
6300
cf0e1e0d
DJ
63012003-06-17 Daniel Jacobowitz <drow@mvista.com>
6302
6303 * remote.c (remote_prepare_to_store): Replace call to
6304 deprecated_read_register_bytes with multiple regcache_raw_read
6305 calls.
6306
192cdb19
KW
63072003-06-17 Kris Warkentin <kewarken@qnx.com>
6308
6309 * nto-tdep.c (nto_map_arch_to_cputype): Recognize "powerpc".
6310 (nto_find_and_open_solib): Likewise.
6311 (nto_init_solib_absolute_prefix): Likewise.
6312 (_initialize_nto_tdep): Fix indentation.
6313
89929b45
KW
63142003-06-17 Kris Warkentin <kewarken@qnx.com>
6315
6316 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6317
46019f27
KW
63182003-06-17 Kris Warkentin <kewarken@qnx.com>
6319
6320 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6321
1a38736e
JB
63222003-06-17 Jim Blandy <jimb@redhat.com>
6323
6324 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6325
3605c34a
TR
63262003-06-16 Theodore A. Roth <troth@openavr.org>
6327
6328 * avr-tdep.c (avr_extract_return_value): New function.
6329 (avr_gdbarch_init): Set extract_return_value method.
6330
870b3035
AC
63312003-06-16 Andrew Cagney <cagney@redhat.com>
6332
6333 * frame.h (deprecated_get_next_frame_hack): Declare.
6334 * frame.c (legacy_saved_regs_prev_register): Only require
6335 DEPRECATED_FRAME_INIT_SAVED_REGS when it is needed. Assert that
6336 there are always saved regs.
6337 (deprecated_generic_get_saved_register): Do not require
6338 DEPRECATED_FRAME_INIT_SAVED_REGS.
6339 (legacy_get_prev_frame): Do not require DEPRECATED_FRAME_CHAIN,
6340 use frame ID unwind instead.
6341 (deprecated_get_next_frame_hack): New function.
6342
63d47a7d
CV
63432003-06-16 Corinna Vinschen <vinschen@redhat.com>
6344
6345 * h8300-tdep.c (h8300_push_arguments): Remove. Substitute by...
6346 (h8300_push_dummy_call): ...this function. Some minor optimization.
6347 (h8300_push_return_address): Remove.
6348 (h8300_gdbarch_init): Remove calls to
6349 set_gdbarch_deprecated_dummy_write_sp,
6350 set_gdbarch_deprecated_push_arguments and
6351 set_gdbarch_deprecated_push_return_address.
6352 Add call to set_gdbarch_push_dummy_call.
6353
4bb1dc5e
CV
63542003-06-16 Corinna Vinschen <vinschen@redhat.com>
6355
6356 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM): New define.
6357 (E_PSEUDO_EXR_REGNUM): Ditto.
6358 (h8300_is_argument_spill): Check for instructions moving argument
8ffd9b1b 6359 registers into safe registers.
4bb1dc5e
CV
6360 (h8300_skip_prologue): Check for stm instruction to push registers
6361 used for register variables onto stack.
6362 (gdb_print_insn_h8300): Remove.
6363 (h8300_examine_prologue): Add a comment.
6364 (h8300_register_name): Take pseudo registers into account.
6365 (h8300s_register_name): Ditto.
6366 (h8300sx_register_name): Ditto.
6367 (h8300_print_register): Ditto.
6368 (h8300_print_registers_info): Define "nice" printing order.
6369 (h8300_saved_pc_after_call): Take pseudo registers into account.
6370 (h8300_register_type): Ditto. Return type used for remote connection
6371 when requesting real CCR or EXR register, return actual type when
6372 requesting pseudo CCR or EXR.
6373 (h8300_pseudo_register_read): New function.
6374 (h8300_pseudo_register_write): Ditto.
6375 (h8300_dbg_reg_to_regnum): Ditto.
6376 (h8300s_dbg_reg_to_regnum): Ditto.
6377 (h8300_gdbarch_init): Call set_gdbarch_num_pseudo_regs,
6378 set_gdbarch_ecoff_reg_to_regnum, set_gdbarch_dwarf_reg_to_regnum,
6379 set_gdbarch_dwarf2_reg_to_regnum, set_gdbarch_stab_reg_to_regnum and
6380 set_gdbarch_print_insn architecture dependent.
6381 Call set_gdbarch_pseudo_register_read and
6382 set_gdbarch_pseudo_register_write.
6383 (_initialize_h8300_tdep): Remove assignment to deprecated_tm_print_insn.
6384
a59fe496
AC
63852003-06-16 Andrew Cagney <cagney@redhat.com>
6386
6387 * gdbarch.sh (SAVE_DUMMY_FRAME_TOS): Deprecate.
6388 * gdbarch.h, gdbarch.c: Re-generate.
6389 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6390 * s390-tdep.c (s390_gdbarch_init): Update.
6391 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6392 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6393 * mips-tdep.c (mips_gdbarch_init): Update.
6394 * mcore-tdep.c (mcore_gdbarch_init): Update.
6395 * cris-tdep.c (cris_gdbarch_init): Update.
6396 * infcall.c (call_function_by_hand): Update.
6397 * ia64-tdep.c (ia64_push_arguments): Update comment.
6398 * frame.c (legacy_get_prev_frame): Do not assume
6399 SAVE_DUMMY_FRAME_TOS_P.
6400 * dummy-frame.c (find_dummy_frame): Update comment.
6401
6f4e5a41
AC
64022003-06-16 Andrew Cagney <cagney@redhat.com>
6403
6404 * regcache.c (do_cooked_read): Do not use register_valid_p.
6405
72fab697
TR
64062003-06-15 Theodore A. Roth <troth@openavr.org>
6407
6408 * avr-tdep.c (avr_register_type): Remove a blank line.
6409 (avr_scan_prologue): Correct some comments.
6410
e3d8b004
TR
64112003-06-15 Theodore A. Roth <troth@openavr.org>
6412
6413 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6414 prologue types.
8ffd9b1b 6415 Properly scan prologues generated by gcc with the -mcall-prologues
e3d8b004
TR
6416 option.
6417 Add code to scan -mcall-prologues for mega devices.
6418
866b76ea
TR
64192003-06-15 Theodore A. Roth <troth@openavr.org>
6420
6421 * avr-tdep.c (avr_register_byte): Delete function.
6422 (avr_register_raw_size): Delete function.
6423 (avr_register_virtual_size): Delete function.
6424 (avr_register_virtual_type): Delete function.
6425 (avr_register_type): New function.
6426 (avr_address_to_pointer): Remove unused code.
6427 (avr_read_fp): Need to read FP as two separate bytes due to change to
6428 avr_register_type() usage.
6429 (avr_gdbarch_init): Don't set deprecated_register_size.
6430 Don't set deprecated_register_bytes.
6431 Don't set deprecated_register_byte.
6432 Don't set deprecated_register_raw_size.
6433 Don't set deprecated_max_register_raw_size.
6434 Don't set deprecated_register_virtual_size.
6435 Don't set deprecated_max_register_virtual_size.
6436 Don't set deprecated_register_virtual_type.
6437 Set register_type method.
6438
3993f6b1
DJ
64392003-06-15 Daniel Jacobowitz <drow@mvista.com>
6440
6441 * Makefile.in (linux-nat.o): Add rule.
6442 * linux-nat.c: New file.
6443 * config/nm-linux.h (CHILD_INSERT_FORK_CATCHPOINT): Define.
6444 (CHILD_INSERT_VFORK_CATCHPOINT): Define.
6445 (CHILD_INSERT_EXEC_CATCHPOINT): Define.
6446 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-nat.o.
6447 * config/arm/linux.mh (NATDEPFILES): Likewise.
6448 * config/i386/linux.mh (NATDEPFILES): Likewise.
6449 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
6450 * config/ia64/linux.mh (NATDEPFILES): Likewise.
6451 * config/m68k/linux.mh (NATDEPFILES): Likewise.
6452 * config/mips/linux.mh (NATDEPFILES): Likewise.
6453 * config/powerpc/linux.mh (NATDEPFILES): Likewise.
6454 * config/s390/s390.mh (NATDEPFILES): Likewise.
6455 * config/sparc/linux.mh (NATDEPFILES): Likewise.
6456
786a90bb
MK
64572003-06-15 Mark Kettenis <kettenis@gnu.org>
6458
6459 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6460 replace out-of-date comment.
6461
3bd3f01e
AC
64622003-06-15 Andrew Cagney <cagney@redhat.com>
6463
6464 * rdi-share/host.h (Fail): Change to a varargs function.
6465 * remote-rdi.c (Fail): Update.
8ffd9b1b 6466
de5b9bb9
MK
64672003-06-15 Mark Kettenis <kettenis@gnu.org>
6468
6469 * i386-tdep.c (i386_next_regnum): Fix bounds checking.
6470 (i386_convert_register_p, i386_register_to_value,
6471 i386_register_from_value): Handle types longer than 8 bytes.
6472
d532c08f
MK
64732003-06-15 Mark Kettenis <kettenis@gnu.org>
6474
6475 * i386-tdep.c (i386_register_to_value, i386_value_to_register):
6476 Move floating-point code to new function in i387-tdep.c.
6477 * i387-tdep.c (i387_register_to_value, i387_value_to_register):
6478 New functions containing code moved here from i386-tdep.c.
6479 * i387-tdep.h: Add opaque declaration for `struct type'.
6480 (i387_register_to_value, i387_value_to_register): New prototypes.
6481 * x86-64-tdep.c (x86_64_convert_register_p): New function.
6482 (x86_64_init_abi): Set convert_register_p, register_to_value and
6483 value_to_register here.
8ffd9b1b 6484
42c466d7
AC
64852003-06-14 Andrew Cagney <cagney@redhat.com>
6486
6487 * mips-tdep.c (mips_register_to_value): Make static.
6488 (mips_value_to_register): Make static.
6489 * i386-tdep.c (i386_fetch_pointer_argument): Make static.
6490 * ia64-tdep.c (ia64_register_raw_size): Make static.
6491 (ia64_register_virtual_size): Make static.
6492 (ia64_register_byte): Make static.
6493 * i387-tdep.c: Include "i387-tdep.h".
6494 (print_387_control_word): Delete function.
6495 (print_387_status_word): Delete function.
6496 (print_387_status_bits): Delete function.
6497 (print_387_control_bits): Delete function.
6498 * Makefile.in (i387-tdep.o): Update dependencies.
6499 * rdi-share/host.h (Fail): Declare.
6500 * remote-rdi.c (Fail): Update to match declaration.
6501
2a9cda49
AC
65022003-06-14 Andrew Cagney <cagney@redhat.com>
6503
6504 * config/mips/embedl64.mt (TDEPFILES): Delete "remote-array.o".
6505 * config/mips/embedl.mt (TDEPFILES): Delete "remote-array.o".
6506 * config/mips/embed64.mt (TDEPFILES): Delete "remote-array.o".
6507 * config/djgpp/fnchange.lst: Delete "remote-array.c".
6508 * README: Delete reference to remote-array.
6509 * Makefile.in (ALLDEPFILES): Remove "remote-array.c".
6510 (remote-array.o): Delete target.
6511 * config/mips/embed.mt (TDEPFILES): Delete "remote-array.o".
6512 * remote-array.c: Delete file.
6513
ff2e87ac
AC
65142003-06-14 Andrew Cagney <cagney@redhat.com>
6515 Mark Kettenis <kettenis@gnu.org>
6516
6517 * gdbarch.sh (CONVERT_REGISTER_P): Add "type" parameter.
6518 (REGISTER_TO_VALUE, VALUE_TO_REGISTER): Replace raw buffer
6519 parameter with "frame".
6520 * gdbarch.h, gdbarch.c: Re-generate.
6521 * frame.h (put_frame_register): Declare.
6522 * frame.c (put_frame_register): New function.
6523 * arch-utils.c (legacy_convert_register_p): Add "type" parameter.
6524 (legacy_register_to_value): Rewrite, use "frame" to get the
6525 register value.
6526 (legacy_value_to_register): Rewrite, use "frame" to find the
6527 register's location before storing.
6528 * arch-utils.h (legacy_convert_register_p): Update.
6529 (legacy_register_to_value, legacy_value_to_register): Update.
6530 * findvar.c (value_from_register): Rewrite, eliminate use of
6531 REGISTER_CONVERT_TO_TYPE, pass "type" to CONVERT_REGISTER_P, pass
6532 "frame" to REGISTER_TO_VALUE.
6533 * valops.c (value_assign): Move the CONVERT_REGISTER code to the
6534 lval_reg_frame_relative + lval_register branch of the switch. Do
6535 not use REGISTER_CONVERT_FROM_TYPE. Use put_frame_register.
6536 * i386-tdep.c (I386_EBX_REGNUM, I386_ECX_REGNUM, I386_ESI_REGNUM,
6537 I386_EDI_REGNUM): New defines.
6538 (i386_next_regnum, i386_convert_register_p,
6539 i386_register_to_value, i386_value_to_register): New functions.
6540 (i386_register_convertible, i386_register_convert_to_virtual,
6541 i386_convert_to_raw): Remove functions.
6542 (i386_gdbarch_init): Set convert_register_p, register_to_value and
6543 value_to_register instead of register_convertible,
6544 register_convert_to_virtual and register_convert_to_raw.
6545 * mips-tdep.c (mips_convert_register_p): New function.
6546 (mips_value_to_register): Replace mips_register_convert_from_type.
6547 (mips_register_to_value): Replace mips_register_convert_to_type.
6548 (mips_gdbarch_init): Set conver_register_p, value_to_register and
6549 register_to_value.
6550 * alpha-tdep.c (alpha_convert_register_p): Update.
6551 (alpha_value_to_register): Update, store the register.
6552 (alpha_register_to_value): Update, fetch the register.
6553
98be1e77
TR
65542003-06-14 Theodore A. Roth <troth@openavr.org>
6555
6556 * avr-tdep.c (avr_remote_translate_xfer_address): Delete function.
6557 (avr_gdbarch_init): Remove avr_call_dummy_words variable.
6558 Don't set deprecated_call_dummy_words.
6559 Remove commented out set_gdbarch_believe_pcc_promotion() call.
6560 Don't set remote_translate_xfer_address.
6561 (avr_io_reg_read_command): Remove commented out debug printf.
6562 Wrap a long line.
6563
57bc6122
TR
65642003-06-14 Theodore A. Roth <troth@openavr.org>
6565
6566 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6567 causes gdb to seg fault.
6568
eb01fc62
DJ
65692003-06-14 Daniel Jacobowitz <drow@mvista.com>
6570
6571 * sparc-nat.c (fetch_inferior_registers): Correct
6572 a reference to "registers".
6573
3b3e6bee
DJ
65742003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
6575
6576 * Makefile.in (exc_request_U_h): Define
6577 (exc_request_S_h): Likewise.
6578 (msg_reply_S_h): Likewise.
6579 (msg_U_h): Likewise.
6580 (notify_S_h): Likewise.
6581 (process_reply_S_h): Likewise.
6582 (gnu-nat.o): Depend on gdb_obstack_h
6583 * gnu-nat.c: Include "gdb_obstack.h".
6584
b8de8283
AC
65852003-06-13 Andrew Cagney <cagney@redhat.com>
6586
6587 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6588 * gdbarch.h, gdbarch.c: Re-generate.
8ffd9b1b 6589
f3be58bc
AC
65902003-06-13 Andrew Cagney <cagney@redhat.com>
6591
6592 * gdbarch.sh: Document what UNWIND_DUMMY_ID replaces. Clarify
6593 when deprecated REGISTER macros can be deleted.
6594 * gdbarch.h, gdbarch.c: Re-generate.
6595
4c0122c8
JB
65962003-06-13 Jim Blandy <jimb@redhat.com>
6597
6598 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6599 Linux entry point symbols for _dl_debug_state, too.
6600
3e210248
AC
66012003-06-13 Andrew Cagney <cagney@redhat.com>
6602
6603 * infcall.c (call_function_by_hand): When UNWIND_DUMMY_ID is
6604 available, do not use the FP register, and always save the TOS.
6605 * dummy-frame.c (dummy_frame_this_id): Do not assert
6606 SAVE_DUMMY_FRAME_TOS.
6607 * i386-tdep.c (i386_save_dummy_frame_tos): Delete function.
6608 (i386_gdbarch_init): Do not set save_dummy_frame_tos.
6609 (i386_push_dummy_call): Add 8 to the returned SP.
6610 * frame.c (legacy_frame_p): Do not require SAVE_DUMMY_FRAME_TOS.
6611 * d10v-tdep.c (d10v_unwind_dummy_id): Use d10v_unwind_sp.
6612 (d10v_gdbarch_init): Do not set save_dummy_frame_tos.
6613 * x86-64-tdep.c (x86_64_save_dummy_frame_tos): Delete function.
6614 (x86_64_push_dummy_call): Return "sp + 16".
6615 (x86_64_init_abi): Do not set save_dummy_frame_tos.
6616 * alpha-tdep.c (alpha_gdbarch_init): Do not set
6617 save_dummy_frame_tos.
6618
0b65af49
JB
66192003-06-13 Jim Blandy <jimb@redhat.com>
6620
6621 * frv-tdep.c (frv_use_struct_convention): Delete static
6622 declaration for function deleted in my change of 2003-06-12.
6623
4ea2465e
TR
66242003-06-13 Theodore A. Roth <troth@openavr.org>
6625
6626 * avr-tdep.c (avr_address_to_pointer): Shift code addrs right 1 bit.
6627 (avr_pointer_to_address): Shift code addrs left 1 bit.
6628 (avr_convert_from_func_ptr_addr): Delete function since operation is
6629 better handled by avr_address_to_pointer and avr_pointer_to_address.
6630 (avr_gdbarch_init): Don't set convert_from_func_ptr_add method.
6631
1581182a
MK
66322003-06-13 Mark Kettenis <kettenis@gnu.org>
6633
6634 From Kelley Cook <kelleycook@wideopenwest.com>:
6635 * configure.host: Accept i[34567]86 variants.
6636 * configure.tgt: Likewise.
6637 * nlm/configure.in: Likewise.
6638 * nlm/configure: Regenerated.
6639
7aa1783e
RE
66402003-06-13 Richard Earnshaw <rearnsha@arm.com>
6641
6642 * arm-tdep.c (solib-svr4.h): Dont' include it.
6643 (arm_linux_svr4_fetch_link_map_offsets): Move to ...
6644 * arm-linux-tdep.c: ... here. Make static.
6645 (arm_linux_init_abi): Register it.
6646 (solib-svr4.h): Include it.
6647 * Makefile.in: Update dependencies.
6648 * config/arm/tm-linux.h (SVR4_FETCH_LINK_MAP_OFFSETS): Delete.
6649 (arm_linux_svr4_fetch_link_map_offsets): Delete declaration.
6650
0261a0d0
CV
66512003-06-13 Corinna Vinschen <vinschen@redhat.com>
6652
6653 * h8300-tdep.c: Add definitions E_RET0_REGNUM and E_RET1_REGNUM to
6654 indicate registers used for return values.
6655 (struct frame_extra_info): Drop args_pointer and locals_pointer.
6656 (h8300_examine_prologue): Remove initializing dropped frame_extra_info
6657 members.
6658 (h8300_init_extra_frame_info): Ditto.
6659 (h8300_frame_locals_address): Removed.
6660 (h8300_frame_args_address): Removed.
6661 (h8300_extract_return_value): Use new regcache structure. Only care
6662 for 16 bit CPUs.
6663 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6664 (h8300_store_return_value): Use new regcache structure. Only care
6665 for 16 bit CPUs.
6666 (h8300h_store_return_value): Same function for 32 bit CPUs.
6667 (h8300_store_struct_return): Removed.
6668 (h8300_extract_struct_value_address): Use new regcache structure.
6669 (h8300h_extract_struct_value_address): Removed.
6670 (h8300_push_dummy_code): New function.
6671 (h8300_gdbarch_init): Slightly rearranged to stress deprecated calls.
6672 Remove call_dummy_words. Call set_gdbarch_extract_return_value and
6673 set_gdbarch_store_return_value architecture dependent.
6674 Call set_gdbarch_push_dummy_code and
6675 set_gdbarch_extract_struct_value_address.
6676 Remove calls to set_gdbarch_frame_args_address,
6677 set_gdbarch_frame_locals_address,
6678 set_gdbarch_deprecated_store_struct_return,
6679 set_gdbarch_deprecated_extract_return_value,
6680 set_gdbarch_deprecated_extract_struct_value_address,
6681 set_gdbarch_deprecated_call_dummy_words and
6682 set_gdbarch_deprecated_sizeof_call_dummy_words.
6683
055c394a
CV
66842003-06-13 Corinna Vinschen <vinschen@redhat.com>
6685
6686 * h8300-tdep.c (h8300_register_byte): Remove.
6687 (h8300h_register_byte): Remove.
6688 (h8300_register_virtual_type): Remove. Substitute by...
6689 (h8300_register_type): New function.
6690 (h8300_extract_struct_value_address): Drop usage of h8300_register_byte.
6691 (h8300h_extract_struct_value_address): Ditto.
6692 (h8300_gdbarch_init): Drop calls to
6693 set_gdbarch_deprecated_register_byte and
6694 set_gdbarch_deprecated_register_virtual_type.
6695 Add call to set_gdbarch_register_type.
6696
9c04cab7
AC
66972003-06-13 Andrew Cagney <cagney@redhat.com>
6698
6699 * gdbarch.sh: Update comments on registers.
6700 (deprecated_register_byte): Rename register_byte.
6701 (deprecated_register_raw_size): Rename register_raw_size.
6702 (deprecated_register_virtual_size): Rename register_virtual_size.
6703 (deprecated_register_virtual_type): Rename register_virtual_type.
6704 * gdbarch.h, gdbarch.c: Re-generate.
6705 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
6706 * vax-tdep.c (vax_gdbarch_init): Update.
6707 * v850-tdep.c (v850_gdbarch_init): Update.
6708 * sparc-tdep.c (sparc_gdbarch_init): Update.
6709 * sh-tdep.c (sh_gdbarch_init): Update.
6710 * s390-tdep.c (s390_gdbarch_init): Update.
6711 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
6712 * ns32k-tdep.c: Update.
6713 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
6714 * mips-tdep.c (mips_gdbarch_init): Update.
6715 * mcore-tdep.c (mcore_gdbarch_init): Update.
6716 * m68k-tdep.c (m68k_gdbarch_init): Update.
6717 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
6718 * ia64-tdep.c (ia64_gdbarch_init): Update.
6719 * hppa-tdep.c (hppa_gdbarch_init): Update.
6720 * h8300-tdep.c (h8300_gdbarch_init): Update.
6721 * frv-tdep.c (frv_gdbarch_init): Update.
6722 * cris-tdep.c (cris_gdbarch_init): Update.
6723 * avr-tdep.c (avr_gdbarch_init): Update.
6724 * alpha-tdep.c (alpha_gdbarch_init): Update.
6725 * arm-tdep.c (arm_gdbarch_init): Update.
6726
b060cbea
AC
67272003-06-13 Andrew Cagney <cagney@redhat.com>
6728
6729 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6730 mips_o32_use_struct_convention with always_use_struct_convention.
6731
0fc9922a
DC
67322003-06-12 David Carlton <carlton@kealia.com>
6733
6734 * cp-namespace.c (cp_set_block_scope): Comment out
6735 processing_has_namespace_info branch.
6736
1fd35568
JB
67372003-06-12 Jim Blandy <jimb@redhat.com>
6738
f470a70a
JB
6739 Recognize and skip 64-bit PowerPC Linux linkage functions.
6740 * ppc-linux-tdep.c (insn_d, insn_ds, insn_xfx, read_insn, struct
6741 insn_pattern, insns_match_pattern, d_field, ds_field): New
6742 functions, macros, and types for working with PPC instructions.
6743 (ppc64_standard_linkage, PPC64_STANDARD_LINKAGE_LEN,
6744 ppc64_in_solib_call_trampoline, ppc64_standard_linkage_target,
6745 ppc64_skip_trampoline_code): New functions, variables, and macros
6746 for recognizing and skipping linkage functions.
6747 (ppc_linux_init_abi): Use ppc64_in_solib_call_trampoline and
6748 ppc64_skip_trampoline_code for the 64-bit PowerPC Linux ABI.
6749
49ff75ad
JB
6750 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6751 register offsets for both the 32- and 64-bit interfaces.
6752
bd918c83
JB
6753 Actually finish the job started by my change of 2003-05-29.
6754 * config/powerpc/tm-linux.h (SKIP_TRAMPOLINE_CODE): Remove the
6755 other #definition of this.
6756 (ppc_linux_skip_trampoline_code): Remove declaration.
6757 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Make this
6758 static.
6759 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6760 method for GDBARCH.
6761
6762 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6763 'long' on ppc64-*-linux*.
6764
f8c59253
JB
6765 * ppc-linux-nat.c (ppc_register_u_addr, fill_gregset): If PT_MQ
6766 isn't #defined, assume the register doesn't exist: act as if
6767 tdep->ppc_mq_regnum were -1.
6768
8fbb30b1
JB
6769 * configure.host, configure.tgt: Add entries for
6770 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6771 powerpc/linux.mt.
6772 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
6773 New files.
6774
1fd35568
JB
6775 * arch-utils.c (always_use_struct_convention): New function.
6776 * arch-utils.h (always_use_struct_convention): New prototype.
6777 * alpha-tdep.c (alpha_use_struct_convention): Delete.
6778 (alpha_gdbarch_init): Register always_use_struct_convention,
6779 instead of alpha_use_struct_convention.
6780 * cris-tdep.c (cris_use_struct_convention): Delete.
6781 (cris_gdbarch_init): Register always_use_struct_convention,
6782 instead of cris_use_struct_convention.
6783 * frv-tdep.c (frv_use_struct_convention): Delete.
6784 (frv_gdbarch_init): Register always_use_struct_convention,
6785 instead of frv_use_struct_convention.
6786 * h8300-tdep.c (h8300_use_struct_convention): Delete.
6787 (h8300_gdbarch_init): Register always_use_struct_convention,
6788 instead of h8300_use_struct_convention.
e3305dd9 6789 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
1fd35568
JB
6790 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6791 instead of mips_o32_use_struct_convention.
6792
e14e6e9c
AC
67932003-06-12 Andrew Cagney <cagney@redhat.com>
6794
6795 * wince.c: Include "mips-tdep.h".
6796 * mips-tdep.h (mips_next_pc): Declare.
6797 * mcore-tdep.c: Make more local functions static.
6798 * Makefile.in (wince.o): Update dependencies.
6799
2335f48e
DC
68002003-06-12 David Carlton <carlton@kealia.com>
6801
6802 * symtab.c (lookup_symbol_aux_minsyms): Replace
6803 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
6804 (find_pc_sect_line, search_symbols, rbreak_command): Ditto.
6805 (COMPLETION_LIST_ADD_SYMBOL): Rewrite in terms of
6806 SYMBOL_NATURAL_NAME.
6807
f70a7d61
AS
68082003-06-12 Andreas Schwab <schwab@suse.de>
6809
6810 * Makefile.in (tuiDisassem.o): Update dependencies.
6811
b6429628
DC
68122003-06-12 David Carlton <carlton@bactrian.org>
6813
6814 * symtab.h: Delete declaration of make_symbol_overload_list.
6815 Add declaration of lookup_partial_symbol.
6816 * symtab.c (remove_params): Move to cp-support.c.
6817 (overload_list_add_symbol, make_symbol_overload_list)
6818 (sym_return_val_size, sym_return_val_index): Ditto.
6819 (lookup_partial_symbol): Make extern.
6820 * cp-support.h: Add declaration of make_symbol_overload_list.
6821 * cp-support.c: Include dictionary.h, objfiles.h, frame.h,
6822 symtab.h, and block.h.
6823 (remove_params): Move here from symtab.c.
6824 (overload_list_add_symbol, make_symbol_overload_list)
6825 (sym_return_val_size, sym_return_val_index): Ditto.
6826 * valops.c: Include cp-support.h.
6827 * Makefile.in (cp-support.o): Depend on dictionary_h, objfiles_h,
6828 frame_h, and block_h.
6829 (valops.o): Depend on cp_support_h.
6830
084edea5
CV
68312003-06-12 Corinna Vinschen <vinschen@redhat.com>
6832
6833 * h8300-tdep.c: Add H8SX registers. Drop E_NUM_REGS entirely,
6834 substitute by NUM_REGS throughout.
6835 (h8300_register_name): Only care for H8/300 and H8/300H registers.
6836 (h8300s_register_name): New function for H8S registers.
6837 (h8300sx_register_name): Ditto for H8SX registers.
6838 (h8300_print_register): Revise register printing, avoid depending
6839 on 32 bit long.
0261a0d0 6840 (h8300_register_byte): Only care for H8/300 registers.
084edea5
CV
6841 (h8300h_register_byte): New function for any other architecture.
6842 (h8300_register_raw_size): Remove.
6843 (h8300_register_virtual_type): Revise to return actually useful
6844 type.
6845 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6846 (h8300h_extract_struct_value_address): New function for any other
6847 architecture.
6848 (h8300_gdbarch_init): Add h8300sxn. Call set_gdbarch_num_regs,
6849 set_gdbarch_register_name, set_gdbarch_register_byte,
6850 set_gdbarch_ptr_bit and set_gdbarch_addr_bit architecture dependent.
6851 Remove calls to set_gdbarch_deprecated_register_size,
6852 set_gdbarch_deprecated_register_bytes, set_gdbarch_register_raw_size,
6853 set_gdbarch_deprecated_max_register_raw_size,
6854 set_gdbarch_register_virtual_size and
6855 set_gdbarch_deprecated_max_register_virtual_size entirely.
6856 Call set_gdbarch_long_long_bit, set_gdbarch_double_bit and
6857 set_gdbarch_long_double_bit.
6858
06194148
JJ
68592003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6860
8ffd9b1b
AJ
6861 * doublest.c (convert_doublest_to_floatformat): When dealing
6862 with the implied integer bit, only alter mant_bits if we are
06194148
JJ
6863 processing a full 32 bits of mantissa.
6864
de4f826b
DC
68652003-06-11 David Carlton <carlton@bactrian.org>
6866
6867 * dictionary.h: New.
6868 * dictionary.c: New.
6869 * block.h: Add opaque declaration for struct dictionary.
6870 (struct block): Add 'dict' member; delete 'hashtable', 'nsyms',
6871 'sym' members.
6872 (BLOCK_DICT): New macro.
6873 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6874 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
6875 BLOCK_SHOULD_SORT.
6876 (ALL_BLOCK_SYMBOLS): Update definition.
6877 * Makefile.in (SFILES): Add dictionary.c.
6878 (dictionary_h): New.
6879 (COMMON_OBS): Add dictionary.o.
6880 (dictionary.o): New.
6881 (ada-lang.o): Depend on dictionary_h.
6882 (buildsym.o, coffread.o, jv-lang.o, mdebugread.o, objfiles.o)
6883 (stack.o, symmisc.o, symtab.o, tracepoint.o, valops.o)
6884 (mi-cmd-stack.o): Ditto.
6885 (gdbtk-cmds.o): Update dependencies.
6886 (gdbtk-stack.o): Ditto.
6887 * ada-lang.c: Include dictionary.h.
6888 (symtab_for_sym): Update uses of ALL_BLOCK_SYMBOLS.
6889 (fill_in_ada_prototype, debug_print_block): Ditto.
6890 (ada_add_block_symbols): Update uses of ALL_BLOCK_SYMBOLS; replace
6891 explicit iteration by use of ALL_BLOCK_SYMBOLS. Delete variable
6892 'is_sorted'.
6893 * mdebugread.c: Include dictionary.h.
6894 (struct parse_stack): Delete 'maxsyms' member.
6895 (parse_symbol): Update calls to new_block. Delete calls to
6896 shrink_block. Use dictionary methods.
6897 (psymtab_to_symtab_1): Delete calls to sort_symtab_syms.
6898 Update calls to new_symtab. Don't maintain maxsyms data.
6899 (mylookup_symbol): Update use of ALL_BLOCK_SYMBOLS.
6900 (add_symbol): Just call dict_add_symbol.
6901 (new_symtab): Delete 'maxsyms' argument.
6902 (new_symtab): Update calls to new_block.
6903 (new_block): Delete 'maxsyms' argument; add 'function' argument.
6904 (shrink_block): Delete function.
6905 (fixup_sigtramp): Update call to new_block. Add symbol via
6906 dict_add_symbol.
6907 * jv-lang.c: Include dictionary.h.
6908 (get_java_class_symtab): Set the BLOCK_DICT of the blocks
6909 appropriately. Set class_symtab->free_func. Make sure the
6910 blockvector is big enough to hold two blocks.
6911 (add_class_symtab_symbol): Use dictionary methods.
6912 (free_class_block): New function.
6913 (type_from_class): Replace explicit iteration by
6914 ALL_BLOCK_SYMBOLS.
6915 * symtab.h (struct symtab): Replace 'free_ptr' method by
6916 'free_func'.
6917 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6918 sort_symtab_syms.
6919 * dwarfread.c (psymtab_to_symtab_1): Delete call to
6920 sort_symtab_syms.
6921 * coffread.c (coff_symfile_read): Delete call to sort_symtab_syms.
6922 Include dictionary.h.
6923 (patch_opaque_types): Update use of ALL_BLOCK_SYMBOLS.
6924 * dbxread.c (dbx_psymtab_to_symtab_1): Delete call to
6925 sort_symtab_syms.
6926 * objfiles.c: Include dictionary.h.
6927 (objfile_relocate): Update use of ALL_BLOCK_SYMBOLS.
6928 * buildsym.c: Include dictionary.h.
6929 (finish_block): Use dictionary methods.
6930 (end_symtab): Set free_func to NULL, not free_ptr.
6931 * tracepoint.c: Include dictionary.h.
6932 (add_local_symbols): Update use of ALL_BLOCK_SYMBOLS.
6933 (scope_info): Ditto.
6934 * stack.c: Include dictionary.h.
6935 (print_block_frame_locals): Update use of ALL_BLOCK_SYMBOLS.
6936 (print_block_frame_labels, print_frame_arg_vars)
6937 (print_frame_args): Ditto.
6938 * symmisc.c (free_symtab_block): Use dictionary methods.
6939 (dump_symtab): Ditto.
6940 (free_symtab): Replace use of 'free_ptr' by 'free_func'.
6941 Include dictionary.h.
6942 * symfile.h: Delete declarations of sort_block_syms,
6943 sort_symtab_syms.
6944 * symfile.c (sort_block_syms): Delete.
6945 (sort_symtab_syms): Delete.
6946 * symtab.c: Include dictionary.h.
6947 (lookup_block_symbol): Use dictionary iterators.
6948 (find_pc_sect_symtab): Update use of ALL_BLOCK_SYMBOLS.
6949 (search_symbols, make_symbol_completion_list): Ditto.
6950 (make_symbol_overload_list): Ditto.
6951 * valops.c (value_of_local): Use dict_empty.
6952 Include dictionary.h.
6953
a31f978c
JB
69542003-06-11 J. Brobecker <brobecker@gnat.com>
6955
6956 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6957
526e70c0
DC
69582003-06-11 David Carlton <carlton@bactrian.org>
6959
6960 * block.h (BLOCK_SHOULD_SORT): Delete.
6961 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
6962 blocks.
6963 * ada-lang.c (ada_add_block_symbols): Ditto.
6964 * symfile.c (sort_block_syms): Delete.
6965 (sort_symtab_syms): Ditto.
6966 * symfile.h: Delete sort_symtabs_syms and sort_block_syms
6967 declarations.
6968 * coffread.c (coff_symfile_read): Don't call sort_symtab_syms.
6969 * dbxread.c (dbx_psymtab_to_symtab_1): Ditto.
6970 * dwarf2read.c (psymtab_to_symtab_1): Ditto.
6971 * dwarfread.c (psymtab_to_symtab_1): Ditto.
6972 * hpread.c (hpread_psymtab_to_symtab_1): Ditto.
6973 * mdebugread.c (psymtab_to_symtab_1): Ditto.
6974 * xcoffread.c (xcoff_psymtab_to_symtab_1): Ditto.
6975
33c08150
JJ
69762003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6977
8ffd9b1b 6978 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
33c08150
JJ
6979 bits to 128.
6980
781a750d
AC
69812003-06-11 Andrew Cagney <cagney@redhat.com>
6982
6983 * gdbarch.sh (DEPRECATED_REGISTER_CONVERTIBLE): Deprecate
6984 REGISTER_CONVERTIBLE.
6985 (DEPRECATED_REGISTER_CONVERT_TO_VIRTUAL): Same.
6986 (DEPRECATED_REGISTER_CONVERT_TO_RAW): Same, make "from" constant.
6987 * gdbarch.h, gdbarch.c: Re-generate.
6988 * arch-utils.h (deprecated_register_convertible_not): Rename
6989 generic_register_convertible_not.
6990 * arch-utils.c (deprecated_register_convertible_not): Rename
6991 generic_register_convertible.
6992 (legacy_convert_register_p, legacy_register_to_value): Update.
6993 * sh-tdep.c (sh64_push_arguments): Update.
6994 * m68klinux-tdep.c (m68k_linux_extract_return_value): Update.
6995 * config/m68k/tm-delta68.h (DEPRECATED_EXTRACT_RETURN_VALUE): Update.
6996 * m68klinux-tdep.c (m68k_linux_store_return_value): Update.
6997 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Update.
6998 * arch-utils.c (legacy_value_to_register): Update.
6999 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7000 (rs6000_register_convert_to_raw): Make parameter "from" const.
7001 * mips-tdep.c (mips_gdbarch_init): Update.
7002 (mips_register_convert_to_raw): Make parameter"virt_buf" const.
7003 * infcmd.c (default_print_registers_info): Update.
7004 * ia64-tdep.c (ia64_gdbarch_init): Update.
7005 (ia64_register_convert_to_raw): Make parameter "from" const.
7006 * i386-tdep.c (i386_gdbarch_init): Update.
7007 (i386_register_convert_to_raw): Update.
7008
cd90e54f
AC
70092003-06-11 Andrew Cagney <cagney@redhat.com>
7010
7011 * remote-fileio.c: Include "remote-fileio.h".
7012 * Makefile.in (remote-fileio.o): Update dependencies.
7013 (remote_fileio_h): Fix typo.
7014
a78f21af
AC
70152003-06-11 Andrew Cagney <cagney@redhat.com>
7016
7017 * xstormy16-tdep.c (xstormy16_push_return_address): Make static.
7018 (xstormy16_save_dummy_frame_tos): Make static.
7019 (_initialize_xstormy16_tdep): Add declaration.
7020 * vax-tdep.c (_initialize_vax_tdep): Add declaration.
7021 * v850-tdep.c: Make local functions static.
7022 (_initialize_v850_tdep): Add declaration.
7023 * sparc-tdep.c: Make local functions static.
7024 (_initialize_sparc_tdep): Add declaration.
7025 * sh-tdep.c: Make local functions static.
7026 (_initialize_sh_tdep): Add declaration.
7027 * sh3-rom.c (_initialize_sh3_rom): Add declaration.
7028 * s390-tdep.c: Make local functions static.
7029 (_initialize_s390_tdep): Add declaration.
7030 * dbxread.c (find_stab_function_addr): Make static.
7031 * ppc-bdm.c (_initialize_bdm_ppc): Add declaration.
7032 * ocd.c (_initialize_remote_ocd): Add declaration.
7033 * dink32-rom.c (_initialize_dink32_rom): Add declaration.
7034 * ppcbug-rom.c (_initialize_ppcbug_rom): Add declaration.
7035 * ns32k-tdep.c (_initialize_ns32k_tdep): Add declaration.
7036 * ns32knbsd-tdep.c (_initialize_ns32knbsd_tdep): Add declaration.
7037 * mips-tdep.c (_initialize_mips_tdep): Add declaration.
7038 * remote-array.c (_initialize_array): Add declaration.
7039 (_initialize_remote_monitors): Add declaration.
7040 * remote-mips.c: Make local functions static.
7041 (_initialize_remote_mips): Add declaration.
7042 * mcore-tdep.c: Make all local functions static.
7043 (_initialize_mcore_tdep): Add declaration.
7044 * dbug-rom.c (_initialize_dbug_rom): Add declaration.
7045 * abug-rom.c (_initialize_abug_rom): Add declaration.
7046 * rom68k-rom.c (_initialize_rom68k): Add declaration.
7047 * cpu32bug-rom.c (_initialize_cpu32bug_rom): Add declaration.
7048 * m68k-tdep.c (_initialize_m68k_tdep): Add declaration.
7049 * remote-est.c (_initialize_est): Add declaration.
7050 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Add declaration.
7051 (m68hc11_call_dummy_address): Make static.
7052 * ia64-tdep.c: Make local functions static.
7053 (_initialize_ia64_tdep): Add declaration.
7054 * solib-legacy.c (_initialize_svr4_lm): Add declaration.
7055 * monitor.c (monitor_wait_filter): Make static.
7056 (_initialize_remote_monitors): Add declaration.
7057 * remote-hms.c (_initialize_remote_hms): Add declaration.
7058 * remote-e7000.c (fetch_regs_from_dump): Make static.
7059 (expect_n): Make static.
7060 (_initialize_remote_e7000): Add declaration.
7061 * ser-e7kpc.c: Always include "defs.h".
7062 (_initialize_ser_e7000pc): Add declaration.
7063 * h8300-tdep.c (_initialize_h8300_tdep): Add declaration.
7064 * cris-tdep.c: Make all but one function static.
7065 (_initialize_cris_tdep): Add declaration.
7066 * solib-svr4.c (_initialize_svr4_solib): Add declaration.
7067 * solib.c (update_solib_list): Make static.
7068 (_initialize_solib): Add declaration.
7069 * avr-tdep.c (avr_breakpoint_from_pc): Make static.
7070 (_initialize_avr_tdep): Add declaration.
7071 * remote-rdi.c (voiddummy): Make static.
7072 (_initialize_remote_rdi): Add declaration.
7073 * arm-tdep.c (_initialize_arm_tdep): Add declaration.
7074 * remote-rdp.c (send_rdp): Make static.
7075 (_initialize_remote_rdp): Add declaration.
7076 * alpha-tdep.c (_initialize_alpha_tdep): Add declaration.
7077
cbcdb1f5
CV
70782003-06-11 Corinna Vinschen <vinschen@redhat.com>
7079
7080 * remote-fileio.c: Make ari happy.
7081
a191ea8d
JB
70822003-06-10 J. Brobecker <brobecker@gnat.com>
7083
7084 * rs6000-nat.c (child_xfer_memory): Compute the right address when
7085 fetching the trailing bytes of the buffer we are about to write.
7086
0ef75e11
AC
70872003-06-10 Andrew Cagney <cagney@redhat.com>
7088
7089 * remote-fileio.h (REMOTE_FILEIO_H): Replace FILEIO_H.
7090 * Makefile.in (remote-fileio.o): Update dependencies.
7091 * remote-fileio.c: Include "gdb_wait.h" and "gdb_stat.h". Do not
7092 include <setjmp.h>, or <sys/types.h> conditional on USG.
7093 (remote_fio_jmp_buf): Delete global variable.
7094
449092f6 70952003-06-10 Corinna Vinschen <vinschen@redhat.com>
559fa028 7096 Martin M. Hunt <hunt@redhat.com>
449092f6 7097
559fa028
AC
7098 * Makefile.in (REMOTE_OBS): Add remote-fileio.o
7099 (SFILES): Add remote-fileio.c.
7100 Add dependencies for building remote-fileio.o. Add remote-fileio.h to
7101 dependencies for building remote.o.
449092f6
CV
7102 * remote-fileio.c: New file implementing the remote File-I/O protocol.
7103 * remote-fileio.h: New header file defining remote File-I/O interface.
8ffd9b1b 7104 * remote.c (remote_write_bytes, remote_read_bytes): Remove
449092f6
CV
7105 static storage class.
7106 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7107 'F' packet.
7108 (_initialize_remote): Call initialize_remote_fileio().
7109 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
449092f6
CV
7110 * defs.h: Declare gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7111 * main.c: New ui_file gdb_stdin, gdb_stdtargerr and gdb_stdtargin.
7112 (captured_main): Initialize new ui_files.
7113 * ui-file.c: Add read and fgets input functions.
7114 (ui_file_new): set ui_file_fputs and ui_file_read to null functions.
7115 (null_file_read): New function.
7116 (ui_file_read): New function.
7117 (set_ui_file_read): New function.
7118 (stdio_file_read): New function.
7119 * ui-file.h: New type ui_file_read_ftype.
7120 (set_ui_file_read): Declare.
7121 (ui_file_read): Declare.
7122
248de703
AC
71232003-06-09 Andrew Cagney <cagney@redhat.com>
7124
7125 * frame.h (deprecated_unwind_get_saved_register): Rename
7126 generic_unwind_get_saved_register, update comments.
7127 * mips-tdep.c (mips_get_saved_register): Update.
7128 * frame.c (deprecated_unwind_get_saved_register): Update.
7129
0ed8aa57
AC
71302003-06-09 Andrew Cagney <cagney@redhat.com>
7131
7132 * vax-tdep.c (vax_frame_locals_address): Delete function.
7133 (vax_gdbarch_init): Do not set frame_locals_address.
7134 * m68hc11-tdep.c (m68hc11_frame_locals_address): Delete function.
7135 (m68hc11_gdbarch_init): Do not set frame_locals_address.
7136 * s390-tdep.c (s390_frame_args_address): Delete function.
7137 (s390_gdbarch_init): Do not set frame_args_address or
7138 frame_locals_address.
7139 * ns32k-tdep.c (ns32k_frame_locals_address): Delete.
7140 (ns32k_gdbarch_init): Do not set frame_locals_address.
7141 * hppa-tdep.c (hppa_frame_args_address): Delete function.
7142 (hppa_frame_locals_address): Delete function.
7143 (hppa_gdbarch_init): Do not set frame_args_address, or
7144 frame_locals_address.
7145 * arm-tdep.c (arm_frame_args_address): Delete.
7146 (arm_frame_locals_address): Delete.
7147 (arm_gdbarch_init): Do not set frame_args_address, or
7148 frame_locals_address.
7149
983a287a
AC
71502003-06-09 Andrew Cagney <cagney@redhat.com>
7151
7152 * gdbarch.sh (FRAME_NUM_ARGS): Change to function with predicate.
7153 * gdbarch.h, gdbarch.c: Re-generate.
7154 * arch-utils.h (frame_num_args_unknown): Delete both declarations.
7155 * arch-utils.c (frame_num_args_unknown): Delete function.
7156 * stack.c (print_args_stub): Use FRAME_NUM_ARGS_P.
7157 (frame_info): Use FRAME_NUM_ARGS_P.
7158 * arm-tdep.c (arm_frame_num_args): Delete function.
7159 (arm_gdbarch_init): Do not set frame_num_args.
7160 * config/pa/tm-hppa64.h (FRAME_NUM_ARGS): Delete.
7161 * hppa-tdep.c (hppa_frame_num_args): Delete function.
7162 (hppa_gdbarch_init): Do not set frame_num_args.
7163 * config/sparc/tm-sparc.h (FRAME_NUM_ARGS): Delete.
7164 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
7165 frame_num_args to default frame_num_args_unknown.
7166 * v850-tdep.c (v850_gdbarch_init): Ditto.
7167 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7168 * sh-tdep.c (sh_gdbarch_init): Ditto.
7169 * s390-tdep.c (s390_gdbarch_init): Ditto.
7170 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7171 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
7172 * mips-tdep.c (mips_gdbarch_init): Ditto.
7173 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
7174 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
7175 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7176 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
7177 * i386-tdep.c (i386_gdbarch_init): Ditto.
7178 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
7179 * frv-tdep.c (frv_gdbarch_init): Ditto.
7180 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
7181 * cris-tdep.c (cris_gdbarch_init): Ditto.
7182 * avr-tdep.c (avr_gdbarch_init): Ditto.
7183 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
7184
8d3b0994
AC
71852003-06-09 Andrew Cagney <cagney@redhat.com>
7186
7187 * printcmd.c (print_frame_nameless_args): Moved to "stack.c".
7188 (print_frame_args): Moved to "stack.c".
7189 * stack.c: Include "gdb_assert.h".
7190 (print_frame_nameless_args): Moved from "printcmd.c", made static.
7191 (print_frame_args): Moved from "printcmd.c".
7192 * frame.h (print_frame_args): Delete declaration.
7193 * Makefile.in (stack.o): Update dependencies.
7194
25e3a86b
AC
71952003-06-08 Andrew Cagney <cagney@redhat.com>
7196
7197 * frame.c (get_prev_frame): Remove reference to
7198 frame_args_address_correct in comments.
7199 * frame-base.c (default_frame_args_address): Delete code
7200 conditional on FRAME_ARGS_ADDRESS_CORRECT.
7201 * vax-tdep.c (vax_frame_args_address_correct): Delete.
7202 (vax_frame_args_address): Merge in vax_frame_args_address_correct.
7203 * config/vax/tm-vax.h (FRAME_ARGS_ADDRESS_CORRECT): Delete
7204 (vax_frame_args_address_correct): Delete declaration.
7205
a9e5fdc2
AC
72062003-06-08 Andrew Cagney <cagney@redhat.com>
7207
7208 * gdbarch.sh (UNWIND_SP): Add.
7209 * gdbarch.h, gdbarch.c: Re-generate.
7210 * frame.c (frame_sp_unwind): New function.
7211 (get_frame_sp): New function.
7212 * frame.h (get_frame_sp, frame_sp_unwind): Declare.
7213 * regcache.c (read_sp): Rewrite, try each of TARGET_READ_SP,
7214 gdbarch_unwind_sp and SP_REGNUM when looking for the SP register
7215 value.
7216 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7217 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7218
8983bd83
AC
72192003-06-08 Andrew Cagney <cagney@redhat.com>
7220
7fec2c59
AC
7221 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
7222 REMOTE_BREAKPOINT.
7223 * remote.c: Update.
7224 * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT): Update.
7225 (DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Update.
7226 * config/m68k/tm-sun3.h: Update.
7227 * config/m68k/tm-m68klynx.h: Update.
7228 * config/h8300/tm-h8300.h (DEPRECATED_REMOTE_BREAKPOINT): Update.
7229
8983bd83
AC
7230 * trad-frame.h (struct trad_frame_saved_reg): Rename "struct
7231 trad_frame". Update comments.
7232 * d10v-tdep.c (struct d10v_unwind_cache): Update.
7233 * trad-frame.c (trad_frame_alloc_saved_regs): Update.
7234 (trad_frame_register_value, trad_frame_prev_register): Update.
7235
b9362cc7
AC
72362003-06-08 Andrew Cagney <cagney@redhat.com>
7237
7238 * acinclude.m4 (gcc_AC_CHECK_DECL, (gcc_AC_CHECK_DECL): Stolen
7239 from GCC's acinclude.m4.
7240 * configure.in: Check for getopt's delcaration.
8ffd9b1b 7241 * aclocal.m4, config.in, configure: Re-generate.
b9362cc7
AC
7242 * main.c (error_init): Delete declaration.
7243 * defs.h (error_init): Declare.
7244 * rs6000-tdep.c (rs6000_fetch_pointer_argument): Make static.
7245 (rs6000_convert_from_func_ptr_addr): Make static.
7246 (_initialize_rs6000_tdep): Add declaration.
7247 * cli/cli-cmds.c (dont_repeat): Delete declaration.
7248 (show_commands, set_verbose, show_history): Delete declaration.
7249 * top.h (set_verbose): Add declaration.
7250 (show_history, set_history, show_commands): Add declaration.
7251 (do_restore_instream_cleanup): Add declaration.
7252 * objc-lang.c (specialcmp): Make static.
7253 (print_object_command): Make static.
7254 (find_objc_msgsend): Make static.
7255 (find_objc_msgcall_submethod_helper): Make static.
7256 (find_objc_msgcall_submethod): Make static.
7257 (_initialize_objc_language): Add declaration.
7258 (find_implementation_from_class): Make static.
7259 (find_implementation): Make static.
7260 * objc-exp.y (yylex): Delete lookup_struct_typedef declaration.
7261 * objc-lang.h (lookup_struct_typedef): Add declaration.
7262 * cli/cli-interp.c (_initialize_cli_interp): Add declaration.
7263 * cli/cli-script.c (clear_hook_in_cleanup): Make static.
7264 (do_restore_user_call_depth): Make static.
7265 (do_restore_instream_cleanup): Delete declaration.
7266 (dont_repeat): Delete declaration.
7267 * cli/cli-decode.c (add_abbrev_cmd): Delete function.
7268 * cli/cli-dump.c (_initialize_cli_dump): Add declaration.
7269 * reggroups.c (_initialize_reggroup): Add declaration.
7270 * cp-support.c (_initialize_cp_support): Add declaration.
7271 * cp-abi.c (_initialize_cp_abi): Add declaration.
7272 * hpacc-abi.c (_initialize_hpacc_abi): Add declaration.
7273 * gnu-v3-abi.c (gnuv3_baseclass_offset): Make static.
7274 (_initialize_gnu_v3_abi): Add declaration.
7275 * gnu-v2-abi.c (gnuv2_value_rtti_type): Make static.
7276 (_initialize_gnu_v2_abi): Add declaration.
7277 * frame-base.c (_initialize_frame_base): Add declaration.
7278 * doublest.c (floatformat_from_length): Make static.
7279 * frame-unwind.c (_initialize_frame_unwind): Add declaration.
7280 * frame.c (create_sentinel_frame): Make static.
7281 (_initialize_frame): Add declaration.
7282 * top.c (do_catch_errors): Make static.
7283 (gdb_rl_operate_and_get_next_completion): Make static.
7284 * typeprint.c: Include "typeprint.h".
7285 * sentinel-frame.c (sentinel_frame_prev_register): Make static.
7286 (sentinel_frame_this_id): Make static.
7287 * p-valprint.c (_initialize_pascal_valprint): Add declaration.
7288 * ui-out.c (make_cleanup_ui_out_begin_end): Delete function.
7289 * dwarf2-frame.c (dwarf2_frame_cache): Make static.
7290 * p-exp.y (push_current_type, pop_current_type): ISO C declaration.
7291 * dwarf2expr.h (dwarf_expr_context): ISO C declaration.
7292 * maint.c (maintenance_print_architecture): Make static.
7293 * signals/signals.c (_initialize_signals): Add declaration.
7294 * std-regs.c (_initialize_frame_reg): Add declaration.
7295 * jv-exp.y (push_variable): ISO C definition.
7296 (push_qualified_expression_name): Ditto.
7297 * memattr.c (_initialize_mem): Add declaration.
7298 * remote.c (remote_check_watch_resources): Make static.
7299 (remote_stopped_by_watchpoint): Make static.
7300 (remote_stopped_data_address): Make static.
7301 * d10v-tdep.c (nr_dmap_regs): Make static.
7302 (a0_regnum): Make static.
7303 (d10v_frame_unwind_cache): Make static.
7304 (d10v_frame_p): Make static.
7305 * osabi.c (show_osabi): Make static.
7306 (_initialize_gdb_osabi): Add extern declaration.
7307 * gdbtypes.c (make_qualified_type): Make static.
7308 (safe_parse_type): Make static.
7309 * macrocmd.c (_initialize_macrocmd): Add extern declaration.
7310 * macrotab.c (macro_bcache_free): Make static.
7311 * interps.c (interp_set_quiet): Make static.
7312 (interpreter_exec_cmd): Make static.
7313 * stack.h (select_frame_command): New file.
7314 * stack.c: Include "stack.h".
7315 (select_frame_command_wrapper): Delete function.
7316 (select_frame_command): Make global.
7317 * infcall.c: Include "infcall.h".
7318 * linespec.c: Include "linespec.h".
7319 * symfile.c (sections_overlap): Make static.
7320 * cp-support.h (cp_initialize_namespace): ISO C declaration.
7321 * charset.c (_initialize_charset): Add missing prototype.
7322 * regcache.c (init_legacy_regcache_descr): Make static.
7323 (do_regcache_xfree): Make static.
7324 (regcache_xfer_part): Make static.
7325 (_initialize_regcache): Add missing prototype.
7326 * breakpoint.c (parse_breakpoint_sals): Make static.
7327 (breakpoint_sals_to_pc): Make static.
7328 * interps.h (clear_interpreter_hooks): ISO C declaration.
7329 * Makefile.in (stack_h): Define.
7330 (stack.o, typeprint.o, mi-main.o): Update dependencies.
7331 (mi-cmd-stack.o, infcall.o, linespec.o): Update dependencies.
7332
a0f267c7
AC
73332003-06-08 Andrew Cagney <cagney@redhat.com>
7334
7335 * Makefile.in (d10v-tdep.o): Update dependencies.
7336 (SFILES): Add trad-frame.c.
7337 (trad_frame_h): Define.
7338 (COMMON_OBS): Add trad-frame.o.
7339 (trad-frame.o): Specify dependencies.
7340 * d10v-tdep.c: Include "trad-frame.h".
7341 (saved_regs_unwinder): Delete function.
7342 (d10v_frame_prev_register): Use trad_frame_prev_register.
7343 (struct d10v_unwind_cache): Change type of "saved_regs" to "struct
7344 trad_frame", delete "regs" and "prev_sp".
7345 (prologue_find_regs): Use trad-frame.
7346 * trad-frame.h, trad-frame.c: New files.
7347
4538b4f4
MK
73482003-06-08 Mark Kettenis <kettenis@gnu.org>
7349
7350 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7351
a0273b2f
AF
73522003-06-07 Adam Fedor <fedor@gnu.org>
7353
7354 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
7355 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
7356 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
7357 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
8ffd9b1b 7358 resolve_msgsend_super, resolve_msgsend_super_stret):
a0273b2f
AF
7359 Use it.
7360
3a6c3343
AC
73612003-06-07 Andrew Cagney <cagney@redhat.com>
7362
7363 * symfile.h: Re-indent, clean up comments.
7364
b46e02f6
AC
73652003-06-07 Andrew Cagney <cagney@redhat.com>
7366
7367 * inferior.h (deprecated_write_sp): Replace
7368 generic_target_write_sp.
7369 * regcache.c (deprecated_write_sp): Replace
7370 generic_target_write_sp.
7371 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
7372 * vax-tdep.c (vax_gdbarch_init): Update.
7373 * v850-tdep.c (v850_gdbarch_init): Update.
7374 * sparc-tdep.c (sparc_gdbarch_init): Update.
7375 * sh-tdep.c (sh_gdbarch_init): Update.
7376 * s390-tdep.c (s390_gdbarch_init): Update.
7377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
7378 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
7379 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
7380 * mcore-tdep.c (mcore_gdbarch_init): Update.
7381 * m68k-tdep.c (m68k_gdbarch_init): Update.
7382 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
7383 * ia64-tdep.c (ia64_gdbarch_init): Update.
7384 * h8300-tdep.c (h8300_gdbarch_init): Update.
7385 * frv-tdep.c (frv_gdbarch_init): Update.
7386 * cris-tdep.c (cris_gdbarch_init): Update.
7387 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
7388
a42e117c
AC
73892003-06-07 Andrew Cagney <cagney@redhat.com>
7390
7391 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
7392 Assert that PC_REGNUM is valid.
7393 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
7394
bd1ce8ba
AC
73952003-06-07 Andrew Cagney <cagney@redhat.com>
7396
7397 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
7398 * gdbarch.h, gdbarch.c: Regenerate.
7399 * mn10300-tdep.c: Include "gdb_assert.h".
7400 (mn10300_read_fp): New function.
7401 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
7402 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
7403 * ia64-tdep.c: Include "gdb_assert.h".
7404 (ia64_read_fp): New function.
7405 (ia64_gdbarch_init): Set deprecated_target_read_fp to
7406 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
7407 * regcache.c (generic_target_read_sp): Delete function.
7408 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
7409 * inferior.h (generic_target_read_sp): Delete declaration.
7410 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
7411 generic_target_read_sp.
7412 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7413 * sparc-tdep.c (sparc_gdbarch_init): Ditto
7414 * sh-tdep.c (sh_gdbarch_init): Ditto.
7415 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7416 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
7417
ec5cbaec
AC
74182003-06-07 Andrew Cagney <cagney@redhat.com>
7419
7420 * gdbarch.sh: Comment each field of startup_gdbarch.
7421 * gdbarch.h, gdbarch.c: Re-generate.
7422
cde9ea48
AC
74232003-06-07 Andrew Cagney <cagney@redhat.com>
7424
7425 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
7426 * gdbarch.h, gdbarch.c: Re-generate.
7427 * regcache.c: Update comments on read_pc et.al.
7428 (generic_target_read_pc): Delete function.
7429 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
7430 * inferior.h (generic_target_read_pc): Delete declaration.
7431 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
7432 generic_target_read_pc.
7433 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
7434 * sh-tdep.c (sh_gdbarch_init): Ditto.
7435 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
7436 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 7437
9a90a780
AC
74382003-06-07 Andrew Cagney <cagney@redhat.com>
7439
7440 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
7441 "index" with "special_local_sect". Use strcmp instead of STREQ.
7442 Append period to coments.
7443
a39a16c4
MM
74442003-06-06 Mark Mitchell <mark@codesourcery.com>
7445
7446 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
7447 (elfstab_offset_sections): Likewise.
7448 * gdb-stabs.h (stab_section_info): Likewise.
7449 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
7450 * objfiles.c (objfile_relocate): Likewise.
7451 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
7452 * remote.c (get_offsets): Likewise.
7453 (remote_cisco_objfile_relocate): Likewise.
7454 * somread.c (som_symfile_offsets): Likewise.
7455 * symfile.c (alloc_section_addr_info): New function.
7456 (build_section_addr_info_from_section_tab): Use it.
7457 (free_section_addr_info): Adjust.
7458 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
7459 (syms_from_objfile): Allocate local_addr dynamically.
7460 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
7461 dynamically.
7462 (add_symbol_file_command): Allocate sect_opts dynamically.
7463 (reread_symbols): Avoid use of SECT_OFF_MAX.
7464 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
7465 (alloc_section_addr_info): Declare it.
7466 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
7467 * win32-nat.c (solib_symbols_add): Allocate section_addrs
7468 dynamically.
7469 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
8ffd9b1b 7470
20c6c2f8
AC
74712003-06-06 Andrew Cagney <cagney@redhat.com>
7472
7473 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7474 (d10v_frame_unwind_cache): Do not set "return_pc".
7475
884a26c8
MS
74762003-06-06 Michael Snyder <msnyder@redhat.com>
7477
7478 * h8300-tdep.c: Make tidy (long lines).
7479
088ce440
ML
74802003-06-06 Michal Ludvig <mludvig@suse.cz>
7481
8ffd9b1b 7482 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
088ce440
ML
7483 to regcache_collect().
7484
7d773d96
JB
74852003-06-05 J. Brobecker <brobecker@gnat.com>
7486
7487 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
7488 pc_in_sigtramp multiarch method.
7489 (hppa_hpux_som_init_abi): Use it.
7490 (hppa_hpux_elf_init_abi): Likewise.
7491 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
7492 macro has been multiarched.
7493 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
7494 macro here, as hppa64 isn't multiarched yet.
7495
1df6926e
AC
74962003-06-05 Andrew Cagney <cagney@redhat.com>
7497
7498 * Makefile.in (value_h): Add $(frame_h).
7499 * value.h: Include "frame.h".
7500 (struct value): Replace "frame_addr" with "frame_id".
7501 (VALUE_FRAME_ID): Replace VALUE_FRAME.
7502 * values.c (allocate_value): Use VALUE_FRAME_ID.
7503 (value_copy): Use VALUE_FRAME_ID.
7504 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
7505 * valops.c (value_assign): Update. Use frame_find_by_id.
7506
6b53acc6
ML
75072003-06-05 Michal Ludvig <mludvig@suse.cz>
7508
7509 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7510 in each pass.
7511
4d9850d3
JJ
75122003-06-05 Jeff Johnston <jjohnstn@redhat.com>
7513
7514 * thread-db.c (check_event): For create/death event breakpoints,
7515 loop through all messages to ensure that we read the message
7516 corresponding to the breakpoint we are at.
7517
8efca6ba
MS
75182003-06-04 Michael Snyder <msnyder@redhat.com>
7519
7520 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7521
0912c7f2
MK
75222003-06-04 Mark Kettenis <kettenis@gnu.org>
7523
7524 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
7525 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
7526 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
7527 when handling .eh_frame sections.
7528
4e370325
JB
75292003-06-04 J. Brobecker <brobecker@gnat.com>
7530
7531 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
7532 prepare_to_proceed procedure instead of the hppa-specific one.
7533 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
7534
b757528f 75352003-06-04 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 7536
b757528f
JJ
7537 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
7538 * config.in: Regenerated.
7539 * configure.in: Add test for syscall function and check for
7540 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
7541 * configure: Regenerated.
7542 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
7543 <sys/syscall.h>.
7544 (kill_lwp): New function that uses tkill syscall or
7545 uses kill, depending on whether threading model is nptl or not.
7546 All callers of kill() changed to use kill_lwp().
7547 (lin_lwp_wait): Make special check when WIFEXITED occurs to
7548 see if all threads have already exited in the nptl model.
7549 (stop_and_resume_callback): New callback function used by the
7550 lin_lwp_wait thread exit handling code.
7551 (stop_wait_callback): Check for threads already having exited and
7552 delete such threads fromt the lwp list when discovered.
7553 (stop_callback): Don't assert retcode of kill call.
8ffd9b1b 7554
b757528f
JJ
7555 Roland McGrath <roland@redhat.com>
7556 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7557 nptl libthread_db.
7558
087779b1
RH
75592003-06-03 Richard Henderson <rth@redhat.com>
7560
b21fd293
RH
7561 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
7562 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
7563 (alpha_sigtramp_frame_prev_register): Likewise.
7564 (alpha_heuristic_frame_prev_register): Likewise.
7565 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
7566
8ffd9b1b 7567 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
087779b1
RH
7568 alpha-specific register id names.
7569 (alpha_mdebug_frame_unwind_cache): Likewise.
7570 (alpha_mdebug_frame_prev_register): Likewise.
7571
baa490c4
RH
75722003-06-03 Richard Henderson <rth@redhat.com>
7573
7574 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
7575 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
7576 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
7577 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
7578 unwind routines.
7579 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
7580 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7581 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
7582
7583 * alpha-linux-tdep.c: Remove unnecessary includes.
7584 * Makefile.in (alpha-linux-tdep.o): Update.
7585
75862003-06-03 Richard Henderson <rth@redhat.com>
7587
7588 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7589 (alphabsd_fill_fpreg): Likewise.
7590
f534e522
JB
75912003-06-03 J. Brobecker <brobecker@gnat.com>
7592
7593 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
7594 references to struct frame_info fields by calls to the equivalent
7595 accessors. Necessary now that frame_info is opaque.
7596
4035536b
JB
75972003-06-03 J. Brobecker <brobecker@gnat.com>
7598
7599 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
7600 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
7601 structure, field no longer exists.
7602
0bd79c5c
JB
76032003-06-03 J. Brobecker <brobecker@gnat.com>
7604
7605 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
7606 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
7607
37bb6d9f
JB
76082003-06-03 J. Brobecker <brobecker@gnat.com>
7609
7610 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
7611 references to struct frame_info fields by calls to the equivalent
7612 accessors. Necessary now that frame_info is opaque.
7613
852ee05c
JB
76142003-06-03 J. Brobecker <brobecker@gnat.com>
7615
7616 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
7617 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
7618 structure, field no longer exists.
7619
7d58c67d
TR
76202003-06-03 Theodore A. Roth <troth@openavr.org>
7621
8ffd9b1b 7622 * remote.c (init_remote_state): Compute sizeof_g_packet by
7d58c67d
TR
7623 accumulation of the size of all registers instead of blindly using
7624 DEPRECATED_REGISTER_BYTES.
7625
0a48e7e8
MS
76262003-06-03 Michael Snyder <msnyder@redhat.com>
7627
7628 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7629 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7630 for h8300sx.
7631
9798ab0d
JB
76322003-06-03 J. Brobecker <brobecker@gnat.com>
7633
7634 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7635 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7636
00b037e2
AC
76372003-06-03 Andrew Cagney <cagney@redhat.com>
7638
7639 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
7640 (sparc_convert_to_raw): Delete function.
7641 (sparc_gdbarch_init): Do not set register_convert_to_raw or
7642 register_convert_to_virtual.
7643
043b2f77
JJ
76442003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7645
7646 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7647 layer if not dealing with a statically-linked threaded program.
7648
f43caff8
KW
76492003-06-03 Kris Warkentin <kewarken@qnx.com>
7650
7651 * solib.c (solib_open): Update comment to reflect actual search order.
7652
ae1e7417
AC
76532003-06-03 Andrew Cagney <cagney@redhat.com>
7654
7655 * frame.c (get_frame_memory_signed): New function.
7656 (get_frame_memory, get_frame_memory_unsigned): New function.
7657 (get_frame_arch): New function.
7658 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
7659 (get_frame_memory, get_frame_unsigned_memory): Declare.
7660 * d10v-tdep.c (d10v_frame_unwind_cache): Use
7661 get_frame_memory_unsigned and get_frame_arch.
7662 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
7663
cb123844
RG
76642003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7665
7666 * MAINTAINERS (write after approval): Add myself.
7667
1bb792e9
JB
76682003-06-03 Jim Blandy <jimb@redhat.com>
7669
7670 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
7671 elements of gregset_t are 64 bits each, but access registers
7672 are still 32 bits, so they're packed two per gregset_t
7673 element. Unpack/pack them properly.
7674
aee8d8ba
DC
76752003-06-02 David Carlton <carlton@bactrian.org>
7676
7677 * linespec.c (find_methods): Break out code into
7678 add_matching_methods and add_constructors.
7679 (add_matching_methods): New.
7680 (add_constructors): Ditto.
7681
bf7488d2
AC
76822003-06-02 Andrew Cagney <cagney@redhat.com>
7683
bf7488d2
AC
7684 * sparc-tdep.c (sparc_print_registers): Delete call to
7685 REGISTER_CONVERTIBLE.
7686 (sparc_gdbarch_init): Do not set register_convertible.
7687 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
7688 * frv-tdep.c (frv_gdbarch_init): Ditto.
7689 * cris-tdep.c (cris_gdbarch_init): Ditto.
7690
adedef68
EZ
76912003-06-02 Elena Zannoni <ezannoni@redhat.com>
7692
8ffd9b1b 7693 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
adedef68
EZ
7694 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7695 (syms_from_objfile): Ditto.
7696
650fcc91
AS
76972003-06-03 Andreas Schwab <schwab@suse.de>
7698
7699 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7700 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7701
df4a182b
RH
77022003-06-02 Richard Henderson <rth@redhat.com>
7703
7704 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7705 a member of all_reggroup.
7706
c483c494
RH
77072003-06-02 Richard Henderson <rth@redhat.com>
7708
7709 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
7710 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
7711 (alpha_lds, alpha_sts): New.
7712 (alpha_convert_register_p): Change from _register_convertible.
8ffd9b1b 7713 (alpha_register_to_value): Change from _convert_to_virtual;
c483c494
RH
7714 restructure and fail for type sizes other than 4 or 8.
7715 (alpha_value_to_register): Similarly.
7716 (alpha_extract_return_value): Use alpha_sts.
7717 (alpha_store_return_value): Use alpha_lds.
7718 (alpha_gdbarch_init): Update hooks.
7719
b38b6be2
RH
77202003-06-02 Richard Henderson <rth@redhat.com>
7721
7722 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7723 regnum identifiers.
7724 (alpha_sigtramp_register_address): Likewise.
7725
98a8e1e5
RH
77262003-06-02 Richard Henderson <rth@redhat.com>
7727
7728 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
7729 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
7730 * alpha-tdep.h: Declare them.
7731
7732 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
7733 Remove zerobuf. Don't error on UNIQUE.
7734 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
7735 (ALPHA_REGSET_UNIQUE): Provide default.
7736 (supply_gregset): Use alpha_supply_int_regs.
7737 (fill_gregset): Use alpha_fill_int_regs.
7738 (supply_fpregset): Use alpha_supply_fp_regs.
7739 (fill_fpregset): Use alpha_fill_fp_regs.
7740 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
7741 (alphabsd_supply_reg): Use alpha_supply_int_regs.
7742 (alphabsd_fill_reg): Use alpha_fill_int_regs.
7743 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
7744 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
7745 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
7746
67dfac52
RH
77472003-06-02 Richard Henderson <rth@redhat.com>
7748
f75d70cc
RH
7749 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7750
67dfac52
RH
7751 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7752 (alpha_store_return_value): Likewise.
7753
0cf566ec
DC
77542003-06-02 David Carlton <carlton@math.stanford.edu>
7755
7756 * block.c (contained_in): Add 'const' to arguments.
7757 (block_function): Ditto.
7758 * block.h: Update declarations for block_function and
7759 contained_in.
7760
cdef89d0
DC
77612003-06-02 David Carlton <carlton@math.stanford.edu>
7762
7763 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
7764 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
7765 * p-valprint.c (pascal_val_print): Ditto.
7766 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
7767
72667056
RH
77682003-06-02 Richard Henderson <rth@redhat.com>
7769
98a8e1e5
RH
7770 * alpha-tdep.c (alpha_push_dummy_call): Use
7771 builtin_type_ieee_double_little instead of builtin_type_double.
eb4edb88 7772
8ffd9b1b 7773 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
98a8e1e5
RH
7774 sign-extension of 32-bit values.
7775 (alpha_store_return_value): Similarly.
0ede8eca 7776
98a8e1e5
RH
7777 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7778 (alpha_extract_return_value): Likewise.
7779 (alpha_store_return_value): Likewise.
7b5e1cb3 7780
98a8e1e5
RH
7781 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7782 (alpha_store_return_value): Error on IEEE Quad floats.
24064b5c 7783
98a8e1e5
RH
7784 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
7785 (alpha_extract_struct_value_address): Likewise.
7786 (alpha_store_return_value): Likewise.
7787 (alpha_store_struct_return): Remove.
7788 (alpha_gdbarch_init): Update hook registration to match.
5ec2bb99 7789
98a8e1e5
RH
7790 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
7791 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
7792 macros where appropriate.
7793 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
7794 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
14696584 7795
98a8e1e5
RH
7796 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
7797 for SP, GP; void_func_ptr for PC; non-language-specific types
7798 for all others.
7799 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
72667056 7800
6dd77b81
RH
78012003-06-02 Richard Henderson <rth@redhat.com>
7802
7803 * top.h (lim_at_start): Declare.
7804 * main.c (captured_main): Set it.
7805 * top.c (lim_at_start): Define.
7806 (command_loop): Use it instead of &environ.
7807 * event-top.c (command_handler): Likewise.
7808
f4dbdb54
JT
78092003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7810
7811 * mipsnbsd-tdep.c: Update copyright years.
7812 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7813
8f285956
RH
78142003-06-01 Richard Henderson <rth@redhat.com>
7815
98a8e1e5
RH
7816 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
7817 (alpha-linux-tdep.o): Update dependencies.
7818 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
7819 * alpha-mdebug-tdep.c: Remove unneeded includes.
8f285956 7820
615967cb
RH
78212003-06-01 Richard Henderson <rth@redhat.com>
7822
98a8e1e5
RH
7823 * alpha-tdep.c (alpha_register_reggroup_p): New.
7824 (alpha_gdbarch_init): Register it.
615967cb 7825
b59661bd
AC
78262003-06-02 Andrew Cagney <cagney@redhat.com>
7827
7828 * dwarfread.c: Eliminate "register"
7829 (decode_die_type): Eliminate assignment within "if".
7830 (struct_type, decode_array_element_type): Ditto.
7831 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
7832 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
7833 (decode_modified_type, completedieinfo): Ditto.
7834 * block.c: Eliminate "register".
7835 (blockvector_for_pc_sect): Eliminate assignment within "if".
7836 * cp-support.h (struct symbol): Opaque declaration.
7837 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
7838
5ef165c2
RH
78392003-06-01 Richard Henderson <rth@redhat.com>
7840
98a8e1e5
RH
7841 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7842 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
5ef165c2 7843
143985b7
AF
78442003-06-01 Adam Fedor <fedor@gnu.org>
7845
7846 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
7847 * gdbarch.[ch]: Regenerate.
7848 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
7849 (hppa_gdbarch_init): Set it in the gdbarch vector.
7850 * i386-tdep.c (i386_fetch_pointer_argument): New
7851 (i386_gdbarch_init): Set it into gdbarch.
7852 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
7853 (rs6000_gdbarch_init): Set it in gdbarch.
7854 * sparc-tdep.c (sparc_fetch_pointer_argument): New
7855 (sparc_gdbarch_init): Set it in gdbarch.
7856
ae0167b9
AC
78572003-06-01 Andrew Cagney <cagney@redhat.com>
7858
7c0b4a20
AC
7859 * defs.h (extract_address): Delete declaration.
7860 * findvar.c (extract_address): Delete function.
7861 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
7862 extract_address with the inline equivalent,
7863 extract_unsigned_integer.
7864 (xstormy16_extract_struct_value_address): Ditto.
7865 (xstormy16_pointer_to_address): Ditto.
7866 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
7867 * v850-tdep.c (v850_push_arguments): Ditto.
7868 (v850_extract_return_value): Ditto.
7869 (v850_extract_struct_value_address): Ditto.
7870 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
7871 (sparcnbsd_get_longjmp_target_64): Ditto.
7872 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
7873 (get_longjmp_target): Ditto.
7874 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
7875 (sh64_extract_struct_value_address): Ditto.
7876 (sh_push_arguments): Ditto.
7877 (sh64_push_arguments): Ditto.
7878 * remote-vxsparc.c (vx_read_register): Ditto.
7879 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
7880 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
7881 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
7882 * mipsv4-nat.c (get_longjmp_target): Ditto.
7883 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
7884 * mips-nat.c (get_longjmp_target): Ditto.
7885 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
7886 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
7887 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
7888 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
7889 * irix5-nat.c (get_longjmp_target): Ditto.
7890 * irix4-nat.c (get_longjmp_target): Ditto.
7891 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
7892 (ia64_push_arguments): Ditto.
7893 * hpux-thread.c (hpux_thread_store_registers): Ditto.
7894 * h8300-tdep.c (h8300_push_arguments): Ditto.
7895 (h8300_store_return_value): Ditto.
7896 (h8300_extract_struct_value_address): Ditto.
7897 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
7898 (frv_push_arguments): Ditto.
7899 * avr-tdep.c (avr_pointer_to_address): Ditto.
7900 (avr_push_arguments): Ditto.
7901 * arm-tdep.c (arm_push_dummy_call): Ditto.
7902 (arm_get_longjmp_target): Ditto.
7903 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
7904 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
7905 (alpha_get_longjmp_target): Ditto.
7906
ae0167b9
AC
7907 * solib-irix.c (extract_mips_address): Inline extract_address,
7908 replacing it with extract_signed_integer.
7909 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7910 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
7911 (first_link_map_member, open_symbol_file_object): Ditto.
7912 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
7913 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
7914 (LM_NEXT, LM_NAME): Ditto.
7915
44d88583
RH
79162003-06-01 Richard Henderson <rth@redhat.com>
7917
98a8e1e5
RH
7918 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
7919 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
7920 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
7921 (alpha_cannot_store_register): Likewise.
7922 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
7923 * alpha-nat.c (supply_gregset): Likewise.
7924 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
44d88583 7925
310e9b6a
AC
79262003-06-01 Andrew Cagney <cagney@redhat.com>
7927
7928 * infcall.c (call_function_by_hand): Update comment on
7929 DEPRECATED_DUMMY_WRITE_SP.
7930
7931 * mips-tdep.c (mips_gdbarch_init): Do not set
7932 deprecated_dummy_write_sp.
7933 (mips_eabi_push_dummy_call): Set the SP register.
7934 (mips_o64_push_dummy_call): Set the SP register.
7935 (mips_o32_push_dummy_call): Set the SP register.
7936 (mips_n32n64_push_dummy_call): Set the SP register.
7937
5ab84872
RH
79382003-06-01 Richard Henderson <rth@redhat.com>
7939
98a8e1e5
RH
7940 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
7941 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
7942 (supply_gregset): Likewise.
7943 * alpha-tdep.c (alpha_store_return_value): Likewise.
7944 (alpha_get_longjmp_target): Likewise.
7945 (alpha_register_name): Constify array.
7946 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
7947 deprecated_register_size, deprecated_register_bytes,
7948 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
7949 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
7950 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
5ab84872 7951
09cc52fd
RH
79522003-06-01 Richard Henderson <rth@redhat.com>
7953
7954 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7955 from arg_reg_buffer to regcache to avoid double conversion.
7956
c7f16359
MK
79572003-06-01 Mark Kettenis <kettenis@gnu.org>
7958
7959 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7960 SP_REGNUM.
7961 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7962 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7963
7131cb6e
RH
79642003-06-01 Richard Henderson <rth@redhat.com>
7965
98a8e1e5
RH
7966 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7967 (decode_frame_entry): Set it. Skip FDE augmentation.
7131cb6e 7968
f3e0f90b
RH
79692003-06-01 Richard Henderson <rth@redhat.com>
7970
98a8e1e5
RH
7971 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7972 not overlapping PC_REGNUM.
f3e0f90b 7973
c88e30c0
RH
79742003-06-01 Richard Henderson <rth@redhat.com>
7975
98a8e1e5
RH
7976 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
7977 alpha_push_arguments. Don't dump argument register data to
7978 the target stack. Fix float and 128-bit long double semantics.
7979 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
7980 (alpha_fix_call_dummy): Remove.
7981 (alpha_call_dummy_words): Remove.
7982 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
c88e30c0 7983
f1a559ae
RH
79842003-06-01 Richard Henderson <rth@redhat.com>
7985
7986 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7987
5e045346
AC
79882003-06-01 Andrew Cagney <cagney@redhat.com>
7989
95404a3e
AC
7990 * mips-tdep.c (is_mips16_addr): New function.
7991 (make_mips16_addr, unmake_mips16_addr): New functions.
7992 (pc_is_mips16, mips_fetch_instruction): Use.
7993 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
7994 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
7995 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
7996 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
7997 TARGET_MIPS.
7998 * config/mips/tm-mips.h: Update copyright.
7999 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
8000 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
8001 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
8002 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
8003 (TM_PRINT_INSN_MACH): Delete.
8004 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
8005
5e045346
AC
8006 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
8007 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
8008 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
8009 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
8010 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
8011 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
8012 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
8013 mips*-*-riscos* and mips*-*-sysv* onto mips.
8014 * config/mips/mips64.mt: New file.
8015 * config/mips/mips.mt: New file.
8016 * config/mips/littlemips.mt: Delete file.
8017 * config/mips/decstation.mt: Delete file.
8018 * config/mips/vr4300el.mt: Delete file.
8019 * config/mips/vr5000el.mt: Delete file.
8020 * config/mips/vr5000.mt: Delete file.
8021 * config/mips/vr4100.mt: Delete file.
8022 * config/mips/vr4xxxel.mt: Delete file.
8023 * config/mips/vr4300.mt: Delete file.
8024 * config/mips/vr4xxx.mt: Delete file.
8025 * config/mips/bigmips.mt: Delete file.
8026 * config/mips/bigmips64.mt: Delete file.
8027 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
8028 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
8029 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
8030 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
8031 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
8032 "tm-bigmips.h".
8033 * config/mips/tm-irix3.h: Ditto.
8034 * config/mips/tm-mipsv4.h: Ditto.
8035 * config/mips/tm-embed.h: Ditto.
8036 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
8037 "tm-bigmips64.h".
8038 * config/mips/tm-vr5000el.h: Delete file.
8039 * config/mips/tm-tx39l.h: Delete file.
8040 * config/mips/tm-vr4300el.h: Delete file.
8041 * config/mips/tm-vr4xxxel.h: Delete file.
8042 * config/mips/tm-vr4300.h: Delete file.
8043 * config/mips/tm-vr4100.h: Delete file.
8044 * config/mips/tm-vr4xxx.h: Delete file.
8045 * config/mips/tm-vr5000.h: Delete file.
8046 * config/mips/tm-embedl64.h: Delete file.
8047 * config/mips/tm-embedl.h: Delete file.
8048 * config/mips/tm-embed64.h: Delete file.
8049 * config/mips/tm-bigmips64.h: Delete file.
8050 * config/mips/tm-bigmips.h: Delete file.
8051
2473a4a9
MK
80522003-06-01 Mark Kettenis <kettenis@gnu.org>
8053
97a5b208
MK
8054 Fix gdb/1216.
8055 * shnbsd-nat.c: Include "sh-tdep.h".
8056
2473a4a9
MK
8057 From Richard Henderson <rth@redhat.com>:
8058 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8059
e0f7ec59
AC
80602003-05-31 Andrew Cagney <cagney@redhat.com>
8061
8062 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
8063 forward declaration.
8064 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8065 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
8066 (mips_find_saved_regs): Use set_reg_offset.
8067 (mips_frame_init_saved_regs): Delete function.
8068 (mips_pop_frame): Call mips_find_saved_regs instead of
8069 DEPRECATED_FRAME_INIT_SAVED_REGS.
8070
68dcc709
AC
80712003-05-31 Andrew Cagney <cagney@redhat.com>
8072
8073 * mips-tdep.c (mips_gdbarch_init): Do not set
8074 deprecated_max_register_raw_size, register_virtual_size, and
8075 deprecated_max_register_virtual_size.
8076
cfc14b3a
MK
80772003-05-31 Mark Kettenis <kettenis@gnu.org>
8078
6405b0a6
MK
8079 * i386-tdep.c: Include "dwarf2-frame.h".
8080 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
8081 * Makefile.in (i386-tdep.o): Update dependencies.
8082
cfc14b3a
MK
8083 * dwarf2-frame.c, dwarf2-frame.h: New files.
8084 * Makefile.in (SFILES): Add dwarf2-frame.c.
8085 (dwarf2_frame_h): Define.
8086 (COMMON_OBS): Add dwarf2-frame.o.
8087 (dwarf2-frame.o): Add dependencies.
8088
6a2751d2
AJ
80892003-05-31 Andreas Jaeger <aj@suse.de>
8090
8091 * x86-64-linux-nat.c: Fix comment.
8092
1c3545ae
MK
80932003-05-31 Mark Kettenis <kettenis@gnu.org>
8094
10f93086
MK
8095 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
8096 function signature.
8097
1c3545ae
MK
8098 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
8099 have a sigcontext_addr handler.
8100 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
8101 sigcontext_addr handler.
8102
e11c53d2
AC
81032003-05-31 Andrew Cagney <cagney@redhat.com>
8104
8105 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
8106 (print_fp_register_row): Replace do_fp_register_row.
8107 (mips_print_fp_register): Add "file" and "frame" parameters.
8108 (mips_print_register): Add "file" and "frame" parameters.
8109 (mips_print_registers_info): Replace mips_do_registers_info.
8110 (mips_gdbarch_init): Set print_registers_info instead of
8111 deprecated_do_registers_info.
8112 (mips_read_fp_register_single): Add "frame" parameter.
8113 (mips_read_fp_register_double): Add "frame" parameter.
8114
a3386186
MK
81152003-05-31 Mark Kettenis <kettenis@gnu.org>
8116
70913449
MK
8117 * i386-tdep.c (i386_register_name): Check for MMX registers first.
8118 Fixes a bug where GDB would print the wrong register names for
8119 targets without SSE.
8120
2b5e0749
MK
8121 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
8122 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8123 registers.
8124
8125 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
8126 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
8127 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8128 TDEP->sc_sp_offset.
8129
a3386186
MK
8130 From Michal Ludvig <mludvig@suse.cz>:
8131 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
8132 and `sc_num_regs'.
8133 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8134 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8135 I386_ST0_REGNUM): Move here from...
8136 * i386-tdep.c: ... here.
8137 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
8138 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
8139 registers if possible.
8140 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
8141 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
8142 Remove variables.
8143 (i386bsd_sc_reg_offset): New variable.
8144 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
8145 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8146 TDEP->sc_sp_offset.
8147 (i386fbsd_sc_reg_offset): New variable.
8148 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8149 TDEP->sc_num_regs.
8150 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
8151 variables.
8152 (i386fbsd4_sc_reg_offset): New variable.
8153 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
8154 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8155 TDEP->sc_sp_offset.
8156 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
8157 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
8158 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
8159 Remove variables.
8160 (i386nbsd_sc_reg_offset): New variable.
8161 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
8162 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8163 TDEP->sc_sp_offset.
8164 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
8165 Remove variables.
8166 (i386obsd_sc_reg_offset): New variable.
8167 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
8168 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
8169 TDEP->sc_sp_offset.
8170 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
8171 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
8172 for frame pointer offset in `struct sigcontext'.
8173
25ab4790
AC
81742003-05-31 Andrew Cagney <cagney@redhat.com>
8175
8176 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
8177 architecture methods call_dummy_words, sizeof_call_dummy_words,
8178 push_return_address, store_struct_return, and fix_call_dummy. Set
8179 push_dummy_call instead of deprecated_push_arguments.
8180 (mips_store_struct_return): Delete function.
8181 (mips_fix_call_dummy): Delete function.
8182 (mips_push_return_address): Delete function.
8183 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
8184 RA_REGNUM and T9_REGNUM.
8185 (mips_n32n64_push_dummy_call): Ditto for
8186 mips_n32n64_push_arguments.
8187 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
8188 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
8189
6a65450a
AC
81902003-05-31 Andrew Cagney <cagney@redhat.com>
8191
8192 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
8193 "dummy_addr" to "bp_addr".
8194 * infcall.c (call_function_by_hand): Pass "funaddr" to
8195 gdbarch_push_dummy_call.
8196 * gdbarch.h, gdbarch.c: Re-generate.
8197 * i386-tdep.c (i386_push_dummy_call): Update.
8198 * arm-tdep.c (arm_push_dummy_call): Update.
8199 * d10v-tdep.c (d10v_push_dummy_call): Update.
8200
c4f35dd8
MK
82012003-05-31 Mark Kettenis <kettenis@gnu.org>
8202
8203 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
8204 variable declarations.
8205 (x86_64_register_number, x86_64_register_name): Remove prototypes.
8206 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
8207 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
8208 x86_64_init_frame_pc, x86_64_init_frame_pc,
8209 x86_64_function_has_prologue): Remove prototypes.
8210 (X86_64_NUM_GREGS): New define.
8211 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
8212 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
8213 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
8214 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
8215 XMM1_REGNUM): Remove defines.
8216 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
8217 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
8218 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
8219 X86_64_XMM1_REGNUM): New defines.
8220 (struct x86_64_register_info): Renamed from `struct
8221 register_info'. Remove `size' member.
8222 (x86_64_register_info_table): Remove variable.
8223 (x86_64_register_info): New variable.
8224 (X86_64_NUM_REGS): New define.
8225 (X86_64_NUM_GREGS): Remove define.
8226 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
8227 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
8228 Remove variables.
8229 (x86_54_dwarf2_reg_to_regnum): Remove function.
8230 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
8231 (x86_64_dwarf_reg_to_regnum): New function.
8232 (x86_64_register_name): Rewrite.
8233 (x86_64_register_raw_size): Remove function.
8234 (x86_64_register_byte_table): Remove variable.
8235 (x86_64_register_byte): Remove function.
8236 (x86_64_register_virtual_type): Remove function.
8237 (x86_64_register_type): New function.
8238 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
8239 x86_64_register_convert_to_raw): Remove functions.
8240 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
8241 (x86_64_use_struct_convention): Make static. Adjust for renamed
8242 defines.
8243 (x86_64_frame_init_saved_regs): Remove function.
8244 (x86_64_push_arguments): Make static. Change to accept a regcache
8245 as argument.
8246 (x86_64_store_return_value, x86_64_extract_return_value): Make
8247 static. Rewrite based on i386 counterparts.
8248 (x86_64_push_dummy_call): New function.
8249 (X86_64_NUM_SAVED_REGS): New define.
8250 (x86_64_register_number): Remove function.
8251 (x86_64_store_struct_return): Remove function.
8252 (x86_64_frameless_function_invocation,
8253 x86_64_function_has_prologue): Remove functions.
8254 (PROLOG_BUFSIZE): Remove define.
8255 (struct x86_64_frame_cache): New structure.
8256 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
8257 x86_64_frame_cache, x86_64_frame_this_id,
8258 x86_64_frame_prev_register, x86_64_frame_p,
8259 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
8260 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
8261 functions.
8262 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
8263 variables.
8264 (x86_64_skip_prologue): Rewrite in terms of
8265 x86_64_analyze_prologue.
8266 (x86_64_frame_base_address): New function.
8267 (x86_64_frame_base): New variable.
8268 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
8269 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
8270 set deprecated_fp_regnum, deprecated_register_size,
8271 deprecated_register_bytes, register_raw_size, register_byte,
8272 register_virtual_type, register_convertiable,
8273 register_convert_to_virtual, convert_to_raw,
8274 deprecated_get_saved_register, deprecated_target_read_fp,
8275 deprecated_push_arguments, deprecated_push_return_address,
8276 deprecated_pop_frame, deprecated_store_struct_return,
8277 deprecated_frame_init_saved_regs, deprecated_frame_chain,
8278 frameless_function_invocation, deprecated_frame_saved_pc,
8279 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
8280 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
8281 deprecated_init_frame_pc and virtual_frame_pointer. Call
8282 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
8283 and x86_64_frame_p. Call frame_base_set_default to register
8284 x86_64_frame_base.
8285 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
8286 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
8287 (_initialize_x86_64_tdep): Remove function.
8288 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
8289 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
8290 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
8291 define.
8292 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
8293 (x86_64_linux_sigcontext_addr): Rewrite.
8294 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
8295 x86_64_linux_frame_saved_pc): Remove functions.
8296 (x86_64_linux_pc_in_sigtramp): Renamed from
8297 x86_64_linux_in_sigtramp. Try harder to recognize a signal
8298 trampoline.
8299 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
8300 Remove_functions.
8301 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
8302 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8303 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
8304 (x86_64_regmap): Rename to regmap.
8305 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
8306 x86_64_num_gregs.
8307 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
8308 x86_64_regmap.
8309 (x86_64_fxsave_offset): Remove function.
8310 (supply_fpregset): Simply call x86_64_supply_fxsave.
8311 (fill_fpregset): Simply call x86_64_fill_fxsave.
8312 (fetch_inferior_registers, store_inferior_registers): Avoid
8313 asignment in if-statement.
8314 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
8315 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
8316 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
8317 (fetch_core_registers): Remove function.
8318 (linux_elf_core_fns): Remove.
8319 (offsetoff): Don't define.
8320 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
8321 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
8322 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
8323 add core-regset.o.
8324 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
8325 protection against multiple includes instead of NM_X86_64_h. Add
8326 various comments. Include "config/nm-linux.h". Don't include
8327 <signal.h>.
8328 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
8329 GET_THREAD_SIGNALS): Remove defines.
8330 (x86_64_register_u_addr, kernel_u_size,
8331 lin_thread_get_thread_signals): Remove prototypes.
8332 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
8333 [HAVE_LINK_H]: Don't include "solib.h".
8334 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
8335 * config/i386/tm-x86-64linux.h: Fix comments.
8336 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
8337 x86-64-tdep.o): Update dependencies.
8338
c25083af
AC
83392003-05-30 Andrew Cagney <cagney@redhat.com>
8340
c8f55a7b
AC
8341 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8342 Change parameter type to a "struct regcache *".
8343
c25083af
AC
8344 * gdbarch.sh: Regardless of the multi-arch level, always define
8345 the macro when not already defined.
8346 * gdbarch.h, gdbarch.c: Re-generate.
8347
fbe586ae
RH
83482003-05-30 Richard Henderson <rth@redhat.com>
8349
8350 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
8351 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
8352 (alpha_mdebug_frame_this_id): Likewise.
8353 (alpha_mdebug_frame_prev_register): Likewise.
8354 (alpha_mdebug_frame_base_address): Likewise.
8355 (alpha_mdebug_frame_locals_address): Likewise.
8356 (alpha_mdebug_frame_args_address): Likewise.
8357 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
8358 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
8359 (alpha_heuristic_frame_unwind_cache): Make static; add missing
8360 loop increment.
8361 (alpha_heuristic_frame_this_id): Make static.
8362 (alpha_heuristic_frame_prev_register): Likewise.
8363 (alpha_heuristic_frame_base_address): Likewise.
8364 * alpha-tdep.h: Update.
8365
acd5c798
MK
83662003-05-30 Mark Kettenis <kettenis@gnu.org>
8367
8368 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8369 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
8370 defenitions.
8371 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
8372 * i386-tdep.c: Mark functions that are 64-bit safe as such.
8373 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
8374 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
8375 I386_ST0_REGNUM): New defines.
8376 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
8377 codestream_get): Remove define.
8378 (codestream_next_addr, condestream_addr, condestream_buf,
8379 codestream_off, codestream_cnt): Remove variables.
8380 (codestream_fill, codestream_seek, codestream_read): Remove
8381 functions.
8382 (i386_follow_jump): Rewrite to avoid usage of removed codestream
8383 functionality.
8384 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
8385 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
8386 i386_frame_saved_pc, i386_saved_pc_after_call,
8387 i386_frame_num_args, i386_frame_init_saved_regs,
8388 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
8389 i386_push_arguments): Remove functions.
8390 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
8391 functionality. Use i386_analyze_prologue instead of
8392 i386_get_frame_setup.
8393 (I386_NUM_SAVED_REGS): New define.
8394 (struct i386_frame_cache): New structure.
8395 (i386_alloc_frame_cache, i386_analyze_struct_return,
8396 i386_skip_probe, i386_analyze_frame_setup,
8397 i386_analyze_register_saves, i386_analyze_prologue,
8398 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
8399 i386_frame_prev_register, i386_sigtramp_frame_cache,
8400 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
8401 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
8402 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
8403 New functions.
8404 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
8405 New variables.
8406 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
8407 I386_EAX_REGNUM and I386_EDX_REGNUM.
8408 (i386_extract_return_value, i386_store_return_value): Use
8409 I386_ST0_REGNUM where appropriate.
8410 (i386_extract_struct_value_address): Rewrite to use extract_address.
8411 (i386_svr4_pc_in_sigtramp): Add comment.
8412 (i386_svr4_sigcontext_addr): Rewrite.
8413 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
8414 TDEP->sc_sp_offset.
8415 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
8416 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
8417 of new defines. Set push_dummy_call, don't set
8418 deprecated_push_arguments, deprecated_push_return_address,
8419 deprecated_pop_frame. Don't set parm_boundary. Don't set
8420 deprecated_frame_chain, deprecated_frame_saved_pc,
8421 deprecated_saved_pc_after_call. Set unwind_dummy_id,
8422 save_dummy_frame_tos, unwind_pc. Call
8423 frame_unwind_append_predicate and frame_base_set_default. Don't
8424 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
8425 Don't set frameless_function_invocation. Don't set
8426 deprecated_register_bytes, deprecated_register_size,
8427 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
8428 * i386-linux-tdep.c: Fix formatting in some comments.
8429 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
8430 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
8431 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
8432 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
8433 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
8434 redundant parentheses.
8435 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
8436 (i386_linux_sigcontext_addr): Use it. Rewrite.
8437 (find_minsym_and_objfile): Change name of second argument.
8438 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
8439 changed. Use frame_pc_unwind instead of
8440 DEPRECATED_SAVED_PC_AFTER_CALL.
8441 (i386_linux_init_abi): Don't set deprecated_register_bytes.
8442 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
8443 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
8444 unwinder.
8445 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
8446 "dummy-frame.h".
8447 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
8448 (_initialize_i386_cygwin_tdep): New prototype.
8449 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
8450 deprecated_frame_chain_valid.
8451 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
8452 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
8453 Rely on the SVR4 defaults.
8454 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
8455 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
8456
c89b70f1
AC
84572003-05-30 Andrew Cagney <cagney@redhat.com>
8458
8459 * infcall.c (call_function_by_hand): Always call
8460 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8461
85b32d22
RH
84622003-05-30 Richard Henderson <rth@redhat.com>
8463
c89b70f1
AC
8464 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8465 increment.
85b32d22 8466
bfe51b1e
JB
84672003-05-29 Jim Blandy <jimb@redhat.com>
8468
8469 Use gdbarch methods for solib stuff on PowerPC Linux.
8470 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
8471 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
8472 show through.
8473 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
8474 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
8475 giving the same effect as the #definitions above.
8476
1abf022c
AF
84772003-05-29 Adam Fedor <fedor@gnu.org>
8478
8479 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8480 (find_implementation_from_class): Replace it with the standard
8481 case i.e. do nothing.
8482
d2427a71
RH
84832003-05-29 Richard Henderson <rth@redhat.com>
8484
8485 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
8486 (alpha_linux_sigtramp_offset): Use it. Make static.
8487 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
8488 update for new frame model.
8489 * alpha-mdebug-tdep.c: New file.
8490 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
8491 (alpha_osf1_init_abi): Install it.
8492 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
8493 (linked_proc_desc_table): Remove.
8494 (alpha_frame_past_sigtramp_frame): Remove.
8495 (alpha_dynamic_sigtramp_offset): Remove.
8496 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
8497 (alpha_proc_desc_is_dyn_sigtramp): Remove.
8498 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
8499 (push_sigtramp_desc): Remove.
8500 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
8501 (alpha_cannot_store_register): Likewise.
8502 (alpha_sigcontext_addr): Remove.
8503 (alpha_find_saved_regs): Remove.
8504 (alpha_frame_init_saved_regs): Remove.
8505 (alpha_init_frame_pc_first): Remove.
8506 (read_next_frame_reg): Remove.
8507 (alpha_frame_saved_pc): Remove.
8508 (alpha_saved_pc_after_call): Remove.
8509 (temp_proc_desc, temp_saved_regs): Remove.
8510 (alpha_about_to_return): Remove.
8511 (cached_proc_desc): Remove.
8512 (alpha_frame_chain): Remove.
8513 (alpha_print_extra_frame_info): Remove.
8514 (alpha_init_extra_frame_info): Remove.
8515 (alpha_frame_locals_address): Remove.
8516 (alpha_frame_args_address): Remove.
8517 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
8518 (alpha_push_dummy_frame): Remove.
8519 (alpha_pop_frame): Remove.
8520 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
8521 (alpha_read_insn): New.
8522 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
8523 for different insn encodings.
8524 (alpha_in_lenient_prologue): Remove.
8525 (struct alpha_sigtramp_unwind_cache): New.
8526 (alpha_sigtramp_frame_unwind_cache): New.
8527 (alpha_sigtramp_register_address): New.
8528 (alpha_sigtramp_frame_this_id): New.
8529 (alpha_sigtramp_frame_prev_register): New.
8530 (alpha_sigtramp_frame_unwind): New.
8531 (alpha_sigtramp_frame_p): New.
8532 (struct alpha_heuristic_unwind_cache): New.
8533 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
8534 don't count nop insns that occur between functions.
8535 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
8536 heuristic_proc_desc, but without the mdebug wrapping.
8537 (alpha_heuristic_frame_this_id): New.
8538 (alpha_heuristic_frame_prev_register): New.
8539 (alpha_heuristic_frame_unwind): New.
8540 (alpha_heuristic_frame_p): New.
8541 (alpha_heuristic_frame_base_address): New.
8542 (alpha_heuristic_frame_base): New.
8543 (alpha_unwind_dummy_id): New.
8544 (alpha_unwind_pc): New.
8545 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
8546 frame related deprecated initializations; install replacements.
8547 (alpha_dump_tdep): Remove.
8548 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
8549 (alpha_read_insn, alpha_after_prologue,
8550 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
8551 alpha_heuristic_frame_prev_register,
8552 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
8553 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
8554 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
8555 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
8556
93ec1121
AC
85572003-05-29 Andrew Cagney <cagney@redhat.com>
8558
8559 * gdb_assert.h (gdb_assert_fail): Provide different definitions
8560 dependant on the availability of ASSERT_FUNCTION.
8561 (ASSERT_FUNCTION): Do not define when there is no function name.
8562
98f08d3d
KB
85632003-05-29 Kevin Buettner <kevinb@redhat.com>
8564
8565 From Jimi X <jimix@watson.ibm.com>:
8566 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8567
0897f59b
JB
85682003-05-28 Jim Blandy <jimb@redhat.com>
8569
8570 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
8571 argument to ptrace to int; the system headers should give it the
8572 right type, and pointers don't fit in ints on powerpc64-*-*.
8573
14898363
L
85742003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8575
8576 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8577 DW_TAG_catch_block.
8578
a7a48797
EZ
85792003-05-26 Elena Zannoni <ezannoni@redhat.com>
8580
8581 * stabsread.c (dbx_lookup_type): Make static.
8582 (read_type): Ditto.
8583 (add_undefined_type): Ditto.
8584 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8585 not export.
8586
f5479e9c
EZ
85872003-05-26 Elena Zannoni <ezannoni@redhat.com>
8588
8589 * hpread.c (hpread_has_name): Make static.
8590 (hpread_psymtab_to_symtab): Ditto.
8591 (file_exists): Ditto.
8592 (hpread_call_pxdb): Ditto.
8593 (hpread_pxdb_needed): Ditto.
8594 (hpread_quick_traverse): Ditto.
8595 (hpread_get_header): Ditto.
8596 (hpread_get_lntt): Ditto.
8597 (hpread_get_slt): Ditto.
8598 (class_of): Ditto.
8599
eb2e12d7
AS
86002003-05-25 Andreas Schwab <schwab@suse.de>
8601
78bf922a
AS
8602 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
8603 stack_align and deprecated_extra_stack_alignment_needed.
8604 (m68k_stack_align): Delete.
8605
eb2e12d7
AS
8606 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
8607 (m68k_register_virtual_size): Likewise.
8608 (altos_skip_prologue): Remove obsolete function.
8609 (isi_frame_num_args): Likewise.
8610 (news_frame_num_args): Likewise.
8611 (m68k_fix_call_dummy): Make static.
8612 (m68k_push_dummy_frame): Likewise.
8613 (m68k_pop_frame): Likewise.
8614 (m68k_skip_prologue): Likewise.
8615 (m68k_frame_init_saved_regs): Likewise.
8616 (m68k_saved_pc_after_call): Likewise.
8617 (m68k_get_longjmp_target): Make multi-arch.
8618 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
8619 structure. Register m68k_get_longjmp_target if enabled.
8620 * m68k-tdep.h (struct gdbarch_tdep): Define.
8621 * config/m68k/tm-m68k.h: Don't include "regcache.h".
8622
8623 * Makefile.in (config.status): Also depend on configure.tgt
8624 and configure.host.
8625 (m68klinux-tdep.o): Update dependencies.
8626 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
8627 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
8628 (M68K_LINUX_JB_PC): Define.
8629 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
8630 and take additional parameter.
8631 (m68k_linux_sigtramp_saved_pc): Update.
8632 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
8633 m68k_linux_pc_in_sigtramp, in_plt_section,
8634 find_solib_trampoline_target.
8635 * config/m68k/tm-linux.h: Don't include any tm headers.
8636 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
8637 (JB_ELEMENT_SIZE): Likewise.
8638 (JB_PC): Likewise.
8639 (GET_LONGJMP_TARGET): Likewise.
8640 (IN_SIGTRAMP): Likewise.
8641 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8642
eb2c22dc
MK
86432003-05-25 Mark Kettenis <kettenis@gnu.org>
8644
8645 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8646 (sparc32_push_arguments): Re-implement by calling
8647 sparc32_do_push_arguments.
8648
44b7b84e
MK
86492003-05-25 Mark Kettenis <kettenis@gnu.org>
8650
8651 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
8652 SPARC_O1_REGNUM): New defines.
8653 (sparc32_extract_return_value): Rewrite to operate on a regcache.
8654 (sparc32_store_return_value): New function.
8655 (sparc_extract_struct_value_address): Rewrite to operate on a
8656 regcache.
8657 (sparc_gdbarch_init): Don't set
8658 deprecated_extract_struct_value_address. Set
8659 extract_struct_value_address instead. Don't set
8660 deprecated_extract_return_value and deprecated_store_return_value
8661 for 32-bit targets. Set extract_return_value and
8662 store_return_value instead.
8663 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
7bb11558 8664 DEPRECATED_EXTRACT_RETURN_VALUE,
44b7b84e
MK
8665 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
8666 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
8667 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
8668 (sparc_store_return_value): Remove prototype.
8669 (sparc32_store_return_value): New prototype.
8670 (sparc32_extract_return_value, sparc_extract_struct_value_address):
8671 Adjust prototypes.
8672
f6ad61e3
MK
86732003-05-24 Mark Kettenis <kettenis@gnu.org>
8674
8675 * sparcnbsd-tdep.c: Include "gdb_string.h".
8676
b276f1bb
AC
86772003-05-23 Andrew Cagney <cagney@redhat.com>
8678
8679 * p-valprint.c (pascal_val_print): Replace extract_address with
8680 the inline equivalent extract_unsigned_integer.
8681 * jv-valprint.c (java_value_print): Ditto.
8682 * ada-valprint.c (ada_val_print_1): Ditto.
8683 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
8684
e76c5fcc
TR
86852003-05-23 Theodore A. Roth <troth@openavr.org>
8686
8687 * blockframe.c (frameless_look_for_prologue): Remove unused
8688 after_prologue variable.
8689
2cdd89cb
MK
86902003-05-23 Mark Kettenis <kettenis@gnu.org>
8691
8692 * blockframe.c (get_pc_function_start): Rewrite to avoid
8693 asignments in if-statements.
8694
182d43bc
EZ
86952003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8696
8697 Committed by Elena Zannoni <ezannoni@redhat.com>.
8ffd9b1b 8698 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
182d43bc
EZ
8699 files, don't relocate absolute symbols (and do use mst_abs).
8700
e8f3fcdd
AC
87012003-05-23 Andrew Cagney <cagney@redhat.com>
8702
8703 * objc-lang.c: Include "gdb_assert.h".
8704 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
8705 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
8706 (gdb_check, gdb_check_fatal): Delete functions.
8707 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
8708 gdb_assert.
8709 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8710 * Makefile.in (objc-lang.o): Update dependencies.
8711
3c23e6fb
ILT
87122003-05-22 Ian Lance Taylor <ian@airs.com>
8713
8714 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8715 with fprintf_filtered, not fprintf_unfiltered.
8716
af1342ab
AC
87172003-05-22 Andrew Cagney <cagney@redhat.com>
8718
8719 * stack.c (frame_info): Inline extract_address, replacing it with
8720 extract_unsigned_integer.
8721 * findvar.c (unsigned_pointer_to_address): Ditto.
8722 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
8723 * dwarf2expr.c (dwarf2_read_address): Ditto.
8724 * frame.c (frame_pc_unwind): Update comment.
8725 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
8726
47e242ec
JJ
87272003-05-22 Jeff Johnston <jjohnstn@redhat.com>
8728
8729 * infptrace.c (detach): Call print_sys_errmsg rather than
8730 perror_with_name to issue warning message when errno is non-zero
8731 after calling ptrace detach.
8732
e2ac8128
JB
87332003-05-21 J. Brobecker <brobecker@gnat.com>
8734
8735 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8736 macro definitions from here...
8737 * hppa-tdep.c: ...to there.
8738
92b3541e
KB
87392003-05-20 Kevin Buettner <kevinb@redhat.com>
8740
8741 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8742 register_ptrace_addr(). Fix all callers.
8743
55809acb
AS
87442003-05-21 Andreas Schwab <schwab@suse.de>
8745
8746 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8747 dependencies.
8748 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
8749 end.
8750 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
8751 (_initialize_m68k_linux_tdep): New function.
8752 (m68k_linux_frame_saved_pc): Make static.
8753 (m68k_linux_extract_return_value): Likewise.
8754 (m68k_linux_store_return_value): Likewise.
8755 (m68k_linux_extract_struct_value_address): Likewise.
8756 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
8757 Remove.
8758 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8760 (DEPRECATED_FRAME_SAVED_PC): Remove.
8761
0fbc10f7
KW
87622003-05-20 Kris Warkentin <kewarken@qnx.com>
8763
8764 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8765 regset numbering rather than our own.
8766
58da2eb2
DC
87672003-05-19 David Carlton <carlton@bactrian.org>
8768
8769 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8770
1fcb5155
DC
87712003-05-19 David Carlton <carlton@bactrian.org>
8772
8773 Partial fix for PR c++/827.
8774 * cp-support.h: Include symtab.h.
8775 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
8776 * cp-namespace.c: Update contributors.
8777 (cp_lookup_symbol_nonlocal): New.
8778 (lookup_namespace_scope, cp_lookup_symbol_namespace)
8779 (lookup_symbol_file): Ditto.
8780 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
8781 * block.h: Declare block_scope, block_using, block_global_block.
8782 * block.c (block_scope): New.
8783 (block_using, block_global_block): Ditto.
8784 * Makefile.in (cp_support_h): Depend on symtab_h.
8785 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
8786
5f9a71c3
DC
87872003-05-19 David Carlton <carlton@bactrian.org>
8788
8789 * language.h (struct language_defn): Add 'la_value_of_this'
8790 and 'la_lookup_symbol_nonlocal' members.
8791 * symtab.h: Declare basic_lookup_symbol_nonlocal,
8792 lookup_symbol_static, lookup_symbol_global,
8793 lookup_symbol_aux_block.
8794 * symtab.c (lookup_symbol_aux): Call language hooks to determine
8795 if we should search fields of this and how to do static/global
8796 lookup.
8797 (lookup_symbol_aux_block): Make extern.
8798 (basic_lookup_symbol_nonlocal): New.
8799 (lookup_symbol_static, lookup_symbol_global): Ditto.
8800 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
8801 'la_lookup_symbol_nonlocal' members.
8802 * c-lang.c (c_language_defn, cplus_language_defn)
8803 (asm_language_defn, minimal_language_defn): Ditto.
8804 * jv-lang.c (java_language_defn): Ditto.
8805 * language.c (unknown_language_defn, auto_language_defn)
8806 (local_language_defn): Ditto.
8807 * m2-lang.c (m2_language_defn): Ditto.
8808 * objc-lang.c (objc_language_defn): Ditto.
8809 * scm-lang.c (scm_language_defn): Ditto.
8810 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
8811 * p-lang.c (pascal_language_defn): Ditto for both.
8812 * Makefile.in (f-lang.o): Depend on value_h.
8813 (p-lang.o): Ditto.
8814
89a9d1b1
DC
88152003-05-19 David Carlton <carlton@bactrian.org>
8816
8817 * block.h: Declare block_static_block.
8818 * block.c (block_static_block): New.
8819 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
8820 lookup_symbol_aux_local, calling block_static_block instead.
8821 (lookup_symbol_aux_local): Delete 'static_block' argument.
8822
eed3f8ab
DC
88232003-05-19 David Carlton <carlton@bactrian.org>
8824
8825 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8826
a09d8bda
ML
88272003-05-19 Michal Ludvig <mludvig@suse.cz>
8828
8829 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8830 register numbers mapping.
8831
69636828
AF
88322003-05-18 Adam Fedor <fedor@gnu.org>
8833
8834 * symtab.c (completion_list_objc_symbol): New function.
8835 (make_symbol_completion_list): Use it to add ObjC symbols
8836 when looking though the list.
8837 (language_search_unquoted_string): New function.
8838 (make_file_symbol_completion_list): Use it.
8839
55baeb84
AS
88402003-05-18 Andreas Schwab <schwab@suse.de>
8841
d0b45d99
AS
8842 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
8843 dependencies.
8844 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
8845 as m68k_linux_extract_return_value.
8846 (DEPRECATED_STORE_RETURN_VALUE): Define as
8847 m68k_linux_store_return_value.
8848 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
8849 m68k_linux_extract_struct_value_address.
8850 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
8851 get_next_frame, get_frame_base, get_frame_pc.
8852 (m68k_linux_frame_saved_pc): Use get_frame_base.
8853 (m68k_linux_extract_return_value): New function.
8854 (m68k_linux_store_return_value): New function.
8855 (m68k_linux_extract_struct_value_address): New function.
8856 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
8857
55baeb84
AS
8858 * c-exp.y (typebase): Remove duplicate occurence of
8859 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8ffd9b1b 8860 of lookup_signed_typename.
55baeb84 8861
b6b08ebf
MK
88622003-05-18 Mark Kettenis <kettenis@gnu.org>
8863
8864 * dwarf2loc.c (find_location_expression): Change type of second
8865 argument to `size_t *'.
8866 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
8867 for size variable.
8868
5ad1c190
DC
88692003-05-18 David Carlton <carlton@bactrian.org>
8870
8871 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
8872 'linkage_name'. Add comment.
8873 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
8874 'linkage_name'.
8875 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8876 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8877 (lookup_block_symbol): Ditto.
8878
b8b527c5
AC
88792003-05-16 Andrew Cagney <cagney@redhat.com>
8880
8881 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
8882 * gdbarch.h, gdbarch.c: Re-generate.
8883 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
8884 * TODO (REGISTER_BYTES): Delete reference.
8885 * alpha-tdep.c (alpha_gdbarch_init): Update.
8886 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8887 * x86-64-tdep.c (x86_64_init_abi): Update.
8888 * vax-tdep.c (vax_gdbarch_init): Update.
8889 * v850-tdep.c (v850_gdbarch_init): Update.
8890 * sparc-tdep.c (sparc_gdbarch_init): Update.
8891 * sh-tdep.c (sh_gdbarch_init): Update.
8892 * s390-tdep.c (s390_gdbarch_init): Update.
8893 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8894 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
8895 (ns32k_gdbarch_init_32382): Update.
8896 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
8897 * mcore-tdep.c (mcore_gdbarch_init): Update.
8898 * m68k-tdep.c (m68k_gdbarch_init): Update.
8899 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8900 * ia64-tdep.c (ia64_gdbarch_init): Update.
8901 * i386-tdep.c (i386_gdbarch_init): Update.
8902 * i386-linux-tdep.c (i386_linux_init_abi): Update.
8903 * hppa-tdep.c (hppa_gdbarch_init): Update.
8904 * h8300-tdep.c (h8300_gdbarch_init): Update.
8905 * frv-tdep.c (frv_gdbarch_init): Update.
8906 * cris-tdep.c (cris_gdbarch_init): Update.
8907 * avr-tdep.c (avr_gdbarch_init): Update.
8908 * arm-tdep.c (arm_gdbarch_init): Update.
8909 * sparc-tdep.c (sparc_pop_frame): Update.
8910 * rs6000-tdep.c (rs6000_pop_frame): Update.
8911 * remote.c (init_remote_state): Update.
8912 (remote_prepare_to_store): Update.
8913 * remote-vx.c (vx_prepare_to_store): Update.
8914 * remote-sds.c (sds_fetch_registers): Update.
8915 (sds_prepare_to_store): Update.
8916 * remote-array.c: Update.
8917 * regcache.c (init_legacy_regcache_descr): Update.
8918 (init_regcache_descr): Update.
8919 * mips-tdep.c (mips_eabi_extract_return_value): Update.
8920 (mips_o64_extract_return_value): Update.
8921 * irix5-nat.c (fetch_core_registers): Update.
8922 * irix4-nat.c (fetch_core_registers): Update.
8923 * i386-tdep.h: Update.
8924 * hppa-tdep.c (pa_do_registers_info): Update.
8925 (pa_do_strcat_registers_info): Update.
8926 * cris-tdep.c (cris_register_bytes_ok): Update.
8927 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
8928 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
8929 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
8930 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
8931 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
8932 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
8933 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
8934 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
8935 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
8936 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
8937 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
8938 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
8939 (REGISTER_BYTES_OK): Update.
8940 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
8941 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
8942
ee2842e2
ILT
89432003-05-16 Ian Lance Taylor <ian@airs.com>
8944
8945 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
8946 (vax_print_insn, print_insn_arg): Remove static functions.
8947 (vax_gdbarch_init): Call set_gdbarch_print_insn with
8948 print_insn_vax from opcodes library.
8949 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
8950
973177d3
AC
89512003-05-15 Andrew Cagney <cagney@redhat.com>
8952
aaab4dba
AC
8953 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
8954 * target.h (memory_breakpoint_from_pc): Delete declaration.
8955 * mem-break.c (memory_breakpoint_from_pc): Delete function.
8956 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
8957 * monitor.c (monitor_insert_breakpoint): Use
8958 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
8959 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
8960 * gdbarch.h, gdbarch.c: Re-generate.
8961 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
8962 (sparc_gdbarch_init): Set breakpoint_from_pc to
8963 sparc_breakpoint_from_pc.
8964 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
8965 (BREAKPOINT_FROM_PC): Define.
8966 (sparc_breakpoint_from_pc): Declare.
8967 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
8968 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
8969 (BREAKPOINT_FROM_PC): Define.
8970 (BREAKPOINT): Delete macro.
8971 * target.h: Update comment.
8972 * s390-tdep.c (s390_gdbarch_init): Update comments.
8973 * remote.c: Update comments.
8974 * remote-mips.c: Update comments.
8975 * proc-api.c (write_with_trace): Do not check for a breakpoint.
8976 * mem-break.c: Update comment.
8977 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
8978 (ia64_memory_insert_breakpoint): Update.
8979 * config/sparc/tm-sparc.h: Update comment.
8980 * config/pa/tm-hppa64.h: Update comment.
8981 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8982 (rs6000_breakpoint_from_pc): Update.
8983 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
8984 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
8985 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
8986 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
8987 (mips_breakpoint_from_pc): Update.
8988 (mips_dump_tdep): Update.
8989
e06963ff
AC
8990 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
8991 * minsyms.c (lookup_minimal_symbol): Inline
8992 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
8993
973177d3
AC
8994 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
8995 * p-valprint.c (pascal_object_print_value_fields): Ditto.
8996 * p-lang.c (pascal_printstr): Ditto.
8997 * objc-lang.c (objc_printstr): Ditto.
8998 * m2-lang.c (m2_printstr): Ditto.
8999 * jv-valprint.c (java_print_value_fields): Ditto.
9000 * f-lang.c (f_printstr): Ditto.
9001 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
9002 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
9003 for repeat_count_threshold.
9004 * Makefile.in (cp-valprint.o): Update dependencies.
9005
5ea2bd7f 90062003-05-15 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 9007
5ea2bd7f
JJ
9008 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9009 (examine_prologue): Support looking through leaf functions, knowing
8ffd9b1b
AJ
9010 they start with mov r2,r12. Support skipping over indirect stores
9011 of the input registers. Upon hitting a non-nop branch instruction
9012 or predicated instruction, bail out by setting lim_pc to the current
9013 pc value in the loop. At the end, if the lim_pc value is still
5ea2bd7f
JJ
9014 beyond our calculated value and we have trust_limit set,
9015 use the lim_pc value.
9016
cc8c88f3
AC
90172003-05-15 Andrew Cagney <cagney@redhat.com>
9018
9019 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
9020 generic_find_dummy_frame.
9021 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
9022 (deprecated_generic_find_dummy_frame): Update.
9023 (deprecated_read_register_dummy): Update.
9024 * frame.c (deprecated_generic_get_saved_register): Update.
9025
909cd28e
TR
90262003-05-15 Theodore A. Roth <troth@openavr.org>
9027
9028 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9029 (avr_gdbarch_init): Set breakpoint_from_pc method.
9030
b923b08d
AC
90312003-05-15 Andrew Cagney <cagney@redhat.com>
9032
9033 * regcache.c (build_regcache): Set deprecated_register_valid
9034 directly.
9035 (deprecated_grub_regcache_for_register_valid): Delete function.
9036 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9037 declaration.
9038
ae2f03ac 90392003-05-15 David Carlton <carlton@bactrian.org>
8ffd9b1b
AJ
9040
9041 Committed by Elena Zannoni <ezannoni@redhat.com>
fbe586ae
RH
9042 * symtab.c (lookup_symbol_aux): Delete calls to
9043 lookup_symbol_aux_minsyms.
9044 (lookup_symbol_aux_minsyms): Comment out function and
9045 prototype. Delete lookup by mangled name.
ae2f03ac 9046
18ec9831
KB
90472003-05-14 Kevin Buettner <kevinb@redhat.com>
9048
9049 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
9050 correctly indicate an empty stack and ``stack_allocated'' to the
9051 indicate the number of elements initially allocated.
9052 (dwarf_expr_grow_stack): Simplify method for computing new
9053 stack size. Don't loop infinitely if ``stack_len'' is zero.
9054 (execute_stack_op): Move ``ctx->in_reg'' initialization
9055 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
9056 be used in conjuction with DW_OP_piece. Revise error message
9057 accordingly.
9058
de18ac1f
TR
90592003-05-14 Theodore A. Roth <troth@openavr.org>
9060
9061 * MAINTAINERS: Update my email address.
9062 * avr-tdep.c: Ditto.
9063
176620f1
EZ
90642003-05-14 Elena Zannoni <ezannoni@redhat.com>
9065
9066 * symtab.h (enum domain_enum): Rename from namespace_enum.
9067 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
9068 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
9069 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
9070 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
9071 TYPES_NAMESPACE, METHODS_NAMESPACE.
9072 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
9073 (struct symbol, struct partial_symbol): Rename field
9074 'namespace_enum namespace' to 'domain_enum domain'.
9075 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
9076 Delete old define kludge for namespace.
9077
9078 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
9079 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
9080 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
9081 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
9082 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
9083 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
9084 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
9085 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
9086 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
9087 occurrences of the above.
9088
b7f31508
ILT
90892003-05-14 Ian Lance Taylor <ian@airs.com>
9090
9091 * Makefile.in (install-only): Use $(SHELL) when running
9092 mkinstalldirs.
9093
2fdbdd39
ILT
90942003-05-13 Ian Lance Taylor <ian@airs.com>
9095
a208d82c
ILT
9096 * MAINTAINERS (write after approval): Add myself.
9097
2fdbdd39
ILT
9098 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
9099 second and third arguments.
9100 * ser-tcp.c (_initialize_ser_tcp): Likewise.
9101 * ser-unix.c (_initialize_ser_hardwire): Likewise.
9102
fbd9dcd3
AC
91032003-05-13 Andrew Cagney <cagney@redhat.com>
9104
9105 * defs.h (store_address): Delete declaration.
9106 findvar.c (store_address): Delete function.
9107 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
9108 store_unsigned_integer.
9109 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
9110 * v850-tdep.c (v850_push_arguments): Ditto.
9111 * sparc-tdep.c (sparc_get_saved_register): Ditto.
9112 * sh-tdep.c (sh64_get_saved_register): Ditto.
9113 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
9114 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
9115 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
9116 (mips_get_saved_register): Ditto.
9117 * ia64-tdep.c (ia64_get_saved_register): Ditto.
9118 (find_func_descr, ia64_push_arguments): Ditto.
9119 * i386-tdep.c (i386_push_arguments): Ditto.
9120 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
9121 * frv-tdep.c (frv_push_arguments): Ditto.
9122 * frame.c (legacy_saved_regs_prev_register): Ditto.
9123 (deprecated_generic_get_saved_register): Ditto.
9124 * findvar.c (unsigned_address_to_pointer): Ditto.
9125 * dwarf2read.c (dwarf2_const_value): Ditto.
9126 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
9127 * alpha-tdep.c (alpha_push_arguments): Ditto.
9128
6760f9e6
JB
91292003-05-12 J. Brobecker <brobecker@gnat.com>
9130
9131 * NEWS: Mention that the hppa-hpux port has been partially
9132 multiarched (32bit ABIT only, so far).
9133
30e221b4
AC
91342003-05-11 Andrew Cagney <cagney@redhat.com>
9135
9136 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
9137 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
9138 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
9139 sim/testsuite/sim/arm/misaligned2.ms, and
9140 sim/testsuite/sim/arm/misaligned3.ms.
9141 * disasm.h (struct ui_file): Add opaque struct declaration.
9142 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
9143 * frame.h (struct ui_file): Ditto.
9144
dea7f9ba
MK
91452003-05-11 Mark Kettenis <kettenis@gnu.org>
9146
9147 * value.h: Pretty print.
9148
01986c48
MK
91492003-05-10 Mark Kettenis <kettenis@gnu.org>
9150
9151 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9152
123a958e
AC
91532003-05-08 Andrew Cagney <cagney@redhat.com>
9154
9155 * regcache.h (max_register_size): Delete declaration.
9156 * regcache.c (max_register_size): Delete function.
9157 (struct regcache_descr): Delete field "max_register_size".
9158 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
9159 registers fit in MAX_REGISTER_SIZE.
9160 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
9161 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
9162 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
9163 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
9164 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
9165 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
9166 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
9167 * dve3900-rom.c, hppa-tdep.c: Ditto.
9168
eb294659
DC
91692003-05-08 David Carlton <carlton@math.stanford.edu>
9170
9171 * valops.c (push_word): Fix typo.
9172
d9d9c31f
AC
91732003-05-08 Andrew Cagney <cagney@redhat.com>
9174
9175 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
9176 * gdbarch.h: Re-generate.
9177 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
9178 (legacy_max_register_raw_size): Delete declaration.
9179 * regcache.c (legacy_max_register_raw_size): Delete function.
9180 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
9181 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
9182 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
9183 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
9184 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
9185 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
9186 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
9187 * findvar.c, dwarf2cfi.c: Ditto.
9188
22540ece
AC
91892003-05-08 Andrew Cagney <cagney@redhat.com>
9190
9191 * mips-tdep.c (read_signed_register): New function, moved to here
9192 from "regcache.c".
9193 (read_signed_register_pid): Ditto.
9194 * regcache.c (read_signed_register_pid): Delete function, moved to
9195 "mips-tdep.c".
9196 (read_signed_register): Ditto.
9197 * regcache.h (read_signed_register): Delete declaration.
9198 (read_signed_register_pid): Delete declaration.
9199
0c92afe8
AC
92002003-05-08 Andrew Cagney <cagney@redhat.com>
9201
9202 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
9203 * gdbarch.h: Re-generate.
9204 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
9205 (legacy_max_register_virtual_size): Delete declaration.
9206 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
9207 * d10v-tdep.c (d10v_print_registers_info): Ditto.
9208 * tracepoint.c (memrange_sortmerge): Ditto.
9209 * sparc-tdep.c (sparc_print_registers): Ditto.
9210 * regcache.c (legacy_max_register_virtual_size): Delete function.
9211
6037b830
JB
92122002-05-08 J. Brobecker <brobecker@gnat.com>
9213
9214 * fork-child.c (escape_bang_in_quoted_argument): New function.
9215 (fork_inferior): Escape '!' characters in quoted arguments
9216 only when needed.
9217
5d62c8b1
JB
92182003-05-08 J. Brobecker <brobecker@gnat.com>
9219
9220 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9221 the language of the CU is not currently supported by GDB.
9222
20a0e81d
JB
92232003-05-08 J. Brobecker <brobecker@gnat.com>
9224
9225 * defs.h (language): Add language_minimal enum value.
9226 * c-lang.c (minimal_language_defn): New language definition.
9227 (_initialize_c_language): Add the new minimal language to the list
9228 of languages known to GDB.
9229
710ee10a
KB
92302003-05-08 Kevin Buettner <kevinb@redhat.com>
9231
9232 * frame.c (get_frame_type): Don't attempt to lazily initialize
9233 frame's unwinder for legacy frames.
9234
1750fa04
AC
92352003-05-07 Andrew Cagney <cagney@redhat.com>
9236
9237 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
9238 and "regcache" parameters.
9239 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
9240
ddf9f258 92412003-05-07 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9242
9243 * dwarf2read.c (dwarf_decode_lines): Only use output of
9244 check_cu_functions() when calling record_line(). Do not update
ddf9f258
JJ
9245 the current address.
9246
87767c29
AC
92472003-05-07 Andrew Cagney <cagney@redhat.com>
9248
9249 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9250 code.
9251
5e7b2f39
JB
92522003-05-07 Jim Blandy <jimb@redhat.com>
9253
9254 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
9255 'maint info symtabs' and 'maint info psymtabs'.
9256 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
9257 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
9258 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
9259 Declarations updated.
9260 * maint.c (maintenance_list_command): Delete.
9261 (_initialize_maint_cmds): Update calls to add_cmd.
9262 * gdbcmd.h (maintenancelistlist): Delete declaration.
9263 * cli/cli-cmds.c (maintenancelistlist): Delete.
9264 (init_cmd_lists): Don't initialize it.
9265 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
9266
f6684c31
AC
92672003-05-07 Andrew Cagney <cagney@redhat.com>
9268
9269 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
9270 "regcache".
9271 (d10v_print_registers_info): Update.
9272 (d10v_dmap_register, d10v_imap_register): Delete functions.
9273 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
9274 and "imap_register".
9275 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
9276 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
9277 * arch-utils.c (generic_remote_translate_xfer_address): Add
9278 "regcache" and "gdbarch" parameters.
9279 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
9280 parameter. Change class to multi-arch.
9281 * gdbarch.h, gdbarch.c: Re-generate.
9282 * remote.c (remote_xfer_memory): Use
9283 gdbarch_remote_translate_xfer_address.
8ffd9b1b 9284
e4846b08
JJ
92852003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9286
9287 * infrun.c (prev_pc): Move declaration ahead of proceed().
9288 (proceed): Refresh prev_pc value before resuming.
9289 (stop_stepping): Remove code to refresh prev_pc.
9290
6b71b8ac
KW
92912003-05-06 Kris Warkentin <kewarken@qnx.com>
9292
9293 * nto-tdep.c: Removed stray comment.
9294
47979a4b
KW
92952003-05-06 Kris Warkentin <kewarken@qnx.com>
9296
9297 * i386-nto-tdep.c: Fix old K&R function definitions.
9298 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
9299 Also change add_show_from_set() call to add_setshow_cmd().
9300 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
9301
00905d52
AC
93022003-05-05 Andrew Cagney <cagney@redhat.com>
9303
9304 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
9305 (fprint_dummy_frames): New function.
9306 (maintenance_print_dummy_frames): New function.
9307 (_initialize_dummy_frame): Add command "maint print dummy-frames".
9308 * frame.c (fprint_frame_id): Make global.
9309 * frame.h (fprint_frame_id): Declare.
9310 * Makefile.in (dummy-frame.o): Update dependencies.
9311
b1e29e33
AC
93122003-05-05 Andrew Cagney <cagney@redhat.com>
9313
9314 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
9315 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
9316 SIZEOF_CALL_DUMMY_WORDS.
9317 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
9318 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
9319 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
9320 CALL_DUMMY_BREAKPOINT_OFFSET.
9321 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
9322 CALL_DUMMY_START_OFFSET.
9323 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
9324 * gdbarch.h, gdbarch.c: Re-generate.
9325 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
9326 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
9327 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
9328 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
9329 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
9330 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
9331 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
9332 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
9333 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
9334 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
9335 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
9336 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
9337 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
9338 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
9339 * config/sparc/tm-sparc.h: Update.
daea6f0b
KW
9340
93412003-05-05 Kris Warkentin <kewarken@qnx.com>
9342
9343 * configure.tgt: Add i[3456]86-*-nto*.
9344 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
9345 * nto-tdep.c: New file. Neutrino target support routines.
9346 * nto-tdep.h: New file. Neutrino target header.
9347 * config/tm-qnxnto.h: New file.
9348 * config/i386/i386nto.mt: New file.
9349 * config/i386/tm-i386nto.h: New file.
8ffd9b1b 9350
0ce3d317
AC
93512003-05-04 Andrew Cagney <cagney@redhat.com>
9352
9353 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
9354 (load_infrun_state): Ditto.
9355 (struct thread_info): Drop "prev_func_name" field.
9356 * thread.c (load_infrun_state): Update.
9357 (save_infrun_state): Update.
9358 * infrun.c (prev_func_name): Delete variable.
9359 (init_wait_for_inferior): Do not clear prev_func_name.
9360 (stop_stepping, keep_going, context_switch): Do not swap
9361 prev_func_name.
9362 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9363 instead of PC_IN_SIGTRAMP.
9364
46654a5b
AC
93652003-05-04 Andrew Cagney <cagney@redhat.com>
9366
9367 * sentinel-frame.c (sentinel_frame_prev_register): Replace
9368 REGISTER_BYTE with register_offset_hack.
9369 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
9370 that REGISTER_BYTE is consistent with the regcache.
9371 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
9372 * gdbarch.h, gdbarch.c: Regenerate.
8ffd9b1b 9373
14b08c1b
MK
93742003-05-04 Mark Kettenis <kettenis@gnu.org>
9375
04c8243f
MK
9376 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9377 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9378
14b08c1b
MK
9379 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9380
c7a11e01
JB
93812003-05-03 J. Brobecker <brobecker@gnat.com>
9382
9383 From Thierry Schneider <tpschneider1@yahoo.com>
9384 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
9385 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
9386 (mi-cmd-symbol.o): Add rule.
9387
7043d8dc
AC
93882003-05-03 Andrew Cagney <cagney@redhat.com>
9389
9390 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
9391 comments noteing that it replaces the old FIX_CALL_DUMMY code.
9392 * gdbarch.h, gdbarch.c: Re-generate.
9393 * d10v-tdep.c (d10v_push_dummy_code): New function.
9394 (d10v_gdbarch_init): Set push_dummy_code.
9395 * infcall.c (legacy_push_dummy_code): New function.
9396 (generic_push_dummy_code): New function.
9397 (push_dummy_code): New function.
9398 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
9399 instead of dummy_addr, to push_dummy_call. Move call to
9400 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
9401 switch.
9402 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9403
92bf2b80
AC
94042003-05-03 Andrew Cagney <cagney@redhat.com>
9405
9406 * disasm.h (print_insn): Declare.
9407 * disasm.c (init_gdb_disassemble_info): New function.
9408 (gdb_disassembly): Call init_gdb_disassemble_info.
9409 (gdb_print_insn): New function.
9410 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
9411 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
9412 * mcore-tdep.c: Include "disasm.h"
9413 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
9414 * d10v-tdep.c: Include "disasm.h".
9415 (display_trace): Call gdb_print_insn, instead of print_insn.
9416 (print_insn): Delete function.
9417 * printcmd.c: Include "disasm.h".
9418 (print_insn): Delete function.
9419 (print_formatted): Call gdb_print_insn, instead of print_insn.
9420 * Makefile.in (printcmd.o): Update dependencies.
9421 (mcore-tdep.o, d10v-tdep.o): Ditto.
8ffd9b1b 9422
27d94c49
AC
94232003-05-02 Andrew Cagney <cagney@redhat.com>
9424
82de1e5b
AC
9425 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
9426 PC_REGNUM, re-indent.
9427 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
9428 PC_REGNUM isn't set.
9429
27d94c49
AC
9430 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
9431 * gdbarch.h, gdbarch.c: Re-generate.
9432 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
9433 register_virtual_size, pc_regnum, or register_bytes.
9434 (D10V_PC_REGNUM): Rename _PC_REGNUM.
9435 (d10v_register_type): Use D10V_PC_REGNUM.
9436 (d10v_print_registers_info, d10v_read_pc): Ditto.
9437 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
9438 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
9439
a9c0dc7f
DC
94402003-05-02 David Carlton <carlton@bactrian.org>
9441
9442 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9443 the name with mstrsave.
9444
e33d66ec
EZ
94452003-05-02 Elena Zannoni <ezannoni@redhat.com>
9446
9447 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
9448 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
9449 (host_charset_name, target_charset_name): New vars for use by
9450 set/show commands.
9451 (host_charset_enum, target_charset_enum): New enums for set/show
9452 commands.
9453 (set_charset_sfunc, set_host_charset_sfunc,
9454 set_target_charset_sfunc): New functions.
9455 (set_host_charset, set_target_charset): Make static.
9456 (list_charsets, set_host_charset_command,
9457 set_target_charset_command): Delete functions.
9458 (show_charset_command): Rewrite as....
9459 (show_charset): Hook this up with the set/show command mechanism.
9460 (_initialize_charset): Change names of charsets to match the
9461 set/show enums. Use host_charset_name and target_charset_name.
9462 Use set/show mechanism for charset, host-charset, target-charset
9463 commands. Do not make 'show host-charset' and 'show
9464 target-charset' be aliases of 'show charset'.
9465
9466 * charset.h (set_host_charset, set_target_charset): Don't export,
9467 they are not used outside the file.
9468
2b6fd0d8
AC
94692003-05-01 Andrew Cagney <cagney@redhat.com>
9470
9471 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
9472 (gdb_disassembly): Make "di" non static, always initialize and
9473 cleanup. Always use dis_asm_read_memory.
9474 (gdb_dis_asm_read_memory): Delete function.
9475
6ae2f580
AC
94762003-05-01 Andrew Cagney <cagney@redhat.com>
9477
9478 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9479 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9480
810ecf9f
AC
94812003-04-30 Andrew Cagney <cagney@redhat.com>
9482
9483 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
9484 "tm_print_insn_info".
9485 (TARGET_PRINT_INSN_INFO): Delete macro.
9486 (dis_asm_read_memory): Delete function declaration.
9487 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9488 (tm_print_insn_info): Delete variable definition.
9489 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
9490 * gdbarch.h, gdbarch.c: Re-generate.
9491 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
9492 "deprecated_tm_print_insn_info".
9493 * mcore-tdep.c (mcore_dump_insn): Ditto.
9494 * mips-tdep.c (mips_gdbarch_init): Ditto.
9495 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
9496 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
9497 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
9498 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
9499 instead of TARGET_PRINT_INSN_INFO, add comment.
9500 * s390-tdep.c (s390_get_frame_info): Instead of
9501 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
9502 (s390_check_function_end, s390_is_sigreturn): Ditto.
9503 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
9504 (dis_asm_memory_error, dis_asm_print_address): Ditto.
9505 * disasm.c: Include "gdbcore.h".
9506 (_initialize_disasm): New function, initialize
9507 "deprecated_tm_print_insn_info".
9508 (deprecated_tm_print_insn_info): New variable.
9509 (dis_asm_read_memory): Moved from "corefile.c", made static.
9510 (dis_asm_print_address, dis_asm_memory_error): Ditto.
9511 * Makefile.in (disasm.o): Update dependencies.
9512
07020390
AC
95132003-04-30 Andrew Cagney <cagney@redhat.com>
9514
9515 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9516
a9fa03de
AF
95172003-04-29 Adam Fedor <fedor@gnu.org>
9518
9519 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
9520 * infcall.c (find_function_addr): Make non-static.
9521 * infcall.h (find_function_addr): Declare.
9522 * Makefile.in (eval.o): Update dependencies.
9523
1bae87b9
AF
95242003-04-28 Adam Fedor <fedor@gnu.org>
9525
9526 * symtab.c (symbol_find_demangled_name): Check for and demangle
9527 ObjC symbols.
9528 (symbol_init_demangled_name): Init for language_objc as well.
9529
0ba6dca9
AC
95302003-04-28 Andrew Cagney <cagney@redhat.com>
9531
9532 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
9533 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
9534 * gdbarch.h, gdbarch.c: Re-generate.
9535 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
9536 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
9537 * inferior.h (deprecated_read_fp): Rename read_fp.
9538 (generic_target_read_fp): Delete declaration.
9539 * regcache.c (generic_target_read_fp): Delete function.
9540 (deprecated_read_fp): Replace read_fp, use
9541 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
9542 * d10v-tdep.c (d10v_read_fp): Delete function.
9543 (d10v_gdbarch_init): Do not set deprecated_read_fp.
9544
9545 * sparc-tdep.c (sparc_gdbarch_init): Do not set
9546 deprecated_target_read_fp to generic_target_read_fp.
9547 * sh-tdep.c (sh_gdbarch_init): Ditto.
9548 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9549 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9550 * frv-tdep.c (frv_gdbarch_init): Ditto.
9551
9552 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
9553 deprecated_fp_regnum.
9554 * x86-64-tdep.c (x86_64_init_abi): Ditto.
9555 * vax-tdep.c (vax_gdbarch_init): Ditto.
9556 * v850-tdep.c (v850_gdbarch_init): Ditto.
9557 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9558 * sh-tdep.c (sh_gdbarch_init): Ditto.
9559 * s390-tdep.c (s390_gdbarch_init): Ditto.
9560 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9562 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
9563 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
9564 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9565 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9566 * i386-tdep.c (i386_gdbarch_init): Ditto.
9567 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9568 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
9569 * frv-tdep.c (frv_gdbarch_init): Ditto.
9570 * cris-tdep.c (cris_gdbarch_init): Ditto.
9571 * avr-tdep.c (avr_gdbarch_init): Ditto.
9572 * arm-tdep.c (arm_gdbarch_init): Ditto.
9573 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
9574
9575 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
9576 * v850-tdep.c (v850_gdbarch_init): Ditto.
9577 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
9578 * sh-tdep.c (sh_gdbarch_init): Ditto.
9579 * s390-tdep.c (s390_gdbarch_init): Ditto.
9580 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
9581 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
9582 * mips-tdep.c (mips_gdbarch_init): Ditto.
9583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
9584 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9585 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
9586 * frv-tdep.c (frv_gdbarch_init): Ditto.
9587 * avr-tdep.c (avr_gdbarch_init): Ditto.
9588 * arm-tdep.c (arm_gdbarch_init): Ditto.
9589
9590 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
9591 DEPRECATED_FP_REGNUM.
9592 (vax_push_dummy_frame, vax_pop_frame): Ditto.
9593 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
9594 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
9595 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
9596 (sparc32_register_virtual_type): Ditto.
9597 * sh-tdep.c (sh64_frame_chain): Ditto.
9598 (sh64_get_saved_register, sh64_pop_frame): Ditto.
9599 (sh_nofp_frame_init_saved_regs): Ditto.
9600 (sh64_nofp_frame_init_saved_regs): Ditto.
9601 (sh_fp_frame_init_saved_regs): Ditto.
9602 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
9603 * remote-e7000.c (fetch_regs_from_dump): Ditto.
9604 * procfs.c (procfs_fetch_registers): Ditto.
9605 (procfs_store_registers): Ditto.
9606 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
9607 (store_inferior_registers, fetch_core_registers): Ditto.
9608 (fetch_kcore_registers, clear_regs): Ditto.
9609 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
9610 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
9611 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
9612 * nlm/i386.c (do_status): Ditto.
9613 * mipsv4-nat.c (supply_gregset): Ditto.
9614 * mips-tdep.c: Ditto for comments.
9615 * mips-nat.c (fetch_inferior_registers): Ditto.
9616 (store_inferior_registers, fetch_core_registers): Ditto.
9617 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
9618 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
9619 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
9620 (i386_do_pop_frame, i386_register_type): Ditto.
9621 * hppa-tdep.c (hppa_frame_chain): Ditto.
9622 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
9623 (hppa_pop_frame, hppa_read_fp): Ditto.
9624 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
9625 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
9626 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
9627 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
9628 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
9629 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
9630 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
9631 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
9632 * blockframe.c: Ditto for comments.
9633 * arch-utils.h: Ditto for comments.
9634 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
9635 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
9636 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
9637 * alpha-tdep.h: Ditto for comments.
9638 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
9639 (alpha_cannot_store_register): Ditto.
9640 (alpha_push_dummy_frame): Ditto.
9641 * alpha-nat.c (supply_gregset): Ditto.
9642
9643 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
9644 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
9645 * config/sparc/tm-sparc.h: Update comment.
9646
9647 * hppa-tdep.c (hppa_init_extra_frame_info): Use
9648 deprecated_read_fp instead of TARGET_READ_FP.
9649 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
9650 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
9651 * sparc-tdep.c (sparc_init_extra_frame_info): Use
9652 deprecated_read_fp instead of read_fp.
9653 * s390-tdep.c (s390_push_arguments): Ditto.
9654 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
9655 * frame.h: Ditto in comments.
9656 * frame.c (legacy_get_prev_frame): Ditto.
9657 * dummy-frame.c (dummy_frame_this_id): Ditto.
9658 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
9659
d7a27068
AC
96602003-04-28 Andrew Cagney <cagney@redhat.com>
9661
9662 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
9663 * gdbarch.h, gdbarch.c: Re-generate.
9664 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
9665 * vax-tdep.c (_initialize_vax_tdep): Update.
9666 * v850-tdep.c (_initialize_v850_tdep): Update.
9667 * sparc-tdep.c (_initialize_sparc_tdep): Update.
9668 * s390-tdep.c (_initialize_s390_tdep): Update.
9669 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
9670 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
9671 * mips-tdep.c (_initialize_mips_tdep): Update.
9672 * mcore-tdep.c (_initialize_mcore_tdep): Update.
9673 * m68k-tdep.c (_initialize_m68k_tdep): Update.
9674 * ia64-tdep.c (_initialize_ia64_tdep): Update.
9675 * hppa-tdep.c (_initialize_hppa_tdep): Update.
9676 * h8300-tdep.c (_initialize_h8300_tdep): Update.
9677 * frv-tdep.c (_initialize_frv_tdep): Update.
9678 * cris-tdep.c (cris_delayed_get_disassembler): Update.
9679 (_initialize_cris_tdep): Update.
9680 * arch-utils.c (legacy_print_insn): Update.
9681 * alpha-tdep.c (_initialize_alpha_tdep): Update.
9682
d2630e69
AF
96832003-04-26 Adam Fedor <fedor@gnu.org>
9684
9685 * linespec.c (decode_objc): New function to decode ObjC calls
9686 (decode_line_1): Check for ObjC calls (using decode_objc)
9687 * Makefile (linespec.o): Update dependencies.
9688
3086aeae
DJ
96892003-04-26 Daniel Jacobowitz <drow@mvista.com>
9690
9691 * breakpoint.h (struct breakpoint_ops): New.
9692 (struct breakpoint): Add ops member.
9693
9694 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
9695 (mention): Use new breakpoint ops member.
9696 (set_raw_breakpoint): Initialize ops field to NULL.
9697 (print_exception_catchpoint, print_one_exception_catchpoint)
9698 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
9699 (gnu_v3_exception_catchpoint_ops): New.
9700 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
9701
1fbec6c3
AF
97022003-04-25 Adam Fedor <fedor@gnu.org>
9703
9704 * Makefile.in (COMMON_OBS): Add objc-lang.o
9705
0ef21242
AC
97062003-04-25 Andrew Cagney <cagney@redhat.com>
9707
9708 * d10v-tdep.c (print_insn): Delete function.
9709 (display_trace): Use TARGET_PRINT_INSN.
9710 (_initialize_d10v_tdep): Do not set tm_print_insn.
9711 (d10v_gdbarch_init): Set print_insn.
9712
f75493ed
AC
97132003-04-25 Andrew Cagney <cagney@redhat.com>
9714
9715 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
9716 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
9717 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
9718 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
9719 (nr_dmap_regs, a0_regnum): ... new functions.
9720 (d10v_print_registers_info): Use a0_regnum, use register_size.
9721 (d10v_register_byte): Delete function.
9722 (d10v_register_raw_size): Delete function.
9723 (d10v_register_type): Use a0_regnum.
9724 (d10v_print_registers_info): Use a0_regnum.
9725 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
9726 (d10v_gdbarch_init): Do not set register_byte or
9727 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
9728 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
9729 extract_address.
9730 (trace_command): Use XCALLOC.
9731 (print_insn): Delete reference to tm_print_insn.
9732 (saved_regs_unwinder): Use store_unsigned_integer instead of
9733 store_address.
9734 * frame.h (FRAME_OBSTACK_CALLOC): Define
9735
2202b100
DC
97362003-04-25 David Carlton <carlton@bactrian.org>
9737
9738 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9739
4e45ca2e
AF
97402003-04-24 Adam Fedor <fedor@gnu.org>
9741
9742 * objc-lang.c: Include "valprint.h"
9743 * Makefile.in (objc-lang.o): Update dependencies.
9744
93de3e7f
AF
97452003-04-24 Adam Fedor <fedor@gnu.org>
9746
8ffd9b1b 9747 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
93de3e7f
AF
9748 architecture dependant compilation and mark as unimplemented
9749 (until they get put in the gdbarch vector).
9750
0f20eeea
DC
97512003-04-23 David Carlton <carlton@bactrian.org>
9752
9753 * cp-support.c (cp_find_first_component): Accept 'operator' in
9754 more locations.
9755
74cfe982
AC
97562003-04-23 Andrew Cagney <cagney@redhat.com>
9757
9758 * infcall.c (call_function_by_hand): Eliminate redundant
9759 indentation. Move "saved_async" and "old_cleanups" to where they
9760 are needed.
8ffd9b1b 9761
52557533
AC
97622003-04-23 Andrew Cagney <cagney@redhat.com>
9763
9764 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9765 and "buffer". Move the "name" code to where it is needed.
9766
158775de
AC
97672003-04-23 Andrew Cagney <cagney@redhat.com>
9768
9769 * infcall.c (call_function_by_hand): Move variables "start_sp",
9770 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
9771 code to ON_STACK switch branch.
8ffd9b1b 9772
ebc7896c
AC
97732003-04-23 Andrew Cagney <cagney@redhat.com>
9774
9775 * infcall.c (call_function_by_hand): Make declaration of "i",
9776 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9777 lint.
9778
d727590f
AC
97792003-04-23 Andrew Cagney <cagney@redhat.com>
9780
9781 * infcall.c (call_function_by_hand): Delete variable
9782 "n_method_args". Localize "param_type"'s declaration to the loop
9783 that it is used. Reinstate code assigning to said variable -
9784 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
9785 Rationalize code using "param_type".
9786
d585e13a
AC
97872003-04-22 Andrew Cagney <cagney@redhat.com>
9788
9789 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
9790 compute the breakpoint address. Only call FIX_CALL_DUMMY when
9791 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
9792 to DEPRECATED_PUSH_RETURN_ADDRESS.
9793
051caad9
KB
97942003-04-22 Kevin Buettner <kevinb@redhat.com>
9795
9796 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9797 on the DWARF2 register number prior to fetching a register.
9798
77296879
JB
97992003-04-22 J. Brobecker <brobecker@gnat.com>
9800
9801 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9802 Update all the tests using SOFT_FLOAT considering the fact that
8ffd9b1b 9803 this macro was always set to 0.
77296879
JB
9804 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
9805 considering the fact that this macro was always set to 0.
9806 * hppa-tdep.h (hppa_store_return_value): Likewise.
9807 (hppa_extract_return_value): Likewise.
9808
4252f1df
JB
98092003-04-22 J. Brobecker <brobecker@gnat.com>
9810
9811 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9812 the hppa-pro target only.
9813
14604c6b
JB
98142003-04-21 J. Brobecker <brobecker@gnat.com>
9815
9816 Ongoing multi-arch conversion effort for HP/UX:
9817 * config/pa/tm-hppa.h: Move all macro that are no longer
9818 defined now that GDB_MULTI_ARCH is now set to 1 from here...
9819 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
9820
77eb01d1
JB
98212003-04-21 J. Brobecker <brobecker@gnat.com>
9822
9823 * config/pa/tm-hppa.h: Obsolete a section that was only used
9824 for hppa-pro.
9825
61995b3b
JB
98262003-04-21 J. Brobecker <brobecker@gnat.com>
9827
9828 Ongoing multi-arch conversion for HP/UX.
9829 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
9830 if already defined (allows hppa64 to stay non-multiarched for now).
9831 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
9832
4aa79dcc
AC
98332003-04-21 Andrew Cagney <cagney@redhat.com>
9834
9835 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9836
0f751ff2
AC
98372003-04-21 Andrew Cagney <cagney@redhat.com>
9838
9839 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9840 "i386_num_mmx_regs".
9841
04714b91
AC
98422003-04-21 Andrew Cagney <cagney@redhat.com>
9843
9844 * infcall.c: New file.
9845 * infcall.h: New file.
9846 * valarith.c: Include "infcall.h".
9847 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
9848 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
9849 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
9850 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
9851 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
9852 (SFILES): Add "infcall.c"
9853 (COMMON_OBS): Add "infcall.o".
9854 (infcall.o): Specify dependencies.
9855 * value.h (call_function_by_hand): Delete declaration.
9856 * inferior.h (run_stack_dummy): Delete declaration.
9857 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
9858 (run_stack_dummy): Move to "infcall.c", merged into
9859 call_function_by_hand.
9860 * valops.c (call_function_by_hand): Moved to "infcall.c".
9861 (find_function_addr, value_arg_coerce): Ditto.
9862 (unwindonsignal_p, coerce_float_to_double): Ditto.
9863 (_initialize_valops): Move "set/show coerce-float-to-double", and
9864 "set/show unwindonsignal" commands to "infcall.c".
9865 * v850-tdep.c, target.h: Update comments.
9866 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
9867 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
9868 (sh64_init_extra_frame_info): Update comments.
9869 * mn10300-tdep.c: Update comments.
9870 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
9871 * config/sparc/tm-sparc.h: Update comments.
9872 * breakpoint.h: Update comments.
9873 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
9874 * arm-tdep.c: Update comment.
9875
f9d3c2a8
MK
98762003-04-19 Mark Kettenis <kettenis@gnu.org>
9877
c40e1eab
MK
9878 * i386-tdep.c (i386_num_register_names): New variable.
9879 (i386_num_mmx_regs): Renamed from mmx_num_regs.
9880 (MM0_REGNUM): Remove redundant parentheses in define.
9881 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
9882 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
9883 i386_mxcsr_regnum_p): Remove redundant parentheses.
9884 (i386_register_name): Use i386_num_register_names.
8ffd9b1b 9885
94ea66b3
MK
9886 * i386-tdep.c (i386_extract_return_value,
9887 i386_store_return_value): Correct check for availability of
9888 floating-point registers.
9889
54299a1d
MK
9890 * i386-tdep.c (i386_frame_num_args): Remove function.
9891 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9892
c86c27af
MK
9893 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9894 mmx_regnum_to_fp_regnum. Adjust all callers.
9895
f9d3c2a8
MK
9896 * i386-tdep.c (i386_get_longjmp_target): Use
9897 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
9898 and TARGET_CHAR_BIT. Use extract_typed_address instead of
9899 extract_address.
9900
94ba74a9
MK
99012003-04-19 Mark Kettenis <kettenis@gnu.org>
9902
9903 * core-regset.c: Update comments to reflect reality. Re-order
9904 includes.
9905 (fetch_core_registers): Use switch instead of if. Remove
9906 redundant prototype.
9907
4074e13c
JB
99082003-04-18 Jim Blandy <jimb@redhat.com>
9909
9910 * s390-tdep.c (s390_frame_align): New function.
fbe586ae 9911 (s390_gdbarch_init): Register it with the gdbarch object.
4074e13c 9912
e3ab4aba
RH
99132003-04-17 Richard Henderson <rth@redhat.com>
9914
9915 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9916
627bf7c1
EZ
99172003-04-17 Michael Snyder <msnyder@redhat.com>
9918 Karen Bennet <bennet@redhat.com>
9919
9920 Committed by Elena Zannoni <ezannoni@redhat.com>
9921 * gdb_gcore.sh: New script to create a core dump of a process.
8ffd9b1b 9922
514621a9
EZ
99232003-04-17 Elena Zannoni <ezannoni@redhat.com>
9924
9925 * values.c (value_being_returned): Don't fetch the return
fbe586ae 9926 value if the return type is void.
514621a9 9927
b4acd559
JJ
99282003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9929
9930 * thread-db.c: Reindented.
8ffd9b1b 9931
530b167e 99322003-04-17 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b
AJ
9933
9934 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
9935 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
530b167e
JJ
9936 as types.
9937
0a48e7e8
MS
9938
9939
9940
9941
9942
9943
9944
9945
9946
9947
9948
9949
9950
9951
9952
9953
9954
9955
9956
9957
9958
9959
9960
8ffd9b1b 9961
ab9fe00e
KB
99622003-04-16 Kevin Buettner <kevinb@redhat.com>
9963
610a3745 9964 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
ab9fe00e
KB
9965 the size of ``long double'' to 16, instead of 8.
9966
e64a344c
MK
99672003-04-16 Mark Kettenis <kettenis@gnu.org>
9968
9969 * i386-linux-nat.c: Add some whitespace to make things more
9970 readable.
9971 (fetch_register, store_register, fetch_inferior_registers,
9972 store_inferior_registers): Get rid of assignment in if-statement.
9973 (store_register): Fix typo in error message.
9974
25d41031
AC
99752003-04-16 Andrew Cagney <cagney@redhat.com>
9976
9977 * utils.c (xmmalloc): Always allocate something, matches
9978 libiberty/xmalloc's semantics.
9979 (xmrealloc, xmcalloc): Ditto.
9980
c50901fd
AC
99812003-04-16 Andrew Cagney <cagney@redhat.com>
9982
9983 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9984 update comments.
9985 (get_frame_type): Initialize unwind and type when needed.
9986 (get_frame_id, frame_register_unwind): Ditto.
9987
f81824a9
AC
99882003-04-16 Andrew Cagney <cagney@redhat.com>
9989
9990 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
9991 obsolete.
9992 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
9993 * sparcl-stub.c: Obsolete file.
9994 * config/sparc/tm-sparclet.h: Obsolete file.
9995 * sparclet-stub.c: Obsolete file.
9996 * sparclet-rom.c: Obsolete file.
9997 * sparcl-tdep.c: Obsolete file.
9998 * config/sparc/tm-sparclite.h: Obsolete file.
9999 * config/sparc/sparclite.mt: Obsolete file.
10000 * config/sparc/sparclet.mt: Obsolete file.
10001 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
10002 sparc86x-*-* obsolete.
10003
9219021c
DC
100042003-04-15 David Carlton <carlton@math.stanford.edu>
10005
10006 * Makefile.in (SFILES): Add cp-namespace.c.
10007 (COMMON_OBS): Add cp-namespace.o.
10008 (block.o): Depend on gdb_obstack_h and cp_support_h.
10009 (buildsym.o): Depend on cp_support_h.
10010 (cp-namespace.o): New.
10011 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
10012 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
10013 (dwarf2read.o): Depend on cp_support_h.
10014 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
10015 * dwarf2read.c (process_die): Set processing_has_namespace_info,
10016 processing_current_namespace.
10017 (read_namespace): Update processing_current_namespace; check for
10018 anonymous namespaces.
10019 (dwarf2_name): New function.
10020 (dwarf2_extension): Ditto.
10021 * cp-support.h: Update copyright, contributors.
10022 Add inclusion guards.
10023 Add opaque declaration for structs obstack, block, symbol.
10024 (struct using_direct): New struct.
10025 Add declarations for cp_find_first_component,
10026 cp_entire_prefix_len, processing_has_namespace_info,
10027 processing_current_namespace, cp_is_anonymous,
10028 cp_add_using_directive, cp_initialize_namespace,
10029 cp_finalize_namespace, cp_set_block_scope,
10030 cp_scan_for_anonymous_namespaces.
10031 * cp-namespace.c: New file.
10032 * cp-support.c: Update copyright.
10033 Include ctype.h, gdb_assert.h, gdbcmd.h.
10034 New variable maint_cplus_cmd_list.
10035 (cp_find_first_component): New function.
10036 (cp_entire_prefix_len, maint_cplus_command)
10037 (first_component_command, _initialize_cp_support): Ditto.
10038 * buildsym.c: Include cp-support.h.
10039 New variable using_list.
10040 (add_symbol_to_list): Check for anonymous namespaces.
10041 (finish_block): Set block's scope.
10042 (start_symtab): Initialize C++ namespace support.
10043 (end_symtab): Finalize C++ namespace support.
10044 * block.h: Add opaque declarations for structs
10045 block_namespace_info, using_direct, and obstack.
10046 Add declarations for block_set_scope and block_set_using.
10047 (struct block): Add 'language_specific' member.
10048 (BLOCK_NAMESPACE): New macro.
10049 * block.c: Include gdb_obstack.h and cp-support.h.
10050 (struct block_namespace_info): New struct.
10051 (block_set_scope): New function.
10052 (block_set_using, block_initialize_namespace): Ditto.
10053
d5a921c9
KB
100542003-04-14 Kevin Buettner <kevinb@redhat.com>
10055
10056 * solib-svr4.c (svr4_have_link_map_offsets): New function.
10057 (locate_base): Return early if there aren't any link map offsets.
10058 (svr4_solib_create_inferior_hook): Warn if shared library support
10059 is unavailable.
10060
d2a52b27
DC
100612003-04-14 David Carlton <carlton@math.stanford.edu>
10062
10063 * symtab.c (symbol_set_names): Add prefix when storing Java names
10064 in hash table. Fix for PR java/1039.
10065
980cae7a
DC
100662003-04-14 David Carlton <carlton@math.stanford.edu>
10067
10068 * symtab.c (symbol_set_names): Rename 'name' arg to
10069 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
10070 * symtab.h: Change 'name' argument in declaration of
10071 symbol_set_names to 'linkage_name'.
10072 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
10073
e227b13c
AC
100742003-04-14 Andrew Cagney <cagney@redhat.com>
10075
10076 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
10077 return the fully sign-extended register value.
10078 (get_frame_pointer): Ditto.
10079 (mips_pop_frame): Initialize "proc_desc" after checking for a
10080 dummy frame.
10081
36712a20
AC
100822003-04-14 Andrew Cagney <cagney@redhat.com>
10083
10084 * mips-tdep.c (mips_push_dummy_frame): Delete function.
10085 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
10086 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
10087 (mips_push_register): Delete function.
10088 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
10089 PUSH_FP_REGNUM.
10090
44ea7b70
JB
100912003-04-14 Jim Blandy <jimb@redhat.com>
10092
10093 * symmisc.c: #include "gdb_regex.h".
10094 (maintenance_list_symtabs, maintenance_list_psymtabs): New
10095 functions.
10096 * maint.c (maintenance_list_command): New function.
10097 (_initialize_maint_cmds): Register the above as commands.
10098 * symtab.h (maintenance_list_symtabs,
10099 maintenance_list_psymtabs): New declarations.
10100 * cli/cli-cmds.c (maintenancelistlist): New variable.
10101 (init_cmd_lists): Initialize it.
10102 * cli/cli-cmds.h (maintenancelistlist): New declaration.
10103 * gdbcmd.h (maintenancelistlist): New declaration.
10104 * Makefile.in (symmisc.o): Update dependencies.
10105
2d0c7962
EZ
101062003-04-14 Elena Zannoni <ezannoni@redhat.com>
10107
10108 * s390-nat.c: Include asm/types.h for addr_t.
10109
1947a811
CV
101102003-04-14 Corinna Vinschen <vinschen@redhat.com>
10111
10112 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10113 actually incoming type.
10114
adb616d7
AC
101152003-04-13 Andrew Cagney <cagney@redhat.com>
10116
10117 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10118 get_next_frame and get_frame_saved_regs.
10119
9b5e151c
AC
101202003-04-13 Andrew Cagney <cagney@redhat.com>
10121
10122 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10123 of gdbarch_num_regs.
10124
ef6e7e13
AC
101252003-04-13 Andrew Cagney <cagney@redhat.com>
10126
10127 * frame.h: Mention what replaced what in "struct frame_info".
10128 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
10129 deprecated_update_frame_base_hack and
10130 deprecated_update_frame_pc_hack.
10131 * hppa-tdep.c: Ditto.
10132
61fbb938
DJ
101332003-04-13 Daniel Jacobowitz <drow@mvista.com>
10134
10135 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
10136 to read_reg and update its comment. Remove regnum member.
10137 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
10138 Don't call read_reg when setting in_reg. Call read_reg to get
10139 the frame base if it's in a register. Return the register number
10140 on the stack instead of in the context. Remove extra arguments
10141 to read_reg.
10142 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
10143 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
10144 the register number on the expression stack.
10145 (needs_frame_read_reg): Remove extra arguments.
10146
0d53c4c4
DJ
101472003-04-13 Daniel Jacobowitz <drow@mvista.com>
10148
10149 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
10150 made non-static.
10151 (execute_stack_op): All callers updated.
10152 * dwarf2expr.h: Add prototype for dwarf2_read_address.
10153 * dwarf2loc.c (find_location_expression): New function.
10154 (dwarf_expr_frame_base): Call it.
10155 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
10156 (dwarf2_tracepoint_var_ref): New function, broken out from
10157 locexpr_tracepoint_var_ref.
10158 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
10159 Make static.
10160 (loclist_read_variable, loclist_read_needs_frame): New functions.
10161 (loclist_describe_location, loclist_tracepoint_var_ref): New
10162 functions.
10163 (dwarf2_loclist_funcs): New struct location_funcs.
10164 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
10165 (struct dwarf2_locexpr_baton): Add comments.
10166 (dwarf2_loclist_funcs): New extern.
10167 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
10168 base_address and base_known.
10169 (dwarf_loc_buffer): New variable.
10170 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
10171 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
10172 (dwarf2_has_info): Initialize dwarf_loc_offset.
10173 (dwarf2_build_psymtabs): Read in .debug_loc.
10174 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
10175 DWARF_LOC_SIZE.
10176 (psymtab_to_symtab_1): Likewise. Move base address calculation
10177 here, from...
10178 (dwarf2_get_pc_bounds): ... here. Use the base address from
10179 cu_header.
10180 (dwarf2_symbol_mark_computed): Handle location lists.
10181
6aca59a3
DJ
101822003-04-13 Daniel Jacobowitz <drow@mvista.com>
10183
10184 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10185 if the linkage name demangled successfully.
10186
aca1fcd0
MK
101872003-04-13 Mark Kettenis <kettenis@gnu.org>
10188
97095916
MK
10189 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10190 disassmbly_flavour): Removed.
10191
aca1fcd0
MK
10192 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10193
562a961f
MK
101942003-04-13 Mark Kettenis <kettenis@gnu.org>
10195
10196 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10197
bd013d54
AC
101982003-04-12 Andrew Cagney <cagney@redhat.com>
10199
10200 * frame.h (struct frame_info): Move definition from here ...
10201 * frame.c (struct frame_info): ... to here.
10202
167ef8b1
AC
102032003-04-12 Andrew Cagney <cagney@redhat.com>
10204
10205 * gdbthread.h (save_infrun_state): Delete parameter
10206 "prev_func_start".
10207 (struct thread_info): Delete field "prev_func_start".
10208 (load_infrun_state): Ditto.
10209 * thread.c (load_infrun_state, save_infrun_state): Update.
10210 * infrun.c (prev_func_start): Delete variable.
10211 (context_switch, init_wait_for_inferior): Update.
10212 (stop_stepping, keep_going): Update.
10213
da3331ec
AC
102142003-04-12 Andrew Cagney <cagney@redhat.com>
10215
10216 * gdbarch.sh: Add missing opaque declarations.
10217 * gdbarch.h: Regnerate.
10218 * symtab.h: Add missing opaque declarations.
10219 * value.h, target.h, symfile.h, stabsread.h: Ditto.
10220 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
10221 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
10222 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
10223 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
10224 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
10225 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
10226 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
10227 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
10228 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
10229 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
10230 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
10231 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
10232
18adea3f
AC
102332003-04-11 Andrew Cagney <cagney@redhat.com>
10234
10235 * frame.c (get_frame_id): Return this frame's "id".
10236 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
10237 function start.
10238 (legacy_saved_regs_this_id): Replace function body with
10239 internal-error.
10240 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
10241 FRAME_OBSTACK_ZALLOC.
10242 (create_new_frame): Mark the frame ID as valid.
10243
2252e863
AO
102442003-04-11 Alexandre Oliva <aoliva@redhat.com>
10245
10246 * Makefile.in (libbfd_h): Added missing setting.
10247 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10248 according to the selected ABI.
10249
a8245ab8
JJ
102502003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10251
10252 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10253
6913c89a
AC
102542003-04-11 Andrew Cagney <cagney@redhat.com>
10255
10256 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
10257 SAVED_PC_AFTER_CALL.
10258 * gdbarch.h, gdbarch.c: Regenerate.
10259 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10260 * x86-64-tdep.c (x86_64_init_abi): Update.
10261 * vax-tdep.c (vax_gdbarch_init): Update.
10262 * v850-tdep.c (v850_gdbarch_init): Update.
10263 * sparc-tdep.c (sparc_gdbarch_init): Update.
10264 * sh-tdep.c (sh_gdbarch_init): Update.
10265 * s390-tdep.c (s390_gdbarch_init): Update.
10266 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10268 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10269 * mips-tdep.c (mips_gdbarch_init): Update.
10270 * mcore-tdep.c (mcore_gdbarch_init): Update.
10271 * m68k-tdep.c (m68k_gdbarch_init): Update.
10272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10273 * ia64-tdep.c (ia64_gdbarch_init): Update.
10274 (ia64_saved_pc_after_call): Update declaration.
10275 * i386ly-tdep.c (i386lynx_init_abi): Update.
10276 * i386-tdep.c (i386_gdbarch_init): Update.
10277 * hppa-tdep.c (hppa_gdbarch_init): Update.
10278 * h8300-tdep.c (h8300_gdbarch_init): Update.
10279 * frv-tdep.c (frv_gdbarch_init): Update.
10280 * cris-tdep.c (cris_gdbarch_init): Update.
10281 * avr-tdep.c (avr_gdbarch_init): Update.
10282 * arm-tdep.c (arm_gdbarch_init): Update.
10283 * alpha-tdep.c (alpha_gdbarch_init): Update.
10284 * ns32knbsd-nat.c (frame_num_args): Update.
10285 * ns32k-tdep.c (umax_frame_num_args): Update.
10286 * mips-tdep.c (mips_init_frame_pc_first): Update.
10287 * infrun.c (step_over_function): Update.
10288 * i386-linux-tdep.c (skip_hurd_resolver): Update.
10289 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
10290 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10291 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10292 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
10293 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
10294 * arm-linux-tdep.c (skip_hurd_resolver): Update.
10295 * arch-utils.c (init_frame_pc_default): Update.
10296 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
10297 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
10298 declaration.
8ffd9b1b 10299
38edeab8
AC
103002003-04-11 Andrew Cagney <cagney@redhat.com>
10301
10302 * i387-tdep.c: Update copyright.
10303 (i387_to_double): Delete function.
10304 (double_to_i387): Delete function.
10305
81f8a206
AC
103062003-04-10 Andrew Cagney <cagney@redhat.com>
10307
10308 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
10309 frame's function's address. Simplify.
10310 (d10v_frame_unwind_cache): Check that the frame's function is
10311 non-zero.
10312
6e691f7a
JB
103132003-04-10 Jim Blandy <jimb@redhat.com>
10314
10315 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10316 call to set_gdbarch_deprecated_push_arguments.
10317
7f78e237
AC
103182003-04-10 Andrew Cagney <cagney@redhat.com>
10319
10320 * frame.c (fprint_frame_id): New function.
10321 (fprint_frame_type, fprint_frame): New function.
10322 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
10323 (create_sentinel_frame, get_frame_id): Ditto.
10324 (frame_id_p, frame_id_eq): Ditto.
10325 (frame_id_inner, create_new_frame): Ditto.
10326 (legacy_get_prev_frame, get_prev_frame): Ditto.
10327 (deprecated_update_frame_pc_hack): Ditto.
10328 (frame_register_unwind): Ditto.
10329 (deprecated_update_frame_base_hack): Ditto.
10330
f870b49b
CV
103312003-04-10 Corinna Vinschen <vinschen@redhat.com>
10332
10333 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
10334 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
10335 frame_chain function.
10336 * Makefile.in: Add dependencies due to above change.
10337
7c86889b
CV
103382003-04-10 Corinna Vinschen <vinschen@redhat.com>
10339
10340 * blockframe.c (legacy_frame_chain_valid): Move call to
10341 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10342 inside_entry_file.
10343
d0a55772
AC
103442003-04-09 Andrew Cagney <cagney@redhat.com>
10345
10346 * frame.h (struct frame_id): Replace "pc" and "base" with
10347 "stack_addr" and "code_addr". Update comments.
10348 (frame_id_build): Update parameter names and comment.
10349 (struct frame_info): Replace "id_p" and "id" with "this_id".
10350 * dummy-frame.c (dummy_frame_this_id): Update.
10351 * breakpoint.c (print_one_breakpoint): Update.
10352 * frame.c (get_frame_id): Update.
10353 (get_frame_base, frame_id_build): Update.
10354 (create_sentinel_frame, legacy_get_prev_frame): Update.
10355 (deprecated_update_frame_base_hack): Update.
10356 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
10357 (frame_id_inner): Ditto.
10358
ac16bf07
AC
103592003-04-09 Andrew Cagney <cagney@redhat.com>
10360
10361 * defs.h (gdb_print_host_address): Make "addr" parameter a
10362 pointer constant.
10363 * utils.c (gdb_print_host_address): Update.
10364
366cfc9e
KB
103652003-04-09 Kevin Buettner <kevinb@redhat.com>
10366
10367 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10368 register number for R0 is 0.
10369
cd983b5c
JB
103702003-04-09 J. Brobecker <brobecker@gnat.com>
10371
10372 * frame.h (struct gdbarch): Add opaque structure definition
10373 to avoid a compilation warning on LynxOS 4.0.
10374
d1340264
AC
103752003-04-09 Andrew Cagney <cagney@redhat.com>
10376
10377 * frame.h (struct frame_info): Delete field "pc". Replace
10378 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
10379 structure.
10380 * frame.c (frame_pc_unwind): Update.
10381 (create_sentinel_frame): Do not set "pc".
10382 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
10383 (get_frame_pc): Call frame_pc_unwind.
10384 (deprecated_update_frame_pc_hack): Update.
10385 (create_new_frame): Use "pc" not "->pc".
10386
90a6fffb
AC
103872003-04-09 Andrew Cagney <cagney@redhat.com>
10388
10389 * frame.c (get_frame_id): Eliminate code updating "frame".
10390 (legacy_get_prev_frame): Ditto.
10391 (get_frame_base): Return id.base directly.
10392 (deprecated_update_frame_base_hack): Update "id.base".
10393 * frame.h (struct frame_info): Delete field "frame".
10394
2fbce691
AC
103952003-04-09 Andrew Cagney <cagney@redhat.com>
10396
10397 * NEWS: Mention that the "Sequent family" is obsolete.
10398 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
10399 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10400 * configure.host: Obsolete i[3456]86-sequent-bsd*,
10401 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
10402 * config/i386/tm-ptx4.h: Obsolete file.
10403 * config/i386/tm-ptx.h: Obsolete file.
10404 * symm-tdep.c: Obsolete file.
10405 * config/i386/symmetry.mt: Obsolete file.
10406 * config/i386/tm-symmetry.h: Obsolete file.
10407 * symm-nat.c: Obsolete file.
10408 * config/i386/nm-symmetry.h: Obsolete file.
10409 * config/i386/xm-symmetry.h: Obsolete file.
10410 * config/i386/symmetry.mh: Obsolete file.
10411 * config/i386/nm-ptx4.h: Obsolete file.
10412 * config/i386/ptx4.mh: Obsolete file.
10413 * config/i386/ptx.mt: Obsolete file.
10414 * config/i386/ptx.mh: Obsolete file.
10415 * config/i386/xm-ptx4.h: Obsolete file.
10416 * config/i386/xm-ptx.h: Obsolete file.
10417
78c43945
AC
104182003-04-09 Andrew Cagney <cagney@redhat.com>
10419
10420 Obsolete mips*-*-mach3*.
10421 * NEWS: Mention that mips*-*-mach3* is obsolete.
10422 * m3-nat.c: Obsolete file.
10423 * config/nm-m3.h: Obsolete file.
10424 * config/mips/tm-mipsm3.h: Obsolete file.
10425 * config/mips/mipsm3.mt: Obsolete file.
10426 * config/mips/mipsm3.mh: Obsolete file.
10427 * config/mips/xm-mipsm3.h: Obsolete file.
10428 * mipsm3-nat.c: Obsolete file.
10429 * configure.host: Obsolete mips-dec-mach3*.
10430 * configure.tgt: Obsolete mips*-*-mach3*.
10431
f1908289
AC
104322003-04-09 Andrew Cagney <cagney@redhat.com>
10433
10434 * doublest.h: Update copyright.
10435 (deprecated_store_floating, deprecated_extract_floating): Rename
10436 store_floating and extract_floating. Update comments.
10437 * doublest.c: Update copyright.
10438 (extract_floating_by_length): Replace extract_floating.
10439 (store_floating_by_length): Replace store_floating.
10440 (deprecated_extract_floating): New function.
10441 (deprecated_store_floating): New function.
10442 (extract_typed_floating): Call extract_floating_by_length.
10443 (store_typed_floating): Call store_floating_by_length.
10444 * x86-64-tdep.c (x86_64_store_return_value): Update.
10445 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
10446 (sh64_extract_return_value): Update.
10447 (sh_sh4_register_convert_to_virtual): Update.
10448 (sh_sh64_register_convert_to_virtual): Update.
10449 (sh_sh4_register_convert_to_raw): Update.
10450 (sh_sh64_register_convert_to_raw): Update.
10451 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
10452 (rs6000_register_convert_to_raw): Update.
10453 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
10454 (ia64_register_convert_to_raw): Update.
10455 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
10456 (REGISTER_CONVERT_TO_VIRTUAL): Update.
10457 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
10458 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
10459 (alpha_register_convert_to_raw): Update.
10460
4443bd83
AC
104612003-04-08 Andrew Cagney <cagney@redhat.com>
10462
10463 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
10464 * gdbarch.h, gdbarch.c: Re-generate.
10465 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
10466 (d10v_gdbarch_init): Do not set saved_pc_after_call.
10467 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
10468 conditionally, use frame_pc_unwind as an alternative. Add
10469 comments.
10470 * arch-utils.c (init_frame_pc_default): Only call
10471 SAVED_PC_AFTER_CALL when available.
10472
c0236d92
EZ
104732003-04-08 Elena Zannoni <ezannoni@redhat.com>
10474
fbe586ae 10475 * infrun.c (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10476 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
10477 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
10478 (start_remote): Ditto.
10479 (handle_inferior_event): Ditto.
10480 (save_inferior_status): Ditto.
10481 (restore_inferior_status): Ditto.
10482 * infcmd.c (attach_command): Ditto.
10483 * fork-child.c (startup_inferior): Ditto.
fbe586ae 10484 * inferior.h (stop_soon): Rename from stop_soon_quietly.
c0236d92
EZ
10485 * alpha-tdep.c (heuristic_proc_start): Ditto.
10486 * mips-tdep.c (heuristic_proc_start): Ditto.
10487 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
10488 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
10489 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
10490 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
10491 * remote-vx.c (vx_create_inferior): Ditto.
10492
104932003-04-08 Elena Zannoni <ezannoni@redhat.com>
10494
10495 * infrun.c (stop_soon_quietly): Make it an enum, to better
10496 override the default behavior of handle_inferior_event.
10497 (clear_proceed_status): Update uses of stop_soon_quietly to
10498 reflect that it is now an enum.
10499 (start_remote): Ditto.
10500 (handle_inferior_event): Change logic a bit if stop_soon_quietly
10501 is set to handle the new GNU/Linux kernel behavior for
10502 attach/sigstop. Update uses of stop_soon_quietly.
10503 * inferior.h (enum stop_kind): New enum.
10504 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
10505 Reset normal handle_inferior_event behavior, afterwards.
10506 * fork-child.c (startup_inferior): Update.
10507 * alpha-tdep.c (heuristic_proc_start): Update.
10508 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
10509 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
10510 * solib-osf.c (osf_solib_create_inferior_hook): Update.
10511 * solib-irix.c (irix_solib_create_inferior_hook): Update.
10512 * remote-vx.c (vx_create_inferior): Update.
10513 * mips-tdep.c (heuristic_proc_start): Update.
10514
1211bce3
EZ
105152003-04-07 Elena Zannoni <ezannoni@redhat.com>
10516
10517 * disasm.c (dump_insns): Move variables inside loop, or they will
fbe586ae 10518 be freed more than once, causing wild memory corruptions.
1211bce3 10519 (gdb_disassembly): Look for the substring "-thread",
fbe586ae 10520 instead of "-threads" in the target name, to make sure to find
8ffd9b1b 10521 the 'multi-thread' target. Also, make sure we do the right thing
fbe586ae 10522 with the "core" target.
1211bce3 10523
f0ef6b29
KB
105242003-04-07 Kevin Buettner <kevinb@redhat.com>
10525
10526 * mips-tdep.c (mips_print_fp_register): New function, created from
10527 do_fp_register_row(). Registers are now (also) printed as hex.
10528 Only one register is printed per row.
10529 (mips_print_register, do_fp_register_row): Print floating point
10530 registers with mips_print_fp_register().
10531
8cf71652
AC
105322003-04-06 Andrew Cagney <cagney@redhat.com>
10533
5e488a7b
AC
10534 * valprint.h (inspect_it): Add extern declaration.
10535 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
10536 (selectors_info, classes_info): Ditto.
10537 (find_objc_msgcall): Fix indentation.
10538 (objc_printstr): Delete extern declarations.
10539
8cf71652
AC
10540 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10541
e6ba3bc9
AC
105422003-04-06 Andrew Cagney <cagney@redhat.com>
10543
10544 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
10545 Update comment.
10546 * frame.c (legacy_saved_regs_this_id): Update.
10547 (legacy_get_prev_frame): Update.
10548 * xstormy16-tdep.c: Update comment.
10549 * sparc-tdep.c (sparc_frame_chain): Update comment.
10550 * blockframe.c (legacy_frame_chain_valid): Update.
10551
55e1d7e7
AC
105522003-04-06 Andrew Cagney <cagney@redhat.com>
10553
996179ee
AC
10554 * valprint.c (val_print_type_code_int): Delete #ifdef
10555 PRINT_TYPELESS_INTEGER code.
10556
55e1d7e7
AC
10557 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
10558 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
10559 multi-arch definition.
10560 * gdbarch.h: Re-generate.
10561
43bd9a9e
AC
105622003-04-05 Andrew Cagney <cagney@redhat.com>
10563
10564 Eliminate FRAME_FIND_SAVED_REGS.
10565 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10566 Change FSR parameter to a pointer.
10567 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
10568 Assume FSR parameter is a pointer.
10569 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
10570 Make fsr a pointer.
10571 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
10572 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
10573 saved_regs a pointer.
10574 (hppa_frame_saved_pc): Ditto.
10575 (find_dummy_frame_regs): Make frame_saved_regs a pointer
10576 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
10577 pointer.
10578 (restore_pc_queue): Make fsr a pointer.
10579 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
10580 (hppa_frame_chain): Make saved_regs a pointer, call
10581 hppa_frame_init_saved_regs.
10582 * sparc-tdep.c: Include "gdb_assert.h".
10583 (sparc_frame_find_saved_regs): Replace internal_error with
10584 gdb_assert.
10585 * remote-vxsparc.c (vx_read_register): Delete reference to
10586 FRAME_FIND_SAVED_REGS.
10587 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
10588 * gdbarch.h: Regenerate.
10589 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
10590 (deprecated_get_frame_saved_regs): Delete declaration.
10591 (struct frame_saved_regs): Delete definition.
10592 * frame.c (deprecated_get_frame_saved_regs): Delete function.
10593 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
10594 (hppa_frame_find_saved_regs): Delete declaration.
10595 (FRAME_FIND_SAVED_REGS): Delete macro.
10596 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
10597 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
10598 FRAME_FIND_SAVED_REGS in comment.
10599
be41e9f4
AC
106002003-04-05 Andrew Cagney <cagney@redhat.com>
10601
10602 * frame.c (frame_func_unwind, get_frame_func): New functions.
10603 * frame.h (get_frame_func, frame_func_unwind): Declare.
10604 (struct frame_info): Add field "prev_func" for caching the
10605 previous frame's function address.
10606 * arm-tdep.c (arm_frameless_function_invocation): Combine
10607 get_pc_function_start and get_frame_pc into get_frame_func.
10608 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
10609 (sh64_nofp_frame_init_saved_regs): Ditto.
10610 * s390-tdep.c (s390_function_start): Ditto.
10611 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
10612 (rs6000_frameless_function_invocation): Ditto.
10613 (rs6000_frame_saved_pc): Ditto.
10614 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
10615 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
10616 * i386-tdep.c (i386_frameless_signal_p): Ditto.
10617 (i386_frame_init_saved_regs): Ditto.
10618 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
10619 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
10620 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
10621 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
10622 * blockframe.c (frameless_look_for_prologue): Ditto.
10623
a01dd7cc
AC
106242003-04-05 Andrew Cagney <cagney@redhat.com>
10625
10626 * frame.c (legacy_get_prev_frame): Link prev to next at the
10627 function start. Update comments.
10628
5e5592e6
AC
106292003-04-05 Andrew Cagney <cagney@redhat.com>
10630
10631 * frame.c (get_frame_id): Update comment.
10632 (legacy_get_prev_frame): Update comment.
10633 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
10634 * gdbarch.h: Regenerate.
10635 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
10636 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
10637
6fba5002
AC
106382003-04-05 Andrew Cagney <cagney@redhat.com>
10639
10640 * stack.c (print_frame_info): Use get_frame_pc.
10641
7df05f2b
AC
106422003-04-04 Andrew Cagney <cagney@redhat.com>
10643
10644 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
10645 the frame's type from the unwinder.
10646 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
10647 (create_new_frame, legacy_get_prev_frame): When the unwinder's
10648 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
10649 (get_frame_base_address): Use get_frame_type.
10650 (get_frame_locals_address, get_frame_args_address): Ditto.
10651 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
10652 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
10653 (struct frame_info): Add comment explaining why the frame contains
10654 a "type" field.
10655 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
10656 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
10657 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
10658 NORMAL_FRAME.
10659 * frame-unwind.h: Include "frame.h".
10660 (struct frame_unwind): Add "type" field.
10661 * Makefile.in (frame_unwind_h): Add $(frame_h).
8ffd9b1b 10662
11889732
AC
106632003-04-04 Andrew Cagney <cagney@redhat.com>
10664
10665 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
10666 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
10667 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
10668 get_frame_base.
10669 (d10v_unwind_dummy_id): Use frame_id_build.
10670 * frame.c (find_frame_sal): Use get_frame_pc.
10671 (create_new_frame): Use deprecated_update_frame_pc_hack and
10672 deprecated_update_frame_base_hack.
10673 (create_sentinel_frame): Add comment about ->pc going away.
10674 (get_prev_frame): Add comment about ->pc going away.
10675 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
10676 frame_id_build, deprecated_update_frame_pc_hack and
10677 deprecated_update_frame_base_hack.
10678 (select_frame): Use get_frame_pc.
10679 (legacy_saved_regs_this_id): Use frame_id_build.
10680
50c46a0d
EZ
106812003-04-04 Elena Zannoni <ezannoni@redhat.com>
10682
fbe586ae
RH
10683 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10684 signed integer case.
10685 (classify_argument): Handle enumerations and references.
50c46a0d 10686
50bbdbd9
AC
106872003-04-04 Andrew Cagney <cagney@redhat.com>
10688
10689 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10690 ID to NULL.
10691
36018d2e
AF
106922003-04-01 Adam Fedor <fedor@gnu.org>
10693
10694 * gdb/objc-lang.c (selectors_info): Replace calls to
10695 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
10696 SYMBOL_NATURAL_NAME.
10697 (classes_info, find_methods): Likewise.
10698
35cec841
KB
106992003-04-03 Kevin Buettner <kevinb@redhat.com>
10700
10701 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10702 ``mach'' to the value determined by bfd_default_set_arch_mach().
10703
43136899
BR
107042003-04-02 Bob Rossi <bob_rossi@cox.net>
10705
10706 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
10707 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
10708 (mi-cmd-file.o): Update dependencies.
10709
040b99fd
KB
107102003-04-01 Kevin Buettner <kevinb@redhat.com>
10711
10712 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
10713 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
10714
9a3d7dfd
AF
107152003-04-01 Adam Fedor <fedor@gnu.org>
10716
10717 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
10718 * language.h (struct language_defn): Add la_demangle.
10719 (language_demangle): Declare.
10720 * language.c (language_demangle): New function.
10721 (unk_lang_demangle): Likewise.
10722 (unknown_language_defn, auto_language_defn, local_language_defn):
fbe586ae 10723 Add ukn_lang_demangle.
9a3d7dfd 10724 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
fbe586ae 10725 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
9a3d7dfd
AF
10726 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
10727 (cplus_language_defn): Add cplus_demangle for la_demangle element.
10728 * jv-lang.c (java_demangle): New function
10729 (java_language_defn): Use it for la_demangle element.
fbe586ae
RH
10730 * objc-lang.c (objc_demangle): Add options argument
10731 (objc_language_defn): Use objc_demangle for la_demangle element.
9a3d7dfd
AF
10732 * maint.c (maintenance_demangle): Replace switch with
10733 call to language_demangle.
10734 * utils.c (fprintf_symbol_filtered): Likewise.
10735
5e074003
AC
107362003-04-01 Andrew Cagney <cagney@redhat.com>
10737
10738 * printcmd.c (print_frame_nameless_args): Delete #ifdef
10739 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
10740 PRINT_TYPELESS_INTEGER.
10741 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
10742 PUSH_RETURN_ADDRESS.
10743
270cb5d6
AC
107442003-04-01 Andrew Cagney <cagney@redhat.com>
10745
10746 * Makefile.in (d10v-tdep.o): Update dependencies.
10747 * d10v-tdep.c: Include "frame-base.h".
10748 (d10v_frame_unwind): Make constant.
10749 (d10v_frame_base_address): New function.
10750 (d10v_frame_base): New variable.
10751 (d10v_gdbarch_init): Set frame_base default.
10752 (struct d10v_unwind_cache): Add the field "prev_sp". Update
10753 comment for base.
10754 (d10v_frame_unwind_cache): Set and use "prev_sp".
10755 (d10v_frame_this_id): Use the previous frame's inner most stack
10756 address and this frame's func address for the frame ID. Use
10757 frame_id_build. Don't analyze beyond the current instruction.
8ffd9b1b 10758
6bfb3e36
AC
107592003-04-01 Andrew Cagney <cagney@redhat.com>
10760
10761 * frame.h (get_frame_locals_address, get_frame_args_address):
10762 Refer to the base address, instead of the address of the first
10763 local or parameter.
8ffd9b1b 10764
da62e633
AC
107652003-04-01 Andrew Cagney <cagney@redhat.com>
10766
10767 Add frame debug info addresses:
10768 * frame-base.c: New file.
10769 * frame-base.h: New file.
10770 * frame.h (struct frame_base): Add opaque declaration.
10771 (get_frame_base): Update comment.
10772 (get_frame_base_address): Declare.
10773 (get_frame_locals_address): Declare.
10774 (get_frame_args_address): Declare.
10775 (struct frame_info): Add "base" and "base_cache". Update
10776 comments on the unwinder.
10777 * frame.c: Include "frame-base.h".
10778 (get_frame_locals_address): New function.
10779 (get_frame_base_address): New function.
10780 (get_frame_args_address): New function.
10781 * findvar.c (read_var_value): Use get_frame_locals_address and
10782 get_frame_args_address.
10783 * stack.c (frame_info): Use get_frame_locals_address and
10784 get_frame_args_address.
10785 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
10786 moved to "frame-base.c".
10787 * printcmd.c (print_frame_nameless_args): Ditto.
10788 * symtab.h (address_class): Update comments.
10789 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
10790 get_frame_base_address.
10791 * dwarf2expr.c (execute_stack_op): Ditto.
10792 * Makefile.in (frame_base_h): Define.
10793 (frame.o): Update dependencies.
10794 (frame-base.o): Add dependencies.
10795 (SFILES): Add frame-base.c.
10796 (COMMON_OBS): Add frame-base.o.
10797
3d30e9c2
AC
107982003-04-01 Andrew Cagney <cagney@redhat.com>
10799
10800 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
10801 CALL_DUMMY_LENGTH): Ditto.
10802 * gdbarch.c: Re-generate.
10803 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
10804 (CALL_DUMMY_LENGTH): Delete macro.
10805 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
10806 * arm-tdep.c (arm_gdbarch_init): Ditto.
10807 * avr-tdep.c (avr_gdbarch_init): Ditto.
10808 * cris-tdep.c (cris_gdbarch_init): Ditto.
10809 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10810 * frv-tdep.c (frv_gdbarch_init): Ditto.
10811 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10812 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
10813 * i386-tdep.c (i386_gdbarch_init): Ditto.
10814 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10815 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10816 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10817 * mips-tdep.c (mips_gdbarch_init): Ditto.
10818 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10819 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10820 * s390-tdep.c (s390_gdbarch_init): Ditto.
10821 * sh-tdep.c (sh_gdbarch_init): Ditto.
10822 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10823 * v850-tdep.c (v850_gdbarch_init): Ditto.
10824 * vax-tdep.c (vax_gdbarch_init): Ditto.
10825 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10826
ce0c7262
CV
108272003-04-01 Corinna Vinschen <vinschen@redhat.com>
10828
10829 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10830
73dd234f
AC
108312003-04-01 Andrew Cagney <cagney@redhat.com>
10832
10833 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
10834 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10835 * gdbarch.h, gdbarch.c: Re-generate.
10836 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10837 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10838 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10839 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10840 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
10841 * infcmd.c (run_stack_dummy): Simplify assuming
10842 CALL_DUMMY_BREAKPOINT_OFFSET_P.
10843 * infrun.c (handle_inferior_event): Ditto.
10844 * alpha-tdep.c (alpha_gdbarch_init): Do not set
10845 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
10846 * arm-tdep.c (arm_gdbarch_init): Ditto.
10847 * avr-tdep.c (avr_gdbarch_init): Ditto.
10848 * cris-tdep.c (cris_gdbarch_init): Ditto.
10849 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10850 * frv-tdep.c (frv_gdbarch_init): Ditto.
10851 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10852 * i386-tdep.c (i386_gdbarch_init): Ditto.
10853 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10854 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10855 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10856 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10857 * mips-tdep.c (mips_gdbarch_init): Ditto.
10858 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10859 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10860 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10861 * s390-tdep.c (s390_gdbarch_init): Ditto.
10862 * sh-tdep.c (sh_gdbarch_init): Ditto.
10863 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10864 * v850-tdep.c (v850_gdbarch_init): Ditto.
10865 * vax-tdep.c (vax_gdbarch_init): Ditto.
10866 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10867
97606a13
DJ
108682003-04-01 Daniel Jacobowitz <drow@mvista.com>
10869
10870 * symfile.c (symfile_relocate_debug_section): Update call to
10871 bfd_simple_get_relocated_section_contents.
10872
e8ab51f7
AC
108732003-03-31 Andrew Cagney <cagney@redhat.com>
10874
10875 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
10876 * gdbarch.h, gdbarch.c: Regenerate.
10877 * inferior.h (FIX_CALL_DUMMY): Delete macro.
10878 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
10879 available.
10880 * frame.h (generic_fix_call_dummy): Delete declaration.
10881 * dummy-frame.h: Update comment.
10882 * dummy-frame.c (generic_fix_call_dummy): Delete function.
10883 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10884 fix_call_dummy.
10885 * sh-tdep.c (sh_gdbarch_init): Ditto.
10886 * s390-tdep.c (s390_gdbarch_init): Ditto.
10887 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10888 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10889 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
10890 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
10891 * i386-tdep.c (i386_gdbarch_init): Ditto.
10892 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10893 * frv-tdep.c (frv_gdbarch_init): Ditto.
10894 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
10895 * cris-tdep.c (cris_gdbarch_init): Ditto.
10896 * avr-tdep.c (avr_gdbarch_init): Ditto.
10897 * arm-tdep.c (arm_gdbarch_init): Ditto.
10898
018d1b48
JB
108992003-03-31 J. Brobecker <brobecker@gnat.com>
10900
10901 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10902 (INIT_FRAME_AP): Likewise.
10903 (EXTRA_FRAME_INFO): Likewise.
10904
e9a2674e
AC
109052003-03-31 Andrew Cagney <cagney@redhat.com>
10906
10907 * gdbarch.sh: Include "symfile.h".
10908 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
10909 * gdbarch.h, gdbarch.c: Re-generate.
10910 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
10911 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
10912 call_dummy_address, the default is at entry_point_address.
10913 * v850-tdep.c (v850_gdbarch_init): Ditto.
10914 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
10915 * sh-tdep.c (sh_gdbarch_init): Ditto.
10916 * s390-tdep.c (s390_gdbarch_init): Ditto.
10917 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10918 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10919 * mcore-tdep.c (mcore_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 * arm-tdep.c (arm_gdbarch_init): Ditto.
10927
e8a8712a
AC
109282003-03-31 Andrew Cagney <cagney@redhat.com>
10929
10930 * gdbarch.sh (CALL_DUMMY_P): Delete.
10931 * gdbarch.h, gdbarch.c: Re-generate.
10932 * inferior.h (CALL_DUMMY_P): Delete macro.
10933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
10934 * vax-tdep.c (vax_gdbarch_init): Update.
10935 * v850-tdep.c (v850_gdbarch_init): Update.
10936 * sparc-tdep.c (sparc_gdbarch_init): Update.
10937 * sh-tdep.c (sh_gdbarch_init): Update.
10938 * s390-tdep.c (s390_gdbarch_init): Update.
10939 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
10940 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
10941 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
10942 * mips-tdep.c (mips_gdbarch_init): Update.
10943 * mcore-tdep.c (mcore_gdbarch_init): Update.
10944 * m68k-tdep.c (m68k_gdbarch_init): Update.
10945 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
10946 * ia64-tdep.c (ia64_gdbarch_init): Update.
10947 * i386-tdep.c (i386_gdbarch_init): Update.
10948 * h8300-tdep.c (h8300_gdbarch_init): Update.
10949 * frv-tdep.c (frv_gdbarch_init): Update.
10950 * d10v-tdep.c (d10v_gdbarch_init): Update.
10951 * cris-tdep.c (cris_gdbarch_init): Update.
10952 * breakpoint.c (deprecated_frame_in_dummy): Update.
10953 * avr-tdep.c (avr_gdbarch_init): Update.
10954 * alpha-tdep.c (alpha_gdbarch_init): Update.
10955 * arm-tdep.c (arm_gdbarch_init): Update.
10956 * dummy-frame.c (dummy_frame_this_id): Update comments.
10957 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
10958 * frame.c (legacy_get_prev_frame): Ditto.
10959 * valops.c (call_function_by_hand): Delete function.
10960 (hand_function_call): Rename to call_function_by_hand
10961
ed234cf8
AC
109622003-03-30 Andrew Cagney <cagney@redhat.com>
10963
10964 2002-11-10 Klee Dienes <kdienes@apple.com>
fbe586ae 10965 * value.h (struct value): Update comment.
ed234cf8 10966
06c77151
AC
109672003-03-30 Andrew Cagney <cagney@redhat.com>
10968
6c2b5168
AC
10969 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10970 D10V_FP_REGNUM.
10971 (d10v_gdbarch_init): Do not set fp_regnum.
10972
06c77151
AC
10973 * frame.c (get_frame_base): Force ID initialization.
10974 (get_prev_frame): Move computation of the frame ID from here ...
10975 (get_frame_id): ... to here.
10976 (legacy_get_prev_frame): Mark the frame ID as valid.
10977 * frame.h (struct frame_info): Add field "id_p".
10978
97a1a11c
MK
109792003-03-30 Mark Kettenis <kettenis@gnu.org>
10980
10981 * i386-tdep.c (i386_store_struct_return): Removed.
10982 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10983
6c0e89ed
AC
109842003-03-30 Andrew Cagney <cagney@redhat.com>
10985
10986 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
10987 * gdbarch.h, gdbarch.c: Regenerate.
10988 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
10989 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
10990 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
10991 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
10992 * i386-tdep.c (i386_gdbarch_init): Ditto.
10993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
10994 * cris-tdep.c (cris_gdbarch_init): Ditto.
10995 * vax-tdep.c (vax_gdbarch_init): Ditto.
10996 * s390-tdep.c (s390_gdbarch_init): Ditto.
10997 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
10998 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
10999 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11000 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
11001 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
11002 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
11003 * sparc-tdep.c (sparc_gdbarch_init): Update.
11004 * sh-tdep.c (sh_gdbarch_init): Update.
11005 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11006 * mips-tdep.c (mips_gdbarch_init): Update.
11007 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11008 * ia64-tdep.c (ia64_gdbarch_init): Update.
11009 * frv-tdep.c (frv_gdbarch_init): Update.
11010 * avr-tdep.c (avr_gdbarch_init): Update.
11011 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
11012 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
11013 instead of when push_dummy_call is not available.
8ffd9b1b 11014
f7dd6af2
AC
110152003-03-30 Andrew Cagney <cagney@redhat.com>
11016
11017 * infttrace.c: Include "gdbthread.h".
11018 (parent_attach_all): Fix function signature.
11019 (call_ptrace): Update call.
11020 * Makefile.in (infttrace.o): Update dependencies.
11021
28f617b3
AC
110222003-03-30 Andrew Cagney <cagney@redhat.com>
11023
11024 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
11025 PUSH_RETURN_ADDRESS.
11026 * gdbarch.h, gdbarch.c: Regenerate.
11027 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11028 * x86-64-tdep.c (x86_64_init_abi): Update.
11029 * v850-tdep.c (v850_gdbarch_init): Update.
11030 * sparc-tdep.c (sparc_gdbarch_init): Update.
11031 * sh-tdep.c (sh_gdbarch_init): Update.
11032 * s390-tdep.c (s390_gdbarch_init): Update.
11033 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11034 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11035 * mips-tdep.c (mips_gdbarch_init): Update.
11036 * mcore-tdep.c (mcore_gdbarch_init): Update.
11037 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11038 * ia64-tdep.c (ia64_gdbarch_init): Update.
11039 * i386-tdep.c (i386_gdbarch_init): Update.
11040 * h8300-tdep.c (h8300_gdbarch_init): Update.
11041 * frv-tdep.c (frv_gdbarch_init): Update.
11042 * cris-tdep.c (cris_gdbarch_init): Update.
11043 * avr-tdep.c (avr_gdbarch_init): Update.
11044 * arm-tdep.c (arm_gdbarch_init): Update.
11045 * valops.c (hand_function_call): Update.
11046
4d628cd7
AC
110472003-03-29 Andrew Cagney <cagney@redhat.com>
11048
11049 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
11050 sizeof_call_dummy_words.
11051 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
11052 define.
11053 * gdbarch.h: Regenerate.
8ffd9b1b 11054
65e82032
AC
110552003-03-29 Andrew Cagney <cagney@redhat.com>
11056
11057 * infttrace.h: New file.
11058 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
11059 (hpread_get_textlow): Detect an uninitialized dn_bufp.
11060 (hpread_read_doc_function_type): Detect an initialized type1.
11061 (hpread_quick_traverse): Initialize mod_name_string.
11062 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
11063 (som_solib_get_solib_by_pc): Declare.
11064 (so_lib_thread_start_addr): Declare.
11065 (no_shared_libraries): Declare.
11066 * somread.c (init_import_symbols): Make static. Add forward
11067 declaration.
11068 * config/pa/nm-hppah.h: Include "infttrace.h" for
11069 parent_attach_all.
11070 (hppa_insert_hw_watchpoint): Declare.
11071 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
11072 * hppah-nat.c: Include "gdb_string.h".
11073 (parent_attach_all): Delete extern declaration, moved to
11074 "infttrace.h".
11075 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
11076 int.
11077 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
11078 * Makefile.in (infttrace_h): Define.
11079 (hpread.o): Update dependencies.
11080 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
11081 * hppa-hpux-tdep.c: Include "gdb_string.h".
11082 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
11083 * infrun.c (handle_inferior_event): Always initialize
11084 stepped_after_stopped_by_watchpoint. Add default and remove
11085 fallthrough in switch statement.
11086 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
11087 parameter to int.
11088 (hppa_remove_hw_watchpoint): Ditto.
11089
2c3bbe77
AC
110902003-03-29 Andrew Cagney <cagney@redhat.com>
11091
11092 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11093 offset.
11094
2dd604e7
RE
110952003-03-29 Richard Earnshaw <rearnsha@arm.com>
11096
11097 * arm-tdep.c (arm_push_arguments): Delete.
11098 (struct stack_item): New type.
11099 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
11100 (arm_store_struct_return): Delte.
11101 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
11102 arm_push_arguments or arm_store_struct_return.
11103
e8933a55
AC
111042003-03-28 Andrew Cagney <cagney@redhat.com>
11105
11106 * Makefile.in (d10v-tdep.o): Update dependencies.
11107 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
11108 * d10v-tdep.c: Include "remote.h".
11109 (target_resume_hook): Delete extern declaration.
11110 (target_wait_loop_hook): Ditto.
11111 (tdisassemble_command): Eliminate assignment in "if" conditional.
11112 (d10v_ts2_register_sim_regno): Eliminate call to
11113 legacy_register_sim_regno.
11114 (d10v_ts3_register_sim_regno): Ditto.
11115
6949171e
JJ
111162003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11117
11118 * thread.c: Reindented.
11119 * lin-lwp.c: Ditto.
11120 * linux-proc.c: Ditto.
11121
98c7071f
BR
111222003-03-28 Bob Rossi <bob_rossi@cox.net>
11123
fbe586ae 11124 * MAINTAINERS (write after approval): Add myself.
98c7071f 11125
5edc9ca6
TR
111262003-03-27 Theodore A. Roth <troth@openavr.org>
11127
11128 * objc-exp.y: Add missing semi-colons.
11129
378bfd1b
AC
111302003-03-27 Andrew Cagney <cagney@redhat.com>
11131
11132 * regcache.c (write_sp): Delete function and references.
11133 * inferior.h (write_sp): Delete declaration.
11134 * valops.c (hand_function_call): Replace write_sp with
11135 TARGET_WRITE_SP.
11136 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11137 (sparc_pop_frame): Ditto.
8ffd9b1b 11138
56056df7
AC
111392003-03-27 Andrew Cagney <cagney@redhat.com>
11140
11141 * NEWS: Mention removal of support for hppa*-*-bsd* and
11142 hppa*-*-osf* natives, and hppa*-*-pro* target.
11143 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
11144 * config/pa/xm-pa.h: Obsolete file.
11145 * config/pa/xm-hppab.h: Obsolete file.
11146 * config/pa/nm-hppab.h: Obsolete file.
11147 * config/pa/tm-hppab.h: Obsolete file.
11148 * config/pa/tm-hppao.h: Obsolete file.
11149 * config/pa/nm-hppao.h: Obsolete file.
11150 * config/pa/tm-pro.h: Obsolete file.
11151 * config/pa/hppaosf.mt: Obsolete file.
11152 * config/pa/hppaosf.mh: Obsolete file.
11153 * config/pa/hppapro.mt: Obsolete file.
11154 * config/pa/hppabsd.mt: Obsolete file.
11155 * config/pa/hppabsd.mh: Obsolete file.
11156 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
11157 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
11158 hppa*-*-osf*.
11159
5873a88d
AC
111602003-03-27 Andrew Cagney <cagney@redhat.com>
11161
11162 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
11163 push_arguments. Don't set push_return_address or write_sp.
11164 (d10v_push_dummy_call): Replace d10v_push_arguments.
11165 (d10v_push_return_address, d10v_write_sp): Delete function,
11166 handled by push_dummy_call.
11167
b81774d8
AC
111682003-03-26 Andrew Cagney <cagney@redhat.com>
11169
11170 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
11171 (push_dummy_call): New pure multi-arch replacement with gdbarch,
11172 regcache and dummy_addr parameters.
11173 * gdbarch.h, gdbarch.c: Re-generate.
11174 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
11175 available; assume it will handle stack alignment and return
11176 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
11177 legacy_push_arguments.
11178 (legacy_push_arguments): Rename default_push_arguments.
11179 * value.h (legacy_push_arguments): Rename default_push_arguments.
11180 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
11181 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11182 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11183 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
11184 * config/i386/tm-symmetry.h: Update.
11185 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11186 * x86-64-tdep.c (x86_64_init_abi): Update.
11187 * v850-tdep.c (v850_gdbarch_init): Update.
11188 * sparc-tdep.c (sparc_gdbarch_init): Update.
11189 * sh-tdep.c (sh_gdbarch_init): Update.
11190 * s390-tdep.c (s390_gdbarch_init): Update.
11191 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11192 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11193 * mips-tdep.c (mips_gdbarch_init): Update.
11194 * mcore-tdep.c (mcore_gdbarch_init): Update.
11195 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11196 * ia64-tdep.c (ia64_gdbarch_init): Update.
11197 * i386-tdep.c (i386_gdbarch_init): Update.
11198 * hppa-tdep.c (hppa_gdbarch_init): Update.
11199 * h8300-tdep.c (h8300_gdbarch_init): Update.
11200 * frv-tdep.c (frv_gdbarch_init): Update.
11201 * d10v-tdep.c (d10v_gdbarch_init): Update.
11202 * cris-tdep.c (cris_gdbarch_init): Update.
11203 * avr-tdep.c (avr_gdbarch_init): Update.
11204 * arm-tdep.c (arm_gdbarch_init): Update.
11205 * arm-linux-tdep.c (arm_linux_init_abi): Update.
11206 * alpha-tdep.c (alpha_gdbarch_init): Update.
11207
f541410f
DJ
112082003-03-26 Daniel Jacobowitz <drow@mvista.com>
11209
11210 * signals/signals.c (do_target_signal_to_host): Correct realtime
11211 signal range test.
11212
69f567ae
DJ
112132003-03-26 Daniel Jacobowitz <drow@mvista.com>
11214
11215 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
11216 (struct sal_chain, map_catch_names): Remove.
11217 (catch_exception_command_1): Don't call
11218 handle_gnu_4_16_catch_command.
11219
d5d14a5a
DJ
112202003-03-26 Daniel Jacobowitz <drow@mvista.com>
11221
11222 From Mark Dettinger <dettinge@de.ibm.com>:
11223 * dwarf2cfi.c (read_2u): Increment pointer by two.
11224
bdd73e22
DJ
112252003-03-26 Daniel Jacobowitz <drow@mvista.com>
11226
11227 * signals/signals.c: Fix typos in last change.
11228
960cb555
DJ
112292003-03-26 Daniel Jacobowitz <drow@mvista.com>
11230
11231 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
11232 not already defined. Use __SIGRTMIN if available.
11233 (target_signal_from_host): Remove SIGRTMIN block.
11234 (do_target_signal_to_host): Remove SIGRTMIN block; check that
11235 the signal is within the realtime range.
11236
f636b87d
AF
112372003-03-25 Adam Fedor <fedor@gnu.org>
11238
11239 * Makefile.in (infrun.o): Add $(language_h)
11240 * infrun.c (handle_inferior_event): Use skip_language_trampoline
11241 for language specific trampolines.
11242 * language.h (struct language_defn): Add skip_trampoline.
11243 (skip_language_trampoline): Declare.
11244 * language.c (unk_lang_trampoline, skip_language_trampoline):
11245 New functions.
11246 (unknown_language_defn, auto_language_defn, local_language_defn):
11247 Add ukn_lang_trampoline.
11248 * ada-lang.c (ada_language_defn): Add NULL for language
11249 specific skip_trampoline.
11250 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
11251 scm-lang.c: Likewise.
11252 * objc-lang.c (objc_skip_trampoline): New function.
11253 (objc_language_defn): Add objc_skip_trampoline.
11254
28f617b3 112552003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
11256
11257 * frame.c (get_prev_frame): Delay validating a frame's ID -
11258 non-NULL, didn't go backwards - until an attempt to unwind it to
11259 the previous frame.
11260
f933a9c5
AC
112612003-03-25 Andrew Cagney <cagney@redhat.com>
11262
11263 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
11264 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
11265 * gdbarch.h, gdbarch.c: Re-generate.
11266 * config/sparc/tm-sparc.h
11267 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
11268 * sparc-tdep.c (sparc_gdbarch_init): Set
11269 deprecated_extra_stack_alignment_needed.
11270 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
11271 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
11272 extra_stack_alignment_needed.
11273 * v850-tdep.c (v850_gdbarch_init): Ditto.
11274 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
11275 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11277 * cris-tdep.c (cris_gdbarch_init): Ditto.
11278 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11279 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
8ffd9b1b 11280
4183d812
AC
112812003-03-25 Andrew Cagney <cagney@redhat.com>
11282
11283 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
11284 STORE_STRUCT_RETURN.
11285 * gdbarch.h, gdbarch.c: Regenerate.
11286 * d10v-tdep.c (d10v_store_struct_return): Delete function.
11287 (d10v_push_arguments): Set the struct return register.
11288 (d10v_gdbarch_init): Update.
11289 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11290 * x86-64-tdep.c (x86_64_init_abi): Update.
11291 * vax-tdep.c (vax_gdbarch_init): Update.
11292 * v850-tdep.c (v850_gdbarch_init): Update.
11293 * sparc-tdep.c (sparc_gdbarch_init): Update.
11294 * sh-tdep.c (sh_gdbarch_init): Update.
11295 * s390-tdep.c (s390_gdbarch_init): Update.
11296 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11297 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11298 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11299 * mips-tdep.c (mips_gdbarch_init): Update.
11300 * mcore-tdep.c (mcore_gdbarch_init): Update.
11301 * m68k-tdep.c (m68k_gdbarch_init): Update.
11302 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11303 * ia64-tdep.c (ia64_gdbarch_init): Update.
11304 * i386-tdep.c (i386_gdbarch_init): Update.
11305 * hppa-tdep.c (hppa_gdbarch_init): Update.
11306 * h8300-tdep.c (h8300_gdbarch_init): Update.
11307 * frv-tdep.c (frv_gdbarch_init): Update.
11308 * cris-tdep.c (cris_gdbarch_init): Update.
11309 * avr-tdep.c (avr_gdbarch_init): Update.
11310 * arm-tdep.c (arm_gdbarch_init): Update.
11311 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 11312
1bf6d5cc
AC
113132003-03-25 Andrew Cagney <cagney@redhat.com>
11314
11315 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
11316 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
11317 CALL_DUMMY_STACK_ADJUST with a predicate variable.
11318 * gdbarch.h, gdbarch.c: Regenerate.
11319 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
11320 call_dummy_stack_adjust_p.
11321 * vax-tdep.c (vax_gdbarch_init): Ditto.
11322 * v850-tdep.c (v850_gdbarch_init): Ditto.
11323 * sh-tdep.c (sh_gdbarch_init): Ditto.
11324 * s390-tdep.c (s390_gdbarch_init): Ditto.
11325 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
11326 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
11327 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
11328 * mips-tdep.c (mips_gdbarch_init): Ditto.
11329 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
11330 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
11331 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
11332 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
11333 * i386-tdep.c (i386_gdbarch_init): Ditto.
11334 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
11335 * frv-tdep.c (frv_gdbarch_init): Ditto.
11336 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
11337 * cris-tdep.c (cris_gdbarch_init): Ditto.
11338 * avr-tdep.c (avr_gdbarch_init): Ditto.
11339 * arm-tdep.c (arm_gdbarch_init): Ditto.
11340 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
11341 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11342 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
11343 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
11344 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
11345 call_dummy_stack_adjust_p.
11346 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
11347 (CALL_DUMMY_STACK_ADJUST): Delete macro.
11348 * sparc-tdep.c (sparc32_push_arguments): Update.
11349 * valops.c (hand_function_call): Update.
11350
71c08af0
CV
113512003-03-25 Corinna Vinschen <vinschen@redhat.com>
11352
11353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11354 set_gdbarch_char_signed.
11355
30757f90
RE
113562003-03-25 Richard Earnshaw <rearnsha@arm.com>
11357
11358 PR cli/548
11359 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11360
03d48a7d
RE
113612003-03-25 Richard Earnshaw <rearnsha@arm.com>
11362
11363 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11364 (_initialize_arm_tdep): Don't set tm_print_insn.
11365
2cf6873c
AF
113662003-03-24 Adam Fedor <fedor@gnu.org>
11367
11368 * Makefile.in (YYOBJ): Add objc-exp.tab.o
11369 * objc-lang.h: Add multiple inclusion protection.
11370 (start_msglist, add_msglist, end_msglist): Additional declarations.
11371
17c0759e
RE
113722003-03-24 Richard Earnshaw <rearnsha@arm.com>
11373
11374 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11375 value was renamed to ARM_FLOAT_SOFT_FPA.
11376
618ce49f
AC
113772003-03-23 Andrew Cagney <cagney@redhat.com>
11378
11379 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
11380 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
11381 * gdbarch.h, gdbarch.c: Regenerate.
11382 * valops.c (hand_function_call): Update.
11383 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11384 * frame.c (legacy_saved_regs_this_id): Update.
11385 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
11386 * dummy-frame.h: Update.
11387 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
11388 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
11389 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
11390 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
11391 * config/m68k/tm-sun3.h: Update.
11392 * blockframe.c (inside_main_func, frame_chain_valid): Update.
11393 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11394 * x86-64-tdep.c (x86_64_init_abi): Update.
11395 * vax-tdep.c (vax_gdbarch_init): Update.
11396 * v850-tdep.c (v850_gdbarch_init): Update.
11397 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
11398 * sh-tdep.c (sh_gdbarch_init): Update.
11399 * s390-tdep.c (s390_gdbarch_init): Update.
11400 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
11401 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
11402 (frame_get_saved_regs): Update.
11403 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11404 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11405 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11406 * mips-tdep.c (mips_gdbarch_init): Update.
11407 * mcore-tdep.c (mcore_gdbarch_init): Update.
11408 * m68k-tdep.c (m68k_gdbarch_init): Update.
11409 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11410 * ia64-tdep.c (ia64_gdbarch_init): Update.
11411 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
11412 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11413 (i386_interix_back_one_frame): Update.
11414 * hppa-tdep.c (hppa_gdbarch_init): Update.
11415 (hppa_init_extra_frame_info): Update.
11416 * h8300-tdep.c (h8300_gdbarch_init): Update.
11417 * frv-tdep.c (frv_gdbarch_init): Update.
11418 * cris-tdep.c (cris_gdbarch_init): Update.
11419 * avr-tdep.c (avr_gdbarch_init): Update.
11420 * arm-tdep.c (arm_gdbarch_init): Update.
11421 * alpha-tdep.c (alpha_gdbarch_init): Update.
11422
fd50bc42
RE
114232003-03-22 Richard Earnshaw <rearnsha@arm.com>
11424
11425 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
11426 (arm_get_fp_model): Declare.
11427 * arm-tdep.c (fp_model_strings): New string array.
11428 (arm_fp_model, current_fp_model): New variables.
11429 (arm_get_fp_model): New function.
11430 (arm_set_fp): New function.
11431 (set_fp_model_sfunc): New function.
11432 (show_fp_model): New function.
11433 (_initialize_arm_tdep): Add new command to set/show the FPU.
11434 (arm_extract_return_value): Use arm_get_fp_model.
11435 (arm_store_return_value): Likewise.
11436 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
11437 to initialize the floating-point data types.
11438 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
11439 model is FPA.
11440
26304000
RE
114412003-03-22 Richard Earnshaw <rearnsha@arm.com>
11442
11443 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
11444 the current setting of each value.
11445 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
8ffd9b1b 11446 new_set and new_show. Use add_setshow_cmd_full and
26304000
RE
11447 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11448 commands and add new version as subcommands of "set/show arm".
11449
afd7eef0
RE
114502003-03-22 Richard Earnshaw <rearnsha@arm.com>
11451
11452 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
11453 (set_arm_command, show_arm_command): New functions.
11454 (_initialize_arm_tdep): Add them.
11455 (num_disassembly_options): Renamed from num_flavor_options.
11456 (valid_disassembly_styles): Renamed from valid_flavors.
11457 (disassembly_style): Renamed from disassembly_flavor.
8ffd9b1b 11458 (set_disassembly_style_sfunc): Renamed from
afd7eef0
RE
11459 set_disassembly_flavor_sfunc.
11460 (set_disassembly_style): Renamed from set_disassembly_flavor.
11461 (arm_othernames): Updated.
11462 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
11463 command. Add "set/show arm disassembly" commands. Deprecate
11464 "othernames" command.
11465
299a7944
RE
114662003-03-22 Richard Earnshaw <rearnsha@arm.com>
11467
11468 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11469 (arm-tdep.o): Depend on elf_arm_h.
11470
c1dac9e6
RE
114712003-03-22 Richard Earnshaw <rearnsha@arm.com>
11472
11473 * Makefile.in (coff_internal_h): Define.
11474 (arm-tdep.o): Update dependencies.
11475
2702d96c
RE
114762003-03-22 Richard Earnshaw <rearnsha@arm.com>
11477
11478 * arm-tdep.c (prologue_cache): Delete.
11479 (check_prologue_cache, save_prologue_cache): Delete.
11480 (arm_scan_prologue): Don't check or update the prologue_cache.
11481 (arm_gdb_arch_init): Don't initialize it.
11482 (_initialize_arm_tdep): Likewise.
11483
27d5d74b
SC
114842003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11485
11486 * MAINTAINERS (tui): Maintainer of tui code.
11487
1762d96d
CV
114882003-03-21 Corinna Vinschen <vinschen@redhat.com>
11489
11490 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
11491 (i386-cygwin-tdep.o): Add dependencies.
11492 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
11493 * i386-cygwin-tdep.c: New file.
11494 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
11495 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
11496
4c2e2391
AC
114972003-03-20 Andrew Cagney <cagney@redhat.com>
11498
f20d38b7
AC
11499 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11500 (handle_inferior_event): Remove code calling
11501 DYNAMIC_TRAMPOLINE_NEXTPC.
11502
0022b738
AC
11503 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11504 already has a full path.
11505
864dbc90
AC
11506 * main.c (gdb_main): Return 1.
11507 (captured_main): Call error to report an invalid interpreter.
11508
4c2e2391
AC
11509 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11510 * alpha-osf1-tdep.c: Include "gdb_string.h".
11511
5ef7553b
JB
115122003-03-19 J. Brobecker <brobecker@gnat.com>
11513
11514 Continuing work to convert the hppa targets to multiarch partial.
11515
11516 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
11517 method, now that hppa_push_dummy_frame has a conformant prototype.
11518 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
11519 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
11520 for the switch to multiarch partial.
11521
7bde8967
KB
115222003-03-19 Kevin Buettner <kevinb@redhat.com>
11523
11524 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11525 when iss is issNull.
11526
b006a9e9
KB
115272003-03-18 Kevin Buettner <kevinb@redhat.com>
11528
11529 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11530 NUM_REGS bounds check.
11531
5e2e9765
KB
115322003-03-18 Kevin Buettner <kevinb@redhat.com>
11533
11534 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
11535 * mips-tdep.c (gdb_assert.h): Include.
11536 (mips_generic_reg_names, mips_processor_reg_names): Make static.
11537 (mips_register_name): Handle integer registers explicitly. Add
11538 bounds checking.
11539 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
11540 (mips_lsi33k_reg_names): Don't list integer registers; they're
11541 handled by mips_register_name() now.
11542 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
11543 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
11544 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
11545 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
11546 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
11547
a2867626
AC
115482003-03-18 Andrew Cagney <cagney@redhat.com>
11549
11550 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11551 a void pointer.
11552 * gdbtypes.h (print_scalar_formatted): Update declaration.
11553 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11554
06600e06
JB
115552003-03-18 J. Brobecker <brobecker@gnat.com>
11556
11557 * infrun.c (observer.h): Add #include.
11558 (normal_stop): Add call to observer_notify_normal_stop.
11559 * Makefile.in (infrun.o): Add dependency on observer.h.
11560
7daf4f5b
JB
115612003-03-18 J. Brobecker <brobecker@gnat.com>
11562
11563 Continuing work to convert the hppa targets to multiarch partial.
11564 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
11565 parameter. Reformat comment.
11566 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
11567 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
11568 to match new profile.
11569
3371ccc0
JB
115702003-03-18 J. Brobecker <brobecker@gnat.com>
11571
11572 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11573 appear to be working in any case.
11574
4fbe891e
JB
115752003-03-18 J. Brobecker <brobecker@gnat.com>
11576
11577 * observer.c (observer_test_first_observer): New static variable.
11578 (observer_test_second_observer): Likewise.
11579 (observer_test_third_observer): Likewise.
11580 (observer_test_first_notification_function): New static function.
11581 (observer_test_second_notification_function): Likewise.
11582 (observer_test_third_notification_function): Likewise.
11583
a7ff40e7
JB
115842003-03-17 J. Brobecker <brobecker@gnat.com>
11585
11586 * hppa-tdep.c (gdb_assert.h): Add missing #include.
11587 * somsolib.c (gdb_assert.h): Likewise.
11588 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
11589 (somsolib.o): Likewise.
11590
26ca4152
AC
115912003-03-17 Andrew Cagney <cagney@redhat.com>
11592
11593 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11594 BFD. Simplify setting of di.endian.
11595
0a613259
AC
115962003-03-17 Andrew Cagney <cagney@redhat.com>
11597
11598 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11599 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
11600
11601 From Elena Zannoni <ezannoni@redhat.com>
11602 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
11603 vector and floating-point parameters.
11604 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
11605 convention.
11606 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11607
1132738f
FN
116082003-03-17 Fernando Nasser <fnasser@redhat.com>
11609
11610 * MAINTAINERS: Remove my name from several maintainership roles.
11611
6dc42492
AC
116122003-03-17 Andrew Cagney <cagney@redhat.com>
11613
11614 Fix frame off-by-one bug.
11615 * frame-unwind.h (frame_this_id_ftype): Replace
11616 frame_unwind_id_ftype.
11617 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
11618 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
11619 with "prev_register".
11620 * frame-unwind.c (frame_unwind_find_by_pc): Return
11621 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
11622 comment.
11623 * dummy-frame.c (cached_find_dummy_frame): Delete function.
11624 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
11625 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
11626 (dummy_frame_unwind): Update.
11627 * sentinel-frame.c (sentinel_frame_prev_register): Replace
11628 sentinel_frame_register_unwind.
11629 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
11630 (sentinel_frame_unwinder): Update.
11631 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11632 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
11633 * frame.c (create_sentinel_frame): Update. Initialize
11634 "prologue_cache" instead of "unwind_cache".
11635 (frame_register_unwind): Call this frame's prev_register with the
11636 next frame and this frame's prologue cache.
11637 (get_prev_frame): Simplify. Always call prev frame's this_id with
11638 this frame and prev frame's prologue cache. Document that this
11639 call is shifted one to the left when compared to the
11640 frame_register_unwind call.
11641 (legacy_saved_regs_prev_register): Replace
11642 frame_saved_regs_register_unwind.
11643 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
11644 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
11645 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
11646 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
11647 (d10v_frame_unwind): Update.
11648 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
11649 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
11650 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
11651 "saved_regs" with "this_saved_regs".
11652
efd710d6
AC
116532003-03-16 Andrew Cagney <cagney@redhat.com>
11654
11655 * frame.c (frame_pop): Don't call target_store_registers. Fix
11656 problem reported by Mark Kettenis.
11657
4e259f09
MK
116582003-03-16 Mark Kettenis <kettenis@gnu.org>
11659
11660 * i386-tdep.c (i386_register_type): Renamed from
11661 i386_register_virtual_type. Adjust function signature.
11662 (i386_gdbarch_init): Set register_type instead of
11663 deprecated_max_register_raw_size,
11664 deprecated_max_register_virtual_size and register_virtual_type.
11665
055bb976
AC
116662003-03-14 Andrew Cagney <cagney@redhat.com>
11667
11668 * frame.c (get_prev_frame): When a legacy frame, always call
11669 legacy_get_prev_frame. Simplify unwind code using assumption that
11670 the unwinder is new.
11671 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
11672 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
11673 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
11674
ac2adee5
AC
116752003-03-14 Andrew Cagney <cagney@redhat.com>
11676
11677 * frame.c (get_saved_register): Delete function.
11678 * frame.h (get_saved_register): Delete declaration.
11679 * xstormy16-tdep.c: Update comment.
11680 * regcache.h: Update comments.
11681 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
11682 get_saved_register and extract_address, use
11683 frame_read_unsigned_register.
11684 (sparc_frame_saved_pc): Ditto.
11685 (sparc_get_saved_register): Instead of get_saved_register, use
11686 frame_register.
11687 (sparc_pop_frame): Ditto.
11688 * findvar.c: Update comments.
11689 (value_of_register): Call frame_register instead of
11690 get_saved_register.
11691 (value_from_register): Ditto.
11692 * config/sparc/tm-sparc.h: Update comment.
11693 * breakpoint.c: Update comment.
11694
129c1cd6
AC
116952003-03-14 Andrew Cagney <cagney@redhat.com>
11696
11697 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
11698 GET_SAVED_REGISTER.
11699 * gdbarch.h, gdbarch.c: Re-generate.
11700 * frame.h: Update comments.
11701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11702 * x86-64-tdep.c (x86_64_init_abi): Update.
11703 * sparc-tdep.c (sparc_gdbarch_init): Update.
11704 * sh-tdep.c (sh_gdbarch_init): Update.
11705 * mips-tdep.c (mips_gdbarch_init): Update.
11706 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11707 * cris-tdep.c (cris_gdbarch_init): Update.
11708 * ia64-tdep.c (ia64_gdbarch_init): Update.
11709 * frame.c (frame_register): Update.
11710 (get_saved_register): Update.
11711 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
8ffd9b1b 11712
749b82f6
AC
117132003-03-13 Andrew Cagney <cagney@redhat.com>
11714
11715 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
11716 * gdbarch.h, gdbarch.c: Regenerate.
11717 * valops.c (hand_function_call): Update comment.
11718 * stack.c (return_command): Update comment.
11719 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
11720 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
11721 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11722 * x86-64-tdep.c (x86_64_init_abi): Update.
11723 * vax-tdep.c (vax_gdbarch_init): Update.
11724 * v850-tdep.c (v850_gdbarch_init): Update.
11725 * sparc-tdep.c (sparc_gdbarch_init): Update.
11726 * sh-tdep.c (sh_gdbarch_init): Update.
11727 * s390-tdep.c (s390_gdbarch_init): Update.
11728 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11729 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11730 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11731 * mips-tdep.c (mips_gdbarch_init): Update.
11732 * mcore-tdep.c (mcore_gdbarch_init): Update.
11733 * m68k-tdep.c (m68k_gdbarch_init): Update.
11734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11735 * ia64-tdep.c (ia64_gdbarch_init): Update.
11736 * i386-tdep.c (i386_gdbarch_init): Update.
11737 * hppa-tdep.c (hppa_gdbarch_init): Update.
11738 * h8300-tdep.c (h8300_gdbarch_init): Update.
11739 * frv-tdep.c (frv_gdbarch_init): Update.
11740 * cris-tdep.c (cris_gdbarch_init): Update.
11741 * avr-tdep.c (avr_gdbarch_init): Update.
11742 * arm-tdep.c (arm_gdbarch_init): Update.
11743 * alpha-tdep.c (alpha_gdbarch_init): Update.
11744
1594fa56
AC
117452003-03-13 Andrew Cagney <cagney@redhat.com>
11746
11747 * frame.c (legacy_frame_p): New function.
11748 (get_prev_frame): Use legacy_frame_p.
11749 * frame.h (legacy_frame_p): Declare.
11750
7717fda3
V
117512003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11752
fbe586ae 11753 * MAINTAINERS (write after approval): Alphabetically
7717fda3
V
11754 listing corrected.
11755
0c67cbe9
V
117562003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11757
fbe586ae 11758 * MAINTAINERS (write after approval): Add myself.
0c67cbe9 11759
03febf99
AC
117602003-03-12 Andrew Cagney <cagney@redhat.com>
11761
11762 * frame.c (get_prev_frame): Rename the frame parameter to
11763 "this_frame".
11764 (get_next_frame, legacy_get_prev_frame): Ditto.
11765
0a1e1ca1
AC
117662003-03-12 Andrew Cagney <cagney@redhat.com>
11767
11768 * frame.c (get_current_frame): Check target_has_registers before
11769 checking target_has_stack.
11770 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
11771 instead of deprecated_selected_frame.
11772 * findvar.c (value_of_register): Pass "frame", not
11773 deprecated_selected_frame, to value_of_builtin_reg.
11774
a66a9c23
AC
117752003-03-12 Andrew Cagney <cagney@redhat.com>
11776
11777 * regcache.c (regcache_cooked_write_signed): New function.
11778 (regcache_cooked_write_unsigned): New function.
11779 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
11780 (regcache_cooked_read_signed): Fix regnum in range assertion.
11781 * regcache.h (regcache_cooked_write_signed): Declare.
11782 (regcache_cooked_write_unsigned): Declare.
11783
8bedc050
AC
117842003-03-12 Andrew Cagney <cagney@redhat.com>
11785
11786 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11787 * gdbarch.h, gdbarch.c: Re-generate.
11788 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11789 * x86-64-tdep.h: Update.
11790 * x86-64-tdep.c (x86_64_init_abi): Update.
11791 * v850-tdep.c (v850_gdbarch_init): Update.
11792 * sparc-tdep.c (sparc_gdbarch_init): Update.
11793 * sh-tdep.c (sh_gdbarch_init): Update.
11794 * s390-tdep.c (s390_gdbarch_init): Update.
11795 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11796 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11797 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11798 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11799 * mips-tdep.c (mips_gdbarch_init): Update.
11800 * mcore-tdep.c (mcore_gdbarch_init): Update.
11801 * m68k-tdep.c (m68k_gdbarch_init): Update.
11802 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11803 * ia64-tdep.c (ia64_gdbarch_init): Update.
11804 * i386-tdep.c (i386_gdbarch_init): Update.
11805 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11806 * hppa-tdep.c (hppa_gdbarch_init): Update.
11807 * h8300-tdep.c (h8300_gdbarch_init): Update.
11808 * frv-tdep.c (frv_gdbarch_init): Update.
11809 * cris-tdep.c (cris_gdbarch_init): Update.
11810 * avr-tdep.c (avr_gdbarch_init): Update.
11811 * arm-tdep.c (arm_gdbarch_init): Update.
11812 * alpha-tdep.c (alpha_gdbarch_init): Update.
11813 * sh-tdep.c (sh_init_extra_frame_info): Update.
11814 (sh64_init_extra_frame_info): Update.
11815 * ns32knbsd-nat.c (frame_num_args): Update.
11816 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11817 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11818 (xstormy16_frame_chain_valid): Update.
11819 * vax-tdep.c (vax_saved_pc_after_call): Update.
11820 * v850-tdep.c (v850_frame_chain): Update.
11821 (v850_pop_frame): Update.
11822 (v850_init_extra_frame_info): Update.
11823 * sparc-tdep.c (setup_arbitrary_frame): Update.
11824 * ns32k-tdep.c (umax_frame_num_args): Update.
11825 * s390-tdep.c (s390_pop_frame_regular): Update.
11826 * mn10300-tdep.c (mn10300_frame_chain): Update.
11827 (mn10300_pop_frame_regular): Update.
11828 (mn10300_init_extra_frame_info): Update.
11829 * mips-tdep.c (mips_init_frame_pc_first): Update.
11830 (mips_frame_chain): Update.
11831 (mips_pop_frame): Update.
11832 * mcore-tdep.c (mcore_frame_chain): Update.
11833 (mcore_pop_frame): Update.
11834 (mcore_init_extra_frame_info): Update.
11835 * arch-utils.c (init_frame_pc_default): Update.
11836 * m68k-tdep.c (isi_frame_num_args): Update.
11837 (delta68_frame_num_args): Update.
11838 (news_frame_num_args): Update.
11839 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11840 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11841 (alpha_frame_chain): Update.
11842 (alpha_pop_frame): Update.
11843 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11844 (hppa_init_extra_frame_info): Update.
11845 (hppa_frame_chain): Update.
11846 (hppa_frame_chain_valid): Update.
11847 * cris-tdep.c (cris_init_extra_frame_info): Update.
11848 * avr-tdep.c (avr_init_extra_frame_info): Update.
11849 * arm-tdep.c (arm_frame_chain_valid): Update.
11850 (arm_init_extra_frame_info): Update.
11851 (arm_pop_frame): Update.
11852 * frame.c (frame_pc_unwind): Update.
11853 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11854 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11855 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
11856 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
11857 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
11858 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 11859
7a25a7c1
AC
118602003-03-12 Andrew Cagney <cagney@redhat.com>
11861
11862 Eliminate the need for POP_FRAME.
11863 * frame.c (do_frame_unwind_register): New function.
11864 (frame_pop): When no POP_FRAME, pop the frame using register
11865 unwind and a scratch regcache.
11866 (frame_saved_regs_pop): Delete function.
11867 (trad_frame_unwinder): Update.
11868 * d10v-tdep.c (d10v_frame_pop): Delete function.
11869 (d10v_frame_unwind): Update.
11870 * sentinel-frame.c (sentinel_frame_pop): Delete function.
11871 (sentinel_frame_unwinder): Update.
11872 * dummy-frame.c (dummy_frame_pop): Delete function.
11873 (dummy_frame_unwind): Update.
11874 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
11875 (struct frame_unwind): Update.
11876
2f38ef89
KB
118772003-03-11 Kevin Buettner <kevinb@redhat.com>
11878
11879 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
11880 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
11881 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
11882 Do range checks on register number obtained from debugging info.
11883 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
11884 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
11885 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
11886 mapping function.
11887 (do_fp_register_row): Fix typo which caused double type to be
11888 used when attempting to unpack a float.
11889
552f4abf
JB
118902003-03-11 J. Brobecker <brobecker@gnat.com>
11891
11892 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11893
e0d2ae16
AC
118942003-03-11 Andrew Cagney <cagney@redhat.com>
11895
11896 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11897 frame. Problem found by Corinna Vinschen.
11898
ddbfdd06
PM
118992003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11900
11901 * doublest.c (floatformat_from_length): Accept also
11902 the real size of 'long double' type.
11903
088b2ddc 119042003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 11905
088b2ddc 11906 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
11907 * breakpoint.c (bpstat_copy): Copy the command lines as well
11908 as the old value, to match what is freed in bpstat_clear.
11909
f56f77c1
DC
119102003-03-10 David Carlton <carlton@math.stanford.edu>
11911
11912 * minsyms.c (add_minsym_to_hash_table): Replace
11913 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
11914 (compare_minimal_symbols, compact_minimal_symbols)
11915 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
11916 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
11917 of DEPRECATED_SYMBOL_MATCHES_NAME.
11918 (lookup_minimal_symbol_solib_trampoline): Ditto.
11919
5602984a
AC
119202003-03-10 Andrew Cagney <cagney@redhat.com>
11921
11922 * regcache.h (regcache_cooked_read_ftype): Define.
11923 (regcache_save, regcache_restore): Add a cooked_read parameter.
11924 * regcache.c (regcache_save, regcache_restore): Update.
11925 (do_cooked_read): New function.
11926 (regcache_cpy): Pass do_cooked_read to regcache_save and
11927 regcache_restore.
11928
8bedc050
AC
119292003-03-10 Andrew Cagney <cagney@redhat.com>
11930
11931 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
11932 * gdbarch.h, gdbarch.c: Re-generate.
11933 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
11934 * x86-64-tdep.h: Update.
11935 * x86-64-tdep.c (x86_64_init_abi): Update.
11936 * v850-tdep.c (v850_gdbarch_init): Update.
11937 * sparc-tdep.c (sparc_gdbarch_init): Update.
11938 * sh-tdep.c (sh_gdbarch_init): Update.
11939 * s390-tdep.c (s390_gdbarch_init): Update.
11940 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
11941 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
11942 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
11943 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
11944 * mips-tdep.c (mips_gdbarch_init): Update.
11945 * mcore-tdep.c (mcore_gdbarch_init): Update.
11946 * m68k-tdep.c (m68k_gdbarch_init): Update.
11947 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
11948 * ia64-tdep.c (ia64_gdbarch_init): Update.
11949 * i386-tdep.c (i386_gdbarch_init): Update.
11950 * i386-interix-tdep.c (i386_interix_init_abi): Update.
11951 * hppa-tdep.c (hppa_gdbarch_init): Update.
11952 * h8300-tdep.c (h8300_gdbarch_init): Update.
11953 * frv-tdep.c (frv_gdbarch_init): Update.
11954 * cris-tdep.c (cris_gdbarch_init): Update.
11955 * avr-tdep.c (avr_gdbarch_init): Update.
11956 * arm-tdep.c (arm_gdbarch_init): Update.
11957 * alpha-tdep.c (alpha_gdbarch_init): Update.
11958 * sh-tdep.c (sh_init_extra_frame_info): Update.
11959 (sh64_init_extra_frame_info): Update.
11960 * ns32knbsd-nat.c (frame_num_args): Update.
11961 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
11962 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
11963 (xstormy16_frame_chain_valid): Update.
11964 * vax-tdep.c (vax_saved_pc_after_call): Update.
11965 * v850-tdep.c (v850_frame_chain): Update.
11966 (v850_pop_frame): Update.
11967 (v850_init_extra_frame_info): Update.
11968 * sparc-tdep.c (setup_arbitrary_frame): Update.
11969 * ns32k-tdep.c (umax_frame_num_args): Update.
11970 * s390-tdep.c (s390_pop_frame_regular): Update.
11971 * mn10300-tdep.c (mn10300_frame_chain): Update.
11972 (mn10300_pop_frame_regular): Update.
11973 (mn10300_init_extra_frame_info): Update.
11974 * mips-tdep.c (mips_init_frame_pc_first): Update.
11975 (mips_frame_chain): Update.
11976 (mips_pop_frame): Update.
11977 * mcore-tdep.c (mcore_frame_chain): Update.
11978 (mcore_pop_frame): Update.
11979 (mcore_init_extra_frame_info): Update.
11980 * arch-utils.c (init_frame_pc_default): Update.
11981 * m68k-tdep.c (isi_frame_num_args): Update.
11982 (delta68_frame_num_args): Update.
11983 (news_frame_num_args): Update.
11984 * ia64-tdep.c (ia64_pop_frame_regular): Update.
11985 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
11986 (alpha_frame_chain): Update.
11987 (alpha_pop_frame): Update.
11988 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
11989 (hppa_init_extra_frame_info): Update.
11990 (hppa_frame_chain): Update.
11991 (hppa_frame_chain_valid): Update.
11992 * cris-tdep.c (cris_init_extra_frame_info): Update.
11993 * avr-tdep.c (avr_init_extra_frame_info): Update.
11994 * arm-tdep.c (arm_frame_chain_valid): Update.
11995 (arm_init_extra_frame_info): Update.
11996 (arm_pop_frame): Update.
11997 * frame.c (frame_pc_unwind): Update.
11998 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
11999 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12000 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
12001 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
12002 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
12003 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
8ffd9b1b 12004
12cc2063
AC
120052003-03-10 Andrew Cagney <cagney@redhat.com>
12006
12007 * gdbarch.sh (gdbarch_unwind_pc): New method.
12008 * gdbarch.h, gdbarch.c: Regenerate.
12009 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
12010 but use read_pc and FRAME_SAVED_PC as fall backs.
12011 (frame_saved_regs_pc_unwind): Delete function.
12012 (trad_frame_unwinder): Update.
12013 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
12014 (struct frame_unwind): Update.
12015 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
12016 (dummy_frame_unwind): Update.
12017 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
12018 (sentinel_frame_unwinder): Update.
12019 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
12020 (d10v_frame_unwind): Update.
12021 (d10v_unwind_pc): New function.
12022 (d10v_gdbarch_init): Set unwind_pc.
12023
ef840a37
AC
120242003-03-10 Andrew Cagney <cagney@redhat.com>
12025
a2ce2e56
AC
12026 * gdbarch.h: Re-generate.
12027
ef840a37
AC
12028 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12029 PC.
12030 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12031 the PC register.
12032
08f3424b
MK
120332003-03-08 Mark Kettenis <kettenis@gnu.org>
12034
12035 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12036
1248ede2
AC
120372003-03-08 Andrew Cagney <cagney@redhat.com>
12038
12039 * cli-out.c: Update copyright.
12040 (cli_out_data): Define typedef. Use instead of ui_out_data.
12041
f49bacc8
AC
120422003-03-08 Andrew Cagney <cagney@redhat.com>
12043
12044 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12045 the result.
12046
9b05f993
AC
120472003-03-07 Andrew Cagney <cagney@redhat.com>
12048
12049 * gdbarch.sh: Don't generate two macro definitions when an
12050 undefined macro taking no arguments.
12051 * gdbarch.h: Regenerate.
8ffd9b1b 12052
166f4c7b
ML
120532002-03-07 Michal Ludvig <mludvig@suse.cz>
12054
12055 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
12056 (x86_64_unwind_dummy_id): New functions.
12057 (x86_64_init_abi): Register these two new functions.
12058
6d686a84
ML
120592003-03-07 Michal Ludvig <mludvig@suse.cz>
12060
12061 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
8ffd9b1b 12062 (x86_64_skip_prologue): Move prologue detection to
6d686a84
ML
12063 separate function.
12064 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12065
6314f104
AC
120662003-03-05 Andrew Cagney <cagney@redhat.com>
12067
12068 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
12069 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
12070 * frame.c (get_prev_frame): Restructure the frame ID unwind code
12071 to use unwind_dummy_id when a dummy frame.
12072 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
12073 predicate.
12074 * gdbarch.h, gdbarch.c: Regneerate.
8ffd9b1b 12075
ceea5145
AC
120762003-03-05 Andrew Cagney <cagney@redhat.com>
12077
12078 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
12079 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
12080 Do not use d10v_read_sp or d10v_read_fp when obtaining register
12081 values.
12082
0d843116
AC
120832003-03-05 Andrew Cagney <cagney@redhat.com>
12084
12085 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
12086 (struct d10v_unwind_cache): Delete field "frameless". Replace
12087 "next_addr" with "sp_offset". Add "r11_offset".
12088 (d10v_frame_unwind_cache): Update.
12089 (prologue_find_regs): Update. When "mv r11, sp", save the
12090 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
12091 RN was saved in r11_offset.
12092
b2579786
AC
120932003-03-05 Andrew Cagney <cagney@redhat.com>
12094
12095 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12096 cached PC value in the next frame.
12097
218e5956
AC
120982003-03-05 Andrew Cagney <cagney@redhat.com>
12099
12100 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
12101 "id_unwind_cache" with "id".
12102 (frame_id_unwind): Delete declaration.
12103 * frame.c (frame_id_unwind): Delete function.
12104 (get_prev_frame): Call the frame id unwind method directly. Store
12105 the returned next frame's ID value in NEXT_FRAME. Note that there
12106 is a problem with the wrong unwind ID being called with the wrong
12107 unwind cache.
12108
ed363b1b
DJ
121092003-03-05 Daniel Jacobowitz <drow@mvista.com>
12110
12111 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12112
fe1f4a5e
DJ
121132003-03-05 James Ingham <jingham@apple.com>
12114 Daniel Jacobowitz <drow@mvista.com>
12115
12116 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
12117 (auto_cp_abi): New variable.
12118 (current_cp_abi, num_cp_abis): Make static.
12119 (CP_ABI_MAX): Define.
12120 (cp_abis): Turn into an array.
12121 (value_virtual_fn_field): Fix formatting.
12122 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
12123 takes a pointer.
12124 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
12125 (list_cp_abis, _initialize_cp_abi): New functions.
12126 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
12127 declarations for cp_abis, num_cp_abis, current_cp_abi, and
12128 switch_to_cp_abi. Update prototype for register_cp_abi.
12129 * Makefile.in (cp-abi.o): Update dependencies.
12130 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
12131 instead of switch_to_cp_abi.
12132 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
12133 register_cp_abi.
12134 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12135 register_cp_abi.
12136 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12137
e4adbba9
DJ
121382003-03-05 Daniel Jacobowitz <drow@mvista.com>
12139
12140 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
12141 * dwarf2loc.c: Include "regcache.h".
12142 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
12143 register_size.
12144 * Makefile.in (dwarf2loc.o): Update dependencies.
12145
91ccbfc1
TR
121462003-03-04 Theodore A. Roth <troth@openavr.org>
12147
12148 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
12149 number of io registers reported by remote target is not a multiple of
12150 step.
12151
3d4e8fd2
DC
121522003-03-04 David Carlton <carlton@math.stanford.edu>
12153
12154 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
12155 (lookup_symbol_aux_psymtabs): Update call to
12156 lookup_partial_symbol.
12157 (lookup_transparent_type, find_main_psymtab)
12158 (make_symbol_overload_list): Ditto.
12159
ed42d87b
KH
121602003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12161
12162 * MAINTAINERS (Write after approval): Update my email address.
12163
a0ed5532
AC
121642003-03-03 Andrew Cagney <cagney@redhat.com>
12165
12166 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
12167 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
12168 predicate. Replace MAX_REGISTER_RAW_SIZE.
12169 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
12170 MAX_REGISTER_VIRTUAL_SIZE.
12171 * regcache.c (legacy_max_register_raw_size): New function.
12172 (legacy_max_register_virtual_size): New function.
12173 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
12174 (MAX_REGISTER_RAW_SIZE): Define.
12175 (legacy_max_register_raw_size): Declare.
12176 (legacy_max_register_virtual_size): Declare.
12177 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12178 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
12179 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12180 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12181 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
12182 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
12183 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12184 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12185 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
12186 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12187 * vax-tdep.c (vax_gdbarch_init): Update.
12188 * v850-tdep.c (v850_gdbarch_init): Update.
12189 * sparc-tdep.c (sparc_gdbarch_init): Update.
12190 * sh-tdep.c (sh_gdbarch_init): Update.
12191 * s390-tdep.c (s390_gdbarch_init): Update.
12192 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12193 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12194 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12195 * mips-tdep.c (mips_gdbarch_init): Update.
12196 * mcore-tdep.c (mcore_gdbarch_init): Update.
12197 * m68k-tdep.c (m68k_gdbarch_init): Update.
12198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12199 * ia64-tdep.c (ia64_gdbarch_init): Update.
12200 * i386-tdep.c (i386_gdbarch_init): Update.
12201 * hppa-tdep.c (hppa_gdbarch_init): Update.
12202 * h8300-tdep.c (h8300_gdbarch_init): Update.
12203 * frv-tdep.c (frv_gdbarch_init): Update.
12204 * cris-tdep.c (cris_gdbarch_init): Update.
12205 * avr-tdep.c (avr_gdbarch_init): Update.
12206 * arm-tdep.c (arm_gdbarch_init): Update.
12207 * alpha-tdep.c (alpha_gdbarch_init): Update.
12208 * d10v-tdep.c (d10v_gdbarch_init): Do not set
12209 max_register_raw_size or max_register_virtual_size.
12210
8e437497
DC
122112003-03-03 David Carlton <carlton@math.stanford.edu>
12212
12213 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
12214 SYMBOL_MATCHES_NAME, add comment.
12215 (SYMBOL_MATCHES_NATURAL_NAME): New.
12216 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
12217 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
12218 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
12219 * symtab.c (lookup_partial_symbol): Use
12220 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
12221 unhelpful comment.
12222 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12223 SYMBOL_MATCHES_NAME.
12224 Fix for PR c++/33.
12225
25120b0d
DC
122262003-03-03 David Carlton <carlton@math.stanford.edu>
12227
12228 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
12229 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
12230 by regexp matching against SYMBOL_NATURAL_NAME.
12231
78a11fb4
DC
122322003-03-03 David Carlton <carlton@math.stanford.edu>
12233
12234 * linespec.c (find_method): Extract code into collect_methods.
12235 (collect_methods): New.
12236
645dd519
MK
122372003-03-02 Mark Kettenis <kettenis@gnu.org>
12238
b4700d91
MK
12239 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12240 get_frame_base.
12241
645dd519
MK
12242 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12243 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12244
0aa7e1aa
SC
122452003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12246
8ffd9b1b 12247 * arch-utils.c (generic_register_byte): Fix to use the loop index
0aa7e1aa
SC
12248 and not regnum when summing the size of all registers up to regnum.
12249
f30ee0bc
AC
122502003-03-01 Andrew Cagney <cagney@redhat.com>
12251
12252 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
12253 FRAME_INIT_SAVED_REGS.
12254 * gdbarch.h, gdbarch.c: Regenerate.
12255 * stack.c (frame_info): Update.
12256 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
12257 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
12258 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
12259 * ns32k-tdep.c (ns32k_pop_frame): Update.
12260 * mips-tdep.c (mips_pop_frame): Update.
12261 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
12262 * ia64-tdep.c (ia64_frame_chain): Update.
12263 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
12264 (ia64_frameless_function_invocation): Update.
12265 (ia64_init_extra_frame_info): Update.
12266 (ia64_pop_frame_regular): Update.
12267 * frame.h (struct frame_info): Update comment.
12268 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
12269 * frame.c (frame_saved_regs_register_unwind): Update.
12270 (frame_saved_regs_register_unwind): Update.
12271 (deprecated_generic_get_saved_register): Update.
12272 * cris-tdep.c: Update comment.
12273 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
12274 Rename macro.
12275 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
12276 * x86-64-tdep.c (x86_64_init_abi): Update.
12277 * vax-tdep.c (vax_gdbarch_init): Update.
12278 * v850-tdep.c (v850_gdbarch_init): Update.
12279 * sparc-tdep.c (sparc_gdbarch_init): Update.
12280 * sh-tdep.c (sh_gdbarch_init): Update.
12281 * s390-tdep.c (s390_gdbarch_init): Update.
12282 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
12283 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
12284 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12285 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
12286 * mips-tdep.c (mips_gdbarch_init): Update.
12287 * mcore-tdep.c (mcore_gdbarch_init): Update.
12288 * m68k-tdep.c (m68k_gdbarch_init): Update.
12289 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
12290 * ia64-tdep.c (ia64_gdbarch_init): Update.
12291 * i386-tdep.c (i386_gdbarch_init): Update.
12292 * frv-tdep.c (frv_gdbarch_init): Update.
12293 * avr-tdep.c (avr_gdbarch_init): Update.
12294 * arm-tdep.c (arm_gdbarch_init): Update.
12295 * alpha-tdep.c (alpha_gdbarch_init): Update.
8ffd9b1b 12296
42fa7c0f
AC
122972003-03-01 Andrew Cagney <cagney@redhat.com>
12298
12299 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12300 option enum and switch. When no windows, set the interpreter to
12301 INTERP_CONSOLE.
8ffd9b1b 12302
49c7e338
AC
123032003-03-01 Andrew Cagney <cagney@redhat.com>
12304
12305 * main.c (captured_main): Replace magic option characters with an
12306 enum.
12307
e9582e71
AC
123082003-03-01 Andrew Cagney <cagney@redhat.com>
12309
12310 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
12311 INIT_EXTRA_FRAME_INFO.
12312 * gdbarch.h, gdbarch.c: Regenerate.
12313 * arm-tdep.c: Update comments.
12314 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
12315 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
12316 * frame.h, avr-tdep.c: Ditto.
12317 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
12318 (create_new_frame, legacy_get_prev_frame): Ditto.
12319 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12320 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
12321 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
12322 deprecated_init_extra_frame_info instead of init_extra_frame_info.
12323 * x86-64-tdep.c (x86_64_init_abi): Ditto.
12324 * v850-tdep.c (v850_gdbarch_init): Ditto.
12325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
12326 * sh-tdep.c (sh_gdbarch_init): Ditto.
12327 * s390-tdep.c (s390_gdbarch_init): Ditto.
12328 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
12329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12330 * mips-tdep.c (mips_gdbarch_init): Ditto.
12331 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12332 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12333 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12334 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
12335 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
12336 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12337 * frv-tdep.c (frv_gdbarch_init): Ditto.
12338 * cris-tdep.c (cris_gdbarch_init): Ditto.
12339 * avr-tdep.c (avr_gdbarch_init): Ditto.
12340 * arm-tdep.c (arm_gdbarch_init): Ditto.
12341 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
12342 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12343
35cac7cf
AC
123442003-03-01 Andrew Cagney <cagney@redhat.com>
12345
12346 * gdbarch.sh (register_type): New function with predicate.
12347 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
12348 * gdbarch.h, gdbarch.c: Re-generate.
12349 * arch-utils.c (generic_register_byte): Use generic_register_size.
12350 (generic_register_size): When available, use
12351 gdbarch_register_type.
12352 * regcache.c (init_regcache_descr): When available, initialize the
12353 register type array using gdbarch_register_type. If the
12354 architecture supplies gdbarch_register_type, do not use the legacy
12355 regcache layout.
12356 * d10v-tdep.c (d10v_register_type): Replace
12357 d10v_register_virtual_type.
12358 (d10v_gdbarch_init): Set register_type instead of
12359 register_virtual_type.
12360
7b83296f
AC
123612003-03-01 Andrew Cagney <cagney@redhat.com>
12362
12363 * Makefile.in (ax-gdb.o): Update dependencies.
12364 * ax-gdb.c: Include "regcache.h".
12365 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
12366 * findvar.c (value_of_register): Ditto.
12367 * infcmd.c (default_print_registers_info): Ditto.
12368
eadc1c87
MK
123692003-03-01 Mark Kettenis <kettenis@gnu.org>
12370
12371 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12372 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12373
14143612
MK
123742003-03-01 Mark Kettenis <kettenis@gnu.org>
12375
12376 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12377 of STREQ.
12378
a55cc764
DJ
123792003-02-28 Daniel Jacobowitz <drow@mvista.com>
12380
12381 * Makefile.in (dwarf2loc.o): Update dependencies.
12382 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
12383 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
12384 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
12385 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
12386 (locexpr_tracepoint_var_ref): New function.
12387 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
12388
08a617da
AC
123892003-02-28 Andrew Cagney <cagney@redhat.com>
12390
12391 * regcache.c (register_size): New function.
12392 * regcache.h (register_size): Declare
12393 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
12394 max_register_size instead of MAX_REGISTER_RAW_SIZE.
12395
4224873a
DC
123962003-02-28 David Carlton <carlton@math.stanford.edu>
12397
12398 * linespec.c (decode_compound): Extract code into find_method.
12399 (find_method): New.
12400
ccdc5d7f
JB
124012003-02-28 J. Brobecker <brobecker@gnat.com>
12402
12403 * Makefile.in: Add rules to build and link in observer.o.
12404
974e8ced
JB
124052003-02-27 J. Brobecker <brobecker@gnat.com>
12406
12407 * observer.c: Minor comments edits.
12408
7a28f973
JB
124092003-02-27 J. Brobecker <brobecker@gnat.com>
12410
12411 * observer.h, observer.c: New file.
12412
27cddce2
AC
124132003-02-27 Andrew Cagney <cagney@redhat.com>
12414
12415 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12416
b94a41a1
SC
124172003-02-27 Stephane Carrez <stcarrez@nerim.fr>
12418
12419 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
12420 (M6812_OP_STS_EXT): Likewise.
12421 (m6811_prologue): Use the above to recognize prologue.
12422 (m6812_prologue): Likewise.
12423
c8be8951
DC
124242003-02-27 David Carlton <carlton@math.stanford.edu>
12425
12426 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12427 SYMBOL_PRINT_NAME.
12428 (compare_psymbols): Ditto.
12429 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12430
d05bb1fc
MS
124312003-02-27 Michael Snyder <msnyder@redhat.com>
12432
4e845cd3
MS
12433 * f-lang.c (build_fortran_types): New function.
12434 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
12435 * doublest.c (extract_floating): Fix warning text.
12436
f3824013
AC
124372003-02-27 Andrew Cagney <cagney@redhat.com>
12438
12439 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
12440 predicate. Replaces PUSH_DUMMY_FRAME.
12441 * gdbarch.h, gdbarch.c: Regnerate.
12442 * valops.c (hand_function_call): Update. Call
12443 generic_push_dummy_frame directly.
12444 * vax-tdep.c (vax_gdbarch_init): Update.
12445 * sparc-tdep.c (sparc_gdbarch_init): Update.
12446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
12447 * m68k-tdep.c (m68k_gdbarch_init): Update.
12448 * hppa-tdep.c (hppa_gdbarch_init): Update.
12449 * alpha-tdep.c (alpha_gdbarch_init): Update.
12450 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12451 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
12452 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
12453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
12454 push_dummy_frame to generic_push_dummy_frame.
12455 * v850-tdep.c (v850_gdbarch_init): Ditto.
12456 * sh-tdep.c (sh_gdbarch_init): Ditto.
12457 * s390-tdep.c (s390_gdbarch_init): Ditto.
12458 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
12459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
12460 * mips-tdep.c (mips_gdbarch_init): Ditto.
12461 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
12462 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
12463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
12464 * i386-tdep.c (i386_gdbarch_init): Ditto.
12465 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
12466 * frv-tdep.c (frv_gdbarch_init): Ditto.
12467 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
12468 * cris-tdep.c (cris_gdbarch_init): Ditto.
12469 * avr-tdep.c (avr_gdbarch_init): Ditto.
12470 * arm-tdep.c (arm_gdbarch_init): Ditto.
8ffd9b1b 12471
ad188201
KB
124722003-02-26 Kevin Buettner <kevinb@redhat.com>
12473
12474 * mips-tdep.c (show_mips_abi): New function.
12475 (_initialize_mips_tdep): Use show_mips_abi() to implement the
12476 command ``show mips abi''.
12477
6b37567a 124782003-02-26 Jeff Johnston <jjohnstn@redhat.com>
8ffd9b1b 12479
6b37567a 12480 From Elena Zannoni <ezannoni@redhat.com>
8ffd9b1b 12481 * dbxread.c (process_one_symbol): Only record line 0 if one or
6b37567a
JJ
12482 more sline entries have been seen for the function.
12483
d3e0a5bf
MC
124842003-02-26 Michael Chastain <mec@shout.net>
12485
12486 * configure: Regenerate with autoconf 000227.
12487
18972eea
MC
124882003-02-26 Michael Chastain <mec@shout.net>
12489
12490 Close PR build/660.
12491 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
12492 for old libc5/glibc.
12493 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
12494
0bbde931
KW
124952003-02-26 Kris Warkentin <kewarken@qnx.com>
12496
12497 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12498 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12499
27ca5dad
MC
125002003-02-26 Michael Chastain <mec@shout.net>
12501
12502 * configure.in: New variable HAVE_UINTPTR_T.
12503 * configure, config.in: Regenerated.
12504
6f88d630
DJ
125052003-02-26 Daniel Jacobowitz <drow@mvista.com>
12506
12507 Fix PR build/1097.
12508 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12509
b14185ce
AC
125102003-02-25 Andrew Cagney <cagney@redhat.com>
12511
12512 * frame.c (get_prev_frame): Add comment on check for
12513 inside_entry_func. Only check for inside_entry_file when not a
12514 dummy and not a sentinel. Check that the new frame is not inner
12515 to the old frame.
12516
ac2bd0a9
AC
125172003-02-25 Andrew Cagney <cagney@redhat.com>
12518
12519 * frame.c (frame_debug): New variable.
12520 (_initialize_frame): Add "set/show debug frame" command.
12521 (get_prev_frame): When frame_debug, print reason why unwind
12522 failed.
12523
b18a0fd2
MC
125242003-02-25 Michael Chastain <mec@shout.net>
12525
12526 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12527 to avoid uintptr_t definition problems.
12528
22abf04a
DC
125292003-02-25 David Carlton <carlton@math.stanford.edu>
12530
12531 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
12532 (SYMBOL_LINKAGE_NAME): Ditto.
12533 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
12534 SYMBOL_LINKAGE_NAME.
12535 (struct general_symbol_info): Expand comment.
12536 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
12537 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
12538 (SYMBOL_MATCHES_REGEXP): Ditto.
12539 * symtab.c (symbol_natural_name): New function.
12540 * objfiles.h: Replace all uses of SYMBOL_NAME by
12541 DEPRECATED_SYMBOL_NAME.
12542 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
12543 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
12544 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
12545 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
12546 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
12547 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
12548 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
12549 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
12550 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
12551 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
12552 * ada-exp.y: Ditto.
12553 * ada-exp.y: Update copyright.
12554 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
12555 * cp-valprint.c: Ditto.
12556
1a5848f6
JJ
125572003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12558
12559 * infptrace.c (detach): Do not flag error if ptrace detach fails
12560 and errno is set to ESRCH.
12561
7343d46a
AC
125622003-02-24 Andrew Cagney <cagney@redhat.com>
12563
12564 * infptrace.c (udot_info): Change type of udot_off to long. Use
12565 paddr when printing udot_off's value.
12566
49fa1dc2
DC
125672003-02-24 David Carlton <carlton@math.stanford.edu>
12568
12569 * symtab.c (make_symbol_overload_list): Only read in partial
12570 symtabs containing a matching partial symbol.
12571
0fe19209
DC
125722003-02-24 David Carlton <carlton@math.stanford.edu>
12573
12574 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
12575 do the comparison, not strcmp.
12576 * symfile.c (compare_psymbols): Ditto.
12577 * defs.h: Declare strcmp_iw_ordered.
12578 * utils.c (strcmp_iw_ordered): New function.
12579
8e3ee7b5
JB
125802003-02-24 Jim Blandy <jimb@redhat.com>
12581
12582 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12583 support, shared libs): Remove my name from here, to better reflect
12584 reality.
12585
7df1a324
KW
125862003-02-24 Kris Warkentin <kewarken@qnx.com>
12587
12588 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
12589 (target_ops): Add to_have_continuable_watchpoint.
12590 * target.c (update_current_target): Add INHERIT line for
12591 to_have_continuable_watchpoint.
12592 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
12593 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
12594 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
12595 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
12596
d1c76907
EZ
125972003-02-24 Elena Zannoni <ezannoni@redhat.com>
12598
12599 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12600 maintainership.
12601
2610b0bf
KW
126022003-02-24 Kris Warkentin <kewarken@qnx.com>
12603
f46169db
KW
12604 * solib.c (solib_open): Call target defined search function after
12605 failing with solib-search-path.
12606 * solist.h (target_so_ops): Add find_and_open_solib function hook and
12607 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 12608
9a3c34fe
KW
126092003-02-24 Kris Warkentin <kewarken@qnx.com>
12610
f46169db 12611 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 12612
2417dd25
SC
126132003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12614
12615 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12616
b631436b
SC
126172003-02-22 Stephane Carrez <stcarrez@nerim.fr>
12618
12619 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
12620 (m68hc11_add_reggroups): New function.
12621 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
12622 (m68hc11_gdbarch_init): Install the reggroups.
12623 (_initialize_m68hc11_tdep): Initialize them.
12624
0aa8c1e4
JW
126252003-02-21 James E Wilson <wilson@tuliptree.org>
12626
12627 * MAINTAINERS: Update my email address.
12628
50ceaba5
DC
126292003-02-21 David Carlton <carlton@math.stanford.edu>
12630
12631 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12632
4c2df51b
DJ
126332003-02-21 Daniel Jacobowitz <drow@mvista.com>
12634
12635 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12636 * symtab.h: Add opaque declarations of struct axs_value and
12637 struct agent_expr.
12638 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
12639 (struct location_funcs): New type.
12640 (struct symbol): Add "loc" to aux_value.
12641 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
12642 * dwarf2read.c: Include "dwarf2expr.h".
12643 (dwarf2_symbol_mark_computed): New function.
12644 (read_func_scope): Use it.
12645 (var_decode_location): New function.
12646 (new_symbol): Use it.
12647 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
12648
12649 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
12650 (dwarf2expr_h, dwarf2loc_h): New variables.
12651 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
12652 (dwarf2expr.o, dwarf2loc.o): New rules.
12653 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
12654 * buildsym.c (finish_block): Handle LOC_COMPUTED and
12655 LOC_COMPUTED_ARG.
12656 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
12657 * m2-exp.y (yylex): Likewise.
12658 * printcmd.c (address_info, print_frame_args): Likewise.
12659 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
12660 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
12661 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
12662 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
12663 * symtab.c (lookup_block_symbol): Likewise.
12664
5784d15e
AF
126652003-02-20 Adam Fedor <fedor@gnu.org>
12666
12667 * symtab.h: Remove objc_specific struct
12668 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
12669 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
12670 Have language_objc use cplus_specific struct.
12671
d4cad8db
TT
126722003-02-20 Tom Tromey <tromey@redhat.com>
12673
12674 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12675 TYPE_NAME, when printing a String value. PR java/1075.
12676
2f9a90b4
AF
126772003-02-20 Adam Fedor <fedor@gnu.org>
12678
d38074a8 12679 * objc-lang.h (find_methods): Remove declaration.
fbe586ae 12680 * objc-lang.c (find_methods): Make static.
2f9a90b4 12681
6f17862b
CF
126822003-02-20 Christopher Faylor <cgf@redhat.com>
12683
12684 * win32-nat.c (get_image_name): Check return value from
12685 ReadProcessMemory.
12686 (child_xfer_memory): Ditto.
12687
715d1656
AO
126882003-02-20 Alexandre Oliva <aoliva@redhat.com>
12689
12690 * configure.in (TARGET_SYSTEM_ROOT): Set default to
12691 ${exec_prefix}/${target_alias}/sys-root. Match explicit
12692 '${exec_prefix}' (in addition to the expansion thereof) as
12693 relocatable.
12694 * configure: Rebuilt.
12695
b1262a02
DC
126962003-02-20 David Carlton <carlton@math.stanford.edu>
12697
12698 * symtab.c (search_symbols): Revert the search_symbols part of my
12699 2002-12-23 patch. Add comment.
12700
7134143f
DJ
127012002-02-20 Daniel Jacobowitz <drow@mvista.com>
12702
12703 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
12704 * dbxread.c (elfstab_build_psymtabs): Don't call
12705 install_minimal_symbols.
12706 (stabsect_build_psymtabs): Likewise.
12707 * elfread.c (elf_symfile_read): Call install_minimal_symbols
12708 earlier.
12709 * somread.c (som_symfile_read): Call install_minimal_symbols
12710 and do_cleanups earlier.
12711 * nlmread.c (nlm_symfile_read): Likewise.
12712 * mdebugread.c (elfmdebug_build_psymtabs): Call
12713 install_minimal_symbols and make appropriate cleanups.
12714
cf466558
KB
127152003-02-20 Kevin Buettner <kevinb@redhat.com>
12716
12717 * solib.c (reload_shared_libraries): New function.
12718 (_initialize_solib): Add callbacks for ``set solib-search-path''
12719 and ``set solib-absolute-prefix''.
12720
de5ad195
DC
127212003-02-20 David Carlton <carlton@math.stanford.edu>
12722
12723 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
12724 expand comment.
12725 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
12726 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
12727 * ada-typeprint.c (ada_typedef_print): Ditto.
12728 * ax-gdb.c (gen_var_ref): Ditto.
12729 * breakpoint.c (print_one_breakpoint): Ditto.
12730 * buildsym.c (finish_block): Ditto.
12731 * c-valprint.c (c_val_print): Ditto.
12732 * expprint.c (print_subexp): Ditto.
12733 * findvar.c (locate_var_value): Ditto.
8ffd9b1b
AJ
12734 * infcmd.c (jump_command): Ditto.
12735 * linespec.c (decode_line_2, decode_compound): Ditto.
12736 * maint.c (maintenance_translate_address): Ditto.
12737 * objc-lang.c (compare_selectors, compare_classes): Ditto.
de5ad195
DC
12738 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12739 Ditto.
8ffd9b1b
AJ
12740 * p-valprint.c (pascal_val_print): Ditto.
12741 * stabsread.c (define_symbol): Ditto.
de5ad195 12742 * stack.c (print_frame, frame_info, print_block_frame_locals)
8ffd9b1b
AJ
12743 (print_frame_arg_vars, return_command): Ditto.
12744 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12745 * symmisc.c (print_symbol): Ditto.
de5ad195
DC
12746 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12747 (compare_search_syms, print_symbol_info, print_msymbol_info)
8ffd9b1b
AJ
12748 (rbreak_command): Ditto.
12749 * tracepoint.c (tracepoints_info): Ditto.
12750 * typeprint.c (typedef_print): Ditto.
12751 * valops.c (value_of_variable, hand_function_call): Ditto.
de5ad195
DC
12752 * cli/cli-cmds.c (edit_command, list_command): Ditto.
12753 * ada-typeprint.c: Update Copyright.
12754 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
12755 * tracepoint.c, cli/cli-cmds.c: Ditto.
12756
f796e4be
KB
127572003-02-20 Kevin Buettner <kevinb@redhat.com>
12758
12759 * frame.c (generic_unwind_get_saved_register): Make non-static.
12760 * frame.h (generic_unwind_get_saved_register): Declare.
12761 * mips-tdep.c (read_next_frame_reg): Fetch register from
12762 current regcache when frame is NULL.
12763 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
12764 that must be NULL.
12765 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12766 instead of frame_register_unwind().
12767
836cc9f4
AC
127682003-02-20 Andrew Cagney <ac131313@redhat.com>
12769
12770 * remote-sim.c (gdbsim_insert_breakpoint)
12771 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12772 code.
12773
501eef12
AC
127742003-02-20 Andrew Cagney <ac131313@redhat.com>
12775
12776 * remote.c (_initialize_remote): Add commands "set/show remote
12777 hardware-watchpoint-limit" and "set/show remote
12778 hardware-breakpoint-limit".
12779 (remote_hw_watchpoint_limit): Initialize to -1.
12780 (remote_hw_breakpoint_limit): Ditto.
12781 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
12782
1b6bc7e0
CF
127832003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
12784
12785 * coff-pe-read.c: New file - support reading of minimal symbols from a
12786 portable executable using the export table.
12787 * coff-pe-read.h: New file.
12788 * coffread.c: Include coff-pe-read.h.
12789 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
12790 debugging symbols found.
12791 * Makefile.in (SFILES): Add coff-pe-read.o.
12792 (coff_pe_read_h): Define.
12793 (COMMON_OBS): Add coff-pe-read.o.
12794 (coffread.o): Add coff_pe_read_h dependency.
12795 (coff-pe-read.o): New target.
12796
fe898f56
DC
127972003-02-19 David Carlton <carlton@math.stanford.edu>
12798
12799 * Makefile.in (SFILES): Add block.c.
12800 (block_h): New.
12801 (COMMON_OBS): Add block.o.
12802 (block.o): New.
12803 (x86-64-tdep.o): Add $(block_h).
12804 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
12805 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
12806 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
12807 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
12808 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
12809 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
12810 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
12811 * value.h: Add opaque declaration for struct block.
12812 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
12813 * ada-lang.h: Ditto.
12814 * x86-64-tdep.c: #include "block.h"
12815 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
12816 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
12817 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
12818 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
12819 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
12820 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
12821 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
12822 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
12823 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
12824 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
12825 * symtab.c (block_function): Ditto.
12826 (contained_in): Ditto.
12827 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
12828 block.h. Add opaque declaration for struct block.
12829 * symtab.h: Move block_function and contained_in declarations to
12830 block.h. Add opaque declarations for struct block, struct
12831 blockvector.
12832 (struct block): Move to block.h.
12833 (struct blockvector): Ditto.
12834 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
12835 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
12836 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
12837 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
12838 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
12839 Ditto.
12840 * block.c: New file.
12841 * block.h: New file.
12842
173345b5
TR
128432003-02-19 Theodore A. Roth <troth@openavr.org>
12844
12845 * avr-tdep.c (avr_extract_return_value): Remove function.
12846 (avr_store_return_value): Remove function.
12847 (avr_extract_struct_value_address): Remove function.
12848 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
12849
338ef23d
AC
128502003-02-19 Andrew Cagney <ac131313@redhat.com>
12851
12852 * rs6000-tdep.c: Include "gdb_assert.h".
12853 (registers_e500): Add "acc" and "spefscr".
12854 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
12855 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
12856 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
12857 really is "r0".
12858 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12859
5412f5f3
KS
128602003-02-18 Keith Seitz <keiths@redhat.com>
12861
12862 * Makefile.in: Add gdbtk-interps.c.
12863
881324eb
KB
128642003-02-18 Kevin Buettner <kevinb@redhat.com>
12865
12866 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12867 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12868
6a2f5abf
AC
128692003-02-18 Andrew Cagney <cagney@redhat.com>
12870
12871 * symtab.h (struct objfile): Add opaque declaration.
12872
54c7009d
EZ
128732003-02-18 Elena Zannoni <ezannoni@redhat.com>
12874
12875 From Jim Ingham <jingham@apple.com>:
fbe586ae
RH
12876 * dbxread.c (process_one_symbol): Use last_function_start rather
12877 than function_start_offset to find the real beginning of the
12878 current function. The latter is just the text section offset on
12879 some systems, the former is always the real function start.
54c7009d 12880
7ee6d7eb
AC
128812003-02-17 Andrew Cagney <cagney@redhat.com>
12882
12883 * configure.in: Revert ${target} != ${host}.
12884
2846da9b
AC
128852003-02-17 Andrew Cagney <ac131313@redhat.com>
12886
12887 * configure.in (Makefile): Use the test ${target} != ${host},
12888 instead of the absence of the "nm.h" file, to determine of the
12889 configuration non-native.
12890 * configure: Regenerate.
8ffd9b1b 12891
3b27aeea
EZ
128922003-02-14 Elena Zannoni <ezannoni@redhat.com>
12893
fbe586ae 12894 From Brian Ford <ford@vss.fsi.com>
3b27aeea
EZ
12895
12896 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12897 conditionalize tui_active test.
12898 (lookup_cmd_1): Ditto.
12899
b0b1c2c0
MK
129002003-02-14 Mark Kettenis <kettenis@gnu.org>
12901
12902 * configure.in: Add check for _etext.
12903 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12904 available.
12905 * config.in, configure: regenerated.
12906
8f05cde5
DJ
129072003-02-14 Daniel Jacobowitz <drow@mvista.com>
12908
12909 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12910
021e7609
AC
129112003-02-14 Andrew Cagney <ac131313@redhat.com>
12912
12913 * main.c (tui_version): Delete variable.
12914 (captured_main): When --tui, set interpreter_p to "tui" instead of
12915 enabling tui_version.
12916 * printcmd.c (display_command) [TUI]: Test tui_active instead of
12917 tui_version.
12918 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
12919 * cli/cli-cmds.c (disassemble_command): Ditto.
12920 * defs.h (tui_version): Delete declaration.
12921 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
12922 (tui-interp.o): Add rules.
12923 (SUBDIR_TUI_OBS): Add "tui-interp.o".
12924
e325dcec
CF
129252003-02-14 Christopher Faylor <cgf@redhat.com>
12926
36ffb041 12927 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
12928 just-loaded dll.
12929
c4f90d87
JM
129302003-02-12 Jason Molenda (jmolenda@apple.com)
12931
fbe586ae
RH
12932 * symmisc.c (print_objfile_statistics): Include information about
12933 the number of psymtabs and symtabs in each object file.
c4f90d87 12934
e46e5ccd
KS
129352003-02-13 Keith R Seitz <keiths@redhat.com>
12936
12937 * main.h (struct captured_main_args): Add interpreter_p.
12938 * main.c (captured_main): Initialize interpreter_p from context.
12939 * gdb.c (main): Set interpreter_p argument.
12940 * Makefile.in (gdb.o): Add dependency for interps.h.
12941
fe97fe9c
AC
129422003-02-12 Andrew Cagney <ac131313@redhat.com>
12943
12944 * event-top.c (cli_command_loop): Delete declaration.
12945 (_initialize_event_loop): Delete function setting event_loop_hook.
12946 * event-top.h (cli_command_loop): Declare. Update copyright.
12947 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
12948 * interps.c (current_interp_command_loop): When event_loop_p, call
12949 cli_command_loop.
12950
1cdac4ef
AC
129512003-02-12 Andrew Cagney <ac131313@redhat.com>
12952
12953 * interps.h (interp_command_loop_ftype): Change return type to
12954 void.
12955
48037ead
ML
129562003-02-12 Michal Ludvig <mludvig@suse.cz>
12957
12958 * x86-64-tdep.c (x86_64_extract_return_value)
12959 (x86_64_store_return_value): Use regcache instead of regbuf.
12960 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
12961 * x86-64-linux-nat.c (fill_gregset): Use regcache.
12962
033afc63
AC
129632003-02-11 Andrew Cagney <ac131313@redhat.com>
12964
12965 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12966 * aclocal.m4: Regenerate.
12967 * configure: Regenerate.
12968
12969 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12970 TCL_LD_SEARCH_FLAGS.
12971
40d02bca
ML
129722003-02-10 Michal Ludvig <mludvig@suse.cz>
12973
12974 * dwarf2cfi.c: Reindented.
12975
11308a41
AC
129762003-02-09 Andrew Cagney <ac131313@redhat.com>
12977
12978 * interps.c (clear_interpreter_hooks): Convert function definition
12979 to ISO C.
12980
e1c1c0f6
DC
129812003-02-07 David Carlton <carlton@math.stanford.edu>
12982
12983 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12984
ab5d3da6
KB
129852003-02-07 Kevin Buettner <kevinb@redhat.com>
12986
12987 * gdbtypes.h (struct main_type): Move ``length'' field from here...
12988 (struct type): ...to here.
12989 (TYPE_LENGTH): Adjust to reflect different location of ``length''
12990 field.
12991 * gdbtypes.c (make_qualified_type): Set length on newly created type.
12992 (replace_type): Set length on all type variants for a given type.
12993
b8a92b82
AC
129942003-02-07 Andrew Cagney <ac131313@redhat.com>
12995
12996 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12997 <sys/stat.h>.
12998 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
8ffd9b1b 12999
5cb316ef
AC
130002003-02-06 Andrew Cagney <ac131313@redhat.com>
13001
2555fe1a
AC
13002 * Makefile.in (symm-nat.o): Update dependencies.
13003 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
13004 (lynx-nat.o, ia64-linux-nat.): Ditto.
13005 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
13006 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
13007 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
13008
44270758
AC
13009 * Makefile.in (inflow_h): Define.
13010 (procfs.o, inflow.o, procfs.o): Update dependencies.
13011 * inftarg.c (child_stop): Delete extern declaration of
13012 inferior_process_group. Include "inflow.h".
13013 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
13014 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
13015 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
13016 (our_process_group, inferior_process_group): Extern declarations.
13017
df8f7274
AC
13018 * procfs.c: Include "gdb_assert.h".
13019
5cb316ef
AC
13020 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
13021 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
13022 * jv-typeprint.c (java_type_print_base): Ditto.
13023 * typeprint.c (typedef_print): Eliminate STREQ.
13024 * cli/cli-script.c (define_command, define_command): Ditto.
13025 * main.c (captured_main): Ditto.
13026 * values.c (lookup_internalvar): Ditto.
13027 * utils.c (safe_strerror, parse_escape): Eliminate assignment
13028 within `if' conditional.
13029 * linespec.c (decode_line_2): Ditto.
13030 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
13031 (bfd_openw_with_cleanup): Ditto.
13032
2a28ccea
MK
130332003-02-07 Mark Kettenis <kettenis@gnu.org>
13034
13035 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
13036 legacy_extract_return_value and store_return_value to
13037 legacy_return_value.
13038
786b8124
CF
130392003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
13040
13041 * win32-nat.c (get_relocated_section_addrs): New function. Find
13042 section load addresses for symbol handling in relocated DLLs.
13043 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
13044
b871e4ec
FF
130452003-02-05 Fred Fish <fnf@intrinsity.com>
13046
13047 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13048 '=' and '!='.
13049 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13050 with '&' and '=='.
13051 (angel_RDI_info): Ditto.
13052 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13053 with '&' and '!='.
13054 (threads_continue_all_with_signals): Ditto.
8ffd9b1b 13055
4389a95a 130562003-02-05 Jim Ingham <jingham@apple.com>
fbe586ae
RH
13057 Keith Seitz <keiths@redhat.com>
13058 Elena Zannoni <ezannoni@redhat.com>
13059 Andrew Cagney <ac131313@redhat.com>
4389a95a
AC
13060
13061 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
13062 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
13063 (SUBDIR_MI_OBS): Add "mi-interp.o".
13064 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
13065 (SFILES): Add "interps.c".
13066 (COMMON_OBS): Add "interps.o".
13067 (interps_h, mi_main_h): Define.
13068 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
13069 (mi-main.o, main.o, event-top.o): Update dependencies.
13070 * cli/cli-interp.c: New file.
13071 * interps.h, interps.c: New files.
13072 * top.c: (gdb_init): Don't install the default interpreter, handed
13073 by captured_main.
13074 * main.c: Include "interps.h".
13075 (interpreter_p): Note that it should malloc'ed.
13076 (captured_command_loop): Call current_interp_command_loop.
13077 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
13078 xfree and xstrdup when updating interpreter_p. Install the
13079 default interpreter. Add hack to stop mi1's copyright notice
13080 being encoded.
13081 * event-top.h (gdb_setup_readline): Declare.
13082 (gdb_disable_readline): Declare.
13083 * event-top.c: Include "interps.h".
13084 (display_gdb_prompt): Call current_interp_display_prompt_p.
13085 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
13086 gdb_stdlog, and gdb_stdtarg.
13087 (_initialize_event_loop): Don't call gdb_setup_readline.
13088 * cli-out.c (cli_out_set_stream): New function.
13089 * cli-out.h (cli_out_set_stream): Declare.
13090
ff3b5810
MK
130912003-02-06 Mark Kettenis <kettenis@gnu.org>
13092
13093 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
13094 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
13095 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
13096 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
13097 config/i386/i386v42mp.mt: Removed.
13098
5b729aa5
MK
130992003-02-05 Mark Kettenis <kettenis@gnu.org>
13100
13101 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13102 GDB_OSABI_SOLARIS.
13103
8cc15142
MC
131042003-02-05 Michael Chastain <mec@shout.net>
13105
13106 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13107 2.12.1 and earlier versions.
13108
5aa5d4b9
AC
131092003-02-05 Andrew Cagney <ac131313@redhat.com>
13110
13111 Remove orphaned hosts, targets and files.
13112 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
13113 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
13114 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
13115 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
13116 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
13117 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
13118 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
13119 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
13120 * config/sparc/tm-sp64sim.h: Delete.
13121 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
13122 hosts.
13123 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13124 mips*-dec-mach3* targets.
13125
b68767c1
MC
131262003-02-04 Michael Chastain <mec@shout.net>
13127
13128 * NEWS: Fix typo: sepcifying -> specifying.
13129
5ae7ca1d
MC
131302003-02-04 Michael Chastain <mec@shout.net>
13131
13132 * dwarfread.c: Add documentation on the state of dwarf-1,
13133 looking towards obsoletion.
13134
d08a4280
MC
131352003-02-03 Michael Chastain <mec@shout.net>
13136
13137 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13138 gdb/testsuite/gdb.c++/pr-1023.exp.
13139
e9be73e4
AC
131402003-02-04 Andrew Cagney <ac131313@redhat.com>
13141
13142 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13143 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13144
13145 * utils.c (init_page_info): Delete reference to MPW in comments.
13146 * main.c (captured_main): Delete #ifdef MPW.
13147
05d57f6f
AC
131482003-02-04 Andrew Cagney <ac131313@redhat.com>
13149
8ffd9b1b 13150 * NEWS: Note that the m32r-*-elf* is obsolete.
05d57f6f
AC
13151 * monitor.c (monitor_expect): Obsolete reference to m32r.
13152 * configure.tgt: Mark m32r-*-elf* as obsolete.
13153 * MAINTAINERS: Mark m32k as obsolete.
13154 * m32r-rom.c: Obsolete file.
13155 * config/m32r/m32r.mt: Obsolete file.
13156 * config/m32r/tm-m32r.h: Obsolete file.
13157 * m32r-stub.c: Obsolete file.
13158 * m32r-tdep.c: Obsolete file.
13159
8b0e5691
AC
131602003-02-04 Andrew Cagney <ac131313@redhat.com>
13161
13162 * NEWS: Mention that the z8k-zilog-none is obsolete.
13163 * MAINTAINERS: Mark z8k as obsolete.
13164 * configure.tgt: Obsolete the z8k-*-coff* target.
13165 * config/z8k/z8k.mt: Obsolete file.
13166 * config/z8k/tm-z8k.h: Obsolete file.
13167 * z8k-tdep.c: Obsolete file.
13168
67f16606
AC
131692003-02-04 Andrew Cagney <ac131313@redhat.com>
13170
13171 * NEWS: Mention that the mn10200-elf is obsolete.
13172 * configure.tgt: Obsolete mn10200-*-* target.
13173 * breakpoint.c (update_breakpoints_after_exec): Update comment to
13174 mention that the mn10200 is obsolete.
13175 * breakpoint.h: Ditto.
13176 * MAINTAINERS: Mark the mn10200-elf as obsolete.
13177 * config/mn10200/mn10200.mt: Obsolete file.
13178 * config/mn10200/tm-mn10200.h: Obsolete file.
13179 * mn10200-tdep.c: Obsolete file.
13180
fd2299bd
AC
131812003-02-04 Andrew Cagney <ac131313@redhat.com>
13182
13183 * MAINTAINERS: Mark h8500 as obsolete.
13184 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
13185 * findvar.c (value_from_register): Ditto.
13186 * h8500-tdep.c: Mark file as obsolete.
13187 * config/h8500/h8500.mt: Ditto.
13188 * config/h8500/tm-h8500.h: Ditto.
13189 * NEWS: Mention that h8500 is obsolete.
13190
eb9a305d
DC
131912003-02-04 David Carlton <carlton@math.stanford.edu>
13192
13193 * objfiles.c (allocate_objfile): Always set name. Add comment at
13194 start of function.
13195 * jv-lang.c (get_dynamics_objfile): Add comment.
13196
406fc7fb
DC
131972003-02-04 David Carlton <carlton@math.stanford.edu>
13198
13199 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
13200 * printcmd.c (build_address_symbolic): Replace uses of
13201 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
13202 SYMBOL_NAME, and asm_demangle.
13203 Update copyright.
13204
93d91629
DC
132052003-02-04 David Carlton <carlton@math.stanford.edu>
13206
13207 * linespec.c (decode_compound): Extract code into
13208 lookup_prefix_sym.
13209 (lookup_prefix_sym): New function.
13210
1c5cb38e
DC
132112003-02-04 David Carlton <carlton@math.stanford.edu>
13212
13213 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
13214 FLOAT_COERCION_BADNESS.
13215 * gdbtypes.c (rank_one_type): Replace all uses of
13216 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
13217
0cf824c9
JB
132182003-02-04 Jim Blandy <jimb@redhat.com>
13219
13220 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13221 section, let dwarf_macinfo_section point to it, not
13222 dwarf_loc_section.
13223
a2d356b0
DJ
132242003-02-04 Daniel Jacobowitz <drow@mvista.com>
13225
13226 Pointed out by Anton Blanchard <anton@samba.org>.
13227 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
13228 (ppc_linux_at_sigtramp_return_path): Use it.
13229
2de7ced7
DJ
132302003-02-04 Daniel Jacobowitz <drow@mvista.com>
13231
13232 * defs.h (streq): Add prototype.
13233 * utils.c (streq): New function.
13234
13235 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
13236 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
13237 * mdebugread.c (new_symbol): Likewise.
13238 * stabsread.c (define_symbol): Likewise.
13239 * coffread.c (process_coff_symbol): Likewise.
13240 * dwarfread.c (new_symbol): Likewise.
13241
13242 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13243 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
13244 here.
13245 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
13246 SYMBOL_INIT_DEMANGLED_NAME.
13247 * objfiles.c: Include "hashtab.h".
13248 (allocate_objfile): Call htab_set_functions_ex for the
13249 demangled_names_hash.
13250 (free_objfile): Call htab_delete for the demangled_names_hash.
13251 * objfiles.h (struct htab): Add declaration.
13252 (struct objfile): Add demangled_names_hash.
13253 * symfile.c: Include "hashtab.h".
13254 (reread_symbols): Call htab_delete for the demangled_names_hash.
13255 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
13256 SYMBOL_NAME in the bcache.
13257 * symtab.c: Include "hashtab.h". Update comments.
13258 (create_demangled_names_hash, symbol_set_names): New functions.
13259 (symbol_find_demangled_name): New function, broken out from
13260 symbol_init_demangled_names.
13261 (symbol_init_demangled_names): Use it.
13262 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
13263 (SYMBOL_SET_NAMES): New macro.
13264 (symbol_set_names): Add prototype.
13265
15831452
JB
132662003-02-03 Jim Blandy <jimb@redhat.com>
13267
13268 Use a single, consistent representation for an empty minimal
13269 symbol table in an objfile.
13270 * objfiles.c (terminate_minimal_symbol_table): New function.
13271 (allocate_objfile): Call it.
13272 * objfiles.h (terminate_minimal_symbol_table): New declaration.
13273 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
8ffd9b1b 13274 non-NULL.
15831452
JB
13275 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
13276 objfile has minimal symbols, compare minimal_symbol_count to zero,
13277 instead of comparing msymbols with NULL.
13278 * objfiles.c (have_minimal_symbols): Same.
13279 * solib-sunos.c (solib_add_common_symbols): Call
13280 terminate_minimal_symbol_table.
13281 * symfile.c (reread_symbols): Same.
8ffd9b1b 13282
ffc65945
KB
132832003-02-03 Kevin Buettner <kevinb@redhat.com>
13284
13285 * s390-tdep.c (s390_address_class_type_flags)
13286 (s390_address_class_type_flags_to_name)
13287 (s390_address_class_name_to_type_flags): New functions.
13288 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
13289 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
13290
f211c6d4
MS
132912003-02-03 Michael Snyder <msnyder@redhat.com>
13292
13293 * arm-tdep.c: Fix spell-o in comment.
13294
659b0389
ML
132952003-02-03 Michal Ludvig <mludvig@suse.cz>
13296
13297 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13298 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
8ffd9b1b 13299 error messages to contain BFD filename.
659b0389 13300
3b31d625
EZ
133012003-02-02 Elena Zannoni <ezannoni@redhat.com>
13302
997b089a 13303 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
13304 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
13305 (do_mixed_source_and_assembly): Use
13306 make_cleanup_ui_out_tuple_begin_end and
13307 make_cleanup_ui_out_tuple_begin_end.
13308 (do_mixed_source_and_assembly): Ditto.
13309 * thread.c (do_captured_list_thread_ids): Ditto.
13310 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
13311 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
13312 ui_out_tuple_end): Delete prototypes.
13313 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
13314 ui_out_list_end, ui_out_tuple_end): Delete.
13315
13316 From Kevin Buettner <kevinb@redhat.com>:
13317 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
fbe586ae
RH
13318 * ui-out.c (make_cleanup_ui_out_table_begin_end)
13319 (do_cleanup_table_end): New functions.
13320 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
13321 Use cleanups to invoke_ui_out_tuple_end().
13322 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
3b31d625
EZ
13323 * cli/cli-setshow.c (cmd_show_list): Use
13324 make_cleanup_ui_out_tuple_begin_end.
8ffd9b1b 13325
5b181d62
AC
133262003-02-02 Andrew Cagney <ac131313@redhat.com>
13327
13328 * frame.c (frame_unwind_register): New function.
13329 (frame_unwind_unsigned_register): Use.
13330 (frame_unwind_signed_register): Use.
13331 (frame_read_register): New function.
13332 * frame.h (frame_unwind_register): Declare.
13333 (frame_read_register): Declare.
13334
13335 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
13336 and frame_unwind_register instead of read_memory, write_register
13337 and deprecated_write_register_bytes.
13338
5f601589
AC
133392003-02-02 Andrew Cagney <ac131313@redhat.com>
13340
13341 * frame.h: Note that namelen can be negative.
13342 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
13343 NAME's length.
13344
13345 * NEWS: Mention that the d10v's `regs' command is deprecated.
13346 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
13347 (d10v_print_registers_info): New function.
13348 (show_regs): Call d10v_print_registers_info.
13349 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
13350
6a3fe0a4
MK
133512003-02-02 Mark Kettenis <kettenis@gnu.org>
13352
13353 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13354 lost in the previous patch.
13355
075559bc
AC
133562003-02-01 Andrew Cagney <ac131313@redhat.com>
13357
13358 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
fbe586ae
RH
13359 * stack.c (print_frame_info_base): Output complete FRAME tuple
13360 for synthesized frames.
075559bc 13361
6789195b
AC
133622003-02-02 Andrew Cagney <ac131313@redhat.com>
13363
13364 * mips-nat.c (zerobuf): Delete.
13365 (fetch_inferior_registers): Alloc local zerobuf.
13366 (fetch_core_registers): Alloc local zerobuf.
13367 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
13368 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
13369 * thread-db.c (thread_db_store_registers): Ditto.
13370 * sh-tdep.c (sh_do_register): Ditto.
13371 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
13372 * remote-sim.c (gdbsim_store_register): Ditto.
13373 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
13374 * remote-e7000.c (fetch_regs_from_dump): Ditto.
13375 * monitor.c (monitor_supply_register): Ditto.
13376 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
13377 * mips-nat.c (fetch_inferior_registers): Ditto.
13378 * m68klinux-nat.c (fetch_register): Ditto.
13379 * lynx-nat.c (fetch_inferior_registers): Ditto.
13380 (fetch_inferior_registers): Ditto.
13381 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
13382 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
13383 (hpux_thread_store_registers): Ditto.
13384 * hppah-nat.c (fetch_register): Ditto.
13385 * hppab-nat.c (fetch_register): Ditto.
13386 * hppa-tdep.c (pa_register_look_aside): Ditto.
13387 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
13388 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
13389
e669114a
AC
133902003-02-01 Andrew Cagney <ac131313@redhat.com>
13391
13392 * gdbarch.sh: Explictly specify all method levels. When a
13393 variable with an empty level, provide a non-multi-arch default.
13394 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
13395 * gdbarch.h: Re-generate.
13396 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
13397 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
13398
9a043c1d
AC
133992003-02-01 Andrew Cagney <ac131313@redhat.com>
13400
13401 * defs.h (host_pointer_to_address): Delete declaration.
13402 (address_to_host_pointer): Delete declaration.
13403 * utils.c (host_pointer_to_address): Delete function.
13404 (address_to_host_pointer): Delete function.
13405 * procfs.c (procfs_address_to_host_pointer): New function.
13406 * procfs.c (proc_set_watchpoint): Use.
13407 (procfs_can_use_hw_breakpoint): Update comments.
13408 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
13409 (som_solib_add): Use.
13410 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
13411 * hppa-tdep.c (unwind_command): Use.
8ffd9b1b 13412
7ca9f392
AC
134132003-02-01 Andrew Cagney <ac131313@redhat.com>
13414
94bbfd30
AC
13415 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
13416 strlen d_name.
13417
7ca9f392
AC
13418 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
13419 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
13420 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
13421 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
13422 (define_symbol): Update.
13423 * symfile.c (generic_load): Remove references to nindy.
13424 * symtab.c: Remove references to nindy.
13425
31a85ea2
AC
134262003-02-01 Andrew Cagney <ac131313@redhat.com>
13427
13428 * infcmd.c (print_float_info): Delete code conditional on
13429 FLOAT_INFO.
13430 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
13431 * config/m68k/nm-apollo68b.h: Ditto.
13432 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
13433 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
13434 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
13435
f6e85fc8
MK
134362003-02-01 Mark Kettenis <kettenis@gnu.org>
13437
6015b6a0
MK
13438 * config/i386/tm-i386os9k.h: Removed.
13439
f7a30bdf
MK
13440 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
13441 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
13442 they're identical to i[3456]86-*-sysv* now.
13443 * config/i386/i386v32.mh: Removed.
13444 * config/i386/xm-i386v32.h: Removed.
13445 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
13446
28d52111
MK
13447 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13448
4d3f6bce
MK
13449 * config/i386/i386dgux.mh: Removed.
13450 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13451
f6e85fc8
MK
13452 * configure.in: Fix typo.
13453 * configure: Regenerated.
13454
53955967
DC
134552003-01-31 David Carlton <carlton@math.stanford.edu>
13456
13457 * dwarf2read.c (dwarf2_locate_sections): Set
13458 dwarf_ranges_section.
13459
b1364885
AC
134602003-01-31 Andrew Cagney <ac131313@redhat.com>
13461
8dbb1c65
AC
13462 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13463 * utils.c: Update comments documenting legitimate uses of PTR.
8ffd9b1b 13464
8731e58e
AC
13465 * utils.c: Re-indent.
13466
b1364885
AC
13467 * config/djgpp/fnchange.lst: Delete nindy files.
13468 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
13469 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
13470 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
13471 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
13472 * nindy-share/README, nindy-share/Onindy.c: Delete files.
13473 * nindy-tdep.c, nindy-share/Makefile: Delete files.
13474 * Makefile.in (init.c): Remove nindy references.
13475 (saber_gdb): Delete rule.
13476 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
13477 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
13478 and a68v-nat.c.
13479 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
13480 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
13481 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
13482 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
13483 nindy-share/stop.h.
13484 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
13485 * saber.suppress: Delete file.
13486
086df311
DJ
134872003-01-31 Daniel Jacobowitz <drow@mvista.com>
13488
13489 * dbxread.c (stabs_data): New static variable.
13490 (fill_symbuf): Support an in-memory buffer for stabs data.
13491 (stabs_seek): New function.
13492 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
13493 (read_ofile_symtab): Use stabs_seek.
13494 (elfstab_build_psymtabs): Take an asection* instead of
13495 an offset and size. Relocate the stabs data if necessary.
13496 Save the section* for dbx_psymtab_to_symtab.
13497 * dwarf2read.c: Add section variables for each debug section.
13498 (dwarf2_locate_sections): Fill them in.
13499 (dwarf2_read_section): Take an asection* argument.
13500 Relocate the section contents if necessary.
13501 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
13502 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
13503 it to dwarf2_read_section.
13504 (dwarf2_build_frame_info): Update callers.
13505 * elfread.c (elf_symfile_read): Update call to
13506 elfstab_build_psymtabs.
13507 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
13508 (DBX_STAB_SECTION): New macro.
8ffd9b1b 13509 * stabsread.h (elfstab_build_psymtabs): Update prototype.
086df311
DJ
13510 * symfile.c (symfile_dummy_outputs): New function.
13511 (symfile_relocate_debug_section): New function.
13512 * symfile.h (symfile_relocate_debug_section): Add prototype.
13513
87d1b352
RH
135142003-01-31 Richard Henderson <rth@redhat.com>
13515
13516 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
13517 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
13518 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
13519 * alpha-tdep.c (alpha_register_name): Add "unique".
13520 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
13521 (ALPHA_UNIQUE_REGNUM): New.
13522 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
13523
c48861fb
AC
135242003-01-31 Andrew Cagney <ac131313@redhat.com>
13525
13526 * README: Remove reference to Ericsson 1800 monitor.
13527 * Makefile.in (remote-es.o): Delete rule.
13528 (ALLDEPFILES): Delete remote-es.c.
13529 * remote-es.c: Delete file.
13530 * config/m68k/es1800.mt: Delete file.
13531 * config/djgpp/fnchange.lst: Update.
13532 * configure.tgt: Delete m68*-ericsson-* target.
13533
d764a824
AF
135342003-01-31 Adam Fedor <fedor@gnu.org>
13535
13536 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13537 Remove duplicate/shadowing variable of same name.
13538
fe36c4f4
JB
135392003-01-30 Jim Blandy <jimb@redhat.com>
13540
13541 * symfile.c (find_separate_debug_file): Assert that the objfile's
13542 directory name we compute ends with a slash, and then assume that
13543 that's so everywhere we use it.
13544
cb741690
DJ
135452003-01-30 Daniel Jacobowitz <drow@mvista.com>
13546
13547 * valops.c (value_assign): Flush frame cache after stores to memory
13548 also.
13549
96ee5227
AC
135502003-01-30 Andrew Cagney <ac131313@redhat.com>
13551
13552 * Makefile.in (mon960-rom.o): Delete rule.
13553 * mon960-rom.c: Delete file.
13554
7f6104a9
AC
135552003-01-30 Andrew Cagney <ac131313@redhat.com>
13556
13557 * d10v-tdep.c: Include "frame-unwind.h".
13558 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
13559 list.
13560 (next_addr, uses_frame): Delete.
13561 (struct d10v_unwind_cache): Define.
13562 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
13563 Use info instead of next_addr and uses_frame globals.
13564 (d10v_frame_init_saved_regs): Delete function.
13565 (d10v_init_extra_frame_info): Delete function.
13566 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
13567 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
13568 init_frame_pc or frame_saved_pc.
13569 (d10v_pop_frame): Delete function.
13570 (do_d10v_pop_frame): Delete function.
13571 (d10v_frame_chain): Delete function.
13572 (d10v_frame_chain_valid): Delete function.
13573 (d10v_frame_pc_unwind): New function.
13574 (d10v_frame_id_unwind): New function.
13575 (saved_regs_unwinder): New function.
13576 (d10v_frame_register_unwind): New function.
13577 (d10v_frame_pop): New function.
13578 (d10v_frame_unwind): New variable.
13579 (d10v_frame_p): New function.
13580 (d10v_frame_saved_pc): Delete function.
13581 * Makefile.in (d10v-tdep.o): Update dependencies.
13582
cad2e848
JB
135832003-01-30 J. Brobecker <brobecker@gnat.com>
13584
13585 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13586 causing some regressions due to a change in the default value
13587 for this macro.
13588
af34e669
DJ
135892003-01-29 Richard Henderson <rth@redhat.com>
13590 Elena Zannoni <ezannoni@redhat.com>
13591 Daniel Jacobowitz <drow@mvista.com>
13592
13593 Fix PR gdb/961.
8ffd9b1b 13594 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
af34e669
DJ
13595 variables.
13596 (RANGES_SECTION): New.
13597 (dwarf_ranges_buffer): New variable.
13598 (struct comp_unit_head): Add member "die".
13599 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
13600 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
13601 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
13602 (dwarf2_locate_sections): Likewise.
13603 (dwarf2_build_psymtabs): Read .debug_ranges.
13604 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
13605 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
13606 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
13607 Look for DW_AT_ranges and return the bounding box.
13608
baa93fa6
CF
136092003-01-29 Brian Ford <ford@vss.fsi.com>
13610
13611 * win32-nat.c (cygwin_pid): Removed as unused.
13612 (child_attach): Try fall back to Cygwin pid.
13613
c63f977f
JB
136142003-01-29 Jim Blandy <jimb@redhat.com>
13615
13616 * objfiles.h (struct objfile): Doc fix.
13617
d62d1979
AC
136182003-01-29 Andrew Cagney <ac131313@redhat.com>
13619
13620 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
13621 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
13622 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
13623 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
13624 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
13625 (FRAME_SAVED_PC): Change to a function with predicate.
13626 * gdbarch.h, gdbarch.c: Re-generate.
13627
1ae18a04
AC
136282003-01-28 Andrew Cagney <ac131313@redhat.com>
13629
52287340
AC
13630 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13631
1ae18a04
AC
13632 * complaints.c (complain): Delete function.
13633 * complaints.h (struct deprecated_complaint): Delete definition.
13634 (complain): Delete declaration.
13635
f2c16bd6
KB
136362003-01-28 Kevin Buettner <kevinb@redhat.com>
13637
13638 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13639 dummy frames.
13640
a94dd1fd
AC
136412003-01-27 Andrew Cagney <ac131313@redhat.com>
13642
13643 * sentinel-frame.h, sentinel-frame.c: New files.
13644 * Makefile.in (frame.o): Update dependencies.
13645 (SFILES): Add sentinel-frame.c.
13646 (sentinel_frame_h): Define.
13647 (COMMON_OBS): Add sentinel-frame.o.
13648 (sentinel-frame.o): Specify dependencies.
13649 * frame.c: Include "sentinel-frame.h".
13650 (frame_register_unwind): Rewrite assuming that there is always a a
13651 ->next frame.
13652 (frame_register, generic_unwind_get_saved_register): Ditto.
13653 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
13654 (create_sentinel_frame, unwind_to_current_frame): New functions.
13655 (get_current_frame): Rewrite using create_sentinel_frame and
13656 unwind_to_current_frame. When possible, always create a frame.
13657 (create_new_frame): Set next to the sentinel frame.
13658 (get_next_frame): Rewrite. Don't go below the level 0 frame.
13659 (deprecated_update_frame_pc_hack): Update the next frame's PC and
13660 ID cache when necessary.
13661 (frame_saved_regs_id_unwind): Use frame_relative_level.
13662 (deprecated_generic_get_saved_register): Use frame_relative_level,
13663 get_frame_saved_regs, get_frame_pc, get_frame_base and
13664 get_next_frame.
13665 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13666 frame_register.
13667
5378adc4
DJ
136682003-01-27 Daniel Jacobowitz <drow@mvista.com>
13669
13670 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13671
51ee2ddc
DJ
136722003-01-27 Daniel Jacobowitz <drow@mvista.com>
13673
13674 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13675 (maintenance_set_profile_cmd): Use error () instead of warning ().
13676
d9feb4e7
DJ
136772003-01-27 Daniel Jacobowitz <drow@mvista.com>
13678
13679 * configure.in: Check that -pg works if using --enable-profiling.
13680 Check for monstartup and _mcleanup regardless of --enable-profiling.
13681 * maint.c: Check for monstartup and _mcleanup before using them.
13682 * config.in: Regenerated.
13683 * configure: Regenerated.
13684
2d188dd3
NC
136852003-01-24 Nick Clifton <nickc@redhat.com>
13686
13687 * Add sh2e support:
13688
13689 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
13690
13691 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
13692 (sh2e_show_regs): New.
13693 (sh_gdbarch_init): Handle bfd_mach_sh2e.
13694 * config/sh/tm-sh.h: Added sh2e to comments.
13695
cb3c37b2
JB
136962003-01-23 Jim Blandy <jimb@redhat.com>
13697
13698 * symfile.c (syms_from_objfile): Don't print the "(no debugging
13699 symbols found)" message here; we haven't checked for a separate
13700 debug info file yet, so we don't know yet.
13701 (symbol_file_add_with_addrs_or_offsets): Print it here, after
13702 we've looked everywhere. Also, there's no need to print a special
13703 message when we're loading the separate debug info file: the one
13704 symbol_file_add prints is fine.
13705
5b5d99cf
JB
137062003-01-23 Alexander Larsson <alexl@redhat.com>
13707 Jim Blandy <jimb@redhat.com>
13708
13709 Add support for executables whose debug info has been separated
13710 out into a separate file, leaving only a link behind.
13711 * objfiles.h (struct objfile): New fields: separate_debug_objfile
13712 and separate_debug_objfile_backlink.
13713 (put_objfile_before): New declaration.
13714 * symfile.c: #include "filenames.h".
13715 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
13716 debug info in a separate file, read that, too. Save the addrs
13717 argument, so we can use it again to read the separated debug info;
13718 syms_from_objfile modifies the table we pass it.
13719 (reread_symbols): After re-reading an objfile, call
13720 reread_separate_symbols to refresh its separate debug info
13721 objfile, if it has one.
13722 (reread_separate_symbols, find_separate_debug_file,
13723 get_debug_link_info, separate_debug_file_exists): New functions.
13724 (debug_file_directory): New global var.
13725 (_initialize_symfile): Initialize debug_file_directory, and
13726 provide the new `set debug-file-directory' command to let the user
13727 change it.
13728 * objfiles.c (free_objfile): If this objfile has its debug info in
13729 a separate objfile, free that one too. If this is itself a
13730 separate debug info objfile, clear our parent's backlink.
13731 (put_objfile_before): New function.
13732 * utils.c (gnu_debuglink_crc32): New function.
13733 * defs.h (gnu_debuglink_crc32): New declaration.
13734 * Makefile.in (symfile.o): Note dependency on "filenames.h".
13735 * configure.in: Handle --with-separate-debug-dir config option.
13736 * acinclude.m4 (AC_DEFINE_DIR): New macro.
13737 * acconfig.h (DEBUGDIR): New macro.
13738 * configure, aclocal.m4, config.in: Regenerated.
13739
7e8580c1
JB
137402003-01-22 Jim Blandy <jimb@redhat.com>
13741
7904e09f
JB
13742 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
13743 like the old symbol_file_add, but taking new arguments: you can
13744 now pass in either a `struct section_addr_info' list to say where
13745 each section is loaded, or a `struct section_offsets' table. Pass
13746 these new arguments through to syms_from_objfile as appropriate.
8ffd9b1b 13747 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
7904e09f
JB
13748 with the appropriate quiescent values for the new arguments.
13749
7e8580c1
JB
13750 * symfile.c: #include "gdb_assert.h".
13751 (syms_from_objfile): Add the ability to pass in a section offset
13752 table directly, as an alternative to the section_addr_info table.
13753 Document arguments better.
13754 (symbol_file_add): Pass extra arguments to syms_from_objfile.
13755 * symfile.h (syms_from_objfile): Update declaration.
13756 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
13757 syms_from_objfile.
13758 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13759
d28f9cdf
DJ
137602003-01-22 Daniel Jacobowitz <drow@mvista.com>
13761
13762 Original patch by Tom Tromey <tromey@cygnus.com> and
13763 Jason Molenda <jmolenda@apple.com>.
13764 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
13765 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
13766 * NEWS: Mention profiling.
13767 * configure.in (--enable-gdbtk): Fix typo.
13768 (--enable-profiling): New. Set PROFILE_CFLAGS.
13769 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
13770 Fill in function.
13771 (profiling_state): New variable.
13772 (mcleanup_wrapper): New function.
13773 (_initialize_maint): Remove NOTYET, fix call to
13774 add_setshow_boolean_cmd for "maint set profile".
13775 * configure: Regenerated.
13776
df21e465
MH
137772003-01-21 Martin M. Hunt <hunt@redhat.com>
13778
13779 * Makefile.in (install-gdbtk): Install PNG images too.
13780
73c1f219
AC
137812003-01-21 Andrew Cagney <ac131313@redhat.com>
13782
13783 * exec.c (text_start): Delete global variable.
13784 (exec_file_attach): Make text_start local to the function.
13785 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
13786 * valops.c (hand_function_call): Delete code that handles
13787 BEFORE_TEXT_END and AFTER_TEXT_END.
13788 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
13789 of CALL_DUMMY_LOCATION.
13790 * gdbarch.c: Regenerate.
13791 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
13792 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
13793 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
13794 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
13795 (text_end): Delete extern declaration.
13796
eb4f72c5
AC
137972003-01-21 Andrew Cagney <ac131313@redhat.com>
13798
13799 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
13800 * blockframe.c (backtrace_below_main): Move to "frame.c".
13801 (frame_chain_valid): Delete check for backtrace_below_main.
13802 (_initialize_blockframe): Delete initialization, move ``set
13803 backtrace-below-main'' command to "frame.c".
13804 (do_flush_frames_sfunc): Delete function.
13805 * frame.c: Include "command.h" and "gdbcmd.h".
13806 (frame_type_from_pc): New function.
13807 (create_new_frame): Use frame_type_from_pc.
13808 (legacy_get_prev_frame): New function.
13809 (get_prev_frame): Rewrite. When an old style frame, call
13810 legacy_get_prev_frame. Otherwize, unwind the PC first.
13811 (_initialize_frame): Add ``set backtrace-below-main'' command.
13812 * Makefile.in (frame.o): Update dependencies.
13813
778ce8cc
AC
138142003-01-19 Andrew Cagney <ac131313@redhat.com>
13815
13816 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13817 DEPRECATED_REGISTERS_INFO.
13818
01c193c8
AC
138192003-01-19 Andrew Cagney <ac131313@redhat.com>
13820
13821 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13822 Maintainers'. Update `Various Maintainers'.
13823
dedc2a2b
AC
138242003-01-19 Andrew Cagney <ac131313@redhat.com>
13825
13826 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
13827 * gdbarch.sh (POP_FRAME): Change to function with predicate.
13828 Suppress actual parameters when `-'.
13829 * gdbarch.h, gdbarch.c: Regenerate.
13830
b7261c70
AC
138312003-01-19 Andrew Cagney <ac131313@redhat.com>
13832
13833 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13834 code handling dummy frames.
13835
dbe9fe58
AC
138362003-01-19 Andrew Cagney <ac131313@redhat.com>
13837
13838 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
13839 (struct frame_unwind): Add field pop.
13840 * frame.h (frame_pop): Declare.
13841 * frame.c (frame_saved_regs_pop): New function.
13842 (trad_frame_unwinder): Add frame_saved_regs_pop.
13843 (frame_pop): New function.
13844 * dummy-frame.c (dummy_frame_pop): New function.
13845 (discard_innermost_dummy): New function.
13846 (generic_pop_dummy_frame): Use discard_innermost_dummy.
13847 (dummy_frame_unwind): Add dummy_frame_pop.
13848 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
13849 * valops.c (hand_function_call): Ditto.
13850 * stack.c (return_command): Ditto.
13851
570b8f7c
AC
138522003-01-18 Andrew Cagney <ac131313@redhat.com>
13853
13854 * cris-tdep.c: Fix function declaration indentation.
13855 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
13856 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
13857 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
13858 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
13859 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
13860 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
13861
138622003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
13863
13864 * README (Unpacking and Installation -- quick overview):
13865 Warn against ".../gdb-5.3/gdb/configure".
13866
494cca16
AC
138672003-01-18 Andrew Cagney <ac131313@redhat.com>
13868
13869 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
13870 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13871 (struct frame_unwind): Declare opaque.
13872 (dummy_frame_p): Declare function.
13873 * dummy-frame.c (dummy_frame_id_unwind): Make static.
13874 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
13875 * dummy-frame.c: Include "frame-unwind.h".
13876 (dummy_frame_p): New function.
13877 (dummy_frame_unwind): New variable.
13878 * frame.c: Include "frame-unwind.h".
13879 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
13880 to use the new unwind field.
13881 (set_unwind_by_pc): Delete function.
13882 (create_new_frame, get_prev_frame): Set unwind field using
13883 frame_unwind_find_by_pc.
13884 (trad_frame_unwind, trad_frame_unwinder): New variables.
13885 * frame.h (trad_frame_unwind): Declare variable.
13886 (frame_id_unwind_ftype): Delete declaration.
13887 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
13888 (struct frame_unwind): Declare opaque.
13889 (struct frame_info): Replace the fields id_unwind, pc_unwind and
13890 register_unwind with a single unwind pointer.
13891 * frame-unwind.h, frame-unwind.c: New files.
13892 * Makefile.in (SFILES): Add frame-unwind.c.
13893 (frame_unwind_h): Define.
13894 (COMMON_OBS): Add frame-unwind.o.
13895 (frame-unwind.o): Specify dependencies.
13896 (frame.o, dummy-frame.o): Update dependencies.
8ffd9b1b 13897
4efb68b1
AC
138982003-01-18 Andrew Cagney <ac131313@redhat.com>
13899
13900 * ada-valprint.c: Eliminate PTR.
13901 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
13902 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
13903 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
13904 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
13905 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
13906 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
13907 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
8ffd9b1b 13908
a84d24ee
AC
139092003-01-17 Andrew Cagney <ac131313@redhat.com>
13910
762f08a3
AC
13911 * main.c (captured_main): Don't use PTR.
13912 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
13913 * gdbtypes.c (lookup_primitive_typename): Ditto.
13914 (lookup_struct_elt_type): Ditto.
13915 * f-valprint.c (info_common_command): Ditto.
13916 (list_all_visible_commons): Ditto.
13917 * jv-typeprint.c (java_type_print_base): Ditto.
13918
a84d24ee
AC
13919 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
13920 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
13921 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
13922 i386-interix-nat.c and i386-interix-tdep.c. Rename
13923 m68klinux-nat.c and m68klinux-tdep.c. Rename
13924 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
13925 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
13926 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
13927 * main.c (captured_main): Use xfree, not free.
13928
c170fb60
AC
139292003-01-16 Andrew Cagney <ac131313@redhat.com>
13930
13931 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
13932 ID back using a parameter.
13933 * frame.c (frame_id_unwind): Update call.
13934 (frame_saved_regs_id_unwind): Update.
13935 * dummy-frame.c (dummy_frame_id_unwind): Update function.
13936 * dummy-frame.h (struct frame_id): Add opaque declaration.
13937 (dummy_frame_id_unwind): Update declaration.
13938
867f3898
AC
139392003-01-15 Andrew Cagney <ac131313@redhat.com>
13940
13941 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13942
40622be8 139432003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 13944
40622be8 13945 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 13946
ae66c1fc
EZ
139472003-01-14 Elena Zannoni <ezannoni@redhat.com>
13948
997b089a 13949 Fix PR gdb/898
ae66c1fc
EZ
13950 * breakpoint.c (until_break_command): Add new argument. Use it to
13951 decide whether to stop only at the current frame or not.
13952 * breakpoint.h (until_break_command): Update prototype.
8ffd9b1b 13953 * infcmd.c (until_command): Add new argument to until_break_command
ae66c1fc
EZ
13954 call.
13955 (advance_command): New function.
13956 (_initialize_infcmd): Update help string for 'until' command.
13957 Add new 'advance' command.
13958
a04257e6
DC
139592003-01-14 David Carlton <carlton@math.stanford.edu>
13960
13961 * linespec.c (decode_line_1): Normalize comments.
13962 (set_flags): Ditto.
13963 (locate_first_half): Ditto.
13964 (decode_compound): Ditto.
13965 (symtab_from_filename): Ditto.
13966 (decode_all_digits): Ditto.
13967 (decode_dollar): Ditto.
13968 (find_methods): Ditto.
13969 (find_toplevel_char): Ditto.
13970
1bac305b
AC
139712003-01-13 Andrew Cagney <ac131313@redhat.com>
13972
13973 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
13974 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
13975 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
13976 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
13977 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
13978 * language.c, language.h, m32r-tdep.c: Update copyright.
13979 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
13980 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
13981 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
13982 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
13983 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
13984 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
13985
25caa7a8
EZ
139862003-01-13 Elena Zannoni <ezannoni@redhat.com>
13987
13988 * stabsread.h (process_later, resolve_cfront_continuation):
13989 Obsolete.
13990 Update copyright years.
13991 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
13992 Update copyright year.
13993 * dbxread.c(struct cont_elem): Obsolete.
8ffd9b1b 13994 (process_later, process_now): Obsolete functions.
25caa7a8
EZ
13995 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
13996 Update copyright year.
13997 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
13998 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
13999 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
14000 (parse_partial_symbols): Obsolete cfront support.
14001 * stabsread.c
14002 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
14003 macros.
14004 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
14005 read_cfront_baseclasses, read_cfront_member_functions,
14006 resolve_cfront_continuation,read_cfront_static_fields,
14007 copy_cfront_struct_fields): Obsolete functions.
14008 (define_symbol, read_one_struct_field): Obsolete cfront support.
14009 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
14010 Update Copyright year.
14011
7789c6f5
EZ
140122003-01-13 Elena Zannoni <ezannoni@redhat.com>
14013
14014 * stack.c (print_frame_info, print_stack_frame_base_stub,
14015 print_stack_frame_base, show_and_print_stack_frame_stub,
14016 show_and_print_stack_frame, print_only_stack_frame_stub,
14017 print_only_stack_frame): Delete functions.
14018 (print_stack_frame_stub): Call print_frame_info instead of
14019 print_frame_info_base.
14020 (print_frame_info_base): Rename to print_frame_info.
14021 (backtrace_command_1): Call print_frame_info, instead of
14022 print_frame_info_base.
14023 (current_frame_command): Call print_stack_frame, instead of
14024 print_only_stack_frame.
14025 (frame_command): Call print_stack_frame, instead of
14026 show_and_print_stack_frame.
14027 (up_command): Ditto.
14028 (down_command): Ditto.
14029 * frame.h (print_only_stack_frame): Delete prototype.
14030 * infrun.c (normal_stop): Call print_stack_frame, instead of
14031 show_and_print_stack_frame.
14032 * thread.c (info_threads_command): Call print_stack_frame, instead
14033 of print_only_stack_frame.
14034
3f5a3016
AC
140352003-01-13 Andrew Cagney <ac131313@redhat.com>
14036
d99ba314
AC
14037 * README (Graphical interface to GDB): Update URL. Point at
14038 gdb/links/.
14039
3f5a3016
AC
14040 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14041 version match.
14042
083ae935
DJ
140432003-01-13 Daniel Jacobowitz <drow@mvista.com>
14044
14045 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14046 lines.
14047
5365276c
DJ
140482003-01-13 Daniel Jacobowitz <drow@mvista.com>
14049
14050 * thread-db.c (attach_thread): Prototype.
14051 (struct private_thread_info): Remove lwpid. Add thread handle (th),
14052 thread information (ti), and valid flags (th_valid, ti_valid).
14053 (attach_thread): Move target_pid_to_str call to after the thread
14054 is added to GDB's list. Initialize the cache.
14055 (thread_get_info_callback, thread_db_map_id2thr)
14056 (thread_db_get_info): New functions.
14057 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
14058 (thread_db_store_registers, thread_db_thread_alive)
14059 (thread_db_get_thread_local_address): Use them.
14060 (thread_db_pid_to_str): Likewise. Return "Missing" instead
14061 of calling error() for threads in unknown state.
14062
14063 (clear_lwpid_callback): New function.
14064 (thread_db_resume): Use it to clear the cache.
14065
9fc30b6b
DJ
140662003-01-13 Daniel Jacobowitz <drow@mvista.com>
14067
14068 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14069 (resume_callback): Remove dead code.
14070
8f871025
AC
140712003-01-13 Andrew Cagney <ac131313@redhat.com>
14072
14073 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
14074 predicate.
14075 * gdbarch.h, gdbarch.c: Regenerate.
14076 * stack.c (frame_info): Only initialize the saved registers when
14077 FRAME_INIT_SAVED_REGS_P.
14078 * frame.c (frame_saved_regs_register_unwind): Assert
14079 FRAME_INIT_SAVED_REGS_P.
14080 (deprecated_generic_get_saved_register): Ditto.
14081
3f565f1e
DJ
140822003-01-13 Daniel Jacobowitz <drow@mvista.com>
14083
14084 * source.c (openp): Squelch warning about "filename".
14085
072b1022
DJ
140862003-01-13 Daniel Jacobowitz <drow@mvista.com>
14087
14088 * source.c (openp): If the file does not exist don't necessarily
14089 search the path.
14090
973ccf8b
DJ
140912003-01-13 Daniel Jacobowitz <drow@mvista.com>
14092
14093 Fix PR gdb/872.
14094 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
14095 (integer_types_same_name_p): New function.
14096 (rank_one_type): Use it.
14097 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
14098
030292b7
DJ
140992003-01-13 Daniel Jacobowitz <drow@mvista.com>
14100
14101 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
14102 variables.
14103 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
14104 * configure.in: Add --with-sysroot.
14105 * configure: Regenerated.
14106 * main.c (gdb_sysroot): New variable.
14107 (captured_main): Initialize gdb_sysroot.
14108 * defs.h (gdb_sysroot): New extern declaration.
14109 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
14110
afb5d334
MC
141112003-01-12 Michael Chastain <mec@shout.net>
14112
14113 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14114
751ceeb4
MC
141152003-01-12 Michael Chastain <mec@shout.net>
14116
14117 * top.c (print_gdb_version): Bump copyright year to 2003.
14118
94cd26f8
DC
141192003-01-12 David Carlton <carlton@bactrian.org>
14120
14121 * linespec.c (symtab_from_filename): Rename variable 's' to
14122 'file_symtab'.
14123
1ce79225
AC
141242003-01-12 Andrew Cagney <ac131313@redhat.com>
14125
14126 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14127 dummy frame.
14128 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14129
fa1fd571
AC
141302003-01-12 Andrew Cagney <ac131313@redhat.com>
14131
14132 * d10v-tdep.c: Include "gdb_assert.h".
14133 (d10v_store_return_value): Rewrite to match current interface.
14134 (d10v_extract_struct_value_address): Ditto.
14135 (d10v_extract_return_value): Ditto.
14136 (d10v_gdbarch_init): Set store_restore_value,
14137 extract_struct_value_address and extract_return_value.
14138
68b8d23e
JB
141392003-01-12 J. Brobecker <brobecker@gnat.com>
14140
14141 * hpread.c (set_namestring): New procedure replacing the
14142 SET_NAMESTRING macro.
14143 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
14144 by calls to set_namestring.
14145
141462003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
14147
14148 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14149 a compilation warning.
14150 (hpread_process_one_debug_symbol): Likewise.
14151
88d262ca
DC
141522003-01-10 David Carlton <carlton@math.stanford.edu>
14153
14154 * linespec.c (decode_line_1): Rename variable 's' to
14155 'file_symtab'.
14156 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14157 (decode_dollar): Ditto.
14158 (decode_variable): Ditto.
14159 (symbol_found): Ditto.
14160
86669319
MC
141612003-01-09 Michael Chastain <mec@shout.net>
14162
14163 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14164
616a9dc4
CV
141652003-01-07 Corinna Vinschen <vinschen@redhat.com>
14166
14167 * win32-nat.c (set_process_privilege): New function.
14168 (child_attach): Call set_process_privilege() to enable the
14169 SE_DEBUG_NAME user privilege if available in process token.
14170
3269bcfa
JB
141712003-01-10 J. Brobecker <brobecker@gnat.com>
14172
14173 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14174 compilation error in the previous revision.
14175
2b0ee454
DC
141762003-01-09 David Carlton <carlton@math.stanford.edu>
14177
14178 * linespec.c: Update copyright.
14179
b3ba1b44
DJ
141802003-01-09 Daniel Jacobowitz <drow@mvista.com>
14181
14182 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
14183 than inferior_ptid.
14184 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
14185
4ef3f3be
AC
141862003-01-09 Andrew Cagney <ac131313@redhat.com>
14187
479ab5a0
AC
14188 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
14189 Update comments.
14190 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
14191 (frame_saved_regs_zalloc): Update.
14192 (frame_saved_regs_register_unwind): Update.
14193 (create_new_frame): Update.
14194 (get_prev_frame): Update.
14195 (frame_extra_info_zalloc): Update.
14196 (deprecated_get_frame_saved_regs): Update.
14197 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
14198 * cris-tdep.c: Update comment.
14199
bde58177
AC
14200 * somsolib.h: Fix function indentation.
14201 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
14202 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
14203 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
14204 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
14205 * somsolib.c, inftarg.c: Remove assignment in if conditional.
14206
4ef3f3be
AC
14207 * infrun.c (follow_fork): Use ISO C definition.
14208 * expprint.c (print_subexp): Use xfree instead of free.
14209 * charset.c: Include "gdb_string.h" instead of <string.h>.
14210 (register_iconv_charsets): Use ISO C definition.
14211 (host_charset, target_charset): Ditto.
14212 * Makefile.in (charset.o): Update dependencies.
14213 (mi-cmd-env.o): Update dependencies.
14214
1c615f7a
AC
142152003-01-08 Andrew Cagney <cagney@redhat.com>
14216
14217 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14218 get_frame_base.
14219
c9a1dc08
AC
142202003-01-08 Andrew Cagney <ac131313@redhat.com>
14221
14222 * gdb_mbuild.sh: Add --keep option. When specified, keep the
14223 build directories. Save edited gdb output in Mbuild.log. If a
14224 build fails, remove any final GDB executable.
14225
dbad9d94
AC
142262003-01-08 Andrew Cagney <ac131313@redhat.com>
14227
14228 * gdb_mbuild.sh: Edit the output of `maint print architecture'
14229 replacing hex constants with function names and stripping leading
14230 file name directory prefixes.
14231
8d357cca
AC
142322003-01-08 Andrew Cagney <cagney@redhat.com>
14233
14234 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14235 get_frame_base.
14236
bca02a8a
DC
142372003-01-08 David Carlton <carlton@math.stanford.edu>
14238
14239 * linespec.c (decode_line_1): Move code into decode_variable.
14240 (decode_variable): New function.
14241
7f8ab3a0
AC
142422003-01-08 Andrew Cagney <ac131313@redhat.com>
14243
14244 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14245
7b5849cc
AC
142462003-01-08 Andrew Cagney <cagney@redhat.com>
14247
14248 * cris-tdep.c (cris_frame_init_saved_regs): Use
14249 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14250 saved_regs buffer.
14251 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
14252 (sh64_nofp_frame_init_saved_regs): Ditto.
14253 (sh_fp_frame_init_saved_regs): Ditto.
14254 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14255 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14256 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14257 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14258
72a5efb3
DJ
142592003-01-08 Daniel Jacobowitz <drow@mvista.com>
14260
14261 * minsyms.c (lookup_minimal_symbol): Update comment.
14262 (lookup_minimal_symbol_text): Update comment. Use the hash table.
14263 (lookup_minimal_symbol_solib_trampoline): Likewise.
14264
11c02a10
AC
142652003-01-08 Andrew Cagney <cagney@redhat.com>
14266
aab3ea25
AC
14267 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14268 frame_relative_level.
14269
da50a4b7
AC
14270 * alpha-tdep.c: Use get_frame_extra_info.
14271 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14272 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
14273 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14274 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
14275
11c02a10
AC
14276 * alpha-tdep.c: Use get_next_frame.
14277 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14278 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14279 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
14280 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
14281 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
14282 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
14283 * xstormy16-tdep.c: Ditto.
8ffd9b1b 14284
1e2330ba
AC
142852003-01-07 Andrew Cagney <cagney@redhat.com>
14286
14287 * alpha-tdep.c: Use get_frame_base.
14288 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14289 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14290 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14291 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
14292 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
14293 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14294 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
14295 * config/sparc/tm-sparc.h: Ditto.
8ffd9b1b 14296
2d75187b
AC
142972003-01-07 Andrew Cagney <cagney@redhat.com>
14298
14299 * frame.c (deprecated_get_frame_context): New function.
14300 (deprecated_set_frame_context): New function.
14301 * frame.h (deprecated_get_frame_context): Declare.
14302 (deprecated_set_frame_context): Declare.
14303 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
14304 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
8ffd9b1b 14305
483d36b2
AC
143062003-01-07 Andrew Cagney <cagney@redhat.com>
14307
14308 * frame.c (deprecated_set_frame_next_hack): New function.
14309 (deprecated_set_frame_prev_hack): New function.
14310 * frame.h (deprecated_set_frame_next_hack): Declare.
14311 (deprecated_set_frame_prev_hack): Declare.
14312 * mcore-tdep.c (analyze_dummy_frame): Use
14313 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
14314 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14315
14e91ac5
DC
143162003-01-07 David Carlton <carlton@math.stanford.edu>
14317
14318 * linespec.c (decode_line_1): Move code into decode_dollar.
14319 (decode_dollar): New function.
14320
b0c6b05c
AC
143212003-01-07 Andrew Cagney <cagney@redhat.com>
14322
14323 * arm-tdep.c (arm_init_extra_frame_info): Use
14324 deprecated_update_frame_base_hack.
14325 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
14326 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
14327 (fix_frame_pointer): Ditto.
14328 (mn10300_analyze_prologue): Ditto.
14329
a00a19e9
AC
143302003-01-07 Andrew Cagney <cagney@redhat.com>
14331
14332 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
14333 extra_info using frame_extra_info_zalloc.
14334 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
14335 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
14336 (sh64_init_extra_frame_info): Ditto.
14337 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
14338 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
14339 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
14340 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
14341 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
14342 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
14343 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
14344 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
14345 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
14346 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
14347 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
14348 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
14349
14350 * mn10300-tdep.c (analyze_dummy_frame): Use
14351 deprecated_set_frame_extra_info_hack.
14352 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14353
1fb4c65b
JB
143542003-01-07 J. Brobecker <brobecker@gnat.com>
14355
14356 * mdebugread.c (parse_symbol): Skip stProc entries which storage
14357 class is not scText. These do not define "real" procedures.
14358 (parse_partial_symbols): Likewise.
14359
9fe7d6bf
MS
143602003-01-06 Michael Snyder <msnyder@redhat.com>
14361
14362 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14363
f6c609c4
AC
143642003-01-06 Andrew Cagney <ac131313@redhat.com>
14365
14366 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
14367 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
14368 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
14369 deprecated_frame_xmalloc_with_cleanup.
14370 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
14371 deprecated_frame_xmalloc.
14372 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14373 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
14374
d995ff4b
AC
143752003-01-06 Andrew Cagney <cagney@redhat.com>
14376
84dc46cb
AC
14377 * x86-64-linux-tdep.c: Include "osabi.h".
14378 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14379
d995ff4b
AC
14380 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14381
66140c26
AC
143822003-01-06 Andrew Cagney <cagney@redhat.com>
14383
14384 * MAINTAINERS (Target Instruction Set Architectures): Update
14385 arm-elf. Can be built with -Werror, has been multiarched.
14386
14387 * value.h (unpack_long): Make buffer parameter constant.
14388 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
14389 * scm-lang.h (scm_parse): Ditto.
14390 * defs.h (extract_typed_address, extract_address): Ditto.
14391 (extract_long_unsigned_integer): Ditto.
14392 * inferior.h (unsigned_pointer_to_address): Ditto.
14393 (signed_pointer_to_address): Ditto.
14394 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
14395 * gdbarch.h, gdbarch.c: Regenerate.
14396 * findvar.c (extract_long_unsigned_integer): Update.
14397 (extract_address): Update.
14398 (extract_typed_address): Update.
14399 (unsigned_pointer_to_address): Update.
14400 * values.c (unpack_long): Update.
14401 (unpack_double): Update.
14402 (unpack_pointer): Update.
14403 (unpack_field_as_long): Update.
14404 * d10v-tdep.c (d10v_pointer_to_address): Update.
14405 * avr-tdep.c (avr_pointer_to_address): Update.
14406 * scm-lang.c (scm_unpack): Update.
14407 * findvar.c (signed_pointer_to_address): Update.
14408
b089b3da
ML
144092003-01-06 Michal Ludvig <mludvig@suse.cz>
14410
8ffd9b1b 14411 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
b089b3da
ML
14412 since it is in i386-tdep.c.
14413
aff87235
JB
144142003-01-06 J. Brobecker <brobecker@gnat.com>
14415
14416 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14417 failure introduced in the previous change.
14418
34f5e845
MC
144192003-01-05 Michael Chastain <mec@shout.net>
14420
14421 * README: Remove references to deleted remote-*.c files:
14422 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
14423 remote-nrom.c, remote-os9k.c, remote-udi.c.
14424
28bcfd30
MK
144252003-01-05 Mark Kettenis <kettenis@gnu.org>
14426
14427 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
14428 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
14429 i386_get_longjmp_target.
14430
15a5b3ee
AC
144312003-01-05 Andrew Cagney <ac131313@redhat.com>
14432
14433 * arm-tdep.c (prologue_cache): Change to a pointer.
14434 (_initialize_arm_tdep): Allocate prologue_cache.
14435 (check_prologue_cache): Update.
14436 (save_prologue_cache): Update.
14437 (arm_gdbarch_init): Update.
14438
c263362b
DJ
144392003-01-04 Daniel Jacobowitz <drow@mvista.com>
14440
14441 * stabsread.c (update_method_name_from_physname): Call complaint()
14442 instead of error.
14443
51603483
DJ
144442003-01-04 Daniel Jacobowitz <drow@mvista.com>
14445
14446 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
14447 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
14448 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
14449
14450 * blockframe.c: Include "gdbcmd.h" and "command.h".
14451 (backtrace_below_main): New variable.
14452 (file_frame_chain_valid, func_frame_chain_valid)
14453 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
14454 (generic_func_frame_chain_valid): Remove functions.
14455 (frame_chain_valid, do_flush_frames_sfunc): New functions.
14456 (_initialize_blockframe): New function.
14457 * Makefile.in (blockframe.o): Update dependencies.
14458 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
14459 comment. Call frame_chain_valid ().
14460 * frame.h: Remove old prototypes. Add prototype for
14461 frame_chain_valid and update comments to match.
14462 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
14463 Remove old comment.
14464 * gdbarch.h: Regenerated.
14465 * gdbarch.c: Regenerated.
14466
14467 * alpha-tdep.c (alpha_gdbarch_init): Don't call
14468 set_gdbarch_frame_chain_valid.
14469 * avr-tdep.c (avr_gdbarch_init): Likewise.
14470 * cris-tdep.c (cris_gdbarch_init): Likewise.
14471 * frv-tdep.c (frv_gdbarch_init): Likewise.
14472 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
14473 * i386-tdep.c (i386_svr4_init_abi): Likewise.
14474 (i386_nw_init_abi): Likewise.
14475 (i386_gdbarch_init): Likewise.
14476 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
14477 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
14478 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
14479 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
14480 * mips-tdep.c (mips_gdbarch_init): Likewise.
14481 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
14482 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
14483 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
14484 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14485 * s390-tdep.c (s390_gdbarch_init): Likewise.
14486 * sh-tdep.c (sh_gdbarch_init): Likewise.
14487 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14488 * v850-tdep.c (v850_gdbarch_init): Likewise.
14489 * vax-tdep.c (vax_gdbarch_init): Likewise.
14490 * x86-64-tdep.c (x86_64_init_abi): Likewise.
14491
14492 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
14493 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
14494 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
14495 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
14496 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
14497 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
14498 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
14499 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
14500
b00a8037
DJ
145012002-01-04 Daniel Jacobowitz <drow@mvista.com>
14502
14503 * Makefile.in (acconfig_h): Remove incorrect macro.
14504 (config_h): Define.
14505 (osabi.o): Update dependencies.
14506 * configure.tgt: Set gdb_osabi based on target triplet.
14507 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
14508 * configure: Regenerated.
14509 * config.in: Regenerated.
14510 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
14511 (GDB_OSABI_DEFAULT): Define if not already defined.
14512 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
14513 (set_osabi_string): New variables.
14514 (gdbarch_register_osabi): Add new OS ABI to
14515 gdb_osabi_available_names.
14516 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
14517 (set_osabi, show_osabi): New functions.
14518 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
14519
4be87837
DJ
145202003-01-04 Daniel Jacobowitz <drow@mvista.com>
14521
14522 * arch-utils.c (gdbarch_info_init): Set osabi to
14523 GDB_OSABI_UNINITIALIZED.
14524 * gdbarch.sh: Add osabi to struct gdbarch and to struct
14525 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
14526 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
14527 * gdbarch.c: Regenerated.
14528 * gdbarch.h: Regenerated.
14529 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
14530 there's no BFD.
14531 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
14532 * osabi.h (enum gdb_osabi): Move to defs.h.
14533 (gdbarch_init_osabi): Update prototype.
14534 * defs.h (enum gdb_osabi): Moved here.
14535 * Makefile.in: Update dependencies.
14536
14537 * alpha-tdep.h: Don't include "osabi.h".
14538 (struct gdbarch_tdep): Remove osabi member.
14539 * alpha-tdep.c: Include "osabi.h".
14540 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14541 iterate over arches. Update call to gdbarch_init_osabi.
14542 (alpha_dump_tdep): Don't dump osabi.
14543 * alpha-linux-tdep.c: Include "osabi.h".
14544 * alpha-osf1-tdep.c: Include "osabi.h".
14545 * alphafbsd-tdep.c: Include "osabi.h".
14546 * alphanbsd-tdep.c: Include "osabi.h".
14547
14548 * arm-tdep.h: Don't include "osabi.h".
14549 (struct gdbarch_tdep): Remove osabi member.
14550 * arm-tdep.c: Include "osabi.h".
14551 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14552 iterate over arches. Update call to gdbarch_init_osabi.
14553 (arm_dump_tdep): Don't dump osabi.
14554 * arm-linux-tdep.c: Include "osabi.h".
14555 * armnbsd-tdep.c: Include "osabi.h".
14556
14557 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14558 Update call to gdbarch_init_osabi.
14559
14560 * i386-tdep.h: Don't include "osabi.h".
14561 (struct gdbarch_tdep): Remove osabi member.
14562 * i386-tdep.c: Include "osabi.h".
14563 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14564 iterate over arches. Update call to gdbarch_init_osabi.
14565 (i386_dump_tdep): Don't dump osabi.
14566 * i386-linux-tdep.c: Include "osabi.h".
14567 * i386-sol2-tdep.c: Include "osabi.h".
14568 * i386bsd-tdep.c: Include "osabi.h".
14569 * i386gnu-tdep.c: Include "osabi.h".
14570 * i386ly-tdep.c: Include "osabi.h".
14571 * i386nbsd-tdep.c: Include "osabi.h".
14572 * i386obsd-tdep.c: Include "osabi.h".
14573
14574 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
14575 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14576 check osabi when iterating over arches. Update call to
14577 gdbarch_init_osabi.
14578 (mips_dump_tdep): Don't dump osabi.
14579
14580 * ns32k-tdep.h: Don't include "osabi.h".
14581 (struct gdbarch_tdep): Remove.
14582 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
14583 gdbarch_lookup_osabi. Don't iterate over arches. Don't
14584 allocate tdep. Update call to gdbarch_init_osabi.
14585 (ns32k_dump_tdep): Remove.
14586 (_initialize_ns32k_tdep): Update call to gdbarch_register.
14587 * ns32knbsd-tdep.c: Include "osabi.h".
14588
14589 * ppc-tdep.h: Don't include "osabi.h".
14590 (struct gdbarch_tdep): Remove osabi member.
14591 * rs6000-tdep.c: Include "osabi.h".
14592 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
14593 osabi when iterating over arches. Update call to
14594 gdbarch_init_osabi.
14595 (rs6000_dump_tdep): Don't dump osabi.
14596 * ppc-linux-tdep.c: Include "osabi.h".
14597 * ppcnbsd-tdep.c: Include "osabi.h".
14598
14599 * sh-tdep.h: Don't include "osabi.h".
14600 (struct gdbarch_tdep): Remove osabi member.
14601 * sh-tdep.c: Include "osabi.h".
14602 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14603 iterate over arches. Update call to gdbarch_init_osabi.
14604 (sh_dump_tdep): Don't dump osabi.
14605 * shnbsd-tdep.c: Include "osabi.h".
14606
14607 * sparc-tdep.c: Include "osabi.h".
14608 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14609 iterate over arches. Update call to gdbarch_init_osabi.
14610 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
14611 tdep structure.
14612
14613 * vax-tdep.h: Don't include "osabi.h".
14614 (struct gdbarch_tdep): Remove.
14615 * vax-tdep.c: Include "osabi.h".
14616 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
14617 iterate over arches. Don't allocate tdep. Update call
14618 to gdbarch_init_osabi.
14619 (vax_dump_tdep): Remove.
14620 (_initialize_vax_tdep): Update call to gdbarch_register.
14621
a881cf8e
DJ
146222003-01-04 Daniel Jacobowitz <drow@mvista.com>
14623
14624 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14625 entirely.
14626 (breakpoint_re_set_one): Don't fetch the value for a disabled
14627 watchpoint.
14628
1e698235
DJ
146292003-01-04 Daniel Jacobowitz <drow@mvista.com>
14630
14631 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
14632 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
14633 (COERCE_FLOAT_TO_DOUBLE): Remove.
14634 * gdbarch.c: Regenerate.
14635 * gdbarch.h: Regenerate.
14636 * Makefile.in: Remove value_h from gdbarch_h.
14637 * valops.c (coerce_float_to_double): New variable.
14638 (default_coerce_float_to_double): Remove.
14639 (standard_coerce_float_to_double): Remove.
14640 (value_arg_coerce): Use coerce_float_to_double.
14641 (_initialize_valops): Add "set coerce-float-to-double".
14642 * value.h (default_coerce_float_to_double): Remove prototype.
14643 (standard_coerce_float_to_double): Remove prototype.
14644
14645 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14646 prototyped.
14647 * mdebugread.c (parse_symbol): Likewise.
14648 * stabsread.c (define_symbol): Mark all functions as prototyped.
14649
14650 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
14651 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
14652 set_gdbarch_coerce_float_to_double.
14653 * arm-tdep.c (arm_gdbarch_init): Likewise.
14654 * frv-tdep.c (frv_gdbarch_init): Likewise.
14655 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
14656 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
14657 * mips-tdep.c (mips_gdbarch_init): Likewise.
14658 (mips_coerce_float_to_double): Remove.
14659 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
14660 (rs6000_coerce_float_to_double): Remove.
14661 * s390-tdep.c (s390_gdbarch_init): Likewise.
14662 * sh-tdep.c (sh_gdbarch_init): Likewise.
14663 (sh_coerce_float_to_double): Remove.
14664 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
14665 (sparc_coerce_float_to_double): Remove.
14666 * v850-tdep.c (v850_gdbarch_init): Likewise.
14667 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
14668 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14669 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
14670 (hppa_coerce_float_to_double): Remove prototype.
14671 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
14672
f436a26a
DJ
146732003-01-04 Daniel Jacobowitz <drow@mvista.com>
14674
14675 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14676
248f8055
DJ
146772003-01-04 Daniel Jacobowitz <drow@mvista.com>
14678
14679 Suggested by Stewart Brown <sb24@avaya.com>:
14680 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
14681 in recursive calls. Handle TYPE_CODE_TYPEDEF.
14682 (c_type_print_varspec_suffix): Likewise.
14683
72cfdc76
MK
146842003-01-04 Mark Kettenis <kettenis@gnu.org>
14685
bfd260bb
MK
14686 * configure.in: Don't set and AC_SUBST SUBDIRS.
14687 * configure: Regenerated.
14688
72cfdc76
MK
14689 * configure.in: Remove code dealing with shared libraries.
14690 * Makefile.in: Remove HLDFLAGS and HLDENV.
14691 * configure: Regenerated.
14692
c8b8a898
AC
146932003-01-04 Andrew Cagney <ac131313@redhat.com>
14694
14695 * frame.c (deprecated_frame_xmalloc): New function.
14696 (deprecated_set_frame_saved_regs_hack): New function.
14697 (deprecated_set_frame_extra_info_hack): New function.
14698 * frame.h (deprecated_frame_xmalloc): Declare.
14699 (deprecated_set_frame_saved_regs_hack): Declare.
14700 (deprecated_set_frame_extra_info_hack): Declare.
14701
14abd0fb
MK
147022003-01-04 Mark Kettenis <kettenis@gnu.org>
14703
8ee53726
MK
14704 * configure.in: Move code that provides the --enable-gdbtk option
14705 right after the code that handles the --enable-tui option, and
14706 polish it somewhat.
14707 * configure: Regenerated.
14708
14abd0fb
MK
14709 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
14710 AC_CHECK_FUNCS and remove the old check for pread64.
14711 * acinclude.m4 (AC_GNU_SOURCE): New macro.
14712 * acconfig.h (_GNU_SOURCE): Add.
14713 (HAVE_PREAD64): Remove.
14714 * configure, aclocal.m4, config.in: Regenerated.
14715
b2fb4676
AC
147162003-01-03 Andrew Cagney <ac131313@redhat.com>
14717
14718 * alpha-tdep.c: Use get_frame_saved_regs.
14719 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14720 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
14721 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
14722 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
14723 * vax-tdep.c, xstormy16-tdep.c: Ditto.
14724
8dcde887
MK
147252003-01-03 Mark Kettenis <kettenis@gnu.org>
14726
14727 * configure.in: Remove all use of the SUBDIRS variable; add
14728 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
14729 code providing the --enable-multi-ice option, and move it right in
14730 front of the code that checks whether gdbserver is supported.
14731 Polish that too.
14732 * configure: Regenerated.
14733 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14734 @SUBDIRS@.
14735
8ccd593b
AC
147362003-01-03 Andrew Cagney <cagney@redhat.com>
14737
14738 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
14739 * avr-tdep.c, cris-tdep.c: Ditto.
14740 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
14741 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
8ffd9b1b 14742
91151a06
MK
147432003-01-03 Mark Kettenis <kettenis@gnu.org>
14744
14745 * configure.in: Remove --enable-netrom option.
14746 * configure: Regenerated.
14747
8fe84d01
MK
147482003-01-03 Mark Kettenis <kettenis@gnu.org>
14749
14750 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
14751 declaration for `struct re_pattern_buffer' instead.
14752 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
14753
f0394be6
JB
147542003-01-03 J. Brobecker <brobecker@gnat.com>
14755
14756 * mdebugread.c (parse_symbol): Count until the stEnd matching
14757 the structure name.
14758
27e9bf90
MK
147592003-01-02 Mark Kettenis <kettenis@gnu.org>
14760
93d331ba
MK
14761 * configure.in: Remove --with-cpu option.
14762 subscripts. Remove evil changequotes here.
14763 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
14764 * config.in, configure: Regenerated.
8ffd9b1b 14765
27e9bf90
MK
14766 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
14767 * configure.in: Cleanup section that sources GDB and BFD configure
14768 subscripts. Remove evil changequotes here.
14769 * config.in, configure: Regenerated.
14770
50abf9e5
AC
147712003-01-02 Andrew Cagney <ac131313@redhat.com>
14772
14773 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
14774 frame accessor methods.
14775 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
14776 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
14777 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
14778 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
14779 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
14780 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
14781 * z8k-tdep.c: Ditto.
8ffd9b1b 14782
287c1a40
MK
147832003-01-02 Mark Kettenis <kettenis@gnu.org>
14784
f5dbc56d
MK
14785 * configure.in: Remove UI_OUT configuration code.
14786 * ada-lang.c: Update assuming UI_OUT is always true.
14787 * Makefile.in (UIOUT_CFLAGS): Remove.
14788 * configure: Regenerated.
14789 * TODO: Remove blurb about elimination of -DUI_OUT.
14790
627af7ea
MK
14791 * configure.in: Move code that provides the --enable-gdbcli,
14792 --enable-gdbmi options right before the code that handles the
14793 --enable-tui option. Polish a bit.
14794 * configure: Regenerated.
14795
06825bd1
MK
14796 * configure.in: Rewrite check for GNU regex and the
14797 --without-included regex option, and move it into the "Checks for
14798 library functions" section. This makes us use the system regex
14799 again by default on systems with version 2 of the GNU C library.
14800 This was apparently broken.
14801 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
14802 * acconfig.h (USE_INCLUDED_REGEX): Remove.
14803 * config.in, configure: Regenerated.
14804
287c1a40
MK
14805 * configure.in: Move code that provides the --enable-tui option
14806 before the "Checks for libraries" section. Polish the code
14807 somewhat and set need_curses to yes if we build the TUI. Rewrite
14808 code that looks for a library providing termcap functionality to
14809 match more closely what's done in the Readline library, and move
14810 it into to the "Checks for libraries" section.
14811 * configure: Regenerated.
14812 * Makefile.in (TERMCAP): Remove variable.
14813 * config/i386/go32.mh (TERMCAP): Remove variable.
14814
684e56bf
AC
148152003-01-02 Andrew Cagney <ac131313@redhat.com>
14816
14817 * MAINTAINERS: Mention gdb_mbuild.sh.
14818 * gdb_mbuild.sh: Rewrite.
14819
e1ea1d75
MK
148202003-01-02 Mark Kettenis <kettenis@gnu.org>
14821
14822 * configure.in: Fix typo in last change.
14823 * config.in, configure: Regenerated.
14824
1b831c93
AC
148252003-01-02 Andrew Cagney <ac131313@redhat.com>
14826
14827 * valarith.c (value_binop): Delete obsolete code and comments.
14828 * configure.host: Ditto.
14829 * buildsym.h (make_blockvector): Ditto.
14830 * buildsym.c (make_blockvector): Ditto.
14831 * defs.h (enum language): Ditto.
14832 (chill_demangle): Ditto.
14833 * elfread.c (elf_symtab_read): Ditto.
14834 * dwarfread.c (CHILL_PRODUCER): Ditto.
14835 (set_cu_language): Ditto.
14836 (handle_producer): Ditto.
14837 * expprint.c (print_subexp): Ditto.
14838 * gdbtypes.c (chill_varying_type): Ditto.
14839 * gdbtypes.h (builtin_type_chill_bool): Ditto.
14840 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
14841 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
14842 (chill_varying_type): Ditto.
14843 * language.h (_LANG_chill): Ditto.
14844 * language.c (binop_result_type, integral_type): Ditto.
14845 (character_type, string_type, structured_type): Ditto.
14846 (lang_bool_type, binop_type_check): Ditto.
14847 * stabsread.h (os9k_stabs): Ditto.
14848 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
14849 (define_symbol, read_type, read_struct_fields): Ditto.
14850 (read_array_type, read_enum_type, read_huge_number): Ditto.
14851 (read_range_type, start_stabs): Ditto.
14852 * symfile.c (init_filename_language_table): Ditto.
14853 (add_psymbol_with_dem_name_to_list): Ditto.
14854 * symtab.c (symbol_init_language_specific): Ditto.
14855 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
14856 * symtab.h (struct general_symbol_info): Ditto.
14857 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
14858 * typeprint.c (typedef_print): Ditto.
14859 * utils.c (fprintf_symbol_filtered): Ditto.
14860 * valops.c (value_cast, search_struct_field, value_slice): Delete
14861 obsolete code.
14862 (varying_to_slice): Delete function.
14863 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
14864 (varying_to_slice): Delete declaration.
14865 * MAINTAINERS: Update.
14866
8bb2c122
MK
148672003-01-02 Mark Kettenis <kettenis@gnu.org>
14868
97bf5e38
MK
14869 * configure.in: Reorganize "Checks for library functions section"
14870 a bit. Remove check for `btowc' and `isascii' functions.
14871 * configure: Regenerated.
14872
5ee754fc
MK
14873 * acconfig.h (_MSE_INT_H): Remove.
14874 * configure.in: Create "Checks for header files" section, and move
14875 appropriate tests there. Don't check for objlist.h, wchar.h,
14876 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
14877 misdetection fix. Also add "Checks for types", "Checks for
14878 compiler characteristics" and "Checks for library functions"
14879 sections.
14880 * config.in, configure: Regenerated.
14881
8bb2c122
MK
14882 * configure.in: Create "Checks for programs" section, and move
14883 appropriate tests there.
14884
9a156167
MK
148852003-01-01 Mark Kettenis <kettenis@gnu.org>
14886
14887 * configure.in: Create "Checks for libraries" section, and move
14888 appropriate tests there. Cleanup check for wctype in libw. Use
14889 AC_SEARCH_LIBS to see whether we need libsocket.
14890 * configure: Regenerated.
14891
a80e2bcb 14892For older changes see ChangeLog-2002
c906108c
SS
14893\f
14894Local Variables:
14895mode: change-log
14896left-margin: 8
14897fill-column: 74
14898version-control: never
14899End:
This page took 1.137841 seconds and 4 git commands to generate.