1 2003-06-08 Mark Kettenis <kettenis@gnu.org>
3 * dwarf2cfi.c, dwarf2cfi.h: Remove.
5 2003-06-07 Adam Fedor <fedor@gnu.org>
7 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
8 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
9 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
10 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
11 resolve_msgsend_super, resolve_msgsend_super_stret):
14 2003-06-07 Andrew Cagney <cagney@redhat.com>
16 * symfile.h: Re-indent, clean up comments.
18 2003-06-07 Andrew Cagney <cagney@redhat.com>
20 * inferior.h (deprecated_write_sp): Replace
21 generic_target_write_sp.
22 * regcache.c (deprecated_write_sp): Replace
23 generic_target_write_sp.
24 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
25 * vax-tdep.c (vax_gdbarch_init): Update.
26 * v850-tdep.c (v850_gdbarch_init): Update.
27 * sparc-tdep.c (sparc_gdbarch_init): Update.
28 * sh-tdep.c (sh_gdbarch_init): Update.
29 * s390-tdep.c (s390_gdbarch_init): Update.
30 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
31 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
32 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
33 * mcore-tdep.c (mcore_gdbarch_init): Update.
34 * m68k-tdep.c (m68k_gdbarch_init): Update.
35 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
36 * ia64-tdep.c (ia64_gdbarch_init): Update.
37 * h8300-tdep.c (h8300_gdbarch_init): Update.
38 * frv-tdep.c (frv_gdbarch_init): Update.
39 * cris-tdep.c (cris_gdbarch_init): Update.
40 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
42 2003-06-07 Andrew Cagney <cagney@redhat.com>
44 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
45 Assert that PC_REGNUM is valid.
46 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
48 2003-06-07 Andrew Cagney <cagney@redhat.com>
50 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
51 * gdbarch.h, gdbarch.c: Regenerate.
52 * mn10300-tdep.c: Include "gdb_assert.h".
53 (mn10300_read_fp): New function.
54 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
55 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
56 * ia64-tdep.c: Include "gdb_assert.h".
57 (ia64_read_fp): New function.
58 (ia64_gdbarch_init): Set deprecated_target_read_fp to
59 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
60 * regcache.c (generic_target_read_sp): Delete function.
61 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
62 * inferior.h (generic_target_read_sp): Delete declaration.
63 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
64 generic_target_read_sp.
65 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
66 * sparc-tdep.c (sparc_gdbarch_init): Ditto
67 * sh-tdep.c (sh_gdbarch_init): Ditto.
68 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
69 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
71 2003-06-07 Andrew Cagney <cagney@redhat.com>
73 * gdbarch.sh: Comment each field of startup_gdbarch.
74 * gdbarch.h, gdbarch.c: Re-generate.
76 2003-06-07 Andrew Cagney <cagney@redhat.com>
78 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
79 * gdbarch.h, gdbarch.c: Re-generate.
80 * regcache.c: Update comments on read_pc et.al.
81 (generic_target_read_pc): Delete function.
82 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
83 * inferior.h (generic_target_read_pc): Delete declaration.
84 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
85 generic_target_read_pc.
86 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
87 * sh-tdep.c (sh_gdbarch_init): Ditto.
88 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
89 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
91 2003-06-07 Andrew Cagney <cagney@redhat.com>
93 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
94 "index" with "special_local_sect". Use strcmp instead of STREQ.
95 Append period to coments.
97 2003-06-06 Mark Mitchell <mark@codesourcery.com>
99 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
100 (elfstab_offset_sections): Likewise.
101 * gdb-stabs.h (stab_section_info): Likewise.
102 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
103 * objfiles.c (objfile_relocate): Likewise.
104 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
105 * remote.c (get_offsets): Likewise.
106 (remote_cisco_objfile_relocate): Likewise.
107 * somread.c (som_symfile_offsets): Likewise.
108 * symfile.c (alloc_section_addr_info): New function.
109 (build_section_addr_info_from_section_tab): Use it.
110 (free_section_addr_info): Adjust.
111 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
112 (syms_from_objfile): Allocate local_addr dynamically.
113 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
115 (add_symbol_file_command): Allocate sect_opts dynamically.
116 (reread_symbols): Avoid use of SECT_OFF_MAX.
117 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
118 (alloc_section_addr_info): Declare it.
119 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
120 * win32-nat.c (solib_symbols_add): Allocate section_addrs
122 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
124 2003-06-06 Andrew Cagney <cagney@redhat.com>
126 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
127 (d10v_frame_unwind_cache): Do not set "return_pc".
129 2003-06-06 Michael Snyder <msnyder@redhat.com>
131 * h8300-tdep.c: Make tidy (long lines).
133 2003-06-06 Michal Ludvig <mludvig@suse.cz>
135 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
136 to regcache_collect().
138 2003-06-05 J. Brobecker <brobecker@gnat.com>
140 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
141 pc_in_sigtramp multiarch method.
142 (hppa_hpux_som_init_abi): Use it.
143 (hppa_hpux_elf_init_abi): Likewise.
144 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
145 macro has been multiarched.
146 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
147 macro here, as hppa64 isn't multiarched yet.
149 2003-06-05 Andrew Cagney <cagney@redhat.com>
151 * Makefile.in (value_h): Add $(frame_h).
152 * value.h: Include "frame.h".
153 (struct value): Replace "frame_addr" with "frame_id".
154 (VALUE_FRAME_ID): Replace VALUE_FRAME.
155 * values.c (allocate_value): Use VALUE_FRAME_ID.
156 (value_copy): Use VALUE_FRAME_ID.
157 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
158 * valops.c (value_assign): Update. Use frame_find_by_id.
160 2003-06-05 Michal Ludvig <mludvig@suse.cz>
162 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
165 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
167 * thread-db.c (check_event): For create/death event breakpoints,
168 loop through all messages to ensure that we read the message
169 corresponding to the breakpoint we are at.
171 2003-06-04 Michael Snyder <msnyder@redhat.com>
173 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
175 2003-06-04 Mark Kettenis <kettenis@gnu.org>
177 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
178 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
179 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
180 when handling .eh_frame sections.
182 2003-06-04 J. Brobecker <brobecker@gnat.com>
184 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
185 prepare_to_proceed procedure instead of the hppa-specific one.
186 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
188 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
190 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
191 * config.in: Regenerated.
192 * configure.in: Add test for syscall function and check for
193 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
194 * configure: Regenerated.
195 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
197 (kill_lwp): New function that uses tkill syscall or
198 uses kill, depending on whether threading model is nptl or not.
199 All callers of kill() changed to use kill_lwp().
200 (lin_lwp_wait): Make special check when WIFEXITED occurs to
201 see if all threads have already exited in the nptl model.
202 (stop_and_resume_callback): New callback function used by the
203 lin_lwp_wait thread exit handling code.
204 (stop_wait_callback): Check for threads already having exited and
205 delete such threads fromt the lwp list when discovered.
206 (stop_callback): Don't assert retcode of kill call.
208 Roland McGrath <roland@redhat.com>
209 * i386-linux-nat.c (ps_get_thread_area): New function needed by
212 2003-06-03 Richard Henderson <rth@redhat.com>
214 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
215 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
216 (alpha_sigtramp_frame_prev_register): Likewise.
217 (alpha_heuristic_frame_prev_register): Likewise.
218 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
220 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
221 alpha-specific register id names.
222 (alpha_mdebug_frame_unwind_cache): Likewise.
223 (alpha_mdebug_frame_prev_register): Likewise.
225 2003-06-03 Richard Henderson <rth@redhat.com>
227 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
228 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
229 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
230 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
232 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
233 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
234 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
236 * alpha-linux-tdep.c: Remove unnecessary includes.
237 * Makefile.in (alpha-linux-tdep.o): Update.
239 2003-06-03 Richard Henderson <rth@redhat.com>
241 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
242 (alphabsd_fill_fpreg): Likewise.
244 2003-06-03 J. Brobecker <brobecker@gnat.com>
246 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
247 references to struct frame_info fields by calls to the equivalent
248 accessors. Necessary now that frame_info is opaque.
250 2003-06-03 J. Brobecker <brobecker@gnat.com>
252 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
253 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
254 structure, field no longer exists.
256 2003-06-03 J. Brobecker <brobecker@gnat.com>
258 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
259 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
261 2003-06-03 J. Brobecker <brobecker@gnat.com>
263 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
264 references to struct frame_info fields by calls to the equivalent
265 accessors. Necessary now that frame_info is opaque.
267 2003-06-03 J. Brobecker <brobecker@gnat.com>
269 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
270 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
271 structure, field no longer exists.
273 2003-06-03 Theodore A. Roth <troth@openavr.org>
275 * remote.c (init_remote_state): Compute sizeof_g_packet by
276 accumulation of the size of all registers instead of blindly using
277 DEPRECATED_REGISTER_BYTES.
279 2003-06-03 Michael Snyder <msnyder@redhat.com>
281 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
282 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
285 2003-06-03 J. Brobecker <brobecker@gnat.com>
287 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
288 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
290 2003-06-03 Andrew Cagney <cagney@redhat.com>
292 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
293 (sparc_convert_to_raw): Delete function.
294 (sparc_gdbarch_init): Do not set register_convert_to_raw or
295 register_convert_to_virtual.
297 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
299 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
300 layer if not dealing with a statically-linked threaded program.
302 2003-06-03 Kris Warkentin <kewarken@qnx.com>
304 * solib.c (solib_open): Update comment to reflect actual search order.
306 2003-06-03 Andrew Cagney <cagney@redhat.com>
308 * frame.c (get_frame_memory_signed): New function.
309 (get_frame_memory, get_frame_memory_unsigned): New function.
310 (get_frame_arch): New function.
311 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
312 (get_frame_memory, get_frame_unsigned_memory): Declare.
313 * d10v-tdep.c (d10v_frame_unwind_cache): Use
314 get_frame_memory_unsigned and get_frame_arch.
315 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
317 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
319 * MAINTAINERS (write after approval): Add myself.
321 2003-06-03 Jim Blandy <jimb@redhat.com>
323 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
324 elements of gregset_t are 64 bits each, but access registers
325 are still 32 bits, so they're packed two per gregset_t
326 element. Unpack/pack them properly.
328 2003-06-02 David Carlton <carlton@bactrian.org>
330 * linespec.c (find_methods): Break out code into
331 add_matching_methods and add_constructors.
332 (add_matching_methods): New.
333 (add_constructors): Ditto.
335 2003-06-02 Andrew Cagney <cagney@redhat.com>
337 * sparc-tdep.c (sparc_print_registers): Delete call to
338 REGISTER_CONVERTIBLE.
339 (sparc_gdbarch_init): Do not set register_convertible.
340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
341 * frv-tdep.c (frv_gdbarch_init): Ditto.
342 * cris-tdep.c (cris_gdbarch_init): Ditto.
344 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
346 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
347 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
348 (syms_from_objfile): Ditto.
350 2003-06-03 Andreas Schwab <schwab@suse.de>
352 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
353 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
355 2003-06-02 Richard Henderson <rth@redhat.com>
357 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
358 a member of all_reggroup.
360 2003-06-02 Richard Henderson <rth@redhat.com>
362 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
363 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
364 (alpha_lds, alpha_sts): New.
365 (alpha_convert_register_p): Change from _register_convertible.
366 (alpha_register_to_value): Change from _convert_to_virtual;
367 restructure and fail for type sizes other than 4 or 8.
368 (alpha_value_to_register): Similarly.
369 (alpha_extract_return_value): Use alpha_sts.
370 (alpha_store_return_value): Use alpha_lds.
371 (alpha_gdbarch_init): Update hooks.
373 2003-06-02 Richard Henderson <rth@redhat.com>
375 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
377 (alpha_sigtramp_register_address): Likewise.
379 2003-06-02 Richard Henderson <rth@redhat.com>
381 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
382 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
383 * alpha-tdep.h: Declare them.
385 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
386 Remove zerobuf. Don't error on UNIQUE.
387 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
388 (ALPHA_REGSET_UNIQUE): Provide default.
389 (supply_gregset): Use alpha_supply_int_regs.
390 (fill_gregset): Use alpha_fill_int_regs.
391 (supply_fpregset): Use alpha_supply_fp_regs.
392 (fill_fpregset): Use alpha_fill_fp_regs.
393 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
394 (alphabsd_supply_reg): Use alpha_supply_int_regs.
395 (alphabsd_fill_reg): Use alpha_fill_int_regs.
396 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
397 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
398 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
400 2003-06-02 Richard Henderson <rth@redhat.com>
402 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
404 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
405 (alpha_store_return_value): Likewise.
407 2003-06-02 David Carlton <carlton@math.stanford.edu>
409 * block.c (contained_in): Add 'const' to arguments.
410 (block_function): Ditto.
411 * block.h: Update declarations for block_function and
414 2003-06-02 David Carlton <carlton@math.stanford.edu>
416 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
417 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
418 * p-valprint.c (pascal_val_print): Ditto.
419 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
421 2003-06-02 Richard Henderson <rth@redhat.com>
423 * alpha-tdep.c (alpha_push_dummy_call): Use
424 builtin_type_ieee_double_little instead of builtin_type_double.
426 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
427 sign-extension of 32-bit values.
428 (alpha_store_return_value): Similarly.
430 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
431 (alpha_extract_return_value): Likewise.
432 (alpha_store_return_value): Likewise.
434 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
435 (alpha_store_return_value): Error on IEEE Quad floats.
437 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
438 (alpha_extract_struct_value_address): Likewise.
439 (alpha_store_return_value): Likewise.
440 (alpha_store_struct_return): Remove.
441 (alpha_gdbarch_init): Update hook registration to match.
443 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
444 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
445 macros where appropriate.
446 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
447 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
449 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
450 for SP, GP; void_func_ptr for PC; non-language-specific types
452 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
454 2003-06-02 Richard Henderson <rth@redhat.com>
456 * top.h (lim_at_start): Declare.
457 * main.c (captured_main): Set it.
458 * top.c (lim_at_start): Define.
459 (command_loop): Use it instead of &environ.
460 * event-top.c (command_handler): Likewise.
462 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
464 * mipsnbsd-tdep.c: Update copyright years.
465 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
467 2003-06-01 Richard Henderson <rth@redhat.com>
469 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
470 (alpha-linux-tdep.o): Update dependencies.
471 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
472 * alpha-mdebug-tdep.c: Remove unneeded includes.
474 2003-06-01 Richard Henderson <rth@redhat.com>
476 * alpha-tdep.c (alpha_register_reggroup_p): New.
477 (alpha_gdbarch_init): Register it.
479 2003-06-02 Andrew Cagney <cagney@redhat.com>
481 * dwarfread.c: Eliminate "register"
482 (decode_die_type): Eliminate assignment within "if".
483 (struct_type, decode_array_element_type): Ditto.
484 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
485 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
486 (decode_modified_type, completedieinfo): Ditto.
487 * block.c: Eliminate "register".
488 (blockvector_for_pc_sect): Eliminate assignment within "if".
489 * cp-support.h (struct symbol): Opaque declaration.
490 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
492 2003-06-01 Richard Henderson <rth@redhat.com>
494 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
495 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
497 2003-06-01 Adam Fedor <fedor@gnu.org>
499 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
500 * gdbarch.[ch]: Regenerate.
501 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
502 (hppa_gdbarch_init): Set it in the gdbarch vector.
503 * i386-tdep.c (i386_fetch_pointer_argument): New
504 (i386_gdbarch_init): Set it into gdbarch.
505 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
506 (rs6000_gdbarch_init): Set it in gdbarch.
507 * sparc-tdep.c (sparc_fetch_pointer_argument): New
508 (sparc_gdbarch_init): Set it in gdbarch.
510 2003-06-01 Andrew Cagney <cagney@redhat.com>
512 * defs.h (extract_address): Delete declaration.
513 * findvar.c (extract_address): Delete function.
514 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
515 extract_address with the inline equivalent,
516 extract_unsigned_integer.
517 (xstormy16_extract_struct_value_address): Ditto.
518 (xstormy16_pointer_to_address): Ditto.
519 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
520 * v850-tdep.c (v850_push_arguments): Ditto.
521 (v850_extract_return_value): Ditto.
522 (v850_extract_struct_value_address): Ditto.
523 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
524 (sparcnbsd_get_longjmp_target_64): Ditto.
525 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
526 (get_longjmp_target): Ditto.
527 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
528 (sh64_extract_struct_value_address): Ditto.
529 (sh_push_arguments): Ditto.
530 (sh64_push_arguments): Ditto.
531 * remote-vxsparc.c (vx_read_register): Ditto.
532 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
533 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
534 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
535 * mipsv4-nat.c (get_longjmp_target): Ditto.
536 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
537 * mips-nat.c (get_longjmp_target): Ditto.
538 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
539 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
540 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
541 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
542 * irix5-nat.c (get_longjmp_target): Ditto.
543 * irix4-nat.c (get_longjmp_target): Ditto.
544 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
545 (ia64_push_arguments): Ditto.
546 * hpux-thread.c (hpux_thread_store_registers): Ditto.
547 * h8300-tdep.c (h8300_push_arguments): Ditto.
548 (h8300_store_return_value): Ditto.
549 (h8300_extract_struct_value_address): Ditto.
550 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
551 (frv_push_arguments): Ditto.
552 * avr-tdep.c (avr_pointer_to_address): Ditto.
553 (avr_push_arguments): Ditto.
554 * arm-tdep.c (arm_push_dummy_call): Ditto.
555 (arm_get_longjmp_target): Ditto.
556 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
557 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
558 (alpha_get_longjmp_target): Ditto.
560 * solib-irix.c (extract_mips_address): Inline extract_address,
561 replacing it with extract_signed_integer.
562 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
563 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
564 (first_link_map_member, open_symbol_file_object): Ditto.
565 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
566 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
567 (LM_NEXT, LM_NAME): Ditto.
569 2003-06-01 Richard Henderson <rth@redhat.com>
571 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
572 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
573 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
574 (alpha_cannot_store_register): Likewise.
575 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
576 * alpha-nat.c (supply_gregset): Likewise.
577 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
579 2003-06-01 Andrew Cagney <cagney@redhat.com>
581 * infcall.c (call_function_by_hand): Update comment on
582 DEPRECATED_DUMMY_WRITE_SP.
584 * mips-tdep.c (mips_gdbarch_init): Do not set
585 deprecated_dummy_write_sp.
586 (mips_eabi_push_dummy_call): Set the SP register.
587 (mips_o64_push_dummy_call): Set the SP register.
588 (mips_o32_push_dummy_call): Set the SP register.
589 (mips_n32n64_push_dummy_call): Set the SP register.
591 2003-06-01 Richard Henderson <rth@redhat.com>
593 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
594 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
595 (supply_gregset): Likewise.
596 * alpha-tdep.c (alpha_store_return_value): Likewise.
597 (alpha_get_longjmp_target): Likewise.
598 (alpha_register_name): Constify array.
599 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
600 deprecated_register_size, deprecated_register_bytes,
601 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
602 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
603 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
605 2003-06-01 Richard Henderson <rth@redhat.com>
607 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
608 from arg_reg_buffer to regcache to avoid double conversion.
610 2003-06-01 Mark Kettenis <kettenis@gnu.org>
612 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
614 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
615 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
617 2003-06-01 Richard Henderson <rth@redhat.com>
619 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
620 (decode_frame_entry): Set it. Skip FDE augmentation.
622 2003-06-01 Richard Henderson <rth@redhat.com>
624 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
625 not overlapping PC_REGNUM.
627 2003-06-01 Richard Henderson <rth@redhat.com>
629 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
630 alpha_push_arguments. Don't dump argument register data to
631 the target stack. Fix float and 128-bit long double semantics.
632 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
633 (alpha_fix_call_dummy): Remove.
634 (alpha_call_dummy_words): Remove.
635 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
637 2003-06-01 Richard Henderson <rth@redhat.com>
639 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
641 2003-06-01 Andrew Cagney <cagney@redhat.com>
643 * mips-tdep.c (is_mips16_addr): New function.
644 (make_mips16_addr, unmake_mips16_addr): New functions.
645 (pc_is_mips16, mips_fetch_instruction): Use.
646 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
647 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
648 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
649 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
651 * config/mips/tm-mips.h: Update copyright.
652 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
653 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
654 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
655 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
656 (TM_PRINT_INSN_MACH): Delete.
657 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
659 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
660 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
661 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
662 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
663 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
664 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
665 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
666 mips*-*-riscos* and mips*-*-sysv* onto mips.
667 * config/mips/mips64.mt: New file.
668 * config/mips/mips.mt: New file.
669 * config/mips/littlemips.mt: Delete file.
670 * config/mips/decstation.mt: Delete file.
671 * config/mips/vr4300el.mt: Delete file.
672 * config/mips/vr5000el.mt: Delete file.
673 * config/mips/vr5000.mt: Delete file.
674 * config/mips/vr4100.mt: Delete file.
675 * config/mips/vr4xxxel.mt: Delete file.
676 * config/mips/vr4300.mt: Delete file.
677 * config/mips/vr4xxx.mt: Delete file.
678 * config/mips/bigmips.mt: Delete file.
679 * config/mips/bigmips64.mt: Delete file.
680 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
681 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
682 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
683 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
684 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
686 * config/mips/tm-irix3.h: Ditto.
687 * config/mips/tm-mipsv4.h: Ditto.
688 * config/mips/tm-embed.h: Ditto.
689 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
691 * config/mips/tm-vr5000el.h: Delete file.
692 * config/mips/tm-tx39l.h: Delete file.
693 * config/mips/tm-vr4300el.h: Delete file.
694 * config/mips/tm-vr4xxxel.h: Delete file.
695 * config/mips/tm-vr4300.h: Delete file.
696 * config/mips/tm-vr4100.h: Delete file.
697 * config/mips/tm-vr4xxx.h: Delete file.
698 * config/mips/tm-vr5000.h: Delete file.
699 * config/mips/tm-embedl64.h: Delete file.
700 * config/mips/tm-embedl.h: Delete file.
701 * config/mips/tm-embed64.h: Delete file.
702 * config/mips/tm-bigmips64.h: Delete file.
703 * config/mips/tm-bigmips.h: Delete file.
705 2003-06-01 Mark Kettenis <kettenis@gnu.org>
708 * shnbsd-nat.c: Include "sh-tdep.h".
710 From Richard Henderson <rth@redhat.com>:
711 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
713 2003-05-31 Andrew Cagney <cagney@redhat.com>
715 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
717 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
718 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
719 (mips_find_saved_regs): Use set_reg_offset.
720 (mips_frame_init_saved_regs): Delete function.
721 (mips_pop_frame): Call mips_find_saved_regs instead of
722 DEPRECATED_FRAME_INIT_SAVED_REGS.
724 2003-05-31 Andrew Cagney <cagney@redhat.com>
726 * mips-tdep.c (mips_gdbarch_init): Do not set
727 deprecated_max_register_raw_size, register_virtual_size, and
728 deprecated_max_register_virtual_size.
730 2003-05-31 Mark Kettenis <kettenis@gnu.org>
732 * i386-tdep.c: Include "dwarf2-frame.h".
733 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
734 * Makefile.in (i386-tdep.o): Update dependencies.
736 * dwarf2-frame.c, dwarf2-frame.h: New files.
737 * Makefile.in (SFILES): Add dwarf2-frame.c.
738 (dwarf2_frame_h): Define.
739 (COMMON_OBS): Add dwarf2-frame.o.
740 (dwarf2-frame.o): Add dependencies.
742 2003-05-31 Andreas Jaeger <aj@suse.de>
744 * x86-64-linux-nat.c: Fix comment.
746 2003-05-31 Mark Kettenis <kettenis@gnu.org>
748 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
751 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
752 have a sigcontext_addr handler.
753 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
754 sigcontext_addr handler.
756 2003-05-31 Andrew Cagney <cagney@redhat.com>
758 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
759 (print_fp_register_row): Replace do_fp_register_row.
760 (mips_print_fp_register): Add "file" and "frame" parameters.
761 (mips_print_register): Add "file" and "frame" parameters.
762 (mips_print_registers_info): Replace mips_do_registers_info.
763 (mips_gdbarch_init): Set print_registers_info instead of
764 deprecated_do_registers_info.
765 (mips_read_fp_register_single): Add "frame" parameter.
766 (mips_read_fp_register_double): Add "frame" parameter.
768 2003-05-31 Mark Kettenis <kettenis@gnu.org>
770 * i386-tdep.c (i386_register_name): Check for MMX registers first.
771 Fixes a bug where GDB would print the wrong register names for
774 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
775 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
778 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
779 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
780 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
783 From Michal Ludvig <mludvig@suse.cz>:
784 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
786 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
787 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
788 I386_ST0_REGNUM): Move here from...
789 * i386-tdep.c: ... here.
790 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
791 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
792 registers if possible.
793 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
794 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
796 (i386bsd_sc_reg_offset): New variable.
797 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
798 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
800 (i386fbsd_sc_reg_offset): New variable.
801 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
803 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
805 (i386fbsd4_sc_reg_offset): New variable.
806 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
807 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
809 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
810 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
811 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
813 (i386nbsd_sc_reg_offset): New variable.
814 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
815 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
817 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
819 (i386obsd_sc_reg_offset): New variable.
820 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
821 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
823 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
824 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
825 for frame pointer offset in `struct sigcontext'.
827 2003-05-31 Andrew Cagney <cagney@redhat.com>
829 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
830 architecture methods call_dummy_words, sizeof_call_dummy_words,
831 push_return_address, store_struct_return, and fix_call_dummy. Set
832 push_dummy_call instead of deprecated_push_arguments.
833 (mips_store_struct_return): Delete function.
834 (mips_fix_call_dummy): Delete function.
835 (mips_push_return_address): Delete function.
836 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
837 RA_REGNUM and T9_REGNUM.
838 (mips_n32n64_push_dummy_call): Ditto for
839 mips_n32n64_push_arguments.
840 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
841 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
843 2003-05-31 Andrew Cagney <cagney@redhat.com>
845 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
846 "dummy_addr" to "bp_addr".
847 * infcall.c (call_function_by_hand): Pass "funaddr" to
848 gdbarch_push_dummy_call.
849 * gdbarch.h, gdbarch.c: Re-generate.
850 * i386-tdep.c (i386_push_dummy_call): Update.
851 * arm-tdep.c (arm_push_dummy_call): Update.
852 * d10v-tdep.c (d10v_push_dummy_call): Update.
854 2003-05-31 Mark Kettenis <kettenis@gnu.org>
856 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
857 variable declarations.
858 (x86_64_register_number, x86_64_register_name): Remove prototypes.
859 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
860 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
861 x86_64_init_frame_pc, x86_64_init_frame_pc,
862 x86_64_function_has_prologue): Remove prototypes.
863 (X86_64_NUM_GREGS): New define.
864 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
865 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
866 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
867 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
868 XMM1_REGNUM): Remove defines.
869 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
870 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
871 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
872 X86_64_XMM1_REGNUM): New defines.
873 (struct x86_64_register_info): Renamed from `struct
874 register_info'. Remove `size' member.
875 (x86_64_register_info_table): Remove variable.
876 (x86_64_register_info): New variable.
877 (X86_64_NUM_REGS): New define.
878 (X86_64_NUM_GREGS): Remove define.
879 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
880 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
882 (x86_54_dwarf2_reg_to_regnum): Remove function.
883 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
884 (x86_64_dwarf_reg_to_regnum): New function.
885 (x86_64_register_name): Rewrite.
886 (x86_64_register_raw_size): Remove function.
887 (x86_64_register_byte_table): Remove variable.
888 (x86_64_register_byte): Remove function.
889 (x86_64_register_virtual_type): Remove function.
890 (x86_64_register_type): New function.
891 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
892 x86_64_register_convert_to_raw): Remove functions.
893 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
894 (x86_64_use_struct_convention): Make static. Adjust for renamed
896 (x86_64_frame_init_saved_regs): Remove function.
897 (x86_64_push_arguments): Make static. Change to accept a regcache
899 (x86_64_store_return_value, x86_64_extract_return_value): Make
900 static. Rewrite based on i386 counterparts.
901 (x86_64_push_dummy_call): New function.
902 (X86_64_NUM_SAVED_REGS): New define.
903 (x86_64_register_number): Remove function.
904 (x86_64_store_struct_return): Remove function.
905 (x86_64_frameless_function_invocation,
906 x86_64_function_has_prologue): Remove functions.
907 (PROLOG_BUFSIZE): Remove define.
908 (struct x86_64_frame_cache): New structure.
909 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
910 x86_64_frame_cache, x86_64_frame_this_id,
911 x86_64_frame_prev_register, x86_64_frame_p,
912 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
913 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
915 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
917 (x86_64_skip_prologue): Rewrite in terms of
918 x86_64_analyze_prologue.
919 (x86_64_frame_base_address): New function.
920 (x86_64_frame_base): New variable.
921 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
922 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
923 set deprecated_fp_regnum, deprecated_register_size,
924 deprecated_register_bytes, register_raw_size, register_byte,
925 register_virtual_type, register_convertiable,
926 register_convert_to_virtual, convert_to_raw,
927 deprecated_get_saved_register, deprecated_target_read_fp,
928 deprecated_push_arguments, deprecated_push_return_address,
929 deprecated_pop_frame, deprecated_store_struct_return,
930 deprecated_frame_init_saved_regs, deprecated_frame_chain,
931 frameless_function_invocation, deprecated_frame_saved_pc,
932 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
933 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
934 deprecated_init_frame_pc and virtual_frame_pointer. Call
935 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
936 and x86_64_frame_p. Call frame_base_set_default to register
938 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
939 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
940 (_initialize_x86_64_tdep): Remove function.
941 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
942 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
943 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
945 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
946 (x86_64_linux_sigcontext_addr): Rewrite.
947 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
948 x86_64_linux_frame_saved_pc): Remove functions.
949 (x86_64_linux_pc_in_sigtramp): Renamed from
950 x86_64_linux_in_sigtramp. Try harder to recognize a signal
952 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
954 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
955 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
956 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
957 (x86_64_regmap): Rename to regmap.
958 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
960 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
962 (x86_64_fxsave_offset): Remove function.
963 (supply_fpregset): Simply call x86_64_supply_fxsave.
964 (fill_fpregset): Simply call x86_64_fill_fxsave.
965 (fetch_inferior_registers, store_inferior_registers): Avoid
966 asignment in if-statement.
967 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
968 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
969 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
970 (fetch_core_registers): Remove function.
971 (linux_elf_core_fns): Remove.
972 (offsetoff): Don't define.
973 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
974 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
975 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
977 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
978 protection against multiple includes instead of NM_X86_64_h. Add
979 various comments. Include "config/nm-linux.h". Don't include
981 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
982 GET_THREAD_SIGNALS): Remove defines.
983 (x86_64_register_u_addr, kernel_u_size,
984 lin_thread_get_thread_signals): Remove prototypes.
985 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
986 [HAVE_LINK_H]: Don't include "solib.h".
987 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
988 * config/i386/tm-x86-64linux.h: Fix comments.
989 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
990 x86-64-tdep.o): Update dependencies.
992 2003-05-30 Andrew Cagney <cagney@redhat.com>
994 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
995 Change parameter type to a "struct regcache *".
997 * gdbarch.sh: Regardless of the multi-arch level, always define
998 the macro when not already defined.
999 * gdbarch.h, gdbarch.c: Re-generate.
1001 2003-05-30 Richard Henderson <rth@redhat.com>
1003 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
1004 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
1005 (alpha_mdebug_frame_this_id): Likewise.
1006 (alpha_mdebug_frame_prev_register): Likewise.
1007 (alpha_mdebug_frame_base_address): Likewise.
1008 (alpha_mdebug_frame_locals_address): Likewise.
1009 (alpha_mdebug_frame_args_address): Likewise.
1010 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
1011 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
1012 (alpha_heuristic_frame_unwind_cache): Make static; add missing
1014 (alpha_heuristic_frame_this_id): Make static.
1015 (alpha_heuristic_frame_prev_register): Likewise.
1016 (alpha_heuristic_frame_base_address): Likewise.
1017 * alpha-tdep.h: Update.
1019 2003-05-30 Mark Kettenis <kettenis@gnu.org>
1021 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
1022 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
1024 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
1025 * i386-tdep.c: Mark functions that are 64-bit safe as such.
1026 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1027 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1028 I386_ST0_REGNUM): New defines.
1029 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
1030 codestream_get): Remove define.
1031 (codestream_next_addr, condestream_addr, condestream_buf,
1032 codestream_off, codestream_cnt): Remove variables.
1033 (codestream_fill, codestream_seek, codestream_read): Remove
1035 (i386_follow_jump): Rewrite to avoid usage of removed codestream
1037 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
1038 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
1039 i386_frame_saved_pc, i386_saved_pc_after_call,
1040 i386_frame_num_args, i386_frame_init_saved_regs,
1041 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
1042 i386_push_arguments): Remove functions.
1043 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
1044 functionality. Use i386_analyze_prologue instead of
1045 i386_get_frame_setup.
1046 (I386_NUM_SAVED_REGS): New define.
1047 (struct i386_frame_cache): New structure.
1048 (i386_alloc_frame_cache, i386_analyze_struct_return,
1049 i386_skip_probe, i386_analyze_frame_setup,
1050 i386_analyze_register_saves, i386_analyze_prologue,
1051 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
1052 i386_frame_prev_register, i386_sigtramp_frame_cache,
1053 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
1054 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
1055 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
1057 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
1059 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
1060 I386_EAX_REGNUM and I386_EDX_REGNUM.
1061 (i386_extract_return_value, i386_store_return_value): Use
1062 I386_ST0_REGNUM where appropriate.
1063 (i386_extract_struct_value_address): Rewrite to use extract_address.
1064 (i386_svr4_pc_in_sigtramp): Add comment.
1065 (i386_svr4_sigcontext_addr): Rewrite.
1066 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
1068 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
1069 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
1070 of new defines. Set push_dummy_call, don't set
1071 deprecated_push_arguments, deprecated_push_return_address,
1072 deprecated_pop_frame. Don't set parm_boundary. Don't set
1073 deprecated_frame_chain, deprecated_frame_saved_pc,
1074 deprecated_saved_pc_after_call. Set unwind_dummy_id,
1075 save_dummy_frame_tos, unwind_pc. Call
1076 frame_unwind_append_predicate and frame_base_set_default. Don't
1077 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
1078 Don't set frameless_function_invocation. Don't set
1079 deprecated_register_bytes, deprecated_register_size,
1080 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
1081 * i386-linux-tdep.c: Fix formatting in some comments.
1082 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
1083 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
1084 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
1085 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
1086 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
1087 redundant parentheses.
1088 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
1089 (i386_linux_sigcontext_addr): Use it. Rewrite.
1090 (find_minsym_and_objfile): Change name of second argument.
1091 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
1092 changed. Use frame_pc_unwind instead of
1093 DEPRECATED_SAVED_PC_AFTER_CALL.
1094 (i386_linux_init_abi): Don't set deprecated_register_bytes.
1095 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
1096 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
1098 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
1100 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
1101 (_initialize_i386_cygwin_tdep): New prototype.
1102 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
1103 deprecated_frame_chain_valid.
1104 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
1105 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1106 Rely on the SVR4 defaults.
1107 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
1108 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
1110 2003-05-30 Andrew Cagney <cagney@redhat.com>
1112 * infcall.c (call_function_by_hand): Always call
1113 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
1115 2003-05-30 Richard Henderson <rth@redhat.com>
1117 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
1120 2003-05-29 Jim Blandy <jimb@redhat.com>
1122 Use gdbarch methods for solib stuff on PowerPC Linux.
1123 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
1124 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
1126 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1127 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
1128 giving the same effect as the #definitions above.
1130 2003-05-29 Adam Fedor <fedor@gnu.org>
1132 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
1133 (find_implementation_from_class): Replace it with the standard
1134 case i.e. do nothing.
1136 2003-05-29 Richard Henderson <rth@redhat.com>
1138 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
1139 (alpha_linux_sigtramp_offset): Use it. Make static.
1140 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
1141 update for new frame model.
1142 * alpha-mdebug-tdep.c: New file.
1143 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
1144 (alpha_osf1_init_abi): Install it.
1145 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
1146 (linked_proc_desc_table): Remove.
1147 (alpha_frame_past_sigtramp_frame): Remove.
1148 (alpha_dynamic_sigtramp_offset): Remove.
1149 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
1150 (alpha_proc_desc_is_dyn_sigtramp): Remove.
1151 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
1152 (push_sigtramp_desc): Remove.
1153 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
1154 (alpha_cannot_store_register): Likewise.
1155 (alpha_sigcontext_addr): Remove.
1156 (alpha_find_saved_regs): Remove.
1157 (alpha_frame_init_saved_regs): Remove.
1158 (alpha_init_frame_pc_first): Remove.
1159 (read_next_frame_reg): Remove.
1160 (alpha_frame_saved_pc): Remove.
1161 (alpha_saved_pc_after_call): Remove.
1162 (temp_proc_desc, temp_saved_regs): Remove.
1163 (alpha_about_to_return): Remove.
1164 (cached_proc_desc): Remove.
1165 (alpha_frame_chain): Remove.
1166 (alpha_print_extra_frame_info): Remove.
1167 (alpha_init_extra_frame_info): Remove.
1168 (alpha_frame_locals_address): Remove.
1169 (alpha_frame_args_address): Remove.
1170 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
1171 (alpha_push_dummy_frame): Remove.
1172 (alpha_pop_frame): Remove.
1173 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
1174 (alpha_read_insn): New.
1175 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
1176 for different insn encodings.
1177 (alpha_in_lenient_prologue): Remove.
1178 (struct alpha_sigtramp_unwind_cache): New.
1179 (alpha_sigtramp_frame_unwind_cache): New.
1180 (alpha_sigtramp_register_address): New.
1181 (alpha_sigtramp_frame_this_id): New.
1182 (alpha_sigtramp_frame_prev_register): New.
1183 (alpha_sigtramp_frame_unwind): New.
1184 (alpha_sigtramp_frame_p): New.
1185 (struct alpha_heuristic_unwind_cache): New.
1186 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
1187 don't count nop insns that occur between functions.
1188 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
1189 heuristic_proc_desc, but without the mdebug wrapping.
1190 (alpha_heuristic_frame_this_id): New.
1191 (alpha_heuristic_frame_prev_register): New.
1192 (alpha_heuristic_frame_unwind): New.
1193 (alpha_heuristic_frame_p): New.
1194 (alpha_heuristic_frame_base_address): New.
1195 (alpha_heuristic_frame_base): New.
1196 (alpha_unwind_dummy_id): New.
1197 (alpha_unwind_pc): New.
1198 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
1199 frame related deprecated initializations; install replacements.
1200 (alpha_dump_tdep): Remove.
1201 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
1202 (alpha_read_insn, alpha_after_prologue,
1203 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
1204 alpha_heuristic_frame_prev_register,
1205 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
1206 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1207 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
1208 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
1210 2003-05-29 Andrew Cagney <cagney@redhat.com>
1212 * gdb_assert.h (gdb_assert_fail): Provide different definitions
1213 dependant on the availability of ASSERT_FUNCTION.
1214 (ASSERT_FUNCTION): Do not define when there is no function name.
1216 2003-05-29 Kevin Buettner <kevinb@redhat.com>
1218 From Jimi X <jimix@watson.ibm.com>:
1219 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
1221 2003-05-28 Jim Blandy <jimb@redhat.com>
1223 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
1224 argument to ptrace to int; the system headers should give it the
1225 right type, and pointers don't fit in ints on powerpc64-*-*.
1227 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
1229 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
1232 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1234 * stabsread.c (dbx_lookup_type): Make static.
1236 (add_undefined_type): Ditto.
1237 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
1240 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1242 * hpread.c (hpread_has_name): Make static.
1243 (hpread_psymtab_to_symtab): Ditto.
1244 (file_exists): Ditto.
1245 (hpread_call_pxdb): Ditto.
1246 (hpread_pxdb_needed): Ditto.
1247 (hpread_quick_traverse): Ditto.
1248 (hpread_get_header): Ditto.
1249 (hpread_get_lntt): Ditto.
1250 (hpread_get_slt): Ditto.
1253 2003-05-25 Andreas Schwab <schwab@suse.de>
1255 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
1256 stack_align and deprecated_extra_stack_alignment_needed.
1257 (m68k_stack_align): Delete.
1259 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
1260 (m68k_register_virtual_size): Likewise.
1261 (altos_skip_prologue): Remove obsolete function.
1262 (isi_frame_num_args): Likewise.
1263 (news_frame_num_args): Likewise.
1264 (m68k_fix_call_dummy): Make static.
1265 (m68k_push_dummy_frame): Likewise.
1266 (m68k_pop_frame): Likewise.
1267 (m68k_skip_prologue): Likewise.
1268 (m68k_frame_init_saved_regs): Likewise.
1269 (m68k_saved_pc_after_call): Likewise.
1270 (m68k_get_longjmp_target): Make multi-arch.
1271 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
1272 structure. Register m68k_get_longjmp_target if enabled.
1273 * m68k-tdep.h (struct gdbarch_tdep): Define.
1274 * config/m68k/tm-m68k.h: Don't include "regcache.h".
1276 * Makefile.in (config.status): Also depend on configure.tgt
1278 (m68klinux-tdep.o): Update dependencies.
1279 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
1280 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
1281 (M68K_LINUX_JB_PC): Define.
1282 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
1283 and take additional parameter.
1284 (m68k_linux_sigtramp_saved_pc): Update.
1285 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
1286 m68k_linux_pc_in_sigtramp, in_plt_section,
1287 find_solib_trampoline_target.
1288 * config/m68k/tm-linux.h: Don't include any tm headers.
1289 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
1290 (JB_ELEMENT_SIZE): Likewise.
1292 (GET_LONGJMP_TARGET): Likewise.
1293 (IN_SIGTRAMP): Likewise.
1294 (SVR4_SHARED_LIBS): Define this and include "solib.h".
1296 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1298 * sparc-tdep.c (sparc32_do_push_arguments): New function.
1299 (sparc32_push_arguments): Re-implement by calling
1300 sparc32_do_push_arguments.
1302 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1304 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
1305 SPARC_O1_REGNUM): New defines.
1306 (sparc32_extract_return_value): Rewrite to operate on a regcache.
1307 (sparc32_store_return_value): New function.
1308 (sparc_extract_struct_value_address): Rewrite to operate on a
1310 (sparc_gdbarch_init): Don't set
1311 deprecated_extract_struct_value_address. Set
1312 extract_struct_value_address instead. Don't set
1313 deprecated_extract_return_value and deprecated_store_return_value
1314 for 32-bit targets. Set extract_return_value and
1315 store_return_value instead.
1316 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
1317 DEPRECTAED_EXTRACT_RETURN_VALUE,
1318 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
1319 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1320 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
1321 (sparc_store_return_value): Remove prototype.
1322 (sparc32_store_return_value): New prototype.
1323 (sparc32_extract_return_value, sparc_extract_struct_value_address):
1326 2003-05-24 Mark Kettenis <kettenis@gnu.org>
1328 * sparcnbsd-tdep.c: Include "gdb_string.h".
1330 2003-05-23 Andrew Cagney <cagney@redhat.com>
1332 * p-valprint.c (pascal_val_print): Replace extract_address with
1333 the inline equivalent extract_unsigned_integer.
1334 * jv-valprint.c (java_value_print): Ditto.
1335 * ada-valprint.c (ada_val_print_1): Ditto.
1336 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
1338 2003-05-23 Theodore A. Roth <troth@openavr.org>
1340 * blockframe.c (frameless_look_for_prologue): Remove unused
1341 after_prologue variable.
1343 2003-05-23 Mark Kettenis <kettenis@gnu.org>
1345 * blockframe.c (get_pc_function_start): Rewrite to avoid
1346 asignments in if-statements.
1348 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
1350 Committed by Elena Zannoni <ezannoni@redhat.com>.
1351 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
1352 files, don't relocate absolute symbols (and do use mst_abs).
1354 2003-05-23 Andrew Cagney <cagney@redhat.com>
1356 * objc-lang.c: Include "gdb_assert.h".
1357 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
1358 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
1359 (gdb_check, gdb_check_fatal): Delete functions.
1360 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
1362 (parse_selector, parse_method, find_methods, find_imps): Ditto.
1363 * Makefile.in (objc-lang.o): Update dependencies.
1365 2003-05-22 Ian Lance Taylor <ian@airs.com>
1367 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
1368 with fprintf_filtered, not fprintf_unfiltered.
1370 2003-05-22 Andrew Cagney <cagney@redhat.com>
1372 * stack.c (frame_info): Inline extract_address, replacing it with
1373 extract_unsigned_integer.
1374 * findvar.c (unsigned_pointer_to_address): Ditto.
1375 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
1376 * dwarf2expr.c (dwarf2_read_address): Ditto.
1377 * frame.c (frame_pc_unwind): Update comment.
1378 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
1380 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
1382 * infptrace.c (detach): Call print_sys_errmsg rather than
1383 perror_with_name to issue warning message when errno is non-zero
1384 after calling ptrace detach.
1386 2003-05-21 J. Brobecker <brobecker@gnat.com>
1388 * config/pa/tm-hppa.h: Delete some unused macros. Move some
1389 macro definitions from here...
1390 * hppa-tdep.c: ...to there.
1392 2003-05-20 Kevin Buettner <kevinb@redhat.com>
1394 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
1395 register_ptrace_addr(). Fix all callers.
1397 2003-05-21 Andreas Schwab <schwab@suse.de>
1399 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1401 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
1403 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
1404 (_initialize_m68k_linux_tdep): New function.
1405 (m68k_linux_frame_saved_pc): Make static.
1406 (m68k_linux_extract_return_value): Likewise.
1407 (m68k_linux_store_return_value): Likewise.
1408 (m68k_linux_extract_struct_value_address): Likewise.
1409 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
1411 (DEPRECATED_STORE_RETURN_VALUE): Remove.
1412 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1413 (DEPRECATED_FRAME_SAVED_PC): Remove.
1415 2003-05-20 Kris Warkentin <kewarken@qnx.com>
1417 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
1418 regset numbering rather than our own.
1420 2003-05-19 David Carlton <carlton@bactrian.org>
1422 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
1424 2003-05-19 David Carlton <carlton@bactrian.org>
1426 Partial fix for PR c++/827.
1427 * cp-support.h: Include symtab.h.
1428 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
1429 * cp-namespace.c: Update contributors.
1430 (cp_lookup_symbol_nonlocal): New.
1431 (lookup_namespace_scope, cp_lookup_symbol_namespace)
1432 (lookup_symbol_file): Ditto.
1433 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1434 * block.h: Declare block_scope, block_using, block_global_block.
1435 * block.c (block_scope): New.
1436 (block_using, block_global_block): Ditto.
1437 * Makefile.in (cp_support_h): Depend on symtab_h.
1438 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1440 2003-05-19 David Carlton <carlton@bactrian.org>
1442 * language.h (struct language_defn): Add 'la_value_of_this'
1443 and 'la_lookup_symbol_nonlocal' members.
1444 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1445 lookup_symbol_static, lookup_symbol_global,
1446 lookup_symbol_aux_block.
1447 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1448 if we should search fields of this and how to do static/global
1450 (lookup_symbol_aux_block): Make extern.
1451 (basic_lookup_symbol_nonlocal): New.
1452 (lookup_symbol_static, lookup_symbol_global): Ditto.
1453 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1454 'la_lookup_symbol_nonlocal' members.
1455 * c-lang.c (c_language_defn, cplus_language_defn)
1456 (asm_language_defn, minimal_language_defn): Ditto.
1457 * jv-lang.c (java_language_defn): Ditto.
1458 * language.c (unknown_language_defn, auto_language_defn)
1459 (local_language_defn): Ditto.
1460 * m2-lang.c (m2_language_defn): Ditto.
1461 * objc-lang.c (objc_language_defn): Ditto.
1462 * scm-lang.c (scm_language_defn): Ditto.
1463 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1464 * p-lang.c (pascal_language_defn): Ditto for both.
1465 * Makefile.in (f-lang.o): Depend on value_h.
1468 2003-05-19 David Carlton <carlton@bactrian.org>
1470 * block.h: Declare block_static_block.
1471 * block.c (block_static_block): New.
1472 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1473 lookup_symbol_aux_local, calling block_static_block instead.
1474 (lookup_symbol_aux_local): Delete 'static_block' argument.
1476 2003-05-19 David Carlton <carlton@bactrian.org>
1478 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1480 2003-05-19 Michal Ludvig <mludvig@suse.cz>
1482 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1483 register numbers mapping.
1485 2003-05-18 Adam Fedor <fedor@gnu.org>
1487 * symtab.c (completion_list_objc_symbol): New function.
1488 (make_symbol_completion_list): Use it to add ObjC symbols
1489 when looking though the list.
1490 (language_search_unquoted_string): New function.
1491 (make_file_symbol_completion_list): Use it.
1493 2003-05-18 Andreas Schwab <schwab@suse.de>
1495 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1497 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1498 as m68k_linux_extract_return_value.
1499 (DEPRECATED_STORE_RETURN_VALUE): Define as
1500 m68k_linux_store_return_value.
1501 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1502 m68k_linux_extract_struct_value_address.
1503 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1504 get_next_frame, get_frame_base, get_frame_pc.
1505 (m68k_linux_frame_saved_pc): Use get_frame_base.
1506 (m68k_linux_extract_return_value): New function.
1507 (m68k_linux_store_return_value): New function.
1508 (m68k_linux_extract_struct_value_address): New function.
1509 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1511 * c-exp.y (typebase): Remove duplicate occurence of
1512 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1513 of lookup_signed_typename.
1515 2003-05-18 Mark Kettenis <kettenis@gnu.org>
1517 * dwarf2loc.c (find_location_expression): Change type of second
1518 argument to `size_t *'.
1519 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1522 2003-05-18 David Carlton <carlton@bactrian.org>
1524 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1525 'linkage_name'. Add comment.
1526 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1528 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1529 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1530 (lookup_block_symbol): Ditto.
1532 2003-05-16 Andrew Cagney <cagney@redhat.com>
1534 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1535 * gdbarch.h, gdbarch.c: Re-generate.
1536 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1537 * TODO (REGISTER_BYTES): Delete reference.
1538 * alpha-tdep.c (alpha_gdbarch_init): Update.
1539 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1540 * x86-64-tdep.c (x86_64_init_abi): Update.
1541 * vax-tdep.c (vax_gdbarch_init): Update.
1542 * v850-tdep.c (v850_gdbarch_init): Update.
1543 * sparc-tdep.c (sparc_gdbarch_init): Update.
1544 * sh-tdep.c (sh_gdbarch_init): Update.
1545 * s390-tdep.c (s390_gdbarch_init): Update.
1546 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1547 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1548 (ns32k_gdbarch_init_32382): Update.
1549 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1550 * mcore-tdep.c (mcore_gdbarch_init): Update.
1551 * m68k-tdep.c (m68k_gdbarch_init): Update.
1552 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1553 * ia64-tdep.c (ia64_gdbarch_init): Update.
1554 * i386-tdep.c (i386_gdbarch_init): Update.
1555 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1556 * hppa-tdep.c (hppa_gdbarch_init): Update.
1557 * h8300-tdep.c (h8300_gdbarch_init): Update.
1558 * frv-tdep.c (frv_gdbarch_init): Update.
1559 * cris-tdep.c (cris_gdbarch_init): Update.
1560 * avr-tdep.c (avr_gdbarch_init): Update.
1561 * arm-tdep.c (arm_gdbarch_init): Update.
1562 * sparc-tdep.c (sparc_pop_frame): Update.
1563 * rs6000-tdep.c (rs6000_pop_frame): Update.
1564 * remote.c (init_remote_state): Update.
1565 (remote_prepare_to_store): Update.
1566 * remote-vx.c (vx_prepare_to_store): Update.
1567 * remote-sds.c (sds_fetch_registers): Update.
1568 (sds_prepare_to_store): Update.
1569 * remote-array.c: Update.
1570 * regcache.c (init_legacy_regcache_descr): Update.
1571 (init_regcache_descr): Update.
1572 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1573 (mips_o64_extract_return_value): Update.
1574 * irix5-nat.c (fetch_core_registers): Update.
1575 * irix4-nat.c (fetch_core_registers): Update.
1576 * i386-tdep.h: Update.
1577 * hppa-tdep.c (pa_do_registers_info): Update.
1578 (pa_do_strcat_registers_info): Update.
1579 * cris-tdep.c (cris_register_bytes_ok): Update.
1580 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1581 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1582 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1583 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1584 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1585 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1586 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1587 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1588 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1589 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1590 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1591 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1592 (REGISTER_BYTES_OK): Update.
1593 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1594 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1596 2003-05-16 Ian Lance Taylor <ian@airs.com>
1598 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1599 (vax_print_insn, print_insn_arg): Remove static functions.
1600 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1601 print_insn_vax from opcodes library.
1602 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1604 2003-05-15 Andrew Cagney <cagney@redhat.com>
1606 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1607 * target.h (memory_breakpoint_from_pc): Delete declaration.
1608 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1609 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1610 * monitor.c (monitor_insert_breakpoint): Use
1611 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1612 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1613 * gdbarch.h, gdbarch.c: Re-generate.
1614 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1615 (sparc_gdbarch_init): Set breakpoint_from_pc to
1616 sparc_breakpoint_from_pc.
1617 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1618 (BREAKPOINT_FROM_PC): Define.
1619 (sparc_breakpoint_from_pc): Declare.
1620 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1621 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1622 (BREAKPOINT_FROM_PC): Define.
1623 (BREAKPOINT): Delete macro.
1624 * target.h: Update comment.
1625 * s390-tdep.c (s390_gdbarch_init): Update comments.
1626 * remote.c: Update comments.
1627 * remote-mips.c: Update comments.
1628 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1629 * mem-break.c: Update comment.
1630 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1631 (ia64_memory_insert_breakpoint): Update.
1632 * config/sparc/tm-sparc.h: Update comment.
1633 * config/pa/tm-hppa64.h: Update comment.
1634 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1635 (rs6000_breakpoint_from_pc): Update.
1636 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1637 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1638 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1639 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1640 (mips_breakpoint_from_pc): Update.
1641 (mips_dump_tdep): Update.
1643 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1644 * minsyms.c (lookup_minimal_symbol): Inline
1645 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1647 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1648 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1649 * p-lang.c (pascal_printstr): Ditto.
1650 * objc-lang.c (objc_printstr): Ditto.
1651 * m2-lang.c (m2_printstr): Ditto.
1652 * jv-valprint.c (java_print_value_fields): Ditto.
1653 * f-lang.c (f_printstr): Ditto.
1654 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1655 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1656 for repeat_count_threshold.
1657 * Makefile.in (cp-valprint.o): Update dependencies.
1659 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1661 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1662 (examine_prologue): Support looking through leaf functions, knowing
1663 they start with mov r2,r12. Support skipping over indirect stores
1664 of the input registers. Upon hitting a non-nop branch instruction
1665 or predicated instruction, bail out by setting lim_pc to the current
1666 pc value in the loop. At the end, if the lim_pc value is still
1667 beyond our calculated value and we have trust_limit set,
1668 use the lim_pc value.
1670 2003-05-15 Andrew Cagney <cagney@redhat.com>
1672 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1673 generic_find_dummy_frame.
1674 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1675 (deprecated_generic_find_dummy_frame): Update.
1676 (deprecated_read_register_dummy): Update.
1677 * frame.c (deprecated_generic_get_saved_register): Update.
1679 2003-05-15 Theodore A. Roth <troth@openavr.org>
1681 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1682 (avr_gdbarch_init): Set breakpoint_from_pc method.
1684 2003-05-15 Andrew Cagney <cagney@redhat.com>
1686 * regcache.c (build_regcache): Set deprecated_register_valid
1688 (deprecated_grub_regcache_for_register_valid): Delete function.
1689 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1692 2003-05-15 David Carlton <carlton@bactrian.org>
1694 Committed by Elena Zannoni <ezannoni@redhat.com>
1695 * symtab.c (lookup_symbol_aux): Delete calls to
1696 lookup_symbol_aux_minsyms.
1697 (lookup_symbol_aux_minsyms): Comment out function and
1698 prototype. Delete lookup by mangled name.
1700 2003-05-14 Kevin Buettner <kevinb@redhat.com>
1702 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1703 correctly indicate an empty stack and ``stack_allocated'' to the
1704 indicate the number of elements initially allocated.
1705 (dwarf_expr_grow_stack): Simplify method for computing new
1706 stack size. Don't loop infinitely if ``stack_len'' is zero.
1707 (execute_stack_op): Move ``ctx->in_reg'' initialization
1708 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1709 be used in conjuction with DW_OP_piece. Revise error message
1712 2003-05-14 Theodore A. Roth <troth@openavr.org>
1714 * MAINTAINERS: Update my email address.
1715 * avr-tdep.c: Ditto.
1717 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
1719 * symtab.h (enum domain_enum): Rename from namespace_enum.
1720 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1721 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1722 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1723 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1724 TYPES_NAMESPACE, METHODS_NAMESPACE.
1725 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1726 (struct symbol, struct partial_symbol): Rename field
1727 'namespace_enum namespace' to 'domain_enum domain'.
1728 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1729 Delete old define kludge for namespace.
1731 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1732 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1733 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1734 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1735 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1736 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1737 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1738 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1739 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1740 occurrences of the above.
1742 2003-05-14 Ian Lance Taylor <ian@airs.com>
1744 * Makefile.in (install-only): Use $(SHELL) when running
1747 2003-05-13 Ian Lance Taylor <ian@airs.com>
1749 * MAINTAINERS (write after approval): Add myself.
1751 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1752 second and third arguments.
1753 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1754 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1756 2003-05-13 Andrew Cagney <cagney@redhat.com>
1758 * defs.h (store_address): Delete declaration.
1759 findvar.c (store_address): Delete function.
1760 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1761 store_unsigned_integer.
1762 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1763 * v850-tdep.c (v850_push_arguments): Ditto.
1764 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1765 * sh-tdep.c (sh64_get_saved_register): Ditto.
1766 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1767 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1768 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1769 (mips_get_saved_register): Ditto.
1770 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1771 (find_func_descr, ia64_push_arguments): Ditto.
1772 * i386-tdep.c (i386_push_arguments): Ditto.
1773 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1774 * frv-tdep.c (frv_push_arguments): Ditto.
1775 * frame.c (legacy_saved_regs_prev_register): Ditto.
1776 (deprecated_generic_get_saved_register): Ditto.
1777 * findvar.c (unsigned_address_to_pointer): Ditto.
1778 * dwarf2read.c (dwarf2_const_value): Ditto.
1779 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1780 * alpha-tdep.c (alpha_push_arguments): Ditto.
1782 2003-05-12 J. Brobecker <brobecker@gnat.com>
1784 * NEWS: Mention that the hppa-hpux port has been partially
1785 multiarched (32bit ABIT only, so far).
1787 2003-05-11 Andrew Cagney <cagney@redhat.com>
1789 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1790 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1791 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1792 sim/testsuite/sim/arm/misaligned2.ms, and
1793 sim/testsuite/sim/arm/misaligned3.ms.
1794 * disasm.h (struct ui_file): Add opaque struct declaration.
1795 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1796 * frame.h (struct ui_file): Ditto.
1798 2003-05-11 Mark Kettenis <kettenis@gnu.org>
1800 * value.h: Pretty print.
1802 2003-05-10 Mark Kettenis <kettenis@gnu.org>
1804 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1806 2003-05-08 Andrew Cagney <cagney@redhat.com>
1808 * regcache.h (max_register_size): Delete declaration.
1809 * regcache.c (max_register_size): Delete function.
1810 (struct regcache_descr): Delete field "max_register_size".
1811 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1812 registers fit in MAX_REGISTER_SIZE.
1813 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1814 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1815 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1816 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1817 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1818 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1819 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1820 * dve3900-rom.c, hppa-tdep.c: Ditto.
1822 2003-05-08 David Carlton <carlton@math.stanford.edu>
1824 * valops.c (push_word): Fix typo.
1826 2003-05-08 Andrew Cagney <cagney@redhat.com>
1828 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1829 * gdbarch.h: Re-generate.
1830 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1831 (legacy_max_register_raw_size): Delete declaration.
1832 * regcache.c (legacy_max_register_raw_size): Delete function.
1833 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1834 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1835 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1836 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1837 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1838 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1839 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1840 * findvar.c, dwarf2cfi.c: Ditto.
1842 2003-05-08 Andrew Cagney <cagney@redhat.com>
1844 * mips-tdep.c (read_signed_register): New function, moved to here
1846 (read_signed_register_pid): Ditto.
1847 * regcache.c (read_signed_register_pid): Delete function, moved to
1849 (read_signed_register): Ditto.
1850 * regcache.h (read_signed_register): Delete declaration.
1851 (read_signed_register_pid): Delete declaration.
1853 2003-05-08 Andrew Cagney <cagney@redhat.com>
1855 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1856 * gdbarch.h: Re-generate.
1857 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1858 (legacy_max_register_virtual_size): Delete declaration.
1859 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1860 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1861 * tracepoint.c (memrange_sortmerge): Ditto.
1862 * sparc-tdep.c (sparc_print_registers): Ditto.
1863 * regcache.c (legacy_max_register_virtual_size): Delete function.
1865 2002-05-08 J. Brobecker <brobecker@gnat.com>
1867 * fork-child.c (escape_bang_in_quoted_argument): New function.
1868 (fork_inferior): Escape '!' characters in quoted arguments
1871 2003-05-08 J. Brobecker <brobecker@gnat.com>
1873 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1874 the language of the CU is not currently supported by GDB.
1876 2003-05-08 J. Brobecker <brobecker@gnat.com>
1878 * defs.h (language): Add language_minimal enum value.
1879 * c-lang.c (minimal_language_defn): New language definition.
1880 (_initialize_c_language): Add the new minimal language to the list
1881 of languages known to GDB.
1883 2003-05-08 Kevin Buettner <kevinb@redhat.com>
1885 * frame.c (get_frame_type): Don't attempt to lazily initialize
1886 frame's unwinder for legacy frames.
1888 2003-05-07 Andrew Cagney <cagney@redhat.com>
1890 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1891 and "regcache" parameters.
1892 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1894 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1896 * dwarf2read.c (dwarf_decode_lines): Only use output of
1897 check_cu_functions() when calling record_line(). Do not update
1898 the current address.
1900 2003-05-07 Andrew Cagney <cagney@redhat.com>
1902 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1905 2003-05-07 Jim Blandy <jimb@redhat.com>
1907 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1908 'maint info symtabs' and 'maint info psymtabs'.
1909 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1910 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1911 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1912 Declarations updated.
1913 * maint.c (maintenance_list_command): Delete.
1914 (_initialize_maint_cmds): Update calls to add_cmd.
1915 * gdbcmd.h (maintenancelistlist): Delete declaration.
1916 * cli/cli-cmds.c (maintenancelistlist): Delete.
1917 (init_cmd_lists): Don't initialize it.
1918 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1920 2003-05-07 Andrew Cagney <cagney@redhat.com>
1922 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1924 (d10v_print_registers_info): Update.
1925 (d10v_dmap_register, d10v_imap_register): Delete functions.
1926 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1927 and "imap_register".
1928 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1929 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1930 * arch-utils.c (generic_remote_translate_xfer_address): Add
1931 "regcache" and "gdbarch" parameters.
1932 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1933 parameter. Change class to multi-arch.
1934 * gdbarch.h, gdbarch.c: Re-generate.
1935 * remote.c (remote_xfer_memory): Use
1936 gdbarch_remote_translate_xfer_address.
1938 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1940 * infrun.c (prev_pc): Move declaration ahead of proceed().
1941 (proceed): Refresh prev_pc value before resuming.
1942 (stop_stepping): Remove code to refresh prev_pc.
1944 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1946 * nto-tdep.c: Removed stray comment.
1948 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1950 * i386-nto-tdep.c: Fix old K&R function definitions.
1951 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1952 Also change add_show_from_set() call to add_setshow_cmd().
1953 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1955 2003-05-05 Andrew Cagney <cagney@redhat.com>
1957 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1958 (fprint_dummy_frames): New function.
1959 (maintenance_print_dummy_frames): New function.
1960 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1961 * frame.c (fprint_frame_id): Make global.
1962 * frame.h (fprint_frame_id): Declare.
1963 * Makefile.in (dummy-frame.o): Update dependencies.
1965 2003-05-05 Andrew Cagney <cagney@redhat.com>
1967 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1968 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1969 SIZEOF_CALL_DUMMY_WORDS.
1970 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1971 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1972 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1973 CALL_DUMMY_BREAKPOINT_OFFSET.
1974 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1975 CALL_DUMMY_START_OFFSET.
1976 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1977 * gdbarch.h, gdbarch.c: Re-generate.
1978 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1979 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1980 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1981 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1982 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1983 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1984 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1985 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1986 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1987 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1988 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1989 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1990 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1991 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1992 * config/sparc/tm-sparc.h: Update.
1994 2003-05-05 Kris Warkentin <kewarken@qnx.com>
1996 * configure.tgt: Add i[3456]86-*-nto*.
1997 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1998 * nto-tdep.c: New file. Neutrino target support routines.
1999 * nto-tdep.h: New file. Neutrino target header.
2000 * config/tm-qnxnto.h: New file.
2001 * config/i386/i386nto.mt: New file.
2002 * config/i386/tm-i386nto.h: New file.
2004 2003-05-04 Andrew Cagney <cagney@redhat.com>
2006 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
2007 (load_infrun_state): Ditto.
2008 (struct thread_info): Drop "prev_func_name" field.
2009 * thread.c (load_infrun_state): Update.
2010 (save_infrun_state): Update.
2011 * infrun.c (prev_func_name): Delete variable.
2012 (init_wait_for_inferior): Do not clear prev_func_name.
2013 (stop_stepping, keep_going, context_switch): Do not swap
2015 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
2016 instead of PC_IN_SIGTRAMP.
2018 2003-05-04 Andrew Cagney <cagney@redhat.com>
2020 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2021 REGISTER_BYTE with register_offset_hack.
2022 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
2023 that REGISTER_BYTE is consistent with the regcache.
2024 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
2025 * gdbarch.h, gdbarch.c: Regenerate.
2027 2003-05-04 Mark Kettenis <kettenis@gnu.org>
2029 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
2030 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
2032 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
2034 2003-05-03 J. Brobecker <brobecker@gnat.com>
2036 From Thierry Schneider <tpschneider1@yahoo.com>
2037 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
2038 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
2039 (mi-cmd-symbol.o): Add rule.
2041 2003-05-03 Andrew Cagney <cagney@redhat.com>
2043 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
2044 comments noteing that it replaces the old FIX_CALL_DUMMY code.
2045 * gdbarch.h, gdbarch.c: Re-generate.
2046 * d10v-tdep.c (d10v_push_dummy_code): New function.
2047 (d10v_gdbarch_init): Set push_dummy_code.
2048 * infcall.c (legacy_push_dummy_code): New function.
2049 (generic_push_dummy_code): New function.
2050 (push_dummy_code): New function.
2051 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
2052 instead of dummy_addr, to push_dummy_call. Move call to
2053 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
2055 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
2057 2003-05-03 Andrew Cagney <cagney@redhat.com>
2059 * disasm.h (print_insn): Declare.
2060 * disasm.c (init_gdb_disassemble_info): New function.
2061 (gdb_disassembly): Call init_gdb_disassemble_info.
2062 (gdb_print_insn): New function.
2063 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
2064 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
2065 * mcore-tdep.c: Include "disasm.h"
2066 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
2067 * d10v-tdep.c: Include "disasm.h".
2068 (display_trace): Call gdb_print_insn, instead of print_insn.
2069 (print_insn): Delete function.
2070 * printcmd.c: Include "disasm.h".
2071 (print_insn): Delete function.
2072 (print_formatted): Call gdb_print_insn, instead of print_insn.
2073 * Makefile.in (printcmd.o): Update dependencies.
2074 (mcore-tdep.o, d10v-tdep.o): Ditto.
2076 2003-05-02 Andrew Cagney <cagney@redhat.com>
2078 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
2079 PC_REGNUM, re-indent.
2080 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
2081 PC_REGNUM isn't set.
2083 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
2084 * gdbarch.h, gdbarch.c: Re-generate.
2085 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
2086 register_virtual_size, pc_regnum, or register_bytes.
2087 (D10V_PC_REGNUM): Rename _PC_REGNUM.
2088 (d10v_register_type): Use D10V_PC_REGNUM.
2089 (d10v_print_registers_info, d10v_read_pc): Ditto.
2090 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
2091 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
2093 2003-05-02 David Carlton <carlton@bactrian.org>
2095 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
2096 the name with mstrsave.
2098 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
2100 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
2101 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
2102 (host_charset_name, target_charset_name): New vars for use by
2104 (host_charset_enum, target_charset_enum): New enums for set/show
2106 (set_charset_sfunc, set_host_charset_sfunc,
2107 set_target_charset_sfunc): New functions.
2108 (set_host_charset, set_target_charset): Make static.
2109 (list_charsets, set_host_charset_command,
2110 set_target_charset_command): Delete functions.
2111 (show_charset_command): Rewrite as....
2112 (show_charset): Hook this up with the set/show command mechanism.
2113 (_initialize_charset): Change names of charsets to match the
2114 set/show enums. Use host_charset_name and target_charset_name.
2115 Use set/show mechanism for charset, host-charset, target-charset
2116 commands. Do not make 'show host-charset' and 'show
2117 target-charset' be aliases of 'show charset'.
2119 * charset.h (set_host_charset, set_target_charset): Don't export,
2120 they are not used outside the file.
2122 2003-05-01 Andrew Cagney <cagney@redhat.com>
2124 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
2125 (gdb_disassembly): Make "di" non static, always initialize and
2126 cleanup. Always use dis_asm_read_memory.
2127 (gdb_dis_asm_read_memory): Delete function.
2129 2003-05-01 Andrew Cagney <cagney@redhat.com>
2131 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
2132 (d10v_gdbarch_init): Set frame_align instead of stack_align.
2134 2003-04-30 Andrew Cagney <cagney@redhat.com>
2136 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
2137 "tm_print_insn_info".
2138 (TARGET_PRINT_INSN_INFO): Delete macro.
2139 (dis_asm_read_memory): Delete function declaration.
2140 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2141 (tm_print_insn_info): Delete variable definition.
2142 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
2143 * gdbarch.h, gdbarch.c: Re-generate.
2144 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
2145 "deprecated_tm_print_insn_info".
2146 * mcore-tdep.c (mcore_dump_insn): Ditto.
2147 * mips-tdep.c (mips_gdbarch_init): Ditto.
2148 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
2149 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
2150 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
2151 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
2152 instead of TARGET_PRINT_INSN_INFO, add comment.
2153 * s390-tdep.c (s390_get_frame_info): Instead of
2154 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
2155 (s390_check_function_end, s390_is_sigreturn): Ditto.
2156 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
2157 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2158 * disasm.c: Include "gdbcore.h".
2159 (_initialize_disasm): New function, initialize
2160 "deprecated_tm_print_insn_info".
2161 (deprecated_tm_print_insn_info): New variable.
2162 (dis_asm_read_memory): Moved from "corefile.c", made static.
2163 (dis_asm_print_address, dis_asm_memory_error): Ditto.
2164 * Makefile.in (disasm.o): Update dependencies.
2166 2003-04-30 Andrew Cagney <cagney@redhat.com>
2168 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
2170 2003-04-29 Adam Fedor <fedor@gnu.org>
2172 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
2173 * infcall.c (find_function_addr): Make non-static.
2174 * infcall.h (find_function_addr): Declare.
2175 * Makefile.in (eval.o): Update dependencies.
2177 2003-04-28 Adam Fedor <fedor@gnu.org>
2179 * symtab.c (symbol_find_demangled_name): Check for and demangle
2181 (symbol_init_demangled_name): Init for language_objc as well.
2183 2003-04-28 Andrew Cagney <cagney@redhat.com>
2185 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
2186 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
2187 * gdbarch.h, gdbarch.c: Re-generate.
2188 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
2189 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
2190 * inferior.h (deprecated_read_fp): Rename read_fp.
2191 (generic_target_read_fp): Delete declaration.
2192 * regcache.c (generic_target_read_fp): Delete function.
2193 (deprecated_read_fp): Replace read_fp, use
2194 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
2195 * d10v-tdep.c (d10v_read_fp): Delete function.
2196 (d10v_gdbarch_init): Do not set deprecated_read_fp.
2198 * sparc-tdep.c (sparc_gdbarch_init): Do not set
2199 deprecated_target_read_fp to generic_target_read_fp.
2200 * sh-tdep.c (sh_gdbarch_init): Ditto.
2201 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2202 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2203 * frv-tdep.c (frv_gdbarch_init): Ditto.
2205 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
2206 deprecated_fp_regnum.
2207 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2208 * vax-tdep.c (vax_gdbarch_init): Ditto.
2209 * v850-tdep.c (v850_gdbarch_init): Ditto.
2210 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2211 * sh-tdep.c (sh_gdbarch_init): Ditto.
2212 * s390-tdep.c (s390_gdbarch_init): Ditto.
2213 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2214 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2215 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2216 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2217 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2218 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2219 * i386-tdep.c (i386_gdbarch_init): Ditto.
2220 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2221 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2222 * frv-tdep.c (frv_gdbarch_init): Ditto.
2223 * cris-tdep.c (cris_gdbarch_init): Ditto.
2224 * avr-tdep.c (avr_gdbarch_init): Ditto.
2225 * arm-tdep.c (arm_gdbarch_init): Ditto.
2226 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2228 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
2229 * v850-tdep.c (v850_gdbarch_init): Ditto.
2230 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2231 * sh-tdep.c (sh_gdbarch_init): Ditto.
2232 * s390-tdep.c (s390_gdbarch_init): Ditto.
2233 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2234 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2235 * mips-tdep.c (mips_gdbarch_init): Ditto.
2236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2237 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2238 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2239 * frv-tdep.c (frv_gdbarch_init): Ditto.
2240 * avr-tdep.c (avr_gdbarch_init): Ditto.
2241 * arm-tdep.c (arm_gdbarch_init): Ditto.
2243 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
2244 DEPRECATED_FP_REGNUM.
2245 (vax_push_dummy_frame, vax_pop_frame): Ditto.
2246 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
2247 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2248 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
2249 (sparc32_register_virtual_type): Ditto.
2250 * sh-tdep.c (sh64_frame_chain): Ditto.
2251 (sh64_get_saved_register, sh64_pop_frame): Ditto.
2252 (sh_nofp_frame_init_saved_regs): Ditto.
2253 (sh64_nofp_frame_init_saved_regs): Ditto.
2254 (sh_fp_frame_init_saved_regs): Ditto.
2255 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2256 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2257 * procfs.c (procfs_fetch_registers): Ditto.
2258 (procfs_store_registers): Ditto.
2259 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
2260 (store_inferior_registers, fetch_core_registers): Ditto.
2261 (fetch_kcore_registers, clear_regs): Ditto.
2262 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
2263 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
2264 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
2265 * nlm/i386.c (do_status): Ditto.
2266 * mipsv4-nat.c (supply_gregset): Ditto.
2267 * mips-tdep.c: Ditto for comments.
2268 * mips-nat.c (fetch_inferior_registers): Ditto.
2269 (store_inferior_registers, fetch_core_registers): Ditto.
2270 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
2271 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
2272 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
2273 (i386_do_pop_frame, i386_register_type): Ditto.
2274 * hppa-tdep.c (hppa_frame_chain): Ditto.
2275 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
2276 (hppa_pop_frame, hppa_read_fp): Ditto.
2277 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
2278 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
2279 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
2280 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
2281 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
2282 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
2283 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
2284 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
2285 * blockframe.c: Ditto for comments.
2286 * arch-utils.h: Ditto for comments.
2287 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
2288 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
2289 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
2290 * alpha-tdep.h: Ditto for comments.
2291 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
2292 (alpha_cannot_store_register): Ditto.
2293 (alpha_push_dummy_frame): Ditto.
2294 * alpha-nat.c (supply_gregset): Ditto.
2296 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
2297 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
2298 * config/sparc/tm-sparc.h: Update comment.
2300 * hppa-tdep.c (hppa_init_extra_frame_info): Use
2301 deprecated_read_fp instead of TARGET_READ_FP.
2302 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
2303 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
2304 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2305 deprecated_read_fp instead of read_fp.
2306 * s390-tdep.c (s390_push_arguments): Ditto.
2307 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2308 * frame.h: Ditto in comments.
2309 * frame.c (legacy_get_prev_frame): Ditto.
2310 * dummy-frame.c (dummy_frame_this_id): Ditto.
2311 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2313 2003-04-28 Andrew Cagney <cagney@redhat.com>
2315 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
2316 * gdbarch.h, gdbarch.c: Re-generate.
2317 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
2318 * vax-tdep.c (_initialize_vax_tdep): Update.
2319 * v850-tdep.c (_initialize_v850_tdep): Update.
2320 * sparc-tdep.c (_initialize_sparc_tdep): Update.
2321 * s390-tdep.c (_initialize_s390_tdep): Update.
2322 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
2323 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
2324 * mips-tdep.c (_initialize_mips_tdep): Update.
2325 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2326 * m68k-tdep.c (_initialize_m68k_tdep): Update.
2327 * ia64-tdep.c (_initialize_ia64_tdep): Update.
2328 * hppa-tdep.c (_initialize_hppa_tdep): Update.
2329 * h8300-tdep.c (_initialize_h8300_tdep): Update.
2330 * frv-tdep.c (_initialize_frv_tdep): Update.
2331 * cris-tdep.c (cris_delayed_get_disassembler): Update.
2332 (_initialize_cris_tdep): Update.
2333 * arch-utils.c (legacy_print_insn): Update.
2334 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2336 2003-04-26 Adam Fedor <fedor@gnu.org>
2338 * linespec.c (decode_objc): New function to decode ObjC calls
2339 (decode_line_1): Check for ObjC calls (using decode_objc)
2340 * Makefile (linespec.o): Update dependencies.
2342 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
2344 * breakpoint.h (struct breakpoint_ops): New.
2345 (struct breakpoint): Add ops member.
2347 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
2348 (mention): Use new breakpoint ops member.
2349 (set_raw_breakpoint): Initialize ops field to NULL.
2350 (print_exception_catchpoint, print_one_exception_catchpoint)
2351 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
2352 (gnu_v3_exception_catchpoint_ops): New.
2353 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
2355 2003-04-25 Adam Fedor <fedor@gnu.org>
2357 * Makefile.in (COMMON_OBS): Add objc-lang.o
2359 2003-04-25 Andrew Cagney <cagney@redhat.com>
2361 * d10v-tdep.c (print_insn): Delete function.
2362 (display_trace): Use TARGET_PRINT_INSN.
2363 (_initialize_d10v_tdep): Do not set tm_print_insn.
2364 (d10v_gdbarch_init): Set print_insn.
2366 2003-04-25 Andrew Cagney <cagney@redhat.com>
2368 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
2369 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
2370 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
2371 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
2372 (nr_dmap_regs, a0_regnum): ... new functions.
2373 (d10v_print_registers_info): Use a0_regnum, use register_size.
2374 (d10v_register_byte): Delete function.
2375 (d10v_register_raw_size): Delete function.
2376 (d10v_register_type): Use a0_regnum.
2377 (d10v_print_registers_info): Use a0_regnum.
2378 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
2379 (d10v_gdbarch_init): Do not set register_byte or
2380 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
2381 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
2383 (trace_command): Use XCALLOC.
2384 (print_insn): Delete reference to tm_print_insn.
2385 (saved_regs_unwinder): Use store_unsigned_integer instead of
2387 * frame.h (FRAME_OBSTACK_CALLOC): Define
2389 2003-04-25 David Carlton <carlton@bactrian.org>
2391 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2393 2003-04-24 Adam Fedor <fedor@gnu.org>
2395 * objc-lang.c: Include "valprint.h"
2396 * Makefile.in (objc-lang.o): Update dependencies.
2398 2003-04-24 Adam Fedor <fedor@gnu.org>
2400 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
2401 architecture dependant compilation and mark as unimplemented
2402 (until they get put in the gdbarch vector).
2404 2003-04-23 David Carlton <carlton@bactrian.org>
2406 * cp-support.c (cp_find_first_component): Accept 'operator' in
2409 2003-04-23 Andrew Cagney <cagney@redhat.com>
2411 * infcall.c (call_function_by_hand): Eliminate redundant
2412 indentation. Move "saved_async" and "old_cleanups" to where they
2415 2003-04-23 Andrew Cagney <cagney@redhat.com>
2417 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
2418 and "buffer". Move the "name" code to where it is needed.
2420 2003-04-23 Andrew Cagney <cagney@redhat.com>
2422 * infcall.c (call_function_by_hand): Move variables "start_sp",
2423 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
2424 code to ON_STACK switch branch.
2426 2003-04-23 Andrew Cagney <cagney@redhat.com>
2428 * infcall.c (call_function_by_hand): Make declaration of "i",
2429 "sal", "bpt" and "old_sp" more local to their use. Delete #if
2432 2003-04-23 Andrew Cagney <cagney@redhat.com>
2434 * infcall.c (call_function_by_hand): Delete variable
2435 "n_method_args". Localize "param_type"'s declaration to the loop
2436 that it is used. Reinstate code assigning to said variable -
2437 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2438 Rationalize code using "param_type".
2440 2003-04-22 Andrew Cagney <cagney@redhat.com>
2442 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2443 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2444 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2445 to DEPRECATED_PUSH_RETURN_ADDRESS.
2447 2003-04-22 Kevin Buettner <kevinb@redhat.com>
2449 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2450 on the DWARF2 register number prior to fetching a register.
2452 2003-04-22 J. Brobecker <brobecker@gnat.com>
2454 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2455 Update all the tests using SOFT_FLOAT considering the fact that
2456 this macro was always set to 0.
2457 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2458 considering the fact that this macro was always set to 0.
2459 * hppa-tdep.h (hppa_store_return_value): Likewise.
2460 (hppa_extract_return_value): Likewise.
2462 2003-04-22 J. Brobecker <brobecker@gnat.com>
2464 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2465 the hppa-pro target only.
2467 2003-04-21 J. Brobecker <brobecker@gnat.com>
2469 Ongoing multi-arch conversion effort for HP/UX:
2470 * config/pa/tm-hppa.h: Move all macro that are no longer
2471 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2472 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2474 2003-04-21 J. Brobecker <brobecker@gnat.com>
2476 * config/pa/tm-hppa.h: Obsolete a section that was only used
2479 2003-04-21 J. Brobecker <brobecker@gnat.com>
2481 Ongoing multi-arch conversion for HP/UX.
2482 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2483 if already defined (allows hppa64 to stay non-multiarched for now).
2484 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2486 2003-04-21 Andrew Cagney <cagney@redhat.com>
2488 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2490 2003-04-21 Andrew Cagney <cagney@redhat.com>
2492 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2493 "i386_num_mmx_regs".
2495 2003-04-21 Andrew Cagney <cagney@redhat.com>
2497 * infcall.c: New file.
2498 * infcall.h: New file.
2499 * valarith.c: Include "infcall.h".
2500 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2501 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2502 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2503 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2504 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2505 (SFILES): Add "infcall.c"
2506 (COMMON_OBS): Add "infcall.o".
2507 (infcall.o): Specify dependencies.
2508 * value.h (call_function_by_hand): Delete declaration.
2509 * inferior.h (run_stack_dummy): Delete declaration.
2510 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2511 (run_stack_dummy): Move to "infcall.c", merged into
2512 call_function_by_hand.
2513 * valops.c (call_function_by_hand): Moved to "infcall.c".
2514 (find_function_addr, value_arg_coerce): Ditto.
2515 (unwindonsignal_p, coerce_float_to_double): Ditto.
2516 (_initialize_valops): Move "set/show coerce-float-to-double", and
2517 "set/show unwindonsignal" commands to "infcall.c".
2518 * v850-tdep.c, target.h: Update comments.
2519 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2520 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2521 (sh64_init_extra_frame_info): Update comments.
2522 * mn10300-tdep.c: Update comments.
2523 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2524 * config/sparc/tm-sparc.h: Update comments.
2525 * breakpoint.h: Update comments.
2526 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2527 * arm-tdep.c: Update comment.
2529 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2531 * i386-tdep.c (i386_num_register_names): New variable.
2532 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2533 (MM0_REGNUM): Remove redundant parentheses in define.
2534 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2535 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2536 i386_mxcsr_regnum_p): Remove redundant parentheses.
2537 (i386_register_name): Use i386_num_register_names.
2539 * i386-tdep.c (i386_extract_return_value,
2540 i386_store_return_value): Correct check for availability of
2541 floating-point registers.
2543 * i386-tdep.c (i386_frame_num_args): Remove function.
2544 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2546 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2547 mmx_regnum_to_fp_regnum. Adjust all callers.
2549 * i386-tdep.c (i386_get_longjmp_target): Use
2550 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2551 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2554 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2556 * core-regset.c: Update comments to reflect reality. Re-order
2558 (fetch_core_registers): Use switch instead of if. Remove
2559 redundant prototype.
2561 2003-04-18 Jim Blandy <jimb@redhat.com>
2563 * s390-tdep.c (s390_frame_align): New function.
2564 (s390_gdbarch_init): Register it with the gdbarch object.
2566 2003-04-17 Richard Henderson <rth@redhat.com>
2568 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2570 2003-04-17 Michael Snyder <msnyder@redhat.com>
2571 Karen Bennet <bennet@redhat.com>
2573 Committed by Elena Zannoni <ezannoni@redhat.com>
2574 * gdb_gcore.sh: New script to create a core dump of a process.
2576 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
2578 * values.c (value_being_returned): Don't fetch the return
2579 value if the return type is void.
2581 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2583 * thread-db.c: Reindented.
2585 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2587 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2588 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2615 2003-04-16 Kevin Buettner <kevinb@redhat.com>
2617 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
2618 the size of ``long double'' to 16, instead of 8.
2620 2003-04-16 Mark Kettenis <kettenis@gnu.org>
2622 * i386-linux-nat.c: Add some whitespace to make things more
2624 (fetch_register, store_register, fetch_inferior_registers,
2625 store_inferior_registers): Get rid of assignment in if-statement.
2626 (store_register): Fix typo in error message.
2628 2003-04-16 Andrew Cagney <cagney@redhat.com>
2630 * utils.c (xmmalloc): Always allocate something, matches
2631 libiberty/xmalloc's semantics.
2632 (xmrealloc, xmcalloc): Ditto.
2634 2003-04-16 Andrew Cagney <cagney@redhat.com>
2636 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2638 (get_frame_type): Initialize unwind and type when needed.
2639 (get_frame_id, frame_register_unwind): Ditto.
2641 2003-04-16 Andrew Cagney <cagney@redhat.com>
2643 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2645 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2646 * sparcl-stub.c: Obsolete file.
2647 * config/sparc/tm-sparclet.h: Obsolete file.
2648 * sparclet-stub.c: Obsolete file.
2649 * sparclet-rom.c: Obsolete file.
2650 * sparcl-tdep.c: Obsolete file.
2651 * config/sparc/tm-sparclite.h: Obsolete file.
2652 * config/sparc/sparclite.mt: Obsolete file.
2653 * config/sparc/sparclet.mt: Obsolete file.
2654 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2655 sparc86x-*-* obsolete.
2657 2003-04-15 David Carlton <carlton@math.stanford.edu>
2659 * Makefile.in (SFILES): Add cp-namespace.c.
2660 (COMMON_OBS): Add cp-namespace.o.
2661 (block.o): Depend on gdb_obstack_h and cp_support_h.
2662 (buildsym.o): Depend on cp_support_h.
2663 (cp-namespace.o): New.
2664 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2665 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2666 (dwarf2read.o): Depend on cp_support_h.
2667 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2668 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2669 processing_current_namespace.
2670 (read_namespace): Update processing_current_namespace; check for
2671 anonymous namespaces.
2672 (dwarf2_name): New function.
2673 (dwarf2_extension): Ditto.
2674 * cp-support.h: Update copyright, contributors.
2675 Add inclusion guards.
2676 Add opaque declaration for structs obstack, block, symbol.
2677 (struct using_direct): New struct.
2678 Add declarations for cp_find_first_component,
2679 cp_entire_prefix_len, processing_has_namespace_info,
2680 processing_current_namespace, cp_is_anonymous,
2681 cp_add_using_directive, cp_initialize_namespace,
2682 cp_finalize_namespace, cp_set_block_scope,
2683 cp_scan_for_anonymous_namespaces.
2684 * cp-namespace.c: New file.
2685 * cp-support.c: Update copyright.
2686 Include ctype.h, gdb_assert.h, gdbcmd.h.
2687 New variable maint_cplus_cmd_list.
2688 (cp_find_first_component): New function.
2689 (cp_entire_prefix_len, maint_cplus_command)
2690 (first_component_command, _initialize_cp_support): Ditto.
2691 * buildsym.c: Include cp-support.h.
2692 New variable using_list.
2693 (add_symbol_to_list): Check for anonymous namespaces.
2694 (finish_block): Set block's scope.
2695 (start_symtab): Initialize C++ namespace support.
2696 (end_symtab): Finalize C++ namespace support.
2697 * block.h: Add opaque declarations for structs
2698 block_namespace_info, using_direct, and obstack.
2699 Add declarations for block_set_scope and block_set_using.
2700 (struct block): Add 'language_specific' member.
2701 (BLOCK_NAMESPACE): New macro.
2702 * block.c: Include gdb_obstack.h and cp-support.h.
2703 (struct block_namespace_info): New struct.
2704 (block_set_scope): New function.
2705 (block_set_using, block_initialize_namespace): Ditto.
2707 2003-04-14 Kevin Buettner <kevinb@redhat.com>
2709 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2710 (locate_base): Return early if there aren't any link map offsets.
2711 (svr4_solib_create_inferior_hook): Warn if shared library support
2714 2003-04-14 David Carlton <carlton@math.stanford.edu>
2716 * symtab.c (symbol_set_names): Add prefix when storing Java names
2717 in hash table. Fix for PR java/1039.
2719 2003-04-14 David Carlton <carlton@math.stanford.edu>
2721 * symtab.c (symbol_set_names): Rename 'name' arg to
2722 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2723 * symtab.h: Change 'name' argument in declaration of
2724 symbol_set_names to 'linkage_name'.
2725 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2727 2003-04-14 Andrew Cagney <cagney@redhat.com>
2729 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2730 return the fully sign-extended register value.
2731 (get_frame_pointer): Ditto.
2732 (mips_pop_frame): Initialize "proc_desc" after checking for a
2735 2003-04-14 Andrew Cagney <cagney@redhat.com>
2737 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2738 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2739 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2740 (mips_push_register): Delete function.
2741 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2744 2003-04-14 Jim Blandy <jimb@redhat.com>
2746 * symmisc.c: #include "gdb_regex.h".
2747 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2749 * maint.c (maintenance_list_command): New function.
2750 (_initialize_maint_cmds): Register the above as commands.
2751 * symtab.h (maintenance_list_symtabs,
2752 maintenance_list_psymtabs): New declarations.
2753 * cli/cli-cmds.c (maintenancelistlist): New variable.
2754 (init_cmd_lists): Initialize it.
2755 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2756 * gdbcmd.h (maintenancelistlist): New declaration.
2757 * Makefile.in (symmisc.o): Update dependencies.
2759 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
2761 * s390-nat.c: Include asm/types.h for addr_t.
2763 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
2765 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2766 actually incoming type.
2768 2003-04-13 Andrew Cagney <cagney@redhat.com>
2770 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2771 get_next_frame and get_frame_saved_regs.
2773 2003-04-13 Andrew Cagney <cagney@redhat.com>
2775 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2776 of gdbarch_num_regs.
2778 2003-04-13 Andrew Cagney <cagney@redhat.com>
2780 * frame.h: Mention what replaced what in "struct frame_info".
2781 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2782 deprecated_update_frame_base_hack and
2783 deprecated_update_frame_pc_hack.
2784 * hppa-tdep.c: Ditto.
2786 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2788 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2789 to read_reg and update its comment. Remove regnum member.
2790 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2791 Don't call read_reg when setting in_reg. Call read_reg to get
2792 the frame base if it's in a register. Return the register number
2793 on the stack instead of in the context. Remove extra arguments
2795 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2796 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2797 the register number on the expression stack.
2798 (needs_frame_read_reg): Remove extra arguments.
2800 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2802 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2804 (execute_stack_op): All callers updated.
2805 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2806 * dwarf2loc.c (find_location_expression): New function.
2807 (dwarf_expr_frame_base): Call it.
2808 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2809 (dwarf2_tracepoint_var_ref): New function, broken out from
2810 locexpr_tracepoint_var_ref.
2811 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2813 (loclist_read_variable, loclist_read_needs_frame): New functions.
2814 (loclist_describe_location, loclist_tracepoint_var_ref): New
2816 (dwarf2_loclist_funcs): New struct location_funcs.
2817 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2818 (struct dwarf2_locexpr_baton): Add comments.
2819 (dwarf2_loclist_funcs): New extern.
2820 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2821 base_address and base_known.
2822 (dwarf_loc_buffer): New variable.
2823 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2824 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2825 (dwarf2_has_info): Initialize dwarf_loc_offset.
2826 (dwarf2_build_psymtabs): Read in .debug_loc.
2827 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2829 (psymtab_to_symtab_1): Likewise. Move base address calculation
2831 (dwarf2_get_pc_bounds): ... here. Use the base address from
2833 (dwarf2_symbol_mark_computed): Handle location lists.
2835 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2837 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2838 if the linkage name demangled successfully.
2840 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2842 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2843 disassmbly_flavour): Removed.
2845 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2847 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2849 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2851 2003-04-12 Andrew Cagney <cagney@redhat.com>
2853 * frame.h (struct frame_info): Move definition from here ...
2854 * frame.c (struct frame_info): ... to here.
2856 2003-04-12 Andrew Cagney <cagney@redhat.com>
2858 * gdbthread.h (save_infrun_state): Delete parameter
2860 (struct thread_info): Delete field "prev_func_start".
2861 (load_infrun_state): Ditto.
2862 * thread.c (load_infrun_state, save_infrun_state): Update.
2863 * infrun.c (prev_func_start): Delete variable.
2864 (context_switch, init_wait_for_inferior): Update.
2865 (stop_stepping, keep_going): Update.
2867 2003-04-12 Andrew Cagney <cagney@redhat.com>
2869 * gdbarch.sh: Add missing opaque declarations.
2870 * gdbarch.h: Regnerate.
2871 * symtab.h: Add missing opaque declarations.
2872 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2873 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2874 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2875 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2876 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2877 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2878 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2879 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2880 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2881 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2882 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2883 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2884 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2886 2003-04-11 Andrew Cagney <cagney@redhat.com>
2888 * frame.c (get_frame_id): Return this frame's "id".
2889 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2891 (legacy_saved_regs_this_id): Replace function body with
2893 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2894 FRAME_OBSTACK_ZALLOC.
2895 (create_new_frame): Mark the frame ID as valid.
2897 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2899 * Makefile.in (libbfd_h): Added missing setting.
2900 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2901 according to the selected ABI.
2903 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2905 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2907 2003-04-11 Andrew Cagney <cagney@redhat.com>
2909 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2910 SAVED_PC_AFTER_CALL.
2911 * gdbarch.h, gdbarch.c: Regenerate.
2912 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2913 * x86-64-tdep.c (x86_64_init_abi): Update.
2914 * vax-tdep.c (vax_gdbarch_init): Update.
2915 * v850-tdep.c (v850_gdbarch_init): Update.
2916 * sparc-tdep.c (sparc_gdbarch_init): Update.
2917 * sh-tdep.c (sh_gdbarch_init): Update.
2918 * s390-tdep.c (s390_gdbarch_init): Update.
2919 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2920 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2921 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2922 * mips-tdep.c (mips_gdbarch_init): Update.
2923 * mcore-tdep.c (mcore_gdbarch_init): Update.
2924 * m68k-tdep.c (m68k_gdbarch_init): Update.
2925 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2926 * ia64-tdep.c (ia64_gdbarch_init): Update.
2927 (ia64_saved_pc_after_call): Update declaration.
2928 * i386ly-tdep.c (i386lynx_init_abi): Update.
2929 * i386-tdep.c (i386_gdbarch_init): Update.
2930 * hppa-tdep.c (hppa_gdbarch_init): Update.
2931 * h8300-tdep.c (h8300_gdbarch_init): Update.
2932 * frv-tdep.c (frv_gdbarch_init): Update.
2933 * cris-tdep.c (cris_gdbarch_init): Update.
2934 * avr-tdep.c (avr_gdbarch_init): Update.
2935 * arm-tdep.c (arm_gdbarch_init): Update.
2936 * alpha-tdep.c (alpha_gdbarch_init): Update.
2937 * ns32knbsd-nat.c (frame_num_args): Update.
2938 * ns32k-tdep.c (umax_frame_num_args): Update.
2939 * mips-tdep.c (mips_init_frame_pc_first): Update.
2940 * infrun.c (step_over_function): Update.
2941 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2942 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2943 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2944 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2945 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2946 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2947 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2948 * arch-utils.c (init_frame_pc_default): Update.
2949 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2950 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2953 2003-04-11 Andrew Cagney <cagney@redhat.com>
2955 * i387-tdep.c: Update copyright.
2956 (i387_to_double): Delete function.
2957 (double_to_i387): Delete function.
2959 2003-04-10 Andrew Cagney <cagney@redhat.com>
2961 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2962 frame's function's address. Simplify.
2963 (d10v_frame_unwind_cache): Check that the frame's function is
2966 2003-04-10 Jim Blandy <jimb@redhat.com>
2968 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2969 call to set_gdbarch_deprecated_push_arguments.
2971 2003-04-10 Andrew Cagney <cagney@redhat.com>
2973 * frame.c (fprint_frame_id): New function.
2974 (fprint_frame_type, fprint_frame): New function.
2975 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2976 (create_sentinel_frame, get_frame_id): Ditto.
2977 (frame_id_p, frame_id_eq): Ditto.
2978 (frame_id_inner, create_new_frame): Ditto.
2979 (legacy_get_prev_frame, get_prev_frame): Ditto.
2980 (deprecated_update_frame_pc_hack): Ditto.
2981 (frame_register_unwind): Ditto.
2982 (deprecated_update_frame_base_hack): Ditto.
2984 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2986 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2987 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2988 frame_chain function.
2989 * Makefile.in: Add dependencies due to above change.
2991 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2993 * blockframe.c (legacy_frame_chain_valid): Move call to
2994 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2997 2003-04-09 Andrew Cagney <cagney@redhat.com>
2999 * frame.h (struct frame_id): Replace "pc" and "base" with
3000 "stack_addr" and "code_addr". Update comments.
3001 (frame_id_build): Update parameter names and comment.
3002 (struct frame_info): Replace "id_p" and "id" with "this_id".
3003 * dummy-frame.c (dummy_frame_this_id): Update.
3004 * breakpoint.c (print_one_breakpoint): Update.
3005 * frame.c (get_frame_id): Update.
3006 (get_frame_base, frame_id_build): Update.
3007 (create_sentinel_frame, legacy_get_prev_frame): Update.
3008 (deprecated_update_frame_base_hack): Update.
3009 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
3010 (frame_id_inner): Ditto.
3012 2003-04-09 Andrew Cagney <cagney@redhat.com>
3014 * defs.h (gdb_print_host_address): Make "addr" parameter a
3016 * utils.c (gdb_print_host_address): Update.
3018 2003-04-09 Kevin Buettner <kevinb@redhat.com>
3020 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
3021 register number for R0 is 0.
3023 2003-04-09 J. Brobecker <brobecker@gnat.com>
3025 * frame.h (struct gdbarch): Add opaque structure definition
3026 to avoid a compilation warning on LynxOS 4.0.
3028 2003-04-09 Andrew Cagney <cagney@redhat.com>
3030 * frame.h (struct frame_info): Delete field "pc". Replace
3031 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
3033 * frame.c (frame_pc_unwind): Update.
3034 (create_sentinel_frame): Do not set "pc".
3035 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
3036 (get_frame_pc): Call frame_pc_unwind.
3037 (deprecated_update_frame_pc_hack): Update.
3038 (create_new_frame): Use "pc" not "->pc".
3040 2003-04-09 Andrew Cagney <cagney@redhat.com>
3042 * frame.c (get_frame_id): Eliminate code updating "frame".
3043 (legacy_get_prev_frame): Ditto.
3044 (get_frame_base): Return id.base directly.
3045 (deprecated_update_frame_base_hack): Update "id.base".
3046 * frame.h (struct frame_info): Delete field "frame".
3048 2003-04-09 Andrew Cagney <cagney@redhat.com>
3050 * NEWS: Mention that the "Sequent family" is obsolete.
3051 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
3052 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3053 * configure.host: Obsolete i[3456]86-sequent-bsd*,
3054 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3055 * config/i386/tm-ptx4.h: Obsolete file.
3056 * config/i386/tm-ptx.h: Obsolete file.
3057 * symm-tdep.c: Obsolete file.
3058 * config/i386/symmetry.mt: Obsolete file.
3059 * config/i386/tm-symmetry.h: Obsolete file.
3060 * symm-nat.c: Obsolete file.
3061 * config/i386/nm-symmetry.h: Obsolete file.
3062 * config/i386/xm-symmetry.h: Obsolete file.
3063 * config/i386/symmetry.mh: Obsolete file.
3064 * config/i386/nm-ptx4.h: Obsolete file.
3065 * config/i386/ptx4.mh: Obsolete file.
3066 * config/i386/ptx.mt: Obsolete file.
3067 * config/i386/ptx.mh: Obsolete file.
3068 * config/i386/xm-ptx4.h: Obsolete file.
3069 * config/i386/xm-ptx.h: Obsolete file.
3071 2003-04-09 Andrew Cagney <cagney@redhat.com>
3073 Obsolete mips*-*-mach3*.
3074 * NEWS: Mention that mips*-*-mach3* is obsolete.
3075 * m3-nat.c: Obsolete file.
3076 * config/nm-m3.h: Obsolete file.
3077 * config/mips/tm-mipsm3.h: Obsolete file.
3078 * config/mips/mipsm3.mt: Obsolete file.
3079 * config/mips/mipsm3.mh: Obsolete file.
3080 * config/mips/xm-mipsm3.h: Obsolete file.
3081 * mipsm3-nat.c: Obsolete file.
3082 * configure.host: Obsolete mips-dec-mach3*.
3083 * configure.tgt: Obsolete mips*-*-mach3*.
3085 2003-04-09 Andrew Cagney <cagney@redhat.com>
3087 * doublest.h: Update copyright.
3088 (deprecated_store_floating, deprecated_extract_floating): Rename
3089 store_floating and extract_floating. Update comments.
3090 * doublest.c: Update copyright.
3091 (extract_floating_by_length): Replace extract_floating.
3092 (store_floating_by_length): Replace store_floating.
3093 (deprecated_extract_floating): New function.
3094 (deprecated_store_floating): New function.
3095 (extract_typed_floating): Call extract_floating_by_length.
3096 (store_typed_floating): Call store_floating_by_length.
3097 * x86-64-tdep.c (x86_64_store_return_value): Update.
3098 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
3099 (sh64_extract_return_value): Update.
3100 (sh_sh4_register_convert_to_virtual): Update.
3101 (sh_sh64_register_convert_to_virtual): Update.
3102 (sh_sh4_register_convert_to_raw): Update.
3103 (sh_sh64_register_convert_to_raw): Update.
3104 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
3105 (rs6000_register_convert_to_raw): Update.
3106 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
3107 (ia64_register_convert_to_raw): Update.
3108 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
3109 (REGISTER_CONVERT_TO_VIRTUAL): Update.
3110 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
3111 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
3112 (alpha_register_convert_to_raw): Update.
3114 2003-04-08 Andrew Cagney <cagney@redhat.com>
3116 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
3117 * gdbarch.h, gdbarch.c: Re-generate.
3118 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
3119 (d10v_gdbarch_init): Do not set saved_pc_after_call.
3120 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
3121 conditionally, use frame_pc_unwind as an alternative. Add
3123 * arch-utils.c (init_frame_pc_default): Only call
3124 SAVED_PC_AFTER_CALL when available.
3126 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3128 * infrun.c (stop_soon): Rename from stop_soon_quietly.
3129 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
3130 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
3131 (start_remote): Ditto.
3132 (handle_inferior_event): Ditto.
3133 (save_inferior_status): Ditto.
3134 (restore_inferior_status): Ditto.
3135 * infcmd.c (attach_command): Ditto.
3136 * fork-child.c (startup_inferior): Ditto.
3137 * inferior.h (stop_soon): Rename from stop_soon_quietly.
3138 * alpha-tdep.c (heuristic_proc_start): Ditto.
3139 * mips-tdep.c (heuristic_proc_start): Ditto.
3140 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
3141 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
3142 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
3143 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
3144 * remote-vx.c (vx_create_inferior): Ditto.
3146 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3148 * infrun.c (stop_soon_quietly): Make it an enum, to better
3149 override the default behavior of handle_inferior_event.
3150 (clear_proceed_status): Update uses of stop_soon_quietly to
3151 reflect that it is now an enum.
3152 (start_remote): Ditto.
3153 (handle_inferior_event): Change logic a bit if stop_soon_quietly
3154 is set to handle the new GNU/Linux kernel behavior for
3155 attach/sigstop. Update uses of stop_soon_quietly.
3156 * inferior.h (enum stop_kind): New enum.
3157 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
3158 Reset normal handle_inferior_event behavior, afterwards.
3159 * fork-child.c (startup_inferior): Update.
3160 * alpha-tdep.c (heuristic_proc_start): Update.
3161 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3162 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
3163 * solib-osf.c (osf_solib_create_inferior_hook): Update.
3164 * solib-irix.c (irix_solib_create_inferior_hook): Update.
3165 * remote-vx.c (vx_create_inferior): Update.
3166 * mips-tdep.c (heuristic_proc_start): Update.
3168 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
3170 * disasm.c (dump_insns): Move variables inside loop, or they will
3171 be freed more than once, causing wild memory corruptions.
3172 (gdb_disassembly): Look for the substring "-thread",
3173 instead of "-threads" in the target name, to make sure to find
3174 the 'multi-thread' target. Also, make sure we do the right thing
3175 with the "core" target.
3177 2003-04-07 Kevin Buettner <kevinb@redhat.com>
3179 * mips-tdep.c (mips_print_fp_register): New function, created from
3180 do_fp_register_row(). Registers are now (also) printed as hex.
3181 Only one register is printed per row.
3182 (mips_print_register, do_fp_register_row): Print floating point
3183 registers with mips_print_fp_register().
3185 2003-04-06 Andrew Cagney <cagney@redhat.com>
3187 * valprint.h (inspect_it): Add extern declaration.
3188 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
3189 (selectors_info, classes_info): Ditto.
3190 (find_objc_msgcall): Fix indentation.
3191 (objc_printstr): Delete extern declarations.
3193 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
3195 2003-04-06 Andrew Cagney <cagney@redhat.com>
3197 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
3199 * frame.c (legacy_saved_regs_this_id): Update.
3200 (legacy_get_prev_frame): Update.
3201 * xstormy16-tdep.c: Update comment.
3202 * sparc-tdep.c (sparc_frame_chain): Update comment.
3203 * blockframe.c (legacy_frame_chain_valid): Update.
3205 2003-04-06 Andrew Cagney <cagney@redhat.com>
3207 * valprint.c (val_print_type_code_int): Delete #ifdef
3208 PRINT_TYPELESS_INTEGER code.
3210 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
3211 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
3212 multi-arch definition.
3213 * gdbarch.h: Re-generate.
3215 2003-04-05 Andrew Cagney <cagney@redhat.com>
3217 Eliminate FRAME_FIND_SAVED_REGS.
3218 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3219 Change FSR parameter to a pointer.
3220 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
3221 Assume FSR parameter is a pointer.
3222 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3224 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
3225 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
3226 saved_regs a pointer.
3227 (hppa_frame_saved_pc): Ditto.
3228 (find_dummy_frame_regs): Make frame_saved_regs a pointer
3229 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
3231 (restore_pc_queue): Make fsr a pointer.
3232 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
3233 (hppa_frame_chain): Make saved_regs a pointer, call
3234 hppa_frame_init_saved_regs.
3235 * sparc-tdep.c: Include "gdb_assert.h".
3236 (sparc_frame_find_saved_regs): Replace internal_error with
3238 * remote-vxsparc.c (vx_read_register): Delete reference to
3239 FRAME_FIND_SAVED_REGS.
3240 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
3241 * gdbarch.h: Regenerate.
3242 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3243 (deprecated_get_frame_saved_regs): Delete declaration.
3244 (struct frame_saved_regs): Delete definition.
3245 * frame.c (deprecated_get_frame_saved_regs): Delete function.
3246 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
3247 (hppa_frame_find_saved_regs): Delete declaration.
3248 (FRAME_FIND_SAVED_REGS): Delete macro.
3249 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
3250 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
3251 FRAME_FIND_SAVED_REGS in comment.
3253 2003-04-05 Andrew Cagney <cagney@redhat.com>
3255 * frame.c (frame_func_unwind, get_frame_func): New functions.
3256 * frame.h (get_frame_func, frame_func_unwind): Declare.
3257 (struct frame_info): Add field "prev_func" for caching the
3258 previous frame's function address.
3259 * arm-tdep.c (arm_frameless_function_invocation): Combine
3260 get_pc_function_start and get_frame_pc into get_frame_func.
3261 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3262 (sh64_nofp_frame_init_saved_regs): Ditto.
3263 * s390-tdep.c (s390_function_start): Ditto.
3264 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
3265 (rs6000_frameless_function_invocation): Ditto.
3266 (rs6000_frame_saved_pc): Ditto.
3267 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
3268 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
3269 * i386-tdep.c (i386_frameless_signal_p): Ditto.
3270 (i386_frame_init_saved_regs): Ditto.
3271 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
3272 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
3273 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
3274 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3275 * blockframe.c (frameless_look_for_prologue): Ditto.
3277 2003-04-05 Andrew Cagney <cagney@redhat.com>
3279 * frame.c (legacy_get_prev_frame): Link prev to next at the
3280 function start. Update comments.
3282 2003-04-05 Andrew Cagney <cagney@redhat.com>
3284 * frame.c (get_frame_id): Update comment.
3285 (legacy_get_prev_frame): Update comment.
3286 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
3287 * gdbarch.h: Regenerate.
3288 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
3289 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
3291 2003-04-05 Andrew Cagney <cagney@redhat.com>
3293 * stack.c (print_frame_info): Use get_frame_pc.
3295 2003-04-04 Andrew Cagney <cagney@redhat.com>
3297 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
3298 the frame's type from the unwinder.
3299 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
3300 (create_new_frame, legacy_get_prev_frame): When the unwinder's
3301 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
3302 (get_frame_base_address): Use get_frame_type.
3303 (get_frame_locals_address, get_frame_args_address): Ditto.
3304 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
3305 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
3306 (struct frame_info): Add comment explaining why the frame contains
3308 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
3309 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
3310 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
3312 * frame-unwind.h: Include "frame.h".
3313 (struct frame_unwind): Add "type" field.
3314 * Makefile.in (frame_unwind_h): Add $(frame_h).
3316 2003-04-04 Andrew Cagney <cagney@redhat.com>
3318 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
3319 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
3320 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
3322 (d10v_unwind_dummy_id): Use frame_id_build.
3323 * frame.c (find_frame_sal): Use get_frame_pc.
3324 (create_new_frame): Use deprecated_update_frame_pc_hack and
3325 deprecated_update_frame_base_hack.
3326 (create_sentinel_frame): Add comment about ->pc going away.
3327 (get_prev_frame): Add comment about ->pc going away.
3328 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
3329 frame_id_build, deprecated_update_frame_pc_hack and
3330 deprecated_update_frame_base_hack.
3331 (select_frame): Use get_frame_pc.
3332 (legacy_saved_regs_this_id): Use frame_id_build.
3334 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
3336 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
3337 signed integer case.
3338 (classify_argument): Handle enumerations and references.
3340 2003-04-04 Andrew Cagney <cagney@redhat.com>
3342 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
3345 2003-04-01 Adam Fedor <fedor@gnu.org>
3347 * gdb/objc-lang.c (selectors_info): Replace calls to
3348 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
3349 SYMBOL_NATURAL_NAME.
3350 (classes_info, find_methods): Likewise.
3352 2003-04-03 Kevin Buettner <kevinb@redhat.com>
3354 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
3355 ``mach'' to the value determined by bfd_default_set_arch_mach().
3357 2003-04-02 Bob Rossi <bob_rossi@cox.net>
3359 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
3360 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
3361 (mi-cmd-file.o): Update dependencies.
3363 2003-04-01 Kevin Buettner <kevinb@redhat.com>
3365 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3366 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
3368 2003-04-01 Adam Fedor <fedor@gnu.org>
3370 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
3371 * language.h (struct language_defn): Add la_demangle.
3372 (language_demangle): Declare.
3373 * language.c (language_demangle): New function.
3374 (unk_lang_demangle): Likewise.
3375 (unknown_language_defn, auto_language_defn, local_language_defn):
3376 Add ukn_lang_demangle.
3377 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
3378 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
3379 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
3380 (cplus_language_defn): Add cplus_demangle for la_demangle element.
3381 * jv-lang.c (java_demangle): New function
3382 (java_language_defn): Use it for la_demangle element.
3383 * objc-lang.c (objc_demangle): Add options argument
3384 (objc_language_defn): Use objc_demangle for la_demangle element.
3385 * maint.c (maintenance_demangle): Replace switch with
3386 call to language_demangle.
3387 * utils.c (fprintf_symbol_filtered): Likewise.
3389 2003-04-01 Andrew Cagney <cagney@redhat.com>
3391 * printcmd.c (print_frame_nameless_args): Delete #ifdef
3392 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
3393 PRINT_TYPELESS_INTEGER.
3394 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
3395 PUSH_RETURN_ADDRESS.
3397 2003-04-01 Andrew Cagney <cagney@redhat.com>
3399 * Makefile.in (d10v-tdep.o): Update dependencies.
3400 * d10v-tdep.c: Include "frame-base.h".
3401 (d10v_frame_unwind): Make constant.
3402 (d10v_frame_base_address): New function.
3403 (d10v_frame_base): New variable.
3404 (d10v_gdbarch_init): Set frame_base default.
3405 (struct d10v_unwind_cache): Add the field "prev_sp". Update
3407 (d10v_frame_unwind_cache): Set and use "prev_sp".
3408 (d10v_frame_this_id): Use the previous frame's inner most stack
3409 address and this frame's func address for the frame ID. Use
3410 frame_id_build. Don't analyze beyond the current instruction.
3412 2003-04-01 Andrew Cagney <cagney@redhat.com>
3414 * frame.h (get_frame_locals_address, get_frame_args_address):
3415 Refer to the base address, instead of the address of the first
3418 2003-04-01 Andrew Cagney <cagney@redhat.com>
3420 Add frame debug info addresses:
3421 * frame-base.c: New file.
3422 * frame-base.h: New file.
3423 * frame.h (struct frame_base): Add opaque declaration.
3424 (get_frame_base): Update comment.
3425 (get_frame_base_address): Declare.
3426 (get_frame_locals_address): Declare.
3427 (get_frame_args_address): Declare.
3428 (struct frame_info): Add "base" and "base_cache". Update
3429 comments on the unwinder.
3430 * frame.c: Include "frame-base.h".
3431 (get_frame_locals_address): New function.
3432 (get_frame_base_address): New function.
3433 (get_frame_args_address): New function.
3434 * findvar.c (read_var_value): Use get_frame_locals_address and
3435 get_frame_args_address.
3436 * stack.c (frame_info): Use get_frame_locals_address and
3437 get_frame_args_address.
3438 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
3439 moved to "frame-base.c".
3440 * printcmd.c (print_frame_nameless_args): Ditto.
3441 * symtab.h (address_class): Update comments.
3442 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
3443 get_frame_base_address.
3444 * dwarf2expr.c (execute_stack_op): Ditto.
3445 * Makefile.in (frame_base_h): Define.
3446 (frame.o): Update dependencies.
3447 (frame-base.o): Add dependencies.
3448 (SFILES): Add frame-base.c.
3449 (COMMON_OBS): Add frame-base.o.
3451 2003-04-01 Andrew Cagney <cagney@redhat.com>
3453 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
3454 CALL_DUMMY_LENGTH): Ditto.
3455 * gdbarch.c: Re-generate.
3456 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
3457 (CALL_DUMMY_LENGTH): Delete macro.
3458 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3459 * arm-tdep.c (arm_gdbarch_init): Ditto.
3460 * avr-tdep.c (avr_gdbarch_init): Ditto.
3461 * cris-tdep.c (cris_gdbarch_init): Ditto.
3462 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3463 * frv-tdep.c (frv_gdbarch_init): Ditto.
3464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3465 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3466 * i386-tdep.c (i386_gdbarch_init): Ditto.
3467 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3468 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3469 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3470 * mips-tdep.c (mips_gdbarch_init): Ditto.
3471 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3472 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3473 * s390-tdep.c (s390_gdbarch_init): Ditto.
3474 * sh-tdep.c (sh_gdbarch_init): Ditto.
3475 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3476 * v850-tdep.c (v850_gdbarch_init): Ditto.
3477 * vax-tdep.c (vax_gdbarch_init): Ditto.
3478 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3480 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
3482 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3484 2003-04-01 Andrew Cagney <cagney@redhat.com>
3486 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3487 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3488 * gdbarch.h, gdbarch.c: Re-generate.
3489 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3490 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3491 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3492 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3493 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3494 * infcmd.c (run_stack_dummy): Simplify assuming
3495 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3496 * infrun.c (handle_inferior_event): Ditto.
3497 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3498 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3499 * arm-tdep.c (arm_gdbarch_init): Ditto.
3500 * avr-tdep.c (avr_gdbarch_init): Ditto.
3501 * cris-tdep.c (cris_gdbarch_init): Ditto.
3502 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3503 * frv-tdep.c (frv_gdbarch_init): Ditto.
3504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3505 * i386-tdep.c (i386_gdbarch_init): Ditto.
3506 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3507 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3508 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3509 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3510 * mips-tdep.c (mips_gdbarch_init): Ditto.
3511 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3512 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3513 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3514 * s390-tdep.c (s390_gdbarch_init): Ditto.
3515 * sh-tdep.c (sh_gdbarch_init): Ditto.
3516 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3517 * v850-tdep.c (v850_gdbarch_init): Ditto.
3518 * vax-tdep.c (vax_gdbarch_init): Ditto.
3519 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3521 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
3523 * symfile.c (symfile_relocate_debug_section): Update call to
3524 bfd_simple_get_relocated_section_contents.
3526 2003-03-31 Andrew Cagney <cagney@redhat.com>
3528 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3529 * gdbarch.h, gdbarch.c: Regenerate.
3530 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3531 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3533 * frame.h (generic_fix_call_dummy): Delete declaration.
3534 * dummy-frame.h: Update comment.
3535 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3536 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3538 * sh-tdep.c (sh_gdbarch_init): Ditto.
3539 * s390-tdep.c (s390_gdbarch_init): Ditto.
3540 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3541 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3542 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3543 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3544 * i386-tdep.c (i386_gdbarch_init): Ditto.
3545 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3546 * frv-tdep.c (frv_gdbarch_init): Ditto.
3547 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3548 * cris-tdep.c (cris_gdbarch_init): Ditto.
3549 * avr-tdep.c (avr_gdbarch_init): Ditto.
3550 * arm-tdep.c (arm_gdbarch_init): Ditto.
3552 2003-03-31 J. Brobecker <brobecker@gnat.com>
3554 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3555 (INIT_FRAME_AP): Likewise.
3556 (EXTRA_FRAME_INFO): Likewise.
3558 2003-03-31 Andrew Cagney <cagney@redhat.com>
3560 * gdbarch.sh: Include "symfile.h".
3561 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3562 * gdbarch.h, gdbarch.c: Re-generate.
3563 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3564 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3565 call_dummy_address, the default is at entry_point_address.
3566 * v850-tdep.c (v850_gdbarch_init): Ditto.
3567 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3568 * sh-tdep.c (sh_gdbarch_init): Ditto.
3569 * s390-tdep.c (s390_gdbarch_init): Ditto.
3570 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3571 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3572 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3573 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3574 * i386-tdep.c (i386_gdbarch_init): Ditto.
3575 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3576 * frv-tdep.c (frv_gdbarch_init): Ditto.
3577 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3578 * cris-tdep.c (cris_gdbarch_init): Ditto.
3579 * arm-tdep.c (arm_gdbarch_init): Ditto.
3581 2003-03-31 Andrew Cagney <cagney@redhat.com>
3583 * gdbarch.sh (CALL_DUMMY_P): Delete.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585 * inferior.h (CALL_DUMMY_P): Delete macro.
3586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3587 * vax-tdep.c (vax_gdbarch_init): Update.
3588 * v850-tdep.c (v850_gdbarch_init): Update.
3589 * sparc-tdep.c (sparc_gdbarch_init): Update.
3590 * sh-tdep.c (sh_gdbarch_init): Update.
3591 * s390-tdep.c (s390_gdbarch_init): Update.
3592 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3593 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3594 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3595 * mips-tdep.c (mips_gdbarch_init): Update.
3596 * mcore-tdep.c (mcore_gdbarch_init): Update.
3597 * m68k-tdep.c (m68k_gdbarch_init): Update.
3598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3599 * ia64-tdep.c (ia64_gdbarch_init): Update.
3600 * i386-tdep.c (i386_gdbarch_init): Update.
3601 * h8300-tdep.c (h8300_gdbarch_init): Update.
3602 * frv-tdep.c (frv_gdbarch_init): Update.
3603 * d10v-tdep.c (d10v_gdbarch_init): Update.
3604 * cris-tdep.c (cris_gdbarch_init): Update.
3605 * breakpoint.c (deprecated_frame_in_dummy): Update.
3606 * avr-tdep.c (avr_gdbarch_init): Update.
3607 * alpha-tdep.c (alpha_gdbarch_init): Update.
3608 * arm-tdep.c (arm_gdbarch_init): Update.
3609 * dummy-frame.c (dummy_frame_this_id): Update comments.
3610 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3611 * frame.c (legacy_get_prev_frame): Ditto.
3612 * valops.c (call_function_by_hand): Delete function.
3613 (hand_function_call): Rename to call_function_by_hand
3615 2003-03-30 Andrew Cagney <cagney@redhat.com>
3617 2002-11-10 Klee Dienes <kdienes@apple.com>
3618 * value.h (struct value): Update comment.
3620 2003-03-30 Andrew Cagney <cagney@redhat.com>
3622 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3624 (d10v_gdbarch_init): Do not set fp_regnum.
3626 * frame.c (get_frame_base): Force ID initialization.
3627 (get_prev_frame): Move computation of the frame ID from here ...
3628 (get_frame_id): ... to here.
3629 (legacy_get_prev_frame): Mark the frame ID as valid.
3630 * frame.h (struct frame_info): Add field "id_p".
3632 2003-03-30 Mark Kettenis <kettenis@gnu.org>
3634 * i386-tdep.c (i386_store_struct_return): Removed.
3635 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3637 2003-03-30 Andrew Cagney <cagney@redhat.com>
3639 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3640 * gdbarch.h, gdbarch.c: Regenerate.
3641 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3642 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3643 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3644 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3645 * i386-tdep.c (i386_gdbarch_init): Ditto.
3646 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3647 * cris-tdep.c (cris_gdbarch_init): Ditto.
3648 * vax-tdep.c (vax_gdbarch_init): Ditto.
3649 * s390-tdep.c (s390_gdbarch_init): Ditto.
3650 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3651 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3652 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3653 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3654 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3655 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3656 * sparc-tdep.c (sparc_gdbarch_init): Update.
3657 * sh-tdep.c (sh_gdbarch_init): Update.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3659 * mips-tdep.c (mips_gdbarch_init): Update.
3660 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3661 * ia64-tdep.c (ia64_gdbarch_init): Update.
3662 * frv-tdep.c (frv_gdbarch_init): Update.
3663 * avr-tdep.c (avr_gdbarch_init): Update.
3664 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3665 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3666 instead of when push_dummy_call is not available.
3668 2003-03-30 Andrew Cagney <cagney@redhat.com>
3670 * infttrace.c: Include "gdbthread.h".
3671 (parent_attach_all): Fix function signature.
3672 (call_ptrace): Update call.
3673 * Makefile.in (infttrace.o): Update dependencies.
3675 2003-03-30 Andrew Cagney <cagney@redhat.com>
3677 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3678 PUSH_RETURN_ADDRESS.
3679 * gdbarch.h, gdbarch.c: Regenerate.
3680 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3681 * x86-64-tdep.c (x86_64_init_abi): Update.
3682 * v850-tdep.c (v850_gdbarch_init): Update.
3683 * sparc-tdep.c (sparc_gdbarch_init): Update.
3684 * sh-tdep.c (sh_gdbarch_init): Update.
3685 * s390-tdep.c (s390_gdbarch_init): Update.
3686 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3687 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3688 * mips-tdep.c (mips_gdbarch_init): Update.
3689 * mcore-tdep.c (mcore_gdbarch_init): Update.
3690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3691 * ia64-tdep.c (ia64_gdbarch_init): Update.
3692 * i386-tdep.c (i386_gdbarch_init): Update.
3693 * h8300-tdep.c (h8300_gdbarch_init): Update.
3694 * frv-tdep.c (frv_gdbarch_init): Update.
3695 * cris-tdep.c (cris_gdbarch_init): Update.
3696 * avr-tdep.c (avr_gdbarch_init): Update.
3697 * arm-tdep.c (arm_gdbarch_init): Update.
3698 * valops.c (hand_function_call): Update.
3700 2003-03-29 Andrew Cagney <cagney@redhat.com>
3702 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3703 sizeof_call_dummy_words.
3704 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3706 * gdbarch.h: Regenerate.
3708 2003-03-29 Andrew Cagney <cagney@redhat.com>
3710 * infttrace.h: New file.
3711 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3712 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3713 (hpread_read_doc_function_type): Detect an initialized type1.
3714 (hpread_quick_traverse): Initialize mod_name_string.
3715 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3716 (som_solib_get_solib_by_pc): Declare.
3717 (so_lib_thread_start_addr): Declare.
3718 (no_shared_libraries): Declare.
3719 * somread.c (init_import_symbols): Make static. Add forward
3721 * config/pa/nm-hppah.h: Include "infttrace.h" for
3723 (hppa_insert_hw_watchpoint): Declare.
3724 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3725 * hppah-nat.c: Include "gdb_string.h".
3726 (parent_attach_all): Delete extern declaration, moved to
3728 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3730 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3731 * Makefile.in (infttrace_h): Define.
3732 (hpread.o): Update dependencies.
3733 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3734 * hppa-hpux-tdep.c: Include "gdb_string.h".
3735 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3736 * infrun.c (handle_inferior_event): Always initialize
3737 stepped_after_stopped_by_watchpoint. Add default and remove
3738 fallthrough in switch statement.
3739 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3741 (hppa_remove_hw_watchpoint): Ditto.
3743 2003-03-29 Andrew Cagney <cagney@redhat.com>
3745 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3748 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
3750 * arm-tdep.c (arm_push_arguments): Delete.
3751 (struct stack_item): New type.
3752 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3753 (arm_store_struct_return): Delte.
3754 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3755 arm_push_arguments or arm_store_struct_return.
3757 2003-03-28 Andrew Cagney <cagney@redhat.com>
3759 * Makefile.in (d10v-tdep.o): Update dependencies.
3760 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3761 * d10v-tdep.c: Include "remote.h".
3762 (target_resume_hook): Delete extern declaration.
3763 (target_wait_loop_hook): Ditto.
3764 (tdisassemble_command): Eliminate assignment in "if" conditional.
3765 (d10v_ts2_register_sim_regno): Eliminate call to
3766 legacy_register_sim_regno.
3767 (d10v_ts3_register_sim_regno): Ditto.
3769 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3771 * thread.c: Reindented.
3773 * linux-proc.c: Ditto.
3775 2003-03-28 Bob Rossi <bob_rossi@cox.net>
3777 * MAINTAINERS (write after approval): Add myself.
3779 2003-03-27 Theodore A. Roth <troth@openavr.org>
3781 * objc-exp.y: Add missing semi-colons.
3783 2003-03-27 Andrew Cagney <cagney@redhat.com>
3785 * regcache.c (write_sp): Delete function and references.
3786 * inferior.h (write_sp): Delete declaration.
3787 * valops.c (hand_function_call): Replace write_sp with
3789 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3790 (sparc_pop_frame): Ditto.
3792 2003-03-27 Andrew Cagney <cagney@redhat.com>
3794 * NEWS: Mention removal of support for hppa*-*-bsd* and
3795 hppa*-*-osf* natives, and hppa*-*-pro* target.
3796 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3797 * config/pa/xm-pa.h: Obsolete file.
3798 * config/pa/xm-hppab.h: Obsolete file.
3799 * config/pa/nm-hppab.h: Obsolete file.
3800 * config/pa/tm-hppab.h: Obsolete file.
3801 * config/pa/tm-hppao.h: Obsolete file.
3802 * config/pa/nm-hppao.h: Obsolete file.
3803 * config/pa/tm-pro.h: Obsolete file.
3804 * config/pa/hppaosf.mt: Obsolete file.
3805 * config/pa/hppaosf.mh: Obsolete file.
3806 * config/pa/hppapro.mt: Obsolete file.
3807 * config/pa/hppabsd.mt: Obsolete file.
3808 * config/pa/hppabsd.mh: Obsolete file.
3809 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3810 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3813 2003-03-27 Andrew Cagney <cagney@redhat.com>
3815 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3816 push_arguments. Don't set push_return_address or write_sp.
3817 (d10v_push_dummy_call): Replace d10v_push_arguments.
3818 (d10v_push_return_address, d10v_write_sp): Delete function,
3819 handled by push_dummy_call.
3821 2003-03-26 Andrew Cagney <cagney@redhat.com>
3823 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3824 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3825 regcache and dummy_addr parameters.
3826 * gdbarch.h, gdbarch.c: Re-generate.
3827 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3828 available; assume it will handle stack alignment and return
3829 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3830 legacy_push_arguments.
3831 (legacy_push_arguments): Rename default_push_arguments.
3832 * value.h (legacy_push_arguments): Rename default_push_arguments.
3833 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3834 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3835 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3836 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3837 * config/i386/tm-symmetry.h: Update.
3838 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3839 * x86-64-tdep.c (x86_64_init_abi): Update.
3840 * v850-tdep.c (v850_gdbarch_init): Update.
3841 * sparc-tdep.c (sparc_gdbarch_init): Update.
3842 * sh-tdep.c (sh_gdbarch_init): Update.
3843 * s390-tdep.c (s390_gdbarch_init): Update.
3844 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3845 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3846 * mips-tdep.c (mips_gdbarch_init): Update.
3847 * mcore-tdep.c (mcore_gdbarch_init): Update.
3848 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3849 * ia64-tdep.c (ia64_gdbarch_init): Update.
3850 * i386-tdep.c (i386_gdbarch_init): Update.
3851 * hppa-tdep.c (hppa_gdbarch_init): Update.
3852 * h8300-tdep.c (h8300_gdbarch_init): Update.
3853 * frv-tdep.c (frv_gdbarch_init): Update.
3854 * d10v-tdep.c (d10v_gdbarch_init): Update.
3855 * cris-tdep.c (cris_gdbarch_init): Update.
3856 * avr-tdep.c (avr_gdbarch_init): Update.
3857 * arm-tdep.c (arm_gdbarch_init): Update.
3858 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3859 * alpha-tdep.c (alpha_gdbarch_init): Update.
3861 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3863 * signals/signals.c (do_target_signal_to_host): Correct realtime
3866 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3868 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3869 (struct sal_chain, map_catch_names): Remove.
3870 (catch_exception_command_1): Don't call
3871 handle_gnu_4_16_catch_command.
3873 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3875 From Mark Dettinger <dettinge@de.ibm.com>:
3876 * dwarf2cfi.c (read_2u): Increment pointer by two.
3878 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3880 * signals/signals.c: Fix typos in last change.
3882 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3884 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3885 not already defined. Use __SIGRTMIN if available.
3886 (target_signal_from_host): Remove SIGRTMIN block.
3887 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3888 the signal is within the realtime range.
3890 2003-03-25 Adam Fedor <fedor@gnu.org>
3892 * Makefile.in (infrun.o): Add $(language_h)
3893 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3894 for language specific trampolines.
3895 * language.h (struct language_defn): Add skip_trampoline.
3896 (skip_language_trampoline): Declare.
3897 * language.c (unk_lang_trampoline, skip_language_trampoline):
3899 (unknown_language_defn, auto_language_defn, local_language_defn):
3900 Add ukn_lang_trampoline.
3901 * ada-lang.c (ada_language_defn): Add NULL for language
3902 specific skip_trampoline.
3903 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3904 scm-lang.c: Likewise.
3905 * objc-lang.c (objc_skip_trampoline): New function.
3906 (objc_language_defn): Add objc_skip_trampoline.
3908 2003-03-25 Andrew Cagney <cagney@redhat.com>
3910 * frame.c (get_prev_frame): Delay validating a frame's ID -
3911 non-NULL, didn't go backwards - until an attempt to unwind it to
3914 2003-03-25 Andrew Cagney <cagney@redhat.com>
3916 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3917 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3918 * gdbarch.h, gdbarch.c: Re-generate.
3919 * config/sparc/tm-sparc.h
3920 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3921 * sparc-tdep.c (sparc_gdbarch_init): Set
3922 deprecated_extra_stack_alignment_needed.
3923 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3925 extra_stack_alignment_needed.
3926 * v850-tdep.c (v850_gdbarch_init): Ditto.
3927 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3928 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3929 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3930 * cris-tdep.c (cris_gdbarch_init): Ditto.
3931 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3932 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3934 2003-03-25 Andrew Cagney <cagney@redhat.com>
3936 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3937 STORE_STRUCT_RETURN.
3938 * gdbarch.h, gdbarch.c: Regenerate.
3939 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3940 (d10v_push_arguments): Set the struct return register.
3941 (d10v_gdbarch_init): Update.
3942 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3943 * x86-64-tdep.c (x86_64_init_abi): Update.
3944 * vax-tdep.c (vax_gdbarch_init): Update.
3945 * v850-tdep.c (v850_gdbarch_init): Update.
3946 * sparc-tdep.c (sparc_gdbarch_init): Update.
3947 * sh-tdep.c (sh_gdbarch_init): Update.
3948 * s390-tdep.c (s390_gdbarch_init): Update.
3949 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3950 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3951 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3952 * mips-tdep.c (mips_gdbarch_init): Update.
3953 * mcore-tdep.c (mcore_gdbarch_init): Update.
3954 * m68k-tdep.c (m68k_gdbarch_init): Update.
3955 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3956 * ia64-tdep.c (ia64_gdbarch_init): Update.
3957 * i386-tdep.c (i386_gdbarch_init): Update.
3958 * hppa-tdep.c (hppa_gdbarch_init): Update.
3959 * h8300-tdep.c (h8300_gdbarch_init): Update.
3960 * frv-tdep.c (frv_gdbarch_init): Update.
3961 * cris-tdep.c (cris_gdbarch_init): Update.
3962 * avr-tdep.c (avr_gdbarch_init): Update.
3963 * arm-tdep.c (arm_gdbarch_init): Update.
3964 * alpha-tdep.c (alpha_gdbarch_init): Update.
3966 2003-03-25 Andrew Cagney <cagney@redhat.com>
3968 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3969 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3970 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3971 * gdbarch.h, gdbarch.c: Regenerate.
3972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3973 call_dummy_stack_adjust_p.
3974 * vax-tdep.c (vax_gdbarch_init): Ditto.
3975 * v850-tdep.c (v850_gdbarch_init): Ditto.
3976 * sh-tdep.c (sh_gdbarch_init): Ditto.
3977 * s390-tdep.c (s390_gdbarch_init): Ditto.
3978 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3979 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3980 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3981 * mips-tdep.c (mips_gdbarch_init): Ditto.
3982 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3983 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3984 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3985 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3986 * i386-tdep.c (i386_gdbarch_init): Ditto.
3987 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3988 * frv-tdep.c (frv_gdbarch_init): Ditto.
3989 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3990 * cris-tdep.c (cris_gdbarch_init): Ditto.
3991 * avr-tdep.c (avr_gdbarch_init): Ditto.
3992 * arm-tdep.c (arm_gdbarch_init): Ditto.
3993 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3994 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3995 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3996 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3997 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3998 call_dummy_stack_adjust_p.
3999 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
4000 (CALL_DUMMY_STACK_ADJUST): Delete macro.
4001 * sparc-tdep.c (sparc32_push_arguments): Update.
4002 * valops.c (hand_function_call): Update.
4004 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
4006 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
4007 set_gdbarch_char_signed.
4009 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4012 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
4014 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4016 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
4017 (_initialize_arm_tdep): Don't set tm_print_insn.
4019 2003-03-24 Adam Fedor <fedor@gnu.org>
4021 * Makefile.in (YYOBJ): Add objc-exp.tab.o
4022 * objc-lang.h: Add multiple inclusion protection.
4023 (start_msglist, add_msglist, end_msglist): Additional declarations.
4025 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
4027 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
4028 value was renamed to ARM_FLOAT_SOFT_FPA.
4030 2003-03-23 Andrew Cagney <cagney@redhat.com>
4032 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
4033 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
4034 * gdbarch.h, gdbarch.c: Regenerate.
4035 * valops.c (hand_function_call): Update.
4036 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4037 * frame.c (legacy_saved_regs_this_id): Update.
4038 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
4039 * dummy-frame.h: Update.
4040 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
4041 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4042 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
4043 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
4044 * config/m68k/tm-sun3.h: Update.
4045 * blockframe.c (inside_main_func, frame_chain_valid): Update.
4046 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4047 * x86-64-tdep.c (x86_64_init_abi): Update.
4048 * vax-tdep.c (vax_gdbarch_init): Update.
4049 * v850-tdep.c (v850_gdbarch_init): Update.
4050 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
4051 * sh-tdep.c (sh_gdbarch_init): Update.
4052 * s390-tdep.c (s390_gdbarch_init): Update.
4053 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4054 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
4055 (frame_get_saved_regs): Update.
4056 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4057 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4058 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4059 * mips-tdep.c (mips_gdbarch_init): Update.
4060 * mcore-tdep.c (mcore_gdbarch_init): Update.
4061 * m68k-tdep.c (m68k_gdbarch_init): Update.
4062 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4063 * ia64-tdep.c (ia64_gdbarch_init): Update.
4064 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
4065 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4066 (i386_interix_back_one_frame): Update.
4067 * hppa-tdep.c (hppa_gdbarch_init): Update.
4068 (hppa_init_extra_frame_info): Update.
4069 * h8300-tdep.c (h8300_gdbarch_init): Update.
4070 * frv-tdep.c (frv_gdbarch_init): Update.
4071 * cris-tdep.c (cris_gdbarch_init): Update.
4072 * avr-tdep.c (avr_gdbarch_init): Update.
4073 * arm-tdep.c (arm_gdbarch_init): Update.
4074 * alpha-tdep.c (alpha_gdbarch_init): Update.
4076 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4078 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
4079 (arm_get_fp_model): Declare.
4080 * arm-tdep.c (fp_model_strings): New string array.
4081 (arm_fp_model, current_fp_model): New variables.
4082 (arm_get_fp_model): New function.
4083 (arm_set_fp): New function.
4084 (set_fp_model_sfunc): New function.
4085 (show_fp_model): New function.
4086 (_initialize_arm_tdep): Add new command to set/show the FPU.
4087 (arm_extract_return_value): Use arm_get_fp_model.
4088 (arm_store_return_value): Likewise.
4089 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
4090 to initialize the floating-point data types.
4091 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
4094 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4096 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
4097 the current setting of each value.
4098 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
4099 new_set and new_show. Use add_setshow_cmd_full and
4100 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
4101 commands and add new version as subcommands of "set/show arm".
4103 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4105 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
4106 (set_arm_command, show_arm_command): New functions.
4107 (_initialize_arm_tdep): Add them.
4108 (num_disassembly_options): Renamed from num_flavor_options.
4109 (valid_disassembly_styles): Renamed from valid_flavors.
4110 (disassembly_style): Renamed from disassembly_flavor.
4111 (set_disassembly_style_sfunc): Renamed from
4112 set_disassembly_flavor_sfunc.
4113 (set_disassembly_style): Renamed from set_disassembly_flavor.
4114 (arm_othernames): Updated.
4115 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
4116 command. Add "set/show arm disassembly" commands. Deprecate
4117 "othernames" command.
4119 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4121 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
4122 (arm-tdep.o): Depend on elf_arm_h.
4124 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4126 * Makefile.in (coff_internal_h): Define.
4127 (arm-tdep.o): Update dependencies.
4129 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4131 * arm-tdep.c (prologue_cache): Delete.
4132 (check_prologue_cache, save_prologue_cache): Delete.
4133 (arm_scan_prologue): Don't check or update the prologue_cache.
4134 (arm_gdb_arch_init): Don't initialize it.
4135 (_initialize_arm_tdep): Likewise.
4137 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
4139 * MAINTAINERS (tui): Maintainer of tui code.
4141 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
4143 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
4144 (i386-cygwin-tdep.o): Add dependencies.
4145 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
4146 * i386-cygwin-tdep.c: New file.
4147 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
4148 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
4150 2003-03-20 Andrew Cagney <cagney@redhat.com>
4152 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
4153 (handle_inferior_event): Remove code calling
4154 DYNAMIC_TRAMPOLINE_NEXTPC.
4156 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4157 already has a full path.
4159 * main.c (gdb_main): Return 1.
4160 (captured_main): Call error to report an invalid interpreter.
4162 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4163 * alpha-osf1-tdep.c: Include "gdb_string.h".
4165 2003-03-19 J. Brobecker <brobecker@gnat.com>
4167 Continuing work to convert the hppa targets to multiarch partial.
4169 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
4170 method, now that hppa_push_dummy_frame has a conformant prototype.
4171 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
4172 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
4173 for the switch to multiarch partial.
4175 2003-03-19 Kevin Buettner <kevinb@redhat.com>
4177 * mdebugread.c (parse_symbol): For stEnd, we're done counting
4178 when iss is issNull.
4180 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4182 * mips-tdep.c (mips_register_name): Fix fencepost error involving
4183 NUM_REGS bounds check.
4185 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4187 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
4188 * mips-tdep.c (gdb_assert.h): Include.
4189 (mips_generic_reg_names, mips_processor_reg_names): Make static.
4190 (mips_register_name): Handle integer registers explicitly. Add
4192 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
4193 (mips_lsi33k_reg_names): Don't list integer registers; they're
4194 handled by mips_register_name() now.
4195 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
4196 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
4197 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
4198 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
4199 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
4201 2003-03-18 Andrew Cagney <cagney@redhat.com>
4203 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
4205 * gdbtypes.h (print_scalar_formatted): Update declaration.
4206 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
4208 2003-03-18 J. Brobecker <brobecker@gnat.com>
4210 * infrun.c (observer.h): Add #include.
4211 (normal_stop): Add call to observer_notify_normal_stop.
4212 * Makefile.in (infrun.o): Add dependency on observer.h.
4214 2003-03-18 J. Brobecker <brobecker@gnat.com>
4216 Continuing work to convert the hppa targets to multiarch partial.
4217 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
4218 parameter. Reformat comment.
4219 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
4220 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
4221 to match new profile.
4223 2003-03-18 J. Brobecker <brobecker@gnat.com>
4225 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4226 appear to be working in any case.
4228 2003-03-18 J. Brobecker <brobecker@gnat.com>
4230 * observer.c (observer_test_first_observer): New static variable.
4231 (observer_test_second_observer): Likewise.
4232 (observer_test_third_observer): Likewise.
4233 (observer_test_first_notification_function): New static function.
4234 (observer_test_second_notification_function): Likewise.
4235 (observer_test_third_notification_function): Likewise.
4237 2003-03-17 J. Brobecker <brobecker@gnat.com>
4239 * hppa-tdep.c (gdb_assert.h): Add missing #include.
4240 * somsolib.c (gdb_assert.h): Likewise.
4241 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
4242 (somsolib.o): Likewise.
4244 2003-03-17 Andrew Cagney <cagney@redhat.com>
4246 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
4247 BFD. Simplify setting of di.endian.
4249 2003-03-17 Andrew Cagney <cagney@redhat.com>
4251 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
4252 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
4254 From Elena Zannoni <ezannoni@redhat.com>
4255 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
4256 vector and floating-point parameters.
4257 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
4259 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
4261 2003-03-17 Fernando Nasser <fnasser@redhat.com>
4263 * MAINTAINERS: Remove my name from several maintainership roles.
4265 2003-03-17 Andrew Cagney <cagney@redhat.com>
4267 Fix frame off-by-one bug.
4268 * frame-unwind.h (frame_this_id_ftype): Replace
4269 frame_unwind_id_ftype.
4270 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
4271 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
4272 with "prev_register".
4273 * frame-unwind.c (frame_unwind_find_by_pc): Return
4274 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
4276 * dummy-frame.c (cached_find_dummy_frame): Delete function.
4277 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
4278 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
4279 (dummy_frame_unwind): Update.
4280 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4281 sentinel_frame_register_unwind.
4282 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
4283 (sentinel_frame_unwinder): Update.
4284 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4285 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
4286 * frame.c (create_sentinel_frame): Update. Initialize
4287 "prologue_cache" instead of "unwind_cache".
4288 (frame_register_unwind): Call this frame's prev_register with the
4289 next frame and this frame's prologue cache.
4290 (get_prev_frame): Simplify. Always call prev frame's this_id with
4291 this frame and prev frame's prologue cache. Document that this
4292 call is shifted one to the left when compared to the
4293 frame_register_unwind call.
4294 (legacy_saved_regs_prev_register): Replace
4295 frame_saved_regs_register_unwind.
4296 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
4297 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
4298 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4299 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
4300 (d10v_frame_unwind): Update.
4301 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
4302 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
4303 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
4304 "saved_regs" with "this_saved_regs".
4306 2003-03-16 Andrew Cagney <cagney@redhat.com>
4308 * frame.c (frame_pop): Don't call target_store_registers. Fix
4309 problem reported by Mark Kettenis.
4311 2003-03-16 Mark Kettenis <kettenis@gnu.org>
4313 * i386-tdep.c (i386_register_type): Renamed from
4314 i386_register_virtual_type. Adjust function signature.
4315 (i386_gdbarch_init): Set register_type instead of
4316 deprecated_max_register_raw_size,
4317 deprecated_max_register_virtual_size and register_virtual_type.
4319 2003-03-14 Andrew Cagney <cagney@redhat.com>
4321 * frame.c (get_prev_frame): When a legacy frame, always call
4322 legacy_get_prev_frame. Simplify unwind code using assumption that
4323 the unwinder is new.
4324 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
4325 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
4326 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
4328 2003-03-14 Andrew Cagney <cagney@redhat.com>
4330 * frame.c (get_saved_register): Delete function.
4331 * frame.h (get_saved_register): Delete declaration.
4332 * xstormy16-tdep.c: Update comment.
4333 * regcache.h: Update comments.
4334 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
4335 get_saved_register and extract_address, use
4336 frame_read_unsigned_register.
4337 (sparc_frame_saved_pc): Ditto.
4338 (sparc_get_saved_register): Instead of get_saved_register, use
4340 (sparc_pop_frame): Ditto.
4341 * findvar.c: Update comments.
4342 (value_of_register): Call frame_register instead of
4344 (value_from_register): Ditto.
4345 * config/sparc/tm-sparc.h: Update comment.
4346 * breakpoint.c: Update comment.
4348 2003-03-14 Andrew Cagney <cagney@redhat.com>
4350 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
4352 * gdbarch.h, gdbarch.c: Re-generate.
4353 * frame.h: Update comments.
4354 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4355 * x86-64-tdep.c (x86_64_init_abi): Update.
4356 * sparc-tdep.c (sparc_gdbarch_init): Update.
4357 * sh-tdep.c (sh_gdbarch_init): Update.
4358 * mips-tdep.c (mips_gdbarch_init): Update.
4359 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4360 * cris-tdep.c (cris_gdbarch_init): Update.
4361 * ia64-tdep.c (ia64_gdbarch_init): Update.
4362 * frame.c (frame_register): Update.
4363 (get_saved_register): Update.
4364 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
4366 2003-03-13 Andrew Cagney <cagney@redhat.com>
4368 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
4369 * gdbarch.h, gdbarch.c: Regenerate.
4370 * valops.c (hand_function_call): Update comment.
4371 * stack.c (return_command): Update comment.
4372 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
4373 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
4374 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4375 * x86-64-tdep.c (x86_64_init_abi): Update.
4376 * vax-tdep.c (vax_gdbarch_init): Update.
4377 * v850-tdep.c (v850_gdbarch_init): Update.
4378 * sparc-tdep.c (sparc_gdbarch_init): Update.
4379 * sh-tdep.c (sh_gdbarch_init): Update.
4380 * s390-tdep.c (s390_gdbarch_init): Update.
4381 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4382 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4383 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4384 * mips-tdep.c (mips_gdbarch_init): Update.
4385 * mcore-tdep.c (mcore_gdbarch_init): Update.
4386 * m68k-tdep.c (m68k_gdbarch_init): Update.
4387 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4388 * ia64-tdep.c (ia64_gdbarch_init): Update.
4389 * i386-tdep.c (i386_gdbarch_init): Update.
4390 * hppa-tdep.c (hppa_gdbarch_init): Update.
4391 * h8300-tdep.c (h8300_gdbarch_init): Update.
4392 * frv-tdep.c (frv_gdbarch_init): Update.
4393 * cris-tdep.c (cris_gdbarch_init): Update.
4394 * avr-tdep.c (avr_gdbarch_init): Update.
4395 * arm-tdep.c (arm_gdbarch_init): Update.
4396 * alpha-tdep.c (alpha_gdbarch_init): Update.
4398 2003-03-13 Andrew Cagney <cagney@redhat.com>
4400 * frame.c (legacy_frame_p): New function.
4401 (get_prev_frame): Use legacy_frame_p.
4402 * frame.h (legacy_frame_p): Declare.
4404 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4406 * MAINTAINERS (write after approval): Alphabetically
4409 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4411 * MAINTAINERS (write after approval): Add myself.
4413 2003-03-12 Andrew Cagney <cagney@redhat.com>
4415 * frame.c (get_prev_frame): Rename the frame parameter to
4417 (get_next_frame, legacy_get_prev_frame): Ditto.
4419 2003-03-12 Andrew Cagney <cagney@redhat.com>
4421 * frame.c (get_current_frame): Check target_has_registers before
4422 checking target_has_stack.
4423 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
4424 instead of deprecated_selected_frame.
4425 * findvar.c (value_of_register): Pass "frame", not
4426 deprecated_selected_frame, to value_of_builtin_reg.
4428 2003-03-12 Andrew Cagney <cagney@redhat.com>
4430 * regcache.c (regcache_cooked_write_signed): New function.
4431 (regcache_cooked_write_unsigned): New function.
4432 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
4433 (regcache_cooked_read_signed): Fix regnum in range assertion.
4434 * regcache.h (regcache_cooked_write_signed): Declare.
4435 (regcache_cooked_write_unsigned): Declare.
4437 2003-03-12 Andrew Cagney <cagney@redhat.com>
4439 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4440 * gdbarch.h, gdbarch.c: Re-generate.
4441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4442 * x86-64-tdep.h: Update.
4443 * x86-64-tdep.c (x86_64_init_abi): Update.
4444 * v850-tdep.c (v850_gdbarch_init): Update.
4445 * sparc-tdep.c (sparc_gdbarch_init): Update.
4446 * sh-tdep.c (sh_gdbarch_init): Update.
4447 * s390-tdep.c (s390_gdbarch_init): Update.
4448 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4449 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4450 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4451 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4452 * mips-tdep.c (mips_gdbarch_init): Update.
4453 * mcore-tdep.c (mcore_gdbarch_init): Update.
4454 * m68k-tdep.c (m68k_gdbarch_init): Update.
4455 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4456 * ia64-tdep.c (ia64_gdbarch_init): Update.
4457 * i386-tdep.c (i386_gdbarch_init): Update.
4458 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4459 * hppa-tdep.c (hppa_gdbarch_init): Update.
4460 * h8300-tdep.c (h8300_gdbarch_init): Update.
4461 * frv-tdep.c (frv_gdbarch_init): Update.
4462 * cris-tdep.c (cris_gdbarch_init): Update.
4463 * avr-tdep.c (avr_gdbarch_init): Update.
4464 * arm-tdep.c (arm_gdbarch_init): Update.
4465 * alpha-tdep.c (alpha_gdbarch_init): Update.
4466 * sh-tdep.c (sh_init_extra_frame_info): Update.
4467 (sh64_init_extra_frame_info): Update.
4468 * ns32knbsd-nat.c (frame_num_args): Update.
4469 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4470 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4471 (xstormy16_frame_chain_valid): Update.
4472 * vax-tdep.c (vax_saved_pc_after_call): Update.
4473 * v850-tdep.c (v850_frame_chain): Update.
4474 (v850_pop_frame): Update.
4475 (v850_init_extra_frame_info): Update.
4476 * sparc-tdep.c (setup_arbitrary_frame): Update.
4477 * ns32k-tdep.c (umax_frame_num_args): Update.
4478 * s390-tdep.c (s390_pop_frame_regular): Update.
4479 * mn10300-tdep.c (mn10300_frame_chain): Update.
4480 (mn10300_pop_frame_regular): Update.
4481 (mn10300_init_extra_frame_info): Update.
4482 * mips-tdep.c (mips_init_frame_pc_first): Update.
4483 (mips_frame_chain): Update.
4484 (mips_pop_frame): Update.
4485 * mcore-tdep.c (mcore_frame_chain): Update.
4486 (mcore_pop_frame): Update.
4487 (mcore_init_extra_frame_info): Update.
4488 * arch-utils.c (init_frame_pc_default): Update.
4489 * m68k-tdep.c (isi_frame_num_args): Update.
4490 (delta68_frame_num_args): Update.
4491 (news_frame_num_args): Update.
4492 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4493 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4494 (alpha_frame_chain): Update.
4495 (alpha_pop_frame): Update.
4496 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4497 (hppa_init_extra_frame_info): Update.
4498 (hppa_frame_chain): Update.
4499 (hppa_frame_chain_valid): Update.
4500 * cris-tdep.c (cris_init_extra_frame_info): Update.
4501 * avr-tdep.c (avr_init_extra_frame_info): Update.
4502 * arm-tdep.c (arm_frame_chain_valid): Update.
4503 (arm_init_extra_frame_info): Update.
4504 (arm_pop_frame): Update.
4505 * frame.c (frame_pc_unwind): Update.
4506 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4507 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4508 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4509 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4510 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4511 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4513 2003-03-12 Andrew Cagney <cagney@redhat.com>
4515 Eliminate the need for POP_FRAME.
4516 * frame.c (do_frame_unwind_register): New function.
4517 (frame_pop): When no POP_FRAME, pop the frame using register
4518 unwind and a scratch regcache.
4519 (frame_saved_regs_pop): Delete function.
4520 (trad_frame_unwinder): Update.
4521 * d10v-tdep.c (d10v_frame_pop): Delete function.
4522 (d10v_frame_unwind): Update.
4523 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4524 (sentinel_frame_unwinder): Update.
4525 * dummy-frame.c (dummy_frame_pop): Delete function.
4526 (dummy_frame_unwind): Update.
4527 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4528 (struct frame_unwind): Update.
4530 2003-03-11 Kevin Buettner <kevinb@redhat.com>
4532 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4533 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4534 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4535 Do range checks on register number obtained from debugging info.
4536 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4537 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4538 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4540 (do_fp_register_row): Fix typo which caused double type to be
4541 used when attempting to unpack a float.
4543 2003-03-11 J. Brobecker <brobecker@gnat.com>
4545 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4547 2003-03-11 Andrew Cagney <cagney@redhat.com>
4549 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4550 frame. Problem found by Corinna Vinschen.
4552 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4554 * doublest.c (floatformat_from_length): Accept also
4555 the real size of 'long double' type.
4557 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
4559 From Klee Dienes <kdienes@apple.com>:
4560 * breakpoint.c (bpstat_copy): Copy the command lines as well
4561 as the old value, to match what is freed in bpstat_clear.
4563 2003-03-10 David Carlton <carlton@math.stanford.edu>
4565 * minsyms.c (add_minsym_to_hash_table): Replace
4566 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4567 (compare_minimal_symbols, compact_minimal_symbols)
4568 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4569 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4570 of DEPRECATED_SYMBOL_MATCHES_NAME.
4571 (lookup_minimal_symbol_solib_trampoline): Ditto.
4573 2003-03-10 Andrew Cagney <cagney@redhat.com>
4575 * regcache.h (regcache_cooked_read_ftype): Define.
4576 (regcache_save, regcache_restore): Add a cooked_read parameter.
4577 * regcache.c (regcache_save, regcache_restore): Update.
4578 (do_cooked_read): New function.
4579 (regcache_cpy): Pass do_cooked_read to regcache_save and
4582 2003-03-10 Andrew Cagney <cagney@redhat.com>
4584 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4585 * gdbarch.h, gdbarch.c: Re-generate.
4586 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4587 * x86-64-tdep.h: Update.
4588 * x86-64-tdep.c (x86_64_init_abi): Update.
4589 * v850-tdep.c (v850_gdbarch_init): Update.
4590 * sparc-tdep.c (sparc_gdbarch_init): Update.
4591 * sh-tdep.c (sh_gdbarch_init): Update.
4592 * s390-tdep.c (s390_gdbarch_init): Update.
4593 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4594 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4595 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4596 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4597 * mips-tdep.c (mips_gdbarch_init): Update.
4598 * mcore-tdep.c (mcore_gdbarch_init): Update.
4599 * m68k-tdep.c (m68k_gdbarch_init): Update.
4600 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4601 * ia64-tdep.c (ia64_gdbarch_init): Update.
4602 * i386-tdep.c (i386_gdbarch_init): Update.
4603 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4604 * hppa-tdep.c (hppa_gdbarch_init): Update.
4605 * h8300-tdep.c (h8300_gdbarch_init): Update.
4606 * frv-tdep.c (frv_gdbarch_init): Update.
4607 * cris-tdep.c (cris_gdbarch_init): Update.
4608 * avr-tdep.c (avr_gdbarch_init): Update.
4609 * arm-tdep.c (arm_gdbarch_init): Update.
4610 * alpha-tdep.c (alpha_gdbarch_init): Update.
4611 * sh-tdep.c (sh_init_extra_frame_info): Update.
4612 (sh64_init_extra_frame_info): Update.
4613 * ns32knbsd-nat.c (frame_num_args): Update.
4614 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4615 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4616 (xstormy16_frame_chain_valid): Update.
4617 * vax-tdep.c (vax_saved_pc_after_call): Update.
4618 * v850-tdep.c (v850_frame_chain): Update.
4619 (v850_pop_frame): Update.
4620 (v850_init_extra_frame_info): Update.
4621 * sparc-tdep.c (setup_arbitrary_frame): Update.
4622 * ns32k-tdep.c (umax_frame_num_args): Update.
4623 * s390-tdep.c (s390_pop_frame_regular): Update.
4624 * mn10300-tdep.c (mn10300_frame_chain): Update.
4625 (mn10300_pop_frame_regular): Update.
4626 (mn10300_init_extra_frame_info): Update.
4627 * mips-tdep.c (mips_init_frame_pc_first): Update.
4628 (mips_frame_chain): Update.
4629 (mips_pop_frame): Update.
4630 * mcore-tdep.c (mcore_frame_chain): Update.
4631 (mcore_pop_frame): Update.
4632 (mcore_init_extra_frame_info): Update.
4633 * arch-utils.c (init_frame_pc_default): Update.
4634 * m68k-tdep.c (isi_frame_num_args): Update.
4635 (delta68_frame_num_args): Update.
4636 (news_frame_num_args): Update.
4637 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4638 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4639 (alpha_frame_chain): Update.
4640 (alpha_pop_frame): Update.
4641 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4642 (hppa_init_extra_frame_info): Update.
4643 (hppa_frame_chain): Update.
4644 (hppa_frame_chain_valid): Update.
4645 * cris-tdep.c (cris_init_extra_frame_info): Update.
4646 * avr-tdep.c (avr_init_extra_frame_info): Update.
4647 * arm-tdep.c (arm_frame_chain_valid): Update.
4648 (arm_init_extra_frame_info): Update.
4649 (arm_pop_frame): Update.
4650 * frame.c (frame_pc_unwind): Update.
4651 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4652 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4653 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4654 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4655 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4656 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4658 2003-03-10 Andrew Cagney <cagney@redhat.com>
4660 * gdbarch.sh (gdbarch_unwind_pc): New method.
4661 * gdbarch.h, gdbarch.c: Regenerate.
4662 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4663 but use read_pc and FRAME_SAVED_PC as fall backs.
4664 (frame_saved_regs_pc_unwind): Delete function.
4665 (trad_frame_unwinder): Update.
4666 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4667 (struct frame_unwind): Update.
4668 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4669 (dummy_frame_unwind): Update.
4670 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4671 (sentinel_frame_unwinder): Update.
4672 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4673 (d10v_frame_unwind): Update.
4674 (d10v_unwind_pc): New function.
4675 (d10v_gdbarch_init): Set unwind_pc.
4677 2003-03-10 Andrew Cagney <cagney@redhat.com>
4679 * gdbarch.h: Re-generate.
4681 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4683 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4686 2003-03-08 Mark Kettenis <kettenis@gnu.org>
4688 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4690 2003-03-08 Andrew Cagney <cagney@redhat.com>
4692 * cli-out.c: Update copyright.
4693 (cli_out_data): Define typedef. Use instead of ui_out_data.
4695 2003-03-08 Andrew Cagney <cagney@redhat.com>
4697 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4700 2003-03-07 Andrew Cagney <cagney@redhat.com>
4702 * gdbarch.sh: Don't generate two macro definitions when an
4703 undefined macro taking no arguments.
4704 * gdbarch.h: Regenerate.
4706 2002-03-07 Michal Ludvig <mludvig@suse.cz>
4708 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4709 (x86_64_unwind_dummy_id): New functions.
4710 (x86_64_init_abi): Register these two new functions.
4712 2003-03-07 Michal Ludvig <mludvig@suse.cz>
4714 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4715 (x86_64_skip_prologue): Move prologue detection to
4717 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4719 2003-03-05 Andrew Cagney <cagney@redhat.com>
4721 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4722 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4723 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4724 to use unwind_dummy_id when a dummy frame.
4725 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4727 * gdbarch.h, gdbarch.c: Regneerate.
4729 2003-03-05 Andrew Cagney <cagney@redhat.com>
4731 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4732 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4733 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4736 2003-03-05 Andrew Cagney <cagney@redhat.com>
4738 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4739 (struct d10v_unwind_cache): Delete field "frameless". Replace
4740 "next_addr" with "sp_offset". Add "r11_offset".
4741 (d10v_frame_unwind_cache): Update.
4742 (prologue_find_regs): Update. When "mv r11, sp", save the
4743 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4744 RN was saved in r11_offset.
4746 2003-03-05 Andrew Cagney <cagney@redhat.com>
4748 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4749 cached PC value in the next frame.
4751 2003-03-05 Andrew Cagney <cagney@redhat.com>
4753 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4754 "id_unwind_cache" with "id".
4755 (frame_id_unwind): Delete declaration.
4756 * frame.c (frame_id_unwind): Delete function.
4757 (get_prev_frame): Call the frame id unwind method directly. Store
4758 the returned next frame's ID value in NEXT_FRAME. Note that there
4759 is a problem with the wrong unwind ID being called with the wrong
4762 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4764 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4766 2003-03-05 James Ingham <jingham@apple.com>
4767 Daniel Jacobowitz <drow@mvista.com>
4769 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4770 (auto_cp_abi): New variable.
4771 (current_cp_abi, num_cp_abis): Make static.
4772 (CP_ABI_MAX): Define.
4773 (cp_abis): Turn into an array.
4774 (value_virtual_fn_field): Fix formatting.
4775 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4777 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4778 (list_cp_abis, _initialize_cp_abi): New functions.
4779 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4780 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4781 switch_to_cp_abi. Update prototype for register_cp_abi.
4782 * Makefile.in (cp-abi.o): Update dependencies.
4783 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4784 instead of switch_to_cp_abi.
4785 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4787 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4789 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4791 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4793 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4794 * dwarf2loc.c: Include "regcache.h".
4795 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4797 * Makefile.in (dwarf2loc.o): Update dependencies.
4799 2003-03-04 Theodore A. Roth <troth@openavr.org>
4801 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4802 number of io registers reported by remote target is not a multiple of
4805 2003-03-04 David Carlton <carlton@math.stanford.edu>
4807 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4808 (lookup_symbol_aux_psymtabs): Update call to
4809 lookup_partial_symbol.
4810 (lookup_transparent_type, find_main_psymtab)
4811 (make_symbol_overload_list): Ditto.
4813 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4815 * MAINTAINERS (Write after approval): Update my email address.
4817 2003-03-03 Andrew Cagney <cagney@redhat.com>
4819 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4820 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4821 predicate. Replace MAX_REGISTER_RAW_SIZE.
4822 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4823 MAX_REGISTER_VIRTUAL_SIZE.
4824 * regcache.c (legacy_max_register_raw_size): New function.
4825 (legacy_max_register_virtual_size): New function.
4826 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4827 (MAX_REGISTER_RAW_SIZE): Define.
4828 (legacy_max_register_raw_size): Declare.
4829 (legacy_max_register_virtual_size): Declare.
4830 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4831 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4832 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4833 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4834 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4835 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4836 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4837 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4838 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4839 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4840 * vax-tdep.c (vax_gdbarch_init): Update.
4841 * v850-tdep.c (v850_gdbarch_init): Update.
4842 * sparc-tdep.c (sparc_gdbarch_init): Update.
4843 * sh-tdep.c (sh_gdbarch_init): Update.
4844 * s390-tdep.c (s390_gdbarch_init): Update.
4845 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4846 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4847 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4848 * mips-tdep.c (mips_gdbarch_init): Update.
4849 * mcore-tdep.c (mcore_gdbarch_init): Update.
4850 * m68k-tdep.c (m68k_gdbarch_init): Update.
4851 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4852 * ia64-tdep.c (ia64_gdbarch_init): Update.
4853 * i386-tdep.c (i386_gdbarch_init): Update.
4854 * hppa-tdep.c (hppa_gdbarch_init): Update.
4855 * h8300-tdep.c (h8300_gdbarch_init): Update.
4856 * frv-tdep.c (frv_gdbarch_init): Update.
4857 * cris-tdep.c (cris_gdbarch_init): Update.
4858 * avr-tdep.c (avr_gdbarch_init): Update.
4859 * arm-tdep.c (arm_gdbarch_init): Update.
4860 * alpha-tdep.c (alpha_gdbarch_init): Update.
4861 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4862 max_register_raw_size or max_register_virtual_size.
4864 2003-03-03 David Carlton <carlton@math.stanford.edu>
4866 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4867 SYMBOL_MATCHES_NAME, add comment.
4868 (SYMBOL_MATCHES_NATURAL_NAME): New.
4869 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4870 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4871 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4872 * symtab.c (lookup_partial_symbol): Use
4873 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4875 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4876 SYMBOL_MATCHES_NAME.
4879 2003-03-03 David Carlton <carlton@math.stanford.edu>
4881 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4882 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4883 by regexp matching against SYMBOL_NATURAL_NAME.
4885 2003-03-03 David Carlton <carlton@math.stanford.edu>
4887 * linespec.c (find_method): Extract code into collect_methods.
4888 (collect_methods): New.
4890 2003-03-02 Mark Kettenis <kettenis@gnu.org>
4892 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4895 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4896 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4898 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4900 * arch-utils.c (generic_register_byte): Fix to use the loop index
4901 and not regnum when summing the size of all registers up to regnum.
4903 2003-03-01 Andrew Cagney <cagney@redhat.com>
4905 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4906 FRAME_INIT_SAVED_REGS.
4907 * gdbarch.h, gdbarch.c: Regenerate.
4908 * stack.c (frame_info): Update.
4909 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4910 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4911 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4912 * ns32k-tdep.c (ns32k_pop_frame): Update.
4913 * mips-tdep.c (mips_pop_frame): Update.
4914 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4915 * ia64-tdep.c (ia64_frame_chain): Update.
4916 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4917 (ia64_frameless_function_invocation): Update.
4918 (ia64_init_extra_frame_info): Update.
4919 (ia64_pop_frame_regular): Update.
4920 * frame.h (struct frame_info): Update comment.
4921 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4922 * frame.c (frame_saved_regs_register_unwind): Update.
4923 (frame_saved_regs_register_unwind): Update.
4924 (deprecated_generic_get_saved_register): Update.
4925 * cris-tdep.c: Update comment.
4926 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4928 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4929 * x86-64-tdep.c (x86_64_init_abi): Update.
4930 * vax-tdep.c (vax_gdbarch_init): Update.
4931 * v850-tdep.c (v850_gdbarch_init): Update.
4932 * sparc-tdep.c (sparc_gdbarch_init): Update.
4933 * sh-tdep.c (sh_gdbarch_init): Update.
4934 * s390-tdep.c (s390_gdbarch_init): Update.
4935 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4936 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4937 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4938 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4939 * mips-tdep.c (mips_gdbarch_init): Update.
4940 * mcore-tdep.c (mcore_gdbarch_init): Update.
4941 * m68k-tdep.c (m68k_gdbarch_init): Update.
4942 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4943 * ia64-tdep.c (ia64_gdbarch_init): Update.
4944 * i386-tdep.c (i386_gdbarch_init): Update.
4945 * frv-tdep.c (frv_gdbarch_init): Update.
4946 * avr-tdep.c (avr_gdbarch_init): Update.
4947 * arm-tdep.c (arm_gdbarch_init): Update.
4948 * alpha-tdep.c (alpha_gdbarch_init): Update.
4950 2003-03-01 Andrew Cagney <cagney@redhat.com>
4952 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4953 option enum and switch. When no windows, set the interpreter to
4956 2003-03-01 Andrew Cagney <cagney@redhat.com>
4958 * main.c (captured_main): Replace magic option characters with an
4961 2003-03-01 Andrew Cagney <cagney@redhat.com>
4963 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4964 INIT_EXTRA_FRAME_INFO.
4965 * gdbarch.h, gdbarch.c: Regenerate.
4966 * arm-tdep.c: Update comments.
4967 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4968 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4969 * frame.h, avr-tdep.c: Ditto.
4970 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4971 (create_new_frame, legacy_get_prev_frame): Ditto.
4972 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4973 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4974 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4975 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4976 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4977 * v850-tdep.c (v850_gdbarch_init): Ditto.
4978 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4979 * sh-tdep.c (sh_gdbarch_init): Ditto.
4980 * s390-tdep.c (s390_gdbarch_init): Ditto.
4981 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4982 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4983 * mips-tdep.c (mips_gdbarch_init): Ditto.
4984 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4985 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4986 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4987 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4988 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4989 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4990 * frv-tdep.c (frv_gdbarch_init): Ditto.
4991 * cris-tdep.c (cris_gdbarch_init): Ditto.
4992 * avr-tdep.c (avr_gdbarch_init): Ditto.
4993 * arm-tdep.c (arm_gdbarch_init): Ditto.
4994 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4995 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4997 2003-03-01 Andrew Cagney <cagney@redhat.com>
4999 * gdbarch.sh (register_type): New function with predicate.
5000 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
5001 * gdbarch.h, gdbarch.c: Re-generate.
5002 * arch-utils.c (generic_register_byte): Use generic_register_size.
5003 (generic_register_size): When available, use
5004 gdbarch_register_type.
5005 * regcache.c (init_regcache_descr): When available, initialize the
5006 register type array using gdbarch_register_type. If the
5007 architecture supplies gdbarch_register_type, do not use the legacy
5009 * d10v-tdep.c (d10v_register_type): Replace
5010 d10v_register_virtual_type.
5011 (d10v_gdbarch_init): Set register_type instead of
5012 register_virtual_type.
5014 2003-03-01 Andrew Cagney <cagney@redhat.com>
5016 * Makefile.in (ax-gdb.o): Update dependencies.
5017 * ax-gdb.c: Include "regcache.h".
5018 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
5019 * findvar.c (value_of_register): Ditto.
5020 * infcmd.c (default_print_registers_info): Ditto.
5022 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5024 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
5025 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5027 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5029 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
5032 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
5034 * Makefile.in (dwarf2loc.o): Update dependencies.
5035 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
5036 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
5037 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
5038 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
5039 (locexpr_tracepoint_var_ref): New function.
5040 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
5042 2003-02-28 Andrew Cagney <cagney@redhat.com>
5044 * regcache.c (register_size): New function.
5045 * regcache.h (register_size): Declare
5046 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
5047 max_register_size instead of MAX_REGISTER_RAW_SIZE.
5049 2003-02-28 David Carlton <carlton@math.stanford.edu>
5051 * linespec.c (decode_compound): Extract code into find_method.
5054 2003-02-28 J. Brobecker <brobecker@gnat.com>
5056 * Makefile.in: Add rules to build and link in observer.o.
5058 2003-02-27 J. Brobecker <brobecker@gnat.com>
5060 * observer.c: Minor comments edits.
5062 2003-02-27 J. Brobecker <brobecker@gnat.com>
5064 * observer.h, observer.c: New file.
5066 2003-02-27 Andrew Cagney <cagney@redhat.com>
5068 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
5070 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
5072 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
5073 (M6812_OP_STS_EXT): Likewise.
5074 (m6811_prologue): Use the above to recognize prologue.
5075 (m6812_prologue): Likewise.
5077 2003-02-27 David Carlton <carlton@math.stanford.edu>
5079 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
5081 (compare_psymbols): Ditto.
5082 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5084 2003-02-27 Michael Snyder <msnyder@redhat.com>
5086 * f-lang.c (build_fortran_types): New function.
5087 (_initialize_f_language): Gdbarch-register built-in fortran types.
5088 * doublest.c (extract_floating): Fix warning text.
5090 2003-02-27 Andrew Cagney <cagney@redhat.com>
5092 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
5093 predicate. Replaces PUSH_DUMMY_FRAME.
5094 * gdbarch.h, gdbarch.c: Regnerate.
5095 * valops.c (hand_function_call): Update. Call
5096 generic_push_dummy_frame directly.
5097 * vax-tdep.c (vax_gdbarch_init): Update.
5098 * sparc-tdep.c (sparc_gdbarch_init): Update.
5099 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5100 * m68k-tdep.c (m68k_gdbarch_init): Update.
5101 * hppa-tdep.c (hppa_gdbarch_init): Update.
5102 * alpha-tdep.c (alpha_gdbarch_init): Update.
5103 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5104 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5105 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
5106 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
5107 push_dummy_frame to generic_push_dummy_frame.
5108 * v850-tdep.c (v850_gdbarch_init): Ditto.
5109 * sh-tdep.c (sh_gdbarch_init): Ditto.
5110 * s390-tdep.c (s390_gdbarch_init): Ditto.
5111 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5112 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5113 * mips-tdep.c (mips_gdbarch_init): Ditto.
5114 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5116 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5117 * i386-tdep.c (i386_gdbarch_init): Ditto.
5118 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5119 * frv-tdep.c (frv_gdbarch_init): Ditto.
5120 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5121 * cris-tdep.c (cris_gdbarch_init): Ditto.
5122 * avr-tdep.c (avr_gdbarch_init): Ditto.
5123 * arm-tdep.c (arm_gdbarch_init): Ditto.
5125 2003-02-26 Kevin Buettner <kevinb@redhat.com>
5127 * mips-tdep.c (show_mips_abi): New function.
5128 (_initialize_mips_tdep): Use show_mips_abi() to implement the
5129 command ``show mips abi''.
5131 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
5133 From Elena Zannoni <ezannoni@redhat.com>
5134 * dbxread.c (process_one_symbol): Only record line 0 if one or
5135 more sline entries have been seen for the function.
5137 2003-02-26 Michael Chastain <mec@shout.net>
5139 * configure: Regenerate with autoconf 000227.
5141 2003-02-26 Michael Chastain <mec@shout.net>
5144 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
5145 for old libc5/glibc.
5146 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
5148 2003-02-26 Kris Warkentin <kewarken@qnx.com>
5150 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
5151 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
5153 2003-02-26 Michael Chastain <mec@shout.net>
5155 * configure.in: New variable HAVE_UINTPTR_T.
5156 * configure, config.in: Regenerated.
5158 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
5161 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
5163 2003-02-25 Andrew Cagney <cagney@redhat.com>
5165 * frame.c (get_prev_frame): Add comment on check for
5166 inside_entry_func. Only check for inside_entry_file when not a
5167 dummy and not a sentinel. Check that the new frame is not inner
5170 2003-02-25 Andrew Cagney <cagney@redhat.com>
5172 * frame.c (frame_debug): New variable.
5173 (_initialize_frame): Add "set/show debug frame" command.
5174 (get_prev_frame): When frame_debug, print reason why unwind
5177 2003-02-25 Michael Chastain <mec@shout.net>
5179 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
5180 to avoid uintptr_t definition problems.
5182 2003-02-25 David Carlton <carlton@math.stanford.edu>
5184 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
5185 (SYMBOL_LINKAGE_NAME): Ditto.
5186 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
5187 SYMBOL_LINKAGE_NAME.
5188 (struct general_symbol_info): Expand comment.
5189 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
5190 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
5191 (SYMBOL_MATCHES_REGEXP): Ditto.
5192 * symtab.c (symbol_natural_name): New function.
5193 * objfiles.h: Replace all uses of SYMBOL_NAME by
5194 DEPRECATED_SYMBOL_NAME.
5195 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
5196 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
5197 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
5198 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
5199 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
5200 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
5201 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
5202 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
5203 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
5204 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
5206 * ada-exp.y: Update copyright.
5207 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
5208 * cp-valprint.c: Ditto.
5210 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
5212 * infptrace.c (detach): Do not flag error if ptrace detach fails
5213 and errno is set to ESRCH.
5215 2003-02-24 Andrew Cagney <cagney@redhat.com>
5217 * infptrace.c (udot_info): Change type of udot_off to long. Use
5218 paddr when printing udot_off's value.
5220 2003-02-24 David Carlton <carlton@math.stanford.edu>
5222 * symtab.c (make_symbol_overload_list): Only read in partial
5223 symtabs containing a matching partial symbol.
5225 2003-02-24 David Carlton <carlton@math.stanford.edu>
5227 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
5228 do the comparison, not strcmp.
5229 * symfile.c (compare_psymbols): Ditto.
5230 * defs.h: Declare strcmp_iw_ordered.
5231 * utils.c (strcmp_iw_ordered): New function.
5233 2003-02-24 Jim Blandy <jimb@redhat.com>
5235 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
5236 support, shared libs): Remove my name from here, to better reflect
5239 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5241 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
5242 (target_ops): Add to_have_continuable_watchpoint.
5243 * target.c (update_current_target): Add INHERIT line for
5244 to_have_continuable_watchpoint.
5245 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
5246 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
5247 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
5248 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
5250 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
5252 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
5255 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5257 * solib.c (solib_open): Call target defined search function after
5258 failing with solib-search-path.
5259 * solist.h (target_so_ops): Add find_and_open_solib function hook and
5260 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
5262 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5264 * MAINTAINERS: Add myself to Write After section.
5266 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
5268 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
5270 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
5272 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
5273 (m68hc11_add_reggroups): New function.
5274 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
5275 (m68hc11_gdbarch_init): Install the reggroups.
5276 (_initialize_m68hc11_tdep): Initialize them.
5278 2003-02-21 James E Wilson <wilson@tuliptree.org>
5280 * MAINTAINERS: Update my email address.
5282 2003-02-21 David Carlton <carlton@math.stanford.edu>
5284 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
5286 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
5288 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
5289 * symtab.h: Add opaque declarations of struct axs_value and
5291 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
5292 (struct location_funcs): New type.
5293 (struct symbol): Add "loc" to aux_value.
5294 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
5295 * dwarf2read.c: Include "dwarf2expr.h".
5296 (dwarf2_symbol_mark_computed): New function.
5297 (read_func_scope): Use it.
5298 (var_decode_location): New function.
5299 (new_symbol): Use it.
5300 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
5302 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
5303 (dwarf2expr_h, dwarf2loc_h): New variables.
5304 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
5305 (dwarf2expr.o, dwarf2loc.o): New rules.
5306 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
5307 * buildsym.c (finish_block): Handle LOC_COMPUTED and
5309 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5310 * m2-exp.y (yylex): Likewise.
5311 * printcmd.c (address_info, print_frame_args): Likewise.
5312 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
5313 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5314 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
5315 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
5316 * symtab.c (lookup_block_symbol): Likewise.
5318 2003-02-20 Adam Fedor <fedor@gnu.org>
5320 * symtab.h: Remove objc_specific struct
5321 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
5322 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
5323 Have language_objc use cplus_specific struct.
5325 2003-02-20 Tom Tromey <tromey@redhat.com>
5327 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
5328 TYPE_NAME, when printing a String value. PR java/1075.
5330 2003-02-20 Adam Fedor <fedor@gnu.org>
5332 * objc-lang.h (find_methods): Remove declaration.
5333 * objc-lang.c (find_methods): Make static.
5335 2003-02-20 Christopher Faylor <cgf@redhat.com>
5337 * win32-nat.c (get_image_name): Check return value from
5339 (child_xfer_memory): Ditto.
5341 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5343 * configure.in (TARGET_SYSTEM_ROOT): Set default to
5344 ${exec_prefix}/${target_alias}/sys-root. Match explicit
5345 '${exec_prefix}' (in addition to the expansion thereof) as
5347 * configure: Rebuilt.
5349 2003-02-20 David Carlton <carlton@math.stanford.edu>
5351 * symtab.c (search_symbols): Revert the search_symbols part of my
5352 2002-12-23 patch. Add comment.
5354 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5356 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
5357 * dbxread.c (elfstab_build_psymtabs): Don't call
5358 install_minimal_symbols.
5359 (stabsect_build_psymtabs): Likewise.
5360 * elfread.c (elf_symfile_read): Call install_minimal_symbols
5362 * somread.c (som_symfile_read): Call install_minimal_symbols
5363 and do_cleanups earlier.
5364 * nlmread.c (nlm_symfile_read): Likewise.
5365 * mdebugread.c (elfmdebug_build_psymtabs): Call
5366 install_minimal_symbols and make appropriate cleanups.
5368 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5370 * solib.c (reload_shared_libraries): New function.
5371 (_initialize_solib): Add callbacks for ``set solib-search-path''
5372 and ``set solib-absolute-prefix''.
5374 2003-02-20 David Carlton <carlton@math.stanford.edu>
5376 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
5378 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
5379 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
5380 * ada-typeprint.c (ada_typedef_print): Ditto.
5381 * ax-gdb.c (gen_var_ref): Ditto.
5382 * breakpoint.c (print_one_breakpoint): Ditto.
5383 * buildsym.c (finish_block): Ditto.
5384 * c-valprint.c (c_val_print): Ditto.
5385 * expprint.c (print_subexp): Ditto.
5386 * findvar.c (locate_var_value): Ditto.
5387 * infcmd.c (jump_command): Ditto.
5388 * linespec.c (decode_line_2, decode_compound): Ditto.
5389 * maint.c (maintenance_translate_address): Ditto.
5390 * objc-lang.c (compare_selectors, compare_classes): Ditto.
5391 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
5393 * p-valprint.c (pascal_val_print): Ditto.
5394 * stabsread.c (define_symbol): Ditto.
5395 * stack.c (print_frame, frame_info, print_block_frame_locals)
5396 (print_frame_arg_vars, return_command): Ditto.
5397 * symfile.c (compare_symbols, compare_psymbols): Ditto.
5398 * symmisc.c (print_symbol): Ditto.
5399 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
5400 (compare_search_syms, print_symbol_info, print_msymbol_info)
5401 (rbreak_command): Ditto.
5402 * tracepoint.c (tracepoints_info): Ditto.
5403 * typeprint.c (typedef_print): Ditto.
5404 * valops.c (value_of_variable, hand_function_call): Ditto.
5405 * cli/cli-cmds.c (edit_command, list_command): Ditto.
5406 * ada-typeprint.c: Update Copyright.
5407 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
5408 * tracepoint.c, cli/cli-cmds.c: Ditto.
5410 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5412 * frame.c (generic_unwind_get_saved_register): Make non-static.
5413 * frame.h (generic_unwind_get_saved_register): Declare.
5414 * mips-tdep.c (read_next_frame_reg): Fetch register from
5415 current regcache when frame is NULL.
5416 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
5418 (mips_get_saved_register): Call generic_unwind_get_saved_register()
5419 instead of frame_register_unwind().
5421 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5423 * remote-sim.c (gdbsim_insert_breakpoint)
5424 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
5427 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5429 * remote.c (_initialize_remote): Add commands "set/show remote
5430 hardware-watchpoint-limit" and "set/show remote
5431 hardware-breakpoint-limit".
5432 (remote_hw_watchpoint_limit): Initialize to -1.
5433 (remote_hw_breakpoint_limit): Ditto.
5434 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
5436 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
5438 * coff-pe-read.c: New file - support reading of minimal symbols from a
5439 portable executable using the export table.
5440 * coff-pe-read.h: New file.
5441 * coffread.c: Include coff-pe-read.h.
5442 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
5443 debugging symbols found.
5444 * Makefile.in (SFILES): Add coff-pe-read.o.
5445 (coff_pe_read_h): Define.
5446 (COMMON_OBS): Add coff-pe-read.o.
5447 (coffread.o): Add coff_pe_read_h dependency.
5448 (coff-pe-read.o): New target.
5450 2003-02-19 David Carlton <carlton@math.stanford.edu>
5452 * Makefile.in (SFILES): Add block.c.
5454 (COMMON_OBS): Add block.o.
5456 (x86-64-tdep.o): Add $(block_h).
5457 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5458 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5459 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5460 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5461 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5462 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5463 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5464 * value.h: Add opaque declaration for struct block.
5465 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5466 * ada-lang.h: Ditto.
5467 * x86-64-tdep.c: #include "block.h"
5468 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5469 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5470 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5471 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5472 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5473 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5474 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5475 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5476 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5477 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5478 * symtab.c (block_function): Ditto.
5479 (contained_in): Ditto.
5480 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5481 block.h. Add opaque declaration for struct block.
5482 * symtab.h: Move block_function and contained_in declarations to
5483 block.h. Add opaque declarations for struct block, struct
5485 (struct block): Move to block.h.
5486 (struct blockvector): Ditto.
5487 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5488 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5489 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5490 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5491 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5493 * block.c: New file.
5494 * block.h: New file.
5496 2003-02-19 Theodore A. Roth <troth@openavr.org>
5498 * avr-tdep.c (avr_extract_return_value): Remove function.
5499 (avr_store_return_value): Remove function.
5500 (avr_extract_struct_value_address): Remove function.
5501 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5503 2003-02-19 Andrew Cagney <ac131313@redhat.com>
5505 * rs6000-tdep.c: Include "gdb_assert.h".
5506 (registers_e500): Add "acc" and "spefscr".
5507 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5508 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5509 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5511 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5513 2003-02-18 Keith Seitz <keiths@redhat.com>
5515 * Makefile.in: Add gdbtk-interps.c.
5517 2003-02-18 Kevin Buettner <kevinb@redhat.com>
5519 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5520 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5522 2003-02-18 Andrew Cagney <cagney@redhat.com>
5524 * symtab.h (struct objfile): Add opaque declaration.
5526 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
5528 From Jim Ingham <jingham@apple.com>:
5529 * dbxread.c (process_one_symbol): Use last_function_start rather
5530 than function_start_offset to find the real beginning of the
5531 current function. The latter is just the text section offset on
5532 some systems, the former is always the real function start.
5534 2003-02-17 Andrew Cagney <cagney@redhat.com>
5536 * configure.in: Revert ${target} != ${host}.
5538 2003-02-17 Andrew Cagney <ac131313@redhat.com>
5540 * configure.in (Makefile): Use the test ${target} != ${host},
5541 instead of the absence of the "nm.h" file, to determine of the
5542 configuration non-native.
5543 * configure: Regenerate.
5545 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
5547 From Brian Ford <ford@vss.fsi.com>
5549 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5550 conditionalize tui_active test.
5551 (lookup_cmd_1): Ditto.
5553 2003-02-14 Mark Kettenis <kettenis@gnu.org>
5555 * configure.in: Add check for _etext.
5556 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5558 * config.in, configure: regenerated.
5560 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
5562 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5564 2003-02-14 Andrew Cagney <ac131313@redhat.com>
5566 * main.c (tui_version): Delete variable.
5567 (captured_main): When --tui, set interpreter_p to "tui" instead of
5568 enabling tui_version.
5569 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5571 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5572 * cli/cli-cmds.c (disassemble_command): Ditto.
5573 * defs.h (tui_version): Delete declaration.
5574 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5575 (tui-interp.o): Add rules.
5576 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5578 2003-02-14 Christopher Faylor <cgf@redhat.com>
5580 * win32-nat.c (register_loaded_dll): Correctly set address range for
5583 2003-02-12 Jason Molenda (jmolenda@apple.com)
5585 * symmisc.c (print_objfile_statistics): Include information about
5586 the number of psymtabs and symtabs in each object file.
5588 2003-02-13 Keith R Seitz <keiths@redhat.com>
5590 * main.h (struct captured_main_args): Add interpreter_p.
5591 * main.c (captured_main): Initialize interpreter_p from context.
5592 * gdb.c (main): Set interpreter_p argument.
5593 * Makefile.in (gdb.o): Add dependency for interps.h.
5595 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5597 * event-top.c (cli_command_loop): Delete declaration.
5598 (_initialize_event_loop): Delete function setting event_loop_hook.
5599 * event-top.h (cli_command_loop): Declare. Update copyright.
5600 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5601 * interps.c (current_interp_command_loop): When event_loop_p, call
5604 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5606 * interps.h (interp_command_loop_ftype): Change return type to
5609 2003-02-12 Michal Ludvig <mludvig@suse.cz>
5611 * x86-64-tdep.c (x86_64_extract_return_value)
5612 (x86_64_store_return_value): Use regcache instead of regbuf.
5613 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5614 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5616 2003-02-11 Andrew Cagney <ac131313@redhat.com>
5618 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5619 * aclocal.m4: Regenerate.
5620 * configure: Regenerate.
5622 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5623 TCL_LD_SEARCH_FLAGS.
5625 2003-02-10 Michal Ludvig <mludvig@suse.cz>
5627 * dwarf2cfi.c: Reindented.
5629 2003-02-09 Andrew Cagney <ac131313@redhat.com>
5631 * interps.c (clear_interpreter_hooks): Convert function definition
5634 2003-02-07 David Carlton <carlton@math.stanford.edu>
5636 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5638 2003-02-07 Kevin Buettner <kevinb@redhat.com>
5640 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5641 (struct type): ...to here.
5642 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5644 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5645 (replace_type): Set length on all type variants for a given type.
5647 2003-02-07 Andrew Cagney <ac131313@redhat.com>
5649 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5651 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5653 2003-02-06 Andrew Cagney <ac131313@redhat.com>
5655 * Makefile.in (symm-nat.o): Update dependencies.
5656 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5657 (lynx-nat.o, ia64-linux-nat.): Ditto.
5658 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5659 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5660 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5662 * Makefile.in (inflow_h): Define.
5663 (procfs.o, inflow.o, procfs.o): Update dependencies.
5664 * inftarg.c (child_stop): Delete extern declaration of
5665 inferior_process_group. Include "inflow.h".
5666 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5667 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5668 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5669 (our_process_group, inferior_process_group): Extern declarations.
5671 * procfs.c: Include "gdb_assert.h".
5673 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5674 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5675 * jv-typeprint.c (java_type_print_base): Ditto.
5676 * typeprint.c (typedef_print): Eliminate STREQ.
5677 * cli/cli-script.c (define_command, define_command): Ditto.
5678 * main.c (captured_main): Ditto.
5679 * values.c (lookup_internalvar): Ditto.
5680 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5681 within `if' conditional.
5682 * linespec.c (decode_line_2): Ditto.
5683 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5684 (bfd_openw_with_cleanup): Ditto.
5686 2003-02-07 Mark Kettenis <kettenis@gnu.org>
5688 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5689 legacy_extract_return_value and store_return_value to
5690 legacy_return_value.
5692 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5694 * win32-nat.c (get_relocated_section_addrs): New function. Find
5695 section load addresses for symbol handling in relocated DLLs.
5696 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5698 2003-02-05 Fred Fish <fnf@intrinsity.com>
5700 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5702 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5704 (angel_RDI_info): Ditto.
5705 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5707 (threads_continue_all_with_signals): Ditto.
5709 2003-02-05 Jim Ingham <jingham@apple.com>
5710 Keith Seitz <keiths@redhat.com>
5711 Elena Zannoni <ezannoni@redhat.com>
5712 Andrew Cagney <ac131313@redhat.com>
5714 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5715 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5716 (SUBDIR_MI_OBS): Add "mi-interp.o".
5717 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5718 (SFILES): Add "interps.c".
5719 (COMMON_OBS): Add "interps.o".
5720 (interps_h, mi_main_h): Define.
5721 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5722 (mi-main.o, main.o, event-top.o): Update dependencies.
5723 * cli/cli-interp.c: New file.
5724 * interps.h, interps.c: New files.
5725 * top.c: (gdb_init): Don't install the default interpreter, handed
5727 * main.c: Include "interps.h".
5728 (interpreter_p): Note that it should malloc'ed.
5729 (captured_command_loop): Call current_interp_command_loop.
5730 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5731 xfree and xstrdup when updating interpreter_p. Install the
5732 default interpreter. Add hack to stop mi1's copyright notice
5734 * event-top.h (gdb_setup_readline): Declare.
5735 (gdb_disable_readline): Declare.
5736 * event-top.c: Include "interps.h".
5737 (display_gdb_prompt): Call current_interp_display_prompt_p.
5738 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5739 gdb_stdlog, and gdb_stdtarg.
5740 (_initialize_event_loop): Don't call gdb_setup_readline.
5741 * cli-out.c (cli_out_set_stream): New function.
5742 * cli-out.h (cli_out_set_stream): Declare.
5744 2003-02-06 Mark Kettenis <kettenis@gnu.org>
5746 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5747 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5748 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5749 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5750 config/i386/i386v42mp.mt: Removed.
5752 2003-02-05 Mark Kettenis <kettenis@gnu.org>
5754 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5757 2003-02-05 Michael Chastain <mec@shout.net>
5759 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5760 2.12.1 and earlier versions.
5762 2003-02-05 Andrew Cagney <ac131313@redhat.com>
5764 Remove orphaned hosts, targets and files.
5765 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5766 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5767 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5768 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5769 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5770 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5771 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5772 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5773 * config/sparc/tm-sp64sim.h: Delete.
5774 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5776 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5777 mips*-dec-mach3* targets.
5779 2003-02-04 Michael Chastain <mec@shout.net>
5781 * NEWS: Fix typo: sepcifying -> specifying.
5783 2003-02-04 Michael Chastain <mec@shout.net>
5785 * dwarfread.c: Add documentation on the state of dwarf-1,
5786 looking towards obsoletion.
5788 2003-02-03 Michael Chastain <mec@shout.net>
5790 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5791 gdb/testsuite/gdb.c++/pr-1023.exp.
5793 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5795 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5796 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5798 * utils.c (init_page_info): Delete reference to MPW in comments.
5799 * main.c (captured_main): Delete #ifdef MPW.
5801 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5803 * NEWS: Note that the m32r-*-elf* is obsolete.
5804 * monitor.c (monitor_expect): Obsolete reference to m32r.
5805 * configure.tgt: Mark m32r-*-elf* as obsolete.
5806 * MAINTAINERS: Mark m32k as obsolete.
5807 * m32r-rom.c: Obsolete file.
5808 * config/m32r/m32r.mt: Obsolete file.
5809 * config/m32r/tm-m32r.h: Obsolete file.
5810 * m32r-stub.c: Obsolete file.
5811 * m32r-tdep.c: Obsolete file.
5813 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5815 * NEWS: Mention that the z8k-zilog-none is obsolete.
5816 * MAINTAINERS: Mark z8k as obsolete.
5817 * configure.tgt: Obsolete the z8k-*-coff* target.
5818 * config/z8k/z8k.mt: Obsolete file.
5819 * config/z8k/tm-z8k.h: Obsolete file.
5820 * z8k-tdep.c: Obsolete file.
5822 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5824 * NEWS: Mention that the mn10200-elf is obsolete.
5825 * configure.tgt: Obsolete mn10200-*-* target.
5826 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5827 mention that the mn10200 is obsolete.
5828 * breakpoint.h: Ditto.
5829 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5830 * config/mn10200/mn10200.mt: Obsolete file.
5831 * config/mn10200/tm-mn10200.h: Obsolete file.
5832 * mn10200-tdep.c: Obsolete file.
5834 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5836 * MAINTAINERS: Mark h8500 as obsolete.
5837 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5838 * findvar.c (value_from_register): Ditto.
5839 * h8500-tdep.c: Mark file as obsolete.
5840 * config/h8500/h8500.mt: Ditto.
5841 * config/h8500/tm-h8500.h: Ditto.
5842 * NEWS: Mention that h8500 is obsolete.
5844 2003-02-04 David Carlton <carlton@math.stanford.edu>
5846 * objfiles.c (allocate_objfile): Always set name. Add comment at
5848 * jv-lang.c (get_dynamics_objfile): Add comment.
5850 2003-02-04 David Carlton <carlton@math.stanford.edu>
5852 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5853 * printcmd.c (build_address_symbolic): Replace uses of
5854 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5855 SYMBOL_NAME, and asm_demangle.
5858 2003-02-04 David Carlton <carlton@math.stanford.edu>
5860 * linespec.c (decode_compound): Extract code into
5862 (lookup_prefix_sym): New function.
5864 2003-02-04 David Carlton <carlton@math.stanford.edu>
5866 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5867 FLOAT_COERCION_BADNESS.
5868 * gdbtypes.c (rank_one_type): Replace all uses of
5869 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5871 2003-02-04 Jim Blandy <jimb@redhat.com>
5873 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5874 section, let dwarf_macinfo_section point to it, not
5877 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5879 Pointed out by Anton Blanchard <anton@samba.org>.
5880 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5881 (ppc_linux_at_sigtramp_return_path): Use it.
5883 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5885 * defs.h (streq): Add prototype.
5886 * utils.c (streq): New function.
5888 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5889 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5890 * mdebugread.c (new_symbol): Likewise.
5891 * stabsread.c (define_symbol): Likewise.
5892 * coffread.c (process_coff_symbol): Likewise.
5893 * dwarfread.c (new_symbol): Likewise.
5895 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5896 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5898 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5899 SYMBOL_INIT_DEMANGLED_NAME.
5900 * objfiles.c: Include "hashtab.h".
5901 (allocate_objfile): Call htab_set_functions_ex for the
5902 demangled_names_hash.
5903 (free_objfile): Call htab_delete for the demangled_names_hash.
5904 * objfiles.h (struct htab): Add declaration.
5905 (struct objfile): Add demangled_names_hash.
5906 * symfile.c: Include "hashtab.h".
5907 (reread_symbols): Call htab_delete for the demangled_names_hash.
5908 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5909 SYMBOL_NAME in the bcache.
5910 * symtab.c: Include "hashtab.h". Update comments.
5911 (create_demangled_names_hash, symbol_set_names): New functions.
5912 (symbol_find_demangled_name): New function, broken out from
5913 symbol_init_demangled_names.
5914 (symbol_init_demangled_names): Use it.
5915 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5916 (SYMBOL_SET_NAMES): New macro.
5917 (symbol_set_names): Add prototype.
5919 2003-02-03 Jim Blandy <jimb@redhat.com>
5921 Use a single, consistent representation for an empty minimal
5922 symbol table in an objfile.
5923 * objfiles.c (terminate_minimal_symbol_table): New function.
5924 (allocate_objfile): Call it.
5925 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5926 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5928 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5929 objfile has minimal symbols, compare minimal_symbol_count to zero,
5930 instead of comparing msymbols with NULL.
5931 * objfiles.c (have_minimal_symbols): Same.
5932 * solib-sunos.c (solib_add_common_symbols): Call
5933 terminate_minimal_symbol_table.
5934 * symfile.c (reread_symbols): Same.
5936 2003-02-03 Kevin Buettner <kevinb@redhat.com>
5938 * s390-tdep.c (s390_address_class_type_flags)
5939 (s390_address_class_type_flags_to_name)
5940 (s390_address_class_name_to_type_flags): New functions.
5941 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5942 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5944 2003-02-03 Michael Snyder <msnyder@redhat.com>
5946 * arm-tdep.c: Fix spell-o in comment.
5948 2003-02-03 Michal Ludvig <mludvig@suse.cz>
5950 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5951 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5952 error messages to contain BFD filename.
5954 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
5956 Fix PR gdb/742 gdb/743 gdb/877
5957 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5958 (do_mixed_source_and_assembly): Use
5959 make_cleanup_ui_out_tuple_begin_end and
5960 make_cleanup_ui_out_tuple_begin_end.
5961 (do_mixed_source_and_assembly): Ditto.
5962 * thread.c (do_captured_list_thread_ids): Ditto.
5963 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5964 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5965 ui_out_tuple_end): Delete prototypes.
5966 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5967 ui_out_list_end, ui_out_tuple_end): Delete.
5969 From Kevin Buettner <kevinb@redhat.com>:
5970 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
5971 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5972 (do_cleanup_table_end): New functions.
5973 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5974 Use cleanups to invoke_ui_out_tuple_end().
5975 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
5976 * cli/cli-setshow.c (cmd_show_list): Use
5977 make_cleanup_ui_out_tuple_begin_end.
5979 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5981 * frame.c (frame_unwind_register): New function.
5982 (frame_unwind_unsigned_register): Use.
5983 (frame_unwind_signed_register): Use.
5984 (frame_read_register): New function.
5985 * frame.h (frame_unwind_register): Declare.
5986 (frame_read_register): Declare.
5988 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5989 and frame_unwind_register instead of read_memory, write_register
5990 and deprecated_write_register_bytes.
5992 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5994 * frame.h: Note that namelen can be negative.
5995 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5998 * NEWS: Mention that the d10v's `regs' command is deprecated.
5999 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
6000 (d10v_print_registers_info): New function.
6001 (show_regs): Call d10v_print_registers_info.
6002 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
6004 2003-02-02 Mark Kettenis <kettenis@gnu.org>
6006 * stack.c (print_frame_info): Restore call to annotate_frame_begin
6007 lost in the previous patch.
6009 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6011 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
6012 * stack.c (print_frame_info_base): Output complete FRAME tuple
6013 for synthesized frames.
6015 2003-02-02 Andrew Cagney <ac131313@redhat.com>
6017 * mips-nat.c (zerobuf): Delete.
6018 (fetch_inferior_registers): Alloc local zerobuf.
6019 (fetch_core_registers): Alloc local zerobuf.
6020 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
6021 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
6022 * thread-db.c (thread_db_store_registers): Ditto.
6023 * sh-tdep.c (sh_do_register): Ditto.
6024 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
6025 * remote-sim.c (gdbsim_store_register): Ditto.
6026 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6027 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6028 * monitor.c (monitor_supply_register): Ditto.
6029 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
6030 * mips-nat.c (fetch_inferior_registers): Ditto.
6031 * m68klinux-nat.c (fetch_register): Ditto.
6032 * lynx-nat.c (fetch_inferior_registers): Ditto.
6033 (fetch_inferior_registers): Ditto.
6034 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
6035 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6036 (hpux_thread_store_registers): Ditto.
6037 * hppah-nat.c (fetch_register): Ditto.
6038 * hppab-nat.c (fetch_register): Ditto.
6039 * hppa-tdep.c (pa_register_look_aside): Ditto.
6040 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
6041 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
6043 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6045 * gdbarch.sh: Explictly specify all method levels. When a
6046 variable with an empty level, provide a non-multi-arch default.
6047 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
6048 * gdbarch.h: Re-generate.
6049 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
6050 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
6052 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6054 * defs.h (host_pointer_to_address): Delete declaration.
6055 (address_to_host_pointer): Delete declaration.
6056 * utils.c (host_pointer_to_address): Delete function.
6057 (address_to_host_pointer): Delete function.
6058 * procfs.c (procfs_address_to_host_pointer): New function.
6059 * procfs.c (proc_set_watchpoint): Use.
6060 (procfs_can_use_hw_breakpoint): Update comments.
6061 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
6062 (som_solib_add): Use.
6063 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
6064 * hppa-tdep.c (unwind_command): Use.
6066 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6068 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
6071 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
6072 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
6073 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
6074 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
6075 (define_symbol): Update.
6076 * symfile.c (generic_load): Remove references to nindy.
6077 * symtab.c: Remove references to nindy.
6079 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6081 * infcmd.c (print_float_info): Delete code conditional on
6083 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
6084 * config/m68k/nm-apollo68b.h: Ditto.
6085 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
6086 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
6087 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
6089 2003-02-01 Mark Kettenis <kettenis@gnu.org>
6091 * config/i386/tm-i386os9k.h: Removed.
6093 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
6094 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
6095 they're identical to i[3456]86-*-sysv* now.
6096 * config/i386/i386v32.mh: Removed.
6097 * config/i386/xm-i386v32.h: Removed.
6098 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
6100 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
6102 * config/i386/i386dgux.mh: Removed.
6103 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
6105 * configure.in: Fix typo.
6106 * configure: Regenerated.
6108 2003-01-31 David Carlton <carlton@math.stanford.edu>
6110 * dwarf2read.c (dwarf2_locate_sections): Set
6111 dwarf_ranges_section.
6113 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6115 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
6116 * utils.c: Update comments documenting legitimate uses of PTR.
6118 * utils.c: Re-indent.
6120 * config/djgpp/fnchange.lst: Delete nindy files.
6121 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
6122 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
6123 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
6124 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
6125 * nindy-share/README, nindy-share/Onindy.c: Delete files.
6126 * nindy-tdep.c, nindy-share/Makefile: Delete files.
6127 * Makefile.in (init.c): Remove nindy references.
6128 (saber_gdb): Delete rule.
6129 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
6130 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
6132 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
6133 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
6134 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
6135 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
6137 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
6138 * saber.suppress: Delete file.
6140 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
6142 * dbxread.c (stabs_data): New static variable.
6143 (fill_symbuf): Support an in-memory buffer for stabs data.
6144 (stabs_seek): New function.
6145 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
6146 (read_ofile_symtab): Use stabs_seek.
6147 (elfstab_build_psymtabs): Take an asection* instead of
6148 an offset and size. Relocate the stabs data if necessary.
6149 Save the section* for dbx_psymtab_to_symtab.
6150 * dwarf2read.c: Add section variables for each debug section.
6151 (dwarf2_locate_sections): Fill them in.
6152 (dwarf2_read_section): Take an asection* argument.
6153 Relocate the section contents if necessary.
6154 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
6155 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
6156 it to dwarf2_read_section.
6157 (dwarf2_build_frame_info): Update callers.
6158 * elfread.c (elf_symfile_read): Update call to
6159 elfstab_build_psymtabs.
6160 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
6161 (DBX_STAB_SECTION): New macro.
6162 * stabsread.h (elfstab_build_psymtabs): Update prototype.
6163 * symfile.c (symfile_dummy_outputs): New function.
6164 (symfile_relocate_debug_section): New function.
6165 * symfile.h (symfile_relocate_debug_section): Add prototype.
6167 2003-01-31 Richard Henderson <rth@redhat.com>
6169 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
6170 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
6171 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
6172 * alpha-tdep.c (alpha_register_name): Add "unique".
6173 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
6174 (ALPHA_UNIQUE_REGNUM): New.
6175 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
6177 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6179 * README: Remove reference to Ericsson 1800 monitor.
6180 * Makefile.in (remote-es.o): Delete rule.
6181 (ALLDEPFILES): Delete remote-es.c.
6182 * remote-es.c: Delete file.
6183 * config/m68k/es1800.mt: Delete file.
6184 * config/djgpp/fnchange.lst: Update.
6185 * configure.tgt: Delete m68*-ericsson-* target.
6187 2003-01-31 Adam Fedor <fedor@gnu.org>
6189 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
6190 Remove duplicate/shadowing variable of same name.
6192 2003-01-30 Jim Blandy <jimb@redhat.com>
6194 * symfile.c (find_separate_debug_file): Assert that the objfile's
6195 directory name we compute ends with a slash, and then assume that
6196 that's so everywhere we use it.
6198 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
6200 * valops.c (value_assign): Flush frame cache after stores to memory
6203 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6205 * Makefile.in (mon960-rom.o): Delete rule.
6206 * mon960-rom.c: Delete file.
6208 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6210 * d10v-tdep.c: Include "frame-unwind.h".
6211 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
6213 (next_addr, uses_frame): Delete.
6214 (struct d10v_unwind_cache): Define.
6215 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
6216 Use info instead of next_addr and uses_frame globals.
6217 (d10v_frame_init_saved_regs): Delete function.
6218 (d10v_init_extra_frame_info): Delete function.
6219 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
6220 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
6221 init_frame_pc or frame_saved_pc.
6222 (d10v_pop_frame): Delete function.
6223 (do_d10v_pop_frame): Delete function.
6224 (d10v_frame_chain): Delete function.
6225 (d10v_frame_chain_valid): Delete function.
6226 (d10v_frame_pc_unwind): New function.
6227 (d10v_frame_id_unwind): New function.
6228 (saved_regs_unwinder): New function.
6229 (d10v_frame_register_unwind): New function.
6230 (d10v_frame_pop): New function.
6231 (d10v_frame_unwind): New variable.
6232 (d10v_frame_p): New function.
6233 (d10v_frame_saved_pc): Delete function.
6234 * Makefile.in (d10v-tdep.o): Update dependencies.
6236 2003-01-30 J. Brobecker <brobecker@gnat.com>
6238 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
6239 causing some regressions due to a change in the default value
6242 2003-01-29 Richard Henderson <rth@redhat.com>
6243 Elena Zannoni <ezannoni@redhat.com>
6244 Daniel Jacobowitz <drow@mvista.com>
6247 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
6249 (RANGES_SECTION): New.
6250 (dwarf_ranges_buffer): New variable.
6251 (struct comp_unit_head): Add member "die".
6252 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
6253 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
6254 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
6255 (dwarf2_locate_sections): Likewise.
6256 (dwarf2_build_psymtabs): Read .debug_ranges.
6257 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
6258 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
6259 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
6260 Look for DW_AT_ranges and return the bounding box.
6262 2003-01-29 Brian Ford <ford@vss.fsi.com>
6264 * win32-nat.c (cygwin_pid): Removed as unused.
6265 (child_attach): Try fall back to Cygwin pid.
6267 2003-01-29 Jim Blandy <jimb@redhat.com>
6269 * objfiles.h (struct objfile): Doc fix.
6271 2003-01-29 Andrew Cagney <ac131313@redhat.com>
6273 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
6274 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
6275 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
6276 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
6277 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
6278 (FRAME_SAVED_PC): Change to a function with predicate.
6279 * gdbarch.h, gdbarch.c: Re-generate.
6281 2003-01-28 Andrew Cagney <ac131313@redhat.com>
6283 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
6285 * complaints.c (complain): Delete function.
6286 * complaints.h (struct deprecated_complaint): Delete definition.
6287 (complain): Delete declaration.
6289 2003-01-28 Kevin Buettner <kevinb@redhat.com>
6291 * mips-tdep.c (mips_init_extra_frame_info): Return early for
6294 2003-01-27 Andrew Cagney <ac131313@redhat.com>
6296 * sentinel-frame.h, sentinel-frame.c: New files.
6297 * Makefile.in (frame.o): Update dependencies.
6298 (SFILES): Add sentinel-frame.c.
6299 (sentinel_frame_h): Define.
6300 (COMMON_OBS): Add sentinel-frame.o.
6301 (sentinel-frame.o): Specify dependencies.
6302 * frame.c: Include "sentinel-frame.h".
6303 (frame_register_unwind): Rewrite assuming that there is always a a
6305 (frame_register, generic_unwind_get_saved_register): Ditto.
6306 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
6307 (create_sentinel_frame, unwind_to_current_frame): New functions.
6308 (get_current_frame): Rewrite using create_sentinel_frame and
6309 unwind_to_current_frame. When possible, always create a frame.
6310 (create_new_frame): Set next to the sentinel frame.
6311 (get_next_frame): Rewrite. Don't go below the level 0 frame.
6312 (deprecated_update_frame_pc_hack): Update the next frame's PC and
6313 ID cache when necessary.
6314 (frame_saved_regs_id_unwind): Use frame_relative_level.
6315 (deprecated_generic_get_saved_register): Use frame_relative_level,
6316 get_frame_saved_regs, get_frame_pc, get_frame_base and
6318 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
6321 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6323 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
6325 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6327 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
6328 (maintenance_set_profile_cmd): Use error () instead of warning ().
6330 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6332 * configure.in: Check that -pg works if using --enable-profiling.
6333 Check for monstartup and _mcleanup regardless of --enable-profiling.
6334 * maint.c: Check for monstartup and _mcleanup before using them.
6335 * config.in: Regenerated.
6336 * configure: Regenerated.
6338 2003-01-24 Nick Clifton <nickc@redhat.com>
6342 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
6344 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
6345 (sh2e_show_regs): New.
6346 (sh_gdbarch_init): Handle bfd_mach_sh2e.
6347 * config/sh/tm-sh.h: Added sh2e to comments.
6349 2003-01-23 Jim Blandy <jimb@redhat.com>
6351 * symfile.c (syms_from_objfile): Don't print the "(no debugging
6352 symbols found)" message here; we haven't checked for a separate
6353 debug info file yet, so we don't know yet.
6354 (symbol_file_add_with_addrs_or_offsets): Print it here, after
6355 we've looked everywhere. Also, there's no need to print a special
6356 message when we're loading the separate debug info file: the one
6357 symbol_file_add prints is fine.
6359 2003-01-23 Alexander Larsson <alexl@redhat.com>
6360 Jim Blandy <jimb@redhat.com>
6362 Add support for executables whose debug info has been separated
6363 out into a separate file, leaving only a link behind.
6364 * objfiles.h (struct objfile): New fields: separate_debug_objfile
6365 and separate_debug_objfile_backlink.
6366 (put_objfile_before): New declaration.
6367 * symfile.c: #include "filenames.h".
6368 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
6369 debug info in a separate file, read that, too. Save the addrs
6370 argument, so we can use it again to read the separated debug info;
6371 syms_from_objfile modifies the table we pass it.
6372 (reread_symbols): After re-reading an objfile, call
6373 reread_separate_symbols to refresh its separate debug info
6374 objfile, if it has one.
6375 (reread_separate_symbols, find_separate_debug_file,
6376 get_debug_link_info, separate_debug_file_exists): New functions.
6377 (debug_file_directory): New global var.
6378 (_initialize_symfile): Initialize debug_file_directory, and
6379 provide the new `set debug-file-directory' command to let the user
6381 * objfiles.c (free_objfile): If this objfile has its debug info in
6382 a separate objfile, free that one too. If this is itself a
6383 separate debug info objfile, clear our parent's backlink.
6384 (put_objfile_before): New function.
6385 * utils.c (gnu_debuglink_crc32): New function.
6386 * defs.h (gnu_debuglink_crc32): New declaration.
6387 * Makefile.in (symfile.o): Note dependency on "filenames.h".
6388 * configure.in: Handle --with-separate-debug-dir config option.
6389 * acinclude.m4 (AC_DEFINE_DIR): New macro.
6390 * acconfig.h (DEBUGDIR): New macro.
6391 * configure, aclocal.m4, config.in: Regenerated.
6393 2003-01-22 Jim Blandy <jimb@redhat.com>
6395 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
6396 like the old symbol_file_add, but taking new arguments: you can
6397 now pass in either a `struct section_addr_info' list to say where
6398 each section is loaded, or a `struct section_offsets' table. Pass
6399 these new arguments through to syms_from_objfile as appropriate.
6400 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
6401 with the appropriate quiescent values for the new arguments.
6403 * symfile.c: #include "gdb_assert.h".
6404 (syms_from_objfile): Add the ability to pass in a section offset
6405 table directly, as an alternative to the section_addr_info table.
6406 Document arguments better.
6407 (symbol_file_add): Pass extra arguments to syms_from_objfile.
6408 * symfile.h (syms_from_objfile): Update declaration.
6409 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
6411 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
6413 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
6415 Original patch by Tom Tromey <tromey@cygnus.com> and
6416 Jason Molenda <jmolenda@apple.com>.
6417 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
6418 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
6419 * NEWS: Mention profiling.
6420 * configure.in (--enable-gdbtk): Fix typo.
6421 (--enable-profiling): New. Set PROFILE_CFLAGS.
6422 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
6424 (profiling_state): New variable.
6425 (mcleanup_wrapper): New function.
6426 (_initialize_maint): Remove NOTYET, fix call to
6427 add_setshow_boolean_cmd for "maint set profile".
6428 * configure: Regenerated.
6430 2003-01-21 Martin M. Hunt <hunt@redhat.com>
6432 * Makefile.in (install-gdbtk): Install PNG images too.
6434 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6436 * exec.c (text_start): Delete global variable.
6437 (exec_file_attach): Make text_start local to the function.
6438 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
6439 * valops.c (hand_function_call): Delete code that handles
6440 BEFORE_TEXT_END and AFTER_TEXT_END.
6441 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
6442 of CALL_DUMMY_LOCATION.
6443 * gdbarch.c: Regenerate.
6444 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
6445 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
6446 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
6447 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
6448 (text_end): Delete extern declaration.
6450 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6452 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
6453 * blockframe.c (backtrace_below_main): Move to "frame.c".
6454 (frame_chain_valid): Delete check for backtrace_below_main.
6455 (_initialize_blockframe): Delete initialization, move ``set
6456 backtrace-below-main'' command to "frame.c".
6457 (do_flush_frames_sfunc): Delete function.
6458 * frame.c: Include "command.h" and "gdbcmd.h".
6459 (frame_type_from_pc): New function.
6460 (create_new_frame): Use frame_type_from_pc.
6461 (legacy_get_prev_frame): New function.
6462 (get_prev_frame): Rewrite. When an old style frame, call
6463 legacy_get_prev_frame. Otherwize, unwind the PC first.
6464 (_initialize_frame): Add ``set backtrace-below-main'' command.
6465 * Makefile.in (frame.o): Update dependencies.
6467 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6469 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6470 DEPRECATED_REGISTERS_INFO.
6472 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6474 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6475 Maintainers'. Update `Various Maintainers'.
6477 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6479 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6480 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6481 Suppress actual parameters when `-'.
6482 * gdbarch.h, gdbarch.c: Regenerate.
6484 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6486 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6487 code handling dummy frames.
6489 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6491 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6492 (struct frame_unwind): Add field pop.
6493 * frame.h (frame_pop): Declare.
6494 * frame.c (frame_saved_regs_pop): New function.
6495 (trad_frame_unwinder): Add frame_saved_regs_pop.
6496 (frame_pop): New function.
6497 * dummy-frame.c (dummy_frame_pop): New function.
6498 (discard_innermost_dummy): New function.
6499 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6500 (dummy_frame_unwind): Add dummy_frame_pop.
6501 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6502 * valops.c (hand_function_call): Ditto.
6503 * stack.c (return_command): Ditto.
6505 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6507 * cris-tdep.c: Fix function declaration indentation.
6508 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6509 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6510 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6511 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6512 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6513 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6515 2003-01-18 Michael Chastain <mec@shout.net>
6517 * README (Unpacking and Installation -- quick overview):
6518 Warn against ".../gdb-5.3/gdb/configure".
6520 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6522 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6523 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6524 (struct frame_unwind): Declare opaque.
6525 (dummy_frame_p): Declare function.
6526 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6527 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6528 * dummy-frame.c: Include "frame-unwind.h".
6529 (dummy_frame_p): New function.
6530 (dummy_frame_unwind): New variable.
6531 * frame.c: Include "frame-unwind.h".
6532 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6533 to use the new unwind field.
6534 (set_unwind_by_pc): Delete function.
6535 (create_new_frame, get_prev_frame): Set unwind field using
6536 frame_unwind_find_by_pc.
6537 (trad_frame_unwind, trad_frame_unwinder): New variables.
6538 * frame.h (trad_frame_unwind): Declare variable.
6539 (frame_id_unwind_ftype): Delete declaration.
6540 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6541 (struct frame_unwind): Declare opaque.
6542 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6543 register_unwind with a single unwind pointer.
6544 * frame-unwind.h, frame-unwind.c: New files.
6545 * Makefile.in (SFILES): Add frame-unwind.c.
6546 (frame_unwind_h): Define.
6547 (COMMON_OBS): Add frame-unwind.o.
6548 (frame-unwind.o): Specify dependencies.
6549 (frame.o, dummy-frame.o): Update dependencies.
6551 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6553 * ada-valprint.c: Eliminate PTR.
6554 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6555 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6556 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6557 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6558 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6559 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6560 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6562 2003-01-17 Andrew Cagney <ac131313@redhat.com>
6564 * main.c (captured_main): Don't use PTR.
6565 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6566 * gdbtypes.c (lookup_primitive_typename): Ditto.
6567 (lookup_struct_elt_type): Ditto.
6568 * f-valprint.c (info_common_command): Ditto.
6569 (list_all_visible_commons): Ditto.
6570 * jv-typeprint.c (java_type_print_base): Ditto.
6572 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6573 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6574 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6575 i386-interix-nat.c and i386-interix-tdep.c. Rename
6576 m68klinux-nat.c and m68klinux-tdep.c. Rename
6577 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6578 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6579 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6580 * main.c (captured_main): Use xfree, not free.
6582 2003-01-16 Andrew Cagney <ac131313@redhat.com>
6584 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6585 ID back using a parameter.
6586 * frame.c (frame_id_unwind): Update call.
6587 (frame_saved_regs_id_unwind): Update.
6588 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6589 * dummy-frame.h (struct frame_id): Add opaque declaration.
6590 (dummy_frame_id_unwind): Update declaration.
6592 2003-01-15 Andrew Cagney <ac131313@redhat.com>
6594 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6596 2003-01-15 Stephen P. Smith <ischis2@cox.net>
6598 * MAINTAINERS (Stephen P. Smith): Updated email address.
6600 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
6603 * breakpoint.c (until_break_command): Add new argument. Use it to
6604 decide whether to stop only at the current frame or not.
6605 * breakpoint.h (until_break_command): Update prototype.
6606 * infcmd.c (until_command): Add new argument to until_break_command
6608 (advance_command): New function.
6609 (_initialize_infcmd): Update help string for 'until' command.
6610 Add new 'advance' command.
6612 2003-01-14 David Carlton <carlton@math.stanford.edu>
6614 * linespec.c (decode_line_1): Normalize comments.
6616 (locate_first_half): Ditto.
6617 (decode_compound): Ditto.
6618 (symtab_from_filename): Ditto.
6619 (decode_all_digits): Ditto.
6620 (decode_dollar): Ditto.
6621 (find_methods): Ditto.
6622 (find_toplevel_char): Ditto.
6624 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6626 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6627 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6628 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6629 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6630 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6631 * language.c, language.h, m32r-tdep.c: Update copyright.
6632 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6633 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6634 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6635 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6636 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6637 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6639 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6641 * stabsread.h (process_later, resolve_cfront_continuation):
6643 Update copyright years.
6644 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6645 Update copyright year.
6646 * dbxread.c(struct cont_elem): Obsolete.
6647 (process_later, process_now): Obsolete functions.
6648 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6649 Update copyright year.
6650 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6651 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6652 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6653 (parse_partial_symbols): Obsolete cfront support.
6655 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6657 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6658 read_cfront_baseclasses, read_cfront_member_functions,
6659 resolve_cfront_continuation,read_cfront_static_fields,
6660 copy_cfront_struct_fields): Obsolete functions.
6661 (define_symbol, read_one_struct_field): Obsolete cfront support.
6662 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6663 Update Copyright year.
6665 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6667 * stack.c (print_frame_info, print_stack_frame_base_stub,
6668 print_stack_frame_base, show_and_print_stack_frame_stub,
6669 show_and_print_stack_frame, print_only_stack_frame_stub,
6670 print_only_stack_frame): Delete functions.
6671 (print_stack_frame_stub): Call print_frame_info instead of
6672 print_frame_info_base.
6673 (print_frame_info_base): Rename to print_frame_info.
6674 (backtrace_command_1): Call print_frame_info, instead of
6675 print_frame_info_base.
6676 (current_frame_command): Call print_stack_frame, instead of
6677 print_only_stack_frame.
6678 (frame_command): Call print_stack_frame, instead of
6679 show_and_print_stack_frame.
6680 (up_command): Ditto.
6681 (down_command): Ditto.
6682 * frame.h (print_only_stack_frame): Delete prototype.
6683 * infrun.c (normal_stop): Call print_stack_frame, instead of
6684 show_and_print_stack_frame.
6685 * thread.c (info_threads_command): Call print_stack_frame, instead
6686 of print_only_stack_frame.
6688 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6690 * README (Graphical interface to GDB): Update URL. Point at
6693 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6696 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6698 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6701 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6703 * thread-db.c (attach_thread): Prototype.
6704 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6705 thread information (ti), and valid flags (th_valid, ti_valid).
6706 (attach_thread): Move target_pid_to_str call to after the thread
6707 is added to GDB's list. Initialize the cache.
6708 (thread_get_info_callback, thread_db_map_id2thr)
6709 (thread_db_get_info): New functions.
6710 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6711 (thread_db_store_registers, thread_db_thread_alive)
6712 (thread_db_get_thread_local_address): Use them.
6713 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6714 of calling error() for threads in unknown state.
6716 (clear_lwpid_callback): New function.
6717 (thread_db_resume): Use it to clear the cache.
6719 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6721 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6722 (resume_callback): Remove dead code.
6724 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6726 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6728 * gdbarch.h, gdbarch.c: Regenerate.
6729 * stack.c (frame_info): Only initialize the saved registers when
6730 FRAME_INIT_SAVED_REGS_P.
6731 * frame.c (frame_saved_regs_register_unwind): Assert
6732 FRAME_INIT_SAVED_REGS_P.
6733 (deprecated_generic_get_saved_register): Ditto.
6735 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6737 * source.c (openp): Squelch warning about "filename".
6739 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6741 * source.c (openp): If the file does not exist don't necessarily
6744 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6747 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6748 (integer_types_same_name_p): New function.
6749 (rank_one_type): Use it.
6750 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6752 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6754 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6756 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6757 * configure.in: Add --with-sysroot.
6758 * configure: Regenerated.
6759 * main.c (gdb_sysroot): New variable.
6760 (captured_main): Initialize gdb_sysroot.
6761 * defs.h (gdb_sysroot): New extern declaration.
6762 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6764 2003-01-12 Michael Chastain <mec@shout.net>
6766 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6768 2003-01-12 Michael Chastain <mec@shout.net>
6770 * top.c (print_gdb_version): Bump copyright year to 2003.
6772 2003-01-12 David Carlton <carlton@bactrian.org>
6774 * linespec.c (symtab_from_filename): Rename variable 's' to
6777 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6779 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6781 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6783 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6785 * d10v-tdep.c: Include "gdb_assert.h".
6786 (d10v_store_return_value): Rewrite to match current interface.
6787 (d10v_extract_struct_value_address): Ditto.
6788 (d10v_extract_return_value): Ditto.
6789 (d10v_gdbarch_init): Set store_restore_value,
6790 extract_struct_value_address and extract_return_value.
6792 2003-01-12 J. Brobecker <brobecker@gnat.com>
6794 * hpread.c (set_namestring): New procedure replacing the
6795 SET_NAMESTRING macro.
6796 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6797 by calls to set_namestring.
6799 2003-01-11 J. Brobecker <brobecker@gnat.com>
6801 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6802 a compilation warning.
6803 (hpread_process_one_debug_symbol): Likewise.
6805 2003-01-10 David Carlton <carlton@math.stanford.edu>
6807 * linespec.c (decode_line_1): Rename variable 's' to
6809 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6810 (decode_dollar): Ditto.
6811 (decode_variable): Ditto.
6812 (symbol_found): Ditto.
6814 2003-01-09 Michael Chastain <mec@shout.net>
6816 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6818 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
6820 * win32-nat.c (set_process_privilege): New function.
6821 (child_attach): Call set_process_privilege() to enable the
6822 SE_DEBUG_NAME user privilege if available in process token.
6824 2003-01-10 J. Brobecker <brobecker@gnat.com>
6826 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6827 compilation error in the previous revision.
6829 2003-01-09 David Carlton <carlton@math.stanford.edu>
6831 * linespec.c: Update copyright.
6833 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
6835 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6837 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6839 2003-01-09 Andrew Cagney <ac131313@redhat.com>
6841 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6843 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6844 (frame_saved_regs_zalloc): Update.
6845 (frame_saved_regs_register_unwind): Update.
6846 (create_new_frame): Update.
6847 (get_prev_frame): Update.
6848 (frame_extra_info_zalloc): Update.
6849 (deprecated_get_frame_saved_regs): Update.
6850 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6851 * cris-tdep.c: Update comment.
6853 * somsolib.h: Fix function indentation.
6854 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6855 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6856 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6857 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6858 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6860 * infrun.c (follow_fork): Use ISO C definition.
6861 * expprint.c (print_subexp): Use xfree instead of free.
6862 * charset.c: Include "gdb_string.h" instead of <string.h>.
6863 (register_iconv_charsets): Use ISO C definition.
6864 (host_charset, target_charset): Ditto.
6865 * Makefile.in (charset.o): Update dependencies.
6866 (mi-cmd-env.o): Update dependencies.
6868 2003-01-08 Andrew Cagney <cagney@redhat.com>
6870 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6873 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6875 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6876 build directories. Save edited gdb output in Mbuild.log. If a
6877 build fails, remove any final GDB executable.
6879 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6881 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6882 replacing hex constants with function names and stripping leading
6883 file name directory prefixes.
6885 2003-01-08 Andrew Cagney <cagney@redhat.com>
6887 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6890 2003-01-08 David Carlton <carlton@math.stanford.edu>
6892 * linespec.c (decode_line_1): Move code into decode_variable.
6893 (decode_variable): New function.
6895 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6897 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6899 2003-01-08 Andrew Cagney <cagney@redhat.com>
6901 * cris-tdep.c (cris_frame_init_saved_regs): Use
6902 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6904 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6905 (sh64_nofp_frame_init_saved_regs): Ditto.
6906 (sh_fp_frame_init_saved_regs): Ditto.
6907 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6908 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6909 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6910 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6912 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
6914 * minsyms.c (lookup_minimal_symbol): Update comment.
6915 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6916 (lookup_minimal_symbol_solib_trampoline): Likewise.
6918 2003-01-08 Andrew Cagney <cagney@redhat.com>
6920 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6921 frame_relative_level.
6923 * alpha-tdep.c: Use get_frame_extra_info.
6924 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6925 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6926 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6927 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6929 * alpha-tdep.c: Use get_next_frame.
6930 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6931 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6932 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6933 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6934 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6935 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6936 * xstormy16-tdep.c: Ditto.
6938 2003-01-07 Andrew Cagney <cagney@redhat.com>
6940 * alpha-tdep.c: Use get_frame_base.
6941 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6942 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6943 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6944 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6945 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6946 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6947 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6948 * config/sparc/tm-sparc.h: Ditto.
6950 2003-01-07 Andrew Cagney <cagney@redhat.com>
6952 * frame.c (deprecated_get_frame_context): New function.
6953 (deprecated_set_frame_context): New function.
6954 * frame.h (deprecated_get_frame_context): Declare.
6955 (deprecated_set_frame_context): Declare.
6956 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6957 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6959 2003-01-07 Andrew Cagney <cagney@redhat.com>
6961 * frame.c (deprecated_set_frame_next_hack): New function.
6962 (deprecated_set_frame_prev_hack): New function.
6963 * frame.h (deprecated_set_frame_next_hack): Declare.
6964 (deprecated_set_frame_prev_hack): Declare.
6965 * mcore-tdep.c (analyze_dummy_frame): Use
6966 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6967 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6969 2003-01-07 David Carlton <carlton@math.stanford.edu>
6971 * linespec.c (decode_line_1): Move code into decode_dollar.
6972 (decode_dollar): New function.
6974 2003-01-07 Andrew Cagney <cagney@redhat.com>
6976 * arm-tdep.c (arm_init_extra_frame_info): Use
6977 deprecated_update_frame_base_hack.
6978 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6979 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6980 (fix_frame_pointer): Ditto.
6981 (mn10300_analyze_prologue): Ditto.
6983 2003-01-07 Andrew Cagney <cagney@redhat.com>
6985 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6986 extra_info using frame_extra_info_zalloc.
6987 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6988 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6989 (sh64_init_extra_frame_info): Ditto.
6990 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6991 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6992 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6993 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6994 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6995 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6996 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6997 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6998 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6999 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
7000 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
7001 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
7003 * mn10300-tdep.c (analyze_dummy_frame): Use
7004 deprecated_set_frame_extra_info_hack.
7005 * mcore-tdep.c (analyze_dummy_frame): Ditto.
7007 2003-01-07 J. Brobecker <brobecker@gnat.com>
7009 * mdebugread.c (parse_symbol): Skip stProc entries which storage
7010 class is not scText. These do not define "real" procedures.
7011 (parse_partial_symbols): Likewise.
7013 2003-01-06 Michael Snyder <msnyder@redhat.com>
7015 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
7017 2003-01-06 Andrew Cagney <ac131313@redhat.com>
7019 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
7020 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
7021 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
7022 deprecated_frame_xmalloc_with_cleanup.
7023 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
7024 deprecated_frame_xmalloc.
7025 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
7026 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
7028 2003-01-06 Andrew Cagney <cagney@redhat.com>
7030 * x86-64-linux-tdep.c: Include "osabi.h".
7031 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
7033 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7035 2003-01-06 Andrew Cagney <cagney@redhat.com>
7037 * MAINTAINERS (Target Instruction Set Architectures): Update
7038 arm-elf. Can be built with -Werror, has been multiarched.
7040 * value.h (unpack_long): Make buffer parameter constant.
7041 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
7042 * scm-lang.h (scm_parse): Ditto.
7043 * defs.h (extract_typed_address, extract_address): Ditto.
7044 (extract_long_unsigned_integer): Ditto.
7045 * inferior.h (unsigned_pointer_to_address): Ditto.
7046 (signed_pointer_to_address): Ditto.
7047 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
7048 * gdbarch.h, gdbarch.c: Regenerate.
7049 * findvar.c (extract_long_unsigned_integer): Update.
7050 (extract_address): Update.
7051 (extract_typed_address): Update.
7052 (unsigned_pointer_to_address): Update.
7053 * values.c (unpack_long): Update.
7054 (unpack_double): Update.
7055 (unpack_pointer): Update.
7056 (unpack_field_as_long): Update.
7057 * d10v-tdep.c (d10v_pointer_to_address): Update.
7058 * avr-tdep.c (avr_pointer_to_address): Update.
7059 * scm-lang.c (scm_unpack): Update.
7060 * findvar.c (signed_pointer_to_address): Update.
7062 2003-01-06 Michal Ludvig <mludvig@suse.cz>
7064 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
7065 since it is in i386-tdep.c.
7067 2003-01-06 J. Brobecker <brobecker@gnat.com>
7069 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
7070 failure introduced in the previous change.
7072 2003-01-05 Michael Chastain <mec@shout.net>
7074 * README: Remove references to deleted remote-*.c files:
7075 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
7076 remote-nrom.c, remote-os9k.c, remote-udi.c.
7078 2003-01-05 Mark Kettenis <kettenis@gnu.org>
7080 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
7081 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
7082 i386_get_longjmp_target.
7084 2003-01-05 Andrew Cagney <ac131313@redhat.com>
7086 * arm-tdep.c (prologue_cache): Change to a pointer.
7087 (_initialize_arm_tdep): Allocate prologue_cache.
7088 (check_prologue_cache): Update.
7089 (save_prologue_cache): Update.
7090 (arm_gdbarch_init): Update.
7092 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7094 * stabsread.c (update_method_name_from_physname): Call complaint()
7097 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7099 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
7100 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
7101 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
7103 * blockframe.c: Include "gdbcmd.h" and "command.h".
7104 (backtrace_below_main): New variable.
7105 (file_frame_chain_valid, func_frame_chain_valid)
7106 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
7107 (generic_func_frame_chain_valid): Remove functions.
7108 (frame_chain_valid, do_flush_frames_sfunc): New functions.
7109 (_initialize_blockframe): New function.
7110 * Makefile.in (blockframe.o): Update dependencies.
7111 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
7112 comment. Call frame_chain_valid ().
7113 * frame.h: Remove old prototypes. Add prototype for
7114 frame_chain_valid and update comments to match.
7115 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
7117 * gdbarch.h: Regenerated.
7118 * gdbarch.c: Regenerated.
7120 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7121 set_gdbarch_frame_chain_valid.
7122 * avr-tdep.c (avr_gdbarch_init): Likewise.
7123 * cris-tdep.c (cris_gdbarch_init): Likewise.
7124 * frv-tdep.c (frv_gdbarch_init): Likewise.
7125 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7126 * i386-tdep.c (i386_svr4_init_abi): Likewise.
7127 (i386_nw_init_abi): Likewise.
7128 (i386_gdbarch_init): Likewise.
7129 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
7130 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7131 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7132 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7133 * mips-tdep.c (mips_gdbarch_init): Likewise.
7134 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7135 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
7136 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7137 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7138 * s390-tdep.c (s390_gdbarch_init): Likewise.
7139 * sh-tdep.c (sh_gdbarch_init): Likewise.
7140 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7141 * v850-tdep.c (v850_gdbarch_init): Likewise.
7142 * vax-tdep.c (vax_gdbarch_init): Likewise.
7143 * x86-64-tdep.c (x86_64_init_abi): Likewise.
7145 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
7146 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
7147 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
7148 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
7149 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
7150 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
7151 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
7152 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
7154 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7156 * Makefile.in (acconfig_h): Remove incorrect macro.
7158 (osabi.o): Update dependencies.
7159 * configure.tgt: Set gdb_osabi based on target triplet.
7160 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
7161 * configure: Regenerated.
7162 * config.in: Regenerated.
7163 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
7164 (GDB_OSABI_DEFAULT): Define if not already defined.
7165 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
7166 (set_osabi_string): New variables.
7167 (gdbarch_register_osabi): Add new OS ABI to
7168 gdb_osabi_available_names.
7169 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
7170 (set_osabi, show_osabi): New functions.
7171 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
7173 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7175 * arch-utils.c (gdbarch_info_init): Set osabi to
7176 GDB_OSABI_UNINITIALIZED.
7177 * gdbarch.sh: Add osabi to struct gdbarch and to struct
7178 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
7179 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
7180 * gdbarch.c: Regenerated.
7181 * gdbarch.h: Regenerated.
7182 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
7184 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
7185 * osabi.h (enum gdb_osabi): Move to defs.h.
7186 (gdbarch_init_osabi): Update prototype.
7187 * defs.h (enum gdb_osabi): Moved here.
7188 * Makefile.in: Update dependencies.
7190 * alpha-tdep.h: Don't include "osabi.h".
7191 (struct gdbarch_tdep): Remove osabi member.
7192 * alpha-tdep.c: Include "osabi.h".
7193 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7194 iterate over arches. Update call to gdbarch_init_osabi.
7195 (alpha_dump_tdep): Don't dump osabi.
7196 * alpha-linux-tdep.c: Include "osabi.h".
7197 * alpha-osf1-tdep.c: Include "osabi.h".
7198 * alphafbsd-tdep.c: Include "osabi.h".
7199 * alphanbsd-tdep.c: Include "osabi.h".
7201 * arm-tdep.h: Don't include "osabi.h".
7202 (struct gdbarch_tdep): Remove osabi member.
7203 * arm-tdep.c: Include "osabi.h".
7204 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7205 iterate over arches. Update call to gdbarch_init_osabi.
7206 (arm_dump_tdep): Don't dump osabi.
7207 * arm-linux-tdep.c: Include "osabi.h".
7208 * armnbsd-tdep.c: Include "osabi.h".
7210 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
7211 Update call to gdbarch_init_osabi.
7213 * i386-tdep.h: Don't include "osabi.h".
7214 (struct gdbarch_tdep): Remove osabi member.
7215 * i386-tdep.c: Include "osabi.h".
7216 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7217 iterate over arches. Update call to gdbarch_init_osabi.
7218 (i386_dump_tdep): Don't dump osabi.
7219 * i386-linux-tdep.c: Include "osabi.h".
7220 * i386-sol2-tdep.c: Include "osabi.h".
7221 * i386bsd-tdep.c: Include "osabi.h".
7222 * i386gnu-tdep.c: Include "osabi.h".
7223 * i386ly-tdep.c: Include "osabi.h".
7224 * i386nbsd-tdep.c: Include "osabi.h".
7225 * i386obsd-tdep.c: Include "osabi.h".
7227 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
7228 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7229 check osabi when iterating over arches. Update call to
7231 (mips_dump_tdep): Don't dump osabi.
7233 * ns32k-tdep.h: Don't include "osabi.h".
7234 (struct gdbarch_tdep): Remove.
7235 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
7236 gdbarch_lookup_osabi. Don't iterate over arches. Don't
7237 allocate tdep. Update call to gdbarch_init_osabi.
7238 (ns32k_dump_tdep): Remove.
7239 (_initialize_ns32k_tdep): Update call to gdbarch_register.
7240 * ns32knbsd-tdep.c: Include "osabi.h".
7242 * ppc-tdep.h: Don't include "osabi.h".
7243 (struct gdbarch_tdep): Remove osabi member.
7244 * rs6000-tdep.c: Include "osabi.h".
7245 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
7246 osabi when iterating over arches. Update call to
7248 (rs6000_dump_tdep): Don't dump osabi.
7249 * ppc-linux-tdep.c: Include "osabi.h".
7250 * ppcnbsd-tdep.c: Include "osabi.h".
7252 * sh-tdep.h: Don't include "osabi.h".
7253 (struct gdbarch_tdep): Remove osabi member.
7254 * sh-tdep.c: Include "osabi.h".
7255 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7256 iterate over arches. Update call to gdbarch_init_osabi.
7257 (sh_dump_tdep): Don't dump osabi.
7258 * shnbsd-tdep.c: Include "osabi.h".
7260 * sparc-tdep.c: Include "osabi.h".
7261 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7262 iterate over arches. Update call to gdbarch_init_osabi.
7263 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
7266 * vax-tdep.h: Don't include "osabi.h".
7267 (struct gdbarch_tdep): Remove.
7268 * vax-tdep.c: Include "osabi.h".
7269 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7270 iterate over arches. Don't allocate tdep. Update call
7271 to gdbarch_init_osabi.
7272 (vax_dump_tdep): Remove.
7273 (_initialize_vax_tdep): Update call to gdbarch_register.
7275 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7277 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
7279 (breakpoint_re_set_one): Don't fetch the value for a disabled
7282 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7284 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
7285 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
7286 (COERCE_FLOAT_TO_DOUBLE): Remove.
7287 * gdbarch.c: Regenerate.
7288 * gdbarch.h: Regenerate.
7289 * Makefile.in: Remove value_h from gdbarch_h.
7290 * valops.c (coerce_float_to_double): New variable.
7291 (default_coerce_float_to_double): Remove.
7292 (standard_coerce_float_to_double): Remove.
7293 (value_arg_coerce): Use coerce_float_to_double.
7294 (_initialize_valops): Add "set coerce-float-to-double".
7295 * value.h (default_coerce_float_to_double): Remove prototype.
7296 (standard_coerce_float_to_double): Remove prototype.
7298 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
7300 * mdebugread.c (parse_symbol): Likewise.
7301 * stabsread.c (define_symbol): Mark all functions as prototyped.
7303 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
7304 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
7305 set_gdbarch_coerce_float_to_double.
7306 * arm-tdep.c (arm_gdbarch_init): Likewise.
7307 * frv-tdep.c (frv_gdbarch_init): Likewise.
7308 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
7309 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
7310 * mips-tdep.c (mips_gdbarch_init): Likewise.
7311 (mips_coerce_float_to_double): Remove.
7312 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7313 (rs6000_coerce_float_to_double): Remove.
7314 * s390-tdep.c (s390_gdbarch_init): Likewise.
7315 * sh-tdep.c (sh_gdbarch_init): Likewise.
7316 (sh_coerce_float_to_double): Remove.
7317 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7318 (sparc_coerce_float_to_double): Remove.
7319 * v850-tdep.c (v850_gdbarch_init): Likewise.
7320 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7321 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7322 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
7323 (hppa_coerce_float_to_double): Remove prototype.
7324 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7326 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7328 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
7330 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7332 Suggested by Stewart Brown <sb24@avaya.com>:
7333 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
7334 in recursive calls. Handle TYPE_CODE_TYPEDEF.
7335 (c_type_print_varspec_suffix): Likewise.
7337 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7339 * configure.in: Don't set and AC_SUBST SUBDIRS.
7340 * configure: Regenerated.
7342 * configure.in: Remove code dealing with shared libraries.
7343 * Makefile.in: Remove HLDFLAGS and HLDENV.
7344 * configure: Regenerated.
7346 2003-01-04 Andrew Cagney <ac131313@redhat.com>
7348 * frame.c (deprecated_frame_xmalloc): New function.
7349 (deprecated_set_frame_saved_regs_hack): New function.
7350 (deprecated_set_frame_extra_info_hack): New function.
7351 * frame.h (deprecated_frame_xmalloc): Declare.
7352 (deprecated_set_frame_saved_regs_hack): Declare.
7353 (deprecated_set_frame_extra_info_hack): Declare.
7355 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7357 * configure.in: Move code that provides the --enable-gdbtk option
7358 right after the code that handles the --enable-tui option, and
7360 * configure: Regenerated.
7362 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
7363 AC_CHECK_FUNCS and remove the old check for pread64.
7364 * acinclude.m4 (AC_GNU_SOURCE): New macro.
7365 * acconfig.h (_GNU_SOURCE): Add.
7366 (HAVE_PREAD64): Remove.
7367 * configure, aclocal.m4, config.in: Regenerated.
7369 2003-01-03 Andrew Cagney <ac131313@redhat.com>
7371 * alpha-tdep.c: Use get_frame_saved_regs.
7372 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7373 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7374 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
7375 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
7376 * vax-tdep.c, xstormy16-tdep.c: Ditto.
7378 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7380 * configure.in: Remove all use of the SUBDIRS variable; add
7381 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
7382 code providing the --enable-multi-ice option, and move it right in
7383 front of the code that checks whether gdbserver is supported.
7385 * configure: Regenerated.
7386 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
7389 2003-01-03 Andrew Cagney <cagney@redhat.com>
7391 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
7392 * avr-tdep.c, cris-tdep.c: Ditto.
7393 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7394 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7396 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7398 * configure.in: Remove --enable-netrom option.
7399 * configure: Regenerated.
7401 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7403 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
7404 declaration for `struct re_pattern_buffer' instead.
7405 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
7407 2003-01-03 J. Brobecker <brobecker@gnat.com>
7409 * mdebugread.c (parse_symbol): Count until the stEnd matching
7412 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7414 * configure.in: Remove --with-cpu option.
7415 subscripts. Remove evil changequotes here.
7416 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
7417 * config.in, configure: Regenerated.
7419 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
7420 * configure.in: Cleanup section that sources GDB and BFD configure
7421 subscripts. Remove evil changequotes here.
7422 * config.in, configure: Regenerated.
7424 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7426 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
7427 frame accessor methods.
7428 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7429 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7430 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
7431 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
7432 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7433 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7434 * z8k-tdep.c: Ditto.
7436 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7438 * configure.in: Remove UI_OUT configuration code.
7439 * ada-lang.c: Update assuming UI_OUT is always true.
7440 * Makefile.in (UIOUT_CFLAGS): Remove.
7441 * configure: Regenerated.
7442 * TODO: Remove blurb about elimination of -DUI_OUT.
7444 * configure.in: Move code that provides the --enable-gdbcli,
7445 --enable-gdbmi options right before the code that handles the
7446 --enable-tui option. Polish a bit.
7447 * configure: Regenerated.
7449 * configure.in: Rewrite check for GNU regex and the
7450 --without-included regex option, and move it into the "Checks for
7451 library functions" section. This makes us use the system regex
7452 again by default on systems with version 2 of the GNU C library.
7453 This was apparently broken.
7454 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
7455 * acconfig.h (USE_INCLUDED_REGEX): Remove.
7456 * config.in, configure: Regenerated.
7458 * configure.in: Move code that provides the --enable-tui option
7459 before the "Checks for libraries" section. Polish the code
7460 somewhat and set need_curses to yes if we build the TUI. Rewrite
7461 code that looks for a library providing termcap functionality to
7462 match more closely what's done in the Readline library, and move
7463 it into to the "Checks for libraries" section.
7464 * configure: Regenerated.
7465 * Makefile.in (TERMCAP): Remove variable.
7466 * config/i386/go32.mh (TERMCAP): Remove variable.
7468 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7470 * MAINTAINERS: Mention gdb_mbuild.sh.
7471 * gdb_mbuild.sh: Rewrite.
7473 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7475 * configure.in: Fix typo in last change.
7476 * config.in, configure: Regenerated.
7478 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7480 * valarith.c (value_binop): Delete obsolete code and comments.
7481 * configure.host: Ditto.
7482 * buildsym.h (make_blockvector): Ditto.
7483 * buildsym.c (make_blockvector): Ditto.
7484 * defs.h (enum language): Ditto.
7485 (chill_demangle): Ditto.
7486 * elfread.c (elf_symtab_read): Ditto.
7487 * dwarfread.c (CHILL_PRODUCER): Ditto.
7488 (set_cu_language): Ditto.
7489 (handle_producer): Ditto.
7490 * expprint.c (print_subexp): Ditto.
7491 * gdbtypes.c (chill_varying_type): Ditto.
7492 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7493 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7494 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7495 (chill_varying_type): Ditto.
7496 * language.h (_LANG_chill): Ditto.
7497 * language.c (binop_result_type, integral_type): Ditto.
7498 (character_type, string_type, structured_type): Ditto.
7499 (lang_bool_type, binop_type_check): Ditto.
7500 * stabsread.h (os9k_stabs): Ditto.
7501 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7502 (define_symbol, read_type, read_struct_fields): Ditto.
7503 (read_array_type, read_enum_type, read_huge_number): Ditto.
7504 (read_range_type, start_stabs): Ditto.
7505 * symfile.c (init_filename_language_table): Ditto.
7506 (add_psymbol_with_dem_name_to_list): Ditto.
7507 * symtab.c (symbol_init_language_specific): Ditto.
7508 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7509 * symtab.h (struct general_symbol_info): Ditto.
7510 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7511 * typeprint.c (typedef_print): Ditto.
7512 * utils.c (fprintf_symbol_filtered): Ditto.
7513 * valops.c (value_cast, search_struct_field, value_slice): Delete
7515 (varying_to_slice): Delete function.
7516 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7517 (varying_to_slice): Delete declaration.
7518 * MAINTAINERS: Update.
7520 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7522 * configure.in: Reorganize "Checks for library functions section"
7523 a bit. Remove check for `btowc' and `isascii' functions.
7524 * configure: Regenerated.
7526 * acconfig.h (_MSE_INT_H): Remove.
7527 * configure.in: Create "Checks for header files" section, and move
7528 appropriate tests there. Don't check for objlist.h, wchar.h,
7529 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7530 misdetection fix. Also add "Checks for types", "Checks for
7531 compiler characteristics" and "Checks for library functions"
7533 * config.in, configure: Regenerated.
7535 * configure.in: Create "Checks for programs" section, and move
7536 appropriate tests there.
7538 2003-01-01 Mark Kettenis <kettenis@gnu.org>
7540 * configure.in: Create "Checks for libraries" section, and move
7541 appropriate tests there. Cleanup check for wctype in libw. Use
7542 AC_SEARCH_LIBS to see whether we need libsocket.
7543 * configure: Regenerated.
7545 For older changes see ChangeLog-2002
7551 version-control: never