1 2003-06-07 Adam Fedor <fedor@gnu.org>
3 * gdb/objc-lang.c (FETCH_ARGUMENT): Remove macro.
4 (OBJC_FETCH_POINTER_ARGUMENT): Shorthand macro for
5 using FETCH_POINTER_ARGUMENT with Objective-C method arguments.
6 (find_implementation, resolve_msgsend, resolve_msgsend_stret,
7 resolve_msgsend_super, resolve_msgsend_super_stret):
10 2003-06-07 Andrew Cagney <cagney@redhat.com>
12 * symfile.h: Re-indent, clean up comments.
14 2003-06-07 Andrew Cagney <cagney@redhat.com>
16 * inferior.h (deprecated_write_sp): Replace
17 generic_target_write_sp.
18 * regcache.c (deprecated_write_sp): Replace
19 generic_target_write_sp.
20 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
21 * vax-tdep.c (vax_gdbarch_init): Update.
22 * v850-tdep.c (v850_gdbarch_init): Update.
23 * sparc-tdep.c (sparc_gdbarch_init): Update.
24 * sh-tdep.c (sh_gdbarch_init): Update.
25 * s390-tdep.c (s390_gdbarch_init): Update.
26 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
27 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
28 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
29 * mcore-tdep.c (mcore_gdbarch_init): Update.
30 * m68k-tdep.c (m68k_gdbarch_init): Update.
31 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
32 * ia64-tdep.c (ia64_gdbarch_init): Update.
33 * h8300-tdep.c (h8300_gdbarch_init): Update.
34 * frv-tdep.c (frv_gdbarch_init): Update.
35 * cris-tdep.c (cris_gdbarch_init): Update.
36 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Update.
38 2003-06-07 Andrew Cagney <cagney@redhat.com>
40 * dwarf2-frame.c (dwarf2_frame_cache): Add comments on PC_REGNUM.
41 Assert that PC_REGNUM is valid.
42 (dwarf2_frame_prev_register): Add comments on SP_REGNUM.
44 2003-06-07 Andrew Cagney <cagney@redhat.com>
46 * gdbarch.sh (TARGET_READ_SP): Add predicate, delete default.
47 * gdbarch.h, gdbarch.c: Regenerate.
48 * mn10300-tdep.c: Include "gdb_assert.h".
49 (mn10300_read_fp): New function.
50 (mn10300_gdbarch_init): Set deprecated_target_read_fp to
51 mn10300_read_fp. Do not set read_sp to generic_target_read_sp.
52 * ia64-tdep.c: Include "gdb_assert.h".
53 (ia64_read_fp): New function.
54 (ia64_gdbarch_init): Set deprecated_target_read_fp to
55 ia64_read_sp. Do not set read_sp to generic_target_read_sp.
56 * regcache.c (generic_target_read_sp): Delete function.
57 (read_sp): Try TARGET_READ_SP and SP_REGNUM for the SP register.
58 * inferior.h (generic_target_read_sp): Delete declaration.
59 * frv-tdep.c (frv_gdbarch_init): Do not set read_sp to
60 generic_target_read_sp.
61 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
62 * sparc-tdep.c (sparc_gdbarch_init): Ditto
63 * sh-tdep.c (sh_gdbarch_init): Ditto.
64 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
65 * Makefile.in (mn10300-tdep.o, ia64-tdep.o): Update dependencies.
67 2003-06-07 Andrew Cagney <cagney@redhat.com>
69 * gdbarch.sh: Comment each field of startup_gdbarch.
70 * gdbarch.h, gdbarch.c: Re-generate.
72 2003-06-07 Andrew Cagney <cagney@redhat.com>
74 * gdbarch.sh (TARGET_READ_PC): Add predicate, remove default.
75 * gdbarch.h, gdbarch.c: Re-generate.
76 * regcache.c: Update comments on read_pc et.al.
77 (generic_target_read_pc): Delete function.
78 (read_pc_pid): Try TARGET_READ_PC and PC_REGNUM for a PC register.
79 * inferior.h (generic_target_read_pc): Delete declaration.
80 * frv-tdep.c (frv_gdbarch_init): Do not set read_pc to
81 generic_target_read_pc.
82 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
83 * sh-tdep.c (sh_gdbarch_init): Ditto.
84 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
85 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
87 2003-06-07 Andrew Cagney <cagney@redhat.com>
89 * elfread.c (elf_symtab_read): Replace "special_local_sym_p" and
90 "index" with "special_local_sect". Use strcmp instead of STREQ.
91 Append period to coments.
93 2003-06-06 Mark Mitchell <mark@codesourcery.com>
95 * elfread.c (elf_symtab_read): Avoid use of SECT_OFF_MAX.
96 (elfstab_offset_sections): Likewise.
97 * gdb-stabs.h (stab_section_info): Likewise.
98 * i386-interix-tdep.c (pei_adjust_objfile_offsets): Likewise.
99 * objfiles.c (objfile_relocate): Likewise.
100 * pa64solib.c (pa64_solib_add_solib_objfile): Likewise.
101 * remote.c (get_offsets): Likewise.
102 (remote_cisco_objfile_relocate): Likewise.
103 * somread.c (som_symfile_offsets): Likewise.
104 * symfile.c (alloc_section_addr_info): New function.
105 (build_section_addr_info_from_section_tab): Use it.
106 (free_section_addr_info): Adjust.
107 (default_symfile_offsets): Avoid use of SECT_OFF_MAX.
108 (syms_from_objfile): Allocate local_addr dynamically.
109 (symbol_file_add_with_addrs_or_offsets): Allocate orig_addrs
111 (add_symbol_file_command): Allocate sect_opts dynamically.
112 (reread_symbols): Avoid use of SECT_OFF_MAX.
113 * symfile.h (section_addr_info): Do not use MAX_SECTIONS.
114 (alloc_section_addr_info): Declare it.
115 * symtab.h (SIZEOF_SECTION_OFFSETS): Remove.
116 * win32-nat.c (solib_symbols_add): Allocate section_addrs
118 * xcoffread.c (xcoff_symfile_offsets): Avoid use of SECT_OFF_MAX.
120 2003-06-06 Andrew Cagney <cagney@redhat.com>
122 * d10v-tdep.c (struct d10v_unwind_cache): Delete "return_pc".
123 (d10v_frame_unwind_cache): Do not set "return_pc".
125 2003-06-06 Michael Snyder <msnyder@redhat.com>
127 * h8300-tdep.c: Make tidy (long lines).
129 2003-06-06 Michal Ludvig <mludvig@suse.cz>
131 * x86-64-tdep.c (x86_64_fill_fxsave): Pass correct regnums
132 to regcache_collect().
134 2003-06-05 J. Brobecker <brobecker@gnat.com>
136 * hppa-hpux-tdep.c (hppa_hpux_init_abi): New function, setting
137 pc_in_sigtramp multiarch method.
138 (hppa_hpux_som_init_abi): Use it.
139 (hppa_hpux_elf_init_abi): Likewise.
140 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Remove, now that this
141 macro has been multiarched.
142 * config/pa/tm-hppa64.h (PC_IN_SIGTRAMP): Temporarily set this
143 macro here, as hppa64 isn't multiarched yet.
145 2003-06-05 Andrew Cagney <cagney@redhat.com>
147 * Makefile.in (value_h): Add $(frame_h).
148 * value.h: Include "frame.h".
149 (struct value): Replace "frame_addr" with "frame_id".
150 (VALUE_FRAME_ID): Replace VALUE_FRAME.
151 * values.c (allocate_value): Use VALUE_FRAME_ID.
152 (value_copy): Use VALUE_FRAME_ID.
153 * findvar.c (value_from_register): Use VALUE_FRAME_ID.
154 * valops.c (value_assign): Update. Use frame_find_by_id.
156 2003-06-05 Michal Ludvig <mludvig@suse.cz>
158 * x86-64-tdep.c (x86_64_push_arguments): Don't clear offset
161 2003-06-05 Jeff Johnston <jjohnstn@redhat.com>
163 * thread-db.c (check_event): For create/death event breakpoints,
164 loop through all messages to ensure that we read the message
165 corresponding to the breakpoint we are at.
167 2003-06-04 Michael Snyder <msnyder@redhat.com>
169 * h8300-tdep.c (h8300_gdbarch_init): Add h8300hn, h8300sn.
171 2003-06-04 Mark Kettenis <kettenis@gnu.org>
173 * dwarf2-frame.c (struct comp_unit): Add member `dbase'.
174 (read_encoded_value): Handle DW_EH_PE_datarel encoding.
175 (dwarf2_build_frame_info): Set base for DW_EH_PE_datarel encodings
176 when handling .eh_frame sections.
178 2003-06-04 J. Brobecker <brobecker@gnat.com>
180 * config/pa/nm-hppah.h (PREPARE_TO_PROCEED): Use the generic
181 prepare_to_proceed procedure instead of the hppa-specific one.
182 * hppa-tdep.c (hppa_prepare_to_proceed): Remove, no longer used.
184 2003-06-04 Jeff Johnston <jjohnstn@redhat.com>
186 * acconfig.h: Add HAVE_TKILL_SYSCALL definition check.
187 * config.in: Regenerated.
188 * configure.in: Add test for syscall function and check for
189 __NR_tkill macro in <syscall.h> to set HAVE_TKILL_SYSCALL.
190 * configure: Regenerated.
191 * lin-lwp.c [HAVE_TKILL_SYSCALL]: Include <unistd.h> and
193 (kill_lwp): New function that uses tkill syscall or
194 uses kill, depending on whether threading model is nptl or not.
195 All callers of kill() changed to use kill_lwp().
196 (lin_lwp_wait): Make special check when WIFEXITED occurs to
197 see if all threads have already exited in the nptl model.
198 (stop_and_resume_callback): New callback function used by the
199 lin_lwp_wait thread exit handling code.
200 (stop_wait_callback): Check for threads already having exited and
201 delete such threads fromt the lwp list when discovered.
202 (stop_callback): Don't assert retcode of kill call.
204 Roland McGrath <roland@redhat.com>
205 * i386-linux-nat.c (ps_get_thread_area): New function needed by
208 2003-06-03 Richard Henderson <rth@redhat.com>
210 * alpha-tdep.c (alpha_next_pc): Use alpha_read_insn.
211 (alpha_sigtramp_frame_this_id): Use get_frame_memory.
212 (alpha_sigtramp_frame_prev_register): Likewise.
213 (alpha_heuristic_frame_prev_register): Likewise.
214 * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Likewise.
216 * alpha-mdebug-tdep.c (alpha_mdebug_after_prologue): Use
217 alpha-specific register id names.
218 (alpha_mdebug_frame_unwind_cache): Likewise.
219 (alpha_mdebug_frame_prev_register): Likewise.
221 2003-06-03 Richard Henderson <rth@redhat.com>
223 * alpha-tdep.c (alpha_dwarf2_init_abi): New.
224 * alpha-tdep.h (alpha_dwarf2_init_abi): Declare it.
225 * alpha-linux-tdep.c (alpha_linux_init_abi): Use it.
226 * alphafbsd-tdep.c (alphafbsd_init_abi): Register dwarf2 and mdebug
228 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
229 * config/alpha/fbsd.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
230 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
232 * alpha-linux-tdep.c: Remove unnecessary includes.
233 * Makefile.in (alpha-linux-tdep.o): Update.
235 2003-06-03 Richard Henderson <rth@redhat.com>
237 * alphabsd-tdep.c (alphabsd_supply_fpreg): Fix typo last change.
238 (alphabsd_fill_fpreg): Likewise.
240 2003-06-03 J. Brobecker <brobecker@gnat.com>
242 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr): Replace
243 references to struct frame_info fields by calls to the equivalent
244 accessors. Necessary now that frame_info is opaque.
246 2003-06-03 J. Brobecker <brobecker@gnat.com>
248 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
249 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
250 structure, field no longer exists.
252 2003-06-03 J. Brobecker <brobecker@gnat.com>
254 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
255 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
257 2003-06-03 J. Brobecker <brobecker@gnat.com>
259 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
260 references to struct frame_info fields by calls to the equivalent
261 accessors. Necessary now that frame_info is opaque.
263 2003-06-03 J. Brobecker <brobecker@gnat.com>
265 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
266 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
267 structure, field no longer exists.
269 2003-06-03 Theodore A. Roth <troth@openavr.org>
271 * remote.c (init_remote_state): Compute sizeof_g_packet by
272 accumulation of the size of all registers instead of blindly using
273 DEPRECATED_REGISTER_BYTES.
275 2003-06-03 Michael Snyder <msnyder@redhat.com>
277 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
278 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
281 2003-06-03 J. Brobecker <brobecker@gnat.com>
283 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
284 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
286 2003-06-03 Andrew Cagney <cagney@redhat.com>
288 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
289 (sparc_convert_to_raw): Delete function.
290 (sparc_gdbarch_init): Do not set register_convert_to_raw or
291 register_convert_to_virtual.
293 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
295 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
296 layer if not dealing with a statically-linked threaded program.
298 2003-06-03 Kris Warkentin <kewarken@qnx.com>
300 * solib.c (solib_open): Update comment to reflect actual search order.
302 2003-06-03 Andrew Cagney <cagney@redhat.com>
304 * frame.c (get_frame_memory_signed): New function.
305 (get_frame_memory, get_frame_memory_unsigned): New function.
306 (get_frame_arch): New function.
307 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
308 (get_frame_memory, get_frame_unsigned_memory): Declare.
309 * d10v-tdep.c (d10v_frame_unwind_cache): Use
310 get_frame_memory_unsigned and get_frame_arch.
311 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
313 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
315 * MAINTAINERS (write after approval): Add myself.
317 2003-06-03 Jim Blandy <jimb@redhat.com>
319 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
320 elements of gregset_t are 64 bits each, but access registers
321 are still 32 bits, so they're packed two per gregset_t
322 element. Unpack/pack them properly.
324 2003-06-02 David Carlton <carlton@bactrian.org>
326 * linespec.c (find_methods): Break out code into
327 add_matching_methods and add_constructors.
328 (add_matching_methods): New.
329 (add_constructors): Ditto.
331 2003-06-02 Andrew Cagney <cagney@redhat.com>
333 * sparc-tdep.c (sparc_print_registers): Delete call to
334 REGISTER_CONVERTIBLE.
335 (sparc_gdbarch_init): Do not set register_convertible.
336 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
337 * frv-tdep.c (frv_gdbarch_init): Ditto.
338 * cris-tdep.c (cris_gdbarch_init): Ditto.
340 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
342 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
343 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
344 (syms_from_objfile): Ditto.
346 2003-06-03 Andreas Schwab <schwab@suse.de>
348 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
349 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
351 2003-06-02 Richard Henderson <rth@redhat.com>
353 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
354 a member of all_reggroup.
356 2003-06-02 Richard Henderson <rth@redhat.com>
358 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
359 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
360 (alpha_lds, alpha_sts): New.
361 (alpha_convert_register_p): Change from _register_convertible.
362 (alpha_register_to_value): Change from _convert_to_virtual;
363 restructure and fail for type sizes other than 4 or 8.
364 (alpha_value_to_register): Similarly.
365 (alpha_extract_return_value): Use alpha_sts.
366 (alpha_store_return_value): Use alpha_lds.
367 (alpha_gdbarch_init): Update hooks.
369 2003-06-02 Richard Henderson <rth@redhat.com>
371 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
373 (alpha_sigtramp_register_address): Likewise.
375 2003-06-02 Richard Henderson <rth@redhat.com>
377 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
378 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
379 * alpha-tdep.h: Declare them.
381 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
382 Remove zerobuf. Don't error on UNIQUE.
383 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
384 (ALPHA_REGSET_UNIQUE): Provide default.
385 (supply_gregset): Use alpha_supply_int_regs.
386 (fill_gregset): Use alpha_fill_int_regs.
387 (supply_fpregset): Use alpha_supply_fp_regs.
388 (fill_fpregset): Use alpha_fill_fp_regs.
389 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
390 (alphabsd_supply_reg): Use alpha_supply_int_regs.
391 (alphabsd_fill_reg): Use alpha_fill_int_regs.
392 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
393 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
394 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
396 2003-06-02 Richard Henderson <rth@redhat.com>
398 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
400 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
401 (alpha_store_return_value): Likewise.
403 2003-06-02 David Carlton <carlton@math.stanford.edu>
405 * block.c (contained_in): Add 'const' to arguments.
406 (block_function): Ditto.
407 * block.h: Update declarations for block_function and
410 2003-06-02 David Carlton <carlton@math.stanford.edu>
412 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
413 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
414 * p-valprint.c (pascal_val_print): Ditto.
415 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
417 2003-06-02 Richard Henderson <rth@redhat.com>
419 * alpha-tdep.c (alpha_push_dummy_call): Use
420 builtin_type_ieee_double_little instead of builtin_type_double.
422 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
423 sign-extension of 32-bit values.
424 (alpha_store_return_value): Similarly.
426 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
427 (alpha_extract_return_value): Likewise.
428 (alpha_store_return_value): Likewise.
430 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
431 (alpha_store_return_value): Error on IEEE Quad floats.
433 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
434 (alpha_extract_struct_value_address): Likewise.
435 (alpha_store_return_value): Likewise.
436 (alpha_store_struct_return): Remove.
437 (alpha_gdbarch_init): Update hook registration to match.
439 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
440 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
441 macros where appropriate.
442 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
443 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
445 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
446 for SP, GP; void_func_ptr for PC; non-language-specific types
448 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
450 2003-06-02 Richard Henderson <rth@redhat.com>
452 * top.h (lim_at_start): Declare.
453 * main.c (captured_main): Set it.
454 * top.c (lim_at_start): Define.
455 (command_loop): Use it instead of &environ.
456 * event-top.c (command_handler): Likewise.
458 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
460 * mipsnbsd-tdep.c: Update copyright years.
461 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
463 2003-06-01 Richard Henderson <rth@redhat.com>
465 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
466 (alpha-linux-tdep.o): Update dependencies.
467 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
468 * alpha-mdebug-tdep.c: Remove unneeded includes.
470 2003-06-01 Richard Henderson <rth@redhat.com>
472 * alpha-tdep.c (alpha_register_reggroup_p): New.
473 (alpha_gdbarch_init): Register it.
475 2003-06-02 Andrew Cagney <cagney@redhat.com>
477 * dwarfread.c: Eliminate "register"
478 (decode_die_type): Eliminate assignment within "if".
479 (struct_type, decode_array_element_type): Ditto.
480 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
481 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
482 (decode_modified_type, completedieinfo): Ditto.
483 * block.c: Eliminate "register".
484 (blockvector_for_pc_sect): Eliminate assignment within "if".
485 * cp-support.h (struct symbol): Opaque declaration.
486 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
488 2003-06-01 Richard Henderson <rth@redhat.com>
490 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
491 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
493 2003-06-01 Adam Fedor <fedor@gnu.org>
495 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
496 * gdbarch.[ch]: Regenerate.
497 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
498 (hppa_gdbarch_init): Set it in the gdbarch vector.
499 * i386-tdep.c (i386_fetch_pointer_argument): New
500 (i386_gdbarch_init): Set it into gdbarch.
501 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
502 (rs6000_gdbarch_init): Set it in gdbarch.
503 * sparc-tdep.c (sparc_fetch_pointer_argument): New
504 (sparc_gdbarch_init): Set it in gdbarch.
506 2003-06-01 Andrew Cagney <cagney@redhat.com>
508 * defs.h (extract_address): Delete declaration.
509 * findvar.c (extract_address): Delete function.
510 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
511 extract_address with the inline equivalent,
512 extract_unsigned_integer.
513 (xstormy16_extract_struct_value_address): Ditto.
514 (xstormy16_pointer_to_address): Ditto.
515 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
516 * v850-tdep.c (v850_push_arguments): Ditto.
517 (v850_extract_return_value): Ditto.
518 (v850_extract_struct_value_address): Ditto.
519 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
520 (sparcnbsd_get_longjmp_target_64): Ditto.
521 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
522 (get_longjmp_target): Ditto.
523 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
524 (sh64_extract_struct_value_address): Ditto.
525 (sh_push_arguments): Ditto.
526 (sh64_push_arguments): Ditto.
527 * remote-vxsparc.c (vx_read_register): Ditto.
528 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
529 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
530 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
531 * mipsv4-nat.c (get_longjmp_target): Ditto.
532 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
533 * mips-nat.c (get_longjmp_target): Ditto.
534 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
535 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
536 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
537 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
538 * irix5-nat.c (get_longjmp_target): Ditto.
539 * irix4-nat.c (get_longjmp_target): Ditto.
540 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
541 (ia64_push_arguments): Ditto.
542 * hpux-thread.c (hpux_thread_store_registers): Ditto.
543 * h8300-tdep.c (h8300_push_arguments): Ditto.
544 (h8300_store_return_value): Ditto.
545 (h8300_extract_struct_value_address): Ditto.
546 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
547 (frv_push_arguments): Ditto.
548 * avr-tdep.c (avr_pointer_to_address): Ditto.
549 (avr_push_arguments): Ditto.
550 * arm-tdep.c (arm_push_dummy_call): Ditto.
551 (arm_get_longjmp_target): Ditto.
552 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
553 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
554 (alpha_get_longjmp_target): Ditto.
556 * solib-irix.c (extract_mips_address): Inline extract_address,
557 replacing it with extract_signed_integer.
558 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
559 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
560 (first_link_map_member, open_symbol_file_object): Ditto.
561 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
562 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
563 (LM_NEXT, LM_NAME): Ditto.
565 2003-06-01 Richard Henderson <rth@redhat.com>
567 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
568 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
569 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
570 (alpha_cannot_store_register): Likewise.
571 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
572 * alpha-nat.c (supply_gregset): Likewise.
573 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
575 2003-06-01 Andrew Cagney <cagney@redhat.com>
577 * infcall.c (call_function_by_hand): Update comment on
578 DEPRECATED_DUMMY_WRITE_SP.
580 * mips-tdep.c (mips_gdbarch_init): Do not set
581 deprecated_dummy_write_sp.
582 (mips_eabi_push_dummy_call): Set the SP register.
583 (mips_o64_push_dummy_call): Set the SP register.
584 (mips_o32_push_dummy_call): Set the SP register.
585 (mips_n32n64_push_dummy_call): Set the SP register.
587 2003-06-01 Richard Henderson <rth@redhat.com>
589 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
590 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
591 (supply_gregset): Likewise.
592 * alpha-tdep.c (alpha_store_return_value): Likewise.
593 (alpha_get_longjmp_target): Likewise.
594 (alpha_register_name): Constify array.
595 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
596 deprecated_register_size, deprecated_register_bytes,
597 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
598 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
599 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
601 2003-06-01 Richard Henderson <rth@redhat.com>
603 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
604 from arg_reg_buffer to regcache to avoid double conversion.
606 2003-06-01 Mark Kettenis <kettenis@gnu.org>
608 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
610 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
611 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
613 2003-06-01 Richard Henderson <rth@redhat.com>
615 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
616 (decode_frame_entry): Set it. Skip FDE augmentation.
618 2003-06-01 Richard Henderson <rth@redhat.com>
620 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
621 not overlapping PC_REGNUM.
623 2003-06-01 Richard Henderson <rth@redhat.com>
625 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
626 alpha_push_arguments. Don't dump argument register data to
627 the target stack. Fix float and 128-bit long double semantics.
628 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
629 (alpha_fix_call_dummy): Remove.
630 (alpha_call_dummy_words): Remove.
631 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
633 2003-06-01 Richard Henderson <rth@redhat.com>
635 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
637 2003-06-01 Andrew Cagney <cagney@redhat.com>
639 * mips-tdep.c (is_mips16_addr): New function.
640 (make_mips16_addr, unmake_mips16_addr): New functions.
641 (pc_is_mips16, mips_fetch_instruction): Use.
642 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
643 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
644 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
645 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
647 * config/mips/tm-mips.h: Update copyright.
648 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
649 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
650 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
651 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
652 (TM_PRINT_INSN_MACH): Delete.
653 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
655 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
656 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
657 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
658 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
659 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
660 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
661 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
662 mips*-*-riscos* and mips*-*-sysv* onto mips.
663 * config/mips/mips64.mt: New file.
664 * config/mips/mips.mt: New file.
665 * config/mips/littlemips.mt: Delete file.
666 * config/mips/decstation.mt: Delete file.
667 * config/mips/vr4300el.mt: Delete file.
668 * config/mips/vr5000el.mt: Delete file.
669 * config/mips/vr5000.mt: Delete file.
670 * config/mips/vr4100.mt: Delete file.
671 * config/mips/vr4xxxel.mt: Delete file.
672 * config/mips/vr4300.mt: Delete file.
673 * config/mips/vr4xxx.mt: Delete file.
674 * config/mips/bigmips.mt: Delete file.
675 * config/mips/bigmips64.mt: Delete file.
676 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
677 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
678 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
679 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
680 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
682 * config/mips/tm-irix3.h: Ditto.
683 * config/mips/tm-mipsv4.h: Ditto.
684 * config/mips/tm-embed.h: Ditto.
685 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
687 * config/mips/tm-vr5000el.h: Delete file.
688 * config/mips/tm-tx39l.h: Delete file.
689 * config/mips/tm-vr4300el.h: Delete file.
690 * config/mips/tm-vr4xxxel.h: Delete file.
691 * config/mips/tm-vr4300.h: Delete file.
692 * config/mips/tm-vr4100.h: Delete file.
693 * config/mips/tm-vr4xxx.h: Delete file.
694 * config/mips/tm-vr5000.h: Delete file.
695 * config/mips/tm-embedl64.h: Delete file.
696 * config/mips/tm-embedl.h: Delete file.
697 * config/mips/tm-embed64.h: Delete file.
698 * config/mips/tm-bigmips64.h: Delete file.
699 * config/mips/tm-bigmips.h: Delete file.
701 2003-06-01 Mark Kettenis <kettenis@gnu.org>
704 * shnbsd-nat.c: Include "sh-tdep.h".
706 From Richard Henderson <rth@redhat.com>:
707 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
709 2003-05-31 Andrew Cagney <cagney@redhat.com>
711 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
713 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
714 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
715 (mips_find_saved_regs): Use set_reg_offset.
716 (mips_frame_init_saved_regs): Delete function.
717 (mips_pop_frame): Call mips_find_saved_regs instead of
718 DEPRECATED_FRAME_INIT_SAVED_REGS.
720 2003-05-31 Andrew Cagney <cagney@redhat.com>
722 * mips-tdep.c (mips_gdbarch_init): Do not set
723 deprecated_max_register_raw_size, register_virtual_size, and
724 deprecated_max_register_virtual_size.
726 2003-05-31 Mark Kettenis <kettenis@gnu.org>
728 * i386-tdep.c: Include "dwarf2-frame.h".
729 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
730 * Makefile.in (i386-tdep.o): Update dependencies.
732 * dwarf2-frame.c, dwarf2-frame.h: New files.
733 * Makefile.in (SFILES): Add dwarf2-frame.c.
734 (dwarf2_frame_h): Define.
735 (COMMON_OBS): Add dwarf2-frame.o.
736 (dwarf2-frame.o): Add dependencies.
738 2003-05-31 Andreas Jaeger <aj@suse.de>
740 * x86-64-linux-nat.c: Fix comment.
742 2003-05-31 Mark Kettenis <kettenis@gnu.org>
744 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
747 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
748 have a sigcontext_addr handler.
749 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
750 sigcontext_addr handler.
752 2003-05-31 Andrew Cagney <cagney@redhat.com>
754 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
755 (print_fp_register_row): Replace do_fp_register_row.
756 (mips_print_fp_register): Add "file" and "frame" parameters.
757 (mips_print_register): Add "file" and "frame" parameters.
758 (mips_print_registers_info): Replace mips_do_registers_info.
759 (mips_gdbarch_init): Set print_registers_info instead of
760 deprecated_do_registers_info.
761 (mips_read_fp_register_single): Add "frame" parameter.
762 (mips_read_fp_register_double): Add "frame" parameter.
764 2003-05-31 Mark Kettenis <kettenis@gnu.org>
766 * i386-tdep.c (i386_register_name): Check for MMX registers first.
767 Fixes a bug where GDB would print the wrong register names for
770 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
771 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
774 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
775 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
776 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
779 From Michal Ludvig <mludvig@suse.cz>:
780 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
782 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
783 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
784 I386_ST0_REGNUM): Move here from...
785 * i386-tdep.c: ... here.
786 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
787 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
788 registers if possible.
789 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
790 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
792 (i386bsd_sc_reg_offset): New variable.
793 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
794 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
796 (i386fbsd_sc_reg_offset): New variable.
797 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
799 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
801 (i386fbsd4_sc_reg_offset): New variable.
802 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
803 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
805 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
806 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
807 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
809 (i386nbsd_sc_reg_offset): New variable.
810 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
811 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
813 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
815 (i386obsd_sc_reg_offset): New variable.
816 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
817 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
819 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
820 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
821 for frame pointer offset in `struct sigcontext'.
823 2003-05-31 Andrew Cagney <cagney@redhat.com>
825 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
826 architecture methods call_dummy_words, sizeof_call_dummy_words,
827 push_return_address, store_struct_return, and fix_call_dummy. Set
828 push_dummy_call instead of deprecated_push_arguments.
829 (mips_store_struct_return): Delete function.
830 (mips_fix_call_dummy): Delete function.
831 (mips_push_return_address): Delete function.
832 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
833 RA_REGNUM and T9_REGNUM.
834 (mips_n32n64_push_dummy_call): Ditto for
835 mips_n32n64_push_arguments.
836 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
837 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
839 2003-05-31 Andrew Cagney <cagney@redhat.com>
841 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
842 "dummy_addr" to "bp_addr".
843 * infcall.c (call_function_by_hand): Pass "funaddr" to
844 gdbarch_push_dummy_call.
845 * gdbarch.h, gdbarch.c: Re-generate.
846 * i386-tdep.c (i386_push_dummy_call): Update.
847 * arm-tdep.c (arm_push_dummy_call): Update.
848 * d10v-tdep.c (d10v_push_dummy_call): Update.
850 2003-05-31 Mark Kettenis <kettenis@gnu.org>
852 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
853 variable declarations.
854 (x86_64_register_number, x86_64_register_name): Remove prototypes.
855 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
856 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
857 x86_64_init_frame_pc, x86_64_init_frame_pc,
858 x86_64_function_has_prologue): Remove prototypes.
859 (X86_64_NUM_GREGS): New define.
860 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
861 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
862 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
863 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
864 XMM1_REGNUM): Remove defines.
865 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
866 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
867 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
868 X86_64_XMM1_REGNUM): New defines.
869 (struct x86_64_register_info): Renamed from `struct
870 register_info'. Remove `size' member.
871 (x86_64_register_info_table): Remove variable.
872 (x86_64_register_info): New variable.
873 (X86_64_NUM_REGS): New define.
874 (X86_64_NUM_GREGS): Remove define.
875 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
876 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
878 (x86_54_dwarf2_reg_to_regnum): Remove function.
879 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
880 (x86_64_dwarf_reg_to_regnum): New function.
881 (x86_64_register_name): Rewrite.
882 (x86_64_register_raw_size): Remove function.
883 (x86_64_register_byte_table): Remove variable.
884 (x86_64_register_byte): Remove function.
885 (x86_64_register_virtual_type): Remove function.
886 (x86_64_register_type): New function.
887 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
888 x86_64_register_convert_to_raw): Remove functions.
889 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
890 (x86_64_use_struct_convention): Make static. Adjust for renamed
892 (x86_64_frame_init_saved_regs): Remove function.
893 (x86_64_push_arguments): Make static. Change to accept a regcache
895 (x86_64_store_return_value, x86_64_extract_return_value): Make
896 static. Rewrite based on i386 counterparts.
897 (x86_64_push_dummy_call): New function.
898 (X86_64_NUM_SAVED_REGS): New define.
899 (x86_64_register_number): Remove function.
900 (x86_64_store_struct_return): Remove function.
901 (x86_64_frameless_function_invocation,
902 x86_64_function_has_prologue): Remove functions.
903 (PROLOG_BUFSIZE): Remove define.
904 (struct x86_64_frame_cache): New structure.
905 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
906 x86_64_frame_cache, x86_64_frame_this_id,
907 x86_64_frame_prev_register, x86_64_frame_p,
908 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
909 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
911 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
913 (x86_64_skip_prologue): Rewrite in terms of
914 x86_64_analyze_prologue.
915 (x86_64_frame_base_address): New function.
916 (x86_64_frame_base): New variable.
917 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
918 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
919 set deprecated_fp_regnum, deprecated_register_size,
920 deprecated_register_bytes, register_raw_size, register_byte,
921 register_virtual_type, register_convertiable,
922 register_convert_to_virtual, convert_to_raw,
923 deprecated_get_saved_register, deprecated_target_read_fp,
924 deprecated_push_arguments, deprecated_push_return_address,
925 deprecated_pop_frame, deprecated_store_struct_return,
926 deprecated_frame_init_saved_regs, deprecated_frame_chain,
927 frameless_function_invocation, deprecated_frame_saved_pc,
928 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
929 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
930 deprecated_init_frame_pc and virtual_frame_pointer. Call
931 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
932 and x86_64_frame_p. Call frame_base_set_default to register
934 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
935 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
936 (_initialize_x86_64_tdep): Remove function.
937 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
938 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
939 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
941 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
942 (x86_64_linux_sigcontext_addr): Rewrite.
943 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
944 x86_64_linux_frame_saved_pc): Remove functions.
945 (x86_64_linux_pc_in_sigtramp): Renamed from
946 x86_64_linux_in_sigtramp. Try harder to recognize a signal
948 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
950 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
951 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
952 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
953 (x86_64_regmap): Rename to regmap.
954 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
956 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
958 (x86_64_fxsave_offset): Remove function.
959 (supply_fpregset): Simply call x86_64_supply_fxsave.
960 (fill_fpregset): Simply call x86_64_fill_fxsave.
961 (fetch_inferior_registers, store_inferior_registers): Avoid
962 asignment in if-statement.
963 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
964 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
965 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
966 (fetch_core_registers): Remove function.
967 (linux_elf_core_fns): Remove.
968 (offsetoff): Don't define.
969 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
970 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
971 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
973 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
974 protection against multiple includes instead of NM_X86_64_h. Add
975 various comments. Include "config/nm-linux.h". Don't include
977 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
978 GET_THREAD_SIGNALS): Remove defines.
979 (x86_64_register_u_addr, kernel_u_size,
980 lin_thread_get_thread_signals): Remove prototypes.
981 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
982 [HAVE_LINK_H]: Don't include "solib.h".
983 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
984 * config/i386/tm-x86-64linux.h: Fix comments.
985 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
986 x86-64-tdep.o): Update dependencies.
988 2003-05-30 Andrew Cagney <cagney@redhat.com>
990 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
991 Change parameter type to a "struct regcache *".
993 * gdbarch.sh: Regardless of the multi-arch level, always define
994 the macro when not already defined.
995 * gdbarch.h, gdbarch.c: Re-generate.
997 2003-05-30 Richard Henderson <rth@redhat.com>
999 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
1000 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
1001 (alpha_mdebug_frame_this_id): Likewise.
1002 (alpha_mdebug_frame_prev_register): Likewise.
1003 (alpha_mdebug_frame_base_address): Likewise.
1004 (alpha_mdebug_frame_locals_address): Likewise.
1005 (alpha_mdebug_frame_args_address): Likewise.
1006 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
1007 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
1008 (alpha_heuristic_frame_unwind_cache): Make static; add missing
1010 (alpha_heuristic_frame_this_id): Make static.
1011 (alpha_heuristic_frame_prev_register): Likewise.
1012 (alpha_heuristic_frame_base_address): Likewise.
1013 * alpha-tdep.h: Update.
1015 2003-05-30 Mark Kettenis <kettenis@gnu.org>
1017 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
1018 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
1020 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
1021 * i386-tdep.c: Mark functions that are 64-bit safe as such.
1022 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
1023 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
1024 I386_ST0_REGNUM): New defines.
1025 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
1026 codestream_get): Remove define.
1027 (codestream_next_addr, condestream_addr, condestream_buf,
1028 codestream_off, codestream_cnt): Remove variables.
1029 (codestream_fill, codestream_seek, codestream_read): Remove
1031 (i386_follow_jump): Rewrite to avoid usage of removed codestream
1033 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
1034 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
1035 i386_frame_saved_pc, i386_saved_pc_after_call,
1036 i386_frame_num_args, i386_frame_init_saved_regs,
1037 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
1038 i386_push_arguments): Remove functions.
1039 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
1040 functionality. Use i386_analyze_prologue instead of
1041 i386_get_frame_setup.
1042 (I386_NUM_SAVED_REGS): New define.
1043 (struct i386_frame_cache): New structure.
1044 (i386_alloc_frame_cache, i386_analyze_struct_return,
1045 i386_skip_probe, i386_analyze_frame_setup,
1046 i386_analyze_register_saves, i386_analyze_prologue,
1047 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
1048 i386_frame_prev_register, i386_sigtramp_frame_cache,
1049 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
1050 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
1051 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
1053 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
1055 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
1056 I386_EAX_REGNUM and I386_EDX_REGNUM.
1057 (i386_extract_return_value, i386_store_return_value): Use
1058 I386_ST0_REGNUM where appropriate.
1059 (i386_extract_struct_value_address): Rewrite to use extract_address.
1060 (i386_svr4_pc_in_sigtramp): Add comment.
1061 (i386_svr4_sigcontext_addr): Rewrite.
1062 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
1064 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
1065 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
1066 of new defines. Set push_dummy_call, don't set
1067 deprecated_push_arguments, deprecated_push_return_address,
1068 deprecated_pop_frame. Don't set parm_boundary. Don't set
1069 deprecated_frame_chain, deprecated_frame_saved_pc,
1070 deprecated_saved_pc_after_call. Set unwind_dummy_id,
1071 save_dummy_frame_tos, unwind_pc. Call
1072 frame_unwind_append_predicate and frame_base_set_default. Don't
1073 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
1074 Don't set frameless_function_invocation. Don't set
1075 deprecated_register_bytes, deprecated_register_size,
1076 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
1077 * i386-linux-tdep.c: Fix formatting in some comments.
1078 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
1079 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
1080 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
1081 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
1082 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
1083 redundant parentheses.
1084 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
1085 (i386_linux_sigcontext_addr): Use it. Rewrite.
1086 (find_minsym_and_objfile): Change name of second argument.
1087 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
1088 changed. Use frame_pc_unwind instead of
1089 DEPRECATED_SAVED_PC_AFTER_CALL.
1090 (i386_linux_init_abi): Don't set deprecated_register_bytes.
1091 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
1092 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
1094 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
1096 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
1097 (_initialize_i386_cygwin_tdep): New prototype.
1098 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
1099 deprecated_frame_chain_valid.
1100 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
1101 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
1102 Rely on the SVR4 defaults.
1103 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
1104 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
1106 2003-05-30 Andrew Cagney <cagney@redhat.com>
1108 * infcall.c (call_function_by_hand): Always call
1109 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
1111 2003-05-30 Richard Henderson <rth@redhat.com>
1113 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
1116 2003-05-29 Jim Blandy <jimb@redhat.com>
1118 Use gdbarch methods for solib stuff on PowerPC Linux.
1119 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
1120 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
1122 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1123 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
1124 giving the same effect as the #definitions above.
1126 2003-05-29 Adam Fedor <fedor@gnu.org>
1128 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
1129 (find_implementation_from_class): Replace it with the standard
1130 case i.e. do nothing.
1132 2003-05-29 Richard Henderson <rth@redhat.com>
1134 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
1135 (alpha_linux_sigtramp_offset): Use it. Make static.
1136 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
1137 update for new frame model.
1138 * alpha-mdebug-tdep.c: New file.
1139 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
1140 (alpha_osf1_init_abi): Install it.
1141 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
1142 (linked_proc_desc_table): Remove.
1143 (alpha_frame_past_sigtramp_frame): Remove.
1144 (alpha_dynamic_sigtramp_offset): Remove.
1145 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
1146 (alpha_proc_desc_is_dyn_sigtramp): Remove.
1147 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
1148 (push_sigtramp_desc): Remove.
1149 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
1150 (alpha_cannot_store_register): Likewise.
1151 (alpha_sigcontext_addr): Remove.
1152 (alpha_find_saved_regs): Remove.
1153 (alpha_frame_init_saved_regs): Remove.
1154 (alpha_init_frame_pc_first): Remove.
1155 (read_next_frame_reg): Remove.
1156 (alpha_frame_saved_pc): Remove.
1157 (alpha_saved_pc_after_call): Remove.
1158 (temp_proc_desc, temp_saved_regs): Remove.
1159 (alpha_about_to_return): Remove.
1160 (cached_proc_desc): Remove.
1161 (alpha_frame_chain): Remove.
1162 (alpha_print_extra_frame_info): Remove.
1163 (alpha_init_extra_frame_info): Remove.
1164 (alpha_frame_locals_address): Remove.
1165 (alpha_frame_args_address): Remove.
1166 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
1167 (alpha_push_dummy_frame): Remove.
1168 (alpha_pop_frame): Remove.
1169 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
1170 (alpha_read_insn): New.
1171 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
1172 for different insn encodings.
1173 (alpha_in_lenient_prologue): Remove.
1174 (struct alpha_sigtramp_unwind_cache): New.
1175 (alpha_sigtramp_frame_unwind_cache): New.
1176 (alpha_sigtramp_register_address): New.
1177 (alpha_sigtramp_frame_this_id): New.
1178 (alpha_sigtramp_frame_prev_register): New.
1179 (alpha_sigtramp_frame_unwind): New.
1180 (alpha_sigtramp_frame_p): New.
1181 (struct alpha_heuristic_unwind_cache): New.
1182 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
1183 don't count nop insns that occur between functions.
1184 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
1185 heuristic_proc_desc, but without the mdebug wrapping.
1186 (alpha_heuristic_frame_this_id): New.
1187 (alpha_heuristic_frame_prev_register): New.
1188 (alpha_heuristic_frame_unwind): New.
1189 (alpha_heuristic_frame_p): New.
1190 (alpha_heuristic_frame_base_address): New.
1191 (alpha_heuristic_frame_base): New.
1192 (alpha_unwind_dummy_id): New.
1193 (alpha_unwind_pc): New.
1194 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
1195 frame related deprecated initializations; install replacements.
1196 (alpha_dump_tdep): Remove.
1197 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
1198 (alpha_read_insn, alpha_after_prologue,
1199 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
1200 alpha_heuristic_frame_prev_register,
1201 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
1202 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
1203 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
1204 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
1206 2003-05-29 Andrew Cagney <cagney@redhat.com>
1208 * gdb_assert.h (gdb_assert_fail): Provide different definitions
1209 dependant on the availability of ASSERT_FUNCTION.
1210 (ASSERT_FUNCTION): Do not define when there is no function name.
1212 2003-05-29 Kevin Buettner <kevinb@redhat.com>
1214 From Jimi X <jimix@watson.ibm.com>:
1215 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
1217 2003-05-28 Jim Blandy <jimb@redhat.com>
1219 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
1220 argument to ptrace to int; the system headers should give it the
1221 right type, and pointers don't fit in ints on powerpc64-*-*.
1223 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
1225 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
1228 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1230 * stabsread.c (dbx_lookup_type): Make static.
1232 (add_undefined_type): Ditto.
1233 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
1236 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1238 * hpread.c (hpread_has_name): Make static.
1239 (hpread_psymtab_to_symtab): Ditto.
1240 (file_exists): Ditto.
1241 (hpread_call_pxdb): Ditto.
1242 (hpread_pxdb_needed): Ditto.
1243 (hpread_quick_traverse): Ditto.
1244 (hpread_get_header): Ditto.
1245 (hpread_get_lntt): Ditto.
1246 (hpread_get_slt): Ditto.
1249 2003-05-25 Andreas Schwab <schwab@suse.de>
1251 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
1252 stack_align and deprecated_extra_stack_alignment_needed.
1253 (m68k_stack_align): Delete.
1255 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
1256 (m68k_register_virtual_size): Likewise.
1257 (altos_skip_prologue): Remove obsolete function.
1258 (isi_frame_num_args): Likewise.
1259 (news_frame_num_args): Likewise.
1260 (m68k_fix_call_dummy): Make static.
1261 (m68k_push_dummy_frame): Likewise.
1262 (m68k_pop_frame): Likewise.
1263 (m68k_skip_prologue): Likewise.
1264 (m68k_frame_init_saved_regs): Likewise.
1265 (m68k_saved_pc_after_call): Likewise.
1266 (m68k_get_longjmp_target): Make multi-arch.
1267 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
1268 structure. Register m68k_get_longjmp_target if enabled.
1269 * m68k-tdep.h (struct gdbarch_tdep): Define.
1270 * config/m68k/tm-m68k.h: Don't include "regcache.h".
1272 * Makefile.in (config.status): Also depend on configure.tgt
1274 (m68klinux-tdep.o): Update dependencies.
1275 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
1276 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
1277 (M68K_LINUX_JB_PC): Define.
1278 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
1279 and take additional parameter.
1280 (m68k_linux_sigtramp_saved_pc): Update.
1281 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
1282 m68k_linux_pc_in_sigtramp, in_plt_section,
1283 find_solib_trampoline_target.
1284 * config/m68k/tm-linux.h: Don't include any tm headers.
1285 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
1286 (JB_ELEMENT_SIZE): Likewise.
1288 (GET_LONGJMP_TARGET): Likewise.
1289 (IN_SIGTRAMP): Likewise.
1290 (SVR4_SHARED_LIBS): Define this and include "solib.h".
1292 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1294 * sparc-tdep.c (sparc32_do_push_arguments): New function.
1295 (sparc32_push_arguments): Re-implement by calling
1296 sparc32_do_push_arguments.
1298 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1300 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
1301 SPARC_O1_REGNUM): New defines.
1302 (sparc32_extract_return_value): Rewrite to operate on a regcache.
1303 (sparc32_store_return_value): New function.
1304 (sparc_extract_struct_value_address): Rewrite to operate on a
1306 (sparc_gdbarch_init): Don't set
1307 deprecated_extract_struct_value_address. Set
1308 extract_struct_value_address instead. Don't set
1309 deprecated_extract_return_value and deprecated_store_return_value
1310 for 32-bit targets. Set extract_return_value and
1311 store_return_value instead.
1312 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
1313 DEPRECTAED_EXTRACT_RETURN_VALUE,
1314 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
1315 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1316 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
1317 (sparc_store_return_value): Remove prototype.
1318 (sparc32_store_return_value): New prototype.
1319 (sparc32_extract_return_value, sparc_extract_struct_value_address):
1322 2003-05-24 Mark Kettenis <kettenis@gnu.org>
1324 * sparcnbsd-tdep.c: Include "gdb_string.h".
1326 2003-05-23 Andrew Cagney <cagney@redhat.com>
1328 * p-valprint.c (pascal_val_print): Replace extract_address with
1329 the inline equivalent extract_unsigned_integer.
1330 * jv-valprint.c (java_value_print): Ditto.
1331 * ada-valprint.c (ada_val_print_1): Ditto.
1332 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
1334 2003-05-23 Theodore A. Roth <troth@openavr.org>
1336 * blockframe.c (frameless_look_for_prologue): Remove unused
1337 after_prologue variable.
1339 2003-05-23 Mark Kettenis <kettenis@gnu.org>
1341 * blockframe.c (get_pc_function_start): Rewrite to avoid
1342 asignments in if-statements.
1344 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
1346 Committed by Elena Zannoni <ezannoni@redhat.com>.
1347 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
1348 files, don't relocate absolute symbols (and do use mst_abs).
1350 2003-05-23 Andrew Cagney <cagney@redhat.com>
1352 * objc-lang.c: Include "gdb_assert.h".
1353 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
1354 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
1355 (gdb_check, gdb_check_fatal): Delete functions.
1356 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
1358 (parse_selector, parse_method, find_methods, find_imps): Ditto.
1359 * Makefile.in (objc-lang.o): Update dependencies.
1361 2003-05-22 Ian Lance Taylor <ian@airs.com>
1363 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
1364 with fprintf_filtered, not fprintf_unfiltered.
1366 2003-05-22 Andrew Cagney <cagney@redhat.com>
1368 * stack.c (frame_info): Inline extract_address, replacing it with
1369 extract_unsigned_integer.
1370 * findvar.c (unsigned_pointer_to_address): Ditto.
1371 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
1372 * dwarf2expr.c (dwarf2_read_address): Ditto.
1373 * frame.c (frame_pc_unwind): Update comment.
1374 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
1376 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
1378 * infptrace.c (detach): Call print_sys_errmsg rather than
1379 perror_with_name to issue warning message when errno is non-zero
1380 after calling ptrace detach.
1382 2003-05-21 J. Brobecker <brobecker@gnat.com>
1384 * config/pa/tm-hppa.h: Delete some unused macros. Move some
1385 macro definitions from here...
1386 * hppa-tdep.c: ...to there.
1388 2003-05-20 Kevin Buettner <kevinb@redhat.com>
1390 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
1391 register_ptrace_addr(). Fix all callers.
1393 2003-05-21 Andreas Schwab <schwab@suse.de>
1395 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1397 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
1399 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
1400 (_initialize_m68k_linux_tdep): New function.
1401 (m68k_linux_frame_saved_pc): Make static.
1402 (m68k_linux_extract_return_value): Likewise.
1403 (m68k_linux_store_return_value): Likewise.
1404 (m68k_linux_extract_struct_value_address): Likewise.
1405 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
1407 (DEPRECATED_STORE_RETURN_VALUE): Remove.
1408 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1409 (DEPRECATED_FRAME_SAVED_PC): Remove.
1411 2003-05-20 Kris Warkentin <kewarken@qnx.com>
1413 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
1414 regset numbering rather than our own.
1416 2003-05-19 David Carlton <carlton@bactrian.org>
1418 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
1420 2003-05-19 David Carlton <carlton@bactrian.org>
1422 Partial fix for PR c++/827.
1423 * cp-support.h: Include symtab.h.
1424 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
1425 * cp-namespace.c: Update contributors.
1426 (cp_lookup_symbol_nonlocal): New.
1427 (lookup_namespace_scope, cp_lookup_symbol_namespace)
1428 (lookup_symbol_file): Ditto.
1429 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1430 * block.h: Declare block_scope, block_using, block_global_block.
1431 * block.c (block_scope): New.
1432 (block_using, block_global_block): Ditto.
1433 * Makefile.in (cp_support_h): Depend on symtab_h.
1434 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1436 2003-05-19 David Carlton <carlton@bactrian.org>
1438 * language.h (struct language_defn): Add 'la_value_of_this'
1439 and 'la_lookup_symbol_nonlocal' members.
1440 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1441 lookup_symbol_static, lookup_symbol_global,
1442 lookup_symbol_aux_block.
1443 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1444 if we should search fields of this and how to do static/global
1446 (lookup_symbol_aux_block): Make extern.
1447 (basic_lookup_symbol_nonlocal): New.
1448 (lookup_symbol_static, lookup_symbol_global): Ditto.
1449 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1450 'la_lookup_symbol_nonlocal' members.
1451 * c-lang.c (c_language_defn, cplus_language_defn)
1452 (asm_language_defn, minimal_language_defn): Ditto.
1453 * jv-lang.c (java_language_defn): Ditto.
1454 * language.c (unknown_language_defn, auto_language_defn)
1455 (local_language_defn): Ditto.
1456 * m2-lang.c (m2_language_defn): Ditto.
1457 * objc-lang.c (objc_language_defn): Ditto.
1458 * scm-lang.c (scm_language_defn): Ditto.
1459 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1460 * p-lang.c (pascal_language_defn): Ditto for both.
1461 * Makefile.in (f-lang.o): Depend on value_h.
1464 2003-05-19 David Carlton <carlton@bactrian.org>
1466 * block.h: Declare block_static_block.
1467 * block.c (block_static_block): New.
1468 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1469 lookup_symbol_aux_local, calling block_static_block instead.
1470 (lookup_symbol_aux_local): Delete 'static_block' argument.
1472 2003-05-19 David Carlton <carlton@bactrian.org>
1474 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1476 2003-05-19 Michal Ludvig <mludvig@suse.cz>
1478 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1479 register numbers mapping.
1481 2003-05-18 Adam Fedor <fedor@gnu.org>
1483 * symtab.c (completion_list_objc_symbol): New function.
1484 (make_symbol_completion_list): Use it to add ObjC symbols
1485 when looking though the list.
1486 (language_search_unquoted_string): New function.
1487 (make_file_symbol_completion_list): Use it.
1489 2003-05-18 Andreas Schwab <schwab@suse.de>
1491 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1493 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1494 as m68k_linux_extract_return_value.
1495 (DEPRECATED_STORE_RETURN_VALUE): Define as
1496 m68k_linux_store_return_value.
1497 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1498 m68k_linux_extract_struct_value_address.
1499 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1500 get_next_frame, get_frame_base, get_frame_pc.
1501 (m68k_linux_frame_saved_pc): Use get_frame_base.
1502 (m68k_linux_extract_return_value): New function.
1503 (m68k_linux_store_return_value): New function.
1504 (m68k_linux_extract_struct_value_address): New function.
1505 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1507 * c-exp.y (typebase): Remove duplicate occurence of
1508 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1509 of lookup_signed_typename.
1511 2003-05-18 Mark Kettenis <kettenis@gnu.org>
1513 * dwarf2loc.c (find_location_expression): Change type of second
1514 argument to `size_t *'.
1515 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1518 2003-05-18 David Carlton <carlton@bactrian.org>
1520 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1521 'linkage_name'. Add comment.
1522 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1524 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1525 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1526 (lookup_block_symbol): Ditto.
1528 2003-05-16 Andrew Cagney <cagney@redhat.com>
1530 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1531 * gdbarch.h, gdbarch.c: Re-generate.
1532 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1533 * TODO (REGISTER_BYTES): Delete reference.
1534 * alpha-tdep.c (alpha_gdbarch_init): Update.
1535 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1536 * x86-64-tdep.c (x86_64_init_abi): Update.
1537 * vax-tdep.c (vax_gdbarch_init): Update.
1538 * v850-tdep.c (v850_gdbarch_init): Update.
1539 * sparc-tdep.c (sparc_gdbarch_init): Update.
1540 * sh-tdep.c (sh_gdbarch_init): Update.
1541 * s390-tdep.c (s390_gdbarch_init): Update.
1542 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1543 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1544 (ns32k_gdbarch_init_32382): Update.
1545 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1546 * mcore-tdep.c (mcore_gdbarch_init): Update.
1547 * m68k-tdep.c (m68k_gdbarch_init): Update.
1548 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1549 * ia64-tdep.c (ia64_gdbarch_init): Update.
1550 * i386-tdep.c (i386_gdbarch_init): Update.
1551 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1552 * hppa-tdep.c (hppa_gdbarch_init): Update.
1553 * h8300-tdep.c (h8300_gdbarch_init): Update.
1554 * frv-tdep.c (frv_gdbarch_init): Update.
1555 * cris-tdep.c (cris_gdbarch_init): Update.
1556 * avr-tdep.c (avr_gdbarch_init): Update.
1557 * arm-tdep.c (arm_gdbarch_init): Update.
1558 * sparc-tdep.c (sparc_pop_frame): Update.
1559 * rs6000-tdep.c (rs6000_pop_frame): Update.
1560 * remote.c (init_remote_state): Update.
1561 (remote_prepare_to_store): Update.
1562 * remote-vx.c (vx_prepare_to_store): Update.
1563 * remote-sds.c (sds_fetch_registers): Update.
1564 (sds_prepare_to_store): Update.
1565 * remote-array.c: Update.
1566 * regcache.c (init_legacy_regcache_descr): Update.
1567 (init_regcache_descr): Update.
1568 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1569 (mips_o64_extract_return_value): Update.
1570 * irix5-nat.c (fetch_core_registers): Update.
1571 * irix4-nat.c (fetch_core_registers): Update.
1572 * i386-tdep.h: Update.
1573 * hppa-tdep.c (pa_do_registers_info): Update.
1574 (pa_do_strcat_registers_info): Update.
1575 * cris-tdep.c (cris_register_bytes_ok): Update.
1576 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1577 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1578 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1579 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1580 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1581 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1582 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1583 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1584 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1585 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1586 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1587 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1588 (REGISTER_BYTES_OK): Update.
1589 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1590 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1592 2003-05-16 Ian Lance Taylor <ian@airs.com>
1594 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1595 (vax_print_insn, print_insn_arg): Remove static functions.
1596 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1597 print_insn_vax from opcodes library.
1598 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1600 2003-05-15 Andrew Cagney <cagney@redhat.com>
1602 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1603 * target.h (memory_breakpoint_from_pc): Delete declaration.
1604 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1605 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1606 * monitor.c (monitor_insert_breakpoint): Use
1607 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1608 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1609 * gdbarch.h, gdbarch.c: Re-generate.
1610 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1611 (sparc_gdbarch_init): Set breakpoint_from_pc to
1612 sparc_breakpoint_from_pc.
1613 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1614 (BREAKPOINT_FROM_PC): Define.
1615 (sparc_breakpoint_from_pc): Declare.
1616 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1617 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1618 (BREAKPOINT_FROM_PC): Define.
1619 (BREAKPOINT): Delete macro.
1620 * target.h: Update comment.
1621 * s390-tdep.c (s390_gdbarch_init): Update comments.
1622 * remote.c: Update comments.
1623 * remote-mips.c: Update comments.
1624 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1625 * mem-break.c: Update comment.
1626 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1627 (ia64_memory_insert_breakpoint): Update.
1628 * config/sparc/tm-sparc.h: Update comment.
1629 * config/pa/tm-hppa64.h: Update comment.
1630 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1631 (rs6000_breakpoint_from_pc): Update.
1632 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1633 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1634 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1635 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1636 (mips_breakpoint_from_pc): Update.
1637 (mips_dump_tdep): Update.
1639 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1640 * minsyms.c (lookup_minimal_symbol): Inline
1641 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1643 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1644 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1645 * p-lang.c (pascal_printstr): Ditto.
1646 * objc-lang.c (objc_printstr): Ditto.
1647 * m2-lang.c (m2_printstr): Ditto.
1648 * jv-valprint.c (java_print_value_fields): Ditto.
1649 * f-lang.c (f_printstr): Ditto.
1650 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1651 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1652 for repeat_count_threshold.
1653 * Makefile.in (cp-valprint.o): Update dependencies.
1655 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1657 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1658 (examine_prologue): Support looking through leaf functions, knowing
1659 they start with mov r2,r12. Support skipping over indirect stores
1660 of the input registers. Upon hitting a non-nop branch instruction
1661 or predicated instruction, bail out by setting lim_pc to the current
1662 pc value in the loop. At the end, if the lim_pc value is still
1663 beyond our calculated value and we have trust_limit set,
1664 use the lim_pc value.
1666 2003-05-15 Andrew Cagney <cagney@redhat.com>
1668 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1669 generic_find_dummy_frame.
1670 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1671 (deprecated_generic_find_dummy_frame): Update.
1672 (deprecated_read_register_dummy): Update.
1673 * frame.c (deprecated_generic_get_saved_register): Update.
1675 2003-05-15 Theodore A. Roth <troth@openavr.org>
1677 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1678 (avr_gdbarch_init): Set breakpoint_from_pc method.
1680 2003-05-15 Andrew Cagney <cagney@redhat.com>
1682 * regcache.c (build_regcache): Set deprecated_register_valid
1684 (deprecated_grub_regcache_for_register_valid): Delete function.
1685 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1688 2003-05-15 David Carlton <carlton@bactrian.org>
1690 Committed by Elena Zannoni <ezannoni@redhat.com>
1691 * symtab.c (lookup_symbol_aux): Delete calls to
1692 lookup_symbol_aux_minsyms.
1693 (lookup_symbol_aux_minsyms): Comment out function and
1694 prototype. Delete lookup by mangled name.
1696 2003-05-14 Kevin Buettner <kevinb@redhat.com>
1698 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1699 correctly indicate an empty stack and ``stack_allocated'' to the
1700 indicate the number of elements initially allocated.
1701 (dwarf_expr_grow_stack): Simplify method for computing new
1702 stack size. Don't loop infinitely if ``stack_len'' is zero.
1703 (execute_stack_op): Move ``ctx->in_reg'' initialization
1704 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1705 be used in conjuction with DW_OP_piece. Revise error message
1708 2003-05-14 Theodore A. Roth <troth@openavr.org>
1710 * MAINTAINERS: Update my email address.
1711 * avr-tdep.c: Ditto.
1713 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
1715 * symtab.h (enum domain_enum): Rename from namespace_enum.
1716 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1717 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1718 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1719 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1720 TYPES_NAMESPACE, METHODS_NAMESPACE.
1721 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1722 (struct symbol, struct partial_symbol): Rename field
1723 'namespace_enum namespace' to 'domain_enum domain'.
1724 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1725 Delete old define kludge for namespace.
1727 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1728 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1729 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1730 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1731 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1732 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1733 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1734 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1735 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1736 occurrences of the above.
1738 2003-05-14 Ian Lance Taylor <ian@airs.com>
1740 * Makefile.in (install-only): Use $(SHELL) when running
1743 2003-05-13 Ian Lance Taylor <ian@airs.com>
1745 * MAINTAINERS (write after approval): Add myself.
1747 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1748 second and third arguments.
1749 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1750 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1752 2003-05-13 Andrew Cagney <cagney@redhat.com>
1754 * defs.h (store_address): Delete declaration.
1755 findvar.c (store_address): Delete function.
1756 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1757 store_unsigned_integer.
1758 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1759 * v850-tdep.c (v850_push_arguments): Ditto.
1760 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1761 * sh-tdep.c (sh64_get_saved_register): Ditto.
1762 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1763 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1764 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1765 (mips_get_saved_register): Ditto.
1766 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1767 (find_func_descr, ia64_push_arguments): Ditto.
1768 * i386-tdep.c (i386_push_arguments): Ditto.
1769 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1770 * frv-tdep.c (frv_push_arguments): Ditto.
1771 * frame.c (legacy_saved_regs_prev_register): Ditto.
1772 (deprecated_generic_get_saved_register): Ditto.
1773 * findvar.c (unsigned_address_to_pointer): Ditto.
1774 * dwarf2read.c (dwarf2_const_value): Ditto.
1775 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1776 * alpha-tdep.c (alpha_push_arguments): Ditto.
1778 2003-05-12 J. Brobecker <brobecker@gnat.com>
1780 * NEWS: Mention that the hppa-hpux port has been partially
1781 multiarched (32bit ABIT only, so far).
1783 2003-05-11 Andrew Cagney <cagney@redhat.com>
1785 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1786 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1787 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1788 sim/testsuite/sim/arm/misaligned2.ms, and
1789 sim/testsuite/sim/arm/misaligned3.ms.
1790 * disasm.h (struct ui_file): Add opaque struct declaration.
1791 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1792 * frame.h (struct ui_file): Ditto.
1794 2003-05-11 Mark Kettenis <kettenis@gnu.org>
1796 * value.h: Pretty print.
1798 2003-05-10 Mark Kettenis <kettenis@gnu.org>
1800 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1802 2003-05-08 Andrew Cagney <cagney@redhat.com>
1804 * regcache.h (max_register_size): Delete declaration.
1805 * regcache.c (max_register_size): Delete function.
1806 (struct regcache_descr): Delete field "max_register_size".
1807 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1808 registers fit in MAX_REGISTER_SIZE.
1809 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1810 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1811 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1812 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1813 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1814 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1815 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1816 * dve3900-rom.c, hppa-tdep.c: Ditto.
1818 2003-05-08 David Carlton <carlton@math.stanford.edu>
1820 * valops.c (push_word): Fix typo.
1822 2003-05-08 Andrew Cagney <cagney@redhat.com>
1824 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1825 * gdbarch.h: Re-generate.
1826 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1827 (legacy_max_register_raw_size): Delete declaration.
1828 * regcache.c (legacy_max_register_raw_size): Delete function.
1829 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1830 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1831 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1832 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1833 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1834 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1835 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1836 * findvar.c, dwarf2cfi.c: Ditto.
1838 2003-05-08 Andrew Cagney <cagney@redhat.com>
1840 * mips-tdep.c (read_signed_register): New function, moved to here
1842 (read_signed_register_pid): Ditto.
1843 * regcache.c (read_signed_register_pid): Delete function, moved to
1845 (read_signed_register): Ditto.
1846 * regcache.h (read_signed_register): Delete declaration.
1847 (read_signed_register_pid): Delete declaration.
1849 2003-05-08 Andrew Cagney <cagney@redhat.com>
1851 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1852 * gdbarch.h: Re-generate.
1853 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1854 (legacy_max_register_virtual_size): Delete declaration.
1855 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1856 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1857 * tracepoint.c (memrange_sortmerge): Ditto.
1858 * sparc-tdep.c (sparc_print_registers): Ditto.
1859 * regcache.c (legacy_max_register_virtual_size): Delete function.
1861 2002-05-08 J. Brobecker <brobecker@gnat.com>
1863 * fork-child.c (escape_bang_in_quoted_argument): New function.
1864 (fork_inferior): Escape '!' characters in quoted arguments
1867 2003-05-08 J. Brobecker <brobecker@gnat.com>
1869 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1870 the language of the CU is not currently supported by GDB.
1872 2003-05-08 J. Brobecker <brobecker@gnat.com>
1874 * defs.h (language): Add language_minimal enum value.
1875 * c-lang.c (minimal_language_defn): New language definition.
1876 (_initialize_c_language): Add the new minimal language to the list
1877 of languages known to GDB.
1879 2003-05-08 Kevin Buettner <kevinb@redhat.com>
1881 * frame.c (get_frame_type): Don't attempt to lazily initialize
1882 frame's unwinder for legacy frames.
1884 2003-05-07 Andrew Cagney <cagney@redhat.com>
1886 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1887 and "regcache" parameters.
1888 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1890 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1892 * dwarf2read.c (dwarf_decode_lines): Only use output of
1893 check_cu_functions() when calling record_line(). Do not update
1894 the current address.
1896 2003-05-07 Andrew Cagney <cagney@redhat.com>
1898 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1901 2003-05-07 Jim Blandy <jimb@redhat.com>
1903 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1904 'maint info symtabs' and 'maint info psymtabs'.
1905 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1906 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1907 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1908 Declarations updated.
1909 * maint.c (maintenance_list_command): Delete.
1910 (_initialize_maint_cmds): Update calls to add_cmd.
1911 * gdbcmd.h (maintenancelistlist): Delete declaration.
1912 * cli/cli-cmds.c (maintenancelistlist): Delete.
1913 (init_cmd_lists): Don't initialize it.
1914 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1916 2003-05-07 Andrew Cagney <cagney@redhat.com>
1918 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1920 (d10v_print_registers_info): Update.
1921 (d10v_dmap_register, d10v_imap_register): Delete functions.
1922 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1923 and "imap_register".
1924 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1925 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1926 * arch-utils.c (generic_remote_translate_xfer_address): Add
1927 "regcache" and "gdbarch" parameters.
1928 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1929 parameter. Change class to multi-arch.
1930 * gdbarch.h, gdbarch.c: Re-generate.
1931 * remote.c (remote_xfer_memory): Use
1932 gdbarch_remote_translate_xfer_address.
1934 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1936 * infrun.c (prev_pc): Move declaration ahead of proceed().
1937 (proceed): Refresh prev_pc value before resuming.
1938 (stop_stepping): Remove code to refresh prev_pc.
1940 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1942 * nto-tdep.c: Removed stray comment.
1944 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1946 * i386-nto-tdep.c: Fix old K&R function definitions.
1947 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1948 Also change add_show_from_set() call to add_setshow_cmd().
1949 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1951 2003-05-05 Andrew Cagney <cagney@redhat.com>
1953 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1954 (fprint_dummy_frames): New function.
1955 (maintenance_print_dummy_frames): New function.
1956 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1957 * frame.c (fprint_frame_id): Make global.
1958 * frame.h (fprint_frame_id): Declare.
1959 * Makefile.in (dummy-frame.o): Update dependencies.
1961 2003-05-05 Andrew Cagney <cagney@redhat.com>
1963 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1964 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1965 SIZEOF_CALL_DUMMY_WORDS.
1966 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1967 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1968 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1969 CALL_DUMMY_BREAKPOINT_OFFSET.
1970 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1971 CALL_DUMMY_START_OFFSET.
1972 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1973 * gdbarch.h, gdbarch.c: Re-generate.
1974 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1975 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1976 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1977 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1978 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1979 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1980 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1981 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1982 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1983 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1984 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1985 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1986 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1987 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1988 * config/sparc/tm-sparc.h: Update.
1990 2003-05-05 Kris Warkentin <kewarken@qnx.com>
1992 * configure.tgt: Add i[3456]86-*-nto*.
1993 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1994 * nto-tdep.c: New file. Neutrino target support routines.
1995 * nto-tdep.h: New file. Neutrino target header.
1996 * config/tm-qnxnto.h: New file.
1997 * config/i386/i386nto.mt: New file.
1998 * config/i386/tm-i386nto.h: New file.
2000 2003-05-04 Andrew Cagney <cagney@redhat.com>
2002 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
2003 (load_infrun_state): Ditto.
2004 (struct thread_info): Drop "prev_func_name" field.
2005 * thread.c (load_infrun_state): Update.
2006 (save_infrun_state): Update.
2007 * infrun.c (prev_func_name): Delete variable.
2008 (init_wait_for_inferior): Do not clear prev_func_name.
2009 (stop_stepping, keep_going, context_switch): Do not swap
2011 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
2012 instead of PC_IN_SIGTRAMP.
2014 2003-05-04 Andrew Cagney <cagney@redhat.com>
2016 * sentinel-frame.c (sentinel_frame_prev_register): Replace
2017 REGISTER_BYTE with register_offset_hack.
2018 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
2019 that REGISTER_BYTE is consistent with the regcache.
2020 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
2021 * gdbarch.h, gdbarch.c: Regenerate.
2023 2003-05-04 Mark Kettenis <kettenis@gnu.org>
2025 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
2026 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
2028 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
2030 2003-05-03 J. Brobecker <brobecker@gnat.com>
2032 From Thierry Schneider <tpschneider1@yahoo.com>
2033 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
2034 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
2035 (mi-cmd-symbol.o): Add rule.
2037 2003-05-03 Andrew Cagney <cagney@redhat.com>
2039 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
2040 comments noteing that it replaces the old FIX_CALL_DUMMY code.
2041 * gdbarch.h, gdbarch.c: Re-generate.
2042 * d10v-tdep.c (d10v_push_dummy_code): New function.
2043 (d10v_gdbarch_init): Set push_dummy_code.
2044 * infcall.c (legacy_push_dummy_code): New function.
2045 (generic_push_dummy_code): New function.
2046 (push_dummy_code): New function.
2047 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
2048 instead of dummy_addr, to push_dummy_call. Move call to
2049 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
2051 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
2053 2003-05-03 Andrew Cagney <cagney@redhat.com>
2055 * disasm.h (print_insn): Declare.
2056 * disasm.c (init_gdb_disassemble_info): New function.
2057 (gdb_disassembly): Call init_gdb_disassemble_info.
2058 (gdb_print_insn): New function.
2059 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
2060 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
2061 * mcore-tdep.c: Include "disasm.h"
2062 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
2063 * d10v-tdep.c: Include "disasm.h".
2064 (display_trace): Call gdb_print_insn, instead of print_insn.
2065 (print_insn): Delete function.
2066 * printcmd.c: Include "disasm.h".
2067 (print_insn): Delete function.
2068 (print_formatted): Call gdb_print_insn, instead of print_insn.
2069 * Makefile.in (printcmd.o): Update dependencies.
2070 (mcore-tdep.o, d10v-tdep.o): Ditto.
2072 2003-05-02 Andrew Cagney <cagney@redhat.com>
2074 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
2075 PC_REGNUM, re-indent.
2076 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
2077 PC_REGNUM isn't set.
2079 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
2080 * gdbarch.h, gdbarch.c: Re-generate.
2081 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
2082 register_virtual_size, pc_regnum, or register_bytes.
2083 (D10V_PC_REGNUM): Rename _PC_REGNUM.
2084 (d10v_register_type): Use D10V_PC_REGNUM.
2085 (d10v_print_registers_info, d10v_read_pc): Ditto.
2086 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
2087 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
2089 2003-05-02 David Carlton <carlton@bactrian.org>
2091 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
2092 the name with mstrsave.
2094 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
2096 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
2097 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
2098 (host_charset_name, target_charset_name): New vars for use by
2100 (host_charset_enum, target_charset_enum): New enums for set/show
2102 (set_charset_sfunc, set_host_charset_sfunc,
2103 set_target_charset_sfunc): New functions.
2104 (set_host_charset, set_target_charset): Make static.
2105 (list_charsets, set_host_charset_command,
2106 set_target_charset_command): Delete functions.
2107 (show_charset_command): Rewrite as....
2108 (show_charset): Hook this up with the set/show command mechanism.
2109 (_initialize_charset): Change names of charsets to match the
2110 set/show enums. Use host_charset_name and target_charset_name.
2111 Use set/show mechanism for charset, host-charset, target-charset
2112 commands. Do not make 'show host-charset' and 'show
2113 target-charset' be aliases of 'show charset'.
2115 * charset.h (set_host_charset, set_target_charset): Don't export,
2116 they are not used outside the file.
2118 2003-05-01 Andrew Cagney <cagney@redhat.com>
2120 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
2121 (gdb_disassembly): Make "di" non static, always initialize and
2122 cleanup. Always use dis_asm_read_memory.
2123 (gdb_dis_asm_read_memory): Delete function.
2125 2003-05-01 Andrew Cagney <cagney@redhat.com>
2127 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
2128 (d10v_gdbarch_init): Set frame_align instead of stack_align.
2130 2003-04-30 Andrew Cagney <cagney@redhat.com>
2132 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
2133 "tm_print_insn_info".
2134 (TARGET_PRINT_INSN_INFO): Delete macro.
2135 (dis_asm_read_memory): Delete function declaration.
2136 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2137 (tm_print_insn_info): Delete variable definition.
2138 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
2139 * gdbarch.h, gdbarch.c: Re-generate.
2140 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
2141 "deprecated_tm_print_insn_info".
2142 * mcore-tdep.c (mcore_dump_insn): Ditto.
2143 * mips-tdep.c (mips_gdbarch_init): Ditto.
2144 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
2145 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
2146 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
2147 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
2148 instead of TARGET_PRINT_INSN_INFO, add comment.
2149 * s390-tdep.c (s390_get_frame_info): Instead of
2150 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
2151 (s390_check_function_end, s390_is_sigreturn): Ditto.
2152 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
2153 (dis_asm_memory_error, dis_asm_print_address): Ditto.
2154 * disasm.c: Include "gdbcore.h".
2155 (_initialize_disasm): New function, initialize
2156 "deprecated_tm_print_insn_info".
2157 (deprecated_tm_print_insn_info): New variable.
2158 (dis_asm_read_memory): Moved from "corefile.c", made static.
2159 (dis_asm_print_address, dis_asm_memory_error): Ditto.
2160 * Makefile.in (disasm.o): Update dependencies.
2162 2003-04-30 Andrew Cagney <cagney@redhat.com>
2164 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
2166 2003-04-29 Adam Fedor <fedor@gnu.org>
2168 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
2169 * infcall.c (find_function_addr): Make non-static.
2170 * infcall.h (find_function_addr): Declare.
2171 * Makefile.in (eval.o): Update dependencies.
2173 2003-04-28 Adam Fedor <fedor@gnu.org>
2175 * symtab.c (symbol_find_demangled_name): Check for and demangle
2177 (symbol_init_demangled_name): Init for language_objc as well.
2179 2003-04-28 Andrew Cagney <cagney@redhat.com>
2181 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
2182 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
2183 * gdbarch.h, gdbarch.c: Re-generate.
2184 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
2185 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
2186 * inferior.h (deprecated_read_fp): Rename read_fp.
2187 (generic_target_read_fp): Delete declaration.
2188 * regcache.c (generic_target_read_fp): Delete function.
2189 (deprecated_read_fp): Replace read_fp, use
2190 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
2191 * d10v-tdep.c (d10v_read_fp): Delete function.
2192 (d10v_gdbarch_init): Do not set deprecated_read_fp.
2194 * sparc-tdep.c (sparc_gdbarch_init): Do not set
2195 deprecated_target_read_fp to generic_target_read_fp.
2196 * sh-tdep.c (sh_gdbarch_init): Ditto.
2197 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2198 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2199 * frv-tdep.c (frv_gdbarch_init): Ditto.
2201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
2202 deprecated_fp_regnum.
2203 * x86-64-tdep.c (x86_64_init_abi): Ditto.
2204 * vax-tdep.c (vax_gdbarch_init): Ditto.
2205 * v850-tdep.c (v850_gdbarch_init): Ditto.
2206 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2207 * sh-tdep.c (sh_gdbarch_init): Ditto.
2208 * s390-tdep.c (s390_gdbarch_init): Ditto.
2209 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2210 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2211 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2212 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2214 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2215 * i386-tdep.c (i386_gdbarch_init): Ditto.
2216 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2217 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2218 * frv-tdep.c (frv_gdbarch_init): Ditto.
2219 * cris-tdep.c (cris_gdbarch_init): Ditto.
2220 * avr-tdep.c (avr_gdbarch_init): Ditto.
2221 * arm-tdep.c (arm_gdbarch_init): Ditto.
2222 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2224 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
2225 * v850-tdep.c (v850_gdbarch_init): Ditto.
2226 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2227 * sh-tdep.c (sh_gdbarch_init): Ditto.
2228 * s390-tdep.c (s390_gdbarch_init): Ditto.
2229 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2230 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2231 * mips-tdep.c (mips_gdbarch_init): Ditto.
2232 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2233 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2234 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2235 * frv-tdep.c (frv_gdbarch_init): Ditto.
2236 * avr-tdep.c (avr_gdbarch_init): Ditto.
2237 * arm-tdep.c (arm_gdbarch_init): Ditto.
2239 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
2240 DEPRECATED_FP_REGNUM.
2241 (vax_push_dummy_frame, vax_pop_frame): Ditto.
2242 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
2243 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2244 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
2245 (sparc32_register_virtual_type): Ditto.
2246 * sh-tdep.c (sh64_frame_chain): Ditto.
2247 (sh64_get_saved_register, sh64_pop_frame): Ditto.
2248 (sh_nofp_frame_init_saved_regs): Ditto.
2249 (sh64_nofp_frame_init_saved_regs): Ditto.
2250 (sh_fp_frame_init_saved_regs): Ditto.
2251 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2252 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2253 * procfs.c (procfs_fetch_registers): Ditto.
2254 (procfs_store_registers): Ditto.
2255 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
2256 (store_inferior_registers, fetch_core_registers): Ditto.
2257 (fetch_kcore_registers, clear_regs): Ditto.
2258 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
2259 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
2260 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
2261 * nlm/i386.c (do_status): Ditto.
2262 * mipsv4-nat.c (supply_gregset): Ditto.
2263 * mips-tdep.c: Ditto for comments.
2264 * mips-nat.c (fetch_inferior_registers): Ditto.
2265 (store_inferior_registers, fetch_core_registers): Ditto.
2266 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
2267 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
2268 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
2269 (i386_do_pop_frame, i386_register_type): Ditto.
2270 * hppa-tdep.c (hppa_frame_chain): Ditto.
2271 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
2272 (hppa_pop_frame, hppa_read_fp): Ditto.
2273 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
2274 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
2275 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
2276 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
2277 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
2278 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
2279 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
2280 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
2281 * blockframe.c: Ditto for comments.
2282 * arch-utils.h: Ditto for comments.
2283 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
2284 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
2285 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
2286 * alpha-tdep.h: Ditto for comments.
2287 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
2288 (alpha_cannot_store_register): Ditto.
2289 (alpha_push_dummy_frame): Ditto.
2290 * alpha-nat.c (supply_gregset): Ditto.
2292 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
2293 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
2294 * config/sparc/tm-sparc.h: Update comment.
2296 * hppa-tdep.c (hppa_init_extra_frame_info): Use
2297 deprecated_read_fp instead of TARGET_READ_FP.
2298 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
2299 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
2300 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2301 deprecated_read_fp instead of read_fp.
2302 * s390-tdep.c (s390_push_arguments): Ditto.
2303 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2304 * frame.h: Ditto in comments.
2305 * frame.c (legacy_get_prev_frame): Ditto.
2306 * dummy-frame.c (dummy_frame_this_id): Ditto.
2307 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2309 2003-04-28 Andrew Cagney <cagney@redhat.com>
2311 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
2314 * vax-tdep.c (_initialize_vax_tdep): Update.
2315 * v850-tdep.c (_initialize_v850_tdep): Update.
2316 * sparc-tdep.c (_initialize_sparc_tdep): Update.
2317 * s390-tdep.c (_initialize_s390_tdep): Update.
2318 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
2319 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
2320 * mips-tdep.c (_initialize_mips_tdep): Update.
2321 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2322 * m68k-tdep.c (_initialize_m68k_tdep): Update.
2323 * ia64-tdep.c (_initialize_ia64_tdep): Update.
2324 * hppa-tdep.c (_initialize_hppa_tdep): Update.
2325 * h8300-tdep.c (_initialize_h8300_tdep): Update.
2326 * frv-tdep.c (_initialize_frv_tdep): Update.
2327 * cris-tdep.c (cris_delayed_get_disassembler): Update.
2328 (_initialize_cris_tdep): Update.
2329 * arch-utils.c (legacy_print_insn): Update.
2330 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2332 2003-04-26 Adam Fedor <fedor@gnu.org>
2334 * linespec.c (decode_objc): New function to decode ObjC calls
2335 (decode_line_1): Check for ObjC calls (using decode_objc)
2336 * Makefile (linespec.o): Update dependencies.
2338 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
2340 * breakpoint.h (struct breakpoint_ops): New.
2341 (struct breakpoint): Add ops member.
2343 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
2344 (mention): Use new breakpoint ops member.
2345 (set_raw_breakpoint): Initialize ops field to NULL.
2346 (print_exception_catchpoint, print_one_exception_catchpoint)
2347 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
2348 (gnu_v3_exception_catchpoint_ops): New.
2349 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
2351 2003-04-25 Adam Fedor <fedor@gnu.org>
2353 * Makefile.in (COMMON_OBS): Add objc-lang.o
2355 2003-04-25 Andrew Cagney <cagney@redhat.com>
2357 * d10v-tdep.c (print_insn): Delete function.
2358 (display_trace): Use TARGET_PRINT_INSN.
2359 (_initialize_d10v_tdep): Do not set tm_print_insn.
2360 (d10v_gdbarch_init): Set print_insn.
2362 2003-04-25 Andrew Cagney <cagney@redhat.com>
2364 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
2365 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
2366 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
2367 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
2368 (nr_dmap_regs, a0_regnum): ... new functions.
2369 (d10v_print_registers_info): Use a0_regnum, use register_size.
2370 (d10v_register_byte): Delete function.
2371 (d10v_register_raw_size): Delete function.
2372 (d10v_register_type): Use a0_regnum.
2373 (d10v_print_registers_info): Use a0_regnum.
2374 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
2375 (d10v_gdbarch_init): Do not set register_byte or
2376 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
2377 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
2379 (trace_command): Use XCALLOC.
2380 (print_insn): Delete reference to tm_print_insn.
2381 (saved_regs_unwinder): Use store_unsigned_integer instead of
2383 * frame.h (FRAME_OBSTACK_CALLOC): Define
2385 2003-04-25 David Carlton <carlton@bactrian.org>
2387 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2389 2003-04-24 Adam Fedor <fedor@gnu.org>
2391 * objc-lang.c: Include "valprint.h"
2392 * Makefile.in (objc-lang.o): Update dependencies.
2394 2003-04-24 Adam Fedor <fedor@gnu.org>
2396 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
2397 architecture dependant compilation and mark as unimplemented
2398 (until they get put in the gdbarch vector).
2400 2003-04-23 David Carlton <carlton@bactrian.org>
2402 * cp-support.c (cp_find_first_component): Accept 'operator' in
2405 2003-04-23 Andrew Cagney <cagney@redhat.com>
2407 * infcall.c (call_function_by_hand): Eliminate redundant
2408 indentation. Move "saved_async" and "old_cleanups" to where they
2411 2003-04-23 Andrew Cagney <cagney@redhat.com>
2413 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
2414 and "buffer". Move the "name" code to where it is needed.
2416 2003-04-23 Andrew Cagney <cagney@redhat.com>
2418 * infcall.c (call_function_by_hand): Move variables "start_sp",
2419 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
2420 code to ON_STACK switch branch.
2422 2003-04-23 Andrew Cagney <cagney@redhat.com>
2424 * infcall.c (call_function_by_hand): Make declaration of "i",
2425 "sal", "bpt" and "old_sp" more local to their use. Delete #if
2428 2003-04-23 Andrew Cagney <cagney@redhat.com>
2430 * infcall.c (call_function_by_hand): Delete variable
2431 "n_method_args". Localize "param_type"'s declaration to the loop
2432 that it is used. Reinstate code assigning to said variable -
2433 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2434 Rationalize code using "param_type".
2436 2003-04-22 Andrew Cagney <cagney@redhat.com>
2438 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2439 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2440 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2441 to DEPRECATED_PUSH_RETURN_ADDRESS.
2443 2003-04-22 Kevin Buettner <kevinb@redhat.com>
2445 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2446 on the DWARF2 register number prior to fetching a register.
2448 2003-04-22 J. Brobecker <brobecker@gnat.com>
2450 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2451 Update all the tests using SOFT_FLOAT considering the fact that
2452 this macro was always set to 0.
2453 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2454 considering the fact that this macro was always set to 0.
2455 * hppa-tdep.h (hppa_store_return_value): Likewise.
2456 (hppa_extract_return_value): Likewise.
2458 2003-04-22 J. Brobecker <brobecker@gnat.com>
2460 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2461 the hppa-pro target only.
2463 2003-04-21 J. Brobecker <brobecker@gnat.com>
2465 Ongoing multi-arch conversion effort for HP/UX:
2466 * config/pa/tm-hppa.h: Move all macro that are no longer
2467 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2468 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2470 2003-04-21 J. Brobecker <brobecker@gnat.com>
2472 * config/pa/tm-hppa.h: Obsolete a section that was only used
2475 2003-04-21 J. Brobecker <brobecker@gnat.com>
2477 Ongoing multi-arch conversion for HP/UX.
2478 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2479 if already defined (allows hppa64 to stay non-multiarched for now).
2480 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2482 2003-04-21 Andrew Cagney <cagney@redhat.com>
2484 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2486 2003-04-21 Andrew Cagney <cagney@redhat.com>
2488 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2489 "i386_num_mmx_regs".
2491 2003-04-21 Andrew Cagney <cagney@redhat.com>
2493 * infcall.c: New file.
2494 * infcall.h: New file.
2495 * valarith.c: Include "infcall.h".
2496 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2497 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2498 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2499 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2500 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2501 (SFILES): Add "infcall.c"
2502 (COMMON_OBS): Add "infcall.o".
2503 (infcall.o): Specify dependencies.
2504 * value.h (call_function_by_hand): Delete declaration.
2505 * inferior.h (run_stack_dummy): Delete declaration.
2506 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2507 (run_stack_dummy): Move to "infcall.c", merged into
2508 call_function_by_hand.
2509 * valops.c (call_function_by_hand): Moved to "infcall.c".
2510 (find_function_addr, value_arg_coerce): Ditto.
2511 (unwindonsignal_p, coerce_float_to_double): Ditto.
2512 (_initialize_valops): Move "set/show coerce-float-to-double", and
2513 "set/show unwindonsignal" commands to "infcall.c".
2514 * v850-tdep.c, target.h: Update comments.
2515 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2516 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2517 (sh64_init_extra_frame_info): Update comments.
2518 * mn10300-tdep.c: Update comments.
2519 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2520 * config/sparc/tm-sparc.h: Update comments.
2521 * breakpoint.h: Update comments.
2522 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2523 * arm-tdep.c: Update comment.
2525 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2527 * i386-tdep.c (i386_num_register_names): New variable.
2528 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2529 (MM0_REGNUM): Remove redundant parentheses in define.
2530 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2531 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2532 i386_mxcsr_regnum_p): Remove redundant parentheses.
2533 (i386_register_name): Use i386_num_register_names.
2535 * i386-tdep.c (i386_extract_return_value,
2536 i386_store_return_value): Correct check for availability of
2537 floating-point registers.
2539 * i386-tdep.c (i386_frame_num_args): Remove function.
2540 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2542 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2543 mmx_regnum_to_fp_regnum. Adjust all callers.
2545 * i386-tdep.c (i386_get_longjmp_target): Use
2546 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2547 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2550 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2552 * core-regset.c: Update comments to reflect reality. Re-order
2554 (fetch_core_registers): Use switch instead of if. Remove
2555 redundant prototype.
2557 2003-04-18 Jim Blandy <jimb@redhat.com>
2559 * s390-tdep.c (s390_frame_align): New function.
2560 (s390_gdbarch_init): Register it with the gdbarch object.
2562 2003-04-17 Richard Henderson <rth@redhat.com>
2564 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2566 2003-04-17 Michael Snyder <msnyder@redhat.com>
2567 Karen Bennet <bennet@redhat.com>
2569 Committed by Elena Zannoni <ezannoni@redhat.com>
2570 * gdb_gcore.sh: New script to create a core dump of a process.
2572 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
2574 * values.c (value_being_returned): Don't fetch the return
2575 value if the return type is void.
2577 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2579 * thread-db.c: Reindented.
2581 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2583 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2584 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2611 2003-04-16 Kevin Buettner <kevinb@redhat.com>
2613 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
2614 the size of ``long double'' to 16, instead of 8.
2616 2003-04-16 Mark Kettenis <kettenis@gnu.org>
2618 * i386-linux-nat.c: Add some whitespace to make things more
2620 (fetch_register, store_register, fetch_inferior_registers,
2621 store_inferior_registers): Get rid of assignment in if-statement.
2622 (store_register): Fix typo in error message.
2624 2003-04-16 Andrew Cagney <cagney@redhat.com>
2626 * utils.c (xmmalloc): Always allocate something, matches
2627 libiberty/xmalloc's semantics.
2628 (xmrealloc, xmcalloc): Ditto.
2630 2003-04-16 Andrew Cagney <cagney@redhat.com>
2632 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2634 (get_frame_type): Initialize unwind and type when needed.
2635 (get_frame_id, frame_register_unwind): Ditto.
2637 2003-04-16 Andrew Cagney <cagney@redhat.com>
2639 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2641 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2642 * sparcl-stub.c: Obsolete file.
2643 * config/sparc/tm-sparclet.h: Obsolete file.
2644 * sparclet-stub.c: Obsolete file.
2645 * sparclet-rom.c: Obsolete file.
2646 * sparcl-tdep.c: Obsolete file.
2647 * config/sparc/tm-sparclite.h: Obsolete file.
2648 * config/sparc/sparclite.mt: Obsolete file.
2649 * config/sparc/sparclet.mt: Obsolete file.
2650 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2651 sparc86x-*-* obsolete.
2653 2003-04-15 David Carlton <carlton@math.stanford.edu>
2655 * Makefile.in (SFILES): Add cp-namespace.c.
2656 (COMMON_OBS): Add cp-namespace.o.
2657 (block.o): Depend on gdb_obstack_h and cp_support_h.
2658 (buildsym.o): Depend on cp_support_h.
2659 (cp-namespace.o): New.
2660 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2661 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2662 (dwarf2read.o): Depend on cp_support_h.
2663 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2664 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2665 processing_current_namespace.
2666 (read_namespace): Update processing_current_namespace; check for
2667 anonymous namespaces.
2668 (dwarf2_name): New function.
2669 (dwarf2_extension): Ditto.
2670 * cp-support.h: Update copyright, contributors.
2671 Add inclusion guards.
2672 Add opaque declaration for structs obstack, block, symbol.
2673 (struct using_direct): New struct.
2674 Add declarations for cp_find_first_component,
2675 cp_entire_prefix_len, processing_has_namespace_info,
2676 processing_current_namespace, cp_is_anonymous,
2677 cp_add_using_directive, cp_initialize_namespace,
2678 cp_finalize_namespace, cp_set_block_scope,
2679 cp_scan_for_anonymous_namespaces.
2680 * cp-namespace.c: New file.
2681 * cp-support.c: Update copyright.
2682 Include ctype.h, gdb_assert.h, gdbcmd.h.
2683 New variable maint_cplus_cmd_list.
2684 (cp_find_first_component): New function.
2685 (cp_entire_prefix_len, maint_cplus_command)
2686 (first_component_command, _initialize_cp_support): Ditto.
2687 * buildsym.c: Include cp-support.h.
2688 New variable using_list.
2689 (add_symbol_to_list): Check for anonymous namespaces.
2690 (finish_block): Set block's scope.
2691 (start_symtab): Initialize C++ namespace support.
2692 (end_symtab): Finalize C++ namespace support.
2693 * block.h: Add opaque declarations for structs
2694 block_namespace_info, using_direct, and obstack.
2695 Add declarations for block_set_scope and block_set_using.
2696 (struct block): Add 'language_specific' member.
2697 (BLOCK_NAMESPACE): New macro.
2698 * block.c: Include gdb_obstack.h and cp-support.h.
2699 (struct block_namespace_info): New struct.
2700 (block_set_scope): New function.
2701 (block_set_using, block_initialize_namespace): Ditto.
2703 2003-04-14 Kevin Buettner <kevinb@redhat.com>
2705 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2706 (locate_base): Return early if there aren't any link map offsets.
2707 (svr4_solib_create_inferior_hook): Warn if shared library support
2710 2003-04-14 David Carlton <carlton@math.stanford.edu>
2712 * symtab.c (symbol_set_names): Add prefix when storing Java names
2713 in hash table. Fix for PR java/1039.
2715 2003-04-14 David Carlton <carlton@math.stanford.edu>
2717 * symtab.c (symbol_set_names): Rename 'name' arg to
2718 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2719 * symtab.h: Change 'name' argument in declaration of
2720 symbol_set_names to 'linkage_name'.
2721 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2723 2003-04-14 Andrew Cagney <cagney@redhat.com>
2725 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2726 return the fully sign-extended register value.
2727 (get_frame_pointer): Ditto.
2728 (mips_pop_frame): Initialize "proc_desc" after checking for a
2731 2003-04-14 Andrew Cagney <cagney@redhat.com>
2733 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2734 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2735 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2736 (mips_push_register): Delete function.
2737 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2740 2003-04-14 Jim Blandy <jimb@redhat.com>
2742 * symmisc.c: #include "gdb_regex.h".
2743 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2745 * maint.c (maintenance_list_command): New function.
2746 (_initialize_maint_cmds): Register the above as commands.
2747 * symtab.h (maintenance_list_symtabs,
2748 maintenance_list_psymtabs): New declarations.
2749 * cli/cli-cmds.c (maintenancelistlist): New variable.
2750 (init_cmd_lists): Initialize it.
2751 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2752 * gdbcmd.h (maintenancelistlist): New declaration.
2753 * Makefile.in (symmisc.o): Update dependencies.
2755 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
2757 * s390-nat.c: Include asm/types.h for addr_t.
2759 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
2761 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2762 actually incoming type.
2764 2003-04-13 Andrew Cagney <cagney@redhat.com>
2766 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2767 get_next_frame and get_frame_saved_regs.
2769 2003-04-13 Andrew Cagney <cagney@redhat.com>
2771 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2772 of gdbarch_num_regs.
2774 2003-04-13 Andrew Cagney <cagney@redhat.com>
2776 * frame.h: Mention what replaced what in "struct frame_info".
2777 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2778 deprecated_update_frame_base_hack and
2779 deprecated_update_frame_pc_hack.
2780 * hppa-tdep.c: Ditto.
2782 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2784 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2785 to read_reg and update its comment. Remove regnum member.
2786 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2787 Don't call read_reg when setting in_reg. Call read_reg to get
2788 the frame base if it's in a register. Return the register number
2789 on the stack instead of in the context. Remove extra arguments
2791 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2792 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2793 the register number on the expression stack.
2794 (needs_frame_read_reg): Remove extra arguments.
2796 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2798 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2800 (execute_stack_op): All callers updated.
2801 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2802 * dwarf2loc.c (find_location_expression): New function.
2803 (dwarf_expr_frame_base): Call it.
2804 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2805 (dwarf2_tracepoint_var_ref): New function, broken out from
2806 locexpr_tracepoint_var_ref.
2807 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2809 (loclist_read_variable, loclist_read_needs_frame): New functions.
2810 (loclist_describe_location, loclist_tracepoint_var_ref): New
2812 (dwarf2_loclist_funcs): New struct location_funcs.
2813 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2814 (struct dwarf2_locexpr_baton): Add comments.
2815 (dwarf2_loclist_funcs): New extern.
2816 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2817 base_address and base_known.
2818 (dwarf_loc_buffer): New variable.
2819 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2820 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2821 (dwarf2_has_info): Initialize dwarf_loc_offset.
2822 (dwarf2_build_psymtabs): Read in .debug_loc.
2823 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2825 (psymtab_to_symtab_1): Likewise. Move base address calculation
2827 (dwarf2_get_pc_bounds): ... here. Use the base address from
2829 (dwarf2_symbol_mark_computed): Handle location lists.
2831 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2833 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2834 if the linkage name demangled successfully.
2836 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2838 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2839 disassmbly_flavour): Removed.
2841 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2843 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2845 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2847 2003-04-12 Andrew Cagney <cagney@redhat.com>
2849 * frame.h (struct frame_info): Move definition from here ...
2850 * frame.c (struct frame_info): ... to here.
2852 2003-04-12 Andrew Cagney <cagney@redhat.com>
2854 * gdbthread.h (save_infrun_state): Delete parameter
2856 (struct thread_info): Delete field "prev_func_start".
2857 (load_infrun_state): Ditto.
2858 * thread.c (load_infrun_state, save_infrun_state): Update.
2859 * infrun.c (prev_func_start): Delete variable.
2860 (context_switch, init_wait_for_inferior): Update.
2861 (stop_stepping, keep_going): Update.
2863 2003-04-12 Andrew Cagney <cagney@redhat.com>
2865 * gdbarch.sh: Add missing opaque declarations.
2866 * gdbarch.h: Regnerate.
2867 * symtab.h: Add missing opaque declarations.
2868 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2869 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2870 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2871 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2872 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2873 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2874 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2875 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2876 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2877 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2878 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2879 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2880 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2882 2003-04-11 Andrew Cagney <cagney@redhat.com>
2884 * frame.c (get_frame_id): Return this frame's "id".
2885 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2887 (legacy_saved_regs_this_id): Replace function body with
2889 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2890 FRAME_OBSTACK_ZALLOC.
2891 (create_new_frame): Mark the frame ID as valid.
2893 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2895 * Makefile.in (libbfd_h): Added missing setting.
2896 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2897 according to the selected ABI.
2899 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2901 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2903 2003-04-11 Andrew Cagney <cagney@redhat.com>
2905 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2906 SAVED_PC_AFTER_CALL.
2907 * gdbarch.h, gdbarch.c: Regenerate.
2908 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2909 * x86-64-tdep.c (x86_64_init_abi): Update.
2910 * vax-tdep.c (vax_gdbarch_init): Update.
2911 * v850-tdep.c (v850_gdbarch_init): Update.
2912 * sparc-tdep.c (sparc_gdbarch_init): Update.
2913 * sh-tdep.c (sh_gdbarch_init): Update.
2914 * s390-tdep.c (s390_gdbarch_init): Update.
2915 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2916 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2917 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2918 * mips-tdep.c (mips_gdbarch_init): Update.
2919 * mcore-tdep.c (mcore_gdbarch_init): Update.
2920 * m68k-tdep.c (m68k_gdbarch_init): Update.
2921 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2922 * ia64-tdep.c (ia64_gdbarch_init): Update.
2923 (ia64_saved_pc_after_call): Update declaration.
2924 * i386ly-tdep.c (i386lynx_init_abi): Update.
2925 * i386-tdep.c (i386_gdbarch_init): Update.
2926 * hppa-tdep.c (hppa_gdbarch_init): Update.
2927 * h8300-tdep.c (h8300_gdbarch_init): Update.
2928 * frv-tdep.c (frv_gdbarch_init): Update.
2929 * cris-tdep.c (cris_gdbarch_init): Update.
2930 * avr-tdep.c (avr_gdbarch_init): Update.
2931 * arm-tdep.c (arm_gdbarch_init): Update.
2932 * alpha-tdep.c (alpha_gdbarch_init): Update.
2933 * ns32knbsd-nat.c (frame_num_args): Update.
2934 * ns32k-tdep.c (umax_frame_num_args): Update.
2935 * mips-tdep.c (mips_init_frame_pc_first): Update.
2936 * infrun.c (step_over_function): Update.
2937 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2938 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2939 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2940 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2941 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2942 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2943 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2944 * arch-utils.c (init_frame_pc_default): Update.
2945 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2946 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2949 2003-04-11 Andrew Cagney <cagney@redhat.com>
2951 * i387-tdep.c: Update copyright.
2952 (i387_to_double): Delete function.
2953 (double_to_i387): Delete function.
2955 2003-04-10 Andrew Cagney <cagney@redhat.com>
2957 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2958 frame's function's address. Simplify.
2959 (d10v_frame_unwind_cache): Check that the frame's function is
2962 2003-04-10 Jim Blandy <jimb@redhat.com>
2964 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2965 call to set_gdbarch_deprecated_push_arguments.
2967 2003-04-10 Andrew Cagney <cagney@redhat.com>
2969 * frame.c (fprint_frame_id): New function.
2970 (fprint_frame_type, fprint_frame): New function.
2971 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2972 (create_sentinel_frame, get_frame_id): Ditto.
2973 (frame_id_p, frame_id_eq): Ditto.
2974 (frame_id_inner, create_new_frame): Ditto.
2975 (legacy_get_prev_frame, get_prev_frame): Ditto.
2976 (deprecated_update_frame_pc_hack): Ditto.
2977 (frame_register_unwind): Ditto.
2978 (deprecated_update_frame_base_hack): Ditto.
2980 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2982 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2983 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2984 frame_chain function.
2985 * Makefile.in: Add dependencies due to above change.
2987 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2989 * blockframe.c (legacy_frame_chain_valid): Move call to
2990 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2993 2003-04-09 Andrew Cagney <cagney@redhat.com>
2995 * frame.h (struct frame_id): Replace "pc" and "base" with
2996 "stack_addr" and "code_addr". Update comments.
2997 (frame_id_build): Update parameter names and comment.
2998 (struct frame_info): Replace "id_p" and "id" with "this_id".
2999 * dummy-frame.c (dummy_frame_this_id): Update.
3000 * breakpoint.c (print_one_breakpoint): Update.
3001 * frame.c (get_frame_id): Update.
3002 (get_frame_base, frame_id_build): Update.
3003 (create_sentinel_frame, legacy_get_prev_frame): Update.
3004 (deprecated_update_frame_base_hack): Update.
3005 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
3006 (frame_id_inner): Ditto.
3008 2003-04-09 Andrew Cagney <cagney@redhat.com>
3010 * defs.h (gdb_print_host_address): Make "addr" parameter a
3012 * utils.c (gdb_print_host_address): Update.
3014 2003-04-09 Kevin Buettner <kevinb@redhat.com>
3016 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
3017 register number for R0 is 0.
3019 2003-04-09 J. Brobecker <brobecker@gnat.com>
3021 * frame.h (struct gdbarch): Add opaque structure definition
3022 to avoid a compilation warning on LynxOS 4.0.
3024 2003-04-09 Andrew Cagney <cagney@redhat.com>
3026 * frame.h (struct frame_info): Delete field "pc". Replace
3027 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
3029 * frame.c (frame_pc_unwind): Update.
3030 (create_sentinel_frame): Do not set "pc".
3031 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
3032 (get_frame_pc): Call frame_pc_unwind.
3033 (deprecated_update_frame_pc_hack): Update.
3034 (create_new_frame): Use "pc" not "->pc".
3036 2003-04-09 Andrew Cagney <cagney@redhat.com>
3038 * frame.c (get_frame_id): Eliminate code updating "frame".
3039 (legacy_get_prev_frame): Ditto.
3040 (get_frame_base): Return id.base directly.
3041 (deprecated_update_frame_base_hack): Update "id.base".
3042 * frame.h (struct frame_info): Delete field "frame".
3044 2003-04-09 Andrew Cagney <cagney@redhat.com>
3046 * NEWS: Mention that the "Sequent family" is obsolete.
3047 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
3048 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3049 * configure.host: Obsolete i[3456]86-sequent-bsd*,
3050 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
3051 * config/i386/tm-ptx4.h: Obsolete file.
3052 * config/i386/tm-ptx.h: Obsolete file.
3053 * symm-tdep.c: Obsolete file.
3054 * config/i386/symmetry.mt: Obsolete file.
3055 * config/i386/tm-symmetry.h: Obsolete file.
3056 * symm-nat.c: Obsolete file.
3057 * config/i386/nm-symmetry.h: Obsolete file.
3058 * config/i386/xm-symmetry.h: Obsolete file.
3059 * config/i386/symmetry.mh: Obsolete file.
3060 * config/i386/nm-ptx4.h: Obsolete file.
3061 * config/i386/ptx4.mh: Obsolete file.
3062 * config/i386/ptx.mt: Obsolete file.
3063 * config/i386/ptx.mh: Obsolete file.
3064 * config/i386/xm-ptx4.h: Obsolete file.
3065 * config/i386/xm-ptx.h: Obsolete file.
3067 2003-04-09 Andrew Cagney <cagney@redhat.com>
3069 Obsolete mips*-*-mach3*.
3070 * NEWS: Mention that mips*-*-mach3* is obsolete.
3071 * m3-nat.c: Obsolete file.
3072 * config/nm-m3.h: Obsolete file.
3073 * config/mips/tm-mipsm3.h: Obsolete file.
3074 * config/mips/mipsm3.mt: Obsolete file.
3075 * config/mips/mipsm3.mh: Obsolete file.
3076 * config/mips/xm-mipsm3.h: Obsolete file.
3077 * mipsm3-nat.c: Obsolete file.
3078 * configure.host: Obsolete mips-dec-mach3*.
3079 * configure.tgt: Obsolete mips*-*-mach3*.
3081 2003-04-09 Andrew Cagney <cagney@redhat.com>
3083 * doublest.h: Update copyright.
3084 (deprecated_store_floating, deprecated_extract_floating): Rename
3085 store_floating and extract_floating. Update comments.
3086 * doublest.c: Update copyright.
3087 (extract_floating_by_length): Replace extract_floating.
3088 (store_floating_by_length): Replace store_floating.
3089 (deprecated_extract_floating): New function.
3090 (deprecated_store_floating): New function.
3091 (extract_typed_floating): Call extract_floating_by_length.
3092 (store_typed_floating): Call store_floating_by_length.
3093 * x86-64-tdep.c (x86_64_store_return_value): Update.
3094 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
3095 (sh64_extract_return_value): Update.
3096 (sh_sh4_register_convert_to_virtual): Update.
3097 (sh_sh64_register_convert_to_virtual): Update.
3098 (sh_sh4_register_convert_to_raw): Update.
3099 (sh_sh64_register_convert_to_raw): Update.
3100 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
3101 (rs6000_register_convert_to_raw): Update.
3102 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
3103 (ia64_register_convert_to_raw): Update.
3104 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
3105 (REGISTER_CONVERT_TO_VIRTUAL): Update.
3106 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
3107 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
3108 (alpha_register_convert_to_raw): Update.
3110 2003-04-08 Andrew Cagney <cagney@redhat.com>
3112 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
3113 * gdbarch.h, gdbarch.c: Re-generate.
3114 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
3115 (d10v_gdbarch_init): Do not set saved_pc_after_call.
3116 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
3117 conditionally, use frame_pc_unwind as an alternative. Add
3119 * arch-utils.c (init_frame_pc_default): Only call
3120 SAVED_PC_AFTER_CALL when available.
3122 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3124 * infrun.c (stop_soon): Rename from stop_soon_quietly.
3125 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
3126 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
3127 (start_remote): Ditto.
3128 (handle_inferior_event): Ditto.
3129 (save_inferior_status): Ditto.
3130 (restore_inferior_status): Ditto.
3131 * infcmd.c (attach_command): Ditto.
3132 * fork-child.c (startup_inferior): Ditto.
3133 * inferior.h (stop_soon): Rename from stop_soon_quietly.
3134 * alpha-tdep.c (heuristic_proc_start): Ditto.
3135 * mips-tdep.c (heuristic_proc_start): Ditto.
3136 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
3137 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
3138 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
3139 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
3140 * remote-vx.c (vx_create_inferior): Ditto.
3142 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
3144 * infrun.c (stop_soon_quietly): Make it an enum, to better
3145 override the default behavior of handle_inferior_event.
3146 (clear_proceed_status): Update uses of stop_soon_quietly to
3147 reflect that it is now an enum.
3148 (start_remote): Ditto.
3149 (handle_inferior_event): Change logic a bit if stop_soon_quietly
3150 is set to handle the new GNU/Linux kernel behavior for
3151 attach/sigstop. Update uses of stop_soon_quietly.
3152 * inferior.h (enum stop_kind): New enum.
3153 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
3154 Reset normal handle_inferior_event behavior, afterwards.
3155 * fork-child.c (startup_inferior): Update.
3156 * alpha-tdep.c (heuristic_proc_start): Update.
3157 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
3158 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
3159 * solib-osf.c (osf_solib_create_inferior_hook): Update.
3160 * solib-irix.c (irix_solib_create_inferior_hook): Update.
3161 * remote-vx.c (vx_create_inferior): Update.
3162 * mips-tdep.c (heuristic_proc_start): Update.
3164 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
3166 * disasm.c (dump_insns): Move variables inside loop, or they will
3167 be freed more than once, causing wild memory corruptions.
3168 (gdb_disassembly): Look for the substring "-thread",
3169 instead of "-threads" in the target name, to make sure to find
3170 the 'multi-thread' target. Also, make sure we do the right thing
3171 with the "core" target.
3173 2003-04-07 Kevin Buettner <kevinb@redhat.com>
3175 * mips-tdep.c (mips_print_fp_register): New function, created from
3176 do_fp_register_row(). Registers are now (also) printed as hex.
3177 Only one register is printed per row.
3178 (mips_print_register, do_fp_register_row): Print floating point
3179 registers with mips_print_fp_register().
3181 2003-04-06 Andrew Cagney <cagney@redhat.com>
3183 * valprint.h (inspect_it): Add extern declaration.
3184 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
3185 (selectors_info, classes_info): Ditto.
3186 (find_objc_msgcall): Fix indentation.
3187 (objc_printstr): Delete extern declarations.
3189 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
3191 2003-04-06 Andrew Cagney <cagney@redhat.com>
3193 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
3195 * frame.c (legacy_saved_regs_this_id): Update.
3196 (legacy_get_prev_frame): Update.
3197 * xstormy16-tdep.c: Update comment.
3198 * sparc-tdep.c (sparc_frame_chain): Update comment.
3199 * blockframe.c (legacy_frame_chain_valid): Update.
3201 2003-04-06 Andrew Cagney <cagney@redhat.com>
3203 * valprint.c (val_print_type_code_int): Delete #ifdef
3204 PRINT_TYPELESS_INTEGER code.
3206 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
3207 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
3208 multi-arch definition.
3209 * gdbarch.h: Re-generate.
3211 2003-04-05 Andrew Cagney <cagney@redhat.com>
3213 Eliminate FRAME_FIND_SAVED_REGS.
3214 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3215 Change FSR parameter to a pointer.
3216 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
3217 Assume FSR parameter is a pointer.
3218 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
3220 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
3221 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
3222 saved_regs a pointer.
3223 (hppa_frame_saved_pc): Ditto.
3224 (find_dummy_frame_regs): Make frame_saved_regs a pointer
3225 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
3227 (restore_pc_queue): Make fsr a pointer.
3228 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
3229 (hppa_frame_chain): Make saved_regs a pointer, call
3230 hppa_frame_init_saved_regs.
3231 * sparc-tdep.c: Include "gdb_assert.h".
3232 (sparc_frame_find_saved_regs): Replace internal_error with
3234 * remote-vxsparc.c (vx_read_register): Delete reference to
3235 FRAME_FIND_SAVED_REGS.
3236 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
3237 * gdbarch.h: Regenerate.
3238 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3239 (deprecated_get_frame_saved_regs): Delete declaration.
3240 (struct frame_saved_regs): Delete definition.
3241 * frame.c (deprecated_get_frame_saved_regs): Delete function.
3242 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
3243 (hppa_frame_find_saved_regs): Delete declaration.
3244 (FRAME_FIND_SAVED_REGS): Delete macro.
3245 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
3246 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
3247 FRAME_FIND_SAVED_REGS in comment.
3249 2003-04-05 Andrew Cagney <cagney@redhat.com>
3251 * frame.c (frame_func_unwind, get_frame_func): New functions.
3252 * frame.h (get_frame_func, frame_func_unwind): Declare.
3253 (struct frame_info): Add field "prev_func" for caching the
3254 previous frame's function address.
3255 * arm-tdep.c (arm_frameless_function_invocation): Combine
3256 get_pc_function_start and get_frame_pc into get_frame_func.
3257 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3258 (sh64_nofp_frame_init_saved_regs): Ditto.
3259 * s390-tdep.c (s390_function_start): Ditto.
3260 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
3261 (rs6000_frameless_function_invocation): Ditto.
3262 (rs6000_frame_saved_pc): Ditto.
3263 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
3264 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
3265 * i386-tdep.c (i386_frameless_signal_p): Ditto.
3266 (i386_frame_init_saved_regs): Ditto.
3267 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
3268 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
3269 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
3270 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3271 * blockframe.c (frameless_look_for_prologue): Ditto.
3273 2003-04-05 Andrew Cagney <cagney@redhat.com>
3275 * frame.c (legacy_get_prev_frame): Link prev to next at the
3276 function start. Update comments.
3278 2003-04-05 Andrew Cagney <cagney@redhat.com>
3280 * frame.c (get_frame_id): Update comment.
3281 (legacy_get_prev_frame): Update comment.
3282 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
3283 * gdbarch.h: Regenerate.
3284 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
3285 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
3287 2003-04-05 Andrew Cagney <cagney@redhat.com>
3289 * stack.c (print_frame_info): Use get_frame_pc.
3291 2003-04-04 Andrew Cagney <cagney@redhat.com>
3293 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
3294 the frame's type from the unwinder.
3295 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
3296 (create_new_frame, legacy_get_prev_frame): When the unwinder's
3297 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
3298 (get_frame_base_address): Use get_frame_type.
3299 (get_frame_locals_address, get_frame_args_address): Ditto.
3300 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
3301 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
3302 (struct frame_info): Add comment explaining why the frame contains
3304 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
3305 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
3306 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
3308 * frame-unwind.h: Include "frame.h".
3309 (struct frame_unwind): Add "type" field.
3310 * Makefile.in (frame_unwind_h): Add $(frame_h).
3312 2003-04-04 Andrew Cagney <cagney@redhat.com>
3314 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
3315 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
3316 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
3318 (d10v_unwind_dummy_id): Use frame_id_build.
3319 * frame.c (find_frame_sal): Use get_frame_pc.
3320 (create_new_frame): Use deprecated_update_frame_pc_hack and
3321 deprecated_update_frame_base_hack.
3322 (create_sentinel_frame): Add comment about ->pc going away.
3323 (get_prev_frame): Add comment about ->pc going away.
3324 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
3325 frame_id_build, deprecated_update_frame_pc_hack and
3326 deprecated_update_frame_base_hack.
3327 (select_frame): Use get_frame_pc.
3328 (legacy_saved_regs_this_id): Use frame_id_build.
3330 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
3332 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
3333 signed integer case.
3334 (classify_argument): Handle enumerations and references.
3336 2003-04-04 Andrew Cagney <cagney@redhat.com>
3338 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
3341 2003-04-01 Adam Fedor <fedor@gnu.org>
3343 * gdb/objc-lang.c (selectors_info): Replace calls to
3344 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
3345 SYMBOL_NATURAL_NAME.
3346 (classes_info, find_methods): Likewise.
3348 2003-04-03 Kevin Buettner <kevinb@redhat.com>
3350 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
3351 ``mach'' to the value determined by bfd_default_set_arch_mach().
3353 2003-04-02 Bob Rossi <bob_rossi@cox.net>
3355 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
3356 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
3357 (mi-cmd-file.o): Update dependencies.
3359 2003-04-01 Kevin Buettner <kevinb@redhat.com>
3361 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3362 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
3364 2003-04-01 Adam Fedor <fedor@gnu.org>
3366 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
3367 * language.h (struct language_defn): Add la_demangle.
3368 (language_demangle): Declare.
3369 * language.c (language_demangle): New function.
3370 (unk_lang_demangle): Likewise.
3371 (unknown_language_defn, auto_language_defn, local_language_defn):
3372 Add ukn_lang_demangle.
3373 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
3374 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
3375 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
3376 (cplus_language_defn): Add cplus_demangle for la_demangle element.
3377 * jv-lang.c (java_demangle): New function
3378 (java_language_defn): Use it for la_demangle element.
3379 * objc-lang.c (objc_demangle): Add options argument
3380 (objc_language_defn): Use objc_demangle for la_demangle element.
3381 * maint.c (maintenance_demangle): Replace switch with
3382 call to language_demangle.
3383 * utils.c (fprintf_symbol_filtered): Likewise.
3385 2003-04-01 Andrew Cagney <cagney@redhat.com>
3387 * printcmd.c (print_frame_nameless_args): Delete #ifdef
3388 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
3389 PRINT_TYPELESS_INTEGER.
3390 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
3391 PUSH_RETURN_ADDRESS.
3393 2003-04-01 Andrew Cagney <cagney@redhat.com>
3395 * Makefile.in (d10v-tdep.o): Update dependencies.
3396 * d10v-tdep.c: Include "frame-base.h".
3397 (d10v_frame_unwind): Make constant.
3398 (d10v_frame_base_address): New function.
3399 (d10v_frame_base): New variable.
3400 (d10v_gdbarch_init): Set frame_base default.
3401 (struct d10v_unwind_cache): Add the field "prev_sp". Update
3403 (d10v_frame_unwind_cache): Set and use "prev_sp".
3404 (d10v_frame_this_id): Use the previous frame's inner most stack
3405 address and this frame's func address for the frame ID. Use
3406 frame_id_build. Don't analyze beyond the current instruction.
3408 2003-04-01 Andrew Cagney <cagney@redhat.com>
3410 * frame.h (get_frame_locals_address, get_frame_args_address):
3411 Refer to the base address, instead of the address of the first
3414 2003-04-01 Andrew Cagney <cagney@redhat.com>
3416 Add frame debug info addresses:
3417 * frame-base.c: New file.
3418 * frame-base.h: New file.
3419 * frame.h (struct frame_base): Add opaque declaration.
3420 (get_frame_base): Update comment.
3421 (get_frame_base_address): Declare.
3422 (get_frame_locals_address): Declare.
3423 (get_frame_args_address): Declare.
3424 (struct frame_info): Add "base" and "base_cache". Update
3425 comments on the unwinder.
3426 * frame.c: Include "frame-base.h".
3427 (get_frame_locals_address): New function.
3428 (get_frame_base_address): New function.
3429 (get_frame_args_address): New function.
3430 * findvar.c (read_var_value): Use get_frame_locals_address and
3431 get_frame_args_address.
3432 * stack.c (frame_info): Use get_frame_locals_address and
3433 get_frame_args_address.
3434 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
3435 moved to "frame-base.c".
3436 * printcmd.c (print_frame_nameless_args): Ditto.
3437 * symtab.h (address_class): Update comments.
3438 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
3439 get_frame_base_address.
3440 * dwarf2expr.c (execute_stack_op): Ditto.
3441 * Makefile.in (frame_base_h): Define.
3442 (frame.o): Update dependencies.
3443 (frame-base.o): Add dependencies.
3444 (SFILES): Add frame-base.c.
3445 (COMMON_OBS): Add frame-base.o.
3447 2003-04-01 Andrew Cagney <cagney@redhat.com>
3449 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
3450 CALL_DUMMY_LENGTH): Ditto.
3451 * gdbarch.c: Re-generate.
3452 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
3453 (CALL_DUMMY_LENGTH): Delete macro.
3454 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3455 * arm-tdep.c (arm_gdbarch_init): Ditto.
3456 * avr-tdep.c (avr_gdbarch_init): Ditto.
3457 * cris-tdep.c (cris_gdbarch_init): Ditto.
3458 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3459 * frv-tdep.c (frv_gdbarch_init): Ditto.
3460 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3461 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3462 * i386-tdep.c (i386_gdbarch_init): Ditto.
3463 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3464 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3465 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3466 * mips-tdep.c (mips_gdbarch_init): Ditto.
3467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3468 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3469 * s390-tdep.c (s390_gdbarch_init): Ditto.
3470 * sh-tdep.c (sh_gdbarch_init): Ditto.
3471 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3472 * v850-tdep.c (v850_gdbarch_init): Ditto.
3473 * vax-tdep.c (vax_gdbarch_init): Ditto.
3474 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3476 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
3478 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3480 2003-04-01 Andrew Cagney <cagney@redhat.com>
3482 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3483 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3484 * gdbarch.h, gdbarch.c: Re-generate.
3485 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3486 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3487 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3488 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3489 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3490 * infcmd.c (run_stack_dummy): Simplify assuming
3491 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3492 * infrun.c (handle_inferior_event): Ditto.
3493 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3494 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3495 * arm-tdep.c (arm_gdbarch_init): Ditto.
3496 * avr-tdep.c (avr_gdbarch_init): Ditto.
3497 * cris-tdep.c (cris_gdbarch_init): Ditto.
3498 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3499 * frv-tdep.c (frv_gdbarch_init): Ditto.
3500 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3501 * i386-tdep.c (i386_gdbarch_init): Ditto.
3502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3503 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3504 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3505 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3506 * mips-tdep.c (mips_gdbarch_init): Ditto.
3507 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3508 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3509 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3510 * s390-tdep.c (s390_gdbarch_init): Ditto.
3511 * sh-tdep.c (sh_gdbarch_init): Ditto.
3512 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3513 * v850-tdep.c (v850_gdbarch_init): Ditto.
3514 * vax-tdep.c (vax_gdbarch_init): Ditto.
3515 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3517 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
3519 * symfile.c (symfile_relocate_debug_section): Update call to
3520 bfd_simple_get_relocated_section_contents.
3522 2003-03-31 Andrew Cagney <cagney@redhat.com>
3524 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3525 * gdbarch.h, gdbarch.c: Regenerate.
3526 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3527 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3529 * frame.h (generic_fix_call_dummy): Delete declaration.
3530 * dummy-frame.h: Update comment.
3531 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3532 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3534 * sh-tdep.c (sh_gdbarch_init): Ditto.
3535 * s390-tdep.c (s390_gdbarch_init): Ditto.
3536 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3537 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3538 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3539 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3540 * i386-tdep.c (i386_gdbarch_init): Ditto.
3541 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3542 * frv-tdep.c (frv_gdbarch_init): Ditto.
3543 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3544 * cris-tdep.c (cris_gdbarch_init): Ditto.
3545 * avr-tdep.c (avr_gdbarch_init): Ditto.
3546 * arm-tdep.c (arm_gdbarch_init): Ditto.
3548 2003-03-31 J. Brobecker <brobecker@gnat.com>
3550 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3551 (INIT_FRAME_AP): Likewise.
3552 (EXTRA_FRAME_INFO): Likewise.
3554 2003-03-31 Andrew Cagney <cagney@redhat.com>
3556 * gdbarch.sh: Include "symfile.h".
3557 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3558 * gdbarch.h, gdbarch.c: Re-generate.
3559 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3560 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3561 call_dummy_address, the default is at entry_point_address.
3562 * v850-tdep.c (v850_gdbarch_init): Ditto.
3563 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3564 * sh-tdep.c (sh_gdbarch_init): Ditto.
3565 * s390-tdep.c (s390_gdbarch_init): Ditto.
3566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3567 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3568 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3569 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3570 * i386-tdep.c (i386_gdbarch_init): Ditto.
3571 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3572 * frv-tdep.c (frv_gdbarch_init): Ditto.
3573 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3574 * cris-tdep.c (cris_gdbarch_init): Ditto.
3575 * arm-tdep.c (arm_gdbarch_init): Ditto.
3577 2003-03-31 Andrew Cagney <cagney@redhat.com>
3579 * gdbarch.sh (CALL_DUMMY_P): Delete.
3580 * gdbarch.h, gdbarch.c: Re-generate.
3581 * inferior.h (CALL_DUMMY_P): Delete macro.
3582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3583 * vax-tdep.c (vax_gdbarch_init): Update.
3584 * v850-tdep.c (v850_gdbarch_init): Update.
3585 * sparc-tdep.c (sparc_gdbarch_init): Update.
3586 * sh-tdep.c (sh_gdbarch_init): Update.
3587 * s390-tdep.c (s390_gdbarch_init): Update.
3588 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3589 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3590 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3591 * mips-tdep.c (mips_gdbarch_init): Update.
3592 * mcore-tdep.c (mcore_gdbarch_init): Update.
3593 * m68k-tdep.c (m68k_gdbarch_init): Update.
3594 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3595 * ia64-tdep.c (ia64_gdbarch_init): Update.
3596 * i386-tdep.c (i386_gdbarch_init): Update.
3597 * h8300-tdep.c (h8300_gdbarch_init): Update.
3598 * frv-tdep.c (frv_gdbarch_init): Update.
3599 * d10v-tdep.c (d10v_gdbarch_init): Update.
3600 * cris-tdep.c (cris_gdbarch_init): Update.
3601 * breakpoint.c (deprecated_frame_in_dummy): Update.
3602 * avr-tdep.c (avr_gdbarch_init): Update.
3603 * alpha-tdep.c (alpha_gdbarch_init): Update.
3604 * arm-tdep.c (arm_gdbarch_init): Update.
3605 * dummy-frame.c (dummy_frame_this_id): Update comments.
3606 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3607 * frame.c (legacy_get_prev_frame): Ditto.
3608 * valops.c (call_function_by_hand): Delete function.
3609 (hand_function_call): Rename to call_function_by_hand
3611 2003-03-30 Andrew Cagney <cagney@redhat.com>
3613 2002-11-10 Klee Dienes <kdienes@apple.com>
3614 * value.h (struct value): Update comment.
3616 2003-03-30 Andrew Cagney <cagney@redhat.com>
3618 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3620 (d10v_gdbarch_init): Do not set fp_regnum.
3622 * frame.c (get_frame_base): Force ID initialization.
3623 (get_prev_frame): Move computation of the frame ID from here ...
3624 (get_frame_id): ... to here.
3625 (legacy_get_prev_frame): Mark the frame ID as valid.
3626 * frame.h (struct frame_info): Add field "id_p".
3628 2003-03-30 Mark Kettenis <kettenis@gnu.org>
3630 * i386-tdep.c (i386_store_struct_return): Removed.
3631 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3633 2003-03-30 Andrew Cagney <cagney@redhat.com>
3635 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3636 * gdbarch.h, gdbarch.c: Regenerate.
3637 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3638 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3639 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3640 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3641 * i386-tdep.c (i386_gdbarch_init): Ditto.
3642 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3643 * cris-tdep.c (cris_gdbarch_init): Ditto.
3644 * vax-tdep.c (vax_gdbarch_init): Ditto.
3645 * s390-tdep.c (s390_gdbarch_init): Ditto.
3646 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3647 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3648 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3649 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3650 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3651 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3652 * sparc-tdep.c (sparc_gdbarch_init): Update.
3653 * sh-tdep.c (sh_gdbarch_init): Update.
3654 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3655 * mips-tdep.c (mips_gdbarch_init): Update.
3656 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3657 * ia64-tdep.c (ia64_gdbarch_init): Update.
3658 * frv-tdep.c (frv_gdbarch_init): Update.
3659 * avr-tdep.c (avr_gdbarch_init): Update.
3660 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3661 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3662 instead of when push_dummy_call is not available.
3664 2003-03-30 Andrew Cagney <cagney@redhat.com>
3666 * infttrace.c: Include "gdbthread.h".
3667 (parent_attach_all): Fix function signature.
3668 (call_ptrace): Update call.
3669 * Makefile.in (infttrace.o): Update dependencies.
3671 2003-03-30 Andrew Cagney <cagney@redhat.com>
3673 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3674 PUSH_RETURN_ADDRESS.
3675 * gdbarch.h, gdbarch.c: Regenerate.
3676 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3677 * x86-64-tdep.c (x86_64_init_abi): Update.
3678 * v850-tdep.c (v850_gdbarch_init): Update.
3679 * sparc-tdep.c (sparc_gdbarch_init): Update.
3680 * sh-tdep.c (sh_gdbarch_init): Update.
3681 * s390-tdep.c (s390_gdbarch_init): Update.
3682 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3683 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3684 * mips-tdep.c (mips_gdbarch_init): Update.
3685 * mcore-tdep.c (mcore_gdbarch_init): Update.
3686 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3687 * ia64-tdep.c (ia64_gdbarch_init): Update.
3688 * i386-tdep.c (i386_gdbarch_init): Update.
3689 * h8300-tdep.c (h8300_gdbarch_init): Update.
3690 * frv-tdep.c (frv_gdbarch_init): Update.
3691 * cris-tdep.c (cris_gdbarch_init): Update.
3692 * avr-tdep.c (avr_gdbarch_init): Update.
3693 * arm-tdep.c (arm_gdbarch_init): Update.
3694 * valops.c (hand_function_call): Update.
3696 2003-03-29 Andrew Cagney <cagney@redhat.com>
3698 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3699 sizeof_call_dummy_words.
3700 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3702 * gdbarch.h: Regenerate.
3704 2003-03-29 Andrew Cagney <cagney@redhat.com>
3706 * infttrace.h: New file.
3707 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3708 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3709 (hpread_read_doc_function_type): Detect an initialized type1.
3710 (hpread_quick_traverse): Initialize mod_name_string.
3711 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3712 (som_solib_get_solib_by_pc): Declare.
3713 (so_lib_thread_start_addr): Declare.
3714 (no_shared_libraries): Declare.
3715 * somread.c (init_import_symbols): Make static. Add forward
3717 * config/pa/nm-hppah.h: Include "infttrace.h" for
3719 (hppa_insert_hw_watchpoint): Declare.
3720 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3721 * hppah-nat.c: Include "gdb_string.h".
3722 (parent_attach_all): Delete extern declaration, moved to
3724 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3726 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3727 * Makefile.in (infttrace_h): Define.
3728 (hpread.o): Update dependencies.
3729 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3730 * hppa-hpux-tdep.c: Include "gdb_string.h".
3731 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3732 * infrun.c (handle_inferior_event): Always initialize
3733 stepped_after_stopped_by_watchpoint. Add default and remove
3734 fallthrough in switch statement.
3735 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3737 (hppa_remove_hw_watchpoint): Ditto.
3739 2003-03-29 Andrew Cagney <cagney@redhat.com>
3741 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3744 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
3746 * arm-tdep.c (arm_push_arguments): Delete.
3747 (struct stack_item): New type.
3748 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3749 (arm_store_struct_return): Delte.
3750 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3751 arm_push_arguments or arm_store_struct_return.
3753 2003-03-28 Andrew Cagney <cagney@redhat.com>
3755 * Makefile.in (d10v-tdep.o): Update dependencies.
3756 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3757 * d10v-tdep.c: Include "remote.h".
3758 (target_resume_hook): Delete extern declaration.
3759 (target_wait_loop_hook): Ditto.
3760 (tdisassemble_command): Eliminate assignment in "if" conditional.
3761 (d10v_ts2_register_sim_regno): Eliminate call to
3762 legacy_register_sim_regno.
3763 (d10v_ts3_register_sim_regno): Ditto.
3765 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3767 * thread.c: Reindented.
3769 * linux-proc.c: Ditto.
3771 2003-03-28 Bob Rossi <bob_rossi@cox.net>
3773 * MAINTAINERS (write after approval): Add myself.
3775 2003-03-27 Theodore A. Roth <troth@openavr.org>
3777 * objc-exp.y: Add missing semi-colons.
3779 2003-03-27 Andrew Cagney <cagney@redhat.com>
3781 * regcache.c (write_sp): Delete function and references.
3782 * inferior.h (write_sp): Delete declaration.
3783 * valops.c (hand_function_call): Replace write_sp with
3785 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3786 (sparc_pop_frame): Ditto.
3788 2003-03-27 Andrew Cagney <cagney@redhat.com>
3790 * NEWS: Mention removal of support for hppa*-*-bsd* and
3791 hppa*-*-osf* natives, and hppa*-*-pro* target.
3792 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3793 * config/pa/xm-pa.h: Obsolete file.
3794 * config/pa/xm-hppab.h: Obsolete file.
3795 * config/pa/nm-hppab.h: Obsolete file.
3796 * config/pa/tm-hppab.h: Obsolete file.
3797 * config/pa/tm-hppao.h: Obsolete file.
3798 * config/pa/nm-hppao.h: Obsolete file.
3799 * config/pa/tm-pro.h: Obsolete file.
3800 * config/pa/hppaosf.mt: Obsolete file.
3801 * config/pa/hppaosf.mh: Obsolete file.
3802 * config/pa/hppapro.mt: Obsolete file.
3803 * config/pa/hppabsd.mt: Obsolete file.
3804 * config/pa/hppabsd.mh: Obsolete file.
3805 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3806 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3809 2003-03-27 Andrew Cagney <cagney@redhat.com>
3811 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3812 push_arguments. Don't set push_return_address or write_sp.
3813 (d10v_push_dummy_call): Replace d10v_push_arguments.
3814 (d10v_push_return_address, d10v_write_sp): Delete function,
3815 handled by push_dummy_call.
3817 2003-03-26 Andrew Cagney <cagney@redhat.com>
3819 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3820 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3821 regcache and dummy_addr parameters.
3822 * gdbarch.h, gdbarch.c: Re-generate.
3823 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3824 available; assume it will handle stack alignment and return
3825 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3826 legacy_push_arguments.
3827 (legacy_push_arguments): Rename default_push_arguments.
3828 * value.h (legacy_push_arguments): Rename default_push_arguments.
3829 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3830 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3831 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3832 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3833 * config/i386/tm-symmetry.h: Update.
3834 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3835 * x86-64-tdep.c (x86_64_init_abi): Update.
3836 * v850-tdep.c (v850_gdbarch_init): Update.
3837 * sparc-tdep.c (sparc_gdbarch_init): Update.
3838 * sh-tdep.c (sh_gdbarch_init): Update.
3839 * s390-tdep.c (s390_gdbarch_init): Update.
3840 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3841 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3842 * mips-tdep.c (mips_gdbarch_init): Update.
3843 * mcore-tdep.c (mcore_gdbarch_init): Update.
3844 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3845 * ia64-tdep.c (ia64_gdbarch_init): Update.
3846 * i386-tdep.c (i386_gdbarch_init): Update.
3847 * hppa-tdep.c (hppa_gdbarch_init): Update.
3848 * h8300-tdep.c (h8300_gdbarch_init): Update.
3849 * frv-tdep.c (frv_gdbarch_init): Update.
3850 * d10v-tdep.c (d10v_gdbarch_init): Update.
3851 * cris-tdep.c (cris_gdbarch_init): Update.
3852 * avr-tdep.c (avr_gdbarch_init): Update.
3853 * arm-tdep.c (arm_gdbarch_init): Update.
3854 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3855 * alpha-tdep.c (alpha_gdbarch_init): Update.
3857 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3859 * signals/signals.c (do_target_signal_to_host): Correct realtime
3862 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3864 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3865 (struct sal_chain, map_catch_names): Remove.
3866 (catch_exception_command_1): Don't call
3867 handle_gnu_4_16_catch_command.
3869 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3871 From Mark Dettinger <dettinge@de.ibm.com>:
3872 * dwarf2cfi.c (read_2u): Increment pointer by two.
3874 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3876 * signals/signals.c: Fix typos in last change.
3878 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3880 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3881 not already defined. Use __SIGRTMIN if available.
3882 (target_signal_from_host): Remove SIGRTMIN block.
3883 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3884 the signal is within the realtime range.
3886 2003-03-25 Adam Fedor <fedor@gnu.org>
3888 * Makefile.in (infrun.o): Add $(language_h)
3889 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3890 for language specific trampolines.
3891 * language.h (struct language_defn): Add skip_trampoline.
3892 (skip_language_trampoline): Declare.
3893 * language.c (unk_lang_trampoline, skip_language_trampoline):
3895 (unknown_language_defn, auto_language_defn, local_language_defn):
3896 Add ukn_lang_trampoline.
3897 * ada-lang.c (ada_language_defn): Add NULL for language
3898 specific skip_trampoline.
3899 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3900 scm-lang.c: Likewise.
3901 * objc-lang.c (objc_skip_trampoline): New function.
3902 (objc_language_defn): Add objc_skip_trampoline.
3904 2003-03-25 Andrew Cagney <cagney@redhat.com>
3906 * frame.c (get_prev_frame): Delay validating a frame's ID -
3907 non-NULL, didn't go backwards - until an attempt to unwind it to
3910 2003-03-25 Andrew Cagney <cagney@redhat.com>
3912 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3913 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3914 * gdbarch.h, gdbarch.c: Re-generate.
3915 * config/sparc/tm-sparc.h
3916 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3917 * sparc-tdep.c (sparc_gdbarch_init): Set
3918 deprecated_extra_stack_alignment_needed.
3919 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3920 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3921 extra_stack_alignment_needed.
3922 * v850-tdep.c (v850_gdbarch_init): Ditto.
3923 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3924 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3925 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3926 * cris-tdep.c (cris_gdbarch_init): Ditto.
3927 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3928 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3930 2003-03-25 Andrew Cagney <cagney@redhat.com>
3932 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3933 STORE_STRUCT_RETURN.
3934 * gdbarch.h, gdbarch.c: Regenerate.
3935 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3936 (d10v_push_arguments): Set the struct return register.
3937 (d10v_gdbarch_init): Update.
3938 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3939 * x86-64-tdep.c (x86_64_init_abi): Update.
3940 * vax-tdep.c (vax_gdbarch_init): Update.
3941 * v850-tdep.c (v850_gdbarch_init): Update.
3942 * sparc-tdep.c (sparc_gdbarch_init): Update.
3943 * sh-tdep.c (sh_gdbarch_init): Update.
3944 * s390-tdep.c (s390_gdbarch_init): Update.
3945 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3946 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3947 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3948 * mips-tdep.c (mips_gdbarch_init): Update.
3949 * mcore-tdep.c (mcore_gdbarch_init): Update.
3950 * m68k-tdep.c (m68k_gdbarch_init): Update.
3951 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3952 * ia64-tdep.c (ia64_gdbarch_init): Update.
3953 * i386-tdep.c (i386_gdbarch_init): Update.
3954 * hppa-tdep.c (hppa_gdbarch_init): Update.
3955 * h8300-tdep.c (h8300_gdbarch_init): Update.
3956 * frv-tdep.c (frv_gdbarch_init): Update.
3957 * cris-tdep.c (cris_gdbarch_init): Update.
3958 * avr-tdep.c (avr_gdbarch_init): Update.
3959 * arm-tdep.c (arm_gdbarch_init): Update.
3960 * alpha-tdep.c (alpha_gdbarch_init): Update.
3962 2003-03-25 Andrew Cagney <cagney@redhat.com>
3964 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3965 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3966 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3967 * gdbarch.h, gdbarch.c: Regenerate.
3968 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3969 call_dummy_stack_adjust_p.
3970 * vax-tdep.c (vax_gdbarch_init): Ditto.
3971 * v850-tdep.c (v850_gdbarch_init): Ditto.
3972 * sh-tdep.c (sh_gdbarch_init): Ditto.
3973 * s390-tdep.c (s390_gdbarch_init): Ditto.
3974 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3975 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3976 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3977 * mips-tdep.c (mips_gdbarch_init): Ditto.
3978 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3979 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3980 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3981 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3982 * i386-tdep.c (i386_gdbarch_init): Ditto.
3983 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3984 * frv-tdep.c (frv_gdbarch_init): Ditto.
3985 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3986 * cris-tdep.c (cris_gdbarch_init): Ditto.
3987 * avr-tdep.c (avr_gdbarch_init): Ditto.
3988 * arm-tdep.c (arm_gdbarch_init): Ditto.
3989 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3990 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3991 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3992 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3993 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3994 call_dummy_stack_adjust_p.
3995 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
3996 (CALL_DUMMY_STACK_ADJUST): Delete macro.
3997 * sparc-tdep.c (sparc32_push_arguments): Update.
3998 * valops.c (hand_function_call): Update.
4000 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
4002 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
4003 set_gdbarch_char_signed.
4005 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4008 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
4010 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
4012 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
4013 (_initialize_arm_tdep): Don't set tm_print_insn.
4015 2003-03-24 Adam Fedor <fedor@gnu.org>
4017 * Makefile.in (YYOBJ): Add objc-exp.tab.o
4018 * objc-lang.h: Add multiple inclusion protection.
4019 (start_msglist, add_msglist, end_msglist): Additional declarations.
4021 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
4023 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
4024 value was renamed to ARM_FLOAT_SOFT_FPA.
4026 2003-03-23 Andrew Cagney <cagney@redhat.com>
4028 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
4029 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
4030 * gdbarch.h, gdbarch.c: Regenerate.
4031 * valops.c (hand_function_call): Update.
4032 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4033 * frame.c (legacy_saved_regs_this_id): Update.
4034 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
4035 * dummy-frame.h: Update.
4036 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
4037 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
4038 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
4039 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
4040 * config/m68k/tm-sun3.h: Update.
4041 * blockframe.c (inside_main_func, frame_chain_valid): Update.
4042 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4043 * x86-64-tdep.c (x86_64_init_abi): Update.
4044 * vax-tdep.c (vax_gdbarch_init): Update.
4045 * v850-tdep.c (v850_gdbarch_init): Update.
4046 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
4047 * sh-tdep.c (sh_gdbarch_init): Update.
4048 * s390-tdep.c (s390_gdbarch_init): Update.
4049 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4050 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
4051 (frame_get_saved_regs): Update.
4052 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4053 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4054 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4055 * mips-tdep.c (mips_gdbarch_init): Update.
4056 * mcore-tdep.c (mcore_gdbarch_init): Update.
4057 * m68k-tdep.c (m68k_gdbarch_init): Update.
4058 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4059 * ia64-tdep.c (ia64_gdbarch_init): Update.
4060 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
4061 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4062 (i386_interix_back_one_frame): Update.
4063 * hppa-tdep.c (hppa_gdbarch_init): Update.
4064 (hppa_init_extra_frame_info): Update.
4065 * h8300-tdep.c (h8300_gdbarch_init): Update.
4066 * frv-tdep.c (frv_gdbarch_init): Update.
4067 * cris-tdep.c (cris_gdbarch_init): Update.
4068 * avr-tdep.c (avr_gdbarch_init): Update.
4069 * arm-tdep.c (arm_gdbarch_init): Update.
4070 * alpha-tdep.c (alpha_gdbarch_init): Update.
4072 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4074 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
4075 (arm_get_fp_model): Declare.
4076 * arm-tdep.c (fp_model_strings): New string array.
4077 (arm_fp_model, current_fp_model): New variables.
4078 (arm_get_fp_model): New function.
4079 (arm_set_fp): New function.
4080 (set_fp_model_sfunc): New function.
4081 (show_fp_model): New function.
4082 (_initialize_arm_tdep): Add new command to set/show the FPU.
4083 (arm_extract_return_value): Use arm_get_fp_model.
4084 (arm_store_return_value): Likewise.
4085 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
4086 to initialize the floating-point data types.
4087 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
4090 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4092 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
4093 the current setting of each value.
4094 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
4095 new_set and new_show. Use add_setshow_cmd_full and
4096 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
4097 commands and add new version as subcommands of "set/show arm".
4099 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4101 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
4102 (set_arm_command, show_arm_command): New functions.
4103 (_initialize_arm_tdep): Add them.
4104 (num_disassembly_options): Renamed from num_flavor_options.
4105 (valid_disassembly_styles): Renamed from valid_flavors.
4106 (disassembly_style): Renamed from disassembly_flavor.
4107 (set_disassembly_style_sfunc): Renamed from
4108 set_disassembly_flavor_sfunc.
4109 (set_disassembly_style): Renamed from set_disassembly_flavor.
4110 (arm_othernames): Updated.
4111 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
4112 command. Add "set/show arm disassembly" commands. Deprecate
4113 "othernames" command.
4115 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4117 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
4118 (arm-tdep.o): Depend on elf_arm_h.
4120 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4122 * Makefile.in (coff_internal_h): Define.
4123 (arm-tdep.o): Update dependencies.
4125 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
4127 * arm-tdep.c (prologue_cache): Delete.
4128 (check_prologue_cache, save_prologue_cache): Delete.
4129 (arm_scan_prologue): Don't check or update the prologue_cache.
4130 (arm_gdb_arch_init): Don't initialize it.
4131 (_initialize_arm_tdep): Likewise.
4133 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
4135 * MAINTAINERS (tui): Maintainer of tui code.
4137 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
4139 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
4140 (i386-cygwin-tdep.o): Add dependencies.
4141 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
4142 * i386-cygwin-tdep.c: New file.
4143 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
4144 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
4146 2003-03-20 Andrew Cagney <cagney@redhat.com>
4148 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
4149 (handle_inferior_event): Remove code calling
4150 DYNAMIC_TRAMPOLINE_NEXTPC.
4152 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
4153 already has a full path.
4155 * main.c (gdb_main): Return 1.
4156 (captured_main): Call error to report an invalid interpreter.
4158 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
4159 * alpha-osf1-tdep.c: Include "gdb_string.h".
4161 2003-03-19 J. Brobecker <brobecker@gnat.com>
4163 Continuing work to convert the hppa targets to multiarch partial.
4165 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
4166 method, now that hppa_push_dummy_frame has a conformant prototype.
4167 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
4168 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
4169 for the switch to multiarch partial.
4171 2003-03-19 Kevin Buettner <kevinb@redhat.com>
4173 * mdebugread.c (parse_symbol): For stEnd, we're done counting
4174 when iss is issNull.
4176 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4178 * mips-tdep.c (mips_register_name): Fix fencepost error involving
4179 NUM_REGS bounds check.
4181 2003-03-18 Kevin Buettner <kevinb@redhat.com>
4183 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
4184 * mips-tdep.c (gdb_assert.h): Include.
4185 (mips_generic_reg_names, mips_processor_reg_names): Make static.
4186 (mips_register_name): Handle integer registers explicitly. Add
4188 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
4189 (mips_lsi33k_reg_names): Don't list integer registers; they're
4190 handled by mips_register_name() now.
4191 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
4192 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
4193 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
4194 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
4195 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
4197 2003-03-18 Andrew Cagney <cagney@redhat.com>
4199 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
4201 * gdbtypes.h (print_scalar_formatted): Update declaration.
4202 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
4204 2003-03-18 J. Brobecker <brobecker@gnat.com>
4206 * infrun.c (observer.h): Add #include.
4207 (normal_stop): Add call to observer_notify_normal_stop.
4208 * Makefile.in (infrun.o): Add dependency on observer.h.
4210 2003-03-18 J. Brobecker <brobecker@gnat.com>
4212 Continuing work to convert the hppa targets to multiarch partial.
4213 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
4214 parameter. Reformat comment.
4215 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
4216 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
4217 to match new profile.
4219 2003-03-18 J. Brobecker <brobecker@gnat.com>
4221 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
4222 appear to be working in any case.
4224 2003-03-18 J. Brobecker <brobecker@gnat.com>
4226 * observer.c (observer_test_first_observer): New static variable.
4227 (observer_test_second_observer): Likewise.
4228 (observer_test_third_observer): Likewise.
4229 (observer_test_first_notification_function): New static function.
4230 (observer_test_second_notification_function): Likewise.
4231 (observer_test_third_notification_function): Likewise.
4233 2003-03-17 J. Brobecker <brobecker@gnat.com>
4235 * hppa-tdep.c (gdb_assert.h): Add missing #include.
4236 * somsolib.c (gdb_assert.h): Likewise.
4237 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
4238 (somsolib.o): Likewise.
4240 2003-03-17 Andrew Cagney <cagney@redhat.com>
4242 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
4243 BFD. Simplify setting of di.endian.
4245 2003-03-17 Andrew Cagney <cagney@redhat.com>
4247 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
4248 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
4250 From Elena Zannoni <ezannoni@redhat.com>
4251 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
4252 vector and floating-point parameters.
4253 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
4255 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
4257 2003-03-17 Fernando Nasser <fnasser@redhat.com>
4259 * MAINTAINERS: Remove my name from several maintainership roles.
4261 2003-03-17 Andrew Cagney <cagney@redhat.com>
4263 Fix frame off-by-one bug.
4264 * frame-unwind.h (frame_this_id_ftype): Replace
4265 frame_unwind_id_ftype.
4266 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
4267 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
4268 with "prev_register".
4269 * frame-unwind.c (frame_unwind_find_by_pc): Return
4270 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
4272 * dummy-frame.c (cached_find_dummy_frame): Delete function.
4273 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
4274 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
4275 (dummy_frame_unwind): Update.
4276 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4277 sentinel_frame_register_unwind.
4278 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
4279 (sentinel_frame_unwinder): Update.
4280 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4281 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
4282 * frame.c (create_sentinel_frame): Update. Initialize
4283 "prologue_cache" instead of "unwind_cache".
4284 (frame_register_unwind): Call this frame's prev_register with the
4285 next frame and this frame's prologue cache.
4286 (get_prev_frame): Simplify. Always call prev frame's this_id with
4287 this frame and prev frame's prologue cache. Document that this
4288 call is shifted one to the left when compared to the
4289 frame_register_unwind call.
4290 (legacy_saved_regs_prev_register): Replace
4291 frame_saved_regs_register_unwind.
4292 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
4293 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
4294 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4295 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
4296 (d10v_frame_unwind): Update.
4297 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
4298 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
4299 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
4300 "saved_regs" with "this_saved_regs".
4302 2003-03-16 Andrew Cagney <cagney@redhat.com>
4304 * frame.c (frame_pop): Don't call target_store_registers. Fix
4305 problem reported by Mark Kettenis.
4307 2003-03-16 Mark Kettenis <kettenis@gnu.org>
4309 * i386-tdep.c (i386_register_type): Renamed from
4310 i386_register_virtual_type. Adjust function signature.
4311 (i386_gdbarch_init): Set register_type instead of
4312 deprecated_max_register_raw_size,
4313 deprecated_max_register_virtual_size and register_virtual_type.
4315 2003-03-14 Andrew Cagney <cagney@redhat.com>
4317 * frame.c (get_prev_frame): When a legacy frame, always call
4318 legacy_get_prev_frame. Simplify unwind code using assumption that
4319 the unwinder is new.
4320 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
4321 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
4322 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
4324 2003-03-14 Andrew Cagney <cagney@redhat.com>
4326 * frame.c (get_saved_register): Delete function.
4327 * frame.h (get_saved_register): Delete declaration.
4328 * xstormy16-tdep.c: Update comment.
4329 * regcache.h: Update comments.
4330 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
4331 get_saved_register and extract_address, use
4332 frame_read_unsigned_register.
4333 (sparc_frame_saved_pc): Ditto.
4334 (sparc_get_saved_register): Instead of get_saved_register, use
4336 (sparc_pop_frame): Ditto.
4337 * findvar.c: Update comments.
4338 (value_of_register): Call frame_register instead of
4340 (value_from_register): Ditto.
4341 * config/sparc/tm-sparc.h: Update comment.
4342 * breakpoint.c: Update comment.
4344 2003-03-14 Andrew Cagney <cagney@redhat.com>
4346 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
4348 * gdbarch.h, gdbarch.c: Re-generate.
4349 * frame.h: Update comments.
4350 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4351 * x86-64-tdep.c (x86_64_init_abi): Update.
4352 * sparc-tdep.c (sparc_gdbarch_init): Update.
4353 * sh-tdep.c (sh_gdbarch_init): Update.
4354 * mips-tdep.c (mips_gdbarch_init): Update.
4355 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4356 * cris-tdep.c (cris_gdbarch_init): Update.
4357 * ia64-tdep.c (ia64_gdbarch_init): Update.
4358 * frame.c (frame_register): Update.
4359 (get_saved_register): Update.
4360 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
4362 2003-03-13 Andrew Cagney <cagney@redhat.com>
4364 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
4365 * gdbarch.h, gdbarch.c: Regenerate.
4366 * valops.c (hand_function_call): Update comment.
4367 * stack.c (return_command): Update comment.
4368 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
4369 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
4370 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4371 * x86-64-tdep.c (x86_64_init_abi): Update.
4372 * vax-tdep.c (vax_gdbarch_init): Update.
4373 * v850-tdep.c (v850_gdbarch_init): Update.
4374 * sparc-tdep.c (sparc_gdbarch_init): Update.
4375 * sh-tdep.c (sh_gdbarch_init): Update.
4376 * s390-tdep.c (s390_gdbarch_init): Update.
4377 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4378 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4379 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4380 * mips-tdep.c (mips_gdbarch_init): Update.
4381 * mcore-tdep.c (mcore_gdbarch_init): Update.
4382 * m68k-tdep.c (m68k_gdbarch_init): Update.
4383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4384 * ia64-tdep.c (ia64_gdbarch_init): Update.
4385 * i386-tdep.c (i386_gdbarch_init): Update.
4386 * hppa-tdep.c (hppa_gdbarch_init): Update.
4387 * h8300-tdep.c (h8300_gdbarch_init): Update.
4388 * frv-tdep.c (frv_gdbarch_init): Update.
4389 * cris-tdep.c (cris_gdbarch_init): Update.
4390 * avr-tdep.c (avr_gdbarch_init): Update.
4391 * arm-tdep.c (arm_gdbarch_init): Update.
4392 * alpha-tdep.c (alpha_gdbarch_init): Update.
4394 2003-03-13 Andrew Cagney <cagney@redhat.com>
4396 * frame.c (legacy_frame_p): New function.
4397 (get_prev_frame): Use legacy_frame_p.
4398 * frame.h (legacy_frame_p): Declare.
4400 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4402 * MAINTAINERS (write after approval): Alphabetically
4405 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4407 * MAINTAINERS (write after approval): Add myself.
4409 2003-03-12 Andrew Cagney <cagney@redhat.com>
4411 * frame.c (get_prev_frame): Rename the frame parameter to
4413 (get_next_frame, legacy_get_prev_frame): Ditto.
4415 2003-03-12 Andrew Cagney <cagney@redhat.com>
4417 * frame.c (get_current_frame): Check target_has_registers before
4418 checking target_has_stack.
4419 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
4420 instead of deprecated_selected_frame.
4421 * findvar.c (value_of_register): Pass "frame", not
4422 deprecated_selected_frame, to value_of_builtin_reg.
4424 2003-03-12 Andrew Cagney <cagney@redhat.com>
4426 * regcache.c (regcache_cooked_write_signed): New function.
4427 (regcache_cooked_write_unsigned): New function.
4428 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
4429 (regcache_cooked_read_signed): Fix regnum in range assertion.
4430 * regcache.h (regcache_cooked_write_signed): Declare.
4431 (regcache_cooked_write_unsigned): Declare.
4433 2003-03-12 Andrew Cagney <cagney@redhat.com>
4435 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4436 * gdbarch.h, gdbarch.c: Re-generate.
4437 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4438 * x86-64-tdep.h: Update.
4439 * x86-64-tdep.c (x86_64_init_abi): Update.
4440 * v850-tdep.c (v850_gdbarch_init): Update.
4441 * sparc-tdep.c (sparc_gdbarch_init): Update.
4442 * sh-tdep.c (sh_gdbarch_init): Update.
4443 * s390-tdep.c (s390_gdbarch_init): Update.
4444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4445 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4446 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4447 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4448 * mips-tdep.c (mips_gdbarch_init): Update.
4449 * mcore-tdep.c (mcore_gdbarch_init): Update.
4450 * m68k-tdep.c (m68k_gdbarch_init): Update.
4451 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4452 * ia64-tdep.c (ia64_gdbarch_init): Update.
4453 * i386-tdep.c (i386_gdbarch_init): Update.
4454 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4455 * hppa-tdep.c (hppa_gdbarch_init): Update.
4456 * h8300-tdep.c (h8300_gdbarch_init): Update.
4457 * frv-tdep.c (frv_gdbarch_init): Update.
4458 * cris-tdep.c (cris_gdbarch_init): Update.
4459 * avr-tdep.c (avr_gdbarch_init): Update.
4460 * arm-tdep.c (arm_gdbarch_init): Update.
4461 * alpha-tdep.c (alpha_gdbarch_init): Update.
4462 * sh-tdep.c (sh_init_extra_frame_info): Update.
4463 (sh64_init_extra_frame_info): Update.
4464 * ns32knbsd-nat.c (frame_num_args): Update.
4465 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4466 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4467 (xstormy16_frame_chain_valid): Update.
4468 * vax-tdep.c (vax_saved_pc_after_call): Update.
4469 * v850-tdep.c (v850_frame_chain): Update.
4470 (v850_pop_frame): Update.
4471 (v850_init_extra_frame_info): Update.
4472 * sparc-tdep.c (setup_arbitrary_frame): Update.
4473 * ns32k-tdep.c (umax_frame_num_args): Update.
4474 * s390-tdep.c (s390_pop_frame_regular): Update.
4475 * mn10300-tdep.c (mn10300_frame_chain): Update.
4476 (mn10300_pop_frame_regular): Update.
4477 (mn10300_init_extra_frame_info): Update.
4478 * mips-tdep.c (mips_init_frame_pc_first): Update.
4479 (mips_frame_chain): Update.
4480 (mips_pop_frame): Update.
4481 * mcore-tdep.c (mcore_frame_chain): Update.
4482 (mcore_pop_frame): Update.
4483 (mcore_init_extra_frame_info): Update.
4484 * arch-utils.c (init_frame_pc_default): Update.
4485 * m68k-tdep.c (isi_frame_num_args): Update.
4486 (delta68_frame_num_args): Update.
4487 (news_frame_num_args): Update.
4488 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4489 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4490 (alpha_frame_chain): Update.
4491 (alpha_pop_frame): Update.
4492 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4493 (hppa_init_extra_frame_info): Update.
4494 (hppa_frame_chain): Update.
4495 (hppa_frame_chain_valid): Update.
4496 * cris-tdep.c (cris_init_extra_frame_info): Update.
4497 * avr-tdep.c (avr_init_extra_frame_info): Update.
4498 * arm-tdep.c (arm_frame_chain_valid): Update.
4499 (arm_init_extra_frame_info): Update.
4500 (arm_pop_frame): Update.
4501 * frame.c (frame_pc_unwind): Update.
4502 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4503 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4504 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4505 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4506 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4507 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4509 2003-03-12 Andrew Cagney <cagney@redhat.com>
4511 Eliminate the need for POP_FRAME.
4512 * frame.c (do_frame_unwind_register): New function.
4513 (frame_pop): When no POP_FRAME, pop the frame using register
4514 unwind and a scratch regcache.
4515 (frame_saved_regs_pop): Delete function.
4516 (trad_frame_unwinder): Update.
4517 * d10v-tdep.c (d10v_frame_pop): Delete function.
4518 (d10v_frame_unwind): Update.
4519 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4520 (sentinel_frame_unwinder): Update.
4521 * dummy-frame.c (dummy_frame_pop): Delete function.
4522 (dummy_frame_unwind): Update.
4523 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4524 (struct frame_unwind): Update.
4526 2003-03-11 Kevin Buettner <kevinb@redhat.com>
4528 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4529 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4530 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4531 Do range checks on register number obtained from debugging info.
4532 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4533 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4534 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4536 (do_fp_register_row): Fix typo which caused double type to be
4537 used when attempting to unpack a float.
4539 2003-03-11 J. Brobecker <brobecker@gnat.com>
4541 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4543 2003-03-11 Andrew Cagney <cagney@redhat.com>
4545 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4546 frame. Problem found by Corinna Vinschen.
4548 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4550 * doublest.c (floatformat_from_length): Accept also
4551 the real size of 'long double' type.
4553 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
4555 From Klee Dienes <kdienes@apple.com>:
4556 * breakpoint.c (bpstat_copy): Copy the command lines as well
4557 as the old value, to match what is freed in bpstat_clear.
4559 2003-03-10 David Carlton <carlton@math.stanford.edu>
4561 * minsyms.c (add_minsym_to_hash_table): Replace
4562 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4563 (compare_minimal_symbols, compact_minimal_symbols)
4564 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4565 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4566 of DEPRECATED_SYMBOL_MATCHES_NAME.
4567 (lookup_minimal_symbol_solib_trampoline): Ditto.
4569 2003-03-10 Andrew Cagney <cagney@redhat.com>
4571 * regcache.h (regcache_cooked_read_ftype): Define.
4572 (regcache_save, regcache_restore): Add a cooked_read parameter.
4573 * regcache.c (regcache_save, regcache_restore): Update.
4574 (do_cooked_read): New function.
4575 (regcache_cpy): Pass do_cooked_read to regcache_save and
4578 2003-03-10 Andrew Cagney <cagney@redhat.com>
4580 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4581 * gdbarch.h, gdbarch.c: Re-generate.
4582 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4583 * x86-64-tdep.h: Update.
4584 * x86-64-tdep.c (x86_64_init_abi): Update.
4585 * v850-tdep.c (v850_gdbarch_init): Update.
4586 * sparc-tdep.c (sparc_gdbarch_init): Update.
4587 * sh-tdep.c (sh_gdbarch_init): Update.
4588 * s390-tdep.c (s390_gdbarch_init): Update.
4589 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4590 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4591 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4592 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4593 * mips-tdep.c (mips_gdbarch_init): Update.
4594 * mcore-tdep.c (mcore_gdbarch_init): Update.
4595 * m68k-tdep.c (m68k_gdbarch_init): Update.
4596 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4597 * ia64-tdep.c (ia64_gdbarch_init): Update.
4598 * i386-tdep.c (i386_gdbarch_init): Update.
4599 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4600 * hppa-tdep.c (hppa_gdbarch_init): Update.
4601 * h8300-tdep.c (h8300_gdbarch_init): Update.
4602 * frv-tdep.c (frv_gdbarch_init): Update.
4603 * cris-tdep.c (cris_gdbarch_init): Update.
4604 * avr-tdep.c (avr_gdbarch_init): Update.
4605 * arm-tdep.c (arm_gdbarch_init): Update.
4606 * alpha-tdep.c (alpha_gdbarch_init): Update.
4607 * sh-tdep.c (sh_init_extra_frame_info): Update.
4608 (sh64_init_extra_frame_info): Update.
4609 * ns32knbsd-nat.c (frame_num_args): Update.
4610 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4611 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4612 (xstormy16_frame_chain_valid): Update.
4613 * vax-tdep.c (vax_saved_pc_after_call): Update.
4614 * v850-tdep.c (v850_frame_chain): Update.
4615 (v850_pop_frame): Update.
4616 (v850_init_extra_frame_info): Update.
4617 * sparc-tdep.c (setup_arbitrary_frame): Update.
4618 * ns32k-tdep.c (umax_frame_num_args): Update.
4619 * s390-tdep.c (s390_pop_frame_regular): Update.
4620 * mn10300-tdep.c (mn10300_frame_chain): Update.
4621 (mn10300_pop_frame_regular): Update.
4622 (mn10300_init_extra_frame_info): Update.
4623 * mips-tdep.c (mips_init_frame_pc_first): Update.
4624 (mips_frame_chain): Update.
4625 (mips_pop_frame): Update.
4626 * mcore-tdep.c (mcore_frame_chain): Update.
4627 (mcore_pop_frame): Update.
4628 (mcore_init_extra_frame_info): Update.
4629 * arch-utils.c (init_frame_pc_default): Update.
4630 * m68k-tdep.c (isi_frame_num_args): Update.
4631 (delta68_frame_num_args): Update.
4632 (news_frame_num_args): Update.
4633 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4634 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4635 (alpha_frame_chain): Update.
4636 (alpha_pop_frame): Update.
4637 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4638 (hppa_init_extra_frame_info): Update.
4639 (hppa_frame_chain): Update.
4640 (hppa_frame_chain_valid): Update.
4641 * cris-tdep.c (cris_init_extra_frame_info): Update.
4642 * avr-tdep.c (avr_init_extra_frame_info): Update.
4643 * arm-tdep.c (arm_frame_chain_valid): Update.
4644 (arm_init_extra_frame_info): Update.
4645 (arm_pop_frame): Update.
4646 * frame.c (frame_pc_unwind): Update.
4647 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4648 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4649 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4650 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4651 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4652 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4654 2003-03-10 Andrew Cagney <cagney@redhat.com>
4656 * gdbarch.sh (gdbarch_unwind_pc): New method.
4657 * gdbarch.h, gdbarch.c: Regenerate.
4658 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4659 but use read_pc and FRAME_SAVED_PC as fall backs.
4660 (frame_saved_regs_pc_unwind): Delete function.
4661 (trad_frame_unwinder): Update.
4662 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4663 (struct frame_unwind): Update.
4664 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4665 (dummy_frame_unwind): Update.
4666 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4667 (sentinel_frame_unwinder): Update.
4668 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4669 (d10v_frame_unwind): Update.
4670 (d10v_unwind_pc): New function.
4671 (d10v_gdbarch_init): Set unwind_pc.
4673 2003-03-10 Andrew Cagney <cagney@redhat.com>
4675 * gdbarch.h: Re-generate.
4677 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4679 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4682 2003-03-08 Mark Kettenis <kettenis@gnu.org>
4684 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4686 2003-03-08 Andrew Cagney <cagney@redhat.com>
4688 * cli-out.c: Update copyright.
4689 (cli_out_data): Define typedef. Use instead of ui_out_data.
4691 2003-03-08 Andrew Cagney <cagney@redhat.com>
4693 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4696 2003-03-07 Andrew Cagney <cagney@redhat.com>
4698 * gdbarch.sh: Don't generate two macro definitions when an
4699 undefined macro taking no arguments.
4700 * gdbarch.h: Regenerate.
4702 2002-03-07 Michal Ludvig <mludvig@suse.cz>
4704 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4705 (x86_64_unwind_dummy_id): New functions.
4706 (x86_64_init_abi): Register these two new functions.
4708 2003-03-07 Michal Ludvig <mludvig@suse.cz>
4710 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4711 (x86_64_skip_prologue): Move prologue detection to
4713 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4715 2003-03-05 Andrew Cagney <cagney@redhat.com>
4717 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4718 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4719 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4720 to use unwind_dummy_id when a dummy frame.
4721 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4723 * gdbarch.h, gdbarch.c: Regneerate.
4725 2003-03-05 Andrew Cagney <cagney@redhat.com>
4727 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4728 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4729 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4732 2003-03-05 Andrew Cagney <cagney@redhat.com>
4734 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4735 (struct d10v_unwind_cache): Delete field "frameless". Replace
4736 "next_addr" with "sp_offset". Add "r11_offset".
4737 (d10v_frame_unwind_cache): Update.
4738 (prologue_find_regs): Update. When "mv r11, sp", save the
4739 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4740 RN was saved in r11_offset.
4742 2003-03-05 Andrew Cagney <cagney@redhat.com>
4744 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4745 cached PC value in the next frame.
4747 2003-03-05 Andrew Cagney <cagney@redhat.com>
4749 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4750 "id_unwind_cache" with "id".
4751 (frame_id_unwind): Delete declaration.
4752 * frame.c (frame_id_unwind): Delete function.
4753 (get_prev_frame): Call the frame id unwind method directly. Store
4754 the returned next frame's ID value in NEXT_FRAME. Note that there
4755 is a problem with the wrong unwind ID being called with the wrong
4758 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4760 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4762 2003-03-05 James Ingham <jingham@apple.com>
4763 Daniel Jacobowitz <drow@mvista.com>
4765 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4766 (auto_cp_abi): New variable.
4767 (current_cp_abi, num_cp_abis): Make static.
4768 (CP_ABI_MAX): Define.
4769 (cp_abis): Turn into an array.
4770 (value_virtual_fn_field): Fix formatting.
4771 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4773 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4774 (list_cp_abis, _initialize_cp_abi): New functions.
4775 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4776 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4777 switch_to_cp_abi. Update prototype for register_cp_abi.
4778 * Makefile.in (cp-abi.o): Update dependencies.
4779 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4780 instead of switch_to_cp_abi.
4781 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4783 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4785 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4787 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4789 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4790 * dwarf2loc.c: Include "regcache.h".
4791 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4793 * Makefile.in (dwarf2loc.o): Update dependencies.
4795 2003-03-04 Theodore A. Roth <troth@openavr.org>
4797 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4798 number of io registers reported by remote target is not a multiple of
4801 2003-03-04 David Carlton <carlton@math.stanford.edu>
4803 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4804 (lookup_symbol_aux_psymtabs): Update call to
4805 lookup_partial_symbol.
4806 (lookup_transparent_type, find_main_psymtab)
4807 (make_symbol_overload_list): Ditto.
4809 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4811 * MAINTAINERS (Write after approval): Update my email address.
4813 2003-03-03 Andrew Cagney <cagney@redhat.com>
4815 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4816 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4817 predicate. Replace MAX_REGISTER_RAW_SIZE.
4818 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4819 MAX_REGISTER_VIRTUAL_SIZE.
4820 * regcache.c (legacy_max_register_raw_size): New function.
4821 (legacy_max_register_virtual_size): New function.
4822 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4823 (MAX_REGISTER_RAW_SIZE): Define.
4824 (legacy_max_register_raw_size): Declare.
4825 (legacy_max_register_virtual_size): Declare.
4826 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4827 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4828 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4829 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4830 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4831 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4832 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4833 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4834 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4835 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4836 * vax-tdep.c (vax_gdbarch_init): Update.
4837 * v850-tdep.c (v850_gdbarch_init): Update.
4838 * sparc-tdep.c (sparc_gdbarch_init): Update.
4839 * sh-tdep.c (sh_gdbarch_init): Update.
4840 * s390-tdep.c (s390_gdbarch_init): Update.
4841 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4842 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4843 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4844 * mips-tdep.c (mips_gdbarch_init): Update.
4845 * mcore-tdep.c (mcore_gdbarch_init): Update.
4846 * m68k-tdep.c (m68k_gdbarch_init): Update.
4847 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4848 * ia64-tdep.c (ia64_gdbarch_init): Update.
4849 * i386-tdep.c (i386_gdbarch_init): Update.
4850 * hppa-tdep.c (hppa_gdbarch_init): Update.
4851 * h8300-tdep.c (h8300_gdbarch_init): Update.
4852 * frv-tdep.c (frv_gdbarch_init): Update.
4853 * cris-tdep.c (cris_gdbarch_init): Update.
4854 * avr-tdep.c (avr_gdbarch_init): Update.
4855 * arm-tdep.c (arm_gdbarch_init): Update.
4856 * alpha-tdep.c (alpha_gdbarch_init): Update.
4857 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4858 max_register_raw_size or max_register_virtual_size.
4860 2003-03-03 David Carlton <carlton@math.stanford.edu>
4862 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4863 SYMBOL_MATCHES_NAME, add comment.
4864 (SYMBOL_MATCHES_NATURAL_NAME): New.
4865 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4866 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4867 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4868 * symtab.c (lookup_partial_symbol): Use
4869 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4871 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4872 SYMBOL_MATCHES_NAME.
4875 2003-03-03 David Carlton <carlton@math.stanford.edu>
4877 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4878 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4879 by regexp matching against SYMBOL_NATURAL_NAME.
4881 2003-03-03 David Carlton <carlton@math.stanford.edu>
4883 * linespec.c (find_method): Extract code into collect_methods.
4884 (collect_methods): New.
4886 2003-03-02 Mark Kettenis <kettenis@gnu.org>
4888 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4891 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4892 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4894 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4896 * arch-utils.c (generic_register_byte): Fix to use the loop index
4897 and not regnum when summing the size of all registers up to regnum.
4899 2003-03-01 Andrew Cagney <cagney@redhat.com>
4901 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4902 FRAME_INIT_SAVED_REGS.
4903 * gdbarch.h, gdbarch.c: Regenerate.
4904 * stack.c (frame_info): Update.
4905 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4906 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4907 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4908 * ns32k-tdep.c (ns32k_pop_frame): Update.
4909 * mips-tdep.c (mips_pop_frame): Update.
4910 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4911 * ia64-tdep.c (ia64_frame_chain): Update.
4912 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4913 (ia64_frameless_function_invocation): Update.
4914 (ia64_init_extra_frame_info): Update.
4915 (ia64_pop_frame_regular): Update.
4916 * frame.h (struct frame_info): Update comment.
4917 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4918 * frame.c (frame_saved_regs_register_unwind): Update.
4919 (frame_saved_regs_register_unwind): Update.
4920 (deprecated_generic_get_saved_register): Update.
4921 * cris-tdep.c: Update comment.
4922 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4924 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4925 * x86-64-tdep.c (x86_64_init_abi): Update.
4926 * vax-tdep.c (vax_gdbarch_init): Update.
4927 * v850-tdep.c (v850_gdbarch_init): Update.
4928 * sparc-tdep.c (sparc_gdbarch_init): Update.
4929 * sh-tdep.c (sh_gdbarch_init): Update.
4930 * s390-tdep.c (s390_gdbarch_init): Update.
4931 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4932 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4933 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4934 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4935 * mips-tdep.c (mips_gdbarch_init): Update.
4936 * mcore-tdep.c (mcore_gdbarch_init): Update.
4937 * m68k-tdep.c (m68k_gdbarch_init): Update.
4938 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4939 * ia64-tdep.c (ia64_gdbarch_init): Update.
4940 * i386-tdep.c (i386_gdbarch_init): Update.
4941 * frv-tdep.c (frv_gdbarch_init): Update.
4942 * avr-tdep.c (avr_gdbarch_init): Update.
4943 * arm-tdep.c (arm_gdbarch_init): Update.
4944 * alpha-tdep.c (alpha_gdbarch_init): Update.
4946 2003-03-01 Andrew Cagney <cagney@redhat.com>
4948 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4949 option enum and switch. When no windows, set the interpreter to
4952 2003-03-01 Andrew Cagney <cagney@redhat.com>
4954 * main.c (captured_main): Replace magic option characters with an
4957 2003-03-01 Andrew Cagney <cagney@redhat.com>
4959 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4960 INIT_EXTRA_FRAME_INFO.
4961 * gdbarch.h, gdbarch.c: Regenerate.
4962 * arm-tdep.c: Update comments.
4963 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4964 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4965 * frame.h, avr-tdep.c: Ditto.
4966 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4967 (create_new_frame, legacy_get_prev_frame): Ditto.
4968 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4969 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4970 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4971 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4972 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4973 * v850-tdep.c (v850_gdbarch_init): Ditto.
4974 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4975 * sh-tdep.c (sh_gdbarch_init): Ditto.
4976 * s390-tdep.c (s390_gdbarch_init): Ditto.
4977 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4978 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4979 * mips-tdep.c (mips_gdbarch_init): Ditto.
4980 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4981 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4982 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4983 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4984 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4985 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4986 * frv-tdep.c (frv_gdbarch_init): Ditto.
4987 * cris-tdep.c (cris_gdbarch_init): Ditto.
4988 * avr-tdep.c (avr_gdbarch_init): Ditto.
4989 * arm-tdep.c (arm_gdbarch_init): Ditto.
4990 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4993 2003-03-01 Andrew Cagney <cagney@redhat.com>
4995 * gdbarch.sh (register_type): New function with predicate.
4996 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
4997 * gdbarch.h, gdbarch.c: Re-generate.
4998 * arch-utils.c (generic_register_byte): Use generic_register_size.
4999 (generic_register_size): When available, use
5000 gdbarch_register_type.
5001 * regcache.c (init_regcache_descr): When available, initialize the
5002 register type array using gdbarch_register_type. If the
5003 architecture supplies gdbarch_register_type, do not use the legacy
5005 * d10v-tdep.c (d10v_register_type): Replace
5006 d10v_register_virtual_type.
5007 (d10v_gdbarch_init): Set register_type instead of
5008 register_virtual_type.
5010 2003-03-01 Andrew Cagney <cagney@redhat.com>
5012 * Makefile.in (ax-gdb.o): Update dependencies.
5013 * ax-gdb.c: Include "regcache.h".
5014 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
5015 * findvar.c (value_of_register): Ditto.
5016 * infcmd.c (default_print_registers_info): Ditto.
5018 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5020 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
5021 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
5023 2003-03-01 Mark Kettenis <kettenis@gnu.org>
5025 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
5028 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
5030 * Makefile.in (dwarf2loc.o): Update dependencies.
5031 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
5032 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
5033 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
5034 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
5035 (locexpr_tracepoint_var_ref): New function.
5036 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
5038 2003-02-28 Andrew Cagney <cagney@redhat.com>
5040 * regcache.c (register_size): New function.
5041 * regcache.h (register_size): Declare
5042 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
5043 max_register_size instead of MAX_REGISTER_RAW_SIZE.
5045 2003-02-28 David Carlton <carlton@math.stanford.edu>
5047 * linespec.c (decode_compound): Extract code into find_method.
5050 2003-02-28 J. Brobecker <brobecker@gnat.com>
5052 * Makefile.in: Add rules to build and link in observer.o.
5054 2003-02-27 J. Brobecker <brobecker@gnat.com>
5056 * observer.c: Minor comments edits.
5058 2003-02-27 J. Brobecker <brobecker@gnat.com>
5060 * observer.h, observer.c: New file.
5062 2003-02-27 Andrew Cagney <cagney@redhat.com>
5064 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
5066 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
5068 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
5069 (M6812_OP_STS_EXT): Likewise.
5070 (m6811_prologue): Use the above to recognize prologue.
5071 (m6812_prologue): Likewise.
5073 2003-02-27 David Carlton <carlton@math.stanford.edu>
5075 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
5077 (compare_psymbols): Ditto.
5078 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
5080 2003-02-27 Michael Snyder <msnyder@redhat.com>
5082 * f-lang.c (build_fortran_types): New function.
5083 (_initialize_f_language): Gdbarch-register built-in fortran types.
5084 * doublest.c (extract_floating): Fix warning text.
5086 2003-02-27 Andrew Cagney <cagney@redhat.com>
5088 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
5089 predicate. Replaces PUSH_DUMMY_FRAME.
5090 * gdbarch.h, gdbarch.c: Regnerate.
5091 * valops.c (hand_function_call): Update. Call
5092 generic_push_dummy_frame directly.
5093 * vax-tdep.c (vax_gdbarch_init): Update.
5094 * sparc-tdep.c (sparc_gdbarch_init): Update.
5095 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5096 * m68k-tdep.c (m68k_gdbarch_init): Update.
5097 * hppa-tdep.c (hppa_gdbarch_init): Update.
5098 * alpha-tdep.c (alpha_gdbarch_init): Update.
5099 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5100 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
5101 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
5102 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
5103 push_dummy_frame to generic_push_dummy_frame.
5104 * v850-tdep.c (v850_gdbarch_init): Ditto.
5105 * sh-tdep.c (sh_gdbarch_init): Ditto.
5106 * s390-tdep.c (s390_gdbarch_init): Ditto.
5107 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
5108 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
5109 * mips-tdep.c (mips_gdbarch_init): Ditto.
5110 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
5111 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
5112 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
5113 * i386-tdep.c (i386_gdbarch_init): Ditto.
5114 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
5115 * frv-tdep.c (frv_gdbarch_init): Ditto.
5116 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
5117 * cris-tdep.c (cris_gdbarch_init): Ditto.
5118 * avr-tdep.c (avr_gdbarch_init): Ditto.
5119 * arm-tdep.c (arm_gdbarch_init): Ditto.
5121 2003-02-26 Kevin Buettner <kevinb@redhat.com>
5123 * mips-tdep.c (show_mips_abi): New function.
5124 (_initialize_mips_tdep): Use show_mips_abi() to implement the
5125 command ``show mips abi''.
5127 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
5129 From Elena Zannoni <ezannoni@redhat.com>
5130 * dbxread.c (process_one_symbol): Only record line 0 if one or
5131 more sline entries have been seen for the function.
5133 2003-02-26 Michael Chastain <mec@shout.net>
5135 * configure: Regenerate with autoconf 000227.
5137 2003-02-26 Michael Chastain <mec@shout.net>
5140 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
5141 for old libc5/glibc.
5142 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
5144 2003-02-26 Kris Warkentin <kewarken@qnx.com>
5146 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
5147 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
5149 2003-02-26 Michael Chastain <mec@shout.net>
5151 * configure.in: New variable HAVE_UINTPTR_T.
5152 * configure, config.in: Regenerated.
5154 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
5157 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
5159 2003-02-25 Andrew Cagney <cagney@redhat.com>
5161 * frame.c (get_prev_frame): Add comment on check for
5162 inside_entry_func. Only check for inside_entry_file when not a
5163 dummy and not a sentinel. Check that the new frame is not inner
5166 2003-02-25 Andrew Cagney <cagney@redhat.com>
5168 * frame.c (frame_debug): New variable.
5169 (_initialize_frame): Add "set/show debug frame" command.
5170 (get_prev_frame): When frame_debug, print reason why unwind
5173 2003-02-25 Michael Chastain <mec@shout.net>
5175 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
5176 to avoid uintptr_t definition problems.
5178 2003-02-25 David Carlton <carlton@math.stanford.edu>
5180 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
5181 (SYMBOL_LINKAGE_NAME): Ditto.
5182 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
5183 SYMBOL_LINKAGE_NAME.
5184 (struct general_symbol_info): Expand comment.
5185 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
5186 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
5187 (SYMBOL_MATCHES_REGEXP): Ditto.
5188 * symtab.c (symbol_natural_name): New function.
5189 * objfiles.h: Replace all uses of SYMBOL_NAME by
5190 DEPRECATED_SYMBOL_NAME.
5191 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
5192 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
5193 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
5194 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
5195 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
5196 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
5197 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
5198 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
5199 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
5200 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
5202 * ada-exp.y: Update copyright.
5203 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
5204 * cp-valprint.c: Ditto.
5206 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
5208 * infptrace.c (detach): Do not flag error if ptrace detach fails
5209 and errno is set to ESRCH.
5211 2003-02-24 Andrew Cagney <cagney@redhat.com>
5213 * infptrace.c (udot_info): Change type of udot_off to long. Use
5214 paddr when printing udot_off's value.
5216 2003-02-24 David Carlton <carlton@math.stanford.edu>
5218 * symtab.c (make_symbol_overload_list): Only read in partial
5219 symtabs containing a matching partial symbol.
5221 2003-02-24 David Carlton <carlton@math.stanford.edu>
5223 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
5224 do the comparison, not strcmp.
5225 * symfile.c (compare_psymbols): Ditto.
5226 * defs.h: Declare strcmp_iw_ordered.
5227 * utils.c (strcmp_iw_ordered): New function.
5229 2003-02-24 Jim Blandy <jimb@redhat.com>
5231 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
5232 support, shared libs): Remove my name from here, to better reflect
5235 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5237 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
5238 (target_ops): Add to_have_continuable_watchpoint.
5239 * target.c (update_current_target): Add INHERIT line for
5240 to_have_continuable_watchpoint.
5241 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
5242 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
5243 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
5244 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
5246 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
5248 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
5251 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5253 * solib.c (solib_open): Call target defined search function after
5254 failing with solib-search-path.
5255 * solist.h (target_so_ops): Add find_and_open_solib function hook and
5256 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
5258 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5260 * MAINTAINERS: Add myself to Write After section.
5262 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
5264 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
5266 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
5268 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
5269 (m68hc11_add_reggroups): New function.
5270 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
5271 (m68hc11_gdbarch_init): Install the reggroups.
5272 (_initialize_m68hc11_tdep): Initialize them.
5274 2003-02-21 James E Wilson <wilson@tuliptree.org>
5276 * MAINTAINERS: Update my email address.
5278 2003-02-21 David Carlton <carlton@math.stanford.edu>
5280 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
5282 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
5284 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
5285 * symtab.h: Add opaque declarations of struct axs_value and
5287 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
5288 (struct location_funcs): New type.
5289 (struct symbol): Add "loc" to aux_value.
5290 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
5291 * dwarf2read.c: Include "dwarf2expr.h".
5292 (dwarf2_symbol_mark_computed): New function.
5293 (read_func_scope): Use it.
5294 (var_decode_location): New function.
5295 (new_symbol): Use it.
5296 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
5298 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
5299 (dwarf2expr_h, dwarf2loc_h): New variables.
5300 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
5301 (dwarf2expr.o, dwarf2loc.o): New rules.
5302 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
5303 * buildsym.c (finish_block): Handle LOC_COMPUTED and
5305 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5306 * m2-exp.y (yylex): Likewise.
5307 * printcmd.c (address_info, print_frame_args): Likewise.
5308 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
5309 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5310 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
5311 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
5312 * symtab.c (lookup_block_symbol): Likewise.
5314 2003-02-20 Adam Fedor <fedor@gnu.org>
5316 * symtab.h: Remove objc_specific struct
5317 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
5318 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
5319 Have language_objc use cplus_specific struct.
5321 2003-02-20 Tom Tromey <tromey@redhat.com>
5323 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
5324 TYPE_NAME, when printing a String value. PR java/1075.
5326 2003-02-20 Adam Fedor <fedor@gnu.org>
5328 * objc-lang.h (find_methods): Remove declaration.
5329 * objc-lang.c (find_methods): Make static.
5331 2003-02-20 Christopher Faylor <cgf@redhat.com>
5333 * win32-nat.c (get_image_name): Check return value from
5335 (child_xfer_memory): Ditto.
5337 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5339 * configure.in (TARGET_SYSTEM_ROOT): Set default to
5340 ${exec_prefix}/${target_alias}/sys-root. Match explicit
5341 '${exec_prefix}' (in addition to the expansion thereof) as
5343 * configure: Rebuilt.
5345 2003-02-20 David Carlton <carlton@math.stanford.edu>
5347 * symtab.c (search_symbols): Revert the search_symbols part of my
5348 2002-12-23 patch. Add comment.
5350 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5352 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
5353 * dbxread.c (elfstab_build_psymtabs): Don't call
5354 install_minimal_symbols.
5355 (stabsect_build_psymtabs): Likewise.
5356 * elfread.c (elf_symfile_read): Call install_minimal_symbols
5358 * somread.c (som_symfile_read): Call install_minimal_symbols
5359 and do_cleanups earlier.
5360 * nlmread.c (nlm_symfile_read): Likewise.
5361 * mdebugread.c (elfmdebug_build_psymtabs): Call
5362 install_minimal_symbols and make appropriate cleanups.
5364 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5366 * solib.c (reload_shared_libraries): New function.
5367 (_initialize_solib): Add callbacks for ``set solib-search-path''
5368 and ``set solib-absolute-prefix''.
5370 2003-02-20 David Carlton <carlton@math.stanford.edu>
5372 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
5374 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
5375 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
5376 * ada-typeprint.c (ada_typedef_print): Ditto.
5377 * ax-gdb.c (gen_var_ref): Ditto.
5378 * breakpoint.c (print_one_breakpoint): Ditto.
5379 * buildsym.c (finish_block): Ditto.
5380 * c-valprint.c (c_val_print): Ditto.
5381 * expprint.c (print_subexp): Ditto.
5382 * findvar.c (locate_var_value): Ditto.
5383 * infcmd.c (jump_command): Ditto.
5384 * linespec.c (decode_line_2, decode_compound): Ditto.
5385 * maint.c (maintenance_translate_address): Ditto.
5386 * objc-lang.c (compare_selectors, compare_classes): Ditto.
5387 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
5389 * p-valprint.c (pascal_val_print): Ditto.
5390 * stabsread.c (define_symbol): Ditto.
5391 * stack.c (print_frame, frame_info, print_block_frame_locals)
5392 (print_frame_arg_vars, return_command): Ditto.
5393 * symfile.c (compare_symbols, compare_psymbols): Ditto.
5394 * symmisc.c (print_symbol): Ditto.
5395 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
5396 (compare_search_syms, print_symbol_info, print_msymbol_info)
5397 (rbreak_command): Ditto.
5398 * tracepoint.c (tracepoints_info): Ditto.
5399 * typeprint.c (typedef_print): Ditto.
5400 * valops.c (value_of_variable, hand_function_call): Ditto.
5401 * cli/cli-cmds.c (edit_command, list_command): Ditto.
5402 * ada-typeprint.c: Update Copyright.
5403 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
5404 * tracepoint.c, cli/cli-cmds.c: Ditto.
5406 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5408 * frame.c (generic_unwind_get_saved_register): Make non-static.
5409 * frame.h (generic_unwind_get_saved_register): Declare.
5410 * mips-tdep.c (read_next_frame_reg): Fetch register from
5411 current regcache when frame is NULL.
5412 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
5414 (mips_get_saved_register): Call generic_unwind_get_saved_register()
5415 instead of frame_register_unwind().
5417 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5419 * remote-sim.c (gdbsim_insert_breakpoint)
5420 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
5423 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5425 * remote.c (_initialize_remote): Add commands "set/show remote
5426 hardware-watchpoint-limit" and "set/show remote
5427 hardware-breakpoint-limit".
5428 (remote_hw_watchpoint_limit): Initialize to -1.
5429 (remote_hw_breakpoint_limit): Ditto.
5430 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
5432 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
5434 * coff-pe-read.c: New file - support reading of minimal symbols from a
5435 portable executable using the export table.
5436 * coff-pe-read.h: New file.
5437 * coffread.c: Include coff-pe-read.h.
5438 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
5439 debugging symbols found.
5440 * Makefile.in (SFILES): Add coff-pe-read.o.
5441 (coff_pe_read_h): Define.
5442 (COMMON_OBS): Add coff-pe-read.o.
5443 (coffread.o): Add coff_pe_read_h dependency.
5444 (coff-pe-read.o): New target.
5446 2003-02-19 David Carlton <carlton@math.stanford.edu>
5448 * Makefile.in (SFILES): Add block.c.
5450 (COMMON_OBS): Add block.o.
5452 (x86-64-tdep.o): Add $(block_h).
5453 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5454 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5455 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5456 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5457 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5458 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5459 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5460 * value.h: Add opaque declaration for struct block.
5461 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5462 * ada-lang.h: Ditto.
5463 * x86-64-tdep.c: #include "block.h"
5464 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5465 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5466 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5467 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5468 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5469 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5470 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5471 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5472 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5473 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5474 * symtab.c (block_function): Ditto.
5475 (contained_in): Ditto.
5476 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5477 block.h. Add opaque declaration for struct block.
5478 * symtab.h: Move block_function and contained_in declarations to
5479 block.h. Add opaque declarations for struct block, struct
5481 (struct block): Move to block.h.
5482 (struct blockvector): Ditto.
5483 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5484 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5485 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5486 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5487 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5489 * block.c: New file.
5490 * block.h: New file.
5492 2003-02-19 Theodore A. Roth <troth@openavr.org>
5494 * avr-tdep.c (avr_extract_return_value): Remove function.
5495 (avr_store_return_value): Remove function.
5496 (avr_extract_struct_value_address): Remove function.
5497 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5499 2003-02-19 Andrew Cagney <ac131313@redhat.com>
5501 * rs6000-tdep.c: Include "gdb_assert.h".
5502 (registers_e500): Add "acc" and "spefscr".
5503 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5504 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5505 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5507 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5509 2003-02-18 Keith Seitz <keiths@redhat.com>
5511 * Makefile.in: Add gdbtk-interps.c.
5513 2003-02-18 Kevin Buettner <kevinb@redhat.com>
5515 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5516 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5518 2003-02-18 Andrew Cagney <cagney@redhat.com>
5520 * symtab.h (struct objfile): Add opaque declaration.
5522 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
5524 From Jim Ingham <jingham@apple.com>:
5525 * dbxread.c (process_one_symbol): Use last_function_start rather
5526 than function_start_offset to find the real beginning of the
5527 current function. The latter is just the text section offset on
5528 some systems, the former is always the real function start.
5530 2003-02-17 Andrew Cagney <cagney@redhat.com>
5532 * configure.in: Revert ${target} != ${host}.
5534 2003-02-17 Andrew Cagney <ac131313@redhat.com>
5536 * configure.in (Makefile): Use the test ${target} != ${host},
5537 instead of the absence of the "nm.h" file, to determine of the
5538 configuration non-native.
5539 * configure: Regenerate.
5541 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
5543 From Brian Ford <ford@vss.fsi.com>
5545 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5546 conditionalize tui_active test.
5547 (lookup_cmd_1): Ditto.
5549 2003-02-14 Mark Kettenis <kettenis@gnu.org>
5551 * configure.in: Add check for _etext.
5552 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5554 * config.in, configure: regenerated.
5556 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
5558 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5560 2003-02-14 Andrew Cagney <ac131313@redhat.com>
5562 * main.c (tui_version): Delete variable.
5563 (captured_main): When --tui, set interpreter_p to "tui" instead of
5564 enabling tui_version.
5565 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5567 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5568 * cli/cli-cmds.c (disassemble_command): Ditto.
5569 * defs.h (tui_version): Delete declaration.
5570 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5571 (tui-interp.o): Add rules.
5572 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5574 2003-02-14 Christopher Faylor <cgf@redhat.com>
5576 * win32-nat.c (register_loaded_dll): Correctly set address range for
5579 2003-02-12 Jason Molenda (jmolenda@apple.com)
5581 * symmisc.c (print_objfile_statistics): Include information about
5582 the number of psymtabs and symtabs in each object file.
5584 2003-02-13 Keith R Seitz <keiths@redhat.com>
5586 * main.h (struct captured_main_args): Add interpreter_p.
5587 * main.c (captured_main): Initialize interpreter_p from context.
5588 * gdb.c (main): Set interpreter_p argument.
5589 * Makefile.in (gdb.o): Add dependency for interps.h.
5591 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5593 * event-top.c (cli_command_loop): Delete declaration.
5594 (_initialize_event_loop): Delete function setting event_loop_hook.
5595 * event-top.h (cli_command_loop): Declare. Update copyright.
5596 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5597 * interps.c (current_interp_command_loop): When event_loop_p, call
5600 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5602 * interps.h (interp_command_loop_ftype): Change return type to
5605 2003-02-12 Michal Ludvig <mludvig@suse.cz>
5607 * x86-64-tdep.c (x86_64_extract_return_value)
5608 (x86_64_store_return_value): Use regcache instead of regbuf.
5609 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5610 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5612 2003-02-11 Andrew Cagney <ac131313@redhat.com>
5614 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5615 * aclocal.m4: Regenerate.
5616 * configure: Regenerate.
5618 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5619 TCL_LD_SEARCH_FLAGS.
5621 2003-02-10 Michal Ludvig <mludvig@suse.cz>
5623 * dwarf2cfi.c: Reindented.
5625 2003-02-09 Andrew Cagney <ac131313@redhat.com>
5627 * interps.c (clear_interpreter_hooks): Convert function definition
5630 2003-02-07 David Carlton <carlton@math.stanford.edu>
5632 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5634 2003-02-07 Kevin Buettner <kevinb@redhat.com>
5636 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5637 (struct type): ...to here.
5638 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5640 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5641 (replace_type): Set length on all type variants for a given type.
5643 2003-02-07 Andrew Cagney <ac131313@redhat.com>
5645 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5647 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5649 2003-02-06 Andrew Cagney <ac131313@redhat.com>
5651 * Makefile.in (symm-nat.o): Update dependencies.
5652 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5653 (lynx-nat.o, ia64-linux-nat.): Ditto.
5654 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5655 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5656 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5658 * Makefile.in (inflow_h): Define.
5659 (procfs.o, inflow.o, procfs.o): Update dependencies.
5660 * inftarg.c (child_stop): Delete extern declaration of
5661 inferior_process_group. Include "inflow.h".
5662 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5663 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5664 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5665 (our_process_group, inferior_process_group): Extern declarations.
5667 * procfs.c: Include "gdb_assert.h".
5669 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5670 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5671 * jv-typeprint.c (java_type_print_base): Ditto.
5672 * typeprint.c (typedef_print): Eliminate STREQ.
5673 * cli/cli-script.c (define_command, define_command): Ditto.
5674 * main.c (captured_main): Ditto.
5675 * values.c (lookup_internalvar): Ditto.
5676 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5677 within `if' conditional.
5678 * linespec.c (decode_line_2): Ditto.
5679 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5680 (bfd_openw_with_cleanup): Ditto.
5682 2003-02-07 Mark Kettenis <kettenis@gnu.org>
5684 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5685 legacy_extract_return_value and store_return_value to
5686 legacy_return_value.
5688 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5690 * win32-nat.c (get_relocated_section_addrs): New function. Find
5691 section load addresses for symbol handling in relocated DLLs.
5692 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5694 2003-02-05 Fred Fish <fnf@intrinsity.com>
5696 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5698 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5700 (angel_RDI_info): Ditto.
5701 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5703 (threads_continue_all_with_signals): Ditto.
5705 2003-02-05 Jim Ingham <jingham@apple.com>
5706 Keith Seitz <keiths@redhat.com>
5707 Elena Zannoni <ezannoni@redhat.com>
5708 Andrew Cagney <ac131313@redhat.com>
5710 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5711 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5712 (SUBDIR_MI_OBS): Add "mi-interp.o".
5713 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5714 (SFILES): Add "interps.c".
5715 (COMMON_OBS): Add "interps.o".
5716 (interps_h, mi_main_h): Define.
5717 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5718 (mi-main.o, main.o, event-top.o): Update dependencies.
5719 * cli/cli-interp.c: New file.
5720 * interps.h, interps.c: New files.
5721 * top.c: (gdb_init): Don't install the default interpreter, handed
5723 * main.c: Include "interps.h".
5724 (interpreter_p): Note that it should malloc'ed.
5725 (captured_command_loop): Call current_interp_command_loop.
5726 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5727 xfree and xstrdup when updating interpreter_p. Install the
5728 default interpreter. Add hack to stop mi1's copyright notice
5730 * event-top.h (gdb_setup_readline): Declare.
5731 (gdb_disable_readline): Declare.
5732 * event-top.c: Include "interps.h".
5733 (display_gdb_prompt): Call current_interp_display_prompt_p.
5734 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5735 gdb_stdlog, and gdb_stdtarg.
5736 (_initialize_event_loop): Don't call gdb_setup_readline.
5737 * cli-out.c (cli_out_set_stream): New function.
5738 * cli-out.h (cli_out_set_stream): Declare.
5740 2003-02-06 Mark Kettenis <kettenis@gnu.org>
5742 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5743 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5744 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5745 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5746 config/i386/i386v42mp.mt: Removed.
5748 2003-02-05 Mark Kettenis <kettenis@gnu.org>
5750 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5753 2003-02-05 Michael Chastain <mec@shout.net>
5755 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5756 2.12.1 and earlier versions.
5758 2003-02-05 Andrew Cagney <ac131313@redhat.com>
5760 Remove orphaned hosts, targets and files.
5761 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5762 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5763 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5764 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5765 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5766 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5767 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5768 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5769 * config/sparc/tm-sp64sim.h: Delete.
5770 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5772 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5773 mips*-dec-mach3* targets.
5775 2003-02-04 Michael Chastain <mec@shout.net>
5777 * NEWS: Fix typo: sepcifying -> specifying.
5779 2003-02-04 Michael Chastain <mec@shout.net>
5781 * dwarfread.c: Add documentation on the state of dwarf-1,
5782 looking towards obsoletion.
5784 2003-02-03 Michael Chastain <mec@shout.net>
5786 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5787 gdb/testsuite/gdb.c++/pr-1023.exp.
5789 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5791 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5792 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5794 * utils.c (init_page_info): Delete reference to MPW in comments.
5795 * main.c (captured_main): Delete #ifdef MPW.
5797 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5799 * NEWS: Note that the m32r-*-elf* is obsolete.
5800 * monitor.c (monitor_expect): Obsolete reference to m32r.
5801 * configure.tgt: Mark m32r-*-elf* as obsolete.
5802 * MAINTAINERS: Mark m32k as obsolete.
5803 * m32r-rom.c: Obsolete file.
5804 * config/m32r/m32r.mt: Obsolete file.
5805 * config/m32r/tm-m32r.h: Obsolete file.
5806 * m32r-stub.c: Obsolete file.
5807 * m32r-tdep.c: Obsolete file.
5809 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5811 * NEWS: Mention that the z8k-zilog-none is obsolete.
5812 * MAINTAINERS: Mark z8k as obsolete.
5813 * configure.tgt: Obsolete the z8k-*-coff* target.
5814 * config/z8k/z8k.mt: Obsolete file.
5815 * config/z8k/tm-z8k.h: Obsolete file.
5816 * z8k-tdep.c: Obsolete file.
5818 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5820 * NEWS: Mention that the mn10200-elf is obsolete.
5821 * configure.tgt: Obsolete mn10200-*-* target.
5822 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5823 mention that the mn10200 is obsolete.
5824 * breakpoint.h: Ditto.
5825 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5826 * config/mn10200/mn10200.mt: Obsolete file.
5827 * config/mn10200/tm-mn10200.h: Obsolete file.
5828 * mn10200-tdep.c: Obsolete file.
5830 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5832 * MAINTAINERS: Mark h8500 as obsolete.
5833 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5834 * findvar.c (value_from_register): Ditto.
5835 * h8500-tdep.c: Mark file as obsolete.
5836 * config/h8500/h8500.mt: Ditto.
5837 * config/h8500/tm-h8500.h: Ditto.
5838 * NEWS: Mention that h8500 is obsolete.
5840 2003-02-04 David Carlton <carlton@math.stanford.edu>
5842 * objfiles.c (allocate_objfile): Always set name. Add comment at
5844 * jv-lang.c (get_dynamics_objfile): Add comment.
5846 2003-02-04 David Carlton <carlton@math.stanford.edu>
5848 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5849 * printcmd.c (build_address_symbolic): Replace uses of
5850 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5851 SYMBOL_NAME, and asm_demangle.
5854 2003-02-04 David Carlton <carlton@math.stanford.edu>
5856 * linespec.c (decode_compound): Extract code into
5858 (lookup_prefix_sym): New function.
5860 2003-02-04 David Carlton <carlton@math.stanford.edu>
5862 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5863 FLOAT_COERCION_BADNESS.
5864 * gdbtypes.c (rank_one_type): Replace all uses of
5865 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5867 2003-02-04 Jim Blandy <jimb@redhat.com>
5869 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5870 section, let dwarf_macinfo_section point to it, not
5873 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5875 Pointed out by Anton Blanchard <anton@samba.org>.
5876 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5877 (ppc_linux_at_sigtramp_return_path): Use it.
5879 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5881 * defs.h (streq): Add prototype.
5882 * utils.c (streq): New function.
5884 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5885 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5886 * mdebugread.c (new_symbol): Likewise.
5887 * stabsread.c (define_symbol): Likewise.
5888 * coffread.c (process_coff_symbol): Likewise.
5889 * dwarfread.c (new_symbol): Likewise.
5891 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5892 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5894 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5895 SYMBOL_INIT_DEMANGLED_NAME.
5896 * objfiles.c: Include "hashtab.h".
5897 (allocate_objfile): Call htab_set_functions_ex for the
5898 demangled_names_hash.
5899 (free_objfile): Call htab_delete for the demangled_names_hash.
5900 * objfiles.h (struct htab): Add declaration.
5901 (struct objfile): Add demangled_names_hash.
5902 * symfile.c: Include "hashtab.h".
5903 (reread_symbols): Call htab_delete for the demangled_names_hash.
5904 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5905 SYMBOL_NAME in the bcache.
5906 * symtab.c: Include "hashtab.h". Update comments.
5907 (create_demangled_names_hash, symbol_set_names): New functions.
5908 (symbol_find_demangled_name): New function, broken out from
5909 symbol_init_demangled_names.
5910 (symbol_init_demangled_names): Use it.
5911 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5912 (SYMBOL_SET_NAMES): New macro.
5913 (symbol_set_names): Add prototype.
5915 2003-02-03 Jim Blandy <jimb@redhat.com>
5917 Use a single, consistent representation for an empty minimal
5918 symbol table in an objfile.
5919 * objfiles.c (terminate_minimal_symbol_table): New function.
5920 (allocate_objfile): Call it.
5921 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5922 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5924 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5925 objfile has minimal symbols, compare minimal_symbol_count to zero,
5926 instead of comparing msymbols with NULL.
5927 * objfiles.c (have_minimal_symbols): Same.
5928 * solib-sunos.c (solib_add_common_symbols): Call
5929 terminate_minimal_symbol_table.
5930 * symfile.c (reread_symbols): Same.
5932 2003-02-03 Kevin Buettner <kevinb@redhat.com>
5934 * s390-tdep.c (s390_address_class_type_flags)
5935 (s390_address_class_type_flags_to_name)
5936 (s390_address_class_name_to_type_flags): New functions.
5937 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5938 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5940 2003-02-03 Michael Snyder <msnyder@redhat.com>
5942 * arm-tdep.c: Fix spell-o in comment.
5944 2003-02-03 Michal Ludvig <mludvig@suse.cz>
5946 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5947 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5948 error messages to contain BFD filename.
5950 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
5952 Fix PR gdb/742 gdb/743 gdb/877
5953 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5954 (do_mixed_source_and_assembly): Use
5955 make_cleanup_ui_out_tuple_begin_end and
5956 make_cleanup_ui_out_tuple_begin_end.
5957 (do_mixed_source_and_assembly): Ditto.
5958 * thread.c (do_captured_list_thread_ids): Ditto.
5959 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5960 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5961 ui_out_tuple_end): Delete prototypes.
5962 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5963 ui_out_list_end, ui_out_tuple_end): Delete.
5965 From Kevin Buettner <kevinb@redhat.com>:
5966 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
5967 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5968 (do_cleanup_table_end): New functions.
5969 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5970 Use cleanups to invoke_ui_out_tuple_end().
5971 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
5972 * cli/cli-setshow.c (cmd_show_list): Use
5973 make_cleanup_ui_out_tuple_begin_end.
5975 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5977 * frame.c (frame_unwind_register): New function.
5978 (frame_unwind_unsigned_register): Use.
5979 (frame_unwind_signed_register): Use.
5980 (frame_read_register): New function.
5981 * frame.h (frame_unwind_register): Declare.
5982 (frame_read_register): Declare.
5984 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5985 and frame_unwind_register instead of read_memory, write_register
5986 and deprecated_write_register_bytes.
5988 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5990 * frame.h: Note that namelen can be negative.
5991 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5994 * NEWS: Mention that the d10v's `regs' command is deprecated.
5995 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
5996 (d10v_print_registers_info): New function.
5997 (show_regs): Call d10v_print_registers_info.
5998 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
6000 2003-02-02 Mark Kettenis <kettenis@gnu.org>
6002 * stack.c (print_frame_info): Restore call to annotate_frame_begin
6003 lost in the previous patch.
6005 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6007 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
6008 * stack.c (print_frame_info_base): Output complete FRAME tuple
6009 for synthesized frames.
6011 2003-02-02 Andrew Cagney <ac131313@redhat.com>
6013 * mips-nat.c (zerobuf): Delete.
6014 (fetch_inferior_registers): Alloc local zerobuf.
6015 (fetch_core_registers): Alloc local zerobuf.
6016 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
6017 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
6018 * thread-db.c (thread_db_store_registers): Ditto.
6019 * sh-tdep.c (sh_do_register): Ditto.
6020 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
6021 * remote-sim.c (gdbsim_store_register): Ditto.
6022 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
6023 * remote-e7000.c (fetch_regs_from_dump): Ditto.
6024 * monitor.c (monitor_supply_register): Ditto.
6025 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
6026 * mips-nat.c (fetch_inferior_registers): Ditto.
6027 * m68klinux-nat.c (fetch_register): Ditto.
6028 * lynx-nat.c (fetch_inferior_registers): Ditto.
6029 (fetch_inferior_registers): Ditto.
6030 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
6031 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
6032 (hpux_thread_store_registers): Ditto.
6033 * hppah-nat.c (fetch_register): Ditto.
6034 * hppab-nat.c (fetch_register): Ditto.
6035 * hppa-tdep.c (pa_register_look_aside): Ditto.
6036 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
6037 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
6039 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6041 * gdbarch.sh: Explictly specify all method levels. When a
6042 variable with an empty level, provide a non-multi-arch default.
6043 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
6044 * gdbarch.h: Re-generate.
6045 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
6046 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
6048 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6050 * defs.h (host_pointer_to_address): Delete declaration.
6051 (address_to_host_pointer): Delete declaration.
6052 * utils.c (host_pointer_to_address): Delete function.
6053 (address_to_host_pointer): Delete function.
6054 * procfs.c (procfs_address_to_host_pointer): New function.
6055 * procfs.c (proc_set_watchpoint): Use.
6056 (procfs_can_use_hw_breakpoint): Update comments.
6057 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
6058 (som_solib_add): Use.
6059 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
6060 * hppa-tdep.c (unwind_command): Use.
6062 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6064 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
6067 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
6068 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
6069 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
6070 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
6071 (define_symbol): Update.
6072 * symfile.c (generic_load): Remove references to nindy.
6073 * symtab.c: Remove references to nindy.
6075 2003-02-01 Andrew Cagney <ac131313@redhat.com>
6077 * infcmd.c (print_float_info): Delete code conditional on
6079 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
6080 * config/m68k/nm-apollo68b.h: Ditto.
6081 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
6082 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
6083 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
6085 2003-02-01 Mark Kettenis <kettenis@gnu.org>
6087 * config/i386/tm-i386os9k.h: Removed.
6089 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
6090 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
6091 they're identical to i[3456]86-*-sysv* now.
6092 * config/i386/i386v32.mh: Removed.
6093 * config/i386/xm-i386v32.h: Removed.
6094 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
6096 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
6098 * config/i386/i386dgux.mh: Removed.
6099 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
6101 * configure.in: Fix typo.
6102 * configure: Regenerated.
6104 2003-01-31 David Carlton <carlton@math.stanford.edu>
6106 * dwarf2read.c (dwarf2_locate_sections): Set
6107 dwarf_ranges_section.
6109 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6111 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
6112 * utils.c: Update comments documenting legitimate uses of PTR.
6114 * utils.c: Re-indent.
6116 * config/djgpp/fnchange.lst: Delete nindy files.
6117 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
6118 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
6119 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
6120 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
6121 * nindy-share/README, nindy-share/Onindy.c: Delete files.
6122 * nindy-tdep.c, nindy-share/Makefile: Delete files.
6123 * Makefile.in (init.c): Remove nindy references.
6124 (saber_gdb): Delete rule.
6125 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
6126 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
6128 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
6129 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
6130 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
6131 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
6133 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
6134 * saber.suppress: Delete file.
6136 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
6138 * dbxread.c (stabs_data): New static variable.
6139 (fill_symbuf): Support an in-memory buffer for stabs data.
6140 (stabs_seek): New function.
6141 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
6142 (read_ofile_symtab): Use stabs_seek.
6143 (elfstab_build_psymtabs): Take an asection* instead of
6144 an offset and size. Relocate the stabs data if necessary.
6145 Save the section* for dbx_psymtab_to_symtab.
6146 * dwarf2read.c: Add section variables for each debug section.
6147 (dwarf2_locate_sections): Fill them in.
6148 (dwarf2_read_section): Take an asection* argument.
6149 Relocate the section contents if necessary.
6150 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
6151 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
6152 it to dwarf2_read_section.
6153 (dwarf2_build_frame_info): Update callers.
6154 * elfread.c (elf_symfile_read): Update call to
6155 elfstab_build_psymtabs.
6156 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
6157 (DBX_STAB_SECTION): New macro.
6158 * stabsread.h (elfstab_build_psymtabs): Update prototype.
6159 * symfile.c (symfile_dummy_outputs): New function.
6160 (symfile_relocate_debug_section): New function.
6161 * symfile.h (symfile_relocate_debug_section): Add prototype.
6163 2003-01-31 Richard Henderson <rth@redhat.com>
6165 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
6166 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
6167 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
6168 * alpha-tdep.c (alpha_register_name): Add "unique".
6169 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
6170 (ALPHA_UNIQUE_REGNUM): New.
6171 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
6173 2003-01-31 Andrew Cagney <ac131313@redhat.com>
6175 * README: Remove reference to Ericsson 1800 monitor.
6176 * Makefile.in (remote-es.o): Delete rule.
6177 (ALLDEPFILES): Delete remote-es.c.
6178 * remote-es.c: Delete file.
6179 * config/m68k/es1800.mt: Delete file.
6180 * config/djgpp/fnchange.lst: Update.
6181 * configure.tgt: Delete m68*-ericsson-* target.
6183 2003-01-31 Adam Fedor <fedor@gnu.org>
6185 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
6186 Remove duplicate/shadowing variable of same name.
6188 2003-01-30 Jim Blandy <jimb@redhat.com>
6190 * symfile.c (find_separate_debug_file): Assert that the objfile's
6191 directory name we compute ends with a slash, and then assume that
6192 that's so everywhere we use it.
6194 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
6196 * valops.c (value_assign): Flush frame cache after stores to memory
6199 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6201 * Makefile.in (mon960-rom.o): Delete rule.
6202 * mon960-rom.c: Delete file.
6204 2003-01-30 Andrew Cagney <ac131313@redhat.com>
6206 * d10v-tdep.c: Include "frame-unwind.h".
6207 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
6209 (next_addr, uses_frame): Delete.
6210 (struct d10v_unwind_cache): Define.
6211 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
6212 Use info instead of next_addr and uses_frame globals.
6213 (d10v_frame_init_saved_regs): Delete function.
6214 (d10v_init_extra_frame_info): Delete function.
6215 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
6216 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
6217 init_frame_pc or frame_saved_pc.
6218 (d10v_pop_frame): Delete function.
6219 (do_d10v_pop_frame): Delete function.
6220 (d10v_frame_chain): Delete function.
6221 (d10v_frame_chain_valid): Delete function.
6222 (d10v_frame_pc_unwind): New function.
6223 (d10v_frame_id_unwind): New function.
6224 (saved_regs_unwinder): New function.
6225 (d10v_frame_register_unwind): New function.
6226 (d10v_frame_pop): New function.
6227 (d10v_frame_unwind): New variable.
6228 (d10v_frame_p): New function.
6229 (d10v_frame_saved_pc): Delete function.
6230 * Makefile.in (d10v-tdep.o): Update dependencies.
6232 2003-01-30 J. Brobecker <brobecker@gnat.com>
6234 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
6235 causing some regressions due to a change in the default value
6238 2003-01-29 Richard Henderson <rth@redhat.com>
6239 Elena Zannoni <ezannoni@redhat.com>
6240 Daniel Jacobowitz <drow@mvista.com>
6243 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
6245 (RANGES_SECTION): New.
6246 (dwarf_ranges_buffer): New variable.
6247 (struct comp_unit_head): Add member "die".
6248 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
6249 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
6250 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
6251 (dwarf2_locate_sections): Likewise.
6252 (dwarf2_build_psymtabs): Read .debug_ranges.
6253 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
6254 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
6255 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
6256 Look for DW_AT_ranges and return the bounding box.
6258 2003-01-29 Brian Ford <ford@vss.fsi.com>
6260 * win32-nat.c (cygwin_pid): Removed as unused.
6261 (child_attach): Try fall back to Cygwin pid.
6263 2003-01-29 Jim Blandy <jimb@redhat.com>
6265 * objfiles.h (struct objfile): Doc fix.
6267 2003-01-29 Andrew Cagney <ac131313@redhat.com>
6269 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
6270 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
6271 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
6272 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
6273 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
6274 (FRAME_SAVED_PC): Change to a function with predicate.
6275 * gdbarch.h, gdbarch.c: Re-generate.
6277 2003-01-28 Andrew Cagney <ac131313@redhat.com>
6279 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
6281 * complaints.c (complain): Delete function.
6282 * complaints.h (struct deprecated_complaint): Delete definition.
6283 (complain): Delete declaration.
6285 2003-01-28 Kevin Buettner <kevinb@redhat.com>
6287 * mips-tdep.c (mips_init_extra_frame_info): Return early for
6290 2003-01-27 Andrew Cagney <ac131313@redhat.com>
6292 * sentinel-frame.h, sentinel-frame.c: New files.
6293 * Makefile.in (frame.o): Update dependencies.
6294 (SFILES): Add sentinel-frame.c.
6295 (sentinel_frame_h): Define.
6296 (COMMON_OBS): Add sentinel-frame.o.
6297 (sentinel-frame.o): Specify dependencies.
6298 * frame.c: Include "sentinel-frame.h".
6299 (frame_register_unwind): Rewrite assuming that there is always a a
6301 (frame_register, generic_unwind_get_saved_register): Ditto.
6302 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
6303 (create_sentinel_frame, unwind_to_current_frame): New functions.
6304 (get_current_frame): Rewrite using create_sentinel_frame and
6305 unwind_to_current_frame. When possible, always create a frame.
6306 (create_new_frame): Set next to the sentinel frame.
6307 (get_next_frame): Rewrite. Don't go below the level 0 frame.
6308 (deprecated_update_frame_pc_hack): Update the next frame's PC and
6309 ID cache when necessary.
6310 (frame_saved_regs_id_unwind): Use frame_relative_level.
6311 (deprecated_generic_get_saved_register): Use frame_relative_level,
6312 get_frame_saved_regs, get_frame_pc, get_frame_base and
6314 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
6317 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6319 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
6321 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6323 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
6324 (maintenance_set_profile_cmd): Use error () instead of warning ().
6326 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6328 * configure.in: Check that -pg works if using --enable-profiling.
6329 Check for monstartup and _mcleanup regardless of --enable-profiling.
6330 * maint.c: Check for monstartup and _mcleanup before using them.
6331 * config.in: Regenerated.
6332 * configure: Regenerated.
6334 2003-01-24 Nick Clifton <nickc@redhat.com>
6338 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
6340 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
6341 (sh2e_show_regs): New.
6342 (sh_gdbarch_init): Handle bfd_mach_sh2e.
6343 * config/sh/tm-sh.h: Added sh2e to comments.
6345 2003-01-23 Jim Blandy <jimb@redhat.com>
6347 * symfile.c (syms_from_objfile): Don't print the "(no debugging
6348 symbols found)" message here; we haven't checked for a separate
6349 debug info file yet, so we don't know yet.
6350 (symbol_file_add_with_addrs_or_offsets): Print it here, after
6351 we've looked everywhere. Also, there's no need to print a special
6352 message when we're loading the separate debug info file: the one
6353 symbol_file_add prints is fine.
6355 2003-01-23 Alexander Larsson <alexl@redhat.com>
6356 Jim Blandy <jimb@redhat.com>
6358 Add support for executables whose debug info has been separated
6359 out into a separate file, leaving only a link behind.
6360 * objfiles.h (struct objfile): New fields: separate_debug_objfile
6361 and separate_debug_objfile_backlink.
6362 (put_objfile_before): New declaration.
6363 * symfile.c: #include "filenames.h".
6364 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
6365 debug info in a separate file, read that, too. Save the addrs
6366 argument, so we can use it again to read the separated debug info;
6367 syms_from_objfile modifies the table we pass it.
6368 (reread_symbols): After re-reading an objfile, call
6369 reread_separate_symbols to refresh its separate debug info
6370 objfile, if it has one.
6371 (reread_separate_symbols, find_separate_debug_file,
6372 get_debug_link_info, separate_debug_file_exists): New functions.
6373 (debug_file_directory): New global var.
6374 (_initialize_symfile): Initialize debug_file_directory, and
6375 provide the new `set debug-file-directory' command to let the user
6377 * objfiles.c (free_objfile): If this objfile has its debug info in
6378 a separate objfile, free that one too. If this is itself a
6379 separate debug info objfile, clear our parent's backlink.
6380 (put_objfile_before): New function.
6381 * utils.c (gnu_debuglink_crc32): New function.
6382 * defs.h (gnu_debuglink_crc32): New declaration.
6383 * Makefile.in (symfile.o): Note dependency on "filenames.h".
6384 * configure.in: Handle --with-separate-debug-dir config option.
6385 * acinclude.m4 (AC_DEFINE_DIR): New macro.
6386 * acconfig.h (DEBUGDIR): New macro.
6387 * configure, aclocal.m4, config.in: Regenerated.
6389 2003-01-22 Jim Blandy <jimb@redhat.com>
6391 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
6392 like the old symbol_file_add, but taking new arguments: you can
6393 now pass in either a `struct section_addr_info' list to say where
6394 each section is loaded, or a `struct section_offsets' table. Pass
6395 these new arguments through to syms_from_objfile as appropriate.
6396 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
6397 with the appropriate quiescent values for the new arguments.
6399 * symfile.c: #include "gdb_assert.h".
6400 (syms_from_objfile): Add the ability to pass in a section offset
6401 table directly, as an alternative to the section_addr_info table.
6402 Document arguments better.
6403 (symbol_file_add): Pass extra arguments to syms_from_objfile.
6404 * symfile.h (syms_from_objfile): Update declaration.
6405 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
6407 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
6409 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
6411 Original patch by Tom Tromey <tromey@cygnus.com> and
6412 Jason Molenda <jmolenda@apple.com>.
6413 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
6414 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
6415 * NEWS: Mention profiling.
6416 * configure.in (--enable-gdbtk): Fix typo.
6417 (--enable-profiling): New. Set PROFILE_CFLAGS.
6418 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
6420 (profiling_state): New variable.
6421 (mcleanup_wrapper): New function.
6422 (_initialize_maint): Remove NOTYET, fix call to
6423 add_setshow_boolean_cmd for "maint set profile".
6424 * configure: Regenerated.
6426 2003-01-21 Martin M. Hunt <hunt@redhat.com>
6428 * Makefile.in (install-gdbtk): Install PNG images too.
6430 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6432 * exec.c (text_start): Delete global variable.
6433 (exec_file_attach): Make text_start local to the function.
6434 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
6435 * valops.c (hand_function_call): Delete code that handles
6436 BEFORE_TEXT_END and AFTER_TEXT_END.
6437 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
6438 of CALL_DUMMY_LOCATION.
6439 * gdbarch.c: Regenerate.
6440 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
6441 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
6442 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
6443 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
6444 (text_end): Delete extern declaration.
6446 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6448 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
6449 * blockframe.c (backtrace_below_main): Move to "frame.c".
6450 (frame_chain_valid): Delete check for backtrace_below_main.
6451 (_initialize_blockframe): Delete initialization, move ``set
6452 backtrace-below-main'' command to "frame.c".
6453 (do_flush_frames_sfunc): Delete function.
6454 * frame.c: Include "command.h" and "gdbcmd.h".
6455 (frame_type_from_pc): New function.
6456 (create_new_frame): Use frame_type_from_pc.
6457 (legacy_get_prev_frame): New function.
6458 (get_prev_frame): Rewrite. When an old style frame, call
6459 legacy_get_prev_frame. Otherwize, unwind the PC first.
6460 (_initialize_frame): Add ``set backtrace-below-main'' command.
6461 * Makefile.in (frame.o): Update dependencies.
6463 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6465 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6466 DEPRECATED_REGISTERS_INFO.
6468 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6470 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6471 Maintainers'. Update `Various Maintainers'.
6473 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6475 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6476 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6477 Suppress actual parameters when `-'.
6478 * gdbarch.h, gdbarch.c: Regenerate.
6480 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6482 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6483 code handling dummy frames.
6485 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6487 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6488 (struct frame_unwind): Add field pop.
6489 * frame.h (frame_pop): Declare.
6490 * frame.c (frame_saved_regs_pop): New function.
6491 (trad_frame_unwinder): Add frame_saved_regs_pop.
6492 (frame_pop): New function.
6493 * dummy-frame.c (dummy_frame_pop): New function.
6494 (discard_innermost_dummy): New function.
6495 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6496 (dummy_frame_unwind): Add dummy_frame_pop.
6497 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6498 * valops.c (hand_function_call): Ditto.
6499 * stack.c (return_command): Ditto.
6501 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6503 * cris-tdep.c: Fix function declaration indentation.
6504 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6505 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6506 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6507 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6508 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6509 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6511 2003-01-18 Michael Chastain <mec@shout.net>
6513 * README (Unpacking and Installation -- quick overview):
6514 Warn against ".../gdb-5.3/gdb/configure".
6516 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6518 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6519 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6520 (struct frame_unwind): Declare opaque.
6521 (dummy_frame_p): Declare function.
6522 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6523 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6524 * dummy-frame.c: Include "frame-unwind.h".
6525 (dummy_frame_p): New function.
6526 (dummy_frame_unwind): New variable.
6527 * frame.c: Include "frame-unwind.h".
6528 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6529 to use the new unwind field.
6530 (set_unwind_by_pc): Delete function.
6531 (create_new_frame, get_prev_frame): Set unwind field using
6532 frame_unwind_find_by_pc.
6533 (trad_frame_unwind, trad_frame_unwinder): New variables.
6534 * frame.h (trad_frame_unwind): Declare variable.
6535 (frame_id_unwind_ftype): Delete declaration.
6536 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6537 (struct frame_unwind): Declare opaque.
6538 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6539 register_unwind with a single unwind pointer.
6540 * frame-unwind.h, frame-unwind.c: New files.
6541 * Makefile.in (SFILES): Add frame-unwind.c.
6542 (frame_unwind_h): Define.
6543 (COMMON_OBS): Add frame-unwind.o.
6544 (frame-unwind.o): Specify dependencies.
6545 (frame.o, dummy-frame.o): Update dependencies.
6547 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6549 * ada-valprint.c: Eliminate PTR.
6550 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6551 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6552 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6553 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6554 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6555 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6556 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6558 2003-01-17 Andrew Cagney <ac131313@redhat.com>
6560 * main.c (captured_main): Don't use PTR.
6561 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6562 * gdbtypes.c (lookup_primitive_typename): Ditto.
6563 (lookup_struct_elt_type): Ditto.
6564 * f-valprint.c (info_common_command): Ditto.
6565 (list_all_visible_commons): Ditto.
6566 * jv-typeprint.c (java_type_print_base): Ditto.
6568 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6569 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6570 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6571 i386-interix-nat.c and i386-interix-tdep.c. Rename
6572 m68klinux-nat.c and m68klinux-tdep.c. Rename
6573 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6574 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6575 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6576 * main.c (captured_main): Use xfree, not free.
6578 2003-01-16 Andrew Cagney <ac131313@redhat.com>
6580 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6581 ID back using a parameter.
6582 * frame.c (frame_id_unwind): Update call.
6583 (frame_saved_regs_id_unwind): Update.
6584 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6585 * dummy-frame.h (struct frame_id): Add opaque declaration.
6586 (dummy_frame_id_unwind): Update declaration.
6588 2003-01-15 Andrew Cagney <ac131313@redhat.com>
6590 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6592 2003-01-15 Stephen P. Smith <ischis2@cox.net>
6594 * MAINTAINERS (Stephen P. Smith): Updated email address.
6596 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
6599 * breakpoint.c (until_break_command): Add new argument. Use it to
6600 decide whether to stop only at the current frame or not.
6601 * breakpoint.h (until_break_command): Update prototype.
6602 * infcmd.c (until_command): Add new argument to until_break_command
6604 (advance_command): New function.
6605 (_initialize_infcmd): Update help string for 'until' command.
6606 Add new 'advance' command.
6608 2003-01-14 David Carlton <carlton@math.stanford.edu>
6610 * linespec.c (decode_line_1): Normalize comments.
6612 (locate_first_half): Ditto.
6613 (decode_compound): Ditto.
6614 (symtab_from_filename): Ditto.
6615 (decode_all_digits): Ditto.
6616 (decode_dollar): Ditto.
6617 (find_methods): Ditto.
6618 (find_toplevel_char): Ditto.
6620 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6622 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6623 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6624 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6625 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6626 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6627 * language.c, language.h, m32r-tdep.c: Update copyright.
6628 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6629 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6630 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6631 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6632 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6633 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6635 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6637 * stabsread.h (process_later, resolve_cfront_continuation):
6639 Update copyright years.
6640 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6641 Update copyright year.
6642 * dbxread.c(struct cont_elem): Obsolete.
6643 (process_later, process_now): Obsolete functions.
6644 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6645 Update copyright year.
6646 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6647 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6648 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6649 (parse_partial_symbols): Obsolete cfront support.
6651 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6653 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6654 read_cfront_baseclasses, read_cfront_member_functions,
6655 resolve_cfront_continuation,read_cfront_static_fields,
6656 copy_cfront_struct_fields): Obsolete functions.
6657 (define_symbol, read_one_struct_field): Obsolete cfront support.
6658 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6659 Update Copyright year.
6661 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6663 * stack.c (print_frame_info, print_stack_frame_base_stub,
6664 print_stack_frame_base, show_and_print_stack_frame_stub,
6665 show_and_print_stack_frame, print_only_stack_frame_stub,
6666 print_only_stack_frame): Delete functions.
6667 (print_stack_frame_stub): Call print_frame_info instead of
6668 print_frame_info_base.
6669 (print_frame_info_base): Rename to print_frame_info.
6670 (backtrace_command_1): Call print_frame_info, instead of
6671 print_frame_info_base.
6672 (current_frame_command): Call print_stack_frame, instead of
6673 print_only_stack_frame.
6674 (frame_command): Call print_stack_frame, instead of
6675 show_and_print_stack_frame.
6676 (up_command): Ditto.
6677 (down_command): Ditto.
6678 * frame.h (print_only_stack_frame): Delete prototype.
6679 * infrun.c (normal_stop): Call print_stack_frame, instead of
6680 show_and_print_stack_frame.
6681 * thread.c (info_threads_command): Call print_stack_frame, instead
6682 of print_only_stack_frame.
6684 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6686 * README (Graphical interface to GDB): Update URL. Point at
6689 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6692 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6694 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6697 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6699 * thread-db.c (attach_thread): Prototype.
6700 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6701 thread information (ti), and valid flags (th_valid, ti_valid).
6702 (attach_thread): Move target_pid_to_str call to after the thread
6703 is added to GDB's list. Initialize the cache.
6704 (thread_get_info_callback, thread_db_map_id2thr)
6705 (thread_db_get_info): New functions.
6706 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6707 (thread_db_store_registers, thread_db_thread_alive)
6708 (thread_db_get_thread_local_address): Use them.
6709 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6710 of calling error() for threads in unknown state.
6712 (clear_lwpid_callback): New function.
6713 (thread_db_resume): Use it to clear the cache.
6715 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6717 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6718 (resume_callback): Remove dead code.
6720 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6722 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6724 * gdbarch.h, gdbarch.c: Regenerate.
6725 * stack.c (frame_info): Only initialize the saved registers when
6726 FRAME_INIT_SAVED_REGS_P.
6727 * frame.c (frame_saved_regs_register_unwind): Assert
6728 FRAME_INIT_SAVED_REGS_P.
6729 (deprecated_generic_get_saved_register): Ditto.
6731 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6733 * source.c (openp): Squelch warning about "filename".
6735 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6737 * source.c (openp): If the file does not exist don't necessarily
6740 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6743 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6744 (integer_types_same_name_p): New function.
6745 (rank_one_type): Use it.
6746 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6748 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6750 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6752 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6753 * configure.in: Add --with-sysroot.
6754 * configure: Regenerated.
6755 * main.c (gdb_sysroot): New variable.
6756 (captured_main): Initialize gdb_sysroot.
6757 * defs.h (gdb_sysroot): New extern declaration.
6758 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6760 2003-01-12 Michael Chastain <mec@shout.net>
6762 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6764 2003-01-12 Michael Chastain <mec@shout.net>
6766 * top.c (print_gdb_version): Bump copyright year to 2003.
6768 2003-01-12 David Carlton <carlton@bactrian.org>
6770 * linespec.c (symtab_from_filename): Rename variable 's' to
6773 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6775 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6777 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6779 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6781 * d10v-tdep.c: Include "gdb_assert.h".
6782 (d10v_store_return_value): Rewrite to match current interface.
6783 (d10v_extract_struct_value_address): Ditto.
6784 (d10v_extract_return_value): Ditto.
6785 (d10v_gdbarch_init): Set store_restore_value,
6786 extract_struct_value_address and extract_return_value.
6788 2003-01-12 J. Brobecker <brobecker@gnat.com>
6790 * hpread.c (set_namestring): New procedure replacing the
6791 SET_NAMESTRING macro.
6792 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6793 by calls to set_namestring.
6795 2003-01-11 J. Brobecker <brobecker@gnat.com>
6797 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6798 a compilation warning.
6799 (hpread_process_one_debug_symbol): Likewise.
6801 2003-01-10 David Carlton <carlton@math.stanford.edu>
6803 * linespec.c (decode_line_1): Rename variable 's' to
6805 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6806 (decode_dollar): Ditto.
6807 (decode_variable): Ditto.
6808 (symbol_found): Ditto.
6810 2003-01-09 Michael Chastain <mec@shout.net>
6812 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6814 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
6816 * win32-nat.c (set_process_privilege): New function.
6817 (child_attach): Call set_process_privilege() to enable the
6818 SE_DEBUG_NAME user privilege if available in process token.
6820 2003-01-10 J. Brobecker <brobecker@gnat.com>
6822 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6823 compilation error in the previous revision.
6825 2003-01-09 David Carlton <carlton@math.stanford.edu>
6827 * linespec.c: Update copyright.
6829 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
6831 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6833 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6835 2003-01-09 Andrew Cagney <ac131313@redhat.com>
6837 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6839 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6840 (frame_saved_regs_zalloc): Update.
6841 (frame_saved_regs_register_unwind): Update.
6842 (create_new_frame): Update.
6843 (get_prev_frame): Update.
6844 (frame_extra_info_zalloc): Update.
6845 (deprecated_get_frame_saved_regs): Update.
6846 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6847 * cris-tdep.c: Update comment.
6849 * somsolib.h: Fix function indentation.
6850 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6851 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6852 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6853 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6854 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6856 * infrun.c (follow_fork): Use ISO C definition.
6857 * expprint.c (print_subexp): Use xfree instead of free.
6858 * charset.c: Include "gdb_string.h" instead of <string.h>.
6859 (register_iconv_charsets): Use ISO C definition.
6860 (host_charset, target_charset): Ditto.
6861 * Makefile.in (charset.o): Update dependencies.
6862 (mi-cmd-env.o): Update dependencies.
6864 2003-01-08 Andrew Cagney <cagney@redhat.com>
6866 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6869 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6871 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6872 build directories. Save edited gdb output in Mbuild.log. If a
6873 build fails, remove any final GDB executable.
6875 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6877 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6878 replacing hex constants with function names and stripping leading
6879 file name directory prefixes.
6881 2003-01-08 Andrew Cagney <cagney@redhat.com>
6883 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6886 2003-01-08 David Carlton <carlton@math.stanford.edu>
6888 * linespec.c (decode_line_1): Move code into decode_variable.
6889 (decode_variable): New function.
6891 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6893 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6895 2003-01-08 Andrew Cagney <cagney@redhat.com>
6897 * cris-tdep.c (cris_frame_init_saved_regs): Use
6898 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6900 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6901 (sh64_nofp_frame_init_saved_regs): Ditto.
6902 (sh_fp_frame_init_saved_regs): Ditto.
6903 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6904 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6905 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6906 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6908 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
6910 * minsyms.c (lookup_minimal_symbol): Update comment.
6911 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6912 (lookup_minimal_symbol_solib_trampoline): Likewise.
6914 2003-01-08 Andrew Cagney <cagney@redhat.com>
6916 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6917 frame_relative_level.
6919 * alpha-tdep.c: Use get_frame_extra_info.
6920 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6921 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6922 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6923 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6925 * alpha-tdep.c: Use get_next_frame.
6926 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6927 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6928 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6929 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6930 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6931 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6932 * xstormy16-tdep.c: Ditto.
6934 2003-01-07 Andrew Cagney <cagney@redhat.com>
6936 * alpha-tdep.c: Use get_frame_base.
6937 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6938 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6939 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6940 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6941 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6942 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6943 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6944 * config/sparc/tm-sparc.h: Ditto.
6946 2003-01-07 Andrew Cagney <cagney@redhat.com>
6948 * frame.c (deprecated_get_frame_context): New function.
6949 (deprecated_set_frame_context): New function.
6950 * frame.h (deprecated_get_frame_context): Declare.
6951 (deprecated_set_frame_context): Declare.
6952 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6953 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6955 2003-01-07 Andrew Cagney <cagney@redhat.com>
6957 * frame.c (deprecated_set_frame_next_hack): New function.
6958 (deprecated_set_frame_prev_hack): New function.
6959 * frame.h (deprecated_set_frame_next_hack): Declare.
6960 (deprecated_set_frame_prev_hack): Declare.
6961 * mcore-tdep.c (analyze_dummy_frame): Use
6962 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6963 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6965 2003-01-07 David Carlton <carlton@math.stanford.edu>
6967 * linespec.c (decode_line_1): Move code into decode_dollar.
6968 (decode_dollar): New function.
6970 2003-01-07 Andrew Cagney <cagney@redhat.com>
6972 * arm-tdep.c (arm_init_extra_frame_info): Use
6973 deprecated_update_frame_base_hack.
6974 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6975 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6976 (fix_frame_pointer): Ditto.
6977 (mn10300_analyze_prologue): Ditto.
6979 2003-01-07 Andrew Cagney <cagney@redhat.com>
6981 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6982 extra_info using frame_extra_info_zalloc.
6983 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6984 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6985 (sh64_init_extra_frame_info): Ditto.
6986 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6987 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6988 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6989 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6990 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6991 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6992 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6993 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6994 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6995 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
6996 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6997 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
6999 * mn10300-tdep.c (analyze_dummy_frame): Use
7000 deprecated_set_frame_extra_info_hack.
7001 * mcore-tdep.c (analyze_dummy_frame): Ditto.
7003 2003-01-07 J. Brobecker <brobecker@gnat.com>
7005 * mdebugread.c (parse_symbol): Skip stProc entries which storage
7006 class is not scText. These do not define "real" procedures.
7007 (parse_partial_symbols): Likewise.
7009 2003-01-06 Michael Snyder <msnyder@redhat.com>
7011 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
7013 2003-01-06 Andrew Cagney <ac131313@redhat.com>
7015 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
7016 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
7017 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
7018 deprecated_frame_xmalloc_with_cleanup.
7019 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
7020 deprecated_frame_xmalloc.
7021 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
7022 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
7024 2003-01-06 Andrew Cagney <cagney@redhat.com>
7026 * x86-64-linux-tdep.c: Include "osabi.h".
7027 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
7029 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
7031 2003-01-06 Andrew Cagney <cagney@redhat.com>
7033 * MAINTAINERS (Target Instruction Set Architectures): Update
7034 arm-elf. Can be built with -Werror, has been multiarched.
7036 * value.h (unpack_long): Make buffer parameter constant.
7037 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
7038 * scm-lang.h (scm_parse): Ditto.
7039 * defs.h (extract_typed_address, extract_address): Ditto.
7040 (extract_long_unsigned_integer): Ditto.
7041 * inferior.h (unsigned_pointer_to_address): Ditto.
7042 (signed_pointer_to_address): Ditto.
7043 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
7044 * gdbarch.h, gdbarch.c: Regenerate.
7045 * findvar.c (extract_long_unsigned_integer): Update.
7046 (extract_address): Update.
7047 (extract_typed_address): Update.
7048 (unsigned_pointer_to_address): Update.
7049 * values.c (unpack_long): Update.
7050 (unpack_double): Update.
7051 (unpack_pointer): Update.
7052 (unpack_field_as_long): Update.
7053 * d10v-tdep.c (d10v_pointer_to_address): Update.
7054 * avr-tdep.c (avr_pointer_to_address): Update.
7055 * scm-lang.c (scm_unpack): Update.
7056 * findvar.c (signed_pointer_to_address): Update.
7058 2003-01-06 Michal Ludvig <mludvig@suse.cz>
7060 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
7061 since it is in i386-tdep.c.
7063 2003-01-06 J. Brobecker <brobecker@gnat.com>
7065 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
7066 failure introduced in the previous change.
7068 2003-01-05 Michael Chastain <mec@shout.net>
7070 * README: Remove references to deleted remote-*.c files:
7071 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
7072 remote-nrom.c, remote-os9k.c, remote-udi.c.
7074 2003-01-05 Mark Kettenis <kettenis@gnu.org>
7076 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
7077 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
7078 i386_get_longjmp_target.
7080 2003-01-05 Andrew Cagney <ac131313@redhat.com>
7082 * arm-tdep.c (prologue_cache): Change to a pointer.
7083 (_initialize_arm_tdep): Allocate prologue_cache.
7084 (check_prologue_cache): Update.
7085 (save_prologue_cache): Update.
7086 (arm_gdbarch_init): Update.
7088 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7090 * stabsread.c (update_method_name_from_physname): Call complaint()
7093 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7095 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
7096 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
7097 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
7099 * blockframe.c: Include "gdbcmd.h" and "command.h".
7100 (backtrace_below_main): New variable.
7101 (file_frame_chain_valid, func_frame_chain_valid)
7102 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
7103 (generic_func_frame_chain_valid): Remove functions.
7104 (frame_chain_valid, do_flush_frames_sfunc): New functions.
7105 (_initialize_blockframe): New function.
7106 * Makefile.in (blockframe.o): Update dependencies.
7107 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
7108 comment. Call frame_chain_valid ().
7109 * frame.h: Remove old prototypes. Add prototype for
7110 frame_chain_valid and update comments to match.
7111 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
7113 * gdbarch.h: Regenerated.
7114 * gdbarch.c: Regenerated.
7116 * alpha-tdep.c (alpha_gdbarch_init): Don't call
7117 set_gdbarch_frame_chain_valid.
7118 * avr-tdep.c (avr_gdbarch_init): Likewise.
7119 * cris-tdep.c (cris_gdbarch_init): Likewise.
7120 * frv-tdep.c (frv_gdbarch_init): Likewise.
7121 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
7122 * i386-tdep.c (i386_svr4_init_abi): Likewise.
7123 (i386_nw_init_abi): Likewise.
7124 (i386_gdbarch_init): Likewise.
7125 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
7126 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
7127 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
7128 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
7129 * mips-tdep.c (mips_gdbarch_init): Likewise.
7130 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
7131 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
7132 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
7133 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7134 * s390-tdep.c (s390_gdbarch_init): Likewise.
7135 * sh-tdep.c (sh_gdbarch_init): Likewise.
7136 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7137 * v850-tdep.c (v850_gdbarch_init): Likewise.
7138 * vax-tdep.c (vax_gdbarch_init): Likewise.
7139 * x86-64-tdep.c (x86_64_init_abi): Likewise.
7141 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
7142 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
7143 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
7144 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
7145 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
7146 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
7147 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
7148 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
7150 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
7152 * Makefile.in (acconfig_h): Remove incorrect macro.
7154 (osabi.o): Update dependencies.
7155 * configure.tgt: Set gdb_osabi based on target triplet.
7156 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
7157 * configure: Regenerated.
7158 * config.in: Regenerated.
7159 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
7160 (GDB_OSABI_DEFAULT): Define if not already defined.
7161 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
7162 (set_osabi_string): New variables.
7163 (gdbarch_register_osabi): Add new OS ABI to
7164 gdb_osabi_available_names.
7165 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
7166 (set_osabi, show_osabi): New functions.
7167 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
7169 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7171 * arch-utils.c (gdbarch_info_init): Set osabi to
7172 GDB_OSABI_UNINITIALIZED.
7173 * gdbarch.sh: Add osabi to struct gdbarch and to struct
7174 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
7175 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
7176 * gdbarch.c: Regenerated.
7177 * gdbarch.h: Regenerated.
7178 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
7180 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
7181 * osabi.h (enum gdb_osabi): Move to defs.h.
7182 (gdbarch_init_osabi): Update prototype.
7183 * defs.h (enum gdb_osabi): Moved here.
7184 * Makefile.in: Update dependencies.
7186 * alpha-tdep.h: Don't include "osabi.h".
7187 (struct gdbarch_tdep): Remove osabi member.
7188 * alpha-tdep.c: Include "osabi.h".
7189 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7190 iterate over arches. Update call to gdbarch_init_osabi.
7191 (alpha_dump_tdep): Don't dump osabi.
7192 * alpha-linux-tdep.c: Include "osabi.h".
7193 * alpha-osf1-tdep.c: Include "osabi.h".
7194 * alphafbsd-tdep.c: Include "osabi.h".
7195 * alphanbsd-tdep.c: Include "osabi.h".
7197 * arm-tdep.h: Don't include "osabi.h".
7198 (struct gdbarch_tdep): Remove osabi member.
7199 * arm-tdep.c: Include "osabi.h".
7200 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7201 iterate over arches. Update call to gdbarch_init_osabi.
7202 (arm_dump_tdep): Don't dump osabi.
7203 * arm-linux-tdep.c: Include "osabi.h".
7204 * armnbsd-tdep.c: Include "osabi.h".
7206 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
7207 Update call to gdbarch_init_osabi.
7209 * i386-tdep.h: Don't include "osabi.h".
7210 (struct gdbarch_tdep): Remove osabi member.
7211 * i386-tdep.c: Include "osabi.h".
7212 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7213 iterate over arches. Update call to gdbarch_init_osabi.
7214 (i386_dump_tdep): Don't dump osabi.
7215 * i386-linux-tdep.c: Include "osabi.h".
7216 * i386-sol2-tdep.c: Include "osabi.h".
7217 * i386bsd-tdep.c: Include "osabi.h".
7218 * i386gnu-tdep.c: Include "osabi.h".
7219 * i386ly-tdep.c: Include "osabi.h".
7220 * i386nbsd-tdep.c: Include "osabi.h".
7221 * i386obsd-tdep.c: Include "osabi.h".
7223 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
7224 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7225 check osabi when iterating over arches. Update call to
7227 (mips_dump_tdep): Don't dump osabi.
7229 * ns32k-tdep.h: Don't include "osabi.h".
7230 (struct gdbarch_tdep): Remove.
7231 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
7232 gdbarch_lookup_osabi. Don't iterate over arches. Don't
7233 allocate tdep. Update call to gdbarch_init_osabi.
7234 (ns32k_dump_tdep): Remove.
7235 (_initialize_ns32k_tdep): Update call to gdbarch_register.
7236 * ns32knbsd-tdep.c: Include "osabi.h".
7238 * ppc-tdep.h: Don't include "osabi.h".
7239 (struct gdbarch_tdep): Remove osabi member.
7240 * rs6000-tdep.c: Include "osabi.h".
7241 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
7242 osabi when iterating over arches. Update call to
7244 (rs6000_dump_tdep): Don't dump osabi.
7245 * ppc-linux-tdep.c: Include "osabi.h".
7246 * ppcnbsd-tdep.c: Include "osabi.h".
7248 * sh-tdep.h: Don't include "osabi.h".
7249 (struct gdbarch_tdep): Remove osabi member.
7250 * sh-tdep.c: Include "osabi.h".
7251 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7252 iterate over arches. Update call to gdbarch_init_osabi.
7253 (sh_dump_tdep): Don't dump osabi.
7254 * shnbsd-tdep.c: Include "osabi.h".
7256 * sparc-tdep.c: Include "osabi.h".
7257 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7258 iterate over arches. Update call to gdbarch_init_osabi.
7259 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
7262 * vax-tdep.h: Don't include "osabi.h".
7263 (struct gdbarch_tdep): Remove.
7264 * vax-tdep.c: Include "osabi.h".
7265 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7266 iterate over arches. Don't allocate tdep. Update call
7267 to gdbarch_init_osabi.
7268 (vax_dump_tdep): Remove.
7269 (_initialize_vax_tdep): Update call to gdbarch_register.
7271 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7273 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
7275 (breakpoint_re_set_one): Don't fetch the value for a disabled
7278 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7280 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
7281 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
7282 (COERCE_FLOAT_TO_DOUBLE): Remove.
7283 * gdbarch.c: Regenerate.
7284 * gdbarch.h: Regenerate.
7285 * Makefile.in: Remove value_h from gdbarch_h.
7286 * valops.c (coerce_float_to_double): New variable.
7287 (default_coerce_float_to_double): Remove.
7288 (standard_coerce_float_to_double): Remove.
7289 (value_arg_coerce): Use coerce_float_to_double.
7290 (_initialize_valops): Add "set coerce-float-to-double".
7291 * value.h (default_coerce_float_to_double): Remove prototype.
7292 (standard_coerce_float_to_double): Remove prototype.
7294 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
7296 * mdebugread.c (parse_symbol): Likewise.
7297 * stabsread.c (define_symbol): Mark all functions as prototyped.
7299 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
7300 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
7301 set_gdbarch_coerce_float_to_double.
7302 * arm-tdep.c (arm_gdbarch_init): Likewise.
7303 * frv-tdep.c (frv_gdbarch_init): Likewise.
7304 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
7305 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
7306 * mips-tdep.c (mips_gdbarch_init): Likewise.
7307 (mips_coerce_float_to_double): Remove.
7308 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7309 (rs6000_coerce_float_to_double): Remove.
7310 * s390-tdep.c (s390_gdbarch_init): Likewise.
7311 * sh-tdep.c (sh_gdbarch_init): Likewise.
7312 (sh_coerce_float_to_double): Remove.
7313 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7314 (sparc_coerce_float_to_double): Remove.
7315 * v850-tdep.c (v850_gdbarch_init): Likewise.
7316 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7317 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7318 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
7319 (hppa_coerce_float_to_double): Remove prototype.
7320 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7322 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7324 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
7326 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7328 Suggested by Stewart Brown <sb24@avaya.com>:
7329 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
7330 in recursive calls. Handle TYPE_CODE_TYPEDEF.
7331 (c_type_print_varspec_suffix): Likewise.
7333 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7335 * configure.in: Don't set and AC_SUBST SUBDIRS.
7336 * configure: Regenerated.
7338 * configure.in: Remove code dealing with shared libraries.
7339 * Makefile.in: Remove HLDFLAGS and HLDENV.
7340 * configure: Regenerated.
7342 2003-01-04 Andrew Cagney <ac131313@redhat.com>
7344 * frame.c (deprecated_frame_xmalloc): New function.
7345 (deprecated_set_frame_saved_regs_hack): New function.
7346 (deprecated_set_frame_extra_info_hack): New function.
7347 * frame.h (deprecated_frame_xmalloc): Declare.
7348 (deprecated_set_frame_saved_regs_hack): Declare.
7349 (deprecated_set_frame_extra_info_hack): Declare.
7351 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7353 * configure.in: Move code that provides the --enable-gdbtk option
7354 right after the code that handles the --enable-tui option, and
7356 * configure: Regenerated.
7358 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
7359 AC_CHECK_FUNCS and remove the old check for pread64.
7360 * acinclude.m4 (AC_GNU_SOURCE): New macro.
7361 * acconfig.h (_GNU_SOURCE): Add.
7362 (HAVE_PREAD64): Remove.
7363 * configure, aclocal.m4, config.in: Regenerated.
7365 2003-01-03 Andrew Cagney <ac131313@redhat.com>
7367 * alpha-tdep.c: Use get_frame_saved_regs.
7368 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7369 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7370 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
7371 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
7372 * vax-tdep.c, xstormy16-tdep.c: Ditto.
7374 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7376 * configure.in: Remove all use of the SUBDIRS variable; add
7377 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
7378 code providing the --enable-multi-ice option, and move it right in
7379 front of the code that checks whether gdbserver is supported.
7381 * configure: Regenerated.
7382 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
7385 2003-01-03 Andrew Cagney <cagney@redhat.com>
7387 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
7388 * avr-tdep.c, cris-tdep.c: Ditto.
7389 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7390 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7392 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7394 * configure.in: Remove --enable-netrom option.
7395 * configure: Regenerated.
7397 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7399 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
7400 declaration for `struct re_pattern_buffer' instead.
7401 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
7403 2003-01-03 J. Brobecker <brobecker@gnat.com>
7405 * mdebugread.c (parse_symbol): Count until the stEnd matching
7408 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7410 * configure.in: Remove --with-cpu option.
7411 subscripts. Remove evil changequotes here.
7412 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
7413 * config.in, configure: Regenerated.
7415 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
7416 * configure.in: Cleanup section that sources GDB and BFD configure
7417 subscripts. Remove evil changequotes here.
7418 * config.in, configure: Regenerated.
7420 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7422 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
7423 frame accessor methods.
7424 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7425 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7426 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
7427 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
7428 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7429 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7430 * z8k-tdep.c: Ditto.
7432 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7434 * configure.in: Remove UI_OUT configuration code.
7435 * ada-lang.c: Update assuming UI_OUT is always true.
7436 * Makefile.in (UIOUT_CFLAGS): Remove.
7437 * configure: Regenerated.
7438 * TODO: Remove blurb about elimination of -DUI_OUT.
7440 * configure.in: Move code that provides the --enable-gdbcli,
7441 --enable-gdbmi options right before the code that handles the
7442 --enable-tui option. Polish a bit.
7443 * configure: Regenerated.
7445 * configure.in: Rewrite check for GNU regex and the
7446 --without-included regex option, and move it into the "Checks for
7447 library functions" section. This makes us use the system regex
7448 again by default on systems with version 2 of the GNU C library.
7449 This was apparently broken.
7450 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
7451 * acconfig.h (USE_INCLUDED_REGEX): Remove.
7452 * config.in, configure: Regenerated.
7454 * configure.in: Move code that provides the --enable-tui option
7455 before the "Checks for libraries" section. Polish the code
7456 somewhat and set need_curses to yes if we build the TUI. Rewrite
7457 code that looks for a library providing termcap functionality to
7458 match more closely what's done in the Readline library, and move
7459 it into to the "Checks for libraries" section.
7460 * configure: Regenerated.
7461 * Makefile.in (TERMCAP): Remove variable.
7462 * config/i386/go32.mh (TERMCAP): Remove variable.
7464 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7466 * MAINTAINERS: Mention gdb_mbuild.sh.
7467 * gdb_mbuild.sh: Rewrite.
7469 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7471 * configure.in: Fix typo in last change.
7472 * config.in, configure: Regenerated.
7474 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7476 * valarith.c (value_binop): Delete obsolete code and comments.
7477 * configure.host: Ditto.
7478 * buildsym.h (make_blockvector): Ditto.
7479 * buildsym.c (make_blockvector): Ditto.
7480 * defs.h (enum language): Ditto.
7481 (chill_demangle): Ditto.
7482 * elfread.c (elf_symtab_read): Ditto.
7483 * dwarfread.c (CHILL_PRODUCER): Ditto.
7484 (set_cu_language): Ditto.
7485 (handle_producer): Ditto.
7486 * expprint.c (print_subexp): Ditto.
7487 * gdbtypes.c (chill_varying_type): Ditto.
7488 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7489 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7490 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7491 (chill_varying_type): Ditto.
7492 * language.h (_LANG_chill): Ditto.
7493 * language.c (binop_result_type, integral_type): Ditto.
7494 (character_type, string_type, structured_type): Ditto.
7495 (lang_bool_type, binop_type_check): Ditto.
7496 * stabsread.h (os9k_stabs): Ditto.
7497 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7498 (define_symbol, read_type, read_struct_fields): Ditto.
7499 (read_array_type, read_enum_type, read_huge_number): Ditto.
7500 (read_range_type, start_stabs): Ditto.
7501 * symfile.c (init_filename_language_table): Ditto.
7502 (add_psymbol_with_dem_name_to_list): Ditto.
7503 * symtab.c (symbol_init_language_specific): Ditto.
7504 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7505 * symtab.h (struct general_symbol_info): Ditto.
7506 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7507 * typeprint.c (typedef_print): Ditto.
7508 * utils.c (fprintf_symbol_filtered): Ditto.
7509 * valops.c (value_cast, search_struct_field, value_slice): Delete
7511 (varying_to_slice): Delete function.
7512 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7513 (varying_to_slice): Delete declaration.
7514 * MAINTAINERS: Update.
7516 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7518 * configure.in: Reorganize "Checks for library functions section"
7519 a bit. Remove check for `btowc' and `isascii' functions.
7520 * configure: Regenerated.
7522 * acconfig.h (_MSE_INT_H): Remove.
7523 * configure.in: Create "Checks for header files" section, and move
7524 appropriate tests there. Don't check for objlist.h, wchar.h,
7525 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7526 misdetection fix. Also add "Checks for types", "Checks for
7527 compiler characteristics" and "Checks for library functions"
7529 * config.in, configure: Regenerated.
7531 * configure.in: Create "Checks for programs" section, and move
7532 appropriate tests there.
7534 2003-01-01 Mark Kettenis <kettenis@gnu.org>
7536 * configure.in: Create "Checks for libraries" section, and move
7537 appropriate tests there. Cleanup check for wctype in libw. Use
7538 AC_SEARCH_LIBS to see whether we need libsocket.
7539 * configure: Regenerated.
7541 For older changes see ChangeLog-2002
7547 version-control: never