1 2003-11-23 Andrew Cagney <cagney@redhat.com>
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.
15 * symfile.c (symbol_file_command): Replace STREQ with strcmp.
16 * elfread.c (elf_symtab_read): Delete STREQ from comment.
18 2003-11-22 Andrew Cagney <cagney@redhat.com>
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.
34 * mips-tdep.c (mips_frame_chain): Delete call to
35 deprecated_inside_entry_file.
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.
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.
55 * frame.c (deprecated_get_frame_context): Delete function.
56 (deprecated_set_frame_context): Delete function.
57 (struct frame_info): Delete member "context".
58 * frame.h (deprecated_get_frame_context): Delete declaration.
59 (deprecated_set_frame_context): Delete declaration.
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.
66 * mips-tdep.c (SIGFRAME_REG_SIZE): Delete macro.
67 (mips_find_saved_regs): Replace SIGFRAME_REG_SIZE with
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.
74 * hppa-tdep.c (hppa_value_returned_from_stack): Delete function.
75 * config/pa/tm-hppa.h (hppa_value_returned_from_stack): Delete
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.
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.
86 * config/powerpc/tm-linux.h (PROLOGUE_FIRSTLINE_OVERLAP): Delete
88 * infrun.c (step_into_function): Delete #ifdef
89 PROLOGUE_FIRSTLINE_OVERLAP code.
90 * symtab.c (find_function_start_sal): Ditto.
92 * remote-rdp.c: Update copyright.
93 (rdp_init): #if 0 references to "target_byte_order".
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.
106 2003-11-21 Kevin Buettner <kevinb@redhat.com>
108 * frv-tdep.c (frv_frame_this_id): Eliminate call to
111 2003-11-20 Mark Kettenis <kettenis@gnu.org>
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.
125 2003-11-20 Jim Blandy <jimb@redhat.com>
127 * osabi.c (_initialize_gdb_osabi): Don't return before registering
128 the 'set osabi' and 'show osabi' commands.
130 2003-11-19 Mark Kettenis <kettenis@gnu.org>
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.
136 2003-11-19 Andrew Cagney <cagney@redhat.com>
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".
144 2003-11-19 Daniel Jacobowitz <drow@mvista.com>
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
153 2003-11-18 Daniel Jacobowitz <drow@mvista.com>
155 * dwarf2read.c (optimized_out, islocal): Remove.
156 (decode_locdesc): Update comments. Don't set optimized_out
159 2003-11-17 Jeff Johnston <jjohnstn@redhat.com>
160 David Mosberger <davidm@hpl.hp.com>
162 * ia64-tdep.c: Include elf.h.
163 [HAVE_LIBUNWIND_IA64_H]: Include libunwind-frame.h and
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().
179 2003-11-16 Daniel Jacobowitz <drow@mvista.com>
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.
185 2003-11-16 Andrew Cagney <cagney@redhat.com>
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.
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
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.
223 2003-11-16 Andrew Cagney <cagney@redhat.com>
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.
252 2003-11-16 Andrew Cagney <cagney@redhat.com>
254 * mips-tdep.c: Replace DEPRECATED_REGISTER_RAW_SIZE with
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.
267 * Makefile.in (dve3900-rom.o, remote-mips.o): Update dependencies.
269 2003-11-16 Mark Kettenis <kettenis@gnu.org>
271 * i386-tdep.h (i386_supply_gregset): Provide prototype.
272 * i386-tdep.c (i386_supply_gregset): Make public.
274 2003-11-16 Andrew Cagney <cagney@redhat.com>
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.
282 2003-11-16 Mark Kettenis <kettenis@gnu.org>
284 * i386-tdep.c (i386_extract_return_value): Don't use bfd_byte.
286 2003-11-16 Andrew Cagney <cagney@redhat.com>
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
300 2003-11-15 Andrew Cagney <cagney@redhat.com>
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.
313 2003-11-15 Andrew Cagney <cagney@redhat.com>
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.
322 * mips-tdep.c: Replace DEPRECATED_REGISTER_VIRTUAL_SIZE with
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.
353 2003-11-15 Andrew Cagney <cagney@redhat.com>
355 * config/sparc/tm-sparc.h (DEPRECATE_USE_REGISTER_NOT_ARG): Rename
356 USE_REGISTER_NOT_ARG.
357 * stabsread.c (define_symbol): Update.
359 2003-11-15 Andrew Cagney <cagney@redhat.com>
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.
369 2003-11-15 Mark Kettenis <kettenis@gnu.org>
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.
383 2003-11-14 Mark Kettenis <kettenis@gnu.org>
385 * gdbarch.sh (skip_solib_resolver): Change into a multi-arch
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
392 * arch-utils.h (generic_in_solib_call_trampoline): Adjust function
395 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
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.
407 2003-11-14 Jeff Johnston <jjohnstn@redhat.com>
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
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.
417 2003-11-14 Ian Lance Taylor <ian@wasabisystems.com>
419 * config/arm/nbsd.mt (TM_FILE): Define.
420 * config/arm/tm-nbsd.h: New file.
422 2003-11-14 Andrew Cagney <cagney@redhat.com>
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.
429 * ppc-linux-tdep.c (ppc_linux_init_abi): Set PPC64's
430 "name_of_malloc" to ".malloc".
432 2003-11-13 Mark Kettenis <kettenis@gnu.org>
434 * config/i386/x86-64linux.mt (TDEPFILES): Add glibc-tdep.o.
436 2003-11-13 David Carlton <carlton@kealia.com>
438 * cp-namespace.c (lookup_namespace_scope): Fix typo in comment.
440 2003-11-13 Andrew Cagney <cagney@redhat.com>
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".
459 2003-11-13 Andrew Cagney <cagney@redhat.com>
461 * ppc-linux-tdep.c (ppc_linux_return_value): Fix parameter order.
463 2003-11-13 Jim Blandy <jimb@redhat.com>
465 * cp-namespace.c: Doc fix.
467 2003-11-12 Michael Snyder <msnyder@redhat.com>
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.
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'.
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.
509 (sh_sh64_register_raw_size): Delete.
510 (sh_sh64_register_virtual_size): Delete.
512 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
514 * dwarf2read.c (struct dwarf2_cu): New type.
516 (dwarf2_build_psymtabs_hard, psymtab_to_symtab_1): Create a
517 dwarf2_cu structure to pass down.
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.
539 2003-11-12 Daniel Jacobowitz <drow@mvista.com>
542 * breakpoint.c (insert_bp_location): Fix a logic error by returning
543 0 after a catchpoint fails.
545 2003-11-11 Michael Chastain <mec.gnu@mindspring.com>
547 * mips-tdep.c (msymbol_size): Delete.
549 2003-11-07 Michael Chastain <mec@shout.net>
551 * symtab.h (struct minimal_symbol): Add size.
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.
564 2003-11-10 Michael Chastain <mec.gnu@mindspring.com>
566 * MAINTAINERS: Change my e-mail address.
568 2003-11-10 Andrew Cagney <cagney@redhat.com>
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.
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.
594 * arch-utils.h, arch-utils.c: Fix typo in comment.
596 * arch-utils.c (deprecated_select_gdbarch_hack): Delete function.
597 (gdbarch_from_bfd): Call gdbarch_find_by_info.
598 (set_gdbarch_from_file): Call
599 "deprecated_current_gdbarch_select_hack".
601 2003-11-09 Andrew Cagney <cagney@redhat.com>
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.
606 (deprecated_current_gdbarch_select_hack): New function.
607 * gdbarch.c: Re-generate.
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.
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.
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.
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.
637 2003-11-09 Mark Kettenis <kettenis@gnu.org>
638 David S. Miller <davem@redhat.com>
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.
655 2003-11-09 Andrew Cagney <cagney@redhat.com>
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.
666 2003-11-09 Andrew Cagney <cagney@redhat.com>
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.
677 2003-11-09 Mark Kettenis <kettenis@gnu.org>
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.
686 2003-11-07 Andrew Cagney <cagney@redhat.com>
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.
727 2003-11-07 Andrew Cagney <cagney@redhat.com>
729 * bcache.h: Update copyright. Add comments on bcache VS hashtab.
730 * bcache.c (struct bstring): Make "length" an unsigned short, add
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.
737 2003-11-07 Andrew Cagney <cagney@redhat.com>
739 * inftarg.c (child_xfer_partial): New function
740 (init_child_ops): Set "to_xfer_partial".
742 2003-11-07 Andrew Cagney <cagney@redhat.com>
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
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".
781 2003-11-07 Mark Kettenis <kettenis@gnu.org>
783 * dwarf2-frame.c (dwarf2_build_frame_info): Wrap comment.
785 * fbsd-proc.c (read_mapping): Use sscanf and fgets instead of
788 2003-11-07 Mark Kettenis <kettenis@gnu.org>
790 * fbsd-proc.c: Fix formatting.
792 2003-11-06 Kevin Buettner <kevinb@redhat.com>
794 * frv-tdep.c (first_pseudo_regnum, iacc0_regnum, frv_num_pseudo_regs):
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.
803 2003-11-06 Andrew Cagney <cagney@redhat.com>
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.
819 2003-11-06 Andrew Cagney <cagney@redhat.com>
820 Jeff Johnston <jjohnstn@redhat.com>
822 * target.c (add_target): Only set "to_xfer_partial" when NULL.
823 (init_dummy_target): Set "to_xfer_partial".
825 2003-11-06 Andrew Cagney <cagney@redhat.com>
827 * stack.c (return_command): Warn when STRUCT_CONVENTION, and not
830 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
832 * breakpoint.c (insert_bp_location, allocate_bp_location): Make
835 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
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.
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.
848 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
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.
859 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
861 * breakpoints.c (insert_bp_location): New function, broken out
862 from insert_breakpoints. Work on an bp_location instead of a
864 (insert_breakpoints): Use it.
866 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
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
877 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
879 * breakpoint.c (read_memory_nobpt): Use ALL_BP_LOCATIONS
880 instead of ALL_BREAKPOINTS. Check for software breakpoints only.
882 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
884 * breakpoint.c (allocate_bp_location): Take bpt and bp_type
885 arguments. Initialize owner and type for the new breakpoint
887 (set_raw_breakpoint): Update call to allocate_bp_location.
889 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
891 * breakpoint.h (struct bp_location): Add a chain pointer.
892 * breakpoint.c (ALL_BP_LOCATIONS, ALL_BP_LOCATIONS_SAFE): New
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.
899 2003-11-06 Daniel Jacobowitz <drow@mvista.com>
901 * breakpoint.h (enum bp_loc_type, struct bp_location): New.
902 (struct breakpoint): Remove address, shadow_contents, inserted,
903 requested_address, and duplicate. Add a struct bp_location.
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.
922 2003-11-05 Andrew Cagney <cagney@redhat.com>
924 * config/sparc/tm-sparc.h (FRAME_STRUCT_ARGS_ADDRESS): Delete
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.
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.
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.
956 * arch-utils.h (generic_cannot_extract_struct_value_address):
958 * wince.c (_initialize_wince): Fix multi-line string.
959 * ia64-tdep.c (floatformat_valid): Convert to ISO C.
961 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
963 * top.c (execute_command): Fix broken logic for command execution
964 while inferior is running in async mode.
966 2003-11-06 Mark Kettenis <kettenis@gnu.org>
968 * dwarf2-frame.c (execute_cfa_program): Mark register as
969 REG_SAVED_REG for DW_CFA_register opcode.
971 2003-11-05 Mark Kettenis <kettenis@gnu.org>
973 * amd64fbsd-tdep.c (amd64fbsd_sc_reg_offset): Adjust offset of
974 %rsp, %rip and %eflags to match ABI-change.
976 2003-11-05 Jeff Johnston <jjohnstn@redhat.com>
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
984 2003-11-05 Kevin Buettner <kevinb@redhat.com>
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.
996 2003-11-05 Andrew Cagney <cagney@redhat.com>
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.
1007 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1009 * coffread.c (coff_symtab_read): Remove passing of info parameter
1010 to prim_record_minimal_symbol_and_info.
1012 2003-11-05 Elena Zannoni <ezannoni@redhat.com>
1014 * coffread.c (process_coff_symbol): Delete CXUX_TARGET macro use.
1015 (decode_base_type): Delete ifdeffed out code.
1017 2003-11-04 Andrew Cagney <cagney@redhat.com>
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".
1033 2003-11-04 Michael Snyder <msnyder@redhat.com>
1035 * MAINTAINERS: Remove myself as owner of breakpoints and
1038 2003-11-03 Corinna Vinschen <vinschen@redhat.com>
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.
1046 2003-11-03 Andrew Cagney <cagney@redhat.com>
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.
1056 2003-11-03 Andrew Cagney <cagney@redhat.com>
1058 * exec.c (xfer_memory): Eliminate xfer_fn.
1060 2003-10-31 Kevin Buettner <kevinb@redhat.com>
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.
1076 2003-10-31 Andrew Cagney <cagney@redhat.com>
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.
1086 2003-10-31 Jim Blandy <jimb@redhat.com>
1088 * elfread.c (elf_symtab_read): Allocate correct number of tail
1089 elements to sectinfo structure. (Fix from Woody LaRue.)
1091 2003-10-31 Andrew Cagney <cagney@redhat.com>
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.
1098 2003-10-31 Mark Kettenis <kettenis@gnu.org>
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
1105 2003-10-31 Andrew Cagney <cagney@redhat.com>
1107 * s390-tdep.c (s390_cannot_extract_struct_value_address): New
1109 (s390_gdbarch_init): Set extract_struct_value_address.
1110 * arch-utils.c (generic_cannot_extract_struct_value_address):
1112 * arch-utils.h (generic_cannot_extract_struct_value_address):
1115 2003-10-31 Mark Kettenis <kettenis@gnu.org>
1117 * i386-linux-nat.c (fetch_core_registers): Remove.
1118 (linux_elf_core_fns): Remove.
1119 (_initialize_i386_linux_nat): Remove.
1121 2003-10-31 Andrew Cagney <cagney@redhat.com>
1123 * solib-svr4.c: Update copyright. Include "bfd-target.h" and
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.
1131 2003-10-31 Andrew Cagney <cagney@redhat.com>
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.
1142 2003-10-31 Andrew Cagney <cagney@redhat.com>
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.
1151 2003-10-31 Andrew Cagney <cagney@redhat.com>
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
1160 (default_xfer_partial): Replace "default_write_partial".
1161 (default_read_partial): Delete.
1162 (target_read_partial, target_write_partial): Call
1164 * remote.c (init_remote_ops): Set "to_xfer_partial".
1165 (init_remote_async_ops): Ditto.
1166 (remote_xfer_partial): Replace "remote_read_partial".
1168 2003-10-31 Mark Kettenis <kettenis@gnu.org>
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.
1174 2003-10-30 Mark Kettenis <kettenis@gnu.org>
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.
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.
1186 * config/i386/fbsd64.mt (TDEPFILES): Add corelow.o.
1187 * config/i386/fbsd64.mh (NATDEPFILES): Remove corelow.o and
1190 * fbsd-proc.c (fbsd_make_corefile_notes): Put a "FreeBSD" label in
1193 2003-10-29 Mark Kettenis <kettenis@gnu.org>
1195 * config/i386/fbsd.mt (TDEPFILES): Add corelow.o.
1196 * config/i386/fbsd.mh (NATDEPFILES): Remove corelow.o and
1199 * fbsd-proc.c (fbsd_make_corefile_notes): Remove unecessary casts.
1201 * corelow.c: Include "arch-utils.h", "regset.h" and
1203 (core_gdbarch): New variable.
1204 (sniff_core_bfd): Don't sniff if we have support for register sets
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.
1213 2003-10-29 Andrew Cagney <cagney@redhat.com>
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.
1218 2003-10-29 Mark Kettenis <kettenis@gnu.org>
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.
1224 2003-10-28 Jeff Johnston <jjohnstn@redhat.com>
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.
1234 2003-10-27 Mark Kettenis <kettenis@gnu.org>
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.
1242 2003-10-27 Andrew Cagney <cagney@redhat.com>
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.
1248 2003-10-26 Kevin Buettner <kevinb@redhat.com>
1250 * frv-tdep.c (frv_register_raw_size, frv_register_virtual_size):
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().
1265 2003-10-26 Mark Kettenis <kettenis@gnu.org>
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
1271 (do_child_fetch_inferior_registers): Use I387_FISEG_REGNUM and
1272 I387_FOP_REGNUM instead of FCS_REGNUM and FOP_REGNUM. Define and
1273 undefine I387_ST0_REGNUM.
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.
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.
1287 2003-10-24 Andrew Cagney <cagney@redhat.com>
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.
1296 2003-10-24 Andrew Cagney <cagney@redhat.com>
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.
1304 * osabi.c (gdbarch_init_osabi): Add comment on 32-bit vs 64-bit.
1305 (can_run_code_for): Use the OO term "singleton".
1307 2003-10-23 Andrew Cagney <cagney@redhat.com>
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.
1317 2003-10-23 Jeff Johnston <jjohnstn@redhat.com>
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
1348 2003-10-23 Jim Blandy <jimb@redhat.com>
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
1353 (can_run_code_for): New function.
1355 2003-10-22 James E Wilson <wilson@specifixinc.com>
1357 * MAINTAINERS: Move myself from paper trail section back to write
1358 after approval section.
1360 2003-10-22 Andrew Cagney <cagney@redhat.com>
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.
1378 2003-10-22 Andrew Cagney <cagney@redhat.com>
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.
1392 2003-10-22 Andrew Cagney <cagney@redhat.com>
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.
1409 2003-10-22 Andrew Cagney <cagney@redhat.com>
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".
1421 2003-10-21 Elena Zannoni <ezannoni@redhat.com>
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.
1431 2003-10-21 Andrew Cagney <cagney@redhat.com>
1433 * target.c (errno): Delete extern declaration.
1435 2003-10-20 Jeff Johnston <jjohnstn@redhat.com>
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.
1441 2003-10-20 Michael Chastain <mec@shout.net>
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.
1452 2003-10-20 Andrew Cagney <cagney@redhat.com>
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.
1468 2003-10-20 Andrew Cagney <cagney@redhat.com>
1470 * symtab.c: Replace "struct sec" with "struct bfd_section".
1471 * objfiles.c, linespec.c, blockframe.c, block.c: Ditto.
1473 2003-10-19 Michael Chastain <mec@shout.net>
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.
1480 2003-10-19 Mark Kettenis <kettenis@gnu.org>
1482 * amd64fbsd-nat.c (fetch_inferior_registers,
1483 store_inferior_registers): Remove functions.
1484 * config/i386/fbsd64.mh (NATDEPFILES): Add amd64bsd-nat.o.
1486 2003-10-18 Mark Kettenis <kettenis@gnu.org>
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):
1499 * NEWS (New native configurations): Mention NetBSD/amd64.
1501 2003-10-17 Michael Chastain <mec@shout.net>
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.
1628 2003-10-17 Andrew Cagney <cagney@redhat.com>
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.
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".
1655 2003-10-17 Jeff Johnston <jjohnstn@redhat.com>
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.
1664 2003-10-17 Andrew Cagney <cagney@redhat.com>
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".
1672 2003-10-17 Andrew Cagney <cagney@redhat.com>
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".
1684 2003-10-17 Shrinivas Atre <shrinivasa@KPITCummins.com>
1686 * gdb/config/h8300/tm-h8300.h (h8300_normal_mode): Add external
1688 * gdb/h8300-tdep.c (BINWORD): Update BINWORD for h8300_normal_mode
1689 (h8300_examine_prologue): Use h8300_normal_mode flag
1690 (h8300_gdbarch_init): Set architecture info for normal mode
1692 2003-10-16 Daniel Jacobowitz <drow@mvista.com>
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.
1704 2003-10-16 Andrew Cagney <cagney@redhat.com>
1706 * infrun.c (handle_inferior_event): Add comment about
1707 "frame_id_inner" being too weak.
1709 2003-10-16 Elena Zannoni <ezannoni@redhat.com>
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
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.
1720 2003-10-16 Kei Sakamoto <sakamoto.kei@renesas.com>
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.
1728 2003-10-15 Jeff Johnston <jjohnstn@redhat.com>
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.
1736 2003-10-15 Andrew Cagney <cagney@redhat.com>
1738 * remote.c (remote_search): Delete function.
1739 * target.h (target_search): Delete disabled macro.
1740 (struct target_ops): Delete disabled field "to_search".
1742 2003-10-14 Kevin Buettner <kevinb@redhat.com>
1744 * frv-tdep.c (frv_frame_this_id): Call inside_entry_func()
1745 instead of deprecated_inside_entry_file().
1747 2003-10-14 Corinna Vinschen <vinschen@redhat.com>
1749 * sh-tdep.c: Fix copy/paste hangover in comment.
1750 (sh_push_dummy_call_fpu): Accomodate double passing in little endian
1752 (sh3e_sh4_extract_return_value): Ditto.
1754 2003-10-13 Richard Henderson <rth@redhat.com>
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.
1760 2003-10-13 Kevin Buettner <kevinb@redhat.com>
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''
1767 2003-10-13 Kevin Buettner <kevinb@redhat.com>
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
1781 2003-10-13 Kevin Buettner <kevinb@redhat.com>
1783 * gdbarch.sh (ADJUST_BREAKPOINT_ADDRESS): New method.
1784 * gdbarch.h, gdbarch.c: Regenerate.
1786 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1788 * i386bsd-tdep.c (i386bsd_init_abi): Use ARRAY_SIZE to initialize
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
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
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.
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.
1820 * x86-64-tdep.c (x86_64_regset_from_core_section): New function.
1821 (x86_64_init_abi): Initialize regset_from_core_section if
1824 * i386-tdep.c (i386_regset_from_core_section): New function.
1825 (i386_gdbarch_init): Initialize regset_from_core_section if
1827 * i386-tdep.h (i386_regset_from_core_section): New declaration.
1829 * i386-tdep.h (struct regset): Declare opaque.
1831 * gdbarch.sh (regset_from_core_section): New method.
1832 (struct regset): Declare opaque.
1833 * gdbarch.c, gdbarch.h: Regenerated.
1835 2003-10-11 Alan Modra <amodra@bigpond.net.au>
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.
1841 2003-10-11 Mark Kettenis <kettenis@gnu.org>
1843 * gdbarch.sh: Remove trailing whitepsace from comments.
1845 2003-10-08 Roland McGrath <roland@redhat.com>
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.
1853 2003-10-10 Michael Snyder <msnyder@redhat.com>
1855 * d10v-tdep.c: Fix typo in comment.
1857 2003-10-10 Andrew Cagney <cagney@redhat.com>
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
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.
1879 2003-10-10 J. Brobecker <brobecker@gnat.com>
1881 * blockframe.c (inside_main_func): No longer use symbol_lookup()
1882 to lookup the main function symbol.
1884 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1886 * sh-tdep.c (sh_treat_as_flt_p): New function to recognize float
1888 (sh_push_dummy_call_fpu): Fix argument passing rules.
1889 (sh3e_sh4_extract_return_value): Call sh_treat_as_flt_p to recognize
1891 (sh3e_sh4_store_return_value): Ditto.
1893 2003-10-10 Elena Zannoni <ezannoni@redhat.com>
1895 * sh-tdep.c (sh_use_struct_convention): Clarify one case in
1898 2003-10-10 Corinna Vinschen <vinschen@redhat.com>
1900 * sh-tdep.c (sh_use_struct_convention): Clean up to have a
1901 more readable code. Accomodate passing of bitfields.
1903 2003-10-10 Andrew Cagney <cagney@redhat.com>
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.
1914 2003-10-10 Kei Sakamoto <sakamoto.kei@renesas.com>
1916 * NEWS: Replace "Hitachi" and "Mitsubishi" with "Renesas".
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.
1927 * sh64-tdep.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.
1937 2003-10-09 Andrew Cagney <cagney@redhat.com>
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
1944 2003-10-09 Andrew Cagney <cagney@redhat.com>
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.
1955 2003-10-09 Andrew Cagney <cagney@redhat.com>
1957 * MAINTAINERS: Mark m32r-elf as buildable with -Werror.
1959 2003-10-09 Michael Snyder <msnyder@redhat.com>
1961 * frame.h: Fix typo in comment.
1962 * dummy-frame.c: Fix typo in comment.
1963 * d10v-tdep.c: Random whitespace/comment tweaks.
1965 2003-10-09 Elena Zannoni <ezannoni@redhat.com>
1967 * sh-tdep.c (sh_gdbarch_init): Delete setting of push_dummy_code.
1968 (sh_push_dummy_code): Delete function, it's only used for dummy calls
1971 Based on input by Stephen Clarke (stephen.clarke@superh.com):
1972 * sh-tdep.c (sh_use_struct_convention): Add comment explaining ABI
1975 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1977 * remote-mips.c (mips_initialize): Remove unneeded call to
1978 get_selected_frame. Suggested by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
1980 2003-10-09 Daniel Jacobowitz <drow@mvista.com>
1982 * dwarf2expr.c (execute_stack_op): Don't treat the frame base as
1985 2003-10-08 Jeff Johnston <jjohnstn@redhat.com>
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.
1992 2003-10-08 Kei Sakamoto <sakamoto.kei@renesas.com>
1994 * m32r-tdep.c : Include "dis-asm.h".
1995 * Makefile.in (m32r-tdep.o): Update dependencies.
1997 2003-10-06 J. Brobecker <brobecker@gnat.com>
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
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.
2012 2003-10-06 J. Brobecker <brobecker@gnat.com>
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.
2031 2003-10-06 Andrew Cagney <cagney@redhat.com>
2033 * ppc-sysv-tdep.c: Re-indent.
2035 2003-10-06 J. Brobecker <brobecker@gnat.com>
2037 * language.h (default_word_break_characters): Add prototype.
2038 * language.c (default_word_break_characters): New function.
2040 2003-10-06 Andreas Schwab <schwab@suse.de>
2042 * i386-tdep.c (i386_analyze_frame_setup): Also handle xorl/subl
2045 2003-10-06 Andrew Cagney <cagney@redhat.com>
2047 * Makefile.in (ALLDEPFILES): Remove "z8k-tdep.c" and
2049 (z8k-tdep.o): Delete custom build rule.
2051 2003-10-06 Andrew Cagney <cagney@redhat.com>
2053 * Makefile.in: Update all dependencies.
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.
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.
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.
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.
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.
2098 2003-10-06 David Lecomber <dsl@sources.redhat.com>
2100 * f-valprint.c: Reformatting
2102 2003-10-06 Mark Kettenis <kettenis@gnu.org>
2104 * x86-64-tdep.c: Remove duplicate comment.
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
2111 2003-10-05 Mark Kettenis <kettenis@gnu.org>
2113 * x86-64-tdep.c: Include "regset.h".
2115 * i386-tdep.h (struct gdbarch_tdep): Add members gregset,
2116 gregset_reg_offset, gregset_num_regs, sizeof_gregset, 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
2123 * x86-64-tdep.c (x86_64_supply_fpregset): New function.
2124 (x86_64_init_abi): Initialize TDEP->sizeof_fpregset.
2126 2003-10-03 Andrew Cagney <cagney@redhat.com>
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.
2142 2003-10-03 Andrew Cagney <cagney@redhat.com>
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"
2148 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
2150 * sh-tdep.c (sh_push_dummy_call_fpu): Initialize flt_argreg and
2151 reg_size to keep GCC silent.
2153 2003-10-03 Corinna Vinschen <vinschen@redhat.com>
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
2161 2003-10-03 Mark Kettenis <kettenis@gnu.org>
2163 * dwarf2-frame.c (dwarf2_build_frame_info): Fix comment.
2165 2003-10-02 Andrew Cagney <cagney@redhat.com>
2167 * gdbarch.sh (DEPRECATED_REGISTER_RAW_SIZE): Rename
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.
2187 2003-10-02 Jim Blandy <jimb@redhat.com>
2189 * dwarf2read.c (struct die_info): Doc fix.
2191 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
2193 * sh-tdep.c: Running thru gdb_indent.sh.
2195 2003-10-02 Corinna Vinschen <vinschen@redhat.com>
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
2201 (sh_init_flt_argreg): New function.
2202 (sh_next_flt_argreg): Ditto.
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.
2208 2003-10-01 Andrew Cagney <cagney@redhat.com>
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".
2219 2003-09-30 Elena Zannoni <ezannoni@redhat.com>
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.
2225 2003-10-01 Andrew Cagney <cagney@redhat.com>
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.
2236 2003-09-30 David Carlton <carlton@kealia.com>
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
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.
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)
2254 (read_namespace, read_subroutine_type, dump_die): Ditto.
2256 2003-09-30 Andrew Cagney <cagney@redhat.com>
2258 * rs6000-tdep.c (rs6000_gdbarch_init): Set the PowerOpen red zone
2261 2003-09-30 Andrew Cagney <cagney@redhat.com>
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.
2270 2003-09-29 Andrew Cagney <cagney@redhat.com>
2272 * gdbarch.sh (DEPRECATED_REGISTER_VIRTUAL_TYPE): Rename
2273 REGISTER_VIRTUAL_TYPE.
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.
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.
2283 2003-09-29 J. Brobecker <brobecker@gnat.com>
2285 * infcall.c (call_function_by_hand): Fix build failure
2286 introduced in the previous change to this file.
2288 2003-09-29 Andrew Cagney <cagney@redhat.com>
2290 * NEWS: Mention Objective-C.
2292 2003-09-29 Jerome Guitton <guitton@act-europe.fr>
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.
2299 2003-09-28 Andrew Cagney <cagney@redhat.com>
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.
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.
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.
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.
2330 2003-09-28 Mark Kettenis <kettenis@gnu.org>
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
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
2344 * amd64fbsd-nat.c (supply_fpregset, fetch_inferior_registers):
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):
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.
2359 2003-09-27 Mark Kettenis <kettenis@gnu.org>
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
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
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
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
2401 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Remove defines.
2402 (I387_ST0_REGNUM): Define.
2404 * regcache.h (get_regcache_arch): New prototype.
2405 * regcache.c (get_regcache_arch): New function.
2407 * x86-64-tdep.c (x86_64_store_return_value): Remove spurious
2410 * i386-tdep.c (i386_num_register_names, i386_num_mmx_regs):
2411 Initialize using ARRAY_SIZE.
2413 2003-09-27 Andrew Cagney <cagney@redhat.com>
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.
2429 2003-09-26 Mark Kettenis <kettenis@gnu.org>
2431 * regset.h: New file.
2432 * Makefile.in (regset_h): Add.
2434 2003-09-25 Andrew Cagney <cagney@redhat.com>
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.
2444 2003-09-25 Andrew Cagney <cagney@redhat.com>
2446 * NEWS: Mention the new backtrace mechanism, DWARF 2 CFI, hosted
2447 file I/O, multi-arch, TLS and NPTL, DWARF 2 Location Expressions,
2449 * PROBLEMS: Mention that mips*-*-*, powerpc*-*-*, sparc*-*-* and
2450 arm*-*-* do not use the new frame code.
2452 2003-09-25 David Carlton <carlton@kealia.com>
2454 * c-exp.y: Remove 'register' declarations.
2455 * f-exp.y, jv-exp.y, m2-exp.y, objc-exp.y, p-exp.y: Ditto.
2457 2003-09-25 David Carlton <carlton@kealia.com>
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).
2474 2003-09-25 Daniel Jacobowitz <drow@mvista.com>
2476 * stack.c: Include "reggroups.h".
2477 (frame_info): Only display registers in all_reggroup.
2478 * Makefile.in (stack.o): Update dependencies.
2480 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
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.
2486 2003-09-25 Jerome Guitton <guitton@act-europe.fr>
2488 * MAINTAINERS (write after approval): Add myself.
2490 2003-09-25 Andreas Schwab <schwab@suse.de>
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.
2496 2003-09-25 Corinna Vinschen <vinschen@redhat.com>
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.
2521 (sh_nofp_frame_init_saved_regs): Remove.
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
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.
2545 2003-09-24 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2547 * parser-defs.h (struct exp_descriptor): New definition, containing
2548 language-specific info for printing, prefixifying, dumping, and
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.
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.
2563 * parse.c (operator_length): Move most code to new
2564 operator_length_standard function. Use language-specific information.
2565 (operator_length_standard): New function taking most code from
2567 (exp_descriptor_standard): New constant.
2569 * expression.h (enum exp_opcode): Add definitions of OP_EXTENDED0
2570 and OP_EXTENDED_LAST.
2572 * expprint.c (print_subexp): Use language-specific print_subexp.
2573 Make global; remove static declaration.
2574 Move most code to print_subexp_standard.
2575 (print_subexp_standard): New function, containing code formerly in
2577 (op_name): Add expression to argument signature.
2578 Use langauge-specific op_name.
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.
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.
2602 * jv-lang.c (exp_descriptor_java): New variable, containing
2603 Java-specific expression evaluator.
2604 (java_language_defn): Add la_exp_desc field and remove evaluate_exp
2606 * scm-lang.c (exp_descriptor_scm): New variable, containing
2607 Scheme-specific expression evaluator.
2608 (scm_language_defn): Add la_exp_desc field and remove evaluate_exp
2610 * objc-lang.c (print_object_command): Take evaluate_exp from the
2613 * Makefile.in (eval.o): Add dependency on parser-defs.h.
2615 * eval.c: Include parser-defs.h for the full declaration of
2617 (evaluate_subexp): Get evaluate_exp out of la_exp_desc field.
2619 2003-09-23 Paul N. Hilfinger <hilfingr@nile.gnat.com>
2621 * parser-defs.h (operator_length): Declare.
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.
2626 (operator_length): New function absorbing most code from
2628 (prefixify_subexp): Remove large case and use operator_length instead.
2629 (parse_exp_1): Use renamings:
2630 dump_prefix_expression => dump_raw_expression and
2631 dump_postfix_expression => dump_prefix_expression.
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.
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.
2642 Remove attempt to print the expression via print_expression: it can't
2643 work before the expression is prefixified.
2644 (dump_raw_expression): Renamed from dump_prefix_expression.
2645 (dump_postfix_expression): Rename to dump_prefix_expression, since
2646 that's what it does.
2647 Remove 'note' parameter, since this routine must be used on
2648 prefixified expression.
2649 (dump_prefix_expression): Renamed from dump_postfix_expression.
2651 2003-09-22 Jim Blandy <jimb@redhat.com>
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.
2658 2003-09-22 Michael Chastain <mec@shout.net>
2660 * MAINTAINERS: Rename gdb.c++ to gdb.cp.
2662 2003-09-22 Jeff Johnston <jjohnstn@redhat.com>
2664 * top.c (quit_force): Fix indirect call to quit_target so
2665 a struct qt_args pointer is passed.
2667 2003-09-22 Andrew Cagney <cagney@redhat.com>
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
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
2677 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2678 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Delete
2680 (DEPRECATED_INIT_FRAME_PC): Delete macro.
2682 2003-09-22 Anthony Green <green@redhat.com>
2684 * monitor.c (monitor_expect): Delete unused conflicting targ_ops
2687 2003-09-20 Andrew Cagney <cagney@redhat.com>
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.
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.
2705 2003-09-19 Andrew Cagney <cagney@redhat.com>
2707 * sparcnbsd-nat.c (getregs_supplies): Rename NPC_REGNUM to
2708 DEPRECATED_NPC_REGNUM.
2709 * sparc64nbsd-nat.c (getregs_supplies): Ditto.
2711 2003-09-19 Christopher Faylor <cgf@redhat.com>
2713 * win32-nat.c (mappings): Remove HAVE_SSE conditional.
2715 2003-09-19 Jim Blandy <jimb@redhat.com>
2717 * macrotab.c (macro_include): Use the correct comparison to find
2718 the appropriate place for this inclusion in the list.
2720 2003-09-19 Andrew Cagney <cagney@redhat.com>
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.
2733 2003-09-19 Andrew Cagney <cagney@redhat.com>
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"
2740 (round_up, round_down): Delete functions.
2741 * mips-tdep.c: Replace ROUND_UP and ROUND_DOWN with "align_up" and
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
2750 (ROUND_UP, ROUND_DOWN): Delete macros.
2752 2003-09-18 J. Brobecker <brobecker@gnat.com>
2754 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Remove a
2755 hard-coded constant. Use the proper machine name instead.
2757 2003-09-17 Andrew Cagney <cagney@redhat.com>
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.
2771 2003-09-17 Jim Blandy <jimb@redhat.com>
2773 * Makefile.in (dis_asm_h): Note that this #includes "bfd.h".
2775 2003-09-17 Andrew Cagney <cagney@redhat.com>
2777 * ppcnbsd-tdep.c (ppcnbsd_use_struct_convention): New function.
2778 (ppcnbsd_init_abi): Set "use_struct_convention" to
2779 "ppcnbsd_use_struct_convention".
2781 2003-09-17 Mark Kettenis <kettenis@gnu.org>
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.
2792 2003-09-17 Andrew Cagney <cagney@redhat.com>
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.
2801 2003-09-17 Andrew Cagney <cagney@redhat.com>
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.
2820 2003-09-16 Andrew Cagney <cagney@redhat.com>
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
2830 * ppc-sysv-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
2833 2003-09-16 Andrew Cagney <cagney@redhat.com>
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.
2845 2003-09-16 Corinna Vinschen <vinschen@redhat.com>
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.
2862 2003-09-15 Andrew Cagney <cagney@redhat.com>
2864 * doublest.c (convert_floatformat_to_doublest): No longer need to
2865 cast "exp_bias" to an int. Reverts 2002-12-04 change.
2867 2003-09-15 Daniel Jacobowitz <drow@mvista.com>
2869 * values.c (unpack_double): Call floatformat_is_valid.
2871 2003-09-15 Mark Kettenis <kettenis@gnu.org>
2873 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Change type of
2874 ps_strings into a long.
2876 * amd64fbsd-nat.c (_initialize_amd64fbsd_nat): Rename from
2877 _initialize_am64fbsd_nat.
2879 2003-09-15 Kevin Buettner <kevinb@redhat.com>
2881 * dwarf2read.c (dwarf2_get_pc_bounds): Complain if offset
2882 associated with DW_AT_ranges attribute is out of bounds.
2884 2003-09-15 David Lecomber <dsl@sources.redhat.com>
2886 * f-valprint.c: Apply array element printing limits to multi-dimensional arrays
2888 2003-09-14 Michael Chastain <mec@shout.net>
2890 * config/m68k/nm-apollo68v.h: Delete.
2891 * config/m68k/xm-apollo68v.h: Delete.
2893 2003-09-14 Andrew Cagney <cagney@redhat.com>
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.
2899 2003-09-14 Andrew Cagney <cagney@redhat.com>
2901 * config/djgpp/fnchange.lst: Rename "amd64fbsd-tdep.c" and
2902 "amd64fbsd-nat.c" to "a64fb-tdep.c" and "a64fb-nat.c".
2904 2003-09-14 Andrew Cagney <cagney@redhat.com>
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.
2930 2003-09-13 Andrew Cagney <cagney@redhat.com>
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.
2938 2003-09-14 Mark Kettenis <kettenis@gnu.org>
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.
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.
2956 2003-09-13 Andrew Cagney <cagney@redhat.com>
2958 * values.c (using_struct_return): Delete "function" and "funcaddr"
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.
2966 2003-09-13 Christopher Faylor <cgf@redhat.com>
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.
2973 2003-09-13 Mark Kettenis <kettenis@gnu.org>
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.
2981 * Makefile.in (xm-i386-sv32.h, tm-i386gas.h): Remove.
2983 2003-09-12 Christopher Faylor <cgf@redhat.com>
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.
2990 2003-09-12 Jim Blandy <jimb@redhat.com>
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.
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
3000 * dbxread.c (read_dbx_symtab): Add FIXME about finding section
3001 offsets for global and static variables.
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
3009 2003-09-12 Mark Kettenis <kettenis@gnu.org>
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.
3018 2003-09-12 Andrew Cagney <cagney@redhat.com>
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.
3023 2003-09-12 Andrew Cagney <cagney@redhat.com>
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.
3058 2003-09-12 Jeff Johnston <jjohnstn@redhat.com>
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.
3064 2003-09-11 David Carlton <carlton@kealia.com>
3066 * buildsym.c (finish_block): Use allocate_block to allocate the
3068 * mdebugread.c (new_block): Add FIXME.
3070 2003-09-11 David Carlton <carlton@kealia.com>
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,
3084 (lookup_symbol_file): Look in possible namespace blocks when
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
3097 * symfile.h: Update declaration of add_psymbol_to_list.
3098 * symfile.c (add_psymbol_to_list): Return the partial symbol in
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
3104 (add_partial_symbol): If necessary, scan mangled names for names
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.
3118 2003-09-11 Andrew Cagney <cagney@redhat.com>
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.
3127 2003-09-11 Elena Zannoni <ezannoni@redhat.com>
3129 * symfile.c (symbol_file_add_with_addrs_or_offsets): Make sure
3130 orig_addrs is set up properly.
3132 2003-09-11 Andrew Cagney <cagney@redhat.com>
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
3146 2003-09-11 Daniel Jacobowitz <drow@mvista.com>
3148 * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Variables in a
3149 register do need a frame.
3151 2003-09-11 Andrew Cagney <cagney@redhat.com>
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".
3169 2003-09-10 J. Brobecker <brobecker@gnat.com>
3171 * hppa-tdep.c: Include "dis-asm.h". Fixes a build failure.
3172 * Makefile.in (hppa-tdep.o): Update dependencies.
3174 2003-09-10 James E Wilson <wilson@specifixinc.com>
3176 * MAINTAINERS: Change my e-mail address. Move to paper trail
3179 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3181 * MAINTAINERS (frv): New ISA entry.
3183 2003-09-10 Kevin Buettner <kevinb@redhat.com>
3185 * frv-tdep.c (dis-asm.h): Include.
3186 * Makefile.in (frv-tdep.o): Update dependencies.
3188 2003-09-09 Jeff Johnston <jjohnstn@redhat.com>
3190 * ia64-tdep.c (ia64_sigtramp_frame_init_saved_regs):
3191 Fix typo for high range of floating registers.
3193 2003-09-09 David Carlton <carlton@kealia.com>
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
3200 (add_partial_namespace): New.
3201 (add_partial_enumeration, locate_pdi_sibling): Ditto.
3203 2003-09-09 Andrew Cagney <cagney@redhat.com>
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.
3210 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete function.
3211 (rs6000_push_dummy_call): Set the "TOC" register.
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".
3217 2003-09-09 Ian Lance Taylor <ian@wasabisystems.com>
3219 * MAINTAINERS: Update my e-mail address.
3221 2003-09-09 Andrew Cagney <cagney@redhat.com>
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.
3227 2003-09-09 Andrew Cagney <cagney@redhat.com>
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".
3237 2003-09-09 Andrew Cagney <cagney@redhat.com>
3239 * sh64-tdep.c (sh64_push_return_address): Use ENTRY_POINT_ADDRESS
3240 instead of CALL_DUMMY_ADDRESS.
3242 2003-09-09 Paul N. Hilfinger <hilfingr@gnat.com>
3244 * p-lang.c: Eliminate "register".
3246 * expprint.c: Ditto.
3249 * language.c: Ditto.
3252 * scm-lang.c: Ditto.
3253 * objc-lang.c: Ditto.
3255 2003-09-09 Nick Clifton <nickc@redhat.com>
3257 * v850-tdep.c (v850_processor_type_table): Add bfd_mach_v850e1.
3259 2003-09-04 Andrew Cagney <cagney@redhat.com>
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.
3302 2003-09-08 Andrew Cagney <cagney@redhat.com>
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.
3322 2003-09-08 Andrew Cagney <cagney@redhat.com>
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
3331 (dwarf2_frame_prev_register): Update. Handle REG_UNSPECIFIED.
3333 2003-09-08 Andrew Cagney <cagney@redhat.com>
3335 * gnu-nat.c: Remove "inline" function attribute.
3336 * alpha-tdep.c, ppc-linux-tdep.c, macroexp.c: Ditto.
3338 2003-09-08 Kevin Buettner <kevinb@redhat.com>
3340 * config/frv/frv.mt (SIM_OBS, SIM): Enable simulator for FR-V
3343 2003-09-08 Kevin Buettner <kevinb@redhat.com>
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):
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
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.
3383 2003-09-09 Mark Kettenis <kettenis@gnu.org>
3385 * dwarf2-frame.c (read_encoded_value): Add support for
3386 DW_EH_PE_aligned encoding.
3388 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
3390 * infrun.c (normal_stop): Don't print a message if the inferior
3393 2003-09-08 Jim Blandy <jimb@redhat.com>
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.
3400 2003-09-08 Daniel Jacobowitz <drow@mvista.com>
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.
3406 2003-09-08 Corinna Vinschen <vinschen@redhat.com>
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
3413 pointer. Call sh64_gdbarch_init() if machine type is sh5.
3414 * sh-tdep.h: Move sh64 support to sh64-tdep.c.
3415 * sh64-tdep.c: New file, containing all sh64 related code from
3417 * config/sh/embed.mt (TDEPFILES): Add sh64-tdep.o.
3418 * config/sh/linux.mt (TDEPFILES): Ditto.
3419 * config/sh/nbsd.mt (TDEPFILES): Ditto.
3420 * config/sh/tm-sh.h: Drop REGISTER_TYPE definition.
3421 * config/sh/wince.mt (TDEPFILES): Ditto.
3423 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
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.
3433 2003-09-07 Daniel Jacobowitz <drow@mvista.com>
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.
3439 2003-09-06 Daniel Jacobowitz <drow@mvista.com>
3441 * arm-linux-tdep.c (arm_linux_arm_be_breakpoint): New.
3442 (arm_linux_init_abi): Use arm_linux_arm_be_breakpoint.
3444 2003-09-06 Mark Kettenis <kettenis@gnu.org>
3446 * sol-thread.c: Include "gdb_string.h".
3448 2003-09-03 Mark Kettenis <m.kettenis@osp.nl>
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.
3458 2003-09-04 Andrew Cagney <cagney@redhat.com>
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.
3465 2003-09-04 Andrew Cagney <cagney@redhat.com>
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.
3481 2003-09-04 Andrew Cagney <cagney@redhat.com>
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.
3493 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3495 * breakpoint.c (watchpoint_check): Remove accidentally checked in
3496 unused code. Add comment.
3498 2003-09-04 Corinna Vinschen <vinschen@redhat.com>
3500 * breakpoint.c (watchpoint_check): Check for pc being in an
3501 epilogue if watchpoint frame couldn't be found.
3503 2003-09-04 Andrew Cagney <cagney@redhat.com>
3505 * Makefile.in: Re-generate all dependencies.
3507 2003-09-03 Andrew Cagney <cagney@redhat.com>
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.
3519 2003-09-03 Andrew Cagney <cagney@redhat.com>
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.
3528 2003-09-03 Michael Snyder <msnyder@redhat.com>
3530 * config/djgpp/fnchange.lst: Fix up sim/frv/profile-fr*.[ch].
3532 2003-09-03 Andrew Cagney <cagney@redhat.com>
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
3542 * config/powerpc/tm-linux.h: Delete #undef IBM6000_TARGET.
3544 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
3546 * arm-tdep.c: Include frame-unwind.h, frame-base.h, and
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
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.
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.
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.
3571 (arm_gdbarch_init): Update for new frame methods. Register prologue
3572 and sigtramp unwinders. Set the default frame base method.
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.
3579 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
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
3590 (arm_make_prologue_cache, arm_frame_chain)
3591 (arm_init_extra_frame_info): New functions.
3593 2003-09-03 Daniel Jacobowitz <drow@mvista.com>
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.
3605 2003-09-03 Andrew Cagney <cagney@redhat.com>
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.
3613 2003-09-03 Andrew Cagney <cagney@redhat.com>
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.
3640 2003-08-30 Michael Chastain <mec@shout.net>
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.
3651 2003-08-31 Mark Kettenis <kettenis@gnu.org>
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
3658 * x86-64-linux-nat.c (ps_get_thread_area): Don't define as extern.
3661 * alphafbsd-tdep.c (alphafbsd_sigcontext_addr): Use
3662 frame_unwind_register_unsigned instead of
3663 frame_unwind_unsigned_register.
3665 2003-08-30 Mark Kettenis <kettenis@gnu.org>
3667 * configure.in: Search for gethostbyname in libnsl.
3668 * configure: Regenerated.
3670 2003-08-29 Mark Kettenis <kettenis@gnu.org>
3672 * configure.in: Remove redundant AC_MSG_RESULT in check for
3673 uintptr_t in stdint.h.
3674 * configure: Regenerated.
3676 * amd64-nat.h (struct regcache): Add opaque declaration.
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.
3698 2003-08-29 Andrew Cagney <cagney@redhat.com>
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
3720 2003-08-29 Mark Kettenis <kettenis@gnu.org>
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.
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
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
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.
3751 * regcache.c (regcache_raw_supply): Don't assert that BUF isn't a
3752 null pointer. Fix typo in comment.
3754 * regcache.c (supply_register): Reimplement to call
3755 regcache_raw_supply.
3756 (regcache_collect): Reimplement by calling regcache_raw_collect.
3758 2003-08-28 Mark Kettenis <kettenis@gnu.org>
3760 * regcache.c (register_buffer): Consitify first argument.
3761 (regcache_raw_supply, regcache_raw_collect): New
3764 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3766 * config/powerpc/tm-nbsd.h: Undefine IBM6000_TARGET. Suggested
3767 by Nathan J. Williams.
3769 2003-08-28 Daniel Jacobowitz <drow@mvista.com>
3771 * lin-lwp.c (wait_lwp): New function, copied from
3772 stop_wait_callback. Clean up.
3773 (stop_wait_callback): Use wait_lwp.
3775 2003-08-28 Andrew Cagney <cagney@redhat.com>
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.
3783 2003-08-27 Andrew Cagney <cagney@redhat.com>
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.
3791 2003-08-27 Andrew Cagney <cagney@redhat.com>
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.
3822 2003-08-27 Andrew Cagney <cagney@redhat.com>
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.
3829 2003-08-27 Andrew Cagney <cagney@redhat.com>
3831 * dsrec.c: Include "gdb_string.h".
3832 * Makefile.in (dsrec.o): Update dependencies.
3834 2003-08-27 Michael Chastain <mec@shout.net>
3836 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.mi/mi2-var-*.
3838 2003-08-27 Andrew Cagney <cagney@redhat.com>
3840 * alpha-osf1-tdep.c (alpha_call_dummy_address): Delete function.
3841 (alpha_osf1_init_abi): Do not set call_dummy_address.
3843 2003-08-27 David Carlton <carlton@kealia.com>
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.
3849 2003-08-26 Jim Blandy <jimb@redhat.com>
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
3858 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3860 * ia64-tdep.c (examine_prologue): Only stop at predicated insns if
3861 we are frameless or the return address register is already known.
3863 2003-08-26 Andrew Cagney <cagney@redhat.com>
3865 * i386-linux-nat.c (ps_get_thread_area): Make "desc" four "int"s
3866 in size. Add comments.
3868 2003-08-26 Jeff Johnston <jjohnstn@redhat.com>
3870 * ia64-tdep.c (ia64_convert_from_func_addr): New function.
3871 (ia64_gdbarch_init): Call set_gdbarch_convert_from_func_addr().
3873 2003-08-26 Jason Merrill <jason@redhat.com>
3875 * dwarf2read.c (dwarf_attr_name): Move DW_AT_MIPS_linkage_name
3876 case out of #ifdef MIPS block.
3878 2003-08-25 Daniel Jacobowitz <drow@mvista.com>
3881 * dwarf2-frame.c (dwarf2_frame_find_fde): Check whether any FDEs are
3882 available before calling SECT_OFF_TEXT.
3883 * PROBLEMS: Remove description of java/1322.
3885 2003-08-25 Jeff Johnston <jjohnstn@redhat.com>
3887 * ia64-tdep.c (pseudo_regs): New enum that lists gr32-gr127, p0-p63,
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
3891 register grouping so registers without names are still saved and
3893 (ia64_dwarf_reg_to_regnum): New routine to map gr32-gr127 to their
3895 (ia64_pseudo_register_read): New routine to read pseudo-registers.
3896 (ia64_pseudo_register_write): New routine to write pseudo-registers.
3897 (ia64_alloc_frame_cache): New routine to create a new
3899 (examine_prologue): Change prototype to add next_frame pointer.
3900 Assume frameless until otherwise proven. Verify that the cfm for
3901 current frame matches the cfm that should occur for the prologues
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().
3922 (ia64_push_arguments): Removed. Logic moved to
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().
3980 2003-08-25 Chris Demetriou <cgd@broadcom.com>
3982 * configure.tgt: Document need for special "mipsisa64" handling.
3983 (mipsisa64*-*-linux64): Handle as target linux64.
3984 (mipsisa64*-*-*): Handle as target embed64.
3986 2003-08-18 Michael Chastain <mec@shout.net>
3988 * PROBLEMS: Document pr gdb/1322, the Java anonymous
3991 2003-08-24 Mark Kettenis <kettenis@gnu.org>
3993 * i387-tdep.h: Update copyright date.
3994 (I387_SIZEOF_FSAVE, I387_SIZEOF_FXSAVE): New defines.
3996 * linux-proc.c (linux_proc_xfer_memory): Remove comment about
3997 CFLAGS games to reflect reality.
3999 2003-08-24 Andrew Cagney <cagney@redhat.com>
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.
4007 2003-08-23 Mark Kettenis <kettenis@gnu.org>
4009 * x86-64-tdep.c (x86_64_supply_fxsave): Add `regnum' argument.
4011 * x86-64-tdep.h (x86_64_supply_fxsave): Adjust prototype. Update
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.
4020 2003-08-23 Andreas Jaeger <aj@suse.de>
4022 * x86-64-tdep.c (x86_64_supply_fxsave): Adjust call to
4025 2003-08-23 Mark Kettenis <kettenis@gnu.org>
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
4032 (fetch_elfcore_registers): Adjust call to i387_supply_fsave and
4034 * i386obsd-tdep.c (fetch_core_registers): Adjust call to
4036 * i386bsd-nat.c (supply_fpregset): Adjust call to
4038 (fetch_inferior_registers): Remove extraneous whitespace. Adjust
4039 call to i387_supply_fxsave. Call i387_supply_fsave instead of
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
4047 * i386-interix-nat.c (supply_fpregset): Adjust call to
4049 * i386-linux-nat.c (supply_fpregset): Adjust call to
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.
4059 * i387-tdep.h (i387_supply_fsave, i387_supply_fsxave): Adjust
4061 (i387_supply_register): remove prototype.
4064 2003-08-22 Michael Chastain <mec@shout.net>
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.
4070 2003-08-22 Daniel Jacobowitz <drow@mvista.com>
4072 * gnu-v3-abi.c (gnuv3_baseclass_offset): Check whether
4073 TYPE_VPTR_FIELDNO is valid.
4075 2003-08-19 Mark Kettenis <kettenis@gnu.org>
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
4090 2003-08-22 Mark Kettenis <kettenis@gnu.org>
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
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,
4101 (sparc64_push_dummy_call): Take BIAS into account when checking
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.
4115 * reggroups.c: Add whitespace after declarations of local
4116 variables in functions.
4118 2003-08-21 Michael Chastain <mec@shout.net>
4120 * gdbtypes.h: Change array bound type from an int to enum.
4122 2003-08-21 Andrew Cagney <cagney@redhat.com>
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
4128 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Ditto.
4130 2003-07-13 Mark Kettenis <kettenis@gnu.org>
4132 * objfiles.h (struct objfile): Add memebers `data' and `num_data'.
4133 (register_objfile_data, set_objfile_data, objfile_data): New
4135 * objfiles.c (objfile_alloc_data, objfile_free_data): New
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.
4150 2003-08-21 Andrew Cagney <cagney@redhat.com>
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
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.
4168 2003-08-21 Mark Kettenis <kettenis@gnu.org>
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
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
4193 (SVR4_SHARED_LIBS, START_INFERIOR_TRAPS_EXPECTED): Remove defines.
4194 (GDB_MULTI_ARCH): Define to GDB_MULTI_ARCH_TM.
4196 2003-08-21 Michael Chastain <mec@shout.net>
4198 * symtab.h: Add doco on the space critical structures and
4199 some measurements of space usage.
4201 2003-08-21 Michael Snyder <msnyder@redhat.com>
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>
4208 2003-08-20 Michael Snyder <msnyder@redhat.com>
4210 * sh-tdep.h (struct gdbarch_tdep): New member FLOAT_ARGLAST_REG.
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
4214 (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu): New
4215 functions, replace sh_push_dummy_call.
4216 (sh_gdbarch_init): Set push_dummy_call to one of new methods.
4218 2003-08-20 Michael Chastain <mec@shout.net>
4220 * gdbtypes.h (struct main_type): Rearrange to save space.
4222 2003-08-20 Michael Snyder <msnyder@redhat.com>
4224 * trad-frame.c: Comment typo fix.
4226 2003-08-20 Michael Snyder <msnyder@redhat.com>
4227 Kevin Buettner <kevinb@redhat.com>
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
4244 2003-08-20 Michael Chastain <mec@shout.net>
4246 * defs.h (ENUM_BITFIELD): New macro.
4247 * symtab.h (ENUM_BITFIELD): Use it.
4248 (BYTE_BITFIELD): Remove old macro, which was already disabled.
4250 2003-08-19 Shrinivas Atre <shrinivasa@kpitcummins.com>
4252 * MAINTAINERS (write after approval): Add myself.
4254 2003-08-18 Andrew Cagney <cagney@redhat.com>
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".
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.
4267 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4269 * NEWS (New native configurations): Mention FreeBSD/amd64.
4271 2003-08-18 Andrew Cagney <cagney@redhat.com>
4273 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set
4274 "dwarf2_build_frame_info". Append "m68k_frame_sniffer" instead of
4276 (m68hc11_frame_sniffer): Replace "m68hc11_frame_p".
4278 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4280 * x86-64-tdep.c (x86_64_dwarf_regmap): Remove trailing whitespace.
4282 2003-08-18 Michal Ludvig <mludvig@suse.cz>
4284 * config/i386/nm-x86-64linux.h (LINUX_CHILD_POST_STARTUP_INFERIOR):
4286 * i386-linux-nat.c: Include "linux-nat.h".
4287 (child_post_startup_inferior): New function.
4289 2003-08-18 Mark Kettenis <kettenis@gnu.org>
4291 * i386-tdep.c (i386_analyze_register_saves): Handle register saves
4292 at the start of a frameless function. This probably fixes PR
4295 2003-08-17 Michael Chastain <mec@shout.net>
4297 * symfile.c (find_sym_fns): Remove special case for apollo target.
4299 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
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
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.
4313 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
4315 * lin-lwp.c (child_wait): Call linux_record_stopped_pid.
4317 2003-08-17 Daniel Jacobowitz <drow@mvista.com>
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
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.
4339 2003-08-16 Andrew Cagney <cagney@redhat.com>
4341 * gdbarch.sh: Delete all #if not GDB_MULTI_ARCH code.
4342 * gdbarch.h, gdbarch.c: Re-generate.
4344 2003-08-16 Mark Kettenis <kettenis@gnu.org>
4346 * config/alpha/nm-fbsd.h (SVR4_SHARED_LIBS): Remove define.
4348 2003-08-16 Andrew Cagney <cagney@redhat.com>
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.
4358 2003-08-16 Andrew Cagney <cagney@redhat.com>
4360 * Makefile.in (printcmd.o, valprint.o): Do not try to build with
4361 -Werror. -Wformat-nonliteral problems.
4363 2003-08-15 J. Brobecker <brobecker@gnat.com>
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
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.
4395 Transform some macros into function calls. Some minor cleanup.
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.
4401 2003-08-14 Michael Snyder <msnyder@redhat.com>
4403 * disasm.c (gdb_disassemble_info): Set info->insn_sets to zero.
4405 2003-08-13 J. Brobecker <brobecker@gnat.com>
4407 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Use the correct
4408 bfd arch_info when registering the GDB_OSABI_HPUX_ELF initialization
4411 2003-08-13 Michael Snyder <msnyder@redhat.com>
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.
4419 2003-08-13 J. Brobecker <brobecker@gnat.com>
4421 * hppa-tdep.c (hppa_gdbarch_init): Perform the ABI-specific gdbarch
4422 initialization after the common gdbarch initialization, not before.
4424 2003-08-13 J. Brobecker <brobecker@gnat.com>
4426 * config/pa/tm-hppa64.h (HPUX_1100): Remove, not used.
4427 (ADDR_BITS_REMOVE): Remove, redundant.
4429 2003-08-13 J. Brobecker <brobecker@gnat.com>
4431 * hppa-tdep.c (hppa_gdbarch_init): Set the addr_bits_remove
4432 gdbarch method to clear the 2 low bits of text addresses.
4434 2003-08-12 Andrew Cagney <cagney@redhat.com>
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
4441 2003-08-12 Andrew Cagney <cagney@redhat.com>
4443 * frame.c (deprecated_frame_xmalloc): Use XMALLOC, instead of
4444 FRAME_OBSTACK_ZALLOC.
4446 2003-08-12 Kevin Buettner <kevinb@redhat.com>
4448 * i386-tdep.c (i386_gdbarch_init): Enable default support for
4451 2003-08-10 Mark Kettenis <kettenis@gnu.org>
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
4458 2003-08-11 Ben Elliston <bje@wasabisystems.com>
4460 * MAINTAINERS (write after approval): Update my mail address.
4462 2003-08-10 Andrew Cagney <cagney@redhat.com>
4464 * Makefile.in (monitor.o): Do not build monitor.c with -Werror.
4466 2003-08-10 Mark Kettenis <kettenis@gnu.org>
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
4477 * i386bsd-nat.c (_initialize_i386bsd_nat): Remove extern
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
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
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.
4496 2003-08-10 Andrew Cagney <cagney@redhat.com>
4498 * infcall.c (call_function_by_hand): Use xstrprintf instead of
4499 sprintf. Make "name" constant.
4501 2003-08-10 Mark Kettenis <kettenis@gnu.org>
4503 * i387-tdep.c (i387_register_to_value): Use get_frame_register
4504 instead of frame_read_register.
4505 (i387_print_float_info): Use get_frame_register and
4506 get_frame_register_unsigned instead of frame_register_read.
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.
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.
4517 * frame.c (_initialize_frame): Add missing backslash.
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
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.
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.
4533 2003-08-09 Andrew Cagney <cagney@redhat.com>
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.
4547 2003-08-09 Andrew Cagney <cagney@redhat.com>
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.
4558 2003-08-09 Andrew Cagney <cagney@redhat.com>
4560 * MAINTAINERS (language support): List Adam Fedor as Objective C
4563 2003-08-08 J. Brobecker <brobecker@gnat.com>
4565 * NEWS (Multi-arched targets): Document that all hppa-hpux targets
4566 are now multiarched.
4568 2003-08-08 J. Brobecker <brobecker@gnat.com>
4570 * config/pa/tm-hppa64.h: Remove lots of macros that are no
4571 longer necessary now that hppa64 is partially multiarch'ed.
4573 2003-08-08 Andrew Cagney <cagney@redhat.com>
4575 * interps.c (interp_set): Check for a NULL "old_interp".
4577 2003-08-08 H.J. Lu <hongjiu.lu@intel.com>
4579 * Makefile.in (FLAGS_TO_PASS): Add DESTDIR.
4580 (install-only): Support DESTDIR.
4581 (uninstall): Likewise.
4582 (install-gdbtk): Likewise.
4584 2003-08-08 Elena Zannoni <ezannoni@redhat.com>
4586 * symtab.c (lookup_symbol_aux): Make sure that is_a_field_of_this
4587 contains something meaningful at all times.
4589 Fri Aug 8 00:28:46 UTC 2003 Brendan Conoboy <blc@redhat.com>
4591 * configure.host: Set gdb_host_cpu=arm when host_cpu=xscale.
4593 Fri Aug 8 00:28:38 UTC 2003 Brendan Conoboy <blc@redhat.com>
4595 * MAINTAINERS (write after approval): Added self.
4597 2003-08-07 Andrew Cagney <cagney@redhat.com>
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.
4606 2003-08-07 Andrew Cagney <cagney@redhat.com>
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.
4613 2003-08-07 Andrew Cagney <cagney@redhat.com>
4615 * interps.h (INTERP_MI2, INTERP_MI3): Define.
4617 2003-08-07 Michal Ludvig <mludvig@suse.cz>
4619 * x86-64-tdep.c (x86_64_dwarf_regmap): Correct register numbers.
4620 (x86_64_push_arguments): Skip the red zone.
4622 2003-08-05 Andrew Cagney <cagney@redhat.com>
4624 * reggroups.c (reggroup_next): Check for the final entry.
4626 2003-08-04 Andrew Cagney <cagney@redhat.com>
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.
4634 * solib-svr4.c (_initialize_svr4_solib): Update
4635 register_gdbarch_data call.
4636 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Ditto.
4638 * gdbarch.sh (gdbarch_data_free_ftype): Delete declaration.
4639 (register_gdbarch_data): Delete "free" parameter. Update
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.
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.
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.
4660 2003-08-04 Andrew Cagney <cagney@redhat.com>
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.
4676 2003-08-04 Daniel Jacobowitz <drow@mvista.com>
4678 * Makefile.in (tui-interp.o): Update dependencies.
4680 2003-08-04 David Carlton <carlton@kealia.com>
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.
4703 2003-08-04 Andrew Cagney <cagney@redhat.com>
4705 * frame.c (frame_func_unwind): Use frame_unwind_address_in_block.
4707 2003-08-02 Andrew Cagney <cagney@redhat.com>
4709 * config/djgpp/fnchange.lst: Fix up testsuite/gdb.c++/annota3.cc,
4710 gdb/testsuite/gdb.c++/annota3.exp, amd64fbsd-tdep.c and
4713 2003-08-02 Andrew Cagney <cagney@redhat.com>
4715 * Makefile.in: Update all dependencies and definitions.
4717 2003-08-02 Adam Fedor <fedor@gnu.org>
4719 * linespec.c (is_objc_method_format): New function
4720 (decode_line_1, locate_first_half): Use it.
4723 2003-08-01 Andrew Cagney <cagney@redhat.com>
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.
4730 * m32r-rom.c (m32r_upload_command): Use hostent only when
4731 gethostname succeeds, in order to avoid a compilation
4733 * m32r-tdep.c (m32r_store_return_value): Add a cast to remove a
4736 2003-08-01 Michael Snyder <msnyder@redhat.com>
4738 * sh-tdep.c (sh_frame_align): New gdbarch method.
4739 (sh_gdbarch_init): Set up frame_align method.
4741 2003-07-31 Michael Snyder <msnyder@redhat.com>
4743 * value.h, values.c, infcall.c, infcmd.c: Revert 07-30 change,
4744 which is already covered by the new frames infrastructure.
4746 2003-07-31 Andrew Cagney <cagney@redhat.com>
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
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.
4763 2003-07-31 Daniel Jacobowitz <drow@mvista.com>
4765 * dwarf2read.c (new_symbol): Use var_decode_location for parameters.
4767 2003-07-30 Michael Snyder <msnyder@redhat.com>
4769 * value.h (value_being_returned): Add a struct_addr argument.
4770 * infcall.c (call_function_by_hand): Pass struct_addr to
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.
4776 2003-07-30 Kevin Buettner <kevinb@redhat.com>
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.
4784 2003-07-28 Andrew Cagney <cagney@redhat.com>
4786 * annotate.c (annotate_breakpoints_headers): Restrict annotation
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.
4812 2003-07-28 Andrew Cagney <cagney@redhat.com>
4814 * regcache.c (struct regcache_descr): Update comments on
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.
4822 2003-07-28 Andrew Cagney <cagney@redhat.com>
4824 * mips-tdep.c (print_gp_register_row): Print the GPR's register
4827 2003-07-28 Daniel Jacobowitz <drow@mvista.com>
4829 * thread.c (info_threads_command): Use get_selected_frame ().
4830 Check that there is at least one non-sentinel frame.
4832 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
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.
4843 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
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
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
4865 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
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.
4871 2003-07-27 Stephane Carrez <stcarrez@nerim.fr>
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.
4880 2003-07-27 Andrew Cagney <cagney@redhat.com>
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
4887 2003-07-27 Andrew Cagney <cagney@redhat.com>
4889 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Set to
4890 GDB_MULTI_ACH_PARTIAL.
4892 2003-07-27 Andrew Cagney <cagney@redhat.com>
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
4903 (m32r_push_dummy_call): Use register_size instead of
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
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.
4914 2003-07-26 Andrew Cagney <cagney@redhat.com>
4916 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set non-deprecated
4917 store_return_value and extract_struct_value_address.
4919 2003-07-26 Daniel Jacobowitz <drow@mvista.com>
4922 * minsyms.c (lookup_minimal_symbol_by_pc_section): If SECTION is
4923 NULL, default to the section containing PC.
4925 2003-07-24 Stephane Carrez <stcarrez@nerim.fr>
4927 * NEWS: Mention "regs" deprecated for m68hc11 too.
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.
4935 2003-07-24 Jeff Johnston <jjohnstn@redhat.com>
4937 * ia64-linux-nat.c (ia64_linux_stopped_by_watchpoint): Verify
4938 that we have a SIGTRAP before returning non-zero.
4940 2003-07-23 Michal Ludvig <mludvig@suse.cz>
4941 Elena Zannoni <ezannoni@redhat.com>
4943 * linespec.c (decode_line_2): Avoid crash if
4944 find_function_start_sal() returns empty record.
4946 2003-07-23 Andreas Schwab <schwab@suse.de>
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.
4953 2003-07-22 Michael Snyder <msnyder@redhat.com>
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.
4960 2003-07-22 Andrew Cagney <cagney@redhat.com>
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.
4980 2003-07-22 Andrew Cagney <cagney@redhat.com>
4982 * configure.in (build_warnings): Add -Wformat-nonliteral.
4983 * configure: Re-generate.
4985 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4987 * dwarf2loc.c (locexpr_describe_location): Fix typos.
4989 2003-07-22 Elena Zannoni <ezannoni@redhat.com>
4991 * findvar.c (read_var_value): Remove case for thread local storage
4992 variables. It is now entirely handled by the dwarf2 location
4994 * printcmd.c (address_info): Ditto.
4995 * symtab.h (address_class): Remove LOC_THREAD_LOCAL_STATIC
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
5007 * Makefile.in (dwarf2loc.o): Update dependencies.
5009 2003-07-22 Andrew Cagney <cagney@redhat.com>
5011 * config/pa/tm-hppa64.h (FRAME_SAVED_PC_IN_SIGTRAMP): Use
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.
5018 2003-07-21 Andrew Cagney <cagney@redhat.com>
5020 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5021 * m32r-tdep.c, m32r-stub.c, m32r-tdep.c: Rewrite.
5023 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
5025 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Use
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.
5038 2003-07-20 Stephane Carrez <stcarrez@nerim.fr>
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.
5044 2003-07-18 Andrew Cagney <cagney@redhat.com>
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
5052 * alpha-tdep.c (alpha_dwarf2_init_abi): Do not set
5053 DWARF2_BUILD_FRAME_INFO.
5055 2003-07-18 Andrew Cagney <cagney@redhat.com>
5057 From 2003-07-04 Kei Sakamoto <sakamoto.kei@renesas.com>:
5058 * disasm.c (gdb_disassemble_info): Initilize di.arch.
5060 2003-07-18 Andrew Cagney <cagney@redhat.com>
5062 * dwarf2-frame.c (dwarf2_frame_sniffer): Use
5063 frame_unwind_address_in_block, instead of frame_pc_unwind.
5064 (dwarf2_frame_cache): Ditto.
5066 2003-07-18 Andrew Cagney <cagney@redhat.com>
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.
5072 2003-07-18 Kris Warkentin <kewarken@qnx.com>
5074 * nto-procfs.c: Clean ARI hits. Change #include <..> to
5076 (procfs_meminfo): Change strerror to safe_strerror.
5077 (procfs_can_run): Remove K&R badness.
5079 2003-07-17 Michael Snyder <msnyder@redhat.com>
5081 * remote-sim.c: Comment typo fix.
5083 2003-07-17 Andrew Cagney <cagney@redhat.com>
5085 * defs.h (GDB_MULTI_ARCH): Delete conditional define. Handled by
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.
5091 2003-07-17 Elena Zannoni <ezannoni@redhat.com>
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.
5097 2003-07-16 Theodore A. Roth <troth@openavr.org>
5099 * avr-tdep.c (avr_skip_prologue): Return PC unchanged if no prologue
5101 (avr_frame_unwind_cache): Don't unwind FP for main.
5103 Save the computed prev_sp.
5104 (avr_saved_regs_unwinder): Remove function.
5105 (avr_frame_prev_register): Use PC unwind logic from
5106 avr_saved_regs_unwinder(), otherwise use trad_frame_prev_register().
5108 2003-07-16 Andrew Cagney <cagney@redhat.com>
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".
5164 2003-07-16 Michael Snyder <msnyder@redhat.com>
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.
5170 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
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.
5177 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
5179 * sh-tdep.c (sh_gdbarch_init): Set double to 4 byte on sh2e and sh3e.
5181 2003-07-16 Corinna Vinschen <vinschen@redhat.com>
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
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.
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
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.
5236 2003-07-15 Andrew Cagney <cagney@redhat.com>
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.
5264 2003-07-15 Andrew Cagney <cagney@redhat.com>
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
5271 * d10v-tdep.c (d10v_frame_this_id): Delete check that frames are
5274 2003-07-15 Andrew Cagney <cagney@redhat.com>
5276 * complaints.c (struct explanation): Define.
5277 (struct complaints): Change type of "explanation" to "struct
5279 (symfile_explanations): Convert to a "struct explanation" table.
5280 (vcomplaint): Update.
5282 2003-07-15 Michal Ludvig <mludvig@suse.cz>
5284 * x86-64-linux-nat.c (regmap): Removed.
5285 (supply_gregset, fill_gregset): Call
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):
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
5296 * config/i386/x86-64linux.mt (TDEPFILES): Add corelow.o.
5298 2003-07-13 Mark Kettenis <kettenis@gnu.org>
5300 * x86-64-tdep.c (x86_64_store_return_value): Use
5301 regcache_cooked_write_part instead of regcache_cooked_write.
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.
5312 2003-07-11 Mark Kettenis <kettenis@gnu.org>
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
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.
5332 2003-07-11 Theodore A. Roth <troth@openavr.org>
5334 * Makefile.in (install-only): Quote sed expression when generating
5337 2003-07-11 Richard Henderson <rth@redhat.com>
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.
5345 2003-07-11 Andrew Cagney <cagney@redhat.com>
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.
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.
5358 2003-07-10 Andrew Cagney <cagney@redhat.com>
5360 * gdbarch.sh: Simplify predicate methods. Remove need to provide
5361 pre-default. Note: re-generate has no effect.
5363 2003-07-10 Andrew Cagney <cagney@redhat.com>
5365 * gdbarch.sh: When a variable, but not a function, compare against
5366 0. Fix problem in previous patch.
5367 * gdbarch.c: Re-generate.
5369 2003-07-10 Andrew Cagney <cagney@redhat.com>
5371 * gdbarch.sh: Use gdb_assert instead of internal_error. Compare
5372 functions against NULL, not 0.
5373 * gdbarch.c: Re-generate.
5375 2003-07-10 Fred Fish <fnf@ninemoons.com>
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.
5381 2003-07-09 Michael Snyder <msnyder@redhat.com>
5383 * sh-tdep.c (sh_dsp_register_sim_regno): Off-by-one error.
5385 2003-07-09 Mark Kettenis <kettenis@gnu.org>
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.
5393 2003-07-09 Andreas Schwab <schwab@suse.de>
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
5406 2003-07-09 Joel Brobecker <brobecker@gnat.com>
5408 * somread.c (som_symfile_offsets): Fix compilation error.
5410 2003-07-09 Andrew Cagney <cagney@redhat.com>
5412 * regcache.c (register_size): Only check REGISTER_RAW_SIZE once.
5413 Add comments about the checks.
5415 2003-07-08 Andrew Cagney <cagney@redhat.com>
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.
5425 2003-07-08 Kris Warkentin <kewarken@qnx.com>
5427 * nto-procfs.c: Cleaned up a bunch of ARI hits.
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.
5432 2003-07-07 Andrew Cagney <cagney@redhat.com>
5434 * frame.c (get_prev_frame): Enable check for identical frames.
5435 Update comments. Update error messages.
5437 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5439 * hpread.c (hpread_psymtab_to_symtab_1): Fix compilation failure.
5441 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5443 * xcoffread.c (xcoff_psymtab_to_symtab_1): Remove call to
5444 sort_symtab_syms, no longer necessary.
5446 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5448 * config/mips/tm-irix6.h (MIPS_REGISTER_TYPE): Add comment.
5450 2003-07-07 Joel Brobecker <brobecker@gnat.com>
5452 * mips-tdep.c (mips_register_raw_size): Fix compilation failure.
5453 (mips_register_byte): Likewise.
5455 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
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.
5470 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5472 * mips-linux-nat.c (mips_linux_cannot_fetch_register)
5473 (mips_linux_cannot_store_register): List supported instead of
5474 unsupported registers.
5476 2003-07-07 Daniel Jacobowitz <drow@mvista.com>
5478 * disasm.c (dump_insns): Separate instructions from addresses.
5480 2003-07-07 Andreas Schwab <schwab@suse.de>
5482 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
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,
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
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
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.
5577 2003-07-07 Andrew Cagney <cagney@redhat.com>
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.
5607 2003-07-06 Christopher Faylor <cgf@redhat.com>
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.
5613 2003-07-06 Andreas Schwab <schwab@suse.de>
5615 * m68klinux-nat.c (fill_fpregset): Fix use of loop index.
5617 2003-07-04 Joel Brobecker <brobecker@gnat.com>
5619 * rs6000-nat.c (vmap_symtab): Fix compilation error.
5621 2003-07-04 Kris Warkentin <kewarken@qnx.com>
5623 * config/i386/nto.mh: Set XM_FILE to xm-i386.h
5625 2003-07-04 Kris Warkentin <kewarken@qnx.com>
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*.
5632 2003-07-03 Joel Brobecker <brobecker@gnat.com>
5634 * remote-vx.c (vx_add_symbols): Fix compilation error.
5636 2003-07-03 Andrew Cagney <cagney@redhat.com>
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.
5655 2003-07-03 Daniel Jacobowitz <drow@mvista.com>
5657 * cli/cli-interp.c (cli_interpreter_resume): Update the
5658 cli_uiout's stream to gdb_stdout.
5660 2003-07-03 Andrew Cagney <cagney@redhat.com>
5662 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Add
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.
5668 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5670 * NEWS: Move "set logging" entry into GDB 6.0 section.
5672 2003-07-02 Jim Blandy <jimb@redhat.com>
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.
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.
5693 Break out the decoding of S/390 instructions into separate
5694 functions, to make it more legible, and easier to check
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?)
5704 2003-07-02 Andrew Cagney <cagney@redhat.com>
5706 * i386-tdep.c: Revert change committed as part of trad-frame code
5709 2003-07-02 Daniel Jacobowitz <drow@mvista.com>
5711 * breakpoint.c (insert_catchpoint): Make static.
5713 2003-07-02 Andreas Schwab <schwab@suse.de>
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.
5721 2003-07-01 Andreas Jaeger <aj@suse.de>
5723 * x86-64-tdep.c (x86_64_push_arguments): Align stack to 16-byte
5725 Set %rax only to number of SSE registers used.
5727 2003-07-01 Andrew Cagney <cagney@redhat.com>
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.
5744 2003-06-30 Jim Blandy <jimb@redhat.com>
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):
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
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.
5766 2003-06-30 Andreas Schwab <schwab@suse.de>
5768 * utils.c (internal_vproblem): Use xvasprintf, not xasprintf, to
5769 format error message.
5771 2003-06-30 Joel Brobecker <brobecker@gnat.com>
5773 * sparc-tdep.c (stop_after_trap): Remove declaration, not used.
5775 2003-06-30 David Carlton <carlton@kealia.com>
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.
5786 2003-06-30 Andrew Cagney <cagney@redhat.com>
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.
5792 2003-06-30 Andrew Cagney <cagney@redhat.com>
5794 * remote.c (remote_async_wait): Fix -Wformat problem.
5796 2003-06-29 Andrew Cagney <cagney@redhat.com>
5798 * remote.c (remote_wait): Call error, and not warning, when the
5800 (remote_async_wait): Ditto.
5802 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5804 * sparc-tdep.c (sparc_y_regnum): Make external again.
5806 2003-06-29 Daniel Jacobowitz <drow@mvista.com>
5808 * cli/cli-logging.c (pop_output_files): Add void to function
5811 2003-06-29 Andrew Cagney <cagney@redhat.com>
5813 * frame.c (frame_register_unwind): Use unsigned char when dumping
5814 the buffer contents.
5816 2003-06-28 Daniel Jacobowitz <drow@mvista.com>
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".
5831 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5833 * config/powerpc/ppc64-linux.mh (NATDEPFILES): Add linux-nat.o.
5835 2003-06-27 Andrew Cagney <cagney@redhat.com>
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.
5842 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
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.
5848 2003-06-27 Elena Zannoni <ezannoni@redhat.com>
5850 * dwarfread.c (decode_modified_type): Gag new compiler warning.
5852 2003-06-26 Elena Zannoni <ezannoni@redhat.com>
5854 * dwarf2read.c (dwarf2_locate_sections): Ignore empty .eh_frame
5857 2003-06-26 Michael Chastain <mec@shout.net>
5859 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1210.cc,
5860 gdb/testsuite/gdb.c++/pr-1210.exp.
5862 2003-06-26 Andrew Cagney <cagney@redhat.com>
5864 * config/djgpp/fnchange.lst: Fix 8.3 problem with sim/ppc's
5865 altivec_expression.h and altivec_registers.h.
5867 2003-06-26 Andrew Cagney <cagney@redhat.com>
5869 * mips-tdep.c (gdb_print_insn_mips): Only explicitly set
5870 info->mach when MIPS16. Patch suggested by Fred Fish.
5872 2003-06-26 Andrew Cagney <cagney@redhat.com>
5874 * utils.c (internal_vproblem): Print the problem to a reason
5875 buffer and then pass to query. Make the msg variable more local.
5877 2003-06-26 Andrew Cagney <cagney@redhat.com>
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
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.
5906 2003-06-26 Andreas Jaeger <aj@suse.de>
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
5914 2003-06-24 Michael Chastain <mec@shout.net>
5916 * PROBLEMS: Document pr gdb/1091 and pr gdb/1193,
5917 the "constructor breakpoints ignored" bug.
5919 2003-06-25 David Carlton <carlton@kealia.com>
5921 * MAINTAINERS: Update e-mail address.
5923 2003-06-24 Jim Blandy <jimb@redhat.com>
5925 * ppc-linux-tdep.c: More "Linux" -> "GNU/Linux".
5927 * ppc-linux-tdep.c (ppc64_linux_convert_from_func_ptr_addr): New
5929 (ppc_linux_init_abi): Register it as the
5930 CONVERT_FROM_FUNC_PTR_ADDR method under the PPC64 Linux ABI.
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
5936 * ppc-linux-tdep.c (ppc64_desc_entry_point): New function.
5937 (ppc64_standard_linkage_target): Use it.
5939 2003-06-23 Andrew Cagney <cagney@redhat.com>
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.
5947 2003-06-23 Stephane Carrez <stcarrez@nerim.fr>
5949 * m68hc11-tdep.c (m68hc11_gdbarch_init): Clear gdb_arch_char_signed
5950 as characters are unsigned.
5952 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5955 * dwarfread.c (struct_type): Skip static fields without crashing.
5957 2003-06-22 Andrew Cagney <cagney@redhat.com>
5959 GDB 6.0 branch created.
5961 * PROBLEMS: Update. Empty.
5964 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5966 * symfile.c (add_symbol_file_command): Use parse_and_eval_address.
5967 Suggested by Nick Hibma <n_hibma@webweaving.org>.
5969 2003-06-22 Andrew Cagney <cagney@redhat.com>
5971 * osabi.c (generic_elf_osabi_sniff_abi_tag_sections): Handle
5972 GNU_ABI_TAG_FREEBSD and GNU_ABI_TAG_NETBSD. Suggested by Momchil
5975 2003-06-22 Daniel Jacobowitz <drow@mvista.com>
5977 * cli/cli-cmds.c (shell_escape): Silence warnings from old
5980 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
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.
5988 2003-06-21 Andrew Cagney <cagney@redhat.com>
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 /
6000 (mips_get_saved_register): Simplify. Assert that REGNO is a
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
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.
6042 2003-06-21 Daniel Jacobowitz <drow@mvista.com>
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.
6048 2003-06-21 Andrew Cagney <cagney@redhat.com>
6050 * mips-tdep.c (mips_find_saved_regs): Rewrite mdebug code handling
6051 32 bit floating-point register saves.
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.
6059 * mips-tdep.c (mips_dump_tdep): Do not print
6060 REGISTER_CONVERT_FROM_TYPE or REGISTER_CONVERT_TO_TYPE.
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.
6073 2003-06-20 Theodore A. Roth <troth@openavr.org>
6075 * avr-tdep.c (avr_gdbarch_init): Don't call set_gdbarch_bfd_vma_bit.
6077 2003-06-20 Theodore A. Roth <troth@openavr.org>
6079 * avr-tdep.c (avr_read_pc): Use regcache instead of read_register.
6080 (avr_read_sp): Ditto.
6082 2003-06-20 Daniel Jacobowitz <drow@mvista.com>
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.
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.
6101 2003-06-19 Kris Warkentin <kewarken@qnx.com>
6103 * solib.c (solib_open): Change tests for whether to search
6104 LD_LIBRARY_PATH and PATH to better deal with remotes. Update
6107 2003-06-19 Theodore A. Roth <troth@openavr.org>
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.
6113 2003-06-19 Andrew Cagney <cagney@redhat.com>
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
6122 2003-06-19 Michael Snyder <msnyder@redhat.com>
6124 * linux-nat.h: New file.
6125 * linux-nat.c: Include linux-nat.h.
6126 * lin-lwp.c: Include linux-nat.h.
6127 Move struct lwp_info def to linux-nat.h.
6128 * linux-proc.c: Include linux-nat.h.
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.
6132 * Makefile.in (lin-lwp.o, linux-proc.o, linux-nat.o):
6133 Add dependency on linux_nat_h.
6135 2003-06-19 Theodore A. Roth <troth@openavr.org>
6137 * avr-tdep.c (avr_extract_return_value): Delete debugging fprintf.
6139 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6141 * varobj.c (get_type, get_target_type): Use check_typedef.
6143 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
6145 * breakpoint.c (insert_catchpoint): Call internal_error.
6147 2003-06-19 Theodore A. Roth <troth@openavr.org>
6149 * avr-tdep.c (avr_push_dummy_code): Delete function.
6150 (avr_gdbarch_init): Don't call set_gdbarch_push_dummy_code.
6152 2003-06-19 Daniel Jacobowitz <drow@mvista.com>
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
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.
6176 2003-06-18 Theodore A. Roth <troth@openavr.org>
6178 * avr-tdep.c: Include frame.h, frame-unwind.h, frame-base.h, and
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.
6238 2003-06-18 Corinna Vinschen <vinschen@redhat.com>
6240 * h8300-tdep.c (h8300s_register_name): Enable MACH and MACL
6241 registers for H8/300S.
6242 (h8300_print_registers_info): Ditto.
6243 (h8300_gdbarch_init): Accommodate register count for H8/300S.
6245 2003-06-18 Daniel Jacobowitz <drow@mvista.com>
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.
6253 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
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.
6259 2003-06-17 Stephane Carrez <stcarrez@nerim.fr>
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.
6265 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
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.
6283 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
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.
6289 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6291 * symfile.c (reread_symbols): Clear sym_private.
6293 2003-06-17 Andrew Cagney <cagney@redhat.com>
6295 * trad-frame.h (struct frame_info): Add opaque declaration.
6296 * remote-fileio.h (struct cmd_list_element): Add opaque
6298 * h8300-tdep.c (h8300s_register_name): Avoid C++ // style
6301 2003-06-17 Daniel Jacobowitz <drow@mvista.com>
6303 * remote.c (remote_prepare_to_store): Replace call to
6304 deprecated_read_register_bytes with multiple regcache_raw_read
6307 2003-06-17 Kris Warkentin <kewarken@qnx.com>
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.
6314 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6316 * i386-nto-tdep.c (i386nto_sigcontext_addr): Make sp a CORE_ADDR.
6318 2003-06-17 Kris Warkentin <kewarken@qnx.com>
6320 * i386-nto-tdep.c (i386nto_sigcontext_addr): Declare sp before using.
6322 2003-06-17 Jim Blandy <jimb@redhat.com>
6324 * ppc-linux-tdep.c: "Linux" -> "GNU/Linux"
6326 2003-06-16 Theodore A. Roth <troth@openavr.org>
6328 * avr-tdep.c (avr_extract_return_value): New function.
6329 (avr_gdbarch_init): Set extract_return_value method.
6331 2003-06-16 Andrew Cagney <cagney@redhat.com>
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.
6343 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
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.
6354 2003-06-16 Corinna Vinschen <vinschen@redhat.com>
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
6359 registers into safe registers.
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.
6385 2003-06-16 Andrew Cagney <cagney@redhat.com>
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.
6402 2003-06-16 Andrew Cagney <cagney@redhat.com>
6404 * regcache.c (do_cooked_read): Do not use register_valid_p.
6406 2003-06-15 Theodore A. Roth <troth@openavr.org>
6408 * avr-tdep.c (avr_register_type): Remove a blank line.
6409 (avr_scan_prologue): Correct some comments.
6411 2003-06-15 Theodore A. Roth <troth@openavr.org>
6413 * avr-tdep.c (avr_scan_prologue): Update comment describing the various
6415 Properly scan prologues generated by gcc with the -mcall-prologues
6417 Add code to scan -mcall-prologues for mega devices.
6419 2003-06-15 Theodore A. Roth <troth@openavr.org>
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.
6439 2003-06-15 Daniel Jacobowitz <drow@mvista.com>
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.
6457 2003-06-15 Mark Kettenis <kettenis@gnu.org>
6459 * i387-tdep.c: Reorder includes, fix some whitespace issues and
6460 replace out-of-date comment.
6462 2003-06-15 Andrew Cagney <cagney@redhat.com>
6464 * rdi-share/host.h (Fail): Change to a varargs function.
6465 * remote-rdi.c (Fail): Update.
6467 2003-06-15 Mark Kettenis <kettenis@gnu.org>
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.
6473 2003-06-15 Mark Kettenis <kettenis@gnu.org>
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.
6485 2003-06-14 Andrew Cagney <cagney@redhat.com>
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.
6502 2003-06-14 Andrew Cagney <cagney@redhat.com>
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.
6514 2003-06-14 Andrew Cagney <cagney@redhat.com>
6515 Mark Kettenis <kettenis@gnu.org>
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
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
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.
6554 2003-06-14 Theodore A. Roth <troth@openavr.org>
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.
6564 2003-06-14 Theodore A. Roth <troth@openavr.org>
6566 * avr-tdep.c (avr_scan_prologue): Fix to avoid a buffer over run which
6567 causes gdb to seg fault.
6569 2003-06-14 Daniel Jacobowitz <drow@mvista.com>
6571 * sparc-nat.c (fetch_inferior_registers): Correct
6572 a reference to "registers".
6574 2003-06-14 Jeroen Dekkers <jeroen@dekkers.cx>
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".
6585 2003-06-13 Andrew Cagney <cagney@redhat.com>
6587 * gdbarch.sh: Document what PUSH_DUMMY_CALL replaces.
6588 * gdbarch.h, gdbarch.c: Re-generate.
6590 2003-06-13 Andrew Cagney <cagney@redhat.com>
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.
6596 2003-06-13 Jim Blandy <jimb@redhat.com>
6598 * solib-svr4.c (solib_break_names): Recognize the 64-bit PowerPC
6599 Linux entry point symbols for _dl_debug_state, too.
6601 2003-06-13 Andrew Cagney <cagney@redhat.com>
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.
6619 2003-06-13 Jim Blandy <jimb@redhat.com>
6621 * frv-tdep.c (frv_use_struct_convention): Delete static
6622 declaration for function deleted in my change of 2003-06-12.
6624 2003-06-13 Theodore A. Roth <troth@openavr.org>
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.
6632 2003-06-13 Mark Kettenis <kettenis@gnu.org>
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.
6640 2003-06-13 Richard Earnshaw <rearnsha@arm.com>
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.
6651 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
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
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
6663 (h8300h_extract_return_value): Same function for 32 bit CPUs.
6664 (h8300_store_return_value): Use new regcache structure. Only care
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.
6684 2003-06-13 Corinna Vinschen <vinschen@redhat.com>
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.
6697 2003-06-13 Andrew Cagney <cagney@redhat.com>
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.
6727 2003-06-13 Andrew Cagney <cagney@redhat.com>
6729 * mips-tdep.c (mips_gdbarch_init): Replace remaining instances of
6730 mips_o32_use_struct_convention with always_use_struct_convention.
6732 2003-06-12 David Carlton <carlton@kealia.com>
6734 * cp-namespace.c (cp_set_block_scope): Comment out
6735 processing_has_namespace_info branch.
6737 2003-06-12 Jim Blandy <jimb@redhat.com>
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.
6750 * ppc-linux-nat.c (ppc_register_u_addr): Correctly compute u-area
6751 register offsets for both the 32- and 64-bit interfaces.
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
6759 (ppc_linux_init_abi): Register it as the skip_trampoline_code
6762 * config/powerpc/nm-ppc64-linux.h (PTRACE_XFER_TYPE): This is
6763 'long' on ppc64-*-linux*.
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.
6769 * configure.host, configure.tgt: Add entries for
6770 powerpc64-*-linux, selecting powerpc/ppc64-linux.mh and
6772 * config/powerpc/ppc64-linux.mh, config/powerpc/nm-ppc64-linux.mh:
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.
6789 * mips-tdep.c (mips_o32_use_struct_convention): Delete.
6790 (mips_o32_gdbarch_init): Register always_use_struct_convention,
6791 instead of mips_o32_use_struct_convention.
6793 2003-06-12 Andrew Cagney <cagney@redhat.com>
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.
6800 2003-06-12 David Carlton <carlton@kealia.com>
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.
6808 2003-06-12 Andreas Schwab <schwab@suse.de>
6810 * Makefile.in (tuiDisassem.o): Update dependencies.
6812 2003-06-12 David Carlton <carlton@bactrian.org>
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.
6831 2003-06-12 Corinna Vinschen <vinschen@redhat.com>
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
6840 (h8300_register_byte): Only care for H8/300 registers.
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
6845 (h8300_extract_struct_value_address): Only care for H8/300 registers.
6846 (h8300h_extract_struct_value_address): New function for any other
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.
6859 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6861 * doublest.c (convert_doublest_to_floatformat): When dealing
6862 with the implied integer bit, only alter mant_bits if we are
6863 processing a full 32 bits of mantissa.
6865 2003-06-11 David Carlton <carlton@bactrian.org>
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',
6872 (BLOCK_DICT): New macro.
6873 Delete macros BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM,
6874 BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE,
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
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
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
6915 * symtab.h (struct symtab): Replace 'free_ptr' method by
6917 * dwarf2read.c (psymtab_to_symtab_1): Delete call to
6919 * dwarfread.c (psymtab_to_symtab_1): Delete call to
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
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,
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.
6954 2003-06-11 J. Brobecker <brobecker@gnat.com>
6956 * win32-nat.c (solib_symbols_add): Fix a small compilation error.
6958 2003-06-11 David Carlton <carlton@bactrian.org>
6960 * block.h (BLOCK_SHOULD_SORT): Delete.
6961 * symtab.c (lookup_block_symbol): Don't worry about sorted linear
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
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.
6976 2003-06-11 Jeff Johnston <jjohnstn@redhat.com>
6978 * ia64-tdep.c (ia64_gdbarch_init): Set number of long double
6981 2003-06-11 Andrew Cagney <cagney@redhat.com>
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.
7009 2003-06-11 Andrew Cagney <cagney@redhat.com>
7011 * remote-fileio.c: Include "remote-fileio.h".
7012 * Makefile.in (remote-fileio.o): Update dependencies.
7013 (remote_fileio_h): Fix typo.
7015 2003-06-11 Andrew Cagney <cagney@redhat.com>
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.
7078 2003-06-11 Corinna Vinschen <vinschen@redhat.com>
7080 * remote-fileio.c: Make ari happy.
7082 2003-06-10 J. Brobecker <brobecker@gnat.com>
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.
7087 2003-06-10 Andrew Cagney <cagney@redhat.com>
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.
7095 2003-06-10 Corinna Vinschen <vinschen@redhat.com>
7096 Martin M. Hunt <hunt@redhat.com>
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.
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.
7104 * remote.c (remote_write_bytes, remote_read_bytes): Remove
7105 static storage class.
7106 (remote_wait, remote_async_wait): Call remote_fileio_request() on
7108 (_initialize_remote): Call initialize_remote_fileio().
7109 * remote.h: Declare remote_write_bytes() and remote_read_bytes().
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.
7123 2003-06-09 Andrew Cagney <cagney@redhat.com>
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.
7130 2003-06-09 Andrew Cagney <cagney@redhat.com>
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.
7150 2003-06-09 Andrew Cagney <cagney@redhat.com>
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.
7185 2003-06-09 Andrew Cagney <cagney@redhat.com>
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.
7195 2003-06-08 Andrew Cagney <cagney@redhat.com>
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.
7206 2003-06-08 Andrew Cagney <cagney@redhat.com>
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
7216 * d10v-tdep.c (d10v_unwind_sp): Replace d10v_read_sp.
7217 (d10v_gdbarch_init): Set unwind_sp instead of read_sp.
7219 2003-06-08 Andrew Cagney <cagney@redhat.com>
7221 Deprecate BIG_REMOTE_BREAKPOINT, LITTLE_REMOTE_BREAKPOINT and
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.
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.
7236 2003-06-08 Andrew Cagney <cagney@redhat.com>
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.
7241 * aclocal.m4, config.in, configure: Re-generate.
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.
7333 2003-06-08 Andrew Cagney <cagney@redhat.com>
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.
7348 2003-06-08 Mark Kettenis <kettenis@gnu.org>
7350 * dwarf2cfi.c, dwarf2cfi.h: Remove.
7352 2003-06-07 Adam Fedor <fedor@gnu.org>
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,
7358 resolve_msgsend_super, resolve_msgsend_super_stret):
7361 2003-06-07 Andrew Cagney <cagney@redhat.com>
7363 * symfile.h: Re-indent, clean up comments.
7365 2003-06-07 Andrew Cagney <cagney@redhat.com>
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.
7389 2003-06-07 Andrew Cagney <cagney@redhat.com>
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.
7395 2003-06-07 Andrew Cagney <cagney@redhat.com>
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.
7418 2003-06-07 Andrew Cagney <cagney@redhat.com>
7420 * gdbarch.sh: Comment each field of startup_gdbarch.
7421 * gdbarch.h, gdbarch.c: Re-generate.
7423 2003-06-07 Andrew Cagney <cagney@redhat.com>
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.
7438 2003-06-07 Andrew Cagney <cagney@redhat.com>
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.
7444 2003-06-06 Mark Mitchell <mark@codesourcery.com>
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
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
7469 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
7471 2003-06-06 Andrew Cagney <cagney@redhat.com>
7473 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
7474 (d10v_frame_unwind_cache): Do not set "return_pc".
7476 2003-06-06 Michael Snyder <msnyder@redhat.com>
7478 * h8300-tdep.c: Make tidy (long lines).
7480 2003-06-06 Michal Ludvig <mludvig@suse.cz>
7482 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
7483 to regcache_collect().
7485 2003-06-05 J. Brobecker <brobecker@gnat.com>
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.
7496 2003-06-05 Andrew Cagney <cagney@redhat.com>
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.
7507 2003-06-05 Michal Ludvig <mludvig@suse.cz>
7509 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
7512 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
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.
7518 2003-06-04 Michael Snyder <msnyder@redhat.com>
7520 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
7522 2003-06-04 Mark Kettenis <kettenis@gnu.org>
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.
7529 2003-06-04 J. Brobecker <brobecker@gnat.com>
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.
7535 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
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
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.
7555 Roland McGrath <roland@redhat.com>
7556 * i386-linux-nat.c (ps_get_thread_area): New function needed by
7559 2003-06-03 Richard Henderson <rth@redhat.com>
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.
7567 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
7568 alpha-specific register id names.
7569 (alpha_mdebug_frame_unwind_cache): Likewise.
7570 (alpha_mdebug_frame_prev_register): Likewise.
7572 2003-06-03 Richard Henderson <rth@redhat.com>
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
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.
7583 * alpha-linux-tdep.c: Remove unnecessary includes.
7584 * Makefile.in (alpha-linux-tdep.o): Update.
7586 2003-06-03 Richard Henderson <rth@redhat.com>
7588 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
7589 (alphabsd_fill_fpreg): Likewise.
7591 2003-06-03 J. Brobecker <brobecker@gnat.com>
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.
7597 2003-06-03 J. Brobecker <brobecker@gnat.com>
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.
7603 2003-06-03 J. Brobecker <brobecker@gnat.com>
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.
7608 2003-06-03 J. Brobecker <brobecker@gnat.com>
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.
7614 2003-06-03 J. Brobecker <brobecker@gnat.com>
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.
7620 2003-06-03 Theodore A. Roth <troth@openavr.org>
7622 * remote.c (init_remote_state): Compute sizeof_g_packet by
7623 accumulation of the size of all registers instead of blindly using
7624 DEPRECATED_REGISTER_BYTES.
7626 2003-06-03 Michael Snyder <msnyder@redhat.com>
7628 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
7629 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
7632 2003-06-03 J. Brobecker <brobecker@gnat.com>
7634 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
7635 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
7637 2003-06-03 Andrew Cagney <cagney@redhat.com>
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.
7644 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
7646 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
7647 layer if not dealing with a statically-linked threaded program.
7649 2003-06-03 Kris Warkentin <kewarken@qnx.com>
7651 * solib.c (solib_open): Update comment to reflect actual search order.
7653 2003-06-03 Andrew Cagney <cagney@redhat.com>
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.
7664 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
7666 * MAINTAINERS (write after approval): Add myself.
7668 2003-06-03 Jim Blandy <jimb@redhat.com>
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.
7675 2003-06-02 David Carlton <carlton@bactrian.org>
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.
7682 2003-06-02 Andrew Cagney <cagney@redhat.com>
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.
7691 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
7693 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
7694 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
7695 (syms_from_objfile): Ditto.
7697 2003-06-03 Andreas Schwab <schwab@suse.de>
7699 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
7700 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
7702 2003-06-02 Richard Henderson <rth@redhat.com>
7704 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
7705 a member of all_reggroup.
7707 2003-06-02 Richard Henderson <rth@redhat.com>
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.
7713 (alpha_register_to_value): Change from _convert_to_virtual;
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.
7720 2003-06-02 Richard Henderson <rth@redhat.com>
7722 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
7724 (alpha_sigtramp_register_address): Likewise.
7726 2003-06-02 Richard Henderson <rth@redhat.com>
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.
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.
7747 2003-06-02 Richard Henderson <rth@redhat.com>
7749 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
7751 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
7752 (alpha_store_return_value): Likewise.
7754 2003-06-02 David Carlton <carlton@math.stanford.edu>
7756 * block.c (contained_in): Add 'const' to arguments.
7757 (block_function): Ditto.
7758 * block.h: Update declarations for block_function and
7761 2003-06-02 David Carlton <carlton@math.stanford.edu>
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'.
7768 2003-06-02 Richard Henderson <rth@redhat.com>
7770 * alpha-tdep.c (alpha_push_dummy_call): Use
7771 builtin_type_ieee_double_little instead of builtin_type_double.
7773 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
7774 sign-extension of 32-bit values.
7775 (alpha_store_return_value): Similarly.
7777 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
7778 (alpha_extract_return_value): Likewise.
7779 (alpha_store_return_value): Likewise.
7781 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
7782 (alpha_store_return_value): Error on IEEE Quad floats.
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.
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.
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
7799 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
7801 2003-06-02 Richard Henderson <rth@redhat.com>
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.
7809 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
7811 * mipsnbsd-tdep.c: Update copyright years.
7812 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
7814 2003-06-01 Richard Henderson <rth@redhat.com>
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.
7821 2003-06-01 Richard Henderson <rth@redhat.com>
7823 * alpha-tdep.c (alpha_register_reggroup_p): New.
7824 (alpha_gdbarch_init): Register it.
7826 2003-06-02 Andrew Cagney <cagney@redhat.com>
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.
7839 2003-06-01 Richard Henderson <rth@redhat.com>
7841 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
7842 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
7844 2003-06-01 Adam Fedor <fedor@gnu.org>
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.
7857 2003-06-01 Andrew Cagney <cagney@redhat.com>
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.
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.
7916 2003-06-01 Richard Henderson <rth@redhat.com>
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.
7926 2003-06-01 Andrew Cagney <cagney@redhat.com>
7928 * infcall.c (call_function_by_hand): Update comment on
7929 DEPRECATED_DUMMY_WRITE_SP.
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.
7938 2003-06-01 Richard Henderson <rth@redhat.com>
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.
7952 2003-06-01 Richard Henderson <rth@redhat.com>
7954 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
7955 from arg_reg_buffer to regcache to avoid double conversion.
7957 2003-06-01 Mark Kettenis <kettenis@gnu.org>
7959 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
7961 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
7962 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
7964 2003-06-01 Richard Henderson <rth@redhat.com>
7966 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
7967 (decode_frame_entry): Set it. Skip FDE augmentation.
7969 2003-06-01 Richard Henderson <rth@redhat.com>
7971 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
7972 not overlapping PC_REGNUM.
7974 2003-06-01 Richard Henderson <rth@redhat.com>
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.
7984 2003-06-01 Richard Henderson <rth@redhat.com>
7986 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
7988 2003-06-01 Andrew Cagney <cagney@redhat.com>
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
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.
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
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
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.
8052 2003-06-01 Mark Kettenis <kettenis@gnu.org>
8055 * shnbsd-nat.c: Include "sh-tdep.h".
8057 From Richard Henderson <rth@redhat.com>:
8058 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
8060 2003-05-31 Andrew Cagney <cagney@redhat.com>
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.
8071 2003-05-31 Andrew Cagney <cagney@redhat.com>
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.
8077 2003-05-31 Mark Kettenis <kettenis@gnu.org>
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.
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.
8089 2003-05-31 Andreas Jaeger <aj@suse.de>
8091 * x86-64-linux-nat.c: Fix comment.
8093 2003-05-31 Mark Kettenis <kettenis@gnu.org>
8095 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
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.
8103 2003-05-31 Andrew Cagney <cagney@redhat.com>
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.
8115 2003-05-31 Mark Kettenis <kettenis@gnu.org>
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.
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
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
8130 From Michal Ludvig <mludvig@suse.cz>:
8131 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
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):
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
8147 (i386fbsd_sc_reg_offset): New variable.
8148 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
8150 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
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
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):
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
8164 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
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
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'.
8174 2003-05-31 Andrew Cagney <cagney@redhat.com>
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.
8190 2003-05-31 Andrew Cagney <cagney@redhat.com>
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.
8201 2003-05-31 Mark Kettenis <kettenis@gnu.org>
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):
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
8243 (x86_64_frame_init_saved_regs): Remove function.
8244 (x86_64_push_arguments): Make static. Change to accept a regcache
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
8262 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
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
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
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
8299 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
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
8307 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
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,
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
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.
8339 2003-05-30 Andrew Cagney <cagney@redhat.com>
8341 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
8342 Change parameter type to a "struct regcache *".
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.
8348 2003-05-30 Richard Henderson <rth@redhat.com>
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
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.
8366 2003-05-30 Mark Kettenis <kettenis@gnu.org>
8368 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
8369 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
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
8382 (i386_follow_jump): Rewrite to avoid usage of removed codestream
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):
8404 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
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
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
8445 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
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.
8457 2003-05-30 Andrew Cagney <cagney@redhat.com>
8459 * infcall.c (call_function_by_hand): Always call
8460 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
8462 2003-05-30 Richard Henderson <rth@redhat.com>
8464 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
8467 2003-05-29 Jim Blandy <jimb@redhat.com>
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
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.
8477 2003-05-29 Adam Fedor <fedor@gnu.org>
8479 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
8480 (find_implementation_from_class): Replace it with the standard
8481 case i.e. do nothing.
8483 2003-05-29 Richard Henderson <rth@redhat.com>
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.
8557 2003-05-29 Andrew Cagney <cagney@redhat.com>
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.
8563 2003-05-29 Kevin Buettner <kevinb@redhat.com>
8565 From Jimi X <jimix@watson.ibm.com>:
8566 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
8568 2003-05-28 Jim Blandy <jimb@redhat.com>
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-*-*.
8574 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
8576 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
8579 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8581 * stabsread.c (dbx_lookup_type): Make static.
8583 (add_undefined_type): Ditto.
8584 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
8587 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
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.
8600 2003-05-25 Andreas Schwab <schwab@suse.de>
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.
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".
8623 * Makefile.in (config.status): Also depend on configure.tgt
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.
8639 (GET_LONGJMP_TARGET): Likewise.
8640 (IN_SIGTRAMP): Likewise.
8641 (SVR4_SHARED_LIBS): Define this and include "solib.h".
8643 2003-05-25 Mark Kettenis <kettenis@gnu.org>
8645 * sparc-tdep.c (sparc32_do_push_arguments): New function.
8646 (sparc32_push_arguments): Re-implement by calling
8647 sparc32_do_push_arguments.
8649 2003-05-25 Mark Kettenis <kettenis@gnu.org>
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
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,
8664 DEPRECATED_EXTRACT_RETURN_VALUE,
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):
8673 2003-05-24 Mark Kettenis <kettenis@gnu.org>
8675 * sparcnbsd-tdep.c: Include "gdb_string.h".
8677 2003-05-23 Andrew Cagney <cagney@redhat.com>
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.
8685 2003-05-23 Theodore A. Roth <troth@openavr.org>
8687 * blockframe.c (frameless_look_for_prologue): Remove unused
8688 after_prologue variable.
8690 2003-05-23 Mark Kettenis <kettenis@gnu.org>
8692 * blockframe.c (get_pc_function_start): Rewrite to avoid
8693 asignments in if-statements.
8695 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
8697 Committed by Elena Zannoni <ezannoni@redhat.com>.
8698 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
8699 files, don't relocate absolute symbols (and do use mst_abs).
8701 2003-05-23 Andrew Cagney <cagney@redhat.com>
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
8709 (parse_selector, parse_method, find_methods, find_imps): Ditto.
8710 * Makefile.in (objc-lang.o): Update dependencies.
8712 2003-05-22 Ian Lance Taylor <ian@airs.com>
8714 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
8715 with fprintf_filtered, not fprintf_unfiltered.
8717 2003-05-22 Andrew Cagney <cagney@redhat.com>
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.
8727 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
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.
8733 2003-05-21 J. Brobecker <brobecker@gnat.com>
8735 * config/pa/tm-hppa.h: Delete some unused macros. Move some
8736 macro definitions from here...
8737 * hppa-tdep.c: ...to there.
8739 2003-05-20 Kevin Buettner <kevinb@redhat.com>
8741 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
8742 register_ptrace_addr(). Fix all callers.
8744 2003-05-21 Andreas Schwab <schwab@suse.de>
8746 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
8748 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
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):
8758 (DEPRECATED_STORE_RETURN_VALUE): Remove.
8759 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8760 (DEPRECATED_FRAME_SAVED_PC): Remove.
8762 2003-05-20 Kris Warkentin <kewarken@qnx.com>
8764 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
8765 regset numbering rather than our own.
8767 2003-05-19 David Carlton <carlton@bactrian.org>
8769 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
8771 2003-05-19 David Carlton <carlton@bactrian.org>
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.
8787 2003-05-19 David Carlton <carlton@bactrian.org>
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
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.
8815 2003-05-19 David Carlton <carlton@bactrian.org>
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.
8823 2003-05-19 David Carlton <carlton@bactrian.org>
8825 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
8827 2003-05-19 Michal Ludvig <mludvig@suse.cz>
8829 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
8830 register numbers mapping.
8832 2003-05-18 Adam Fedor <fedor@gnu.org>
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.
8840 2003-05-18 Andreas Schwab <schwab@suse.de>
8842 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
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.
8858 * c-exp.y (typebase): Remove duplicate occurence of
8859 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
8860 of lookup_signed_typename.
8862 2003-05-18 Mark Kettenis <kettenis@gnu.org>
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
8869 2003-05-18 David Carlton <carlton@bactrian.org>
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
8875 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
8876 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
8877 (lookup_block_symbol): Ditto.
8879 2003-05-16 Andrew Cagney <cagney@redhat.com>
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.
8943 2003-05-16 Ian Lance Taylor <ian@airs.com>
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.
8951 2003-05-15 Andrew Cagney <cagney@redhat.com>
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.
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.
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.
9006 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
9008 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
9009 (examine_prologue): Support looking through leaf functions, knowing
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
9014 beyond our calculated value and we have trust_limit set,
9015 use the lim_pc value.
9017 2003-05-15 Andrew Cagney <cagney@redhat.com>
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.
9026 2003-05-15 Theodore A. Roth <troth@openavr.org>
9028 * avr-tdep.c (avr_breakpoint_from_pc): New function.
9029 (avr_gdbarch_init): Set breakpoint_from_pc method.
9031 2003-05-15 Andrew Cagney <cagney@redhat.com>
9033 * regcache.c (build_regcache): Set deprecated_register_valid
9035 (deprecated_grub_regcache_for_register_valid): Delete function.
9036 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
9039 2003-05-15 David Carlton <carlton@bactrian.org>
9041 Committed by Elena Zannoni <ezannoni@redhat.com>
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.
9047 2003-05-14 Kevin Buettner <kevinb@redhat.com>
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
9059 2003-05-14 Theodore A. Roth <troth@openavr.org>
9061 * MAINTAINERS: Update my email address.
9062 * avr-tdep.c: Ditto.
9064 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
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.
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.
9089 2003-05-14 Ian Lance Taylor <ian@airs.com>
9091 * Makefile.in (install-only): Use $(SHELL) when running
9094 2003-05-13 Ian Lance Taylor <ian@airs.com>
9096 * MAINTAINERS (write after approval): Add myself.
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.
9103 2003-05-13 Andrew Cagney <cagney@redhat.com>
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.
9129 2003-05-12 J. Brobecker <brobecker@gnat.com>
9131 * NEWS: Mention that the hppa-hpux port has been partially
9132 multiarched (32bit ABIT only, so far).
9134 2003-05-11 Andrew Cagney <cagney@redhat.com>
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.
9145 2003-05-11 Mark Kettenis <kettenis@gnu.org>
9147 * value.h: Pretty print.
9149 2003-05-10 Mark Kettenis <kettenis@gnu.org>
9151 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
9153 2003-05-08 Andrew Cagney <cagney@redhat.com>
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.
9169 2003-05-08 David Carlton <carlton@math.stanford.edu>
9171 * valops.c (push_word): Fix typo.
9173 2003-05-08 Andrew Cagney <cagney@redhat.com>
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.
9189 2003-05-08 Andrew Cagney <cagney@redhat.com>
9191 * mips-tdep.c (read_signed_register): New function, moved to here
9193 (read_signed_register_pid): Ditto.
9194 * regcache.c (read_signed_register_pid): Delete function, moved to
9196 (read_signed_register): Ditto.
9197 * regcache.h (read_signed_register): Delete declaration.
9198 (read_signed_register_pid): Delete declaration.
9200 2003-05-08 Andrew Cagney <cagney@redhat.com>
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.
9212 2002-05-08 J. Brobecker <brobecker@gnat.com>
9214 * fork-child.c (escape_bang_in_quoted_argument): New function.
9215 (fork_inferior): Escape '!' characters in quoted arguments
9218 2003-05-08 J. Brobecker <brobecker@gnat.com>
9220 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
9221 the language of the CU is not currently supported by GDB.
9223 2003-05-08 J. Brobecker <brobecker@gnat.com>
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.
9230 2003-05-08 Kevin Buettner <kevinb@redhat.com>
9232 * frame.c (get_frame_type): Don't attempt to lazily initialize
9233 frame's unwinder for legacy frames.
9235 2003-05-07 Andrew Cagney <cagney@redhat.com>
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.
9241 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
9243 * dwarf2read.c (dwarf_decode_lines): Only use output of
9244 check_cu_functions() when calling record_line(). Do not update
9245 the current address.
9247 2003-05-07 Andrew Cagney <cagney@redhat.com>
9249 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
9252 2003-05-07 Jim Blandy <jimb@redhat.com>
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.
9267 2003-05-07 Andrew Cagney <cagney@redhat.com>
9269 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
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.
9285 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
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.
9291 2003-05-06 Kris Warkentin <kewarken@qnx.com>
9293 * nto-tdep.c: Removed stray comment.
9295 2003-05-06 Kris Warkentin <kewarken@qnx.com>
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.
9302 2003-05-05 Andrew Cagney <cagney@redhat.com>
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.
9312 2003-05-05 Andrew Cagney <cagney@redhat.com>
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.
9341 2003-05-05 Kris Warkentin <kewarken@qnx.com>
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.
9351 2003-05-04 Andrew Cagney <cagney@redhat.com>
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
9362 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
9363 instead of PC_IN_SIGTRAMP.
9365 2003-05-04 Andrew Cagney <cagney@redhat.com>
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.
9374 2003-05-04 Mark Kettenis <kettenis@gnu.org>
9376 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
9377 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
9379 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
9381 2003-05-03 J. Brobecker <brobecker@gnat.com>
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.
9388 2003-05-03 Andrew Cagney <cagney@redhat.com>
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
9402 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
9404 2003-05-03 Andrew Cagney <cagney@redhat.com>
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.
9423 2003-05-02 Andrew Cagney <cagney@redhat.com>
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.
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.
9440 2003-05-02 David Carlton <carlton@bactrian.org>
9442 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
9443 the name with mstrsave.
9445 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
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
9451 (host_charset_enum, target_charset_enum): New enums for set/show
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'.
9466 * charset.h (set_host_charset, set_target_charset): Don't export,
9467 they are not used outside the file.
9469 2003-05-01 Andrew Cagney <cagney@redhat.com>
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.
9476 2003-05-01 Andrew Cagney <cagney@redhat.com>
9478 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
9479 (d10v_gdbarch_init): Set frame_align instead of stack_align.
9481 2003-04-30 Andrew Cagney <cagney@redhat.com>
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.
9513 2003-04-30 Andrew Cagney <cagney@redhat.com>
9515 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
9517 2003-04-29 Adam Fedor <fedor@gnu.org>
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.
9524 2003-04-28 Adam Fedor <fedor@gnu.org>
9526 * symtab.c (symbol_find_demangled_name): Check for and demangle
9528 (symbol_init_demangled_name): Init for language_objc as well.
9530 2003-04-28 Andrew Cagney <cagney@redhat.com>
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.
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.
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.
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.
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.
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.
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.
9660 2003-04-28 Andrew Cagney <cagney@redhat.com>
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.
9683 2003-04-26 Adam Fedor <fedor@gnu.org>
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.
9689 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
9691 * breakpoint.h (struct breakpoint_ops): New.
9692 (struct breakpoint): Add ops member.
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.
9702 2003-04-25 Adam Fedor <fedor@gnu.org>
9704 * Makefile.in (COMMON_OBS): Add objc-lang.o
9706 2003-04-25 Andrew Cagney <cagney@redhat.com>
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.
9713 2003-04-25 Andrew Cagney <cagney@redhat.com>
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
9730 (trace_command): Use XCALLOC.
9731 (print_insn): Delete reference to tm_print_insn.
9732 (saved_regs_unwinder): Use store_unsigned_integer instead of
9734 * frame.h (FRAME_OBSTACK_CALLOC): Define
9736 2003-04-25 David Carlton <carlton@bactrian.org>
9738 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
9740 2003-04-24 Adam Fedor <fedor@gnu.org>
9742 * objc-lang.c: Include "valprint.h"
9743 * Makefile.in (objc-lang.o): Update dependencies.
9745 2003-04-24 Adam Fedor <fedor@gnu.org>
9747 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
9748 architecture dependant compilation and mark as unimplemented
9749 (until they get put in the gdbarch vector).
9751 2003-04-23 David Carlton <carlton@bactrian.org>
9753 * cp-support.c (cp_find_first_component): Accept 'operator' in
9756 2003-04-23 Andrew Cagney <cagney@redhat.com>
9758 * infcall.c (call_function_by_hand): Eliminate redundant
9759 indentation. Move "saved_async" and "old_cleanups" to where they
9762 2003-04-23 Andrew Cagney <cagney@redhat.com>
9764 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
9765 and "buffer". Move the "name" code to where it is needed.
9767 2003-04-23 Andrew Cagney <cagney@redhat.com>
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.
9773 2003-04-23 Andrew Cagney <cagney@redhat.com>
9775 * infcall.c (call_function_by_hand): Make declaration of "i",
9776 "sal", "bpt" and "old_sp" more local to their use. Delete #if
9779 2003-04-23 Andrew Cagney <cagney@redhat.com>
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".
9787 2003-04-22 Andrew Cagney <cagney@redhat.com>
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.
9794 2003-04-22 Kevin Buettner <kevinb@redhat.com>
9796 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
9797 on the DWARF2 register number prior to fetching a register.
9799 2003-04-22 J. Brobecker <brobecker@gnat.com>
9801 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
9802 Update all the tests using SOFT_FLOAT considering the fact that
9803 this macro was always set to 0.
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.
9809 2003-04-22 J. Brobecker <brobecker@gnat.com>
9811 * config/pa/tm-hppa.h: Remove obsolete code, was used by
9812 the hppa-pro target only.
9814 2003-04-21 J. Brobecker <brobecker@gnat.com>
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).
9821 2003-04-21 J. Brobecker <brobecker@gnat.com>
9823 * config/pa/tm-hppa.h: Obsolete a section that was only used
9826 2003-04-21 J. Brobecker <brobecker@gnat.com>
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.
9833 2003-04-21 Andrew Cagney <cagney@redhat.com>
9835 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
9837 2003-04-21 Andrew Cagney <cagney@redhat.com>
9839 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
9840 "i386_num_mmx_regs".
9842 2003-04-21 Andrew Cagney <cagney@redhat.com>
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.
9876 2003-04-19 Mark Kettenis <kettenis@gnu.org>
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.
9886 * i386-tdep.c (i386_extract_return_value,
9887 i386_store_return_value): Correct check for availability of
9888 floating-point registers.
9890 * i386-tdep.c (i386_frame_num_args): Remove function.
9891 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
9893 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
9894 mmx_regnum_to_fp_regnum. Adjust all callers.
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
9901 2003-04-19 Mark Kettenis <kettenis@gnu.org>
9903 * core-regset.c: Update comments to reflect reality. Re-order
9905 (fetch_core_registers): Use switch instead of if. Remove
9906 redundant prototype.
9908 2003-04-18 Jim Blandy <jimb@redhat.com>
9910 * s390-tdep.c (s390_frame_align): New function.
9911 (s390_gdbarch_init): Register it with the gdbarch object.
9913 2003-04-17 Richard Henderson <rth@redhat.com>
9915 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
9917 2003-04-17 Michael Snyder <msnyder@redhat.com>
9918 Karen Bennet <bennet@redhat.com>
9920 Committed by Elena Zannoni <ezannoni@redhat.com>
9921 * gdb_gcore.sh: New script to create a core dump of a process.
9923 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
9925 * values.c (value_being_returned): Don't fetch the return
9926 value if the return type is void.
9928 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
9930 * thread-db.c: Reindented.
9932 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
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
9962 2003-04-16 Kevin Buettner <kevinb@redhat.com>
9964 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
9965 the size of ``long double'' to 16, instead of 8.
9967 2003-04-16 Mark Kettenis <kettenis@gnu.org>
9969 * i386-linux-nat.c: Add some whitespace to make things more
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.
9975 2003-04-16 Andrew Cagney <cagney@redhat.com>
9977 * utils.c (xmmalloc): Always allocate something, matches
9978 libiberty/xmalloc's semantics.
9979 (xmrealloc, xmcalloc): Ditto.
9981 2003-04-16 Andrew Cagney <cagney@redhat.com>
9983 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
9985 (get_frame_type): Initialize unwind and type when needed.
9986 (get_frame_id, frame_register_unwind): Ditto.
9988 2003-04-16 Andrew Cagney <cagney@redhat.com>
9990 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
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.
10004 2003-04-15 David Carlton <carlton@math.stanford.edu>
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.
10054 2003-04-14 Kevin Buettner <kevinb@redhat.com>
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
10061 2003-04-14 David Carlton <carlton@math.stanford.edu>
10063 * symtab.c (symbol_set_names): Add prefix when storing Java names
10064 in hash table. Fix for PR java/1039.
10066 2003-04-14 David Carlton <carlton@math.stanford.edu>
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'.
10074 2003-04-14 Andrew Cagney <cagney@redhat.com>
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
10082 2003-04-14 Andrew Cagney <cagney@redhat.com>
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
10091 2003-04-14 Jim Blandy <jimb@redhat.com>
10093 * symmisc.c: #include "gdb_regex.h".
10094 (maintenance_list_symtabs, maintenance_list_psymtabs): New
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.
10106 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
10108 * s390-nat.c: Include asm/types.h for addr_t.
10110 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
10112 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
10113 actually incoming type.
10115 2003-04-13 Andrew Cagney <cagney@redhat.com>
10117 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
10118 get_next_frame and get_frame_saved_regs.
10120 2003-04-13 Andrew Cagney <cagney@redhat.com>
10122 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
10123 of gdbarch_num_regs.
10125 2003-04-13 Andrew Cagney <cagney@redhat.com>
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.
10133 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
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
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.
10147 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10149 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
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.
10160 (loclist_read_variable, loclist_read_needs_frame): New functions.
10161 (loclist_describe_location, loclist_tracepoint_var_ref): New
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
10176 (psymtab_to_symtab_1): Likewise. Move base address calculation
10178 (dwarf2_get_pc_bounds): ... here. Use the base address from
10180 (dwarf2_symbol_mark_computed): Handle location lists.
10182 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
10184 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
10185 if the linkage name demangled successfully.
10187 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10189 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
10190 disassmbly_flavour): Removed.
10192 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
10194 2003-04-13 Mark Kettenis <kettenis@gnu.org>
10196 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
10198 2003-04-12 Andrew Cagney <cagney@redhat.com>
10200 * frame.h (struct frame_info): Move definition from here ...
10201 * frame.c (struct frame_info): ... to here.
10203 2003-04-12 Andrew Cagney <cagney@redhat.com>
10205 * gdbthread.h (save_infrun_state): Delete parameter
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.
10214 2003-04-12 Andrew Cagney <cagney@redhat.com>
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.
10233 2003-04-11 Andrew Cagney <cagney@redhat.com>
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
10238 (legacy_saved_regs_this_id): Replace function body with
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.
10244 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
10246 * Makefile.in (libbfd_h): Added missing setting.
10247 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
10248 according to the selected ABI.
10250 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
10252 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
10254 2003-04-11 Andrew Cagney <cagney@redhat.com>
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
10300 2003-04-11 Andrew Cagney <cagney@redhat.com>
10302 * i387-tdep.c: Update copyright.
10303 (i387_to_double): Delete function.
10304 (double_to_i387): Delete function.
10306 2003-04-10 Andrew Cagney <cagney@redhat.com>
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
10313 2003-04-10 Jim Blandy <jimb@redhat.com>
10315 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
10316 call to set_gdbarch_deprecated_push_arguments.
10318 2003-04-10 Andrew Cagney <cagney@redhat.com>
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.
10331 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
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.
10338 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
10340 * blockframe.c (legacy_frame_chain_valid): Move call to
10341 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
10344 2003-04-09 Andrew Cagney <cagney@redhat.com>
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.
10359 2003-04-09 Andrew Cagney <cagney@redhat.com>
10361 * defs.h (gdb_print_host_address): Make "addr" parameter a
10363 * utils.c (gdb_print_host_address): Update.
10365 2003-04-09 Kevin Buettner <kevinb@redhat.com>
10367 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
10368 register number for R0 is 0.
10370 2003-04-09 J. Brobecker <brobecker@gnat.com>
10372 * frame.h (struct gdbarch): Add opaque structure definition
10373 to avoid a compilation warning on LynxOS 4.0.
10375 2003-04-09 Andrew Cagney <cagney@redhat.com>
10377 * frame.h (struct frame_info): Delete field "pc". Replace
10378 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
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".
10387 2003-04-09 Andrew Cagney <cagney@redhat.com>
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".
10395 2003-04-09 Andrew Cagney <cagney@redhat.com>
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.
10418 2003-04-09 Andrew Cagney <cagney@redhat.com>
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*.
10432 2003-04-09 Andrew Cagney <cagney@redhat.com>
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.
10461 2003-04-08 Andrew Cagney <cagney@redhat.com>
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
10470 * arch-utils.c (init_frame_pc_default): Only call
10471 SAVED_PC_AFTER_CALL when available.
10473 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
10475 * infrun.c (stop_soon): Rename from stop_soon_quietly.
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.
10484 * inferior.h (stop_soon): Rename from stop_soon_quietly.
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.
10493 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
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.
10515 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
10517 * disasm.c (dump_insns): Move variables inside loop, or they will
10518 be freed more than once, causing wild memory corruptions.
10519 (gdb_disassembly): Look for the substring "-thread",
10520 instead of "-threads" in the target name, to make sure to find
10521 the 'multi-thread' target. Also, make sure we do the right thing
10522 with the "core" target.
10524 2003-04-07 Kevin Buettner <kevinb@redhat.com>
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().
10532 2003-04-06 Andrew Cagney <cagney@redhat.com>
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.
10540 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
10542 2003-04-06 Andrew Cagney <cagney@redhat.com>
10544 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
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.
10552 2003-04-06 Andrew Cagney <cagney@redhat.com>
10554 * valprint.c (val_print_type_code_int): Delete #ifdef
10555 PRINT_TYPELESS_INTEGER code.
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.
10562 2003-04-05 Andrew Cagney <cagney@redhat.com>
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
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
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.
10600 2003-04-05 Andrew Cagney <cagney@redhat.com>
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.
10624 2003-04-05 Andrew Cagney <cagney@redhat.com>
10626 * frame.c (legacy_get_prev_frame): Link prev to next at the
10627 function start. Update comments.
10629 2003-04-05 Andrew Cagney <cagney@redhat.com>
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.
10638 2003-04-05 Andrew Cagney <cagney@redhat.com>
10640 * stack.c (print_frame_info): Use get_frame_pc.
10642 2003-04-04 Andrew Cagney <cagney@redhat.com>
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
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
10659 * frame-unwind.h: Include "frame.h".
10660 (struct frame_unwind): Add "type" field.
10661 * Makefile.in (frame_unwind_h): Add $(frame_h).
10663 2003-04-04 Andrew Cagney <cagney@redhat.com>
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
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.
10681 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
10683 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
10684 signed integer case.
10685 (classify_argument): Handle enumerations and references.
10687 2003-04-04 Andrew Cagney <cagney@redhat.com>
10689 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
10692 2003-04-01 Adam Fedor <fedor@gnu.org>
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.
10699 2003-04-03 Kevin Buettner <kevinb@redhat.com>
10701 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
10702 ``mach'' to the value determined by bfd_default_set_arch_mach().
10704 2003-04-02 Bob Rossi <bob_rossi@cox.net>
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.
10710 2003-04-01 Kevin Buettner <kevinb@redhat.com>
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.
10715 2003-04-01 Adam Fedor <fedor@gnu.org>
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):
10723 Add ukn_lang_demangle.
10724 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
10725 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
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.
10730 * objc-lang.c (objc_demangle): Add options argument
10731 (objc_language_defn): Use objc_demangle for la_demangle element.
10732 * maint.c (maintenance_demangle): Replace switch with
10733 call to language_demangle.
10734 * utils.c (fprintf_symbol_filtered): Likewise.
10736 2003-04-01 Andrew Cagney <cagney@redhat.com>
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.
10744 2003-04-01 Andrew Cagney <cagney@redhat.com>
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
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.
10759 2003-04-01 Andrew Cagney <cagney@redhat.com>
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.
10765 2003-04-01 Andrew Cagney <cagney@redhat.com>
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.
10798 2003-04-01 Andrew Cagney <cagney@redhat.com>
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.
10827 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
10829 * frame.c (get_prev_frame): Disable call to inside_entry_file().
10831 2003-04-01 Andrew Cagney <cagney@redhat.com>
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.
10868 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
10870 * symfile.c (symfile_relocate_debug_section): Update call to
10871 bfd_simple_get_relocated_section_contents.
10873 2003-03-31 Andrew Cagney <cagney@redhat.com>
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
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
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.
10899 2003-03-31 J. Brobecker <brobecker@gnat.com>
10901 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
10902 (INIT_FRAME_AP): Likewise.
10903 (EXTRA_FRAME_INFO): Likewise.
10905 2003-03-31 Andrew Cagney <cagney@redhat.com>
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.
10928 2003-03-31 Andrew Cagney <cagney@redhat.com>
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
10962 2003-03-30 Andrew Cagney <cagney@redhat.com>
10964 2002-11-10 Klee Dienes <kdienes@apple.com>
10965 * value.h (struct value): Update comment.
10967 2003-03-30 Andrew Cagney <cagney@redhat.com>
10969 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10971 (d10v_gdbarch_init): Do not set fp_regnum.
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".
10979 2003-03-30 Mark Kettenis <kettenis@gnu.org>
10981 * i386-tdep.c (i386_store_struct_return): Removed.
10982 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
10984 2003-03-30 Andrew Cagney <cagney@redhat.com>
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.
11015 2003-03-30 Andrew Cagney <cagney@redhat.com>
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.
11022 2003-03-30 Andrew Cagney <cagney@redhat.com>
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.
11047 2003-03-29 Andrew Cagney <cagney@redhat.com>
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
11053 * gdbarch.h: Regenerate.
11055 2003-03-29 Andrew Cagney <cagney@redhat.com>
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
11068 * config/pa/nm-hppah.h: Include "infttrace.h" for
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
11075 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
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"
11088 (hppa_remove_hw_watchpoint): Ditto.
11090 2003-03-29 Andrew Cagney <cagney@redhat.com>
11092 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
11095 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
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.
11104 2003-03-28 Andrew Cagney <cagney@redhat.com>
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.
11116 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
11118 * thread.c: Reindented.
11119 * lin-lwp.c: Ditto.
11120 * linux-proc.c: Ditto.
11122 2003-03-28 Bob Rossi <bob_rossi@cox.net>
11124 * MAINTAINERS (write after approval): Add myself.
11126 2003-03-27 Theodore A. Roth <troth@openavr.org>
11128 * objc-exp.y: Add missing semi-colons.
11130 2003-03-27 Andrew Cagney <cagney@redhat.com>
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
11136 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
11137 (sparc_pop_frame): Ditto.
11139 2003-03-27 Andrew Cagney <cagney@redhat.com>
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
11160 2003-03-27 Andrew Cagney <cagney@redhat.com>
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.
11168 2003-03-26 Andrew Cagney <cagney@redhat.com>
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.
11208 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11210 * signals/signals.c (do_target_signal_to_host): Correct realtime
11213 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
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.
11220 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11222 From Mark Dettinger <dettinge@de.ibm.com>:
11223 * dwarf2cfi.c (read_2u): Increment pointer by two.
11225 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
11227 * signals/signals.c: Fix typos in last change.
11229 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
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.
11237 2003-03-25 Adam Fedor <fedor@gnu.org>
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):
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.
11255 2003-03-25 Andrew Cagney <cagney@redhat.com>
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.
11261 2003-03-25 Andrew Cagney <cagney@redhat.com>
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.
11281 2003-03-25 Andrew Cagney <cagney@redhat.com>
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.
11313 2003-03-25 Andrew Cagney <cagney@redhat.com>
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.
11351 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
11353 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
11354 set_gdbarch_char_signed.
11356 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11359 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
11361 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
11363 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
11364 (_initialize_arm_tdep): Don't set tm_print_insn.
11366 2003-03-24 Adam Fedor <fedor@gnu.org>
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.
11372 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
11374 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
11375 value was renamed to ARM_FLOAT_SOFT_FPA.
11377 2003-03-23 Andrew Cagney <cagney@redhat.com>
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.
11423 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
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
11441 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
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
11446 new_set and new_show. Use add_setshow_cmd_full and
11447 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
11448 commands and add new version as subcommands of "set/show arm".
11450 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
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.
11458 (set_disassembly_style_sfunc): Renamed from
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.
11466 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11468 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
11469 (arm-tdep.o): Depend on elf_arm_h.
11471 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
11473 * Makefile.in (coff_internal_h): Define.
11474 (arm-tdep.o): Update dependencies.
11476 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
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.
11484 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
11486 * MAINTAINERS (tui): Maintainer of tui code.
11488 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
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.
11497 2003-03-20 Andrew Cagney <cagney@redhat.com>
11499 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
11500 (handle_inferior_event): Remove code calling
11501 DYNAMIC_TRAMPOLINE_NEXTPC.
11503 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
11504 already has a full path.
11506 * main.c (gdb_main): Return 1.
11507 (captured_main): Call error to report an invalid interpreter.
11509 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
11510 * alpha-osf1-tdep.c: Include "gdb_string.h".
11512 2003-03-19 J. Brobecker <brobecker@gnat.com>
11514 Continuing work to convert the hppa targets to multiarch partial.
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.
11522 2003-03-19 Kevin Buettner <kevinb@redhat.com>
11524 * mdebugread.c (parse_symbol): For stEnd, we're done counting
11525 when iss is issNull.
11527 2003-03-18 Kevin Buettner <kevinb@redhat.com>
11529 * mips-tdep.c (mips_register_name): Fix fencepost error involving
11530 NUM_REGS bounds check.
11532 2003-03-18 Kevin Buettner <kevinb@redhat.com>
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
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.
11548 2003-03-18 Andrew Cagney <cagney@redhat.com>
11550 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
11552 * gdbtypes.h (print_scalar_formatted): Update declaration.
11553 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
11555 2003-03-18 J. Brobecker <brobecker@gnat.com>
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.
11561 2003-03-18 J. Brobecker <brobecker@gnat.com>
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.
11570 2003-03-18 J. Brobecker <brobecker@gnat.com>
11572 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
11573 appear to be working in any case.
11575 2003-03-18 J. Brobecker <brobecker@gnat.com>
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.
11584 2003-03-17 J. Brobecker <brobecker@gnat.com>
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.
11591 2003-03-17 Andrew Cagney <cagney@redhat.com>
11593 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
11594 BFD. Simplify setting of di.endian.
11596 2003-03-17 Andrew Cagney <cagney@redhat.com>
11598 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
11599 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
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
11606 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
11608 2003-03-17 Fernando Nasser <fnasser@redhat.com>
11610 * MAINTAINERS: Remove my name from several maintainership roles.
11612 2003-03-17 Andrew Cagney <cagney@redhat.com>
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
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".
11653 2003-03-16 Andrew Cagney <cagney@redhat.com>
11655 * frame.c (frame_pop): Don't call target_store_registers. Fix
11656 problem reported by Mark Kettenis.
11658 2003-03-16 Mark Kettenis <kettenis@gnu.org>
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.
11666 2003-03-14 Andrew Cagney <cagney@redhat.com>
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.
11675 2003-03-14 Andrew Cagney <cagney@redhat.com>
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
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.
11695 2003-03-14 Andrew Cagney <cagney@redhat.com>
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.
11713 2003-03-13 Andrew Cagney <cagney@redhat.com>
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.
11745 2003-03-13 Andrew Cagney <cagney@redhat.com>
11747 * frame.c (legacy_frame_p): New function.
11748 (get_prev_frame): Use legacy_frame_p.
11749 * frame.h (legacy_frame_p): Declare.
11751 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11753 * MAINTAINERS (write after approval): Alphabetically
11756 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
11758 * MAINTAINERS (write after approval): Add myself.
11760 2003-03-12 Andrew Cagney <cagney@redhat.com>
11762 * frame.c (get_prev_frame): Rename the frame parameter to
11764 (get_next_frame, legacy_get_prev_frame): Ditto.
11766 2003-03-12 Andrew Cagney <cagney@redhat.com>
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.
11775 2003-03-12 Andrew Cagney <cagney@redhat.com>
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.
11784 2003-03-12 Andrew Cagney <cagney@redhat.com>
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.
11860 2003-03-12 Andrew Cagney <cagney@redhat.com>
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.
11877 2003-03-11 Kevin Buettner <kevinb@redhat.com>
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
11887 (do_fp_register_row): Fix typo which caused double type to be
11888 used when attempting to unpack a float.
11890 2003-03-11 J. Brobecker <brobecker@gnat.com>
11892 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
11894 2003-03-11 Andrew Cagney <cagney@redhat.com>
11896 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
11897 frame. Problem found by Corinna Vinschen.
11899 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
11901 * doublest.c (floatformat_from_length): Accept also
11902 the real size of 'long double' type.
11904 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
11906 From Klee Dienes <kdienes@apple.com>:
11907 * breakpoint.c (bpstat_copy): Copy the command lines as well
11908 as the old value, to match what is freed in bpstat_clear.
11910 2003-03-10 David Carlton <carlton@math.stanford.edu>
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.
11920 2003-03-10 Andrew Cagney <cagney@redhat.com>
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
11929 2003-03-10 Andrew Cagney <cagney@redhat.com>
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.
12005 2003-03-10 Andrew Cagney <cagney@redhat.com>
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.
12024 2003-03-10 Andrew Cagney <cagney@redhat.com>
12026 * gdbarch.h: Re-generate.
12028 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
12030 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
12033 2003-03-08 Mark Kettenis <kettenis@gnu.org>
12035 * gdbarch.sh (save_dummy_frame_tos): Add comment.
12037 2003-03-08 Andrew Cagney <cagney@redhat.com>
12039 * cli-out.c: Update copyright.
12040 (cli_out_data): Define typedef. Use instead of ui_out_data.
12042 2003-03-08 Andrew Cagney <cagney@redhat.com>
12044 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
12047 2003-03-07 Andrew Cagney <cagney@redhat.com>
12049 * gdbarch.sh: Don't generate two macro definitions when an
12050 undefined macro taking no arguments.
12051 * gdbarch.h: Regenerate.
12053 2002-03-07 Michal Ludvig <mludvig@suse.cz>
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.
12059 2003-03-07 Michal Ludvig <mludvig@suse.cz>
12061 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
12062 (x86_64_skip_prologue): Move prologue detection to
12064 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
12066 2003-03-05 Andrew Cagney <cagney@redhat.com>
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
12074 * gdbarch.h, gdbarch.c: Regneerate.
12076 2003-03-05 Andrew Cagney <cagney@redhat.com>
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
12083 2003-03-05 Andrew Cagney <cagney@redhat.com>
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.
12093 2003-03-05 Andrew Cagney <cagney@redhat.com>
12095 * frame.c (deprecated_update_frame_pc_hack): Also update the the
12096 cached PC value in the next frame.
12098 2003-03-05 Andrew Cagney <cagney@redhat.com>
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
12109 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
12111 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
12113 2003-03-05 James Ingham <jingham@apple.com>
12114 Daniel Jacobowitz <drow@mvista.com>
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
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
12134 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
12136 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
12138 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
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
12144 * Makefile.in (dwarf2loc.o): Update dependencies.
12146 2003-03-04 Theodore A. Roth <troth@openavr.org>
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
12152 2003-03-04 David Carlton <carlton@math.stanford.edu>
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.
12160 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
12162 * MAINTAINERS (Write after approval): Update my email address.
12164 2003-03-03 Andrew Cagney <cagney@redhat.com>
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.
12211 2003-03-03 David Carlton <carlton@math.stanford.edu>
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
12222 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
12223 SYMBOL_MATCHES_NAME.
12226 2003-03-03 David Carlton <carlton@math.stanford.edu>
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.
12232 2003-03-03 David Carlton <carlton@math.stanford.edu>
12234 * linespec.c (find_method): Extract code into collect_methods.
12235 (collect_methods): New.
12237 2003-03-02 Mark Kettenis <kettenis@gnu.org>
12239 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
12242 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
12243 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12245 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
12247 * arch-utils.c (generic_register_byte): Fix to use the loop index
12248 and not regnum when summing the size of all registers up to regnum.
12250 2003-03-01 Andrew Cagney <cagney@redhat.com>
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):
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.
12297 2003-03-01 Andrew Cagney <cagney@redhat.com>
12299 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
12300 option enum and switch. When no windows, set the interpreter to
12303 2003-03-01 Andrew Cagney <cagney@redhat.com>
12305 * main.c (captured_main): Replace magic option characters with an
12308 2003-03-01 Andrew Cagney <cagney@redhat.com>
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.
12344 2003-03-01 Andrew Cagney <cagney@redhat.com>
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
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.
12361 2003-03-01 Andrew Cagney <cagney@redhat.com>
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.
12369 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12371 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
12372 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
12374 2003-03-01 Mark Kettenis <kettenis@gnu.org>
12376 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
12379 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
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.
12389 2003-02-28 Andrew Cagney <cagney@redhat.com>
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.
12396 2003-02-28 David Carlton <carlton@math.stanford.edu>
12398 * linespec.c (decode_compound): Extract code into find_method.
12399 (find_method): New.
12401 2003-02-28 J. Brobecker <brobecker@gnat.com>
12403 * Makefile.in: Add rules to build and link in observer.o.
12405 2003-02-27 J. Brobecker <brobecker@gnat.com>
12407 * observer.c: Minor comments edits.
12409 2003-02-27 J. Brobecker <brobecker@gnat.com>
12411 * observer.h, observer.c: New file.
12413 2003-02-27 Andrew Cagney <cagney@redhat.com>
12415 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
12417 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
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.
12424 2003-02-27 David Carlton <carlton@math.stanford.edu>
12426 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
12428 (compare_psymbols): Ditto.
12429 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
12431 2003-02-27 Michael Snyder <msnyder@redhat.com>
12433 * f-lang.c (build_fortran_types): New function.
12434 (_initialize_f_language): Gdbarch-register built-in fortran types.
12435 * doublest.c (extract_floating): Fix warning text.
12437 2003-02-27 Andrew Cagney <cagney@redhat.com>
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.
12472 2003-02-26 Kevin Buettner <kevinb@redhat.com>
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''.
12478 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
12480 From Elena Zannoni <ezannoni@redhat.com>
12481 * dbxread.c (process_one_symbol): Only record line 0 if one or
12482 more sline entries have been seen for the function.
12484 2003-02-26 Michael Chastain <mec@shout.net>
12486 * configure: Regenerate with autoconf 000227.
12488 2003-02-26 Michael Chastain <mec@shout.net>
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.
12495 2003-02-26 Kris Warkentin <kewarken@qnx.com>
12497 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
12498 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
12500 2003-02-26 Michael Chastain <mec@shout.net>
12502 * configure.in: New variable HAVE_UINTPTR_T.
12503 * configure, config.in: Regenerated.
12505 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
12508 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
12510 2003-02-25 Andrew Cagney <cagney@redhat.com>
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
12517 2003-02-25 Andrew Cagney <cagney@redhat.com>
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
12524 2003-02-25 Michael Chastain <mec@shout.net>
12526 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
12527 to avoid uintptr_t definition problems.
12529 2003-02-25 David Carlton <carlton@math.stanford.edu>
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.
12557 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
12559 * infptrace.c (detach): Do not flag error if ptrace detach fails
12560 and errno is set to ESRCH.
12562 2003-02-24 Andrew Cagney <cagney@redhat.com>
12564 * infptrace.c (udot_info): Change type of udot_off to long. Use
12565 paddr when printing udot_off's value.
12567 2003-02-24 David Carlton <carlton@math.stanford.edu>
12569 * symtab.c (make_symbol_overload_list): Only read in partial
12570 symtabs containing a matching partial symbol.
12572 2003-02-24 David Carlton <carlton@math.stanford.edu>
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.
12580 2003-02-24 Jim Blandy <jimb@redhat.com>
12582 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
12583 support, shared libs): Remove my name from here, to better reflect
12586 2003-02-24 Kris Warkentin <kewarken@qnx.com>
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.
12597 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
12599 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
12602 2003-02-24 Kris Warkentin <kewarken@qnx.com>
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.
12609 2003-02-24 Kris Warkentin <kewarken@qnx.com>
12611 * MAINTAINERS: Add myself to Write After section.
12613 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
12615 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
12617 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
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.
12625 2003-02-21 James E Wilson <wilson@tuliptree.org>
12627 * MAINTAINERS: Update my email address.
12629 2003-02-21 David Carlton <carlton@math.stanford.edu>
12631 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
12633 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
12635 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
12636 * symtab.h: Add opaque declarations of struct axs_value and
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.
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
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.
12665 2003-02-20 Adam Fedor <fedor@gnu.org>
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.
12672 2003-02-20 Tom Tromey <tromey@redhat.com>
12674 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
12675 TYPE_NAME, when printing a String value. PR java/1075.
12677 2003-02-20 Adam Fedor <fedor@gnu.org>
12679 * objc-lang.h (find_methods): Remove declaration.
12680 * objc-lang.c (find_methods): Make static.
12682 2003-02-20 Christopher Faylor <cgf@redhat.com>
12684 * win32-nat.c (get_image_name): Check return value from
12686 (child_xfer_memory): Ditto.
12688 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
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
12694 * configure: Rebuilt.
12696 2003-02-20 David Carlton <carlton@math.stanford.edu>
12698 * symtab.c (search_symbols): Revert the search_symbols part of my
12699 2002-12-23 patch. Add comment.
12701 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
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
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.
12715 2003-02-20 Kevin Buettner <kevinb@redhat.com>
12717 * solib.c (reload_shared_libraries): New function.
12718 (_initialize_solib): Add callbacks for ``set solib-search-path''
12719 and ``set solib-absolute-prefix''.
12721 2003-02-20 David Carlton <carlton@math.stanford.edu>
12723 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
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.
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.
12738 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
12740 * p-valprint.c (pascal_val_print): Ditto.
12741 * stabsread.c (define_symbol): Ditto.
12742 * stack.c (print_frame, frame_info, print_block_frame_locals)
12743 (print_frame_arg_vars, return_command): Ditto.
12744 * symfile.c (compare_symbols, compare_psymbols): Ditto.
12745 * symmisc.c (print_symbol): Ditto.
12746 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
12747 (compare_search_syms, print_symbol_info, print_msymbol_info)
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.
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.
12757 2003-02-20 Kevin Buettner <kevinb@redhat.com>
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
12765 (mips_get_saved_register): Call generic_unwind_get_saved_register()
12766 instead of frame_register_unwind().
12768 2003-02-20 Andrew Cagney <ac131313@redhat.com>
12770 * remote-sim.c (gdbsim_insert_breakpoint)
12771 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
12774 2003-02-20 Andrew Cagney <ac131313@redhat.com>
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.
12783 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
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.
12797 2003-02-19 David Carlton <carlton@math.stanford.edu>
12799 * Makefile.in (SFILES): Add block.c.
12801 (COMMON_OBS): Add block.o.
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
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):
12840 * block.c: New file.
12841 * block.h: New file.
12843 2003-02-19 Theodore A. Roth <troth@openavr.org>
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.
12850 2003-02-19 Andrew Cagney <ac131313@redhat.com>
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
12858 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
12860 2003-02-18 Keith Seitz <keiths@redhat.com>
12862 * Makefile.in: Add gdbtk-interps.c.
12864 2003-02-18 Kevin Buettner <kevinb@redhat.com>
12866 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
12867 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
12869 2003-02-18 Andrew Cagney <cagney@redhat.com>
12871 * symtab.h (struct objfile): Add opaque declaration.
12873 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
12875 From Jim Ingham <jingham@apple.com>:
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.
12881 2003-02-17 Andrew Cagney <cagney@redhat.com>
12883 * configure.in: Revert ${target} != ${host}.
12885 2003-02-17 Andrew Cagney <ac131313@redhat.com>
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.
12892 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
12894 From Brian Ford <ford@vss.fsi.com>
12896 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
12897 conditionalize tui_active test.
12898 (lookup_cmd_1): Ditto.
12900 2003-02-14 Mark Kettenis <kettenis@gnu.org>
12902 * configure.in: Add check for _etext.
12903 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
12905 * config.in, configure: regenerated.
12907 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
12909 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
12911 2003-02-14 Andrew Cagney <ac131313@redhat.com>
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
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".
12925 2003-02-14 Christopher Faylor <cgf@redhat.com>
12927 * win32-nat.c (register_loaded_dll): Correctly set address range for
12930 2003-02-12 Jason Molenda (jmolenda@apple.com)
12932 * symmisc.c (print_objfile_statistics): Include information about
12933 the number of psymtabs and symtabs in each object file.
12935 2003-02-13 Keith R Seitz <keiths@redhat.com>
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.
12942 2003-02-12 Andrew Cagney <ac131313@redhat.com>
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
12951 2003-02-12 Andrew Cagney <ac131313@redhat.com>
12953 * interps.h (interp_command_loop_ftype): Change return type to
12956 2003-02-12 Michal Ludvig <mludvig@suse.cz>
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.
12963 2003-02-11 Andrew Cagney <ac131313@redhat.com>
12965 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
12966 * aclocal.m4: Regenerate.
12967 * configure: Regenerate.
12969 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
12970 TCL_LD_SEARCH_FLAGS.
12972 2003-02-10 Michal Ludvig <mludvig@suse.cz>
12974 * dwarf2cfi.c: Reindented.
12976 2003-02-09 Andrew Cagney <ac131313@redhat.com>
12978 * interps.c (clear_interpreter_hooks): Convert function definition
12981 2003-02-07 David Carlton <carlton@math.stanford.edu>
12983 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
12985 2003-02-07 Kevin Buettner <kevinb@redhat.com>
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''
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.
12994 2003-02-07 Andrew Cagney <ac131313@redhat.com>
12996 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
12998 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
13000 2003-02-06 Andrew Cagney <ac131313@redhat.com>
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.
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.
13018 * procfs.c: Include "gdb_assert.h".
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.
13033 2003-02-07 Mark Kettenis <kettenis@gnu.org>
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.
13039 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
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.
13045 2003-02-05 Fred Fish <fnf@intrinsity.com>
13047 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
13049 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
13051 (angel_RDI_info): Ditto.
13052 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
13054 (threads_continue_all_with_signals): Ditto.
13056 2003-02-05 Jim Ingham <jingham@apple.com>
13057 Keith Seitz <keiths@redhat.com>
13058 Elena Zannoni <ezannoni@redhat.com>
13059 Andrew Cagney <ac131313@redhat.com>
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
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
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.
13091 2003-02-06 Mark Kettenis <kettenis@gnu.org>
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.
13099 2003-02-05 Mark Kettenis <kettenis@gnu.org>
13101 * configure.tgt (*-*-solaris*): Set gdb_osabi to
13104 2003-02-05 Michael Chastain <mec@shout.net>
13106 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
13107 2.12.1 and earlier versions.
13109 2003-02-05 Andrew Cagney <ac131313@redhat.com>
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*-*-*
13123 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
13124 mips*-dec-mach3* targets.
13126 2003-02-04 Michael Chastain <mec@shout.net>
13128 * NEWS: Fix typo: sepcifying -> specifying.
13130 2003-02-04 Michael Chastain <mec@shout.net>
13132 * dwarfread.c: Add documentation on the state of dwarf-1,
13133 looking towards obsoletion.
13135 2003-02-03 Michael Chastain <mec@shout.net>
13137 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
13138 gdb/testsuite/gdb.c++/pr-1023.exp.
13140 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13142 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
13143 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
13145 * utils.c (init_page_info): Delete reference to MPW in comments.
13146 * main.c (captured_main): Delete #ifdef MPW.
13148 2003-02-04 Andrew Cagney <ac131313@redhat.com>
13150 * NEWS: Note that the m32r-*-elf* is obsolete.
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.
13160 2003-02-04 Andrew Cagney <ac131313@redhat.com>
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.
13169 2003-02-04 Andrew Cagney <ac131313@redhat.com>
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.
13181 2003-02-04 Andrew Cagney <ac131313@redhat.com>
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.
13191 2003-02-04 David Carlton <carlton@math.stanford.edu>
13193 * objfiles.c (allocate_objfile): Always set name. Add comment at
13195 * jv-lang.c (get_dynamics_objfile): Add comment.
13197 2003-02-04 David Carlton <carlton@math.stanford.edu>
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.
13205 2003-02-04 David Carlton <carlton@math.stanford.edu>
13207 * linespec.c (decode_compound): Extract code into
13209 (lookup_prefix_sym): New function.
13211 2003-02-04 David Carlton <carlton@math.stanford.edu>
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.
13218 2003-02-04 Jim Blandy <jimb@redhat.com>
13220 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
13221 section, let dwarf_macinfo_section point to it, not
13224 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
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.
13230 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
13232 * defs.h (streq): Add prototype.
13233 * utils.c (streq): New function.
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.
13242 * minsyms.c (prim_record_minimal_symbol_and_info): Use
13243 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
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.
13266 2003-02-03 Jim Blandy <jimb@redhat.com>
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
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.
13283 2003-02-03 Kevin Buettner <kevinb@redhat.com>
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.
13291 2003-02-03 Michael Snyder <msnyder@redhat.com>
13293 * arm-tdep.c: Fix spell-o in comment.
13295 2003-02-03 Michal Ludvig <mludvig@suse.cz>
13297 * dwarf2cfi.c (pointer_encoding): Added new parameter.
13298 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
13299 error messages to contain BFD filename.
13301 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
13303 Fix PR gdb/742 gdb/743 gdb/877
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.
13316 From Kevin Buettner <kevinb@redhat.com>:
13317 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
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().
13323 * cli/cli-setshow.c (cmd_show_list): Use
13324 make_cleanup_ui_out_tuple_begin_end.
13326 2003-02-02 Andrew Cagney <ac131313@redhat.com>
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.
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.
13339 2003-02-02 Andrew Cagney <ac131313@redhat.com>
13341 * frame.h: Note that namelen can be negative.
13342 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
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.
13351 2003-02-02 Mark Kettenis <kettenis@gnu.org>
13353 * stack.c (print_frame_info): Restore call to annotate_frame_begin
13354 lost in the previous patch.
13356 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13358 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
13359 * stack.c (print_frame_info_base): Output complete FRAME tuple
13360 for synthesized frames.
13362 2003-02-02 Andrew Cagney <ac131313@redhat.com>
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.
13390 2003-02-01 Andrew Cagney <ac131313@redhat.com>
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
13399 2003-02-01 Andrew Cagney <ac131313@redhat.com>
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.
13413 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13415 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
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.
13426 2003-02-01 Andrew Cagney <ac131313@redhat.com>
13428 * infcmd.c (print_float_info): Delete code conditional on
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.
13436 2003-02-01 Mark Kettenis <kettenis@gnu.org>
13438 * config/i386/tm-i386os9k.h: Removed.
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.
13447 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
13449 * config/i386/i386dgux.mh: Removed.
13450 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
13452 * configure.in: Fix typo.
13453 * configure: Regenerated.
13455 2003-01-31 David Carlton <carlton@math.stanford.edu>
13457 * dwarf2read.c (dwarf2_locate_sections): Set
13458 dwarf_ranges_section.
13460 2003-01-31 Andrew Cagney <ac131313@redhat.com>
13462 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
13463 * utils.c: Update comments documenting legitimate uses of PTR.
13465 * utils.c: Re-indent.
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,
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.
13487 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
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.
13509 * stabsread.h (elfstab_build_psymtabs): Update prototype.
13510 * symfile.c (symfile_dummy_outputs): New function.
13511 (symfile_relocate_debug_section): New function.
13512 * symfile.h (symfile_relocate_debug_section): Add prototype.
13514 2003-01-31 Richard Henderson <rth@redhat.com>
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.
13524 2003-01-31 Andrew Cagney <ac131313@redhat.com>
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.
13534 2003-01-31 Adam Fedor <fedor@gnu.org>
13536 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
13537 Remove duplicate/shadowing variable of same name.
13539 2003-01-30 Jim Blandy <jimb@redhat.com>
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.
13545 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
13547 * valops.c (value_assign): Flush frame cache after stores to memory
13550 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13552 * Makefile.in (mon960-rom.o): Delete rule.
13553 * mon960-rom.c: Delete file.
13555 2003-01-30 Andrew Cagney <ac131313@redhat.com>
13557 * d10v-tdep.c: Include "frame-unwind.h".
13558 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
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.
13583 2003-01-30 J. Brobecker <brobecker@gnat.com>
13585 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
13586 causing some regressions due to a change in the default value
13589 2003-01-29 Richard Henderson <rth@redhat.com>
13590 Elena Zannoni <ezannoni@redhat.com>
13591 Daniel Jacobowitz <drow@mvista.com>
13594 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
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.
13609 2003-01-29 Brian Ford <ford@vss.fsi.com>
13611 * win32-nat.c (cygwin_pid): Removed as unused.
13612 (child_attach): Try fall back to Cygwin pid.
13614 2003-01-29 Jim Blandy <jimb@redhat.com>
13616 * objfiles.h (struct objfile): Doc fix.
13618 2003-01-29 Andrew Cagney <ac131313@redhat.com>
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.
13628 2003-01-28 Andrew Cagney <ac131313@redhat.com>
13630 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
13632 * complaints.c (complain): Delete function.
13633 * complaints.h (struct deprecated_complaint): Delete definition.
13634 (complain): Delete declaration.
13636 2003-01-28 Kevin Buettner <kevinb@redhat.com>
13638 * mips-tdep.c (mips_init_extra_frame_info): Return early for
13641 2003-01-27 Andrew Cagney <ac131313@redhat.com>
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
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
13665 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
13668 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13670 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
13672 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
13674 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
13675 (maintenance_set_profile_cmd): Use error () instead of warning ().
13677 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
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.
13685 2003-01-24 Nick Clifton <nickc@redhat.com>
13687 * Add sh2e support:
13689 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
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.
13696 2003-01-23 Jim Blandy <jimb@redhat.com>
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.
13706 2003-01-23 Alexander Larsson <alexl@redhat.com>
13707 Jim Blandy <jimb@redhat.com>
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
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.
13740 2003-01-22 Jim Blandy <jimb@redhat.com>
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.
13747 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
13748 with the appropriate quiescent values for the new arguments.
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
13758 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
13760 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
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.
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.
13777 2003-01-21 Martin M. Hunt <hunt@redhat.com>
13779 * Makefile.in (install-gdbtk): Install PNG images too.
13781 2003-01-21 Andrew Cagney <ac131313@redhat.com>
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.
13797 2003-01-21 Andrew Cagney <ac131313@redhat.com>
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.
13814 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13816 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
13817 DEPRECATED_REGISTERS_INFO.
13819 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13821 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
13822 Maintainers'. Update `Various Maintainers'.
13824 2003-01-19 Andrew Cagney <ac131313@redhat.com>
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.
13831 2003-01-19 Andrew Cagney <ac131313@redhat.com>
13833 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
13834 code handling dummy frames.
13836 2003-01-19 Andrew Cagney <ac131313@redhat.com>
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.
13852 2003-01-18 Andrew Cagney <ac131313@redhat.com>
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.
13862 2003-01-18 Michael Chastain <mec@shout.net>
13864 * README (Unpacking and Installation -- quick overview):
13865 Warn against ".../gdb-5.3/gdb/configure".
13867 2003-01-18 Andrew Cagney <ac131313@redhat.com>
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.
13898 2003-01-18 Andrew Cagney <ac131313@redhat.com>
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.
13909 2003-01-17 Andrew Cagney <ac131313@redhat.com>
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.
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.
13929 2003-01-16 Andrew Cagney <ac131313@redhat.com>
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.
13939 2003-01-15 Andrew Cagney <ac131313@redhat.com>
13941 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
13943 2003-01-15 Stephen P. Smith <ischis2@cox.net>
13945 * MAINTAINERS (Stephen P. Smith): Updated email address.
13947 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
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.
13953 * infcmd.c (until_command): Add new argument to until_break_command
13955 (advance_command): New function.
13956 (_initialize_infcmd): Update help string for 'until' command.
13957 Add new 'advance' command.
13959 2003-01-14 David Carlton <carlton@math.stanford.edu>
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.
13971 2003-01-13 Andrew Cagney <ac131313@redhat.com>
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.
13986 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
13988 * stabsread.h (process_later, resolve_cfront_continuation):
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.
13994 (process_later, process_now): Obsolete functions.
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.
14002 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
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.
14012 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
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.
14035 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14037 * README (Graphical interface to GDB): Update URL. Point at
14040 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
14043 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14045 * symtab.c (find_pc_sect_line): Don't consider end-of-function
14048 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
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.
14063 (clear_lwpid_callback): New function.
14064 (thread_db_resume): Use it to clear the cache.
14066 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14068 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
14069 (resume_callback): Remove dead code.
14071 2003-01-13 Andrew Cagney <ac131313@redhat.com>
14073 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
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.
14082 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14084 * source.c (openp): Squelch warning about "filename".
14086 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14088 * source.c (openp): If the file does not exist don't necessarily
14091 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
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.
14099 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
14101 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
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.
14111 2003-01-12 Michael Chastain <mec@shout.net>
14113 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
14115 2003-01-12 Michael Chastain <mec@shout.net>
14117 * top.c (print_gdb_version): Bump copyright year to 2003.
14119 2003-01-12 David Carlton <carlton@bactrian.org>
14121 * linespec.c (symtab_from_filename): Rename variable 's' to
14124 2003-01-12 Andrew Cagney <ac131313@redhat.com>
14126 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
14128 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
14130 2003-01-12 Andrew Cagney <ac131313@redhat.com>
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.
14139 2003-01-12 J. Brobecker <brobecker@gnat.com>
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.
14146 2003-01-11 J. Brobecker <brobecker@gnat.com>
14148 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
14149 a compilation warning.
14150 (hpread_process_one_debug_symbol): Likewise.
14152 2003-01-10 David Carlton <carlton@math.stanford.edu>
14154 * linespec.c (decode_line_1): Rename variable 's' to
14156 (decode_all_digits): Rename argument 's' to 'file_symtab'.
14157 (decode_dollar): Ditto.
14158 (decode_variable): Ditto.
14159 (symbol_found): Ditto.
14161 2003-01-09 Michael Chastain <mec@shout.net>
14163 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
14165 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
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.
14171 2003-01-10 J. Brobecker <brobecker@gnat.com>
14173 * hpread.c (hpread_process_one_debug_symbol): Fix a small
14174 compilation error in the previous revision.
14176 2003-01-09 David Carlton <carlton@math.stanford.edu>
14178 * linespec.c: Update copyright.
14180 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
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.
14186 2003-01-09 Andrew Cagney <ac131313@redhat.com>
14188 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
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.
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.
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.
14215 2003-01-08 Andrew Cagney <cagney@redhat.com>
14217 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
14220 2003-01-08 Andrew Cagney <ac131313@redhat.com>
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.
14226 2003-01-08 Andrew Cagney <ac131313@redhat.com>
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.
14232 2003-01-08 Andrew Cagney <cagney@redhat.com>
14234 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
14237 2003-01-08 David Carlton <carlton@math.stanford.edu>
14239 * linespec.c (decode_line_1): Move code into decode_variable.
14240 (decode_variable): New function.
14242 2003-01-08 Andrew Cagney <ac131313@redhat.com>
14244 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
14246 2003-01-08 Andrew Cagney <cagney@redhat.com>
14248 * cris-tdep.c (cris_frame_init_saved_regs): Use
14249 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
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.
14259 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
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.
14265 2003-01-08 Andrew Cagney <cagney@redhat.com>
14267 * d10v-tdep.c (d10v_init_extra_frame_info): Use
14268 frame_relative_level.
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.
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.
14285 2003-01-07 Andrew Cagney <cagney@redhat.com>
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.
14297 2003-01-07 Andrew Cagney <cagney@redhat.com>
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.
14306 2003-01-07 Andrew Cagney <cagney@redhat.com>
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.
14316 2003-01-07 David Carlton <carlton@math.stanford.edu>
14318 * linespec.c (decode_line_1): Move code into decode_dollar.
14319 (decode_dollar): New function.
14321 2003-01-07 Andrew Cagney <cagney@redhat.com>
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.
14330 2003-01-07 Andrew Cagney <cagney@redhat.com>
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.
14350 * mn10300-tdep.c (analyze_dummy_frame): Use
14351 deprecated_set_frame_extra_info_hack.
14352 * mcore-tdep.c (analyze_dummy_frame): Ditto.
14354 2003-01-07 J. Brobecker <brobecker@gnat.com>
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.
14360 2003-01-06 Michael Snyder <msnyder@redhat.com>
14362 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
14364 2003-01-06 Andrew Cagney <ac131313@redhat.com>
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.
14375 2003-01-06 Andrew Cagney <cagney@redhat.com>
14377 * x86-64-linux-tdep.c: Include "osabi.h".
14378 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
14380 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
14382 2003-01-06 Andrew Cagney <cagney@redhat.com>
14384 * MAINTAINERS (Target Instruction Set Architectures): Update
14385 arm-elf. Can be built with -Werror, has been multiarched.
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.
14409 2003-01-06 Michal Ludvig <mludvig@suse.cz>
14411 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
14412 since it is in i386-tdep.c.
14414 2003-01-06 J. Brobecker <brobecker@gnat.com>
14416 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
14417 failure introduced in the previous change.
14419 2003-01-05 Michael Chastain <mec@shout.net>
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.
14425 2003-01-05 Mark Kettenis <kettenis@gnu.org>
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.
14431 2003-01-05 Andrew Cagney <ac131313@redhat.com>
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.
14439 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14441 * stabsread.c (update_method_name_from_physname): Call complaint()
14444 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
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.
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.
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.
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.
14501 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
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.
14520 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
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
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.
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".
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".
14557 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
14558 Update call to gdbarch_init_osabi.
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".
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.
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".
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".
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".
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
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.
14622 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14624 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
14626 (breakpoint_re_set_one): Don't fetch the value for a disabled
14629 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
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.
14645 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
14647 * mdebugread.c (parse_symbol): Likewise.
14648 * stabsread.c (define_symbol): Mark all functions as prototyped.
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.
14673 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
14675 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
14677 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
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.
14684 2003-01-04 Mark Kettenis <kettenis@gnu.org>
14686 * configure.in: Don't set and AC_SUBST SUBDIRS.
14687 * configure: Regenerated.
14689 * configure.in: Remove code dealing with shared libraries.
14690 * Makefile.in: Remove HLDFLAGS and HLDENV.
14691 * configure: Regenerated.
14693 2003-01-04 Andrew Cagney <ac131313@redhat.com>
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.
14702 2003-01-04 Mark Kettenis <kettenis@gnu.org>
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.
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.
14716 2003-01-03 Andrew Cagney <ac131313@redhat.com>
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.
14725 2003-01-03 Mark Kettenis <kettenis@gnu.org>
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.
14732 * configure: Regenerated.
14733 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
14736 2003-01-03 Andrew Cagney <cagney@redhat.com>
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.
14743 2003-01-03 Mark Kettenis <kettenis@gnu.org>
14745 * configure.in: Remove --enable-netrom option.
14746 * configure: Regenerated.
14748 2003-01-03 Mark Kettenis <kettenis@gnu.org>
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).
14754 2003-01-03 J. Brobecker <brobecker@gnat.com>
14756 * mdebugread.c (parse_symbol): Count until the stEnd matching
14757 the structure name.
14759 2003-01-02 Mark Kettenis <kettenis@gnu.org>
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.
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.
14771 2003-01-02 Andrew Cagney <ac131313@redhat.com>
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.
14783 2003-01-02 Mark Kettenis <kettenis@gnu.org>
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.
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.
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.
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.
14815 2003-01-02 Andrew Cagney <ac131313@redhat.com>
14817 * MAINTAINERS: Mention gdb_mbuild.sh.
14818 * gdb_mbuild.sh: Rewrite.
14820 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14822 * configure.in: Fix typo in last change.
14823 * config.in, configure: Regenerated.
14825 2003-01-02 Andrew Cagney <ac131313@redhat.com>
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
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.
14867 2003-01-02 Mark Kettenis <kettenis@gnu.org>
14869 * configure.in: Reorganize "Checks for library functions section"
14870 a bit. Remove check for `btowc' and `isascii' functions.
14871 * configure: Regenerated.
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"
14880 * config.in, configure: Regenerated.
14882 * configure.in: Create "Checks for programs" section, and move
14883 appropriate tests there.
14885 2003-01-01 Mark Kettenis <kettenis@gnu.org>
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.
14892 For older changes see ChangeLog-2002
14898 version-control: never