1 2003-06-03 J. Brobecker <brobecker@gnat.com>
3 * alphanbsd-tdep.c (alphanbsd_skip_sigtramp_frame): Delete.
4 (alphanbsd_init_abi): Do not set skip_sigtramp_frame in tdep
5 structure, field no longer exists.
7 2003-06-03 J. Brobecker <brobecker@gnat.com>
9 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
10 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Enable the mdebug module.
12 2003-06-03 J. Brobecker <brobecker@gnat.com>
14 * alpha-osf1-tdep.c (alpha_osf1_sigcontext_addr): Replace
15 references to struct frame_info fields by calls to the equivalent
16 accessors. Necessary now that frame_info is opaque.
18 2003-06-03 J. Brobecker <brobecker@gnat.com>
20 * alpha-osf1-tdep.c (alpha_osf1_skip_sigtramp_frame): Delete.
21 (alpha_osf1_init_abi): Do not set skip_sigtramp_frame in tdep
22 structure, field no longer exists.
24 2003-06-03 Theodore A. Roth <troth@openavr.org>
26 * remote.c (init_remote_state): Compute sizeof_g_packet by
27 accumulation of the size of all registers instead of blindly using
28 DEPRECATED_REGISTER_BYTES.
30 2003-06-03 Michael Snyder <msnyder@redhat.com>
32 * config/h8300/tm-h8300.h (h8300sxmode): Declare.
33 * h8300-tdep.c (h8300_gdbarch_init): Set machine mode
36 2003-06-03 J. Brobecker <brobecker@gnat.com>
38 * alpha-osf1-tdep.c (objfiles.h): #include, needed for symfile_objfile.
39 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
41 2003-06-03 Andrew Cagney <cagney@redhat.com>
43 * sparc-tdep.c (sparc_convert_to_virtual): Delete function.
44 (sparc_convert_to_raw): Delete function.
45 (sparc_gdbarch_init): Do not set register_convert_to_raw or
46 register_convert_to_virtual.
48 2003-06-03 Jeff Johnston <jjohnstn@redhat.com>
50 * thread-db.c (thread_db_mourn_inferior): Unpush thread target
51 layer if not dealing with a statically-linked threaded program.
53 2003-06-03 Kris Warkentin <kewarken@qnx.com>
55 * solib.c (solib_open): Update comment to reflect actual search order.
57 2003-06-03 Andrew Cagney <cagney@redhat.com>
59 * frame.c (get_frame_memory_signed): New function.
60 (get_frame_memory, get_frame_memory_unsigned): New function.
61 (get_frame_arch): New function.
62 * frame.h (get_frame_signed_memory, get_frame_arch): Declare.
63 (get_frame_memory, get_frame_unsigned_memory): Declare.
64 * d10v-tdep.c (d10v_frame_unwind_cache): Use
65 get_frame_memory_unsigned and get_frame_arch.
66 (d10v_frame_unwind_cache, saved_regs_unwinder): Ditto.
68 2003-06-03 Raoul Gough <RaoulGough@yahoo.co.uk>
70 * MAINTAINERS (write after approval): Add myself.
72 2003-06-03 Jim Blandy <jimb@redhat.com>
74 * s390-nat.c (supply_gregset, fill_gregset): On the s390x, the
75 elements of gregset_t are 64 bits each, but access registers
76 are still 32 bits, so they're packed two per gregset_t
77 element. Unpack/pack them properly.
79 2003-06-02 David Carlton <carlton@bactrian.org>
81 * linespec.c (find_methods): Break out code into
82 add_matching_methods and add_constructors.
83 (add_matching_methods): New.
84 (add_constructors): Ditto.
86 2003-06-02 Andrew Cagney <cagney@redhat.com>
88 * alpha-tdep.c (alpha_gdbarch_init): Set convert_register_p,
89 register_to_value, and value_to_register, instead of
90 register_convertible, register_convert_to_raw, and
91 register_convert_to_virtual.
92 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
93 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
94 * i386-tdep.c (i386_gdbarch_init): Ditto.
95 * sparc-tdep.c (sparc_print_registers): Delete call to
97 (sparc_gdbarch_init): Do not set register_convertible.
98 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
99 * frv-tdep.c (frv_gdbarch_init): Ditto.
100 * cris-tdep.c (cris_gdbarch_init): Ditto.
102 2003-06-02 Elena Zannoni <ezannoni@redhat.com>
104 * target.h (TARGET_SYMFILE_POSTREAD): Delete unused macro.
105 * symfile.c (reread_symbols): Delete call to TARGET_SYMFILE_POSTREAD.
106 (syms_from_objfile): Ditto.
108 2003-06-03 Andreas Schwab <schwab@suse.de>
110 * m68k-tdep.c (m68k_gdbarch_init): Use set_gdbarch_print_insn ...
111 (_initialize_m68k_tdep): ... instead of deprecated_tm_print_insn.
113 2003-06-02 Richard Henderson <rth@redhat.com>
115 * alpha-tdep.c (alpha_register_reggroup_p): Zero is only
116 a member of all_reggroup.
118 2003-06-02 Richard Henderson <rth@redhat.com>
120 * alpha-tdep.c (alpha_register_type): Change from _virtual_type.
121 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): Remove.
122 (alpha_lds, alpha_sts): New.
123 (alpha_convert_register_p): Change from _register_convertible.
124 (alpha_register_to_value): Change from _convert_to_virtual;
125 restructure and fail for type sizes other than 4 or 8.
126 (alpha_value_to_register): Similarly.
127 (alpha_extract_return_value): Use alpha_sts.
128 (alpha_store_return_value): Use alpha_lds.
129 (alpha_gdbarch_init): Update hooks.
131 2003-06-02 Richard Henderson <rth@redhat.com>
133 * alpha-tdep.c (alpha_register_virtual_type): Use alpha-specific
135 (alpha_sigtramp_register_address): Likewise.
137 2003-06-02 Richard Henderson <rth@redhat.com>
139 * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs): New.
140 (alpha_supply_fp_regs, alpha_fill_fp_regs): New.
141 * alpha-tdep.h: Declare them.
143 * alpha-nat.c (fetch_osf_core_registers): Constify core_reg_mapping.
144 Remove zerobuf. Don't error on UNIQUE.
145 (fetch_elf_core_registers): Use alpha_supply_{int,fp}_regs.
146 (ALPHA_REGSET_UNIQUE): Provide default.
147 (supply_gregset): Use alpha_supply_int_regs.
148 (fill_gregset): Use alpha_fill_int_regs.
149 (supply_fpregset): Use alpha_supply_fp_regs.
150 (fill_fpregset): Use alpha_fill_fp_regs.
151 * alphabsd-tdep.c (NUM_GREGS, NUM_FPREGS): Remove.
152 (alphabsd_supply_reg): Use alpha_supply_int_regs.
153 (alphabsd_fill_reg): Use alpha_fill_int_regs.
154 (alphabsd_supply_fpreg): Use alpha_supply_fp_regs.
155 (alphabsd_fill_fpreg): Use alpha_fill_fp_regs.
156 * config/alpha/nm-linux.h (ALPHA_REGSET_UNIQUE): New.
158 2003-06-02 Richard Henderson <rth@redhat.com>
160 * alpha-tdep.c (alpha_store_return_value): Avoid switch fallthru.
162 * alpha-tdep.c (alpha_extract_return_value): Use internal_error.
163 (alpha_store_return_value): Likewise.
165 2003-06-02 David Carlton <carlton@math.stanford.edu>
167 * block.c (contained_in): Add 'const' to arguments.
168 (block_function): Ditto.
169 * block.h: Update declarations for block_function and
172 2003-06-02 David Carlton <carlton@math.stanford.edu>
174 * objc-lang.c (find_imps): Delete unneeded variable 'sym_symtab'.
175 * c-valprint.c (c_val_print): Delete unneeded variable 's'.
176 * p-valprint.c (pascal_val_print): Ditto.
177 * ada-lang.c (standard_lookup): Delete unneded variable 'symtab'.
179 2003-06-02 Richard Henderson <rth@redhat.com>
181 * alpha-tdep.c (alpha_push_dummy_call): Use
182 builtin_type_ieee_double_little instead of builtin_type_double.
184 * alpha-tdep.c (alpha_push_dummy_call): Handle ABI mandated
185 sign-extension of 32-bit values.
186 (alpha_store_return_value): Similarly.
188 * alpha-tdep.c (alpha_push_dummy_call): Handle COMPLEX types.
189 (alpha_extract_return_value): Likewise.
190 (alpha_store_return_value): Likewise.
192 * alpha-tdep.c (alpha_extract_return_value): Handle IEEE Quad floats.
193 (alpha_store_return_value): Error on IEEE Quad floats.
195 * alpha-tdep.c (alpha_extract_return_value): Convert to regcache.
196 (alpha_extract_struct_value_address): Likewise.
197 (alpha_store_return_value): Likewise.
198 (alpha_store_struct_return): Remove.
199 (alpha_gdbarch_init): Update hook registration to match.
201 * alpha-tdep.c (alpha_register_convert_to_virtual): Tidy use of
202 deprecated interfaces; use ALPHA_REGISTER_SIZE instead of gdbarch
203 macros where appropriate.
204 (alpha_register_convert_to_raw): Similarly. Use unpack_long.
205 (alpha_convert_flt_dbl, alpha_convert_dbl_flt): New.
207 * alpha-tdep.c (alpha_register_virtual_type): Use void_data_ptr
208 for SP, GP; void_func_ptr for PC; non-language-specific types
210 * alpha-tdep.h (ALPHA_GP_REGNUM): New.
212 2003-06-02 Richard Henderson <rth@redhat.com>
214 * top.h (lim_at_start): Declare.
215 * main.c (captured_main): Set it.
216 * top.c (lim_at_start): Define.
217 (command_loop): Use it instead of &environ.
218 * event-top.c (command_handler): Likewise.
220 2003-06-01 Jason Thorpe <thorpej@wasabisystems.com>
222 * mipsnbsd-tdep.c: Update copyright years.
223 (fetch_core_registers): Correct arguments to mipsnbsd_supply_fpreg.
225 2003-06-01 Richard Henderson <rth@redhat.com>
227 * Makefile.in (ALLDEPFILES): Add alpha-mdebug-tdep.c.
228 (alpha-linux-tdep.o): Update dependencies.
229 (alpha-nat.o, alpha-tdep.o, alpha-mdebug-tdep.o): Likewise.
230 * alpha-mdebug-tdep.c: Remove unneeded includes.
232 2003-06-01 Richard Henderson <rth@redhat.com>
234 * alpha-tdep.c (alpha_register_reggroup_p): New.
235 (alpha_gdbarch_init): Register it.
237 2003-06-02 Andrew Cagney <cagney@redhat.com>
239 * dwarfread.c: Eliminate "register"
240 (decode_die_type): Eliminate assignment within "if".
241 (struct_type, decode_array_element_type): Ditto.
242 (dwarf_read_array_type, read_tag_pointer_type): Ditto.
243 (read_subroutine_type, enum_type, add_enum_psymbol): Ditto.
244 (decode_modified_type, completedieinfo): Ditto.
245 * block.c: Eliminate "register".
246 (blockvector_for_pc_sect): Eliminate assignment within "if".
247 * cp-support.h (struct symbol): Opaque declaration.
248 * breakpoint.c (handle_gnu_v3_exceptions): Use xfree, not free.
250 2003-06-01 Richard Henderson <rth@redhat.com>
252 * alpha-tdep.c (alpha_gdbarch_init): Use set_gdbarch_print_insn ...
253 (_initialize_alpha_tdep): ... not deprecated_tm_print_insn.
255 2003-06-01 Adam Fedor <fedor@gnu.org>
257 * gdbarch.sh (function_list): Add FETCH_POINTER_ARGUMENT.
258 * gdbarch.[ch]: Regenerate.
259 * hppa-tdep.c (hppa_fetch_pointer_argument): New function.
260 (hppa_gdbarch_init): Set it in the gdbarch vector.
261 * i386-tdep.c (i386_fetch_pointer_argument): New
262 (i386_gdbarch_init): Set it into gdbarch.
263 * rs6000-tdep.c (rs6000_fetch_pointer_argument): New.
264 (rs6000_gdbarch_init): Set it in gdbarch.
265 * sparc-tdep.c (sparc_fetch_pointer_argument): New
266 (sparc_gdbarch_init): Set it in gdbarch.
268 2003-06-01 Andrew Cagney <cagney@redhat.com>
270 * defs.h (extract_address): Delete declaration.
271 * findvar.c (extract_address): Delete function.
272 * xstormy16-tdep.c (xstormy16_extract_return_value): Replace
273 extract_address with the inline equivalent,
274 extract_unsigned_integer.
275 (xstormy16_extract_struct_value_address): Ditto.
276 (xstormy16_pointer_to_address): Ditto.
277 * vax-tdep.c (vax_extract_struct_value_address): Ditto.
278 * v850-tdep.c (v850_push_arguments): Ditto.
279 (v850_extract_return_value): Ditto.
280 (v850_extract_struct_value_address): Ditto.
281 * sparcnbsd-tdep.c (sparcnbsd_get_longjmp_target_32): Ditto.
282 (sparcnbsd_get_longjmp_target_64): Ditto.
283 * sparc-tdep.c (sparc_frame_saved_pc): Ditto.
284 (get_longjmp_target): Ditto.
285 * sh-tdep.c (sh_extract_struct_value_address): Ditto.
286 (sh64_extract_struct_value_address): Ditto.
287 (sh_push_arguments): Ditto.
288 (sh64_push_arguments): Ditto.
289 * remote-vxsparc.c (vx_read_register): Ditto.
290 * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Ditto.
291 * ns32k-tdep.c (ns32k_extract_struct_value_address): Ditto.
292 * mn10300-tdep.c (mn10300_extract_struct_value_address): Ditto.
293 * mipsv4-nat.c (get_longjmp_target): Ditto.
294 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Ditto.
295 * mips-nat.c (get_longjmp_target): Ditto.
296 * mips-linux-tdep.c (mips_linux_get_longjmp_target): Ditto.
297 * mcore-tdep.c (mcore_extract_struct_value_address): Ditto.
298 * m68k-tdep.c (m68k_get_longjmp_target): Ditto.
299 * m68hc11-tdep.c (m68hc11_extract_struct_value_address): Ditto.
300 * irix5-nat.c (get_longjmp_target): Ditto.
301 * irix4-nat.c (get_longjmp_target): Ditto.
302 * ia64-tdep.c (generic_elf_find_global_pointer): Ditto.
303 (ia64_push_arguments): Ditto.
304 * hpux-thread.c (hpux_thread_store_registers): Ditto.
305 * h8300-tdep.c (h8300_push_arguments): Ditto.
306 (h8300_store_return_value): Ditto.
307 (h8300_extract_struct_value_address): Ditto.
308 * frv-tdep.c (frv_extract_struct_value_address): Ditto.
309 (frv_push_arguments): Ditto.
310 * avr-tdep.c (avr_pointer_to_address): Ditto.
311 (avr_push_arguments): Ditto.
312 * arm-tdep.c (arm_push_dummy_call): Ditto.
313 (arm_get_longjmp_target): Ditto.
314 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
315 * alpha-tdep.c (alpha_extract_struct_value_address): Ditto.
316 (alpha_get_longjmp_target): Ditto.
318 * solib-irix.c (extract_mips_address): Inline extract_address,
319 replacing it with extract_signed_integer.
320 * solib-svr4.c (SOLIB_EXTRACT_ADDRESS): Ditto.
321 (LM_NAME, IGNORE_FIRST_LINK_MAP_ENTRY): Ditto.
322 (first_link_map_member, open_symbol_file_object): Ditto.
323 (svr4_fetch_objfile_link_map, svr4_fetch_objfile_link_map): Ditto.
324 * solib-sunos.c (SOLIB_EXTRACT_ADDRESS): Ditto.
325 (LM_NEXT, LM_NAME): Ditto.
327 2003-06-01 Richard Henderson <rth@redhat.com>
329 * alpha-tdep.h (ALPHA_FP_REGNUM): Remove.
330 * alpha-tdep.c (alpha_register_name): Remove vfp entry.
331 (alpha_cannot_fetch_register): Remove ALPHA_FP_REGNUM.
332 (alpha_cannot_store_register): Likewise.
333 * alphabsd-nat.c (fetch_inferior_registers): Don't set FP_REGNUM.
334 * alpha-nat.c (supply_gregset): Likewise.
335 * alphanbsd-tdep.c (fetch_core_registers): Likewise.
337 2003-06-01 Andrew Cagney <cagney@redhat.com>
339 * infcall.c (call_function_by_hand): Update comment on
340 DEPRECATED_DUMMY_WRITE_SP.
342 * mips-tdep.c (mips_gdbarch_init): Do not set
343 deprecated_dummy_write_sp.
344 (mips_eabi_push_dummy_call): Set the SP register.
345 (mips_o64_push_dummy_call): Set the SP register.
346 (mips_o32_push_dummy_call): Set the SP register.
347 (mips_n32n64_push_dummy_call): Set the SP register.
349 2003-06-01 Richard Henderson <rth@redhat.com>
351 * alpha-nat.c (fetch_osf_core_registers): Use ALPHA_REGISTER_SIZE
352 instead of ALPHA_MAX_REGISTER_RAW_SIZE.
353 (supply_gregset): Likewise.
354 * alpha-tdep.c (alpha_store_return_value): Likewise.
355 (alpha_get_longjmp_target): Likewise.
356 (alpha_register_name): Constify array.
357 (alpha_gdbarch_init): Remove deprecated_fp_regnum,
358 deprecated_register_size, deprecated_register_bytes,
359 deprecated_max_register_raw_size, deprecated_max_register_virtual_size.
360 * alpha-tdep.h (ALPHA_MAX_REGISTER_RAW_SIZE): Remove.
361 (ALPHA_MAX_REGISTER_VIRTUAL_SIZE): Remove.
363 2003-06-01 Richard Henderson <rth@redhat.com>
365 * alpha-tdep.c (alpha_push_dummy_call): Store sp. Tidy copies
366 from arg_reg_buffer to regcache to avoid double conversion.
368 2003-06-01 Mark Kettenis <kettenis@gnu.org>
370 * i386-linux-nat.c (child_resume): Use I386_ESP_REGNUM instead of
372 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Likewise.
373 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Likewise.
375 2003-06-01 Richard Henderson <rth@redhat.com>
377 * dwarf2-frame.c (struct dwarf2_cie): Add saw_z_augmentation.
378 (decode_frame_entry): Set it. Skip FDE augmentation.
380 2003-06-01 Richard Henderson <rth@redhat.com>
382 * dwarf2-frame.c (dwarf2_frame_cache): Handle retaddr_column
383 not overlapping PC_REGNUM.
385 2003-06-01 Richard Henderson <rth@redhat.com>
387 * alpha-tdep.c (alpha_push_dummy_call): Transmography from
388 alpha_push_arguments. Don't dump argument register data to
389 the target stack. Fix float and 128-bit long double semantics.
390 Store $t12 and $ra as specified by the ABI. Use regcache everywhere.
391 (alpha_fix_call_dummy): Remove.
392 (alpha_call_dummy_words): Remove.
393 (alpha_gdbarch_init): Kill deprecated call hooks; add push_dummy_call.
395 2003-06-01 Richard Henderson <rth@redhat.com>
397 * alpha-linux-tdep.c (alpha_linux_init_abi): Install dwarf2 unwinder.
399 2003-06-01 Andrew Cagney <cagney@redhat.com>
401 * mips-tdep.c (is_mips16_addr): New function.
402 (make_mips16_addr, unmake_mips16_addr): New functions.
403 (pc_is_mips16, mips_fetch_instruction): Use.
404 (gdb_print_insn_mips, mips_breakpoint_from_pc): Use.
405 (gdb_print_insn_mips): Eliminate TM_PRINT_INSN_MACH.
406 (mips_dump_tdep): Delete print of TM_PRINT_INSN_MACH,
407 UNMAKE_MIPS16_ADDR, MAKE_MIPS16_ADDR, IS_MIPS16_ADDR and
409 * config/mips/tm-mips.h: Update copyright.
410 (TARGET_MIPS, TM_PRINT_INSN_MACH): Delete.
411 (DEPRECATED_REGISTER_SIZE, DEPRECATED_REGISTER_BYTES): Delete.
412 (IS_MIPS16_ADDR, MAKE_MIPS16_ADDR, UNMAKE_MIPS16_ADDR): Delete.
413 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Delete.
414 (TM_PRINT_INSN_MACH): Delete.
415 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Delete.
417 * configure.tgt: Replace mips64*vr4xxx*el-*-elf*,
418 mips64*vr4xxx*-*-elf*, mips64*vr4300*el-*-elf*,
419 mips64*vr4300*-*-elf*, mips64*vr4100*el-*-elf*,
420 mips64*vr4100*-*-elf*, mips64*vr5000*el-*-elf*, and
421 mips64*vr5000*-*-elf* with mips64 mips64*vr*-*-elf*. Delete
422 mips*tx39*el*-elf*. Map mips*-sony-* and mips64*-big-* onto
423 mips64. Map mips*-dec-*, mips*-big-*, mips*-little-*,
424 mips*-*-riscos* and mips*-*-sysv* onto mips.
425 * config/mips/mips64.mt: New file.
426 * config/mips/mips.mt: New file.
427 * config/mips/littlemips.mt: Delete file.
428 * config/mips/decstation.mt: Delete file.
429 * config/mips/vr4300el.mt: Delete file.
430 * config/mips/vr5000el.mt: Delete file.
431 * config/mips/vr5000.mt: Delete file.
432 * config/mips/vr4100.mt: Delete file.
433 * config/mips/vr4xxxel.mt: Delete file.
434 * config/mips/vr4300.mt: Delete file.
435 * config/mips/vr4xxx.mt: Delete file.
436 * config/mips/bigmips.mt: Delete file.
437 * config/mips/bigmips64.mt: Delete file.
438 * config/mips/tx39l.mt (TM_FILE): Set to "tm-tx39.h".
439 * config/mips/embedl64.mt (TM_FILE): Set to "tm-mips64.h".
440 * config/mips/embed64.mt (TM_FILE): Set to "tm-mips64.h"
441 * config/mips/embedl.mt (TM_FILE): Set to "tm-mips.h".
442 * config/mips/tm-tx39.h: Include "tm-mips.h" instead of
444 * config/mips/tm-irix3.h: Ditto.
445 * config/mips/tm-mipsv4.h: Ditto.
446 * config/mips/tm-embed.h: Ditto.
447 * config/mips/tm-irix6.h: Include "tm-mips64.h" instead of
449 * config/mips/tm-vr5000el.h: Delete file.
450 * config/mips/tm-tx39l.h: Delete file.
451 * config/mips/tm-vr4300el.h: Delete file.
452 * config/mips/tm-vr4xxxel.h: Delete file.
453 * config/mips/tm-vr4300.h: Delete file.
454 * config/mips/tm-vr4100.h: Delete file.
455 * config/mips/tm-vr4xxx.h: Delete file.
456 * config/mips/tm-vr5000.h: Delete file.
457 * config/mips/tm-embedl64.h: Delete file.
458 * config/mips/tm-embedl.h: Delete file.
459 * config/mips/tm-embed64.h: Delete file.
460 * config/mips/tm-bigmips64.h: Delete file.
461 * config/mips/tm-bigmips.h: Delete file.
463 2003-06-01 Mark Kettenis <kettenis@gnu.org>
466 * shnbsd-nat.c: Include "sh-tdep.h".
468 From Richard Henderson <rth@redhat.com>:
469 * dwarf2-frame.c (dwarf2_frame_state_alloc_regs): Fix ptr arithmetic.
471 2003-05-31 Andrew Cagney <cagney@redhat.com>
473 * mips-tdep.c (set_reg_offset): Add saved_regs parameter. Add
475 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
476 (mips16_heuristic_proc_desc): Pass temp_saved_regs.
477 (mips_find_saved_regs): Use set_reg_offset.
478 (mips_frame_init_saved_regs): Delete function.
479 (mips_pop_frame): Call mips_find_saved_regs instead of
480 DEPRECATED_FRAME_INIT_SAVED_REGS.
482 2003-05-31 Andrew Cagney <cagney@redhat.com>
484 * mips-tdep.c (mips_gdbarch_init): Do not set
485 deprecated_max_register_raw_size, register_virtual_size, and
486 deprecated_max_register_virtual_size.
488 2003-05-31 Mark Kettenis <kettenis@gnu.org>
490 * i386-tdep.c: Include "dwarf2-frame.h".
491 (i386_gdbarch_init): Hook in the DWARF CFI frame unwinder.
492 * Makefile.in (i386-tdep.o): Update dependencies.
494 * dwarf2-frame.c, dwarf2-frame.h: New files.
495 * Makefile.in (SFILES): Add dwarf2-frame.c.
496 (dwarf2_frame_h): Define.
497 (COMMON_OBS): Add dwarf2-frame.o.
498 (dwarf2-frame.o): Add dependencies.
500 2003-05-31 Andreas Jaeger <aj@suse.de>
502 * x86-64-linux-nat.c: Fix comment.
504 2003-05-31 Mark Kettenis <kettenis@gnu.org>
506 * x86-64-tdep.c (x86_64_push_dummy_call): Adjust for changed
509 * i386-tdep.c (i386_sigtramp_frame_p): Only handle frames if we
510 have a sigcontext_addr handler.
511 * x86-64-tdep.c (x86_64_sigtramp_frame_p): Assert that we have a
512 sigcontext_addr handler.
514 2003-05-31 Andrew Cagney <cagney@redhat.com>
516 * mips-tdep.c (print_gp_register_row): Replace do_gp_register_row.
517 (print_fp_register_row): Replace do_fp_register_row.
518 (mips_print_fp_register): Add "file" and "frame" parameters.
519 (mips_print_register): Add "file" and "frame" parameters.
520 (mips_print_registers_info): Replace mips_do_registers_info.
521 (mips_gdbarch_init): Set print_registers_info instead of
522 deprecated_do_registers_info.
523 (mips_read_fp_register_single): Add "frame" parameter.
524 (mips_read_fp_register_double): Add "frame" parameter.
526 2003-05-31 Mark Kettenis <kettenis@gnu.org>
528 * i386-tdep.c (i386_register_name): Check for MMX registers first.
529 Fixes a bug where GDB would print the wrong register names for
532 * x86-64-tdep.c (X86_64_NUM_SAVED_REGS): Set to X86_64_NUM_GREGS.
533 (x86_64_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
536 * x86-64-linux-tdep.c (x86_64_linux_sc_reg_offset): New variable.
537 (x86_64_linux_init_abi): Initialize TDEP->sc_reg_offset and
538 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
541 From Michal Ludvig <mludvig@suse.cz>:
542 * i386-tdep.h (struct gdbarch_tdep): Add members `sc_reg_offset'
544 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
545 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
546 I386_ST0_REGNUM): Move here from...
547 * i386-tdep.c: ... here.
548 (I386_NUM_SAVED_REGS): Define to I386_NUM_REGS.
549 (i386_sigtramp_frame_cache): Use `sc_reg_offset' to find saved
550 registers if possible.
551 (i386_gdbarch_init): Initialize TDEP->sc_reg_offset.
552 * i386bsd-tdep.c (i386bsd_sc_pc_offset, i386bsd_sc_sp_offset):
554 (i386bsd_sc_reg_offset): New variable.
555 (i386bsd_init_abi): Initialize TDEP->sc_reg_offset and
556 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
558 (i386fbsd_sc_reg_offset): New variable.
559 (i386fbsdaout_init_abi): Initialize TDEP->sc_reg_offset and
561 (i386fbsd4_sc_pc_offset, i386fbsd4_sc_sp_offset): Remove
563 (i386fbsd4_sc_reg_offset): New variable.
564 (i3864bsd4_init_abi): Initialize TDEP->sc_reg_offset and
565 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
567 * i386-linux-tdep.c (i386_linux_sc_reg_offset): New variable.
568 (i386_linux_init_abi): Set TDEP->sc_reg_offset and TDEP->sc_num_regs.
569 * i386nbsd-tdep.c (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset):
571 (i386nbsd_sc_reg_offset): New variable.
572 (i386nbsd_init_abi): Initialize TDEP->sc_reg_offset and
573 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
575 * i386obsd-tdep.c (i386obsd_sc_pc_offset, i386obsd_sc_sp_offset):
577 (i386obsd_sc_reg_offset): New variable.
578 (i386obsd_init_abi): Initialize TDEP->sc_reg_offset and
579 TDEP->sc_num_regs instead of TDEP->sc_pc_offset and
581 * i386bsd-nat.c (_initialize_i386bsd_nat): Adjust for changes in
582 i386bsd-tdep.c, i386nbsd-tdep.c and i386obsd-tdep.c. Add check
583 for frame pointer offset in `struct sigcontext'.
585 2003-05-31 Andrew Cagney <cagney@redhat.com>
587 * mips-tdep.c (mips_gdbarch_init): Do not set the deprecated
588 architecture methods call_dummy_words, sizeof_call_dummy_words,
589 push_return_address, store_struct_return, and fix_call_dummy. Set
590 push_dummy_call instead of deprecated_push_arguments.
591 (mips_store_struct_return): Delete function.
592 (mips_fix_call_dummy): Delete function.
593 (mips_push_return_address): Delete function.
594 (mips_eabi_push_dummy_call): Replace mips_eabi_push_arguments, set
595 RA_REGNUM and T9_REGNUM.
596 (mips_n32n64_push_dummy_call): Ditto for
597 mips_n32n64_push_arguments.
598 (mips_o32_push_dummy_call): Ditto for mips_o32_push_arguments.
599 (mips_o64_push_dummy_call): Ditto for mips_o64_push_arguments.
601 2003-05-31 Andrew Cagney <cagney@redhat.com>
603 * gdbarch.sh (PUSH_DUMMY_CALL): Add "func_addr" parameter. Rename
604 "dummy_addr" to "bp_addr".
605 * infcall.c (call_function_by_hand): Pass "funaddr" to
606 gdbarch_push_dummy_call.
607 * gdbarch.h, gdbarch.c: Re-generate.
608 * i386-tdep.c (i386_push_dummy_call): Update.
609 * arm-tdep.c (arm_push_dummy_call): Update.
610 * d10v-tdep.c (d10v_push_dummy_call): Update.
612 2003-05-31 Mark Kettenis <kettenis@gnu.org>
614 * x86-64-tdep.h (x86_64_num_regs, x86_64_num_gregs): Remove
615 variable declarations.
616 (x86_64_register_number, x86_64_register_name): Remove prototypes.
617 (x86_64_linux_frame_saved_pc, x86_64_linux+saved_pc_after_call,
618 x86_64_linux_in_sigtramp, x86_64_linux_frame_chain,
619 x86_64_init_frame_pc, x86_64_init_frame_pc,
620 x86_64_function_has_prologue): Remove prototypes.
621 (X86_64_NUM_GREGS): New define.
622 (x86_64_supply_fxsave, x86_64_fill_fxsave): New prototypes.
623 * x86-64-tdep.c: Don't include "dwarf2cfi.h". Include
624 "dummy_frame.h", "frame.h", "frame-base.h", "frame-unwind.h".
625 (RAX_REGNUM, RDX_REGNUM, RDI_REGNUM, EFLAGS_REGNUM, ST0_REGNUM,
626 XMM1_REGNUM): Remove defines.
627 (X86_64_RAX_REGNUM, X86_64_RDX_REGNUM, X86_64_RDI_REGNUM,
628 X86_64_RBP_REGNUM, X86_64_RSP_REGNUM, X86_64_RIP_REGNUM,
629 X86_64_EFLAGS_REGNUM, X86_64_ST0_REGNUM, X86_64_XMM0_REGNUM,
630 X86_64_XMM1_REGNUM): New defines.
631 (struct x86_64_register_info): Renamed from `struct
632 register_info'. Remove `size' member.
633 (x86_64_register_info_table): Remove variable.
634 (x86_64_register_info): New variable.
635 (X86_64_NUM_REGS): New define.
636 (X86_64_NUM_GREGS): Remove define.
637 (x86_64_num_regs, x86_64_num_gregs): Remove variables.
638 (x86_64_dwarf2gdb_regno_map, x86_64_dwarf2gdb_regno_map_length):
640 (x86_54_dwarf2_reg_to_regnum): Remove function.
641 (x86_64_dwarf_regmap, x86_64_dwarf_regmap_len): New variables.
642 (x86_64_dwarf_reg_to_regnum): New function.
643 (x86_64_register_name): Rewrite.
644 (x86_64_register_raw_size): Remove function.
645 (x86_64_register_byte_table): Remove variable.
646 (x86_64_register_byte): Remove function.
647 (x86_64_register_virtual_type): Remove function.
648 (x86_64_register_type): New function.
649 (x86_64_register_convertible, x86_64_register_convert_to_virtual,
650 x86_64_register_convert_to_raw): Remove functions.
651 (x86_64_push_return_address, x86_64_pop_frame): Remove functon.
652 (x86_64_use_struct_convention): Make static. Adjust for renamed
654 (x86_64_frame_init_saved_regs): Remove function.
655 (x86_64_push_arguments): Make static. Change to accept a regcache
657 (x86_64_store_return_value, x86_64_extract_return_value): Make
658 static. Rewrite based on i386 counterparts.
659 (x86_64_push_dummy_call): New function.
660 (X86_64_NUM_SAVED_REGS): New define.
661 (x86_64_register_number): Remove function.
662 (x86_64_store_struct_return): Remove function.
663 (x86_64_frameless_function_invocation,
664 x86_64_function_has_prologue): Remove functions.
665 (PROLOG_BUFSIZE): Remove define.
666 (struct x86_64_frame_cache): New structure.
667 (x86_64_alloc_frame_cache, x86_64_analyze_prologue,
668 x86_64_frame_cache, x86_64_frame_this_id,
669 x86_64_frame_prev_register, x86_64_frame_p,
670 x86_64_sigtramp_frame_cache, x86_64_sigtramp_frame_this_id,
671 x86_64_sigtramp_frame_prev_register, x86_sigtramp_frame_p): New
673 (x86_64_frame_unwind, x86_64_sigtramp_frame_unwind): New
675 (x86_64_skip_prologue): Rewrite in terms of
676 x86_64_analyze_prologue.
677 (x86_64_frame_base_address): New function.
678 (x86_64_frame_base): New variable.
679 (x86_64_save_dummy_frame_tos, x86_64_unwind_dummy_id): Rewrite.
680 (x86_64_init_abi): Set register_type and push_dummy_call. Don't
681 set deprecated_fp_regnum, deprecated_register_size,
682 deprecated_register_bytes, register_raw_size, register_byte,
683 register_virtual_type, register_convertiable,
684 register_convert_to_virtual, convert_to_raw,
685 deprecated_get_saved_register, deprecated_target_read_fp,
686 deprecated_push_arguments, deprecated_push_return_address,
687 deprecated_pop_frame, deprecated_store_struct_return,
688 deprecated_frame_init_saved_regs, deprecated_frame_chain,
689 frameless_function_invocation, deprecated_frame_saved_pc,
690 deprecated_saved_pc_after_call, frame_num_args, pc_in_sigtramp,
691 dwarf2_build_frame_info, deprecated_init_extra_frame_info,
692 deprecated_init_frame_pc and virtual_frame_pointer. Call
693 frame_unwind_append_predicate to register x86_64_sigtramp_frame_p
694 and x86_64_frame_p. Call frame_base_set_default to register
696 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): New defines.
697 (x86_64_supply_fxsave, x86_64_fill_fxsave): New functions.
698 (_initialize_x86_64_tdep): Remove function.
699 * x86-64-linux-tdep.c: Don't include "dwarf2cfi.h".
700 (LINUX_SIGINFO_SIZE, LINUX_UCONTEXT_SIGCONTEXT_OFFSET,
701 LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONTEXT_FP_OFFSET): Don't
703 (X86_64_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Define.
704 (x86_64_linux_sigcontext_addr): Rewrite.
705 (x86_64_linux_sigtramp_saved_pc, x86_64_linux_saved_pc_after_call,
706 x86_64_linux_frame_saved_pc): Remove functions.
707 (x86_64_linux_pc_in_sigtramp): Renamed from
708 x86_64_linux_in_sigtramp. Try harder to recognize a signal
710 (x86_64_linux_frame_chain, x86_64_init_frame_pc):
712 (x86_64_linux_init_abi): Set pc_in_sigtramp. Initialize
713 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
714 * x86-64-linux-nat.c: Sync with i386-linux-tdep.c.
715 (x86_64_regmap): Rename to regmap.
716 (GETREGS_SUPPLIES): Use X86_64_NUM_GREGS instead of
718 (supply_gregset, fill_gregset): Likewise. Use regmap instead of
720 (x86_64_fxsave_offset): Remove function.
721 (supply_fpregset): Simply call x86_64_supply_fxsave.
722 (fill_fpregset): Simply call x86_64_fill_fxsave.
723 (fetch_inferior_registers, store_inferior_registers): Avoid
724 asignment in if-statement.
725 (LINUX_SYSCALL_LEN, LINUX_SYSCALL_REGNUM, SYS_Sigreturn,
726 SYS_rt_sigreturn, LINUX_SIGCONTEXT_EFLAGS_OFFSET,
727 LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Remove defines.
728 (fetch_core_registers): Remove function.
729 (linux_elf_core_fns): Remove.
730 (offsetoff): Don't define.
731 (_initialize_x86_64_linux_nat, kernel_u_size): Remove functions.
732 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-linux-tdep.o.
733 * config/i386/x86-64linux.mh (NATDEPFILES): Remove core-aout.o,
735 * config/i386/nm-x86-64linux.h: Use NM_X86_64_LINUX_H for
736 protection against multiple includes instead of NM_X86_64_h. Add
737 various comments. Include "config/nm-linux.h". Don't include
739 (REGISTER_U_ADDR, KERNEL_U_SIZE, U_REGS_OFFSET, KERN_U_ADDR,
740 GET_THREAD_SIGNALS): Remove defines.
741 (x86_64_register_u_addr, kernel_u_size,
742 lin_thread_get_thread_signals): Remove prototypes.
743 (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Define to `long'.
744 [HAVE_LINK_H]: Don't include "solib.h".
745 [HAVE_LINK_H] (SVR4_SHARED_LIBS): Remove define.
746 * config/i386/tm-x86-64linux.h: Fix comments.
747 * Makefile.in (x86-64-linux-nat.o, x86_64-linux-tdep.o,
748 x86-64-tdep.o): Update dependencies.
750 2003-05-30 Andrew Cagney <cagney@redhat.com>
752 * config/sparc/tm-sparc.h (sparc_extract_struct_value_address):
753 Change parameter type to a "struct regcache *".
755 * gdbarch.sh: Regardless of the multi-arch level, always define
756 the macro when not already defined.
757 * gdbarch.h, gdbarch.c: Re-generate.
759 2003-05-30 Richard Henderson <rth@redhat.com>
761 * alpha-mdebug-tdep.c (alpha_mdebug_frame_p): Reject prologues.
762 (alpha_mdebug_frame_unwind_cache): Don't call the heuristic unwinder.
763 (alpha_mdebug_frame_this_id): Likewise.
764 (alpha_mdebug_frame_prev_register): Likewise.
765 (alpha_mdebug_frame_base_address): Likewise.
766 (alpha_mdebug_frame_locals_address): Likewise.
767 (alpha_mdebug_frame_args_address): Likewise.
768 (struct alpha_mdebug_unwind_cache): Remove in_prologue_cache.
769 * alpha-tdep.c (alpha_heuristic_proc_start): Use get_pc_function_start.
770 (alpha_heuristic_frame_unwind_cache): Make static; add missing
772 (alpha_heuristic_frame_this_id): Make static.
773 (alpha_heuristic_frame_prev_register): Likewise.
774 (alpha_heuristic_frame_base_address): Likewise.
775 * alpha-tdep.h: Update.
777 2003-05-30 Mark Kettenis <kettenis@gnu.org>
779 * i386-tdep.h (i386bsd_sigcontext_addr): Remove prototype.
780 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS): Remove
782 (IS_FP_REGNUM, IS_SSE_REGNUM): Remove definitions.
783 * i386-tdep.c: Mark functions that are 64-bit safe as such.
784 (I386_EAX_REGNUM, I386_EDX_REGNUM, I386_ESP_REGNUM,
785 I386_EBP_REGNUM, I386_EIP_REGNUM, I386_EFLAGS_REGNUM,
786 I386_ST0_REGNUM): New defines.
787 (CODESTREAM_BUFSIZ, codestream_tell, codestream_peek,
788 codestream_get): Remove define.
789 (codestream_next_addr, condestream_addr, condestream_buf,
790 codestream_off, codestream_cnt): Remove variables.
791 (codestream_fill, codestream_seek, codestream_read): Remove
793 (i386_follow_jump): Rewrite to avoid usage of removed codestream
795 (i386_get_frame_setup, i386_frameless_signal_p, i386_frame_chain,
796 i386_sigtramp_saved_pc, i386_sigtramp_saved_sp,
797 i386_frame_saved_pc, i386_saved_pc_after_call,
798 i386_frame_num_args, i386_frame_init_saved_regs,
799 i386_push_return_address, i386_do_pop_frame, i386_pop_frame,
800 i386_push_arguments): Remove functions.
801 (i386_skip_prologue): Rewrite to avoid usage of removed codestream
802 functionality. Use i386_analyze_prologue instead of
803 i386_get_frame_setup.
804 (I386_NUM_SAVED_REGS): New define.
805 (struct i386_frame_cache): New structure.
806 (i386_alloc_frame_cache, i386_analyze_struct_return,
807 i386_skip_probe, i386_analyze_frame_setup,
808 i386_analyze_register_saves, i386_analyze_prologue,
809 i386_unwind_pc, i386_frame_cache, i386_frame_this_id,
810 i386_frame_prev_register, i386_sigtramp_frame_cache,
811 i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register,
812 i386_frame_p, i386_sigtramp_frame_p, i386_frame_base_address,
813 i386_unwind_dummy_id, i386_save_dummy_tos, i386_push_dummy_call):
815 (i386_frame_unwind, i386_sigtramp_frame_unwind, i386_frame_base):
817 (LOW_RETURN_REGNUM, HIGH_RETURN_REGNUM): Define in terms of
818 I386_EAX_REGNUM and I386_EDX_REGNUM.
819 (i386_extract_return_value, i386_store_return_value): Use
820 I386_ST0_REGNUM where appropriate.
821 (i386_extract_struct_value_address): Rewrite to use extract_address.
822 (i386_svr4_pc_in_sigtramp): Add comment.
823 (i386_svr4_sigcontext_addr): Rewrite.
824 (i386_svr4_init_abi): Adjust TDEP->sc_pc_offset and
826 (i386_gdbarch_init): Don't set deprecated_init_frame_pc. Set
827 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum in terms
828 of new defines. Set push_dummy_call, don't set
829 deprecated_push_arguments, deprecated_push_return_address,
830 deprecated_pop_frame. Don't set parm_boundary. Don't set
831 deprecated_frame_chain, deprecated_frame_saved_pc,
832 deprecated_saved_pc_after_call. Set unwind_dummy_id,
833 save_dummy_frame_tos, unwind_pc. Call
834 frame_unwind_append_predicate and frame_base_set_default. Don't
835 set deprecated_dummy_write_pc. Don't set deprecated_fp_regnum.
836 Don't set frameless_function_invocation. Don't set
837 deprecated_register_bytes, deprecated_register_size,
838 deprecated_call_dummy_words and deprecated_sizeof_call_dummy.
839 * i386-linux-tdep.c: Fix formatting in some comments.
840 (LINUX_SIGTRAMP_INSN0, LINUX_SIGTRAMP_OFFSET0,
841 LINUX_SIGTRAMP_INSN1, LINUX_SIGTRAMP_OFFSET1,
842 LINUX_SIGTRAMP_INSN2, LINUX_SIGTRAMP_OFFSET2,
843 LINUX_RT_SIGTRAMP_INSN0, LINUX_RT_SIGTRAMP_OFFSET0,
844 LINUX_RT_SIGTRAMP_INSN1, LINUX_RT_SIGTRAMP_OFFSET1): Drop
845 redundant parentheses.
846 (I386_LINUX_UCONTEXT_SIGCONTEXT_OFFSET): New define.
847 (i386_linux_sigcontext_addr): Use it. Rewrite.
848 (find_minsym_and_objfile): Change name of second argument.
849 (skip_gnu_resolver): Renamed from skip_hurd_resolver. All callers
850 changed. Use frame_pc_unwind instead of
851 DEPRECATED_SAVED_PC_AFTER_CALL.
852 (i386_linux_init_abi): Don't set deprecated_register_bytes.
853 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Rewrite.
854 * i386-nto-tdep.c (i386nto_sigcontext_addr): Adapt for new frame
856 * i386-cygwin-tdep.c: Don't include "gdbcore.h", "frame.h" and
858 (i386_cygwin_frame_chain_valid, i386_cygwin_frame_chain): Removed.
859 (_initialize_i386_cygwin_tdep): New prototype.
860 (i386_cygwin_init_abi): Don't set deprecated_frame_chain and
861 deprecated_frame_chain_valid.
862 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't set
863 TDEP->sigcontext_addr, TDEP->sc_pc_offset and TDEP->sc_sp_offset.
864 Rely on the SVR4 defaults.
865 * config/i386/i386sol2.mt (TDEPFILES): Remove i386bsd-tdep.o.
866 * Makefile.in (i386-tdep.o, i386-cygwin-tdep.o): Update dependencies.
868 2003-05-30 Andrew Cagney <cagney@redhat.com>
870 * infcall.c (call_function_by_hand): Always call
871 DEPRECATED_FIX_CALL_DUMMY, even for AT_ENTRY_POINT case.
873 2003-05-30 Richard Henderson <rth@redhat.com>
875 * alpha-tdep.c (alpha_heuristic_frame_unwind_cache): Fix loop
878 2003-05-29 Jim Blandy <jimb@redhat.com>
880 Use gdbarch methods for solib stuff on PowerPC Linux.
881 * config/powerpc/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE,
882 SKIP_TRAMPOLINE_CODE): #undef these, so the gdbarch methods will
884 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
885 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE methods here,
886 giving the same effect as the #definitions above.
888 2003-05-29 Adam Fedor <fedor@gnu.org>
890 * objc-lang.c (CONVERT_FUNCPTR): Remove macro
891 (find_implementation_from_class): Replace it with the standard
892 case i.e. do nothing.
894 2003-05-29 Richard Henderson <rth@redhat.com>
896 * alpha-linux-tdep.c (alpha_linux_sigtramp_offset_1): New.
897 (alpha_linux_sigtramp_offset): Use it. Make static.
898 (alpha_linux_sigcontext_addr): Handle __NR_rt_sigreturn;
899 update for new frame model.
900 * alpha-mdebug-tdep.c: New file.
901 * alpha-osf1-tdep.c (alpha_call_dummy_address): Move from alpha-tdep.c.
902 (alpha_osf1_init_abi): Install it.
903 * alpha-tdep.c (PROC_*): Move to alpha-mdebug-tdep.c.
904 (linked_proc_desc_table): Remove.
905 (alpha_frame_past_sigtramp_frame): Remove.
906 (alpha_dynamic_sigtramp_offset): Remove.
907 (ALPHA_PROC_SIGTRAMP_MAGIC): Remove.
908 (alpha_proc_desc_is_dyn_sigtramp): Remove.
909 (alpha_set_proc_desc_is_dyn_sigtramp): Remove.
910 (push_sigtramp_desc): Remove.
911 (alpha_cannot_fetch_register): Use ALPHA_FP_REGNUM.
912 (alpha_cannot_store_register): Likewise.
913 (alpha_sigcontext_addr): Remove.
914 (alpha_find_saved_regs): Remove.
915 (alpha_frame_init_saved_regs): Remove.
916 (alpha_init_frame_pc_first): Remove.
917 (read_next_frame_reg): Remove.
918 (alpha_frame_saved_pc): Remove.
919 (alpha_saved_pc_after_call): Remove.
920 (temp_proc_desc, temp_saved_regs): Remove.
921 (alpha_about_to_return): Remove.
922 (cached_proc_desc): Remove.
923 (alpha_frame_chain): Remove.
924 (alpha_print_extra_frame_info): Remove.
925 (alpha_init_extra_frame_info): Remove.
926 (alpha_frame_locals_address): Remove.
927 (alpha_frame_args_address): Remove.
928 (alpha_push_arguments): Use ALPHA_REGISTER_BYTES not sizeof CORE_ADDR.
929 (alpha_push_dummy_frame): Remove.
930 (alpha_pop_frame): Remove.
931 (alpha_after_prologue): Rename from after_prologue; remove mdebug bits.
932 (alpha_read_insn): New.
933 (alpha_skip_prologue): Merge alpha_skip_prologue_internal; adjust
934 for different insn encodings.
935 (alpha_in_lenient_prologue): Remove.
936 (struct alpha_sigtramp_unwind_cache): New.
937 (alpha_sigtramp_frame_unwind_cache): New.
938 (alpha_sigtramp_register_address): New.
939 (alpha_sigtramp_frame_this_id): New.
940 (alpha_sigtramp_frame_prev_register): New.
941 (alpha_sigtramp_frame_unwind): New.
942 (alpha_sigtramp_frame_p): New.
943 (struct alpha_heuristic_unwind_cache): New.
944 (alpha_heuristic_proc_start): Rename from heuristic_proc_start;
945 don't count nop insns that occur between functions.
946 (alpha_heuristic_frame_unwind_cache): New; incorporate much of
947 heuristic_proc_desc, but without the mdebug wrapping.
948 (alpha_heuristic_frame_this_id): New.
949 (alpha_heuristic_frame_prev_register): New.
950 (alpha_heuristic_frame_unwind): New.
951 (alpha_heuristic_frame_p): New.
952 (alpha_heuristic_frame_base_address): New.
953 (alpha_heuristic_frame_base): New.
954 (alpha_unwind_dummy_id): New.
955 (alpha_unwind_pc): New.
956 (alpha_gdbarch_init): Don't set skip_sigtramp_frame. Kill use of
957 frame related deprecated initializations; install replacements.
958 (alpha_dump_tdep): Remove.
959 * alpha-tdep.h (struct gdbarch_tdep): Remove skip_sigtramp_frame.
960 (alpha_read_insn, alpha_after_prologue,
961 alpha_heuristic_frame_unwind_cache, alpha_heuristic_frame_this_id,
962 alpha_heuristic_frame_prev_register,
963 alpha_heuristic_frame_base_address, alpha_mdebug_init_abi): Declare.
964 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-mdebug-tdep.o.
965 * config/alpha/tm-alpha.h (PRINT_EXTRA_FRAME_INFO): Remove.
966 * config/alpha/tm-alphalinux.h (SIGTRAMP_START, SIGTRAMP_END): Remove.
968 2003-05-29 Andrew Cagney <cagney@redhat.com>
970 * gdb_assert.h (gdb_assert_fail): Provide different definitions
971 dependant on the availability of ASSERT_FUNCTION.
972 (ASSERT_FUNCTION): Do not define when there is no function name.
974 2003-05-29 Kevin Buettner <kevinb@redhat.com>
976 From Jimi X <jimix@watson.ibm.com>:
977 * rs6000-tdep.c (skip_prologue): Improve support for 64-bit code.
979 2003-05-28 Jim Blandy <jimb@redhat.com>
981 * ppc-linux-nat.c (store_altivec_registers): Don't cast fourth
982 argument to ptrace to int; the system headers should give it the
983 right type, and pointers don't fit in ints on powerpc64-*-*.
985 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
987 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
990 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
992 * stabsread.c (dbx_lookup_type): Make static.
994 (add_undefined_type): Ditto.
995 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
998 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
1000 * hpread.c (hpread_has_name): Make static.
1001 (hpread_psymtab_to_symtab): Ditto.
1002 (file_exists): Ditto.
1003 (hpread_call_pxdb): Ditto.
1004 (hpread_pxdb_needed): Ditto.
1005 (hpread_quick_traverse): Ditto.
1006 (hpread_get_header): Ditto.
1007 (hpread_get_lntt): Ditto.
1008 (hpread_get_slt): Ditto.
1011 2003-05-25 Andreas Schwab <schwab@suse.de>
1013 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
1014 stack_align and deprecated_extra_stack_alignment_needed.
1015 (m68k_stack_align): Delete.
1017 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
1018 (m68k_register_virtual_size): Likewise.
1019 (altos_skip_prologue): Remove obsolete function.
1020 (isi_frame_num_args): Likewise.
1021 (news_frame_num_args): Likewise.
1022 (m68k_fix_call_dummy): Make static.
1023 (m68k_push_dummy_frame): Likewise.
1024 (m68k_pop_frame): Likewise.
1025 (m68k_skip_prologue): Likewise.
1026 (m68k_frame_init_saved_regs): Likewise.
1027 (m68k_saved_pc_after_call): Likewise.
1028 (m68k_get_longjmp_target): Make multi-arch.
1029 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
1030 structure. Register m68k_get_longjmp_target if enabled.
1031 * m68k-tdep.h (struct gdbarch_tdep): Define.
1032 * config/m68k/tm-m68k.h: Don't include "regcache.h".
1034 * Makefile.in (config.status): Also depend on configure.tgt
1036 (m68klinux-tdep.o): Update dependencies.
1037 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
1038 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
1039 (M68K_LINUX_JB_PC): Define.
1040 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
1041 and take additional parameter.
1042 (m68k_linux_sigtramp_saved_pc): Update.
1043 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
1044 m68k_linux_pc_in_sigtramp, in_plt_section,
1045 find_solib_trampoline_target.
1046 * config/m68k/tm-linux.h: Don't include any tm headers.
1047 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
1048 (JB_ELEMENT_SIZE): Likewise.
1050 (GET_LONGJMP_TARGET): Likewise.
1051 (IN_SIGTRAMP): Likewise.
1052 (SVR4_SHARED_LIBS): Define this and include "solib.h".
1054 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1056 * sparc-tdep.c (sparc32_do_push_arguments): New function.
1057 (sparc32_push_arguments): Re-implement by calling
1058 sparc32_do_push_arguments.
1060 2003-05-25 Mark Kettenis <kettenis@gnu.org>
1062 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
1063 SPARC_O1_REGNUM): New defines.
1064 (sparc32_extract_return_value): Rewrite to operate on a regcache.
1065 (sparc32_store_return_value): New function.
1066 (sparc_extract_struct_value_address): Rewrite to operate on a
1068 (sparc_gdbarch_init): Don't set
1069 deprecated_extract_struct_value_address. Set
1070 extract_struct_value_address instead. Don't set
1071 deprecated_extract_return_value and deprecated_store_return_value
1072 for 32-bit targets. Set extract_return_value and
1073 store_return_value instead.
1074 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
1075 DEPRECTAED_EXTRACT_RETURN_VALUE,
1076 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
1077 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
1078 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
1079 (sparc_store_return_value): Remove prototype.
1080 (sparc32_store_return_value): New prototype.
1081 (sparc32_extract_return_value, sparc_extract_struct_value_address):
1084 2003-05-24 Mark Kettenis <kettenis@gnu.org>
1086 * sparcnbsd-tdep.c: Include "gdb_string.h".
1088 2003-05-23 Andrew Cagney <cagney@redhat.com>
1090 * p-valprint.c (pascal_val_print): Replace extract_address with
1091 the inline equivalent extract_unsigned_integer.
1092 * jv-valprint.c (java_value_print): Ditto.
1093 * ada-valprint.c (ada_val_print_1): Ditto.
1094 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
1096 2003-05-23 Theodore A. Roth <troth@openavr.org>
1098 * blockframe.c (frameless_look_for_prologue): Remove unused
1099 after_prologue variable.
1101 2003-05-23 Mark Kettenis <kettenis@gnu.org>
1103 * blockframe.c (get_pc_function_start): Rewrite to avoid
1104 asignments in if-statements.
1106 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
1108 Committed by Elena Zannoni <ezannoni@redhat.com>.
1109 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
1110 files, don't relocate absolute symbols (and do use mst_abs).
1112 2003-05-23 Andrew Cagney <cagney@redhat.com>
1114 * objc-lang.c: Include "gdb_assert.h".
1115 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
1116 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
1117 (gdb_check, gdb_check_fatal): Delete functions.
1118 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
1120 (parse_selector, parse_method, find_methods, find_imps): Ditto.
1121 * Makefile.in (objc-lang.o): Update dependencies.
1123 2003-05-22 Ian Lance Taylor <ian@airs.com>
1125 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
1126 with fprintf_filtered, not fprintf_unfiltered.
1128 2003-05-22 Andrew Cagney <cagney@redhat.com>
1130 * stack.c (frame_info): Inline extract_address, replacing it with
1131 extract_unsigned_integer.
1132 * findvar.c (unsigned_pointer_to_address): Ditto.
1133 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
1134 * dwarf2expr.c (dwarf2_read_address): Ditto.
1135 * frame.c (frame_pc_unwind): Update comment.
1136 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
1138 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
1140 * infptrace.c (detach): Call print_sys_errmsg rather than
1141 perror_with_name to issue warning message when errno is non-zero
1142 after calling ptrace detach.
1144 2003-05-21 J. Brobecker <brobecker@gnat.com>
1146 * config/pa/tm-hppa.h: Delete some unused macros. Move some
1147 macro definitions from here...
1148 * hppa-tdep.c: ...to there.
1150 2003-05-20 Kevin Buettner <kevinb@redhat.com>
1152 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
1153 register_ptrace_addr(). Fix all callers.
1155 2003-05-21 Andreas Schwab <schwab@suse.de>
1157 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
1159 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
1161 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
1162 (_initialize_m68k_linux_tdep): New function.
1163 (m68k_linux_frame_saved_pc): Make static.
1164 (m68k_linux_extract_return_value): Likewise.
1165 (m68k_linux_store_return_value): Likewise.
1166 (m68k_linux_extract_struct_value_address): Likewise.
1167 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
1169 (DEPRECATED_STORE_RETURN_VALUE): Remove.
1170 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
1171 (DEPRECATED_FRAME_SAVED_PC): Remove.
1173 2003-05-20 Kris Warkentin <kewarken@qnx.com>
1175 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
1176 regset numbering rather than our own.
1178 2003-05-19 David Carlton <carlton@bactrian.org>
1180 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
1182 2003-05-19 David Carlton <carlton@bactrian.org>
1184 Partial fix for PR c++/827.
1185 * cp-support.h: Include symtab.h.
1186 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
1187 * cp-namespace.c: Update contributors.
1188 (cp_lookup_symbol_nonlocal): New.
1189 (lookup_namespace_scope, cp_lookup_symbol_namespace)
1190 (lookup_symbol_file): Ditto.
1191 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
1192 * block.h: Declare block_scope, block_using, block_global_block.
1193 * block.c (block_scope): New.
1194 (block_using, block_global_block): Ditto.
1195 * Makefile.in (cp_support_h): Depend on symtab_h.
1196 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
1198 2003-05-19 David Carlton <carlton@bactrian.org>
1200 * language.h (struct language_defn): Add 'la_value_of_this'
1201 and 'la_lookup_symbol_nonlocal' members.
1202 * symtab.h: Declare basic_lookup_symbol_nonlocal,
1203 lookup_symbol_static, lookup_symbol_global,
1204 lookup_symbol_aux_block.
1205 * symtab.c (lookup_symbol_aux): Call language hooks to determine
1206 if we should search fields of this and how to do static/global
1208 (lookup_symbol_aux_block): Make extern.
1209 (basic_lookup_symbol_nonlocal): New.
1210 (lookup_symbol_static, lookup_symbol_global): Ditto.
1211 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
1212 'la_lookup_symbol_nonlocal' members.
1213 * c-lang.c (c_language_defn, cplus_language_defn)
1214 (asm_language_defn, minimal_language_defn): Ditto.
1215 * jv-lang.c (java_language_defn): Ditto.
1216 * language.c (unknown_language_defn, auto_language_defn)
1217 (local_language_defn): Ditto.
1218 * m2-lang.c (m2_language_defn): Ditto.
1219 * objc-lang.c (objc_language_defn): Ditto.
1220 * scm-lang.c (scm_language_defn): Ditto.
1221 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
1222 * p-lang.c (pascal_language_defn): Ditto for both.
1223 * Makefile.in (f-lang.o): Depend on value_h.
1226 2003-05-19 David Carlton <carlton@bactrian.org>
1228 * block.h: Declare block_static_block.
1229 * block.c (block_static_block): New.
1230 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
1231 lookup_symbol_aux_local, calling block_static_block instead.
1232 (lookup_symbol_aux_local): Delete 'static_block' argument.
1234 2003-05-19 David Carlton <carlton@bactrian.org>
1236 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
1238 2003-05-19 Michal Ludvig <mludvig@suse.cz>
1240 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
1241 register numbers mapping.
1243 2003-05-18 Adam Fedor <fedor@gnu.org>
1245 * symtab.c (completion_list_objc_symbol): New function.
1246 (make_symbol_completion_list): Use it to add ObjC symbols
1247 when looking though the list.
1248 (language_search_unquoted_string): New function.
1249 (make_file_symbol_completion_list): Use it.
1251 2003-05-18 Andreas Schwab <schwab@suse.de>
1253 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
1255 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
1256 as m68k_linux_extract_return_value.
1257 (DEPRECATED_STORE_RETURN_VALUE): Define as
1258 m68k_linux_store_return_value.
1259 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
1260 m68k_linux_extract_struct_value_address.
1261 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
1262 get_next_frame, get_frame_base, get_frame_pc.
1263 (m68k_linux_frame_saved_pc): Use get_frame_base.
1264 (m68k_linux_extract_return_value): New function.
1265 (m68k_linux_store_return_value): New function.
1266 (m68k_linux_extract_struct_value_address): New function.
1267 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
1269 * c-exp.y (typebase): Remove duplicate occurence of
1270 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
1271 of lookup_signed_typename.
1273 2003-05-18 Mark Kettenis <kettenis@gnu.org>
1275 * dwarf2loc.c (find_location_expression): Change type of second
1276 argument to `size_t *'.
1277 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
1280 2003-05-18 David Carlton <carlton@bactrian.org>
1282 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
1283 'linkage_name'. Add comment.
1284 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
1286 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
1287 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
1288 (lookup_block_symbol): Ditto.
1290 2003-05-16 Andrew Cagney <cagney@redhat.com>
1292 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
1293 * gdbarch.h, gdbarch.c: Re-generate.
1294 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
1295 * TODO (REGISTER_BYTES): Delete reference.
1296 * alpha-tdep.c (alpha_gdbarch_init): Update.
1297 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1298 * x86-64-tdep.c (x86_64_init_abi): Update.
1299 * vax-tdep.c (vax_gdbarch_init): Update.
1300 * v850-tdep.c (v850_gdbarch_init): Update.
1301 * sparc-tdep.c (sparc_gdbarch_init): Update.
1302 * sh-tdep.c (sh_gdbarch_init): Update.
1303 * s390-tdep.c (s390_gdbarch_init): Update.
1304 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1305 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
1306 (ns32k_gdbarch_init_32382): Update.
1307 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1308 * mcore-tdep.c (mcore_gdbarch_init): Update.
1309 * m68k-tdep.c (m68k_gdbarch_init): Update.
1310 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1311 * ia64-tdep.c (ia64_gdbarch_init): Update.
1312 * i386-tdep.c (i386_gdbarch_init): Update.
1313 * i386-linux-tdep.c (i386_linux_init_abi): Update.
1314 * hppa-tdep.c (hppa_gdbarch_init): Update.
1315 * h8300-tdep.c (h8300_gdbarch_init): Update.
1316 * frv-tdep.c (frv_gdbarch_init): Update.
1317 * cris-tdep.c (cris_gdbarch_init): Update.
1318 * avr-tdep.c (avr_gdbarch_init): Update.
1319 * arm-tdep.c (arm_gdbarch_init): Update.
1320 * sparc-tdep.c (sparc_pop_frame): Update.
1321 * rs6000-tdep.c (rs6000_pop_frame): Update.
1322 * remote.c (init_remote_state): Update.
1323 (remote_prepare_to_store): Update.
1324 * remote-vx.c (vx_prepare_to_store): Update.
1325 * remote-sds.c (sds_fetch_registers): Update.
1326 (sds_prepare_to_store): Update.
1327 * remote-array.c: Update.
1328 * regcache.c (init_legacy_regcache_descr): Update.
1329 (init_regcache_descr): Update.
1330 * mips-tdep.c (mips_eabi_extract_return_value): Update.
1331 (mips_o64_extract_return_value): Update.
1332 * irix5-nat.c (fetch_core_registers): Update.
1333 * irix4-nat.c (fetch_core_registers): Update.
1334 * i386-tdep.h: Update.
1335 * hppa-tdep.c (pa_do_registers_info): Update.
1336 (pa_do_strcat_registers_info): Update.
1337 * cris-tdep.c (cris_register_bytes_ok): Update.
1338 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
1339 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
1340 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
1341 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
1342 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
1343 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
1344 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
1345 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
1346 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
1347 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
1348 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
1349 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
1350 (REGISTER_BYTES_OK): Update.
1351 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
1352 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
1354 2003-05-16 Ian Lance Taylor <ian@airs.com>
1356 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
1357 (vax_print_insn, print_insn_arg): Remove static functions.
1358 (vax_gdbarch_init): Call set_gdbarch_print_insn with
1359 print_insn_vax from opcodes library.
1360 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
1362 2003-05-15 Andrew Cagney <cagney@redhat.com>
1364 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
1365 * target.h (memory_breakpoint_from_pc): Delete declaration.
1366 * mem-break.c (memory_breakpoint_from_pc): Delete function.
1367 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
1368 * monitor.c (monitor_insert_breakpoint): Use
1369 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
1370 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
1371 * gdbarch.h, gdbarch.c: Re-generate.
1372 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
1373 (sparc_gdbarch_init): Set breakpoint_from_pc to
1374 sparc_breakpoint_from_pc.
1375 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
1376 (BREAKPOINT_FROM_PC): Define.
1377 (sparc_breakpoint_from_pc): Declare.
1378 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
1379 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
1380 (BREAKPOINT_FROM_PC): Define.
1381 (BREAKPOINT): Delete macro.
1382 * target.h: Update comment.
1383 * s390-tdep.c (s390_gdbarch_init): Update comments.
1384 * remote.c: Update comments.
1385 * remote-mips.c: Update comments.
1386 * proc-api.c (write_with_trace): Do not check for a breakpoint.
1387 * mem-break.c: Update comment.
1388 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
1389 (ia64_memory_insert_breakpoint): Update.
1390 * config/sparc/tm-sparc.h: Update comment.
1391 * config/pa/tm-hppa64.h: Update comment.
1392 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1393 (rs6000_breakpoint_from_pc): Update.
1394 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
1395 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
1396 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
1397 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
1398 (mips_breakpoint_from_pc): Update.
1399 (mips_dump_tdep): Update.
1401 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
1402 * minsyms.c (lookup_minimal_symbol): Inline
1403 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
1405 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
1406 * p-valprint.c (pascal_object_print_value_fields): Ditto.
1407 * p-lang.c (pascal_printstr): Ditto.
1408 * objc-lang.c (objc_printstr): Ditto.
1409 * m2-lang.c (m2_printstr): Ditto.
1410 * jv-valprint.c (java_print_value_fields): Ditto.
1411 * f-lang.c (f_printstr): Ditto.
1412 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
1413 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
1414 for repeat_count_threshold.
1415 * Makefile.in (cp-valprint.o): Update dependencies.
1417 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
1419 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
1420 (examine_prologue): Support looking through leaf functions, knowing
1421 they start with mov r2,r12. Support skipping over indirect stores
1422 of the input registers. Upon hitting a non-nop branch instruction
1423 or predicated instruction, bail out by setting lim_pc to the current
1424 pc value in the loop. At the end, if the lim_pc value is still
1425 beyond our calculated value and we have trust_limit set,
1426 use the lim_pc value.
1428 2003-05-15 Andrew Cagney <cagney@redhat.com>
1430 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
1431 generic_find_dummy_frame.
1432 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
1433 (deprecated_generic_find_dummy_frame): Update.
1434 (deprecated_read_register_dummy): Update.
1435 * frame.c (deprecated_generic_get_saved_register): Update.
1437 2003-05-15 Theodore A. Roth <troth@openavr.org>
1439 * avr-tdep.c (avr_breakpoint_from_pc): New function.
1440 (avr_gdbarch_init): Set breakpoint_from_pc method.
1442 2003-05-15 Andrew Cagney <cagney@redhat.com>
1444 * regcache.c (build_regcache): Set deprecated_register_valid
1446 (deprecated_grub_regcache_for_register_valid): Delete function.
1447 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
1450 2003-05-15 David Carlton <carlton@bactrian.org>
1452 Committed by Elena Zannoni <ezannoni@redhat.com>
1453 * symtab.c (lookup_symbol_aux): Delete calls to
1454 lookup_symbol_aux_minsyms.
1455 (lookup_symbol_aux_minsyms): Comment out function and
1456 prototype. Delete lookup by mangled name.
1458 2003-05-14 Kevin Buettner <kevinb@redhat.com>
1460 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
1461 correctly indicate an empty stack and ``stack_allocated'' to the
1462 indicate the number of elements initially allocated.
1463 (dwarf_expr_grow_stack): Simplify method for computing new
1464 stack size. Don't loop infinitely if ``stack_len'' is zero.
1465 (execute_stack_op): Move ``ctx->in_reg'' initialization
1466 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
1467 be used in conjuction with DW_OP_piece. Revise error message
1470 2003-05-14 Theodore A. Roth <troth@openavr.org>
1472 * MAINTAINERS: Update my email address.
1473 * avr-tdep.c: Ditto.
1475 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
1477 * symtab.h (enum domain_enum): Rename from namespace_enum.
1478 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
1479 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
1480 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
1481 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
1482 TYPES_NAMESPACE, METHODS_NAMESPACE.
1483 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
1484 (struct symbol, struct partial_symbol): Rename field
1485 'namespace_enum namespace' to 'domain_enum domain'.
1486 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
1487 Delete old define kludge for namespace.
1489 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
1490 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
1491 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
1492 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
1493 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
1494 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
1495 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
1496 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
1497 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
1498 occurrences of the above.
1500 2003-05-14 Ian Lance Taylor <ian@airs.com>
1502 * Makefile.in (install-only): Use $(SHELL) when running
1505 2003-05-13 Ian Lance Taylor <ian@airs.com>
1507 * MAINTAINERS (write after approval): Add myself.
1509 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
1510 second and third arguments.
1511 * ser-tcp.c (_initialize_ser_tcp): Likewise.
1512 * ser-unix.c (_initialize_ser_hardwire): Likewise.
1514 2003-05-13 Andrew Cagney <cagney@redhat.com>
1516 * defs.h (store_address): Delete declaration.
1517 findvar.c (store_address): Delete function.
1518 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
1519 store_unsigned_integer.
1520 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
1521 * v850-tdep.c (v850_push_arguments): Ditto.
1522 * sparc-tdep.c (sparc_get_saved_register): Ditto.
1523 * sh-tdep.c (sh64_get_saved_register): Ditto.
1524 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
1525 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
1526 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
1527 (mips_get_saved_register): Ditto.
1528 * ia64-tdep.c (ia64_get_saved_register): Ditto.
1529 (find_func_descr, ia64_push_arguments): Ditto.
1530 * i386-tdep.c (i386_push_arguments): Ditto.
1531 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1532 * frv-tdep.c (frv_push_arguments): Ditto.
1533 * frame.c (legacy_saved_regs_prev_register): Ditto.
1534 (deprecated_generic_get_saved_register): Ditto.
1535 * findvar.c (unsigned_address_to_pointer): Ditto.
1536 * dwarf2read.c (dwarf2_const_value): Ditto.
1537 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
1538 * alpha-tdep.c (alpha_push_arguments): Ditto.
1540 2003-05-12 J. Brobecker <brobecker@gnat.com>
1542 * NEWS: Mention that the hppa-hpux port has been partially
1543 multiarched (32bit ABIT only, so far).
1545 2003-05-11 Andrew Cagney <cagney@redhat.com>
1547 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
1548 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
1549 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
1550 sim/testsuite/sim/arm/misaligned2.ms, and
1551 sim/testsuite/sim/arm/misaligned3.ms.
1552 * disasm.h (struct ui_file): Add opaque struct declaration.
1553 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
1554 * frame.h (struct ui_file): Ditto.
1556 2003-05-11 Mark Kettenis <kettenis@gnu.org>
1558 * value.h: Pretty print.
1560 2003-05-10 Mark Kettenis <kettenis@gnu.org>
1562 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
1564 2003-05-08 Andrew Cagney <cagney@redhat.com>
1566 * regcache.h (max_register_size): Delete declaration.
1567 * regcache.c (max_register_size): Delete function.
1568 (struct regcache_descr): Delete field "max_register_size".
1569 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
1570 registers fit in MAX_REGISTER_SIZE.
1571 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
1572 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
1573 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
1574 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
1575 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
1576 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
1577 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
1578 * dve3900-rom.c, hppa-tdep.c: Ditto.
1580 2003-05-08 David Carlton <carlton@math.stanford.edu>
1582 * valops.c (push_word): Fix typo.
1584 2003-05-08 Andrew Cagney <cagney@redhat.com>
1586 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
1587 * gdbarch.h: Re-generate.
1588 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
1589 (legacy_max_register_raw_size): Delete declaration.
1590 * regcache.c (legacy_max_register_raw_size): Delete function.
1591 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
1592 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
1593 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
1594 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
1595 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
1596 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
1597 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
1598 * findvar.c, dwarf2cfi.c: Ditto.
1600 2003-05-08 Andrew Cagney <cagney@redhat.com>
1602 * mips-tdep.c (read_signed_register): New function, moved to here
1604 (read_signed_register_pid): Ditto.
1605 * regcache.c (read_signed_register_pid): Delete function, moved to
1607 (read_signed_register): Ditto.
1608 * regcache.h (read_signed_register): Delete declaration.
1609 (read_signed_register_pid): Delete declaration.
1611 2003-05-08 Andrew Cagney <cagney@redhat.com>
1613 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
1614 * gdbarch.h: Re-generate.
1615 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
1616 (legacy_max_register_virtual_size): Delete declaration.
1617 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
1618 * d10v-tdep.c (d10v_print_registers_info): Ditto.
1619 * tracepoint.c (memrange_sortmerge): Ditto.
1620 * sparc-tdep.c (sparc_print_registers): Ditto.
1621 * regcache.c (legacy_max_register_virtual_size): Delete function.
1623 2002-05-08 J. Brobecker <brobecker@gnat.com>
1625 * fork-child.c (escape_bang_in_quoted_argument): New function.
1626 (fork_inferior): Escape '!' characters in quoted arguments
1629 2003-05-08 J. Brobecker <brobecker@gnat.com>
1631 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
1632 the language of the CU is not currently supported by GDB.
1634 2003-05-08 J. Brobecker <brobecker@gnat.com>
1636 * defs.h (language): Add language_minimal enum value.
1637 * c-lang.c (minimal_language_defn): New language definition.
1638 (_initialize_c_language): Add the new minimal language to the list
1639 of languages known to GDB.
1641 2003-05-08 Kevin Buettner <kevinb@redhat.com>
1643 * frame.c (get_frame_type): Don't attempt to lazily initialize
1644 frame's unwinder for legacy frames.
1646 2003-05-07 Andrew Cagney <cagney@redhat.com>
1648 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
1649 and "regcache" parameters.
1650 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
1652 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1654 * dwarf2read.c (dwarf_decode_lines): Only use output of
1655 check_cu_functions() when calling record_line(). Do not update
1656 the current address.
1658 2003-05-07 Andrew Cagney <cagney@redhat.com>
1660 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
1663 2003-05-07 Jim Blandy <jimb@redhat.com>
1665 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
1666 'maint info symtabs' and 'maint info psymtabs'.
1667 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
1668 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
1669 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
1670 Declarations updated.
1671 * maint.c (maintenance_list_command): Delete.
1672 (_initialize_maint_cmds): Update calls to add_cmd.
1673 * gdbcmd.h (maintenancelistlist): Delete declaration.
1674 * cli/cli-cmds.c (maintenancelistlist): Delete.
1675 (init_cmd_lists): Don't initialize it.
1676 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
1678 2003-05-07 Andrew Cagney <cagney@redhat.com>
1680 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
1682 (d10v_print_registers_info): Update.
1683 (d10v_dmap_register, d10v_imap_register): Delete functions.
1684 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
1685 and "imap_register".
1686 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
1687 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
1688 * arch-utils.c (generic_remote_translate_xfer_address): Add
1689 "regcache" and "gdbarch" parameters.
1690 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
1691 parameter. Change class to multi-arch.
1692 * gdbarch.h, gdbarch.c: Re-generate.
1693 * remote.c (remote_xfer_memory): Use
1694 gdbarch_remote_translate_xfer_address.
1696 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
1698 * infrun.c (prev_pc): Move declaration ahead of proceed().
1699 (proceed): Refresh prev_pc value before resuming.
1700 (stop_stepping): Remove code to refresh prev_pc.
1702 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1704 * nto-tdep.c: Removed stray comment.
1706 2003-05-06 Kris Warkentin <kewarken@qnx.com>
1708 * i386-nto-tdep.c: Fix old K&R function definitions.
1709 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
1710 Also change add_show_from_set() call to add_setshow_cmd().
1711 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
1713 2003-05-05 Andrew Cagney <cagney@redhat.com>
1715 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
1716 (fprint_dummy_frames): New function.
1717 (maintenance_print_dummy_frames): New function.
1718 (_initialize_dummy_frame): Add command "maint print dummy-frames".
1719 * frame.c (fprint_frame_id): Make global.
1720 * frame.h (fprint_frame_id): Declare.
1721 * Makefile.in (dummy-frame.o): Update dependencies.
1723 2003-05-05 Andrew Cagney <cagney@redhat.com>
1725 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
1726 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
1727 SIZEOF_CALL_DUMMY_WORDS.
1728 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
1729 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
1730 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
1731 CALL_DUMMY_BREAKPOINT_OFFSET.
1732 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
1733 CALL_DUMMY_START_OFFSET.
1734 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
1735 * gdbarch.h, gdbarch.c: Re-generate.
1736 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
1737 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
1738 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
1739 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
1740 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
1741 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
1742 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
1743 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
1744 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
1745 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
1746 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
1747 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
1748 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
1749 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
1750 * config/sparc/tm-sparc.h: Update.
1752 2003-05-05 Kris Warkentin <kewarken@qnx.com>
1754 * configure.tgt: Add i[3456]86-*-nto*.
1755 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
1756 * nto-tdep.c: New file. Neutrino target support routines.
1757 * nto-tdep.h: New file. Neutrino target header.
1758 * config/tm-qnxnto.h: New file.
1759 * config/i386/i386nto.mt: New file.
1760 * config/i386/tm-i386nto.h: New file.
1762 2003-05-04 Andrew Cagney <cagney@redhat.com>
1764 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
1765 (load_infrun_state): Ditto.
1766 (struct thread_info): Drop "prev_func_name" field.
1767 * thread.c (load_infrun_state): Update.
1768 (save_infrun_state): Update.
1769 * infrun.c (prev_func_name): Delete variable.
1770 (init_wait_for_inferior): Do not clear prev_func_name.
1771 (stop_stepping, keep_going, context_switch): Do not swap
1773 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
1774 instead of PC_IN_SIGTRAMP.
1776 2003-05-04 Andrew Cagney <cagney@redhat.com>
1778 * sentinel-frame.c (sentinel_frame_prev_register): Replace
1779 REGISTER_BYTE with register_offset_hack.
1780 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
1781 that REGISTER_BYTE is consistent with the regcache.
1782 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
1783 * gdbarch.h, gdbarch.c: Regenerate.
1785 2003-05-04 Mark Kettenis <kettenis@gnu.org>
1787 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
1788 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
1790 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
1792 2003-05-03 J. Brobecker <brobecker@gnat.com>
1794 From Thierry Schneider <tpschneider1@yahoo.com>
1795 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
1796 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
1797 (mi-cmd-symbol.o): Add rule.
1799 2003-05-03 Andrew Cagney <cagney@redhat.com>
1801 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
1802 comments noteing that it replaces the old FIX_CALL_DUMMY code.
1803 * gdbarch.h, gdbarch.c: Re-generate.
1804 * d10v-tdep.c (d10v_push_dummy_code): New function.
1805 (d10v_gdbarch_init): Set push_dummy_code.
1806 * infcall.c (legacy_push_dummy_code): New function.
1807 (generic_push_dummy_code): New function.
1808 (push_dummy_code): New function.
1809 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
1810 instead of dummy_addr, to push_dummy_call. Move call to
1811 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
1813 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
1815 2003-05-03 Andrew Cagney <cagney@redhat.com>
1817 * disasm.h (print_insn): Declare.
1818 * disasm.c (init_gdb_disassemble_info): New function.
1819 (gdb_disassembly): Call init_gdb_disassemble_info.
1820 (gdb_print_insn): New function.
1821 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
1822 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
1823 * mcore-tdep.c: Include "disasm.h"
1824 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
1825 * d10v-tdep.c: Include "disasm.h".
1826 (display_trace): Call gdb_print_insn, instead of print_insn.
1827 (print_insn): Delete function.
1828 * printcmd.c: Include "disasm.h".
1829 (print_insn): Delete function.
1830 (print_formatted): Call gdb_print_insn, instead of print_insn.
1831 * Makefile.in (printcmd.o): Update dependencies.
1832 (mcore-tdep.o, d10v-tdep.o): Ditto.
1834 2003-05-02 Andrew Cagney <cagney@redhat.com>
1836 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
1837 PC_REGNUM, re-indent.
1838 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
1839 PC_REGNUM isn't set.
1841 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
1842 * gdbarch.h, gdbarch.c: Re-generate.
1843 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
1844 register_virtual_size, pc_regnum, or register_bytes.
1845 (D10V_PC_REGNUM): Rename _PC_REGNUM.
1846 (d10v_register_type): Use D10V_PC_REGNUM.
1847 (d10v_print_registers_info, d10v_read_pc): Ditto.
1848 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
1849 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
1851 2003-05-02 David Carlton <carlton@bactrian.org>
1853 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
1854 the name with mstrsave.
1856 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
1858 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
1859 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
1860 (host_charset_name, target_charset_name): New vars for use by
1862 (host_charset_enum, target_charset_enum): New enums for set/show
1864 (set_charset_sfunc, set_host_charset_sfunc,
1865 set_target_charset_sfunc): New functions.
1866 (set_host_charset, set_target_charset): Make static.
1867 (list_charsets, set_host_charset_command,
1868 set_target_charset_command): Delete functions.
1869 (show_charset_command): Rewrite as....
1870 (show_charset): Hook this up with the set/show command mechanism.
1871 (_initialize_charset): Change names of charsets to match the
1872 set/show enums. Use host_charset_name and target_charset_name.
1873 Use set/show mechanism for charset, host-charset, target-charset
1874 commands. Do not make 'show host-charset' and 'show
1875 target-charset' be aliases of 'show charset'.
1877 * charset.h (set_host_charset, set_target_charset): Don't export,
1878 they are not used outside the file.
1880 2003-05-01 Andrew Cagney <cagney@redhat.com>
1882 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
1883 (gdb_disassembly): Make "di" non static, always initialize and
1884 cleanup. Always use dis_asm_read_memory.
1885 (gdb_dis_asm_read_memory): Delete function.
1887 2003-05-01 Andrew Cagney <cagney@redhat.com>
1889 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
1890 (d10v_gdbarch_init): Set frame_align instead of stack_align.
1892 2003-04-30 Andrew Cagney <cagney@redhat.com>
1894 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
1895 "tm_print_insn_info".
1896 (TARGET_PRINT_INSN_INFO): Delete macro.
1897 (dis_asm_read_memory): Delete function declaration.
1898 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1899 (tm_print_insn_info): Delete variable definition.
1900 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
1901 * gdbarch.h, gdbarch.c: Re-generate.
1902 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
1903 "deprecated_tm_print_insn_info".
1904 * mcore-tdep.c (mcore_dump_insn): Ditto.
1905 * mips-tdep.c (mips_gdbarch_init): Ditto.
1906 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
1907 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
1908 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
1909 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
1910 instead of TARGET_PRINT_INSN_INFO, add comment.
1911 * s390-tdep.c (s390_get_frame_info): Instead of
1912 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
1913 (s390_check_function_end, s390_is_sigreturn): Ditto.
1914 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
1915 (dis_asm_memory_error, dis_asm_print_address): Ditto.
1916 * disasm.c: Include "gdbcore.h".
1917 (_initialize_disasm): New function, initialize
1918 "deprecated_tm_print_insn_info".
1919 (deprecated_tm_print_insn_info): New variable.
1920 (dis_asm_read_memory): Moved from "corefile.c", made static.
1921 (dis_asm_print_address, dis_asm_memory_error): Ditto.
1922 * Makefile.in (disasm.o): Update dependencies.
1924 2003-04-30 Andrew Cagney <cagney@redhat.com>
1926 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
1928 2003-04-29 Adam Fedor <fedor@gnu.org>
1930 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
1931 * infcall.c (find_function_addr): Make non-static.
1932 * infcall.h (find_function_addr): Declare.
1933 * Makefile.in (eval.o): Update dependencies.
1935 2003-04-28 Adam Fedor <fedor@gnu.org>
1937 * symtab.c (symbol_find_demangled_name): Check for and demangle
1939 (symbol_init_demangled_name): Init for language_objc as well.
1941 2003-04-28 Andrew Cagney <cagney@redhat.com>
1943 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
1944 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
1945 * gdbarch.h, gdbarch.c: Re-generate.
1946 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
1947 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
1948 * inferior.h (deprecated_read_fp): Rename read_fp.
1949 (generic_target_read_fp): Delete declaration.
1950 * regcache.c (generic_target_read_fp): Delete function.
1951 (deprecated_read_fp): Replace read_fp, use
1952 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
1953 * d10v-tdep.c (d10v_read_fp): Delete function.
1954 (d10v_gdbarch_init): Do not set deprecated_read_fp.
1956 * sparc-tdep.c (sparc_gdbarch_init): Do not set
1957 deprecated_target_read_fp to generic_target_read_fp.
1958 * sh-tdep.c (sh_gdbarch_init): Ditto.
1959 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1960 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1961 * frv-tdep.c (frv_gdbarch_init): Ditto.
1963 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
1964 deprecated_fp_regnum.
1965 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1966 * vax-tdep.c (vax_gdbarch_init): Ditto.
1967 * v850-tdep.c (v850_gdbarch_init): Ditto.
1968 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1969 * sh-tdep.c (sh_gdbarch_init): Ditto.
1970 * s390-tdep.c (s390_gdbarch_init): Ditto.
1971 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1972 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1973 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1974 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
1975 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1976 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1977 * i386-tdep.c (i386_gdbarch_init): Ditto.
1978 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1979 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1980 * frv-tdep.c (frv_gdbarch_init): Ditto.
1981 * cris-tdep.c (cris_gdbarch_init): Ditto.
1982 * avr-tdep.c (avr_gdbarch_init): Ditto.
1983 * arm-tdep.c (arm_gdbarch_init): Ditto.
1984 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1986 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1987 * v850-tdep.c (v850_gdbarch_init): Ditto.
1988 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1989 * sh-tdep.c (sh_gdbarch_init): Ditto.
1990 * s390-tdep.c (s390_gdbarch_init): Ditto.
1991 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1992 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1993 * mips-tdep.c (mips_gdbarch_init): Ditto.
1994 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1995 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1996 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1997 * frv-tdep.c (frv_gdbarch_init): Ditto.
1998 * avr-tdep.c (avr_gdbarch_init): Ditto.
1999 * arm-tdep.c (arm_gdbarch_init): Ditto.
2001 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
2002 DEPRECATED_FP_REGNUM.
2003 (vax_push_dummy_frame, vax_pop_frame): Ditto.
2004 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
2005 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2006 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
2007 (sparc32_register_virtual_type): Ditto.
2008 * sh-tdep.c (sh64_frame_chain): Ditto.
2009 (sh64_get_saved_register, sh64_pop_frame): Ditto.
2010 (sh_nofp_frame_init_saved_regs): Ditto.
2011 (sh64_nofp_frame_init_saved_regs): Ditto.
2012 (sh_fp_frame_init_saved_regs): Ditto.
2013 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2014 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2015 * procfs.c (procfs_fetch_registers): Ditto.
2016 (procfs_store_registers): Ditto.
2017 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
2018 (store_inferior_registers, fetch_core_registers): Ditto.
2019 (fetch_kcore_registers, clear_regs): Ditto.
2020 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
2021 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
2022 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
2023 * nlm/i386.c (do_status): Ditto.
2024 * mipsv4-nat.c (supply_gregset): Ditto.
2025 * mips-tdep.c: Ditto for comments.
2026 * mips-nat.c (fetch_inferior_registers): Ditto.
2027 (store_inferior_registers, fetch_core_registers): Ditto.
2028 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
2029 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
2030 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
2031 (i386_do_pop_frame, i386_register_type): Ditto.
2032 * hppa-tdep.c (hppa_frame_chain): Ditto.
2033 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
2034 (hppa_pop_frame, hppa_read_fp): Ditto.
2035 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
2036 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
2037 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
2038 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
2039 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
2040 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
2041 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
2042 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
2043 * blockframe.c: Ditto for comments.
2044 * arch-utils.h: Ditto for comments.
2045 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
2046 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
2047 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
2048 * alpha-tdep.h: Ditto for comments.
2049 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
2050 (alpha_cannot_store_register): Ditto.
2051 (alpha_push_dummy_frame): Ditto.
2052 * alpha-nat.c (supply_gregset): Ditto.
2054 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
2055 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
2056 * config/sparc/tm-sparc.h: Update comment.
2058 * hppa-tdep.c (hppa_init_extra_frame_info): Use
2059 deprecated_read_fp instead of TARGET_READ_FP.
2060 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
2061 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
2062 * sparc-tdep.c (sparc_init_extra_frame_info): Use
2063 deprecated_read_fp instead of read_fp.
2064 * s390-tdep.c (s390_push_arguments): Ditto.
2065 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2066 * frame.h: Ditto in comments.
2067 * frame.c (legacy_get_prev_frame): Ditto.
2068 * dummy-frame.c (dummy_frame_this_id): Ditto.
2069 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2071 2003-04-28 Andrew Cagney <cagney@redhat.com>
2073 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
2074 * gdbarch.h, gdbarch.c: Re-generate.
2075 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
2076 * vax-tdep.c (_initialize_vax_tdep): Update.
2077 * v850-tdep.c (_initialize_v850_tdep): Update.
2078 * sparc-tdep.c (_initialize_sparc_tdep): Update.
2079 * s390-tdep.c (_initialize_s390_tdep): Update.
2080 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
2081 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
2082 * mips-tdep.c (_initialize_mips_tdep): Update.
2083 * mcore-tdep.c (_initialize_mcore_tdep): Update.
2084 * m68k-tdep.c (_initialize_m68k_tdep): Update.
2085 * ia64-tdep.c (_initialize_ia64_tdep): Update.
2086 * hppa-tdep.c (_initialize_hppa_tdep): Update.
2087 * h8300-tdep.c (_initialize_h8300_tdep): Update.
2088 * frv-tdep.c (_initialize_frv_tdep): Update.
2089 * cris-tdep.c (cris_delayed_get_disassembler): Update.
2090 (_initialize_cris_tdep): Update.
2091 * arch-utils.c (legacy_print_insn): Update.
2092 * alpha-tdep.c (_initialize_alpha_tdep): Update.
2094 2003-04-26 Adam Fedor <fedor@gnu.org>
2096 * linespec.c (decode_objc): New function to decode ObjC calls
2097 (decode_line_1): Check for ObjC calls (using decode_objc)
2098 * Makefile (linespec.o): Update dependencies.
2100 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
2102 * breakpoint.h (struct breakpoint_ops): New.
2103 (struct breakpoint): Add ops member.
2105 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
2106 (mention): Use new breakpoint ops member.
2107 (set_raw_breakpoint): Initialize ops field to NULL.
2108 (print_exception_catchpoint, print_one_exception_catchpoint)
2109 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
2110 (gnu_v3_exception_catchpoint_ops): New.
2111 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
2113 2003-04-25 Adam Fedor <fedor@gnu.org>
2115 * Makefile.in (COMMON_OBS): Add objc-lang.o
2117 2003-04-25 Andrew Cagney <cagney@redhat.com>
2119 * d10v-tdep.c (print_insn): Delete function.
2120 (display_trace): Use TARGET_PRINT_INSN.
2121 (_initialize_d10v_tdep): Do not set tm_print_insn.
2122 (d10v_gdbarch_init): Set print_insn.
2124 2003-04-25 Andrew Cagney <cagney@redhat.com>
2126 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
2127 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
2128 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
2129 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
2130 (nr_dmap_regs, a0_regnum): ... new functions.
2131 (d10v_print_registers_info): Use a0_regnum, use register_size.
2132 (d10v_register_byte): Delete function.
2133 (d10v_register_raw_size): Delete function.
2134 (d10v_register_type): Use a0_regnum.
2135 (d10v_print_registers_info): Use a0_regnum.
2136 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
2137 (d10v_gdbarch_init): Do not set register_byte or
2138 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
2139 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
2141 (trace_command): Use XCALLOC.
2142 (print_insn): Delete reference to tm_print_insn.
2143 (saved_regs_unwinder): Use store_unsigned_integer instead of
2145 * frame.h (FRAME_OBSTACK_CALLOC): Define
2147 2003-04-25 David Carlton <carlton@bactrian.org>
2149 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
2151 2003-04-24 Adam Fedor <fedor@gnu.org>
2153 * objc-lang.c: Include "valprint.h"
2154 * Makefile.in (objc-lang.o): Update dependencies.
2156 2003-04-24 Adam Fedor <fedor@gnu.org>
2158 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
2159 architecture dependant compilation and mark as unimplemented
2160 (until they get put in the gdbarch vector).
2162 2003-04-23 David Carlton <carlton@bactrian.org>
2164 * cp-support.c (cp_find_first_component): Accept 'operator' in
2167 2003-04-23 Andrew Cagney <cagney@redhat.com>
2169 * infcall.c (call_function_by_hand): Eliminate redundant
2170 indentation. Move "saved_async" and "old_cleanups" to where they
2173 2003-04-23 Andrew Cagney <cagney@redhat.com>
2175 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
2176 and "buffer". Move the "name" code to where it is needed.
2178 2003-04-23 Andrew Cagney <cagney@redhat.com>
2180 * infcall.c (call_function_by_hand): Move variables "start_sp",
2181 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
2182 code to ON_STACK switch branch.
2184 2003-04-23 Andrew Cagney <cagney@redhat.com>
2186 * infcall.c (call_function_by_hand): Make declaration of "i",
2187 "sal", "bpt" and "old_sp" more local to their use. Delete #if
2190 2003-04-23 Andrew Cagney <cagney@redhat.com>
2192 * infcall.c (call_function_by_hand): Delete variable
2193 "n_method_args". Localize "param_type"'s declaration to the loop
2194 that it is used. Reinstate code assigning to said variable -
2195 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
2196 Rationalize code using "param_type".
2198 2003-04-22 Andrew Cagney <cagney@redhat.com>
2200 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
2201 compute the breakpoint address. Only call FIX_CALL_DUMMY when
2202 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
2203 to DEPRECATED_PUSH_RETURN_ADDRESS.
2205 2003-04-22 Kevin Buettner <kevinb@redhat.com>
2207 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
2208 on the DWARF2 register number prior to fetching a register.
2210 2003-04-22 J. Brobecker <brobecker@gnat.com>
2212 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
2213 Update all the tests using SOFT_FLOAT considering the fact that
2214 this macro was always set to 0.
2215 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
2216 considering the fact that this macro was always set to 0.
2217 * hppa-tdep.h (hppa_store_return_value): Likewise.
2218 (hppa_extract_return_value): Likewise.
2220 2003-04-22 J. Brobecker <brobecker@gnat.com>
2222 * config/pa/tm-hppa.h: Remove obsolete code, was used by
2223 the hppa-pro target only.
2225 2003-04-21 J. Brobecker <brobecker@gnat.com>
2227 Ongoing multi-arch conversion effort for HP/UX:
2228 * config/pa/tm-hppa.h: Move all macro that are no longer
2229 defined now that GDB_MULTI_ARCH is now set to 1 from here...
2230 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
2232 2003-04-21 J. Brobecker <brobecker@gnat.com>
2234 * config/pa/tm-hppa.h: Obsolete a section that was only used
2237 2003-04-21 J. Brobecker <brobecker@gnat.com>
2239 Ongoing multi-arch conversion for HP/UX.
2240 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
2241 if already defined (allows hppa64 to stay non-multiarched for now).
2242 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
2244 2003-04-21 Andrew Cagney <cagney@redhat.com>
2246 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
2248 2003-04-21 Andrew Cagney <cagney@redhat.com>
2250 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
2251 "i386_num_mmx_regs".
2253 2003-04-21 Andrew Cagney <cagney@redhat.com>
2255 * infcall.c: New file.
2256 * infcall.h: New file.
2257 * valarith.c: Include "infcall.h".
2258 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
2259 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
2260 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
2261 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
2262 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
2263 (SFILES): Add "infcall.c"
2264 (COMMON_OBS): Add "infcall.o".
2265 (infcall.o): Specify dependencies.
2266 * value.h (call_function_by_hand): Delete declaration.
2267 * inferior.h (run_stack_dummy): Delete declaration.
2268 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
2269 (run_stack_dummy): Move to "infcall.c", merged into
2270 call_function_by_hand.
2271 * valops.c (call_function_by_hand): Moved to "infcall.c".
2272 (find_function_addr, value_arg_coerce): Ditto.
2273 (unwindonsignal_p, coerce_float_to_double): Ditto.
2274 (_initialize_valops): Move "set/show coerce-float-to-double", and
2275 "set/show unwindonsignal" commands to "infcall.c".
2276 * v850-tdep.c, target.h: Update comments.
2277 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
2278 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
2279 (sh64_init_extra_frame_info): Update comments.
2280 * mn10300-tdep.c: Update comments.
2281 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
2282 * config/sparc/tm-sparc.h: Update comments.
2283 * breakpoint.h: Update comments.
2284 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
2285 * arm-tdep.c: Update comment.
2287 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2289 * i386-tdep.c (i386_num_register_names): New variable.
2290 (i386_num_mmx_regs): Renamed from mmx_num_regs.
2291 (MM0_REGNUM): Remove redundant parentheses in define.
2292 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
2293 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
2294 i386_mxcsr_regnum_p): Remove redundant parentheses.
2295 (i386_register_name): Use i386_num_register_names.
2297 * i386-tdep.c (i386_extract_return_value,
2298 i386_store_return_value): Correct check for availability of
2299 floating-point registers.
2301 * i386-tdep.c (i386_frame_num_args): Remove function.
2302 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
2304 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
2305 mmx_regnum_to_fp_regnum. Adjust all callers.
2307 * i386-tdep.c (i386_get_longjmp_target): Use
2308 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
2309 and TARGET_CHAR_BIT. Use extract_typed_address instead of
2312 2003-04-19 Mark Kettenis <kettenis@gnu.org>
2314 * core-regset.c: Update comments to reflect reality. Re-order
2316 (fetch_core_registers): Use switch instead of if. Remove
2317 redundant prototype.
2319 2003-04-18 Jim Blandy <jimb@redhat.com>
2321 * s390-tdep.c (s390_frame_align): New function.
2322 (s390_gdbarch_init): Register it with the gdbarch object.
2324 2003-04-17 Richard Henderson <rth@redhat.com>
2326 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
2328 2003-04-17 Michael Snyder <msnyder@redhat.com>
2329 Karen Bennet <bennet@redhat.com>
2331 Committed by Elena Zannoni <ezannoni@redhat.com>
2332 * gdb_gcore.sh: New script to create a core dump of a process.
2334 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
2336 * values.c (value_being_returned): Don't fetch the return
2337 value if the return type is void.
2339 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2341 * thread-db.c: Reindented.
2343 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
2345 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
2346 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
2373 2003-04-16 Kevin Buettner <kevinb@redhat.com>
2375 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
2376 the size of ``long double'' to 16, instead of 8.
2378 2003-04-16 Mark Kettenis <kettenis@gnu.org>
2380 * i386-linux-nat.c: Add some whitespace to make things more
2382 (fetch_register, store_register, fetch_inferior_registers,
2383 store_inferior_registers): Get rid of assignment in if-statement.
2384 (store_register): Fix typo in error message.
2386 2003-04-16 Andrew Cagney <cagney@redhat.com>
2388 * utils.c (xmmalloc): Always allocate something, matches
2389 libiberty/xmalloc's semantics.
2390 (xmrealloc, xmcalloc): Ditto.
2392 2003-04-16 Andrew Cagney <cagney@redhat.com>
2394 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
2396 (get_frame_type): Initialize unwind and type when needed.
2397 (get_frame_id, frame_register_unwind): Ditto.
2399 2003-04-16 Andrew Cagney <cagney@redhat.com>
2401 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
2403 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
2404 * sparcl-stub.c: Obsolete file.
2405 * config/sparc/tm-sparclet.h: Obsolete file.
2406 * sparclet-stub.c: Obsolete file.
2407 * sparclet-rom.c: Obsolete file.
2408 * sparcl-tdep.c: Obsolete file.
2409 * config/sparc/tm-sparclite.h: Obsolete file.
2410 * config/sparc/sparclite.mt: Obsolete file.
2411 * config/sparc/sparclet.mt: Obsolete file.
2412 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
2413 sparc86x-*-* obsolete.
2415 2003-04-15 David Carlton <carlton@math.stanford.edu>
2417 * Makefile.in (SFILES): Add cp-namespace.c.
2418 (COMMON_OBS): Add cp-namespace.o.
2419 (block.o): Depend on gdb_obstack_h and cp_support_h.
2420 (buildsym.o): Depend on cp_support_h.
2421 (cp-namespace.o): New.
2422 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
2423 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
2424 (dwarf2read.o): Depend on cp_support_h.
2425 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
2426 * dwarf2read.c (process_die): Set processing_has_namespace_info,
2427 processing_current_namespace.
2428 (read_namespace): Update processing_current_namespace; check for
2429 anonymous namespaces.
2430 (dwarf2_name): New function.
2431 (dwarf2_extension): Ditto.
2432 * cp-support.h: Update copyright, contributors.
2433 Add inclusion guards.
2434 Add opaque declaration for structs obstack, block, symbol.
2435 (struct using_direct): New struct.
2436 Add declarations for cp_find_first_component,
2437 cp_entire_prefix_len, processing_has_namespace_info,
2438 processing_current_namespace, cp_is_anonymous,
2439 cp_add_using_directive, cp_initialize_namespace,
2440 cp_finalize_namespace, cp_set_block_scope,
2441 cp_scan_for_anonymous_namespaces.
2442 * cp-namespace.c: New file.
2443 * cp-support.c: Update copyright.
2444 Include ctype.h, gdb_assert.h, gdbcmd.h.
2445 New variable maint_cplus_cmd_list.
2446 (cp_find_first_component): New function.
2447 (cp_entire_prefix_len, maint_cplus_command)
2448 (first_component_command, _initialize_cp_support): Ditto.
2449 * buildsym.c: Include cp-support.h.
2450 New variable using_list.
2451 (add_symbol_to_list): Check for anonymous namespaces.
2452 (finish_block): Set block's scope.
2453 (start_symtab): Initialize C++ namespace support.
2454 (end_symtab): Finalize C++ namespace support.
2455 * block.h: Add opaque declarations for structs
2456 block_namespace_info, using_direct, and obstack.
2457 Add declarations for block_set_scope and block_set_using.
2458 (struct block): Add 'language_specific' member.
2459 (BLOCK_NAMESPACE): New macro.
2460 * block.c: Include gdb_obstack.h and cp-support.h.
2461 (struct block_namespace_info): New struct.
2462 (block_set_scope): New function.
2463 (block_set_using, block_initialize_namespace): Ditto.
2465 2003-04-14 Kevin Buettner <kevinb@redhat.com>
2467 * solib-svr4.c (svr4_have_link_map_offsets): New function.
2468 (locate_base): Return early if there aren't any link map offsets.
2469 (svr4_solib_create_inferior_hook): Warn if shared library support
2472 2003-04-14 David Carlton <carlton@math.stanford.edu>
2474 * symtab.c (symbol_set_names): Add prefix when storing Java names
2475 in hash table. Fix for PR java/1039.
2477 2003-04-14 David Carlton <carlton@math.stanford.edu>
2479 * symtab.c (symbol_set_names): Rename 'name' arg to
2480 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
2481 * symtab.h: Change 'name' argument in declaration of
2482 symbol_set_names to 'linkage_name'.
2483 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
2485 2003-04-14 Andrew Cagney <cagney@redhat.com>
2487 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
2488 return the fully sign-extended register value.
2489 (get_frame_pointer): Ditto.
2490 (mips_pop_frame): Initialize "proc_desc" after checking for a
2493 2003-04-14 Andrew Cagney <cagney@redhat.com>
2495 * mips-tdep.c (mips_push_dummy_frame): Delete function.
2496 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
2497 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
2498 (mips_push_register): Delete function.
2499 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
2502 2003-04-14 Jim Blandy <jimb@redhat.com>
2504 * symmisc.c: #include "gdb_regex.h".
2505 (maintenance_list_symtabs, maintenance_list_psymtabs): New
2507 * maint.c (maintenance_list_command): New function.
2508 (_initialize_maint_cmds): Register the above as commands.
2509 * symtab.h (maintenance_list_symtabs,
2510 maintenance_list_psymtabs): New declarations.
2511 * cli/cli-cmds.c (maintenancelistlist): New variable.
2512 (init_cmd_lists): Initialize it.
2513 * cli/cli-cmds.h (maintenancelistlist): New declaration.
2514 * gdbcmd.h (maintenancelistlist): New declaration.
2515 * Makefile.in (symmisc.o): Update dependencies.
2517 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
2519 * s390-nat.c: Include asm/types.h for addr_t.
2521 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
2523 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
2524 actually incoming type.
2526 2003-04-13 Andrew Cagney <cagney@redhat.com>
2528 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
2529 get_next_frame and get_frame_saved_regs.
2531 2003-04-13 Andrew Cagney <cagney@redhat.com>
2533 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
2534 of gdbarch_num_regs.
2536 2003-04-13 Andrew Cagney <cagney@redhat.com>
2538 * frame.h: Mention what replaced what in "struct frame_info".
2539 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
2540 deprecated_update_frame_base_hack and
2541 deprecated_update_frame_pc_hack.
2542 * hppa-tdep.c: Ditto.
2544 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2546 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
2547 to read_reg and update its comment. Remove regnum member.
2548 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
2549 Don't call read_reg when setting in_reg. Call read_reg to get
2550 the frame base if it's in a register. Return the register number
2551 on the stack instead of in the context. Remove extra arguments
2553 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
2554 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
2555 the register number on the expression stack.
2556 (needs_frame_read_reg): Remove extra arguments.
2558 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2560 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
2562 (execute_stack_op): All callers updated.
2563 * dwarf2expr.h: Add prototype for dwarf2_read_address.
2564 * dwarf2loc.c (find_location_expression): New function.
2565 (dwarf_expr_frame_base): Call it.
2566 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
2567 (dwarf2_tracepoint_var_ref): New function, broken out from
2568 locexpr_tracepoint_var_ref.
2569 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
2571 (loclist_read_variable, loclist_read_needs_frame): New functions.
2572 (loclist_describe_location, loclist_tracepoint_var_ref): New
2574 (dwarf2_loclist_funcs): New struct location_funcs.
2575 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
2576 (struct dwarf2_locexpr_baton): Add comments.
2577 (dwarf2_loclist_funcs): New extern.
2578 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
2579 base_address and base_known.
2580 (dwarf_loc_buffer): New variable.
2581 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
2582 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
2583 (dwarf2_has_info): Initialize dwarf_loc_offset.
2584 (dwarf2_build_psymtabs): Read in .debug_loc.
2585 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
2587 (psymtab_to_symtab_1): Likewise. Move base address calculation
2589 (dwarf2_get_pc_bounds): ... here. Use the base address from
2591 (dwarf2_symbol_mark_computed): Handle location lists.
2593 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
2595 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
2596 if the linkage name demangled successfully.
2598 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2600 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
2601 disassmbly_flavour): Removed.
2603 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
2605 2003-04-13 Mark Kettenis <kettenis@gnu.org>
2607 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
2609 2003-04-12 Andrew Cagney <cagney@redhat.com>
2611 * frame.h (struct frame_info): Move definition from here ...
2612 * frame.c (struct frame_info): ... to here.
2614 2003-04-12 Andrew Cagney <cagney@redhat.com>
2616 * gdbthread.h (save_infrun_state): Delete parameter
2618 (struct thread_info): Delete field "prev_func_start".
2619 (load_infrun_state): Ditto.
2620 * thread.c (load_infrun_state, save_infrun_state): Update.
2621 * infrun.c (prev_func_start): Delete variable.
2622 (context_switch, init_wait_for_inferior): Update.
2623 (stop_stepping, keep_going): Update.
2625 2003-04-12 Andrew Cagney <cagney@redhat.com>
2627 * gdbarch.sh: Add missing opaque declarations.
2628 * gdbarch.h: Regnerate.
2629 * symtab.h: Add missing opaque declarations.
2630 * value.h, target.h, symfile.h, stabsread.h: Ditto.
2631 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
2632 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
2633 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
2634 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
2635 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
2636 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
2637 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
2638 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
2639 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
2640 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
2641 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
2642 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
2644 2003-04-11 Andrew Cagney <cagney@redhat.com>
2646 * frame.c (get_frame_id): Return this frame's "id".
2647 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
2649 (legacy_saved_regs_this_id): Replace function body with
2651 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
2652 FRAME_OBSTACK_ZALLOC.
2653 (create_new_frame): Mark the frame ID as valid.
2655 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
2657 * Makefile.in (libbfd_h): Added missing setting.
2658 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
2659 according to the selected ABI.
2661 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
2663 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
2665 2003-04-11 Andrew Cagney <cagney@redhat.com>
2667 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
2668 SAVED_PC_AFTER_CALL.
2669 * gdbarch.h, gdbarch.c: Regenerate.
2670 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2671 * x86-64-tdep.c (x86_64_init_abi): Update.
2672 * vax-tdep.c (vax_gdbarch_init): Update.
2673 * v850-tdep.c (v850_gdbarch_init): Update.
2674 * sparc-tdep.c (sparc_gdbarch_init): Update.
2675 * sh-tdep.c (sh_gdbarch_init): Update.
2676 * s390-tdep.c (s390_gdbarch_init): Update.
2677 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2678 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2679 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2680 * mips-tdep.c (mips_gdbarch_init): Update.
2681 * mcore-tdep.c (mcore_gdbarch_init): Update.
2682 * m68k-tdep.c (m68k_gdbarch_init): Update.
2683 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2684 * ia64-tdep.c (ia64_gdbarch_init): Update.
2685 (ia64_saved_pc_after_call): Update declaration.
2686 * i386ly-tdep.c (i386lynx_init_abi): Update.
2687 * i386-tdep.c (i386_gdbarch_init): Update.
2688 * hppa-tdep.c (hppa_gdbarch_init): Update.
2689 * h8300-tdep.c (h8300_gdbarch_init): Update.
2690 * frv-tdep.c (frv_gdbarch_init): Update.
2691 * cris-tdep.c (cris_gdbarch_init): Update.
2692 * avr-tdep.c (avr_gdbarch_init): Update.
2693 * arm-tdep.c (arm_gdbarch_init): Update.
2694 * alpha-tdep.c (alpha_gdbarch_init): Update.
2695 * ns32knbsd-nat.c (frame_num_args): Update.
2696 * ns32k-tdep.c (umax_frame_num_args): Update.
2697 * mips-tdep.c (mips_init_frame_pc_first): Update.
2698 * infrun.c (step_over_function): Update.
2699 * i386-linux-tdep.c (skip_hurd_resolver): Update.
2700 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
2701 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2702 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2703 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
2704 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
2705 * arm-linux-tdep.c (skip_hurd_resolver): Update.
2706 * arch-utils.c (init_frame_pc_default): Update.
2707 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
2708 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
2711 2003-04-11 Andrew Cagney <cagney@redhat.com>
2713 * i387-tdep.c: Update copyright.
2714 (i387_to_double): Delete function.
2715 (double_to_i387): Delete function.
2717 2003-04-10 Andrew Cagney <cagney@redhat.com>
2719 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
2720 frame's function's address. Simplify.
2721 (d10v_frame_unwind_cache): Check that the frame's function is
2724 2003-04-10 Jim Blandy <jimb@redhat.com>
2726 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
2727 call to set_gdbarch_deprecated_push_arguments.
2729 2003-04-10 Andrew Cagney <cagney@redhat.com>
2731 * frame.c (fprint_frame_id): New function.
2732 (fprint_frame_type, fprint_frame): New function.
2733 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
2734 (create_sentinel_frame, get_frame_id): Ditto.
2735 (frame_id_p, frame_id_eq): Ditto.
2736 (frame_id_inner, create_new_frame): Ditto.
2737 (legacy_get_prev_frame, get_prev_frame): Ditto.
2738 (deprecated_update_frame_pc_hack): Ditto.
2739 (frame_register_unwind): Ditto.
2740 (deprecated_update_frame_base_hack): Ditto.
2742 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2744 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
2745 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
2746 frame_chain function.
2747 * Makefile.in: Add dependencies due to above change.
2749 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
2751 * blockframe.c (legacy_frame_chain_valid): Move call to
2752 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
2755 2003-04-09 Andrew Cagney <cagney@redhat.com>
2757 * frame.h (struct frame_id): Replace "pc" and "base" with
2758 "stack_addr" and "code_addr". Update comments.
2759 (frame_id_build): Update parameter names and comment.
2760 (struct frame_info): Replace "id_p" and "id" with "this_id".
2761 * dummy-frame.c (dummy_frame_this_id): Update.
2762 * breakpoint.c (print_one_breakpoint): Update.
2763 * frame.c (get_frame_id): Update.
2764 (get_frame_base, frame_id_build): Update.
2765 (create_sentinel_frame, legacy_get_prev_frame): Update.
2766 (deprecated_update_frame_base_hack): Update.
2767 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
2768 (frame_id_inner): Ditto.
2770 2003-04-09 Andrew Cagney <cagney@redhat.com>
2772 * defs.h (gdb_print_host_address): Make "addr" parameter a
2774 * utils.c (gdb_print_host_address): Update.
2776 2003-04-09 Kevin Buettner <kevinb@redhat.com>
2778 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
2779 register number for R0 is 0.
2781 2003-04-09 J. Brobecker <brobecker@gnat.com>
2783 * frame.h (struct gdbarch): Add opaque structure definition
2784 to avoid a compilation warning on LynxOS 4.0.
2786 2003-04-09 Andrew Cagney <cagney@redhat.com>
2788 * frame.h (struct frame_info): Delete field "pc". Replace
2789 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
2791 * frame.c (frame_pc_unwind): Update.
2792 (create_sentinel_frame): Do not set "pc".
2793 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
2794 (get_frame_pc): Call frame_pc_unwind.
2795 (deprecated_update_frame_pc_hack): Update.
2796 (create_new_frame): Use "pc" not "->pc".
2798 2003-04-09 Andrew Cagney <cagney@redhat.com>
2800 * frame.c (get_frame_id): Eliminate code updating "frame".
2801 (legacy_get_prev_frame): Ditto.
2802 (get_frame_base): Return id.base directly.
2803 (deprecated_update_frame_base_hack): Update "id.base".
2804 * frame.h (struct frame_info): Delete field "frame".
2806 2003-04-09 Andrew Cagney <cagney@redhat.com>
2808 * NEWS: Mention that the "Sequent family" is obsolete.
2809 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
2810 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2811 * configure.host: Obsolete i[3456]86-sequent-bsd*,
2812 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
2813 * config/i386/tm-ptx4.h: Obsolete file.
2814 * config/i386/tm-ptx.h: Obsolete file.
2815 * symm-tdep.c: Obsolete file.
2816 * config/i386/symmetry.mt: Obsolete file.
2817 * config/i386/tm-symmetry.h: Obsolete file.
2818 * symm-nat.c: Obsolete file.
2819 * config/i386/nm-symmetry.h: Obsolete file.
2820 * config/i386/xm-symmetry.h: Obsolete file.
2821 * config/i386/symmetry.mh: Obsolete file.
2822 * config/i386/nm-ptx4.h: Obsolete file.
2823 * config/i386/ptx4.mh: Obsolete file.
2824 * config/i386/ptx.mt: Obsolete file.
2825 * config/i386/ptx.mh: Obsolete file.
2826 * config/i386/xm-ptx4.h: Obsolete file.
2827 * config/i386/xm-ptx.h: Obsolete file.
2829 2003-04-09 Andrew Cagney <cagney@redhat.com>
2831 Obsolete mips*-*-mach3*.
2832 * NEWS: Mention that mips*-*-mach3* is obsolete.
2833 * m3-nat.c: Obsolete file.
2834 * config/nm-m3.h: Obsolete file.
2835 * config/mips/tm-mipsm3.h: Obsolete file.
2836 * config/mips/mipsm3.mt: Obsolete file.
2837 * config/mips/mipsm3.mh: Obsolete file.
2838 * config/mips/xm-mipsm3.h: Obsolete file.
2839 * mipsm3-nat.c: Obsolete file.
2840 * configure.host: Obsolete mips-dec-mach3*.
2841 * configure.tgt: Obsolete mips*-*-mach3*.
2843 2003-04-09 Andrew Cagney <cagney@redhat.com>
2845 * doublest.h: Update copyright.
2846 (deprecated_store_floating, deprecated_extract_floating): Rename
2847 store_floating and extract_floating. Update comments.
2848 * doublest.c: Update copyright.
2849 (extract_floating_by_length): Replace extract_floating.
2850 (store_floating_by_length): Replace store_floating.
2851 (deprecated_extract_floating): New function.
2852 (deprecated_store_floating): New function.
2853 (extract_typed_floating): Call extract_floating_by_length.
2854 (store_typed_floating): Call store_floating_by_length.
2855 * x86-64-tdep.c (x86_64_store_return_value): Update.
2856 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
2857 (sh64_extract_return_value): Update.
2858 (sh_sh4_register_convert_to_virtual): Update.
2859 (sh_sh64_register_convert_to_virtual): Update.
2860 (sh_sh4_register_convert_to_raw): Update.
2861 (sh_sh64_register_convert_to_raw): Update.
2862 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
2863 (rs6000_register_convert_to_raw): Update.
2864 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
2865 (ia64_register_convert_to_raw): Update.
2866 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
2867 (REGISTER_CONVERT_TO_VIRTUAL): Update.
2868 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
2869 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
2870 (alpha_register_convert_to_raw): Update.
2872 2003-04-08 Andrew Cagney <cagney@redhat.com>
2874 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
2875 * gdbarch.h, gdbarch.c: Re-generate.
2876 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
2877 (d10v_gdbarch_init): Do not set saved_pc_after_call.
2878 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
2879 conditionally, use frame_pc_unwind as an alternative. Add
2881 * arch-utils.c (init_frame_pc_default): Only call
2882 SAVED_PC_AFTER_CALL when available.
2884 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2886 * infrun.c (stop_soon): Rename from stop_soon_quietly.
2887 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
2888 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
2889 (start_remote): Ditto.
2890 (handle_inferior_event): Ditto.
2891 (save_inferior_status): Ditto.
2892 (restore_inferior_status): Ditto.
2893 * infcmd.c (attach_command): Ditto.
2894 * fork-child.c (startup_inferior): Ditto.
2895 * inferior.h (stop_soon): Rename from stop_soon_quietly.
2896 * alpha-tdep.c (heuristic_proc_start): Ditto.
2897 * mips-tdep.c (heuristic_proc_start): Ditto.
2898 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
2899 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
2900 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
2901 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
2902 * remote-vx.c (vx_create_inferior): Ditto.
2904 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
2906 * infrun.c (stop_soon_quietly): Make it an enum, to better
2907 override the default behavior of handle_inferior_event.
2908 (clear_proceed_status): Update uses of stop_soon_quietly to
2909 reflect that it is now an enum.
2910 (start_remote): Ditto.
2911 (handle_inferior_event): Change logic a bit if stop_soon_quietly
2912 is set to handle the new GNU/Linux kernel behavior for
2913 attach/sigstop. Update uses of stop_soon_quietly.
2914 * inferior.h (enum stop_kind): New enum.
2915 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
2916 Reset normal handle_inferior_event behavior, afterwards.
2917 * fork-child.c (startup_inferior): Update.
2918 * alpha-tdep.c (heuristic_proc_start): Update.
2919 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
2920 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
2921 * solib-osf.c (osf_solib_create_inferior_hook): Update.
2922 * solib-irix.c (irix_solib_create_inferior_hook): Update.
2923 * remote-vx.c (vx_create_inferior): Update.
2924 * mips-tdep.c (heuristic_proc_start): Update.
2926 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
2928 * disasm.c (dump_insns): Move variables inside loop, or they will
2929 be freed more than once, causing wild memory corruptions.
2930 (gdb_disassembly): Look for the substring "-thread",
2931 instead of "-threads" in the target name, to make sure to find
2932 the 'multi-thread' target. Also, make sure we do the right thing
2933 with the "core" target.
2935 2003-04-07 Kevin Buettner <kevinb@redhat.com>
2937 * mips-tdep.c (mips_print_fp_register): New function, created from
2938 do_fp_register_row(). Registers are now (also) printed as hex.
2939 Only one register is printed per row.
2940 (mips_print_register, do_fp_register_row): Print floating point
2941 registers with mips_print_fp_register().
2943 2003-04-06 Andrew Cagney <cagney@redhat.com>
2945 * valprint.h (inspect_it): Add extern declaration.
2946 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
2947 (selectors_info, classes_info): Ditto.
2948 (find_objc_msgcall): Fix indentation.
2949 (objc_printstr): Delete extern declarations.
2951 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
2953 2003-04-06 Andrew Cagney <cagney@redhat.com>
2955 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
2957 * frame.c (legacy_saved_regs_this_id): Update.
2958 (legacy_get_prev_frame): Update.
2959 * xstormy16-tdep.c: Update comment.
2960 * sparc-tdep.c (sparc_frame_chain): Update comment.
2961 * blockframe.c (legacy_frame_chain_valid): Update.
2963 2003-04-06 Andrew Cagney <cagney@redhat.com>
2965 * valprint.c (val_print_type_code_int): Delete #ifdef
2966 PRINT_TYPELESS_INTEGER code.
2968 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
2969 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
2970 multi-arch definition.
2971 * gdbarch.h: Re-generate.
2973 2003-04-05 Andrew Cagney <cagney@redhat.com>
2975 Eliminate FRAME_FIND_SAVED_REGS.
2976 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2977 Change FSR parameter to a pointer.
2978 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
2979 Assume FSR parameter is a pointer.
2980 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
2982 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
2983 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
2984 saved_regs a pointer.
2985 (hppa_frame_saved_pc): Ditto.
2986 (find_dummy_frame_regs): Make frame_saved_regs a pointer
2987 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
2989 (restore_pc_queue): Make fsr a pointer.
2990 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
2991 (hppa_frame_chain): Make saved_regs a pointer, call
2992 hppa_frame_init_saved_regs.
2993 * sparc-tdep.c: Include "gdb_assert.h".
2994 (sparc_frame_find_saved_regs): Replace internal_error with
2996 * remote-vxsparc.c (vx_read_register): Delete reference to
2997 FRAME_FIND_SAVED_REGS.
2998 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
2999 * gdbarch.h: Regenerate.
3000 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
3001 (deprecated_get_frame_saved_regs): Delete declaration.
3002 (struct frame_saved_regs): Delete definition.
3003 * frame.c (deprecated_get_frame_saved_regs): Delete function.
3004 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
3005 (hppa_frame_find_saved_regs): Delete declaration.
3006 (FRAME_FIND_SAVED_REGS): Delete macro.
3007 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
3008 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
3009 FRAME_FIND_SAVED_REGS in comment.
3011 2003-04-05 Andrew Cagney <cagney@redhat.com>
3013 * frame.c (frame_func_unwind, get_frame_func): New functions.
3014 * frame.h (get_frame_func, frame_func_unwind): Declare.
3015 (struct frame_info): Add field "prev_func" for caching the
3016 previous frame's function address.
3017 * arm-tdep.c (arm_frameless_function_invocation): Combine
3018 get_pc_function_start and get_frame_pc into get_frame_func.
3019 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3020 (sh64_nofp_frame_init_saved_regs): Ditto.
3021 * s390-tdep.c (s390_function_start): Ditto.
3022 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
3023 (rs6000_frameless_function_invocation): Ditto.
3024 (rs6000_frame_saved_pc): Ditto.
3025 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
3026 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
3027 * i386-tdep.c (i386_frameless_signal_p): Ditto.
3028 (i386_frame_init_saved_regs): Ditto.
3029 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
3030 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
3031 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
3032 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
3033 * blockframe.c (frameless_look_for_prologue): Ditto.
3035 2003-04-05 Andrew Cagney <cagney@redhat.com>
3037 * frame.c (legacy_get_prev_frame): Link prev to next at the
3038 function start. Update comments.
3040 2003-04-05 Andrew Cagney <cagney@redhat.com>
3042 * frame.c (get_frame_id): Update comment.
3043 (legacy_get_prev_frame): Update comment.
3044 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
3045 * gdbarch.h: Regenerate.
3046 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
3047 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
3049 2003-04-05 Andrew Cagney <cagney@redhat.com>
3051 * stack.c (print_frame_info): Use get_frame_pc.
3053 2003-04-04 Andrew Cagney <cagney@redhat.com>
3055 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
3056 the frame's type from the unwinder.
3057 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
3058 (create_new_frame, legacy_get_prev_frame): When the unwinder's
3059 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
3060 (get_frame_base_address): Use get_frame_type.
3061 (get_frame_locals_address, get_frame_args_address): Ditto.
3062 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
3063 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
3064 (struct frame_info): Add comment explaining why the frame contains
3066 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
3067 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
3068 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
3070 * frame-unwind.h: Include "frame.h".
3071 (struct frame_unwind): Add "type" field.
3072 * Makefile.in (frame_unwind_h): Add $(frame_h).
3074 2003-04-04 Andrew Cagney <cagney@redhat.com>
3076 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
3077 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
3078 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
3080 (d10v_unwind_dummy_id): Use frame_id_build.
3081 * frame.c (find_frame_sal): Use get_frame_pc.
3082 (create_new_frame): Use deprecated_update_frame_pc_hack and
3083 deprecated_update_frame_base_hack.
3084 (create_sentinel_frame): Add comment about ->pc going away.
3085 (get_prev_frame): Add comment about ->pc going away.
3086 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
3087 frame_id_build, deprecated_update_frame_pc_hack and
3088 deprecated_update_frame_base_hack.
3089 (select_frame): Use get_frame_pc.
3090 (legacy_saved_regs_this_id): Use frame_id_build.
3092 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
3094 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
3095 signed integer case.
3096 (classify_argument): Handle enumerations and references.
3098 2003-04-04 Andrew Cagney <cagney@redhat.com>
3100 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
3103 2003-04-01 Adam Fedor <fedor@gnu.org>
3105 * gdb/objc-lang.c (selectors_info): Replace calls to
3106 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
3107 SYMBOL_NATURAL_NAME.
3108 (classes_info, find_methods): Likewise.
3110 2003-04-03 Kevin Buettner <kevinb@redhat.com>
3112 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
3113 ``mach'' to the value determined by bfd_default_set_arch_mach().
3115 2003-04-02 Bob Rossi <bob_rossi@cox.net>
3117 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
3118 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
3119 (mi-cmd-file.o): Update dependencies.
3121 2003-04-01 Kevin Buettner <kevinb@redhat.com>
3123 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3124 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
3126 2003-04-01 Adam Fedor <fedor@gnu.org>
3128 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
3129 * language.h (struct language_defn): Add la_demangle.
3130 (language_demangle): Declare.
3131 * language.c (language_demangle): New function.
3132 (unk_lang_demangle): Likewise.
3133 (unknown_language_defn, auto_language_defn, local_language_defn):
3134 Add ukn_lang_demangle.
3135 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
3136 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
3137 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
3138 (cplus_language_defn): Add cplus_demangle for la_demangle element.
3139 * jv-lang.c (java_demangle): New function
3140 (java_language_defn): Use it for la_demangle element.
3141 * objc-lang.c (objc_demangle): Add options argument
3142 (objc_language_defn): Use objc_demangle for la_demangle element.
3143 * maint.c (maintenance_demangle): Replace switch with
3144 call to language_demangle.
3145 * utils.c (fprintf_symbol_filtered): Likewise.
3147 2003-04-01 Andrew Cagney <cagney@redhat.com>
3149 * printcmd.c (print_frame_nameless_args): Delete #ifdef
3150 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
3151 PRINT_TYPELESS_INTEGER.
3152 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
3153 PUSH_RETURN_ADDRESS.
3155 2003-04-01 Andrew Cagney <cagney@redhat.com>
3157 * Makefile.in (d10v-tdep.o): Update dependencies.
3158 * d10v-tdep.c: Include "frame-base.h".
3159 (d10v_frame_unwind): Make constant.
3160 (d10v_frame_base_address): New function.
3161 (d10v_frame_base): New variable.
3162 (d10v_gdbarch_init): Set frame_base default.
3163 (struct d10v_unwind_cache): Add the field "prev_sp". Update
3165 (d10v_frame_unwind_cache): Set and use "prev_sp".
3166 (d10v_frame_this_id): Use the previous frame's inner most stack
3167 address and this frame's func address for the frame ID. Use
3168 frame_id_build. Don't analyze beyond the current instruction.
3170 2003-04-01 Andrew Cagney <cagney@redhat.com>
3172 * frame.h (get_frame_locals_address, get_frame_args_address):
3173 Refer to the base address, instead of the address of the first
3176 2003-04-01 Andrew Cagney <cagney@redhat.com>
3178 Add frame debug info addresses:
3179 * frame-base.c: New file.
3180 * frame-base.h: New file.
3181 * frame.h (struct frame_base): Add opaque declaration.
3182 (get_frame_base): Update comment.
3183 (get_frame_base_address): Declare.
3184 (get_frame_locals_address): Declare.
3185 (get_frame_args_address): Declare.
3186 (struct frame_info): Add "base" and "base_cache". Update
3187 comments on the unwinder.
3188 * frame.c: Include "frame-base.h".
3189 (get_frame_locals_address): New function.
3190 (get_frame_base_address): New function.
3191 (get_frame_args_address): New function.
3192 * findvar.c (read_var_value): Use get_frame_locals_address and
3193 get_frame_args_address.
3194 * stack.c (frame_info): Use get_frame_locals_address and
3195 get_frame_args_address.
3196 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
3197 moved to "frame-base.c".
3198 * printcmd.c (print_frame_nameless_args): Ditto.
3199 * symtab.h (address_class): Update comments.
3200 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
3201 get_frame_base_address.
3202 * dwarf2expr.c (execute_stack_op): Ditto.
3203 * Makefile.in (frame_base_h): Define.
3204 (frame.o): Update dependencies.
3205 (frame-base.o): Add dependencies.
3206 (SFILES): Add frame-base.c.
3207 (COMMON_OBS): Add frame-base.o.
3209 2003-04-01 Andrew Cagney <cagney@redhat.com>
3211 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
3212 CALL_DUMMY_LENGTH): Ditto.
3213 * gdbarch.c: Re-generate.
3214 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
3215 (CALL_DUMMY_LENGTH): Delete macro.
3216 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
3217 * arm-tdep.c (arm_gdbarch_init): Ditto.
3218 * avr-tdep.c (avr_gdbarch_init): Ditto.
3219 * cris-tdep.c (cris_gdbarch_init): Ditto.
3220 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3221 * frv-tdep.c (frv_gdbarch_init): Ditto.
3222 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3223 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3224 * i386-tdep.c (i386_gdbarch_init): Ditto.
3225 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3227 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3228 * mips-tdep.c (mips_gdbarch_init): Ditto.
3229 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3230 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3231 * s390-tdep.c (s390_gdbarch_init): Ditto.
3232 * sh-tdep.c (sh_gdbarch_init): Ditto.
3233 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3234 * v850-tdep.c (v850_gdbarch_init): Ditto.
3235 * vax-tdep.c (vax_gdbarch_init): Ditto.
3236 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3238 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
3240 * frame.c (get_prev_frame): Disable call to inside_entry_file().
3242 2003-04-01 Andrew Cagney <cagney@redhat.com>
3244 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
3245 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3246 * gdbarch.h, gdbarch.c: Re-generate.
3247 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3248 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3249 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3250 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
3251 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
3252 * infcmd.c (run_stack_dummy): Simplify assuming
3253 CALL_DUMMY_BREAKPOINT_OFFSET_P.
3254 * infrun.c (handle_inferior_event): Ditto.
3255 * alpha-tdep.c (alpha_gdbarch_init): Do not set
3256 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
3257 * arm-tdep.c (arm_gdbarch_init): Ditto.
3258 * avr-tdep.c (avr_gdbarch_init): Ditto.
3259 * cris-tdep.c (cris_gdbarch_init): Ditto.
3260 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3261 * frv-tdep.c (frv_gdbarch_init): Ditto.
3262 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3263 * i386-tdep.c (i386_gdbarch_init): Ditto.
3264 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3265 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3266 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3267 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3268 * mips-tdep.c (mips_gdbarch_init): Ditto.
3269 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3270 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3271 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3272 * s390-tdep.c (s390_gdbarch_init): Ditto.
3273 * sh-tdep.c (sh_gdbarch_init): Ditto.
3274 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3275 * v850-tdep.c (v850_gdbarch_init): Ditto.
3276 * vax-tdep.c (vax_gdbarch_init): Ditto.
3277 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3279 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
3281 * symfile.c (symfile_relocate_debug_section): Update call to
3282 bfd_simple_get_relocated_section_contents.
3284 2003-03-31 Andrew Cagney <cagney@redhat.com>
3286 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
3287 * gdbarch.h, gdbarch.c: Regenerate.
3288 * inferior.h (FIX_CALL_DUMMY): Delete macro.
3289 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
3291 * frame.h (generic_fix_call_dummy): Delete declaration.
3292 * dummy-frame.h: Update comment.
3293 * dummy-frame.c (generic_fix_call_dummy): Delete function.
3294 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3296 * sh-tdep.c (sh_gdbarch_init): Ditto.
3297 * s390-tdep.c (s390_gdbarch_init): Ditto.
3298 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3299 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3300 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3301 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3302 * i386-tdep.c (i386_gdbarch_init): Ditto.
3303 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3304 * frv-tdep.c (frv_gdbarch_init): Ditto.
3305 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3306 * cris-tdep.c (cris_gdbarch_init): Ditto.
3307 * avr-tdep.c (avr_gdbarch_init): Ditto.
3308 * arm-tdep.c (arm_gdbarch_init): Ditto.
3310 2003-03-31 J. Brobecker <brobecker@gnat.com>
3312 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
3313 (INIT_FRAME_AP): Likewise.
3314 (EXTRA_FRAME_INFO): Likewise.
3316 2003-03-31 Andrew Cagney <cagney@redhat.com>
3318 * gdbarch.sh: Include "symfile.h".
3319 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
3320 * gdbarch.h, gdbarch.c: Re-generate.
3321 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
3322 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3323 call_dummy_address, the default is at entry_point_address.
3324 * v850-tdep.c (v850_gdbarch_init): Ditto.
3325 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3326 * sh-tdep.c (sh_gdbarch_init): Ditto.
3327 * s390-tdep.c (s390_gdbarch_init): Ditto.
3328 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3329 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3330 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3331 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3332 * i386-tdep.c (i386_gdbarch_init): Ditto.
3333 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3334 * frv-tdep.c (frv_gdbarch_init): Ditto.
3335 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3336 * cris-tdep.c (cris_gdbarch_init): Ditto.
3337 * arm-tdep.c (arm_gdbarch_init): Ditto.
3339 2003-03-31 Andrew Cagney <cagney@redhat.com>
3341 * gdbarch.sh (CALL_DUMMY_P): Delete.
3342 * gdbarch.h, gdbarch.c: Re-generate.
3343 * inferior.h (CALL_DUMMY_P): Delete macro.
3344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3345 * vax-tdep.c (vax_gdbarch_init): Update.
3346 * v850-tdep.c (v850_gdbarch_init): Update.
3347 * sparc-tdep.c (sparc_gdbarch_init): Update.
3348 * sh-tdep.c (sh_gdbarch_init): Update.
3349 * s390-tdep.c (s390_gdbarch_init): Update.
3350 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3351 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3352 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3353 * mips-tdep.c (mips_gdbarch_init): Update.
3354 * mcore-tdep.c (mcore_gdbarch_init): Update.
3355 * m68k-tdep.c (m68k_gdbarch_init): Update.
3356 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3357 * ia64-tdep.c (ia64_gdbarch_init): Update.
3358 * i386-tdep.c (i386_gdbarch_init): Update.
3359 * h8300-tdep.c (h8300_gdbarch_init): Update.
3360 * frv-tdep.c (frv_gdbarch_init): Update.
3361 * d10v-tdep.c (d10v_gdbarch_init): Update.
3362 * cris-tdep.c (cris_gdbarch_init): Update.
3363 * breakpoint.c (deprecated_frame_in_dummy): Update.
3364 * avr-tdep.c (avr_gdbarch_init): Update.
3365 * alpha-tdep.c (alpha_gdbarch_init): Update.
3366 * arm-tdep.c (arm_gdbarch_init): Update.
3367 * dummy-frame.c (dummy_frame_this_id): Update comments.
3368 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
3369 * frame.c (legacy_get_prev_frame): Ditto.
3370 * valops.c (call_function_by_hand): Delete function.
3371 (hand_function_call): Rename to call_function_by_hand
3373 2003-03-30 Andrew Cagney <cagney@redhat.com>
3375 2002-11-10 Klee Dienes <kdienes@apple.com>
3376 * value.h (struct value): Update comment.
3378 2003-03-30 Andrew Cagney <cagney@redhat.com>
3380 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
3382 (d10v_gdbarch_init): Do not set fp_regnum.
3384 * frame.c (get_frame_base): Force ID initialization.
3385 (get_prev_frame): Move computation of the frame ID from here ...
3386 (get_frame_id): ... to here.
3387 (legacy_get_prev_frame): Mark the frame ID as valid.
3388 * frame.h (struct frame_info): Add field "id_p".
3390 2003-03-30 Mark Kettenis <kettenis@gnu.org>
3392 * i386-tdep.c (i386_store_struct_return): Removed.
3393 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
3395 2003-03-30 Andrew Cagney <cagney@redhat.com>
3397 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
3398 * gdbarch.h, gdbarch.c: Regenerate.
3399 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
3400 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
3401 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3402 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3403 * i386-tdep.c (i386_gdbarch_init): Ditto.
3404 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3405 * cris-tdep.c (cris_gdbarch_init): Ditto.
3406 * vax-tdep.c (vax_gdbarch_init): Ditto.
3407 * s390-tdep.c (s390_gdbarch_init): Ditto.
3408 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3409 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3410 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3411 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
3412 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
3413 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
3414 * sparc-tdep.c (sparc_gdbarch_init): Update.
3415 * sh-tdep.c (sh_gdbarch_init): Update.
3416 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3417 * mips-tdep.c (mips_gdbarch_init): Update.
3418 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3419 * ia64-tdep.c (ia64_gdbarch_init): Update.
3420 * frv-tdep.c (frv_gdbarch_init): Update.
3421 * avr-tdep.c (avr_gdbarch_init): Update.
3422 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
3423 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
3424 instead of when push_dummy_call is not available.
3426 2003-03-30 Andrew Cagney <cagney@redhat.com>
3428 * infttrace.c: Include "gdbthread.h".
3429 (parent_attach_all): Fix function signature.
3430 (call_ptrace): Update call.
3431 * Makefile.in (infttrace.o): Update dependencies.
3433 2003-03-30 Andrew Cagney <cagney@redhat.com>
3435 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
3436 PUSH_RETURN_ADDRESS.
3437 * gdbarch.h, gdbarch.c: Regenerate.
3438 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3439 * x86-64-tdep.c (x86_64_init_abi): Update.
3440 * v850-tdep.c (v850_gdbarch_init): Update.
3441 * sparc-tdep.c (sparc_gdbarch_init): Update.
3442 * sh-tdep.c (sh_gdbarch_init): Update.
3443 * s390-tdep.c (s390_gdbarch_init): Update.
3444 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3445 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3446 * mips-tdep.c (mips_gdbarch_init): Update.
3447 * mcore-tdep.c (mcore_gdbarch_init): Update.
3448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3449 * ia64-tdep.c (ia64_gdbarch_init): Update.
3450 * i386-tdep.c (i386_gdbarch_init): Update.
3451 * h8300-tdep.c (h8300_gdbarch_init): Update.
3452 * frv-tdep.c (frv_gdbarch_init): Update.
3453 * cris-tdep.c (cris_gdbarch_init): Update.
3454 * avr-tdep.c (avr_gdbarch_init): Update.
3455 * arm-tdep.c (arm_gdbarch_init): Update.
3456 * valops.c (hand_function_call): Update.
3458 2003-03-29 Andrew Cagney <cagney@redhat.com>
3460 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
3461 sizeof_call_dummy_words.
3462 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
3464 * gdbarch.h: Regenerate.
3466 2003-03-29 Andrew Cagney <cagney@redhat.com>
3468 * infttrace.h: New file.
3469 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
3470 (hpread_get_textlow): Detect an uninitialized dn_bufp.
3471 (hpread_read_doc_function_type): Detect an initialized type1.
3472 (hpread_quick_traverse): Initialize mod_name_string.
3473 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
3474 (som_solib_get_solib_by_pc): Declare.
3475 (so_lib_thread_start_addr): Declare.
3476 (no_shared_libraries): Declare.
3477 * somread.c (init_import_symbols): Make static. Add forward
3479 * config/pa/nm-hppah.h: Include "infttrace.h" for
3481 (hppa_insert_hw_watchpoint): Declare.
3482 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
3483 * hppah-nat.c: Include "gdb_string.h".
3484 (parent_attach_all): Delete extern declaration, moved to
3486 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
3488 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
3489 * Makefile.in (infttrace_h): Define.
3490 (hpread.o): Update dependencies.
3491 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
3492 * hppa-hpux-tdep.c: Include "gdb_string.h".
3493 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
3494 * infrun.c (handle_inferior_event): Always initialize
3495 stepped_after_stopped_by_watchpoint. Add default and remove
3496 fallthrough in switch statement.
3497 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
3499 (hppa_remove_hw_watchpoint): Ditto.
3501 2003-03-29 Andrew Cagney <cagney@redhat.com>
3503 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
3506 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
3508 * arm-tdep.c (arm_push_arguments): Delete.
3509 (struct stack_item): New type.
3510 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
3511 (arm_store_struct_return): Delte.
3512 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
3513 arm_push_arguments or arm_store_struct_return.
3515 2003-03-28 Andrew Cagney <cagney@redhat.com>
3517 * Makefile.in (d10v-tdep.o): Update dependencies.
3518 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
3519 * d10v-tdep.c: Include "remote.h".
3520 (target_resume_hook): Delete extern declaration.
3521 (target_wait_loop_hook): Ditto.
3522 (tdisassemble_command): Eliminate assignment in "if" conditional.
3523 (d10v_ts2_register_sim_regno): Eliminate call to
3524 legacy_register_sim_regno.
3525 (d10v_ts3_register_sim_regno): Ditto.
3527 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
3529 * thread.c: Reindented.
3531 * linux-proc.c: Ditto.
3533 2003-03-28 Bob Rossi <bob_rossi@cox.net>
3535 * MAINTAINERS (write after approval): Add myself.
3537 2003-03-27 Theodore A. Roth <troth@openavr.org>
3539 * objc-exp.y: Add missing semi-colons.
3541 2003-03-27 Andrew Cagney <cagney@redhat.com>
3543 * regcache.c (write_sp): Delete function and references.
3544 * inferior.h (write_sp): Delete declaration.
3545 * valops.c (hand_function_call): Replace write_sp with
3547 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
3548 (sparc_pop_frame): Ditto.
3550 2003-03-27 Andrew Cagney <cagney@redhat.com>
3552 * NEWS: Mention removal of support for hppa*-*-bsd* and
3553 hppa*-*-osf* natives, and hppa*-*-pro* target.
3554 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
3555 * config/pa/xm-pa.h: Obsolete file.
3556 * config/pa/xm-hppab.h: Obsolete file.
3557 * config/pa/nm-hppab.h: Obsolete file.
3558 * config/pa/tm-hppab.h: Obsolete file.
3559 * config/pa/tm-hppao.h: Obsolete file.
3560 * config/pa/nm-hppao.h: Obsolete file.
3561 * config/pa/tm-pro.h: Obsolete file.
3562 * config/pa/hppaosf.mt: Obsolete file.
3563 * config/pa/hppaosf.mh: Obsolete file.
3564 * config/pa/hppapro.mt: Obsolete file.
3565 * config/pa/hppabsd.mt: Obsolete file.
3566 * config/pa/hppabsd.mh: Obsolete file.
3567 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
3568 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
3571 2003-03-27 Andrew Cagney <cagney@redhat.com>
3573 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
3574 push_arguments. Don't set push_return_address or write_sp.
3575 (d10v_push_dummy_call): Replace d10v_push_arguments.
3576 (d10v_push_return_address, d10v_write_sp): Delete function,
3577 handled by push_dummy_call.
3579 2003-03-26 Andrew Cagney <cagney@redhat.com>
3581 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
3582 (push_dummy_call): New pure multi-arch replacement with gdbarch,
3583 regcache and dummy_addr parameters.
3584 * gdbarch.h, gdbarch.c: Re-generate.
3585 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
3586 available; assume it will handle stack alignment and return
3587 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
3588 legacy_push_arguments.
3589 (legacy_push_arguments): Rename default_push_arguments.
3590 * value.h (legacy_push_arguments): Rename default_push_arguments.
3591 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
3592 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3593 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3594 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
3595 * config/i386/tm-symmetry.h: Update.
3596 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3597 * x86-64-tdep.c (x86_64_init_abi): Update.
3598 * v850-tdep.c (v850_gdbarch_init): Update.
3599 * sparc-tdep.c (sparc_gdbarch_init): Update.
3600 * sh-tdep.c (sh_gdbarch_init): Update.
3601 * s390-tdep.c (s390_gdbarch_init): Update.
3602 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3603 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3604 * mips-tdep.c (mips_gdbarch_init): Update.
3605 * mcore-tdep.c (mcore_gdbarch_init): Update.
3606 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3607 * ia64-tdep.c (ia64_gdbarch_init): Update.
3608 * i386-tdep.c (i386_gdbarch_init): Update.
3609 * hppa-tdep.c (hppa_gdbarch_init): Update.
3610 * h8300-tdep.c (h8300_gdbarch_init): Update.
3611 * frv-tdep.c (frv_gdbarch_init): Update.
3612 * d10v-tdep.c (d10v_gdbarch_init): Update.
3613 * cris-tdep.c (cris_gdbarch_init): Update.
3614 * avr-tdep.c (avr_gdbarch_init): Update.
3615 * arm-tdep.c (arm_gdbarch_init): Update.
3616 * arm-linux-tdep.c (arm_linux_init_abi): Update.
3617 * alpha-tdep.c (alpha_gdbarch_init): Update.
3619 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3621 * signals/signals.c (do_target_signal_to_host): Correct realtime
3624 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3626 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
3627 (struct sal_chain, map_catch_names): Remove.
3628 (catch_exception_command_1): Don't call
3629 handle_gnu_4_16_catch_command.
3631 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3633 From Mark Dettinger <dettinge@de.ibm.com>:
3634 * dwarf2cfi.c (read_2u): Increment pointer by two.
3636 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3638 * signals/signals.c: Fix typos in last change.
3640 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
3642 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
3643 not already defined. Use __SIGRTMIN if available.
3644 (target_signal_from_host): Remove SIGRTMIN block.
3645 (do_target_signal_to_host): Remove SIGRTMIN block; check that
3646 the signal is within the realtime range.
3648 2003-03-25 Adam Fedor <fedor@gnu.org>
3650 * Makefile.in (infrun.o): Add $(language_h)
3651 * infrun.c (handle_inferior_event): Use skip_language_trampoline
3652 for language specific trampolines.
3653 * language.h (struct language_defn): Add skip_trampoline.
3654 (skip_language_trampoline): Declare.
3655 * language.c (unk_lang_trampoline, skip_language_trampoline):
3657 (unknown_language_defn, auto_language_defn, local_language_defn):
3658 Add ukn_lang_trampoline.
3659 * ada-lang.c (ada_language_defn): Add NULL for language
3660 specific skip_trampoline.
3661 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
3662 scm-lang.c: Likewise.
3663 * objc-lang.c (objc_skip_trampoline): New function.
3664 (objc_language_defn): Add objc_skip_trampoline.
3666 2003-03-25 Andrew Cagney <cagney@redhat.com>
3668 * frame.c (get_prev_frame): Delay validating a frame's ID -
3669 non-NULL, didn't go backwards - until an attempt to unwind it to
3672 2003-03-25 Andrew Cagney <cagney@redhat.com>
3674 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
3675 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
3676 * gdbarch.h, gdbarch.c: Re-generate.
3677 * config/sparc/tm-sparc.h
3678 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
3679 * sparc-tdep.c (sparc_gdbarch_init): Set
3680 deprecated_extra_stack_alignment_needed.
3681 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
3682 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
3683 extra_stack_alignment_needed.
3684 * v850-tdep.c (v850_gdbarch_init): Ditto.
3685 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3686 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3687 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3688 * cris-tdep.c (cris_gdbarch_init): Ditto.
3689 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3690 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3692 2003-03-25 Andrew Cagney <cagney@redhat.com>
3694 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
3695 STORE_STRUCT_RETURN.
3696 * gdbarch.h, gdbarch.c: Regenerate.
3697 * d10v-tdep.c (d10v_store_struct_return): Delete function.
3698 (d10v_push_arguments): Set the struct return register.
3699 (d10v_gdbarch_init): Update.
3700 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3701 * x86-64-tdep.c (x86_64_init_abi): Update.
3702 * vax-tdep.c (vax_gdbarch_init): Update.
3703 * v850-tdep.c (v850_gdbarch_init): Update.
3704 * sparc-tdep.c (sparc_gdbarch_init): Update.
3705 * sh-tdep.c (sh_gdbarch_init): Update.
3706 * s390-tdep.c (s390_gdbarch_init): Update.
3707 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3708 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3709 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3710 * mips-tdep.c (mips_gdbarch_init): Update.
3711 * mcore-tdep.c (mcore_gdbarch_init): Update.
3712 * m68k-tdep.c (m68k_gdbarch_init): Update.
3713 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3714 * ia64-tdep.c (ia64_gdbarch_init): Update.
3715 * i386-tdep.c (i386_gdbarch_init): Update.
3716 * hppa-tdep.c (hppa_gdbarch_init): Update.
3717 * h8300-tdep.c (h8300_gdbarch_init): Update.
3718 * frv-tdep.c (frv_gdbarch_init): Update.
3719 * cris-tdep.c (cris_gdbarch_init): Update.
3720 * avr-tdep.c (avr_gdbarch_init): Update.
3721 * arm-tdep.c (arm_gdbarch_init): Update.
3722 * alpha-tdep.c (alpha_gdbarch_init): Update.
3724 2003-03-25 Andrew Cagney <cagney@redhat.com>
3726 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
3727 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
3728 CALL_DUMMY_STACK_ADJUST with a predicate variable.
3729 * gdbarch.h, gdbarch.c: Regenerate.
3730 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
3731 call_dummy_stack_adjust_p.
3732 * vax-tdep.c (vax_gdbarch_init): Ditto.
3733 * v850-tdep.c (v850_gdbarch_init): Ditto.
3734 * sh-tdep.c (sh_gdbarch_init): Ditto.
3735 * s390-tdep.c (s390_gdbarch_init): Ditto.
3736 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3737 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
3738 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3739 * mips-tdep.c (mips_gdbarch_init): Ditto.
3740 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3741 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
3742 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3743 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3744 * i386-tdep.c (i386_gdbarch_init): Ditto.
3745 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3746 * frv-tdep.c (frv_gdbarch_init): Ditto.
3747 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3748 * cris-tdep.c (cris_gdbarch_init): Ditto.
3749 * avr-tdep.c (avr_gdbarch_init): Ditto.
3750 * arm-tdep.c (arm_gdbarch_init): Ditto.
3751 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3752 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3753 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
3754 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
3755 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
3756 call_dummy_stack_adjust_p.
3757 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
3758 (CALL_DUMMY_STACK_ADJUST): Delete macro.
3759 * sparc-tdep.c (sparc32_push_arguments): Update.
3760 * valops.c (hand_function_call): Update.
3762 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
3764 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
3765 set_gdbarch_char_signed.
3767 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3770 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
3772 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
3774 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
3775 (_initialize_arm_tdep): Don't set tm_print_insn.
3777 2003-03-24 Adam Fedor <fedor@gnu.org>
3779 * Makefile.in (YYOBJ): Add objc-exp.tab.o
3780 * objc-lang.h: Add multiple inclusion protection.
3781 (start_msglist, add_msglist, end_msglist): Additional declarations.
3783 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
3785 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
3786 value was renamed to ARM_FLOAT_SOFT_FPA.
3788 2003-03-23 Andrew Cagney <cagney@redhat.com>
3790 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
3791 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
3792 * gdbarch.h, gdbarch.c: Regenerate.
3793 * valops.c (hand_function_call): Update.
3794 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3795 * frame.c (legacy_saved_regs_this_id): Update.
3796 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
3797 * dummy-frame.h: Update.
3798 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
3799 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
3800 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
3801 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
3802 * config/m68k/tm-sun3.h: Update.
3803 * blockframe.c (inside_main_func, frame_chain_valid): Update.
3804 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3805 * x86-64-tdep.c (x86_64_init_abi): Update.
3806 * vax-tdep.c (vax_gdbarch_init): Update.
3807 * v850-tdep.c (v850_gdbarch_init): Update.
3808 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
3809 * sh-tdep.c (sh_gdbarch_init): Update.
3810 * s390-tdep.c (s390_gdbarch_init): Update.
3811 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
3812 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
3813 (frame_get_saved_regs): Update.
3814 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3815 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3816 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3817 * mips-tdep.c (mips_gdbarch_init): Update.
3818 * mcore-tdep.c (mcore_gdbarch_init): Update.
3819 * m68k-tdep.c (m68k_gdbarch_init): Update.
3820 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3821 * ia64-tdep.c (ia64_gdbarch_init): Update.
3822 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
3823 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3824 (i386_interix_back_one_frame): Update.
3825 * hppa-tdep.c (hppa_gdbarch_init): Update.
3826 (hppa_init_extra_frame_info): Update.
3827 * h8300-tdep.c (h8300_gdbarch_init): Update.
3828 * frv-tdep.c (frv_gdbarch_init): Update.
3829 * cris-tdep.c (cris_gdbarch_init): Update.
3830 * avr-tdep.c (avr_gdbarch_init): Update.
3831 * arm-tdep.c (arm_gdbarch_init): Update.
3832 * alpha-tdep.c (alpha_gdbarch_init): Update.
3834 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3836 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
3837 (arm_get_fp_model): Declare.
3838 * arm-tdep.c (fp_model_strings): New string array.
3839 (arm_fp_model, current_fp_model): New variables.
3840 (arm_get_fp_model): New function.
3841 (arm_set_fp): New function.
3842 (set_fp_model_sfunc): New function.
3843 (show_fp_model): New function.
3844 (_initialize_arm_tdep): Add new command to set/show the FPU.
3845 (arm_extract_return_value): Use arm_get_fp_model.
3846 (arm_store_return_value): Likewise.
3847 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
3848 to initialize the floating-point data types.
3849 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
3852 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3854 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
3855 the current setting of each value.
3856 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
3857 new_set and new_show. Use add_setshow_cmd_full and
3858 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
3859 commands and add new version as subcommands of "set/show arm".
3861 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3863 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
3864 (set_arm_command, show_arm_command): New functions.
3865 (_initialize_arm_tdep): Add them.
3866 (num_disassembly_options): Renamed from num_flavor_options.
3867 (valid_disassembly_styles): Renamed from valid_flavors.
3868 (disassembly_style): Renamed from disassembly_flavor.
3869 (set_disassembly_style_sfunc): Renamed from
3870 set_disassembly_flavor_sfunc.
3871 (set_disassembly_style): Renamed from set_disassembly_flavor.
3872 (arm_othernames): Updated.
3873 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
3874 command. Add "set/show arm disassembly" commands. Deprecate
3875 "othernames" command.
3877 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3879 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
3880 (arm-tdep.o): Depend on elf_arm_h.
3882 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3884 * Makefile.in (coff_internal_h): Define.
3885 (arm-tdep.o): Update dependencies.
3887 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
3889 * arm-tdep.c (prologue_cache): Delete.
3890 (check_prologue_cache, save_prologue_cache): Delete.
3891 (arm_scan_prologue): Don't check or update the prologue_cache.
3892 (arm_gdb_arch_init): Don't initialize it.
3893 (_initialize_arm_tdep): Likewise.
3895 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
3897 * MAINTAINERS (tui): Maintainer of tui code.
3899 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
3901 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
3902 (i386-cygwin-tdep.o): Add dependencies.
3903 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
3904 * i386-cygwin-tdep.c: New file.
3905 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
3906 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
3908 2003-03-20 Andrew Cagney <cagney@redhat.com>
3910 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
3911 (handle_inferior_event): Remove code calling
3912 DYNAMIC_TRAMPOLINE_NEXTPC.
3914 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
3915 already has a full path.
3917 * main.c (gdb_main): Return 1.
3918 (captured_main): Call error to report an invalid interpreter.
3920 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
3921 * alpha-osf1-tdep.c: Include "gdb_string.h".
3923 2003-03-19 J. Brobecker <brobecker@gnat.com>
3925 Continuing work to convert the hppa targets to multiarch partial.
3927 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
3928 method, now that hppa_push_dummy_frame has a conformant prototype.
3929 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
3930 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
3931 for the switch to multiarch partial.
3933 2003-03-19 Kevin Buettner <kevinb@redhat.com>
3935 * mdebugread.c (parse_symbol): For stEnd, we're done counting
3936 when iss is issNull.
3938 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3940 * mips-tdep.c (mips_register_name): Fix fencepost error involving
3941 NUM_REGS bounds check.
3943 2003-03-18 Kevin Buettner <kevinb@redhat.com>
3945 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
3946 * mips-tdep.c (gdb_assert.h): Include.
3947 (mips_generic_reg_names, mips_processor_reg_names): Make static.
3948 (mips_register_name): Handle integer registers explicitly. Add
3950 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
3951 (mips_lsi33k_reg_names): Don't list integer registers; they're
3952 handled by mips_register_name() now.
3953 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
3954 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
3955 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
3956 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
3957 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
3959 2003-03-18 Andrew Cagney <cagney@redhat.com>
3961 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
3963 * gdbtypes.h (print_scalar_formatted): Update declaration.
3964 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
3966 2003-03-18 J. Brobecker <brobecker@gnat.com>
3968 * infrun.c (observer.h): Add #include.
3969 (normal_stop): Add call to observer_notify_normal_stop.
3970 * Makefile.in (infrun.o): Add dependency on observer.h.
3972 2003-03-18 J. Brobecker <brobecker@gnat.com>
3974 Continuing work to convert the hppa targets to multiarch partial.
3975 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
3976 parameter. Reformat comment.
3977 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
3978 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
3979 to match new profile.
3981 2003-03-18 J. Brobecker <brobecker@gnat.com>
3983 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
3984 appear to be working in any case.
3986 2003-03-18 J. Brobecker <brobecker@gnat.com>
3988 * observer.c (observer_test_first_observer): New static variable.
3989 (observer_test_second_observer): Likewise.
3990 (observer_test_third_observer): Likewise.
3991 (observer_test_first_notification_function): New static function.
3992 (observer_test_second_notification_function): Likewise.
3993 (observer_test_third_notification_function): Likewise.
3995 2003-03-17 J. Brobecker <brobecker@gnat.com>
3997 * hppa-tdep.c (gdb_assert.h): Add missing #include.
3998 * somsolib.c (gdb_assert.h): Likewise.
3999 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
4000 (somsolib.o): Likewise.
4002 2003-03-17 Andrew Cagney <cagney@redhat.com>
4004 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
4005 BFD. Simplify setting of di.endian.
4007 2003-03-17 Andrew Cagney <cagney@redhat.com>
4009 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
4010 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
4012 From Elena Zannoni <ezannoni@redhat.com>
4013 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
4014 vector and floating-point parameters.
4015 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
4017 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
4019 2003-03-17 Fernando Nasser <fnasser@redhat.com>
4021 * MAINTAINERS: Remove my name from several maintainership roles.
4023 2003-03-17 Andrew Cagney <cagney@redhat.com>
4025 Fix frame off-by-one bug.
4026 * frame-unwind.h (frame_this_id_ftype): Replace
4027 frame_unwind_id_ftype.
4028 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
4029 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
4030 with "prev_register".
4031 * frame-unwind.c (frame_unwind_find_by_pc): Return
4032 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
4034 * dummy-frame.c (cached_find_dummy_frame): Delete function.
4035 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
4036 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
4037 (dummy_frame_unwind): Update.
4038 * sentinel-frame.c (sentinel_frame_prev_register): Replace
4039 sentinel_frame_register_unwind.
4040 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
4041 (sentinel_frame_unwinder): Update.
4042 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4043 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
4044 * frame.c (create_sentinel_frame): Update. Initialize
4045 "prologue_cache" instead of "unwind_cache".
4046 (frame_register_unwind): Call this frame's prev_register with the
4047 next frame and this frame's prologue cache.
4048 (get_prev_frame): Simplify. Always call prev frame's this_id with
4049 this frame and prev frame's prologue cache. Document that this
4050 call is shifted one to the left when compared to the
4051 frame_register_unwind call.
4052 (legacy_saved_regs_prev_register): Replace
4053 frame_saved_regs_register_unwind.
4054 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
4055 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
4056 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
4057 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
4058 (d10v_frame_unwind): Update.
4059 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
4060 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
4061 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
4062 "saved_regs" with "this_saved_regs".
4064 2003-03-16 Andrew Cagney <cagney@redhat.com>
4066 * frame.c (frame_pop): Don't call target_store_registers. Fix
4067 problem reported by Mark Kettenis.
4069 2003-03-16 Mark Kettenis <kettenis@gnu.org>
4071 * i386-tdep.c (i386_register_type): Renamed from
4072 i386_register_virtual_type. Adjust function signature.
4073 (i386_gdbarch_init): Set register_type instead of
4074 deprecated_max_register_raw_size,
4075 deprecated_max_register_virtual_size and register_virtual_type.
4077 2003-03-14 Andrew Cagney <cagney@redhat.com>
4079 * frame.c (get_prev_frame): When a legacy frame, always call
4080 legacy_get_prev_frame. Simplify unwind code using assumption that
4081 the unwinder is new.
4082 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
4083 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
4084 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
4086 2003-03-14 Andrew Cagney <cagney@redhat.com>
4088 * frame.c (get_saved_register): Delete function.
4089 * frame.h (get_saved_register): Delete declaration.
4090 * xstormy16-tdep.c: Update comment.
4091 * regcache.h: Update comments.
4092 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
4093 get_saved_register and extract_address, use
4094 frame_read_unsigned_register.
4095 (sparc_frame_saved_pc): Ditto.
4096 (sparc_get_saved_register): Instead of get_saved_register, use
4098 (sparc_pop_frame): Ditto.
4099 * findvar.c: Update comments.
4100 (value_of_register): Call frame_register instead of
4102 (value_from_register): Ditto.
4103 * config/sparc/tm-sparc.h: Update comment.
4104 * breakpoint.c: Update comment.
4106 2003-03-14 Andrew Cagney <cagney@redhat.com>
4108 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
4110 * gdbarch.h, gdbarch.c: Re-generate.
4111 * frame.h: Update comments.
4112 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4113 * x86-64-tdep.c (x86_64_init_abi): Update.
4114 * sparc-tdep.c (sparc_gdbarch_init): Update.
4115 * sh-tdep.c (sh_gdbarch_init): Update.
4116 * mips-tdep.c (mips_gdbarch_init): Update.
4117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4118 * cris-tdep.c (cris_gdbarch_init): Update.
4119 * ia64-tdep.c (ia64_gdbarch_init): Update.
4120 * frame.c (frame_register): Update.
4121 (get_saved_register): Update.
4122 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
4124 2003-03-13 Andrew Cagney <cagney@redhat.com>
4126 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
4127 * gdbarch.h, gdbarch.c: Regenerate.
4128 * valops.c (hand_function_call): Update comment.
4129 * stack.c (return_command): Update comment.
4130 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
4131 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
4132 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4133 * x86-64-tdep.c (x86_64_init_abi): Update.
4134 * vax-tdep.c (vax_gdbarch_init): Update.
4135 * v850-tdep.c (v850_gdbarch_init): Update.
4136 * sparc-tdep.c (sparc_gdbarch_init): Update.
4137 * sh-tdep.c (sh_gdbarch_init): Update.
4138 * s390-tdep.c (s390_gdbarch_init): Update.
4139 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4140 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4141 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4142 * mips-tdep.c (mips_gdbarch_init): Update.
4143 * mcore-tdep.c (mcore_gdbarch_init): Update.
4144 * m68k-tdep.c (m68k_gdbarch_init): Update.
4145 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4146 * ia64-tdep.c (ia64_gdbarch_init): Update.
4147 * i386-tdep.c (i386_gdbarch_init): Update.
4148 * hppa-tdep.c (hppa_gdbarch_init): Update.
4149 * h8300-tdep.c (h8300_gdbarch_init): Update.
4150 * frv-tdep.c (frv_gdbarch_init): Update.
4151 * cris-tdep.c (cris_gdbarch_init): Update.
4152 * avr-tdep.c (avr_gdbarch_init): Update.
4153 * arm-tdep.c (arm_gdbarch_init): Update.
4154 * alpha-tdep.c (alpha_gdbarch_init): Update.
4156 2003-03-13 Andrew Cagney <cagney@redhat.com>
4158 * frame.c (legacy_frame_p): New function.
4159 (get_prev_frame): Use legacy_frame_p.
4160 * frame.h (legacy_frame_p): Declare.
4162 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4164 * MAINTAINERS (write after approval): Alphabetically
4167 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
4169 * MAINTAINERS (write after approval): Add myself.
4171 2003-03-12 Andrew Cagney <cagney@redhat.com>
4173 * frame.c (get_prev_frame): Rename the frame parameter to
4175 (get_next_frame, legacy_get_prev_frame): Ditto.
4177 2003-03-12 Andrew Cagney <cagney@redhat.com>
4179 * frame.c (get_current_frame): Check target_has_registers before
4180 checking target_has_stack.
4181 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
4182 instead of deprecated_selected_frame.
4183 * findvar.c (value_of_register): Pass "frame", not
4184 deprecated_selected_frame, to value_of_builtin_reg.
4186 2003-03-12 Andrew Cagney <cagney@redhat.com>
4188 * regcache.c (regcache_cooked_write_signed): New function.
4189 (regcache_cooked_write_unsigned): New function.
4190 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
4191 (regcache_cooked_read_signed): Fix regnum in range assertion.
4192 * regcache.h (regcache_cooked_write_signed): Declare.
4193 (regcache_cooked_write_unsigned): Declare.
4195 2003-03-12 Andrew Cagney <cagney@redhat.com>
4197 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4198 * gdbarch.h, gdbarch.c: Re-generate.
4199 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4200 * x86-64-tdep.h: Update.
4201 * x86-64-tdep.c (x86_64_init_abi): Update.
4202 * v850-tdep.c (v850_gdbarch_init): Update.
4203 * sparc-tdep.c (sparc_gdbarch_init): Update.
4204 * sh-tdep.c (sh_gdbarch_init): Update.
4205 * s390-tdep.c (s390_gdbarch_init): Update.
4206 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4207 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4208 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4209 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4210 * mips-tdep.c (mips_gdbarch_init): Update.
4211 * mcore-tdep.c (mcore_gdbarch_init): Update.
4212 * m68k-tdep.c (m68k_gdbarch_init): Update.
4213 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4214 * ia64-tdep.c (ia64_gdbarch_init): Update.
4215 * i386-tdep.c (i386_gdbarch_init): Update.
4216 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4217 * hppa-tdep.c (hppa_gdbarch_init): Update.
4218 * h8300-tdep.c (h8300_gdbarch_init): Update.
4219 * frv-tdep.c (frv_gdbarch_init): Update.
4220 * cris-tdep.c (cris_gdbarch_init): Update.
4221 * avr-tdep.c (avr_gdbarch_init): Update.
4222 * arm-tdep.c (arm_gdbarch_init): Update.
4223 * alpha-tdep.c (alpha_gdbarch_init): Update.
4224 * sh-tdep.c (sh_init_extra_frame_info): Update.
4225 (sh64_init_extra_frame_info): Update.
4226 * ns32knbsd-nat.c (frame_num_args): Update.
4227 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4228 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4229 (xstormy16_frame_chain_valid): Update.
4230 * vax-tdep.c (vax_saved_pc_after_call): Update.
4231 * v850-tdep.c (v850_frame_chain): Update.
4232 (v850_pop_frame): Update.
4233 (v850_init_extra_frame_info): Update.
4234 * sparc-tdep.c (setup_arbitrary_frame): Update.
4235 * ns32k-tdep.c (umax_frame_num_args): Update.
4236 * s390-tdep.c (s390_pop_frame_regular): Update.
4237 * mn10300-tdep.c (mn10300_frame_chain): Update.
4238 (mn10300_pop_frame_regular): Update.
4239 (mn10300_init_extra_frame_info): Update.
4240 * mips-tdep.c (mips_init_frame_pc_first): Update.
4241 (mips_frame_chain): Update.
4242 (mips_pop_frame): Update.
4243 * mcore-tdep.c (mcore_frame_chain): Update.
4244 (mcore_pop_frame): Update.
4245 (mcore_init_extra_frame_info): Update.
4246 * arch-utils.c (init_frame_pc_default): Update.
4247 * m68k-tdep.c (isi_frame_num_args): Update.
4248 (delta68_frame_num_args): Update.
4249 (news_frame_num_args): Update.
4250 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4251 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4252 (alpha_frame_chain): Update.
4253 (alpha_pop_frame): Update.
4254 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4255 (hppa_init_extra_frame_info): Update.
4256 (hppa_frame_chain): Update.
4257 (hppa_frame_chain_valid): Update.
4258 * cris-tdep.c (cris_init_extra_frame_info): Update.
4259 * avr-tdep.c (avr_init_extra_frame_info): Update.
4260 * arm-tdep.c (arm_frame_chain_valid): Update.
4261 (arm_init_extra_frame_info): Update.
4262 (arm_pop_frame): Update.
4263 * frame.c (frame_pc_unwind): Update.
4264 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4265 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4266 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4267 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4268 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4269 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4271 2003-03-12 Andrew Cagney <cagney@redhat.com>
4273 Eliminate the need for POP_FRAME.
4274 * frame.c (do_frame_unwind_register): New function.
4275 (frame_pop): When no POP_FRAME, pop the frame using register
4276 unwind and a scratch regcache.
4277 (frame_saved_regs_pop): Delete function.
4278 (trad_frame_unwinder): Update.
4279 * d10v-tdep.c (d10v_frame_pop): Delete function.
4280 (d10v_frame_unwind): Update.
4281 * sentinel-frame.c (sentinel_frame_pop): Delete function.
4282 (sentinel_frame_unwinder): Update.
4283 * dummy-frame.c (dummy_frame_pop): Delete function.
4284 (dummy_frame_unwind): Update.
4285 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
4286 (struct frame_unwind): Update.
4288 2003-03-11 Kevin Buettner <kevinb@redhat.com>
4290 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
4291 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
4292 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
4293 Do range checks on register number obtained from debugging info.
4294 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
4295 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
4296 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
4298 (do_fp_register_row): Fix typo which caused double type to be
4299 used when attempting to unpack a float.
4301 2003-03-11 J. Brobecker <brobecker@gnat.com>
4303 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
4305 2003-03-11 Andrew Cagney <cagney@redhat.com>
4307 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
4308 frame. Problem found by Corinna Vinschen.
4310 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
4312 * doublest.c (floatformat_from_length): Accept also
4313 the real size of 'long double' type.
4315 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
4317 From Klee Dienes <kdienes@apple.com>:
4318 * breakpoint.c (bpstat_copy): Copy the command lines as well
4319 as the old value, to match what is freed in bpstat_clear.
4321 2003-03-10 David Carlton <carlton@math.stanford.edu>
4323 * minsyms.c (add_minsym_to_hash_table): Replace
4324 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
4325 (compare_minimal_symbols, compact_minimal_symbols)
4326 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
4327 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
4328 of DEPRECATED_SYMBOL_MATCHES_NAME.
4329 (lookup_minimal_symbol_solib_trampoline): Ditto.
4331 2003-03-10 Andrew Cagney <cagney@redhat.com>
4333 * regcache.h (regcache_cooked_read_ftype): Define.
4334 (regcache_save, regcache_restore): Add a cooked_read parameter.
4335 * regcache.c (regcache_save, regcache_restore): Update.
4336 (do_cooked_read): New function.
4337 (regcache_cpy): Pass do_cooked_read to regcache_save and
4340 2003-03-10 Andrew Cagney <cagney@redhat.com>
4342 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
4343 * gdbarch.h, gdbarch.c: Re-generate.
4344 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4345 * x86-64-tdep.h: Update.
4346 * x86-64-tdep.c (x86_64_init_abi): Update.
4347 * v850-tdep.c (v850_gdbarch_init): Update.
4348 * sparc-tdep.c (sparc_gdbarch_init): Update.
4349 * sh-tdep.c (sh_gdbarch_init): Update.
4350 * s390-tdep.c (s390_gdbarch_init): Update.
4351 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4352 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4353 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4354 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4355 * mips-tdep.c (mips_gdbarch_init): Update.
4356 * mcore-tdep.c (mcore_gdbarch_init): Update.
4357 * m68k-tdep.c (m68k_gdbarch_init): Update.
4358 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4359 * ia64-tdep.c (ia64_gdbarch_init): Update.
4360 * i386-tdep.c (i386_gdbarch_init): Update.
4361 * i386-interix-tdep.c (i386_interix_init_abi): Update.
4362 * hppa-tdep.c (hppa_gdbarch_init): Update.
4363 * h8300-tdep.c (h8300_gdbarch_init): Update.
4364 * frv-tdep.c (frv_gdbarch_init): Update.
4365 * cris-tdep.c (cris_gdbarch_init): Update.
4366 * avr-tdep.c (avr_gdbarch_init): Update.
4367 * arm-tdep.c (arm_gdbarch_init): Update.
4368 * alpha-tdep.c (alpha_gdbarch_init): Update.
4369 * sh-tdep.c (sh_init_extra_frame_info): Update.
4370 (sh64_init_extra_frame_info): Update.
4371 * ns32knbsd-nat.c (frame_num_args): Update.
4372 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
4373 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
4374 (xstormy16_frame_chain_valid): Update.
4375 * vax-tdep.c (vax_saved_pc_after_call): Update.
4376 * v850-tdep.c (v850_frame_chain): Update.
4377 (v850_pop_frame): Update.
4378 (v850_init_extra_frame_info): Update.
4379 * sparc-tdep.c (setup_arbitrary_frame): Update.
4380 * ns32k-tdep.c (umax_frame_num_args): Update.
4381 * s390-tdep.c (s390_pop_frame_regular): Update.
4382 * mn10300-tdep.c (mn10300_frame_chain): Update.
4383 (mn10300_pop_frame_regular): Update.
4384 (mn10300_init_extra_frame_info): Update.
4385 * mips-tdep.c (mips_init_frame_pc_first): Update.
4386 (mips_frame_chain): Update.
4387 (mips_pop_frame): Update.
4388 * mcore-tdep.c (mcore_frame_chain): Update.
4389 (mcore_pop_frame): Update.
4390 (mcore_init_extra_frame_info): Update.
4391 * arch-utils.c (init_frame_pc_default): Update.
4392 * m68k-tdep.c (isi_frame_num_args): Update.
4393 (delta68_frame_num_args): Update.
4394 (news_frame_num_args): Update.
4395 * ia64-tdep.c (ia64_pop_frame_regular): Update.
4396 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
4397 (alpha_frame_chain): Update.
4398 (alpha_pop_frame): Update.
4399 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
4400 (hppa_init_extra_frame_info): Update.
4401 (hppa_frame_chain): Update.
4402 (hppa_frame_chain_valid): Update.
4403 * cris-tdep.c (cris_init_extra_frame_info): Update.
4404 * avr-tdep.c (avr_init_extra_frame_info): Update.
4405 * arm-tdep.c (arm_frame_chain_valid): Update.
4406 (arm_init_extra_frame_info): Update.
4407 (arm_pop_frame): Update.
4408 * frame.c (frame_pc_unwind): Update.
4409 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
4410 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4411 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
4412 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
4413 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
4414 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
4416 2003-03-10 Andrew Cagney <cagney@redhat.com>
4418 * gdbarch.sh (gdbarch_unwind_pc): New method.
4419 * gdbarch.h, gdbarch.c: Regenerate.
4420 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
4421 but use read_pc and FRAME_SAVED_PC as fall backs.
4422 (frame_saved_regs_pc_unwind): Delete function.
4423 (trad_frame_unwinder): Update.
4424 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
4425 (struct frame_unwind): Update.
4426 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
4427 (dummy_frame_unwind): Update.
4428 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
4429 (sentinel_frame_unwinder): Update.
4430 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
4431 (d10v_frame_unwind): Update.
4432 (d10v_unwind_pc): New function.
4433 (d10v_gdbarch_init): Set unwind_pc.
4435 2003-03-10 Andrew Cagney <cagney@redhat.com>
4437 * gdbarch.h: Re-generate.
4439 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
4441 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
4444 2003-03-08 Mark Kettenis <kettenis@gnu.org>
4446 * gdbarch.sh (save_dummy_frame_tos): Add comment.
4448 2003-03-08 Andrew Cagney <cagney@redhat.com>
4450 * cli-out.c: Update copyright.
4451 (cli_out_data): Define typedef. Use instead of ui_out_data.
4453 2003-03-08 Andrew Cagney <cagney@redhat.com>
4455 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
4458 2003-03-07 Andrew Cagney <cagney@redhat.com>
4460 * gdbarch.sh: Don't generate two macro definitions when an
4461 undefined macro taking no arguments.
4462 * gdbarch.h: Regenerate.
4464 2002-03-07 Michal Ludvig <mludvig@suse.cz>
4466 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
4467 (x86_64_unwind_dummy_id): New functions.
4468 (x86_64_init_abi): Register these two new functions.
4470 2003-03-07 Michal Ludvig <mludvig@suse.cz>
4472 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
4473 (x86_64_skip_prologue): Move prologue detection to
4475 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
4477 2003-03-05 Andrew Cagney <cagney@redhat.com>
4479 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
4480 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
4481 * frame.c (get_prev_frame): Restructure the frame ID unwind code
4482 to use unwind_dummy_id when a dummy frame.
4483 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
4485 * gdbarch.h, gdbarch.c: Regneerate.
4487 2003-03-05 Andrew Cagney <cagney@redhat.com>
4489 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
4490 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
4491 Do not use d10v_read_sp or d10v_read_fp when obtaining register
4494 2003-03-05 Andrew Cagney <cagney@redhat.com>
4496 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
4497 (struct d10v_unwind_cache): Delete field "frameless". Replace
4498 "next_addr" with "sp_offset". Add "r11_offset".
4499 (d10v_frame_unwind_cache): Update.
4500 (prologue_find_regs): Update. When "mv r11, sp", save the
4501 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
4502 RN was saved in r11_offset.
4504 2003-03-05 Andrew Cagney <cagney@redhat.com>
4506 * frame.c (deprecated_update_frame_pc_hack): Also update the the
4507 cached PC value in the next frame.
4509 2003-03-05 Andrew Cagney <cagney@redhat.com>
4511 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
4512 "id_unwind_cache" with "id".
4513 (frame_id_unwind): Delete declaration.
4514 * frame.c (frame_id_unwind): Delete function.
4515 (get_prev_frame): Call the frame id unwind method directly. Store
4516 the returned next frame's ID value in NEXT_FRAME. Note that there
4517 is a problem with the wrong unwind ID being called with the wrong
4520 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4522 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
4524 2003-03-05 James Ingham <jingham@apple.com>
4525 Daniel Jacobowitz <drow@mvista.com>
4527 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
4528 (auto_cp_abi): New variable.
4529 (current_cp_abi, num_cp_abis): Make static.
4530 (CP_ABI_MAX): Define.
4531 (cp_abis): Turn into an array.
4532 (value_virtual_fn_field): Fix formatting.
4533 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
4535 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
4536 (list_cp_abis, _initialize_cp_abi): New functions.
4537 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
4538 declarations for cp_abis, num_cp_abis, current_cp_abi, and
4539 switch_to_cp_abi. Update prototype for register_cp_abi.
4540 * Makefile.in (cp-abi.o): Update dependencies.
4541 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
4542 instead of switch_to_cp_abi.
4543 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
4545 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
4547 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
4549 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
4551 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
4552 * dwarf2loc.c: Include "regcache.h".
4553 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
4555 * Makefile.in (dwarf2loc.o): Update dependencies.
4557 2003-03-04 Theodore A. Roth <troth@openavr.org>
4559 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
4560 number of io registers reported by remote target is not a multiple of
4563 2003-03-04 David Carlton <carlton@math.stanford.edu>
4565 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
4566 (lookup_symbol_aux_psymtabs): Update call to
4567 lookup_partial_symbol.
4568 (lookup_transparent_type, find_main_psymtab)
4569 (make_symbol_overload_list): Ditto.
4571 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
4573 * MAINTAINERS (Write after approval): Update my email address.
4575 2003-03-03 Andrew Cagney <cagney@redhat.com>
4577 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
4578 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
4579 predicate. Replace MAX_REGISTER_RAW_SIZE.
4580 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
4581 MAX_REGISTER_VIRTUAL_SIZE.
4582 * regcache.c (legacy_max_register_raw_size): New function.
4583 (legacy_max_register_virtual_size): New function.
4584 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
4585 (MAX_REGISTER_RAW_SIZE): Define.
4586 (legacy_max_register_raw_size): Declare.
4587 (legacy_max_register_virtual_size): Declare.
4588 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4589 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
4590 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4591 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4592 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
4593 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
4594 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4595 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4596 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
4597 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4598 * vax-tdep.c (vax_gdbarch_init): Update.
4599 * v850-tdep.c (v850_gdbarch_init): Update.
4600 * sparc-tdep.c (sparc_gdbarch_init): Update.
4601 * sh-tdep.c (sh_gdbarch_init): Update.
4602 * s390-tdep.c (s390_gdbarch_init): Update.
4603 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4604 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4605 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4606 * mips-tdep.c (mips_gdbarch_init): Update.
4607 * mcore-tdep.c (mcore_gdbarch_init): Update.
4608 * m68k-tdep.c (m68k_gdbarch_init): Update.
4609 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4610 * ia64-tdep.c (ia64_gdbarch_init): Update.
4611 * i386-tdep.c (i386_gdbarch_init): Update.
4612 * hppa-tdep.c (hppa_gdbarch_init): Update.
4613 * h8300-tdep.c (h8300_gdbarch_init): Update.
4614 * frv-tdep.c (frv_gdbarch_init): Update.
4615 * cris-tdep.c (cris_gdbarch_init): Update.
4616 * avr-tdep.c (avr_gdbarch_init): Update.
4617 * arm-tdep.c (arm_gdbarch_init): Update.
4618 * alpha-tdep.c (alpha_gdbarch_init): Update.
4619 * d10v-tdep.c (d10v_gdbarch_init): Do not set
4620 max_register_raw_size or max_register_virtual_size.
4622 2003-03-03 David Carlton <carlton@math.stanford.edu>
4624 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
4625 SYMBOL_MATCHES_NAME, add comment.
4626 (SYMBOL_MATCHES_NATURAL_NAME): New.
4627 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
4628 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
4629 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
4630 * symtab.c (lookup_partial_symbol): Use
4631 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
4633 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
4634 SYMBOL_MATCHES_NAME.
4637 2003-03-03 David Carlton <carlton@math.stanford.edu>
4639 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
4640 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
4641 by regexp matching against SYMBOL_NATURAL_NAME.
4643 2003-03-03 David Carlton <carlton@math.stanford.edu>
4645 * linespec.c (find_method): Extract code into collect_methods.
4646 (collect_methods): New.
4648 2003-03-02 Mark Kettenis <kettenis@gnu.org>
4650 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
4653 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
4654 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4656 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
4658 * arch-utils.c (generic_register_byte): Fix to use the loop index
4659 and not regnum when summing the size of all registers up to regnum.
4661 2003-03-01 Andrew Cagney <cagney@redhat.com>
4663 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
4664 FRAME_INIT_SAVED_REGS.
4665 * gdbarch.h, gdbarch.c: Regenerate.
4666 * stack.c (frame_info): Update.
4667 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
4668 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
4669 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
4670 * ns32k-tdep.c (ns32k_pop_frame): Update.
4671 * mips-tdep.c (mips_pop_frame): Update.
4672 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
4673 * ia64-tdep.c (ia64_frame_chain): Update.
4674 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
4675 (ia64_frameless_function_invocation): Update.
4676 (ia64_init_extra_frame_info): Update.
4677 (ia64_pop_frame_regular): Update.
4678 * frame.h (struct frame_info): Update comment.
4679 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
4680 * frame.c (frame_saved_regs_register_unwind): Update.
4681 (frame_saved_regs_register_unwind): Update.
4682 (deprecated_generic_get_saved_register): Update.
4683 * cris-tdep.c: Update comment.
4684 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
4686 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
4687 * x86-64-tdep.c (x86_64_init_abi): Update.
4688 * vax-tdep.c (vax_gdbarch_init): Update.
4689 * v850-tdep.c (v850_gdbarch_init): Update.
4690 * sparc-tdep.c (sparc_gdbarch_init): Update.
4691 * sh-tdep.c (sh_gdbarch_init): Update.
4692 * s390-tdep.c (s390_gdbarch_init): Update.
4693 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
4694 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
4695 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4696 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
4697 * mips-tdep.c (mips_gdbarch_init): Update.
4698 * mcore-tdep.c (mcore_gdbarch_init): Update.
4699 * m68k-tdep.c (m68k_gdbarch_init): Update.
4700 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
4701 * ia64-tdep.c (ia64_gdbarch_init): Update.
4702 * i386-tdep.c (i386_gdbarch_init): Update.
4703 * frv-tdep.c (frv_gdbarch_init): Update.
4704 * avr-tdep.c (avr_gdbarch_init): Update.
4705 * arm-tdep.c (arm_gdbarch_init): Update.
4706 * alpha-tdep.c (alpha_gdbarch_init): Update.
4708 2003-03-01 Andrew Cagney <cagney@redhat.com>
4710 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
4711 option enum and switch. When no windows, set the interpreter to
4714 2003-03-01 Andrew Cagney <cagney@redhat.com>
4716 * main.c (captured_main): Replace magic option characters with an
4719 2003-03-01 Andrew Cagney <cagney@redhat.com>
4721 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
4722 INIT_EXTRA_FRAME_INFO.
4723 * gdbarch.h, gdbarch.c: Regenerate.
4724 * arm-tdep.c: Update comments.
4725 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
4726 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
4727 * frame.h, avr-tdep.c: Ditto.
4728 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
4729 (create_new_frame, legacy_get_prev_frame): Ditto.
4730 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4731 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
4732 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
4733 deprecated_init_extra_frame_info instead of init_extra_frame_info.
4734 * x86-64-tdep.c (x86_64_init_abi): Ditto.
4735 * v850-tdep.c (v850_gdbarch_init): Ditto.
4736 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
4737 * sh-tdep.c (sh_gdbarch_init): Ditto.
4738 * s390-tdep.c (s390_gdbarch_init): Ditto.
4739 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
4740 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4741 * mips-tdep.c (mips_gdbarch_init): Ditto.
4742 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4743 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4744 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4745 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
4746 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
4747 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4748 * frv-tdep.c (frv_gdbarch_init): Ditto.
4749 * cris-tdep.c (cris_gdbarch_init): Ditto.
4750 * avr-tdep.c (avr_gdbarch_init): Ditto.
4751 * arm-tdep.c (arm_gdbarch_init): Ditto.
4752 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
4753 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4755 2003-03-01 Andrew Cagney <cagney@redhat.com>
4757 * gdbarch.sh (register_type): New function with predicate.
4758 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
4759 * gdbarch.h, gdbarch.c: Re-generate.
4760 * arch-utils.c (generic_register_byte): Use generic_register_size.
4761 (generic_register_size): When available, use
4762 gdbarch_register_type.
4763 * regcache.c (init_regcache_descr): When available, initialize the
4764 register type array using gdbarch_register_type. If the
4765 architecture supplies gdbarch_register_type, do not use the legacy
4767 * d10v-tdep.c (d10v_register_type): Replace
4768 d10v_register_virtual_type.
4769 (d10v_gdbarch_init): Set register_type instead of
4770 register_virtual_type.
4772 2003-03-01 Andrew Cagney <cagney@redhat.com>
4774 * Makefile.in (ax-gdb.o): Update dependencies.
4775 * ax-gdb.c: Include "regcache.h".
4776 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
4777 * findvar.c (value_of_register): Ditto.
4778 * infcmd.c (default_print_registers_info): Ditto.
4780 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4782 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
4783 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
4785 2003-03-01 Mark Kettenis <kettenis@gnu.org>
4787 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
4790 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
4792 * Makefile.in (dwarf2loc.o): Update dependencies.
4793 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
4794 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
4795 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
4796 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
4797 (locexpr_tracepoint_var_ref): New function.
4798 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
4800 2003-02-28 Andrew Cagney <cagney@redhat.com>
4802 * regcache.c (register_size): New function.
4803 * regcache.h (register_size): Declare
4804 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
4805 max_register_size instead of MAX_REGISTER_RAW_SIZE.
4807 2003-02-28 David Carlton <carlton@math.stanford.edu>
4809 * linespec.c (decode_compound): Extract code into find_method.
4812 2003-02-28 J. Brobecker <brobecker@gnat.com>
4814 * Makefile.in: Add rules to build and link in observer.o.
4816 2003-02-27 J. Brobecker <brobecker@gnat.com>
4818 * observer.c: Minor comments edits.
4820 2003-02-27 J. Brobecker <brobecker@gnat.com>
4822 * observer.h, observer.c: New file.
4824 2003-02-27 Andrew Cagney <cagney@redhat.com>
4826 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
4828 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
4830 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
4831 (M6812_OP_STS_EXT): Likewise.
4832 (m6811_prologue): Use the above to recognize prologue.
4833 (m6812_prologue): Likewise.
4835 2003-02-27 David Carlton <carlton@math.stanford.edu>
4837 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
4839 (compare_psymbols): Ditto.
4840 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
4842 2003-02-27 Michael Snyder <msnyder@redhat.com>
4844 * f-lang.c (build_fortran_types): New function.
4845 (_initialize_f_language): Gdbarch-register built-in fortran types.
4846 * doublest.c (extract_floating): Fix warning text.
4848 2003-02-27 Andrew Cagney <cagney@redhat.com>
4850 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
4851 predicate. Replaces PUSH_DUMMY_FRAME.
4852 * gdbarch.h, gdbarch.c: Regnerate.
4853 * valops.c (hand_function_call): Update. Call
4854 generic_push_dummy_frame directly.
4855 * vax-tdep.c (vax_gdbarch_init): Update.
4856 * sparc-tdep.c (sparc_gdbarch_init): Update.
4857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
4858 * m68k-tdep.c (m68k_gdbarch_init): Update.
4859 * hppa-tdep.c (hppa_gdbarch_init): Update.
4860 * alpha-tdep.c (alpha_gdbarch_init): Update.
4861 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4862 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
4863 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
4864 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
4865 push_dummy_frame to generic_push_dummy_frame.
4866 * v850-tdep.c (v850_gdbarch_init): Ditto.
4867 * sh-tdep.c (sh_gdbarch_init): Ditto.
4868 * s390-tdep.c (s390_gdbarch_init): Ditto.
4869 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
4870 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
4871 * mips-tdep.c (mips_gdbarch_init): Ditto.
4872 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
4873 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
4874 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
4875 * i386-tdep.c (i386_gdbarch_init): Ditto.
4876 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
4877 * frv-tdep.c (frv_gdbarch_init): Ditto.
4878 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
4879 * cris-tdep.c (cris_gdbarch_init): Ditto.
4880 * avr-tdep.c (avr_gdbarch_init): Ditto.
4881 * arm-tdep.c (arm_gdbarch_init): Ditto.
4883 2003-02-26 Kevin Buettner <kevinb@redhat.com>
4885 * mips-tdep.c (show_mips_abi): New function.
4886 (_initialize_mips_tdep): Use show_mips_abi() to implement the
4887 command ``show mips abi''.
4889 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
4891 From Elena Zannoni <ezannoni@redhat.com>
4892 * dbxread.c (process_one_symbol): Only record line 0 if one or
4893 more sline entries have been seen for the function.
4895 2003-02-26 Michael Chastain <mec@shout.net>
4897 * configure: Regenerate with autoconf 000227.
4899 2003-02-26 Michael Chastain <mec@shout.net>
4902 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
4903 for old libc5/glibc.
4904 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
4906 2003-02-26 Kris Warkentin <kewarken@qnx.com>
4908 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
4909 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
4911 2003-02-26 Michael Chastain <mec@shout.net>
4913 * configure.in: New variable HAVE_UINTPTR_T.
4914 * configure, config.in: Regenerated.
4916 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
4919 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
4921 2003-02-25 Andrew Cagney <cagney@redhat.com>
4923 * frame.c (get_prev_frame): Add comment on check for
4924 inside_entry_func. Only check for inside_entry_file when not a
4925 dummy and not a sentinel. Check that the new frame is not inner
4928 2003-02-25 Andrew Cagney <cagney@redhat.com>
4930 * frame.c (frame_debug): New variable.
4931 (_initialize_frame): Add "set/show debug frame" command.
4932 (get_prev_frame): When frame_debug, print reason why unwind
4935 2003-02-25 Michael Chastain <mec@shout.net>
4937 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
4938 to avoid uintptr_t definition problems.
4940 2003-02-25 David Carlton <carlton@math.stanford.edu>
4942 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
4943 (SYMBOL_LINKAGE_NAME): Ditto.
4944 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
4945 SYMBOL_LINKAGE_NAME.
4946 (struct general_symbol_info): Expand comment.
4947 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
4948 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
4949 (SYMBOL_MATCHES_REGEXP): Ditto.
4950 * symtab.c (symbol_natural_name): New function.
4951 * objfiles.h: Replace all uses of SYMBOL_NAME by
4952 DEPRECATED_SYMBOL_NAME.
4953 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
4954 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
4955 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
4956 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
4957 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
4958 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
4959 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
4960 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
4961 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
4962 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
4964 * ada-exp.y: Update copyright.
4965 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
4966 * cp-valprint.c: Ditto.
4968 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
4970 * infptrace.c (detach): Do not flag error if ptrace detach fails
4971 and errno is set to ESRCH.
4973 2003-02-24 Andrew Cagney <cagney@redhat.com>
4975 * infptrace.c (udot_info): Change type of udot_off to long. Use
4976 paddr when printing udot_off's value.
4978 2003-02-24 David Carlton <carlton@math.stanford.edu>
4980 * symtab.c (make_symbol_overload_list): Only read in partial
4981 symtabs containing a matching partial symbol.
4983 2003-02-24 David Carlton <carlton@math.stanford.edu>
4985 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
4986 do the comparison, not strcmp.
4987 * symfile.c (compare_psymbols): Ditto.
4988 * defs.h: Declare strcmp_iw_ordered.
4989 * utils.c (strcmp_iw_ordered): New function.
4991 2003-02-24 Jim Blandy <jimb@redhat.com>
4993 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
4994 support, shared libs): Remove my name from here, to better reflect
4997 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4999 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
5000 (target_ops): Add to_have_continuable_watchpoint.
5001 * target.c (update_current_target): Add INHERIT line for
5002 to_have_continuable_watchpoint.
5003 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
5004 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
5005 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
5006 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
5008 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
5010 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
5013 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5015 * solib.c (solib_open): Call target defined search function after
5016 failing with solib-search-path.
5017 * solist.h (target_so_ops): Add find_and_open_solib function hook and
5018 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
5020 2003-02-24 Kris Warkentin <kewarken@qnx.com>
5022 * MAINTAINERS: Add myself to Write After section.
5024 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
5026 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
5028 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
5030 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
5031 (m68hc11_add_reggroups): New function.
5032 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
5033 (m68hc11_gdbarch_init): Install the reggroups.
5034 (_initialize_m68hc11_tdep): Initialize them.
5036 2003-02-21 James E Wilson <wilson@tuliptree.org>
5038 * MAINTAINERS: Update my email address.
5040 2003-02-21 David Carlton <carlton@math.stanford.edu>
5042 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
5044 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
5046 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
5047 * symtab.h: Add opaque declarations of struct axs_value and
5049 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
5050 (struct location_funcs): New type.
5051 (struct symbol): Add "loc" to aux_value.
5052 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
5053 * dwarf2read.c: Include "dwarf2expr.h".
5054 (dwarf2_symbol_mark_computed): New function.
5055 (read_func_scope): Use it.
5056 (var_decode_location): New function.
5057 (new_symbol): Use it.
5058 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
5060 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
5061 (dwarf2expr_h, dwarf2loc_h): New variables.
5062 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
5063 (dwarf2expr.o, dwarf2loc.o): New rules.
5064 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
5065 * buildsym.c (finish_block): Handle LOC_COMPUTED and
5067 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
5068 * m2-exp.y (yylex): Likewise.
5069 * printcmd.c (address_info, print_frame_args): Likewise.
5070 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
5071 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
5072 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
5073 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
5074 * symtab.c (lookup_block_symbol): Likewise.
5076 2003-02-20 Adam Fedor <fedor@gnu.org>
5078 * symtab.h: Remove objc_specific struct
5079 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
5080 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
5081 Have language_objc use cplus_specific struct.
5083 2003-02-20 Tom Tromey <tromey@redhat.com>
5085 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
5086 TYPE_NAME, when printing a String value. PR java/1075.
5088 2003-02-20 Adam Fedor <fedor@gnu.org>
5090 * objc-lang.h (find_methods): Remove declaration.
5091 * objc-lang.c (find_methods): Make static.
5093 2003-02-20 Christopher Faylor <cgf@redhat.com>
5095 * win32-nat.c (get_image_name): Check return value from
5097 (child_xfer_memory): Ditto.
5099 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
5101 * configure.in (TARGET_SYSTEM_ROOT): Set default to
5102 ${exec_prefix}/${target_alias}/sys-root. Match explicit
5103 '${exec_prefix}' (in addition to the expansion thereof) as
5105 * configure: Rebuilt.
5107 2003-02-20 David Carlton <carlton@math.stanford.edu>
5109 * symtab.c (search_symbols): Revert the search_symbols part of my
5110 2002-12-23 patch. Add comment.
5112 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
5114 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
5115 * dbxread.c (elfstab_build_psymtabs): Don't call
5116 install_minimal_symbols.
5117 (stabsect_build_psymtabs): Likewise.
5118 * elfread.c (elf_symfile_read): Call install_minimal_symbols
5120 * somread.c (som_symfile_read): Call install_minimal_symbols
5121 and do_cleanups earlier.
5122 * nlmread.c (nlm_symfile_read): Likewise.
5123 * mdebugread.c (elfmdebug_build_psymtabs): Call
5124 install_minimal_symbols and make appropriate cleanups.
5126 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5128 * solib.c (reload_shared_libraries): New function.
5129 (_initialize_solib): Add callbacks for ``set solib-search-path''
5130 and ``set solib-absolute-prefix''.
5132 2003-02-20 David Carlton <carlton@math.stanford.edu>
5134 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
5136 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
5137 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
5138 * ada-typeprint.c (ada_typedef_print): Ditto.
5139 * ax-gdb.c (gen_var_ref): Ditto.
5140 * breakpoint.c (print_one_breakpoint): Ditto.
5141 * buildsym.c (finish_block): Ditto.
5142 * c-valprint.c (c_val_print): Ditto.
5143 * expprint.c (print_subexp): Ditto.
5144 * findvar.c (locate_var_value): Ditto.
5145 * infcmd.c (jump_command): Ditto.
5146 * linespec.c (decode_line_2, decode_compound): Ditto.
5147 * maint.c (maintenance_translate_address): Ditto.
5148 * objc-lang.c (compare_selectors, compare_classes): Ditto.
5149 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
5151 * p-valprint.c (pascal_val_print): Ditto.
5152 * stabsread.c (define_symbol): Ditto.
5153 * stack.c (print_frame, frame_info, print_block_frame_locals)
5154 (print_frame_arg_vars, return_command): Ditto.
5155 * symfile.c (compare_symbols, compare_psymbols): Ditto.
5156 * symmisc.c (print_symbol): Ditto.
5157 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
5158 (compare_search_syms, print_symbol_info, print_msymbol_info)
5159 (rbreak_command): Ditto.
5160 * tracepoint.c (tracepoints_info): Ditto.
5161 * typeprint.c (typedef_print): Ditto.
5162 * valops.c (value_of_variable, hand_function_call): Ditto.
5163 * cli/cli-cmds.c (edit_command, list_command): Ditto.
5164 * ada-typeprint.c: Update Copyright.
5165 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
5166 * tracepoint.c, cli/cli-cmds.c: Ditto.
5168 2003-02-20 Kevin Buettner <kevinb@redhat.com>
5170 * frame.c (generic_unwind_get_saved_register): Make non-static.
5171 * frame.h (generic_unwind_get_saved_register): Declare.
5172 * mips-tdep.c (read_next_frame_reg): Fetch register from
5173 current regcache when frame is NULL.
5174 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
5176 (mips_get_saved_register): Call generic_unwind_get_saved_register()
5177 instead of frame_register_unwind().
5179 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5181 * remote-sim.c (gdbsim_insert_breakpoint)
5182 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
5185 2003-02-20 Andrew Cagney <ac131313@redhat.com>
5187 * remote.c (_initialize_remote): Add commands "set/show remote
5188 hardware-watchpoint-limit" and "set/show remote
5189 hardware-breakpoint-limit".
5190 (remote_hw_watchpoint_limit): Initialize to -1.
5191 (remote_hw_breakpoint_limit): Ditto.
5192 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
5194 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
5196 * coff-pe-read.c: New file - support reading of minimal symbols from a
5197 portable executable using the export table.
5198 * coff-pe-read.h: New file.
5199 * coffread.c: Include coff-pe-read.h.
5200 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
5201 debugging symbols found.
5202 * Makefile.in (SFILES): Add coff-pe-read.o.
5203 (coff_pe_read_h): Define.
5204 (COMMON_OBS): Add coff-pe-read.o.
5205 (coffread.o): Add coff_pe_read_h dependency.
5206 (coff-pe-read.o): New target.
5208 2003-02-19 David Carlton <carlton@math.stanford.edu>
5210 * Makefile.in (SFILES): Add block.c.
5212 (COMMON_OBS): Add block.o.
5214 (x86-64-tdep.o): Add $(block_h).
5215 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
5216 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
5217 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
5218 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
5219 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
5220 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
5221 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
5222 * value.h: Add opaque declaration for struct block.
5223 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
5224 * ada-lang.h: Ditto.
5225 * x86-64-tdep.c: #include "block.h"
5226 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
5227 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
5228 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
5229 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
5230 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
5231 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
5232 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
5233 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
5234 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
5235 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
5236 * symtab.c (block_function): Ditto.
5237 (contained_in): Ditto.
5238 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
5239 block.h. Add opaque declaration for struct block.
5240 * symtab.h: Move block_function and contained_in declarations to
5241 block.h. Add opaque declarations for struct block, struct
5243 (struct block): Move to block.h.
5244 (struct blockvector): Ditto.
5245 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
5246 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
5247 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
5248 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
5249 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
5251 * block.c: New file.
5252 * block.h: New file.
5254 2003-02-19 Theodore A. Roth <troth@openavr.org>
5256 * avr-tdep.c (avr_extract_return_value): Remove function.
5257 (avr_store_return_value): Remove function.
5258 (avr_extract_struct_value_address): Remove function.
5259 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
5261 2003-02-19 Andrew Cagney <ac131313@redhat.com>
5263 * rs6000-tdep.c: Include "gdb_assert.h".
5264 (registers_e500): Add "acc" and "spefscr".
5265 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
5266 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
5267 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
5269 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
5271 2003-02-18 Keith Seitz <keiths@redhat.com>
5273 * Makefile.in: Add gdbtk-interps.c.
5275 2003-02-18 Kevin Buettner <kevinb@redhat.com>
5277 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
5278 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
5280 2003-02-18 Andrew Cagney <cagney@redhat.com>
5282 * symtab.h (struct objfile): Add opaque declaration.
5284 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
5286 From Jim Ingham <jingham@apple.com>:
5287 * dbxread.c (process_one_symbol): Use last_function_start rather
5288 than function_start_offset to find the real beginning of the
5289 current function. The latter is just the text section offset on
5290 some systems, the former is always the real function start.
5292 2003-02-17 Andrew Cagney <cagney@redhat.com>
5294 * configure.in: Revert ${target} != ${host}.
5296 2003-02-17 Andrew Cagney <ac131313@redhat.com>
5298 * configure.in (Makefile): Use the test ${target} != ${host},
5299 instead of the absence of the "nm.h" file, to determine of the
5300 configuration non-native.
5301 * configure: Regenerate.
5303 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
5305 From Brian Ford <ford@vss.fsi.com>
5307 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
5308 conditionalize tui_active test.
5309 (lookup_cmd_1): Ditto.
5311 2003-02-14 Mark Kettenis <kettenis@gnu.org>
5313 * configure.in: Add check for _etext.
5314 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
5316 * config.in, configure: regenerated.
5318 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
5320 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
5322 2003-02-14 Andrew Cagney <ac131313@redhat.com>
5324 * main.c (tui_version): Delete variable.
5325 (captured_main): When --tui, set interpreter_p to "tui" instead of
5326 enabling tui_version.
5327 * printcmd.c (display_command) [TUI]: Test tui_active instead of
5329 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
5330 * cli/cli-cmds.c (disassemble_command): Ditto.
5331 * defs.h (tui_version): Delete declaration.
5332 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
5333 (tui-interp.o): Add rules.
5334 (SUBDIR_TUI_OBS): Add "tui-interp.o".
5336 2003-02-14 Christopher Faylor <cgf@redhat.com>
5338 * win32-nat.c (register_loaded_dll): Correctly set address range for
5341 2003-02-12 Jason Molenda (jmolenda@apple.com)
5343 * symmisc.c (print_objfile_statistics): Include information about
5344 the number of psymtabs and symtabs in each object file.
5346 2003-02-13 Keith R Seitz <keiths@redhat.com>
5348 * main.h (struct captured_main_args): Add interpreter_p.
5349 * main.c (captured_main): Initialize interpreter_p from context.
5350 * gdb.c (main): Set interpreter_p argument.
5351 * Makefile.in (gdb.o): Add dependency for interps.h.
5353 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5355 * event-top.c (cli_command_loop): Delete declaration.
5356 (_initialize_event_loop): Delete function setting event_loop_hook.
5357 * event-top.h (cli_command_loop): Declare. Update copyright.
5358 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
5359 * interps.c (current_interp_command_loop): When event_loop_p, call
5362 2003-02-12 Andrew Cagney <ac131313@redhat.com>
5364 * interps.h (interp_command_loop_ftype): Change return type to
5367 2003-02-12 Michal Ludvig <mludvig@suse.cz>
5369 * x86-64-tdep.c (x86_64_extract_return_value)
5370 (x86_64_store_return_value): Use regcache instead of regbuf.
5371 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
5372 * x86-64-linux-nat.c (fill_gregset): Use regcache.
5374 2003-02-11 Andrew Cagney <ac131313@redhat.com>
5376 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
5377 * aclocal.m4: Regenerate.
5378 * configure: Regenerate.
5380 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
5381 TCL_LD_SEARCH_FLAGS.
5383 2003-02-10 Michal Ludvig <mludvig@suse.cz>
5385 * dwarf2cfi.c: Reindented.
5387 2003-02-09 Andrew Cagney <ac131313@redhat.com>
5389 * interps.c (clear_interpreter_hooks): Convert function definition
5392 2003-02-07 David Carlton <carlton@math.stanford.edu>
5394 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
5396 2003-02-07 Kevin Buettner <kevinb@redhat.com>
5398 * gdbtypes.h (struct main_type): Move ``length'' field from here...
5399 (struct type): ...to here.
5400 (TYPE_LENGTH): Adjust to reflect different location of ``length''
5402 * gdbtypes.c (make_qualified_type): Set length on newly created type.
5403 (replace_type): Set length on all type variants for a given type.
5405 2003-02-07 Andrew Cagney <ac131313@redhat.com>
5407 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
5409 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
5411 2003-02-06 Andrew Cagney <ac131313@redhat.com>
5413 * Makefile.in (symm-nat.o): Update dependencies.
5414 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
5415 (lynx-nat.o, ia64-linux-nat.): Ditto.
5416 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
5417 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
5418 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
5420 * Makefile.in (inflow_h): Define.
5421 (procfs.o, inflow.o, procfs.o): Update dependencies.
5422 * inftarg.c (child_stop): Delete extern declaration of
5423 inferior_process_group. Include "inflow.h".
5424 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
5425 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
5426 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
5427 (our_process_group, inferior_process_group): Extern declarations.
5429 * procfs.c: Include "gdb_assert.h".
5431 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
5432 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
5433 * jv-typeprint.c (java_type_print_base): Ditto.
5434 * typeprint.c (typedef_print): Eliminate STREQ.
5435 * cli/cli-script.c (define_command, define_command): Ditto.
5436 * main.c (captured_main): Ditto.
5437 * values.c (lookup_internalvar): Ditto.
5438 * utils.c (safe_strerror, parse_escape): Eliminate assignment
5439 within `if' conditional.
5440 * linespec.c (decode_line_2): Ditto.
5441 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
5442 (bfd_openw_with_cleanup): Ditto.
5444 2003-02-07 Mark Kettenis <kettenis@gnu.org>
5446 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
5447 legacy_extract_return_value and store_return_value to
5448 legacy_return_value.
5450 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
5452 * win32-nat.c (get_relocated_section_addrs): New function. Find
5453 section load addresses for symbol handling in relocated DLLs.
5454 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
5456 2003-02-05 Fred Fish <fnf@intrinsity.com>
5458 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
5460 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
5462 (angel_RDI_info): Ditto.
5463 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
5465 (threads_continue_all_with_signals): Ditto.
5467 2003-02-05 Jim Ingham <jingham@apple.com>
5468 Keith Seitz <keiths@redhat.com>
5469 Elena Zannoni <ezannoni@redhat.com>
5470 Andrew Cagney <ac131313@redhat.com>
5472 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
5473 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
5474 (SUBDIR_MI_OBS): Add "mi-interp.o".
5475 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
5476 (SFILES): Add "interps.c".
5477 (COMMON_OBS): Add "interps.o".
5478 (interps_h, mi_main_h): Define.
5479 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
5480 (mi-main.o, main.o, event-top.o): Update dependencies.
5481 * cli/cli-interp.c: New file.
5482 * interps.h, interps.c: New files.
5483 * top.c: (gdb_init): Don't install the default interpreter, handed
5485 * main.c: Include "interps.h".
5486 (interpreter_p): Note that it should malloc'ed.
5487 (captured_command_loop): Call current_interp_command_loop.
5488 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
5489 xfree and xstrdup when updating interpreter_p. Install the
5490 default interpreter. Add hack to stop mi1's copyright notice
5492 * event-top.h (gdb_setup_readline): Declare.
5493 (gdb_disable_readline): Declare.
5494 * event-top.c: Include "interps.h".
5495 (display_gdb_prompt): Call current_interp_display_prompt_p.
5496 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
5497 gdb_stdlog, and gdb_stdtarg.
5498 (_initialize_event_loop): Don't call gdb_setup_readline.
5499 * cli-out.c (cli_out_set_stream): New function.
5500 * cli-out.h (cli_out_set_stream): Declare.
5502 2003-02-06 Mark Kettenis <kettenis@gnu.org>
5504 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
5505 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
5506 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
5507 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
5508 config/i386/i386v42mp.mt: Removed.
5510 2003-02-05 Mark Kettenis <kettenis@gnu.org>
5512 * configure.tgt (*-*-solaris*): Set gdb_osabi to
5515 2003-02-05 Michael Chastain <mec@shout.net>
5517 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
5518 2.12.1 and earlier versions.
5520 2003-02-05 Andrew Cagney <ac131313@redhat.com>
5522 Remove orphaned hosts, targets and files.
5523 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
5524 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
5525 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
5526 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
5527 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
5528 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
5529 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
5530 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
5531 * config/sparc/tm-sp64sim.h: Delete.
5532 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
5534 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
5535 mips*-dec-mach3* targets.
5537 2003-02-04 Michael Chastain <mec@shout.net>
5539 * NEWS: Fix typo: sepcifying -> specifying.
5541 2003-02-04 Michael Chastain <mec@shout.net>
5543 * dwarfread.c: Add documentation on the state of dwarf-1,
5544 looking towards obsoletion.
5546 2003-02-03 Michael Chastain <mec@shout.net>
5548 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
5549 gdb/testsuite/gdb.c++/pr-1023.exp.
5551 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5553 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
5554 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
5556 * utils.c (init_page_info): Delete reference to MPW in comments.
5557 * main.c (captured_main): Delete #ifdef MPW.
5559 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5561 * NEWS: Note that the m32r-*-elf* is obsolete.
5562 * monitor.c (monitor_expect): Obsolete reference to m32r.
5563 * configure.tgt: Mark m32r-*-elf* as obsolete.
5564 * MAINTAINERS: Mark m32k as obsolete.
5565 * m32r-rom.c: Obsolete file.
5566 * config/m32r/m32r.mt: Obsolete file.
5567 * config/m32r/tm-m32r.h: Obsolete file.
5568 * m32r-stub.c: Obsolete file.
5569 * m32r-tdep.c: Obsolete file.
5571 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5573 * NEWS: Mention that the z8k-zilog-none is obsolete.
5574 * MAINTAINERS: Mark z8k as obsolete.
5575 * configure.tgt: Obsolete the z8k-*-coff* target.
5576 * config/z8k/z8k.mt: Obsolete file.
5577 * config/z8k/tm-z8k.h: Obsolete file.
5578 * z8k-tdep.c: Obsolete file.
5580 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5582 * NEWS: Mention that the mn10200-elf is obsolete.
5583 * configure.tgt: Obsolete mn10200-*-* target.
5584 * breakpoint.c (update_breakpoints_after_exec): Update comment to
5585 mention that the mn10200 is obsolete.
5586 * breakpoint.h: Ditto.
5587 * MAINTAINERS: Mark the mn10200-elf as obsolete.
5588 * config/mn10200/mn10200.mt: Obsolete file.
5589 * config/mn10200/tm-mn10200.h: Obsolete file.
5590 * mn10200-tdep.c: Obsolete file.
5592 2003-02-04 Andrew Cagney <ac131313@redhat.com>
5594 * MAINTAINERS: Mark h8500 as obsolete.
5595 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
5596 * findvar.c (value_from_register): Ditto.
5597 * h8500-tdep.c: Mark file as obsolete.
5598 * config/h8500/h8500.mt: Ditto.
5599 * config/h8500/tm-h8500.h: Ditto.
5600 * NEWS: Mention that h8500 is obsolete.
5602 2003-02-04 David Carlton <carlton@math.stanford.edu>
5604 * objfiles.c (allocate_objfile): Always set name. Add comment at
5606 * jv-lang.c (get_dynamics_objfile): Add comment.
5608 2003-02-04 David Carlton <carlton@math.stanford.edu>
5610 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
5611 * printcmd.c (build_address_symbolic): Replace uses of
5612 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
5613 SYMBOL_NAME, and asm_demangle.
5616 2003-02-04 David Carlton <carlton@math.stanford.edu>
5618 * linespec.c (decode_compound): Extract code into
5620 (lookup_prefix_sym): New function.
5622 2003-02-04 David Carlton <carlton@math.stanford.edu>
5624 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
5625 FLOAT_COERCION_BADNESS.
5626 * gdbtypes.c (rank_one_type): Replace all uses of
5627 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
5629 2003-02-04 Jim Blandy <jimb@redhat.com>
5631 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
5632 section, let dwarf_macinfo_section point to it, not
5635 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5637 Pointed out by Anton Blanchard <anton@samba.org>.
5638 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
5639 (ppc_linux_at_sigtramp_return_path): Use it.
5641 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
5643 * defs.h (streq): Add prototype.
5644 * utils.c (streq): New function.
5646 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
5647 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
5648 * mdebugread.c (new_symbol): Likewise.
5649 * stabsread.c (define_symbol): Likewise.
5650 * coffread.c (process_coff_symbol): Likewise.
5651 * dwarfread.c (new_symbol): Likewise.
5653 * minsyms.c (prim_record_minimal_symbol_and_info): Use
5654 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
5656 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
5657 SYMBOL_INIT_DEMANGLED_NAME.
5658 * objfiles.c: Include "hashtab.h".
5659 (allocate_objfile): Call htab_set_functions_ex for the
5660 demangled_names_hash.
5661 (free_objfile): Call htab_delete for the demangled_names_hash.
5662 * objfiles.h (struct htab): Add declaration.
5663 (struct objfile): Add demangled_names_hash.
5664 * symfile.c: Include "hashtab.h".
5665 (reread_symbols): Call htab_delete for the demangled_names_hash.
5666 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
5667 SYMBOL_NAME in the bcache.
5668 * symtab.c: Include "hashtab.h". Update comments.
5669 (create_demangled_names_hash, symbol_set_names): New functions.
5670 (symbol_find_demangled_name): New function, broken out from
5671 symbol_init_demangled_names.
5672 (symbol_init_demangled_names): Use it.
5673 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
5674 (SYMBOL_SET_NAMES): New macro.
5675 (symbol_set_names): Add prototype.
5677 2003-02-03 Jim Blandy <jimb@redhat.com>
5679 Use a single, consistent representation for an empty minimal
5680 symbol table in an objfile.
5681 * objfiles.c (terminate_minimal_symbol_table): New function.
5682 (allocate_objfile): Call it.
5683 * objfiles.h (terminate_minimal_symbol_table): New declaration.
5684 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
5686 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
5687 objfile has minimal symbols, compare minimal_symbol_count to zero,
5688 instead of comparing msymbols with NULL.
5689 * objfiles.c (have_minimal_symbols): Same.
5690 * solib-sunos.c (solib_add_common_symbols): Call
5691 terminate_minimal_symbol_table.
5692 * symfile.c (reread_symbols): Same.
5694 2003-02-03 Kevin Buettner <kevinb@redhat.com>
5696 * s390-tdep.c (s390_address_class_type_flags)
5697 (s390_address_class_type_flags_to_name)
5698 (s390_address_class_name_to_type_flags): New functions.
5699 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
5700 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
5702 2003-02-03 Michael Snyder <msnyder@redhat.com>
5704 * arm-tdep.c: Fix spell-o in comment.
5706 2003-02-03 Michal Ludvig <mludvig@suse.cz>
5708 * dwarf2cfi.c (pointer_encoding): Added new parameter.
5709 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
5710 error messages to contain BFD filename.
5712 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
5714 Fix PR gdb/742 gdb/743 gdb/877
5715 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
5716 (do_mixed_source_and_assembly): Use
5717 make_cleanup_ui_out_tuple_begin_end and
5718 make_cleanup_ui_out_tuple_begin_end.
5719 (do_mixed_source_and_assembly): Ditto.
5720 * thread.c (do_captured_list_thread_ids): Ditto.
5721 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
5722 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
5723 ui_out_tuple_end): Delete prototypes.
5724 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
5725 ui_out_list_end, ui_out_tuple_end): Delete.
5727 From Kevin Buettner <kevinb@redhat.com>:
5728 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
5729 * ui-out.c (make_cleanup_ui_out_table_begin_end)
5730 (do_cleanup_table_end): New functions.
5731 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
5732 Use cleanups to invoke_ui_out_tuple_end().
5733 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
5734 * cli/cli-setshow.c (cmd_show_list): Use
5735 make_cleanup_ui_out_tuple_begin_end.
5737 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5739 * frame.c (frame_unwind_register): New function.
5740 (frame_unwind_unsigned_register): Use.
5741 (frame_unwind_signed_register): Use.
5742 (frame_read_register): New function.
5743 * frame.h (frame_unwind_register): Declare.
5744 (frame_read_register): Declare.
5746 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
5747 and frame_unwind_register instead of read_memory, write_register
5748 and deprecated_write_register_bytes.
5750 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5752 * frame.h: Note that namelen can be negative.
5753 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
5756 * NEWS: Mention that the d10v's `regs' command is deprecated.
5757 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
5758 (d10v_print_registers_info): New function.
5759 (show_regs): Call d10v_print_registers_info.
5760 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
5762 2003-02-02 Mark Kettenis <kettenis@gnu.org>
5764 * stack.c (print_frame_info): Restore call to annotate_frame_begin
5765 lost in the previous patch.
5767 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5769 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
5770 * stack.c (print_frame_info_base): Output complete FRAME tuple
5771 for synthesized frames.
5773 2003-02-02 Andrew Cagney <ac131313@redhat.com>
5775 * mips-nat.c (zerobuf): Delete.
5776 (fetch_inferior_registers): Alloc local zerobuf.
5777 (fetch_core_registers): Alloc local zerobuf.
5778 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
5779 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
5780 * thread-db.c (thread_db_store_registers): Ditto.
5781 * sh-tdep.c (sh_do_register): Ditto.
5782 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
5783 * remote-sim.c (gdbsim_store_register): Ditto.
5784 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
5785 * remote-e7000.c (fetch_regs_from_dump): Ditto.
5786 * monitor.c (monitor_supply_register): Ditto.
5787 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
5788 * mips-nat.c (fetch_inferior_registers): Ditto.
5789 * m68klinux-nat.c (fetch_register): Ditto.
5790 * lynx-nat.c (fetch_inferior_registers): Ditto.
5791 (fetch_inferior_registers): Ditto.
5792 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
5793 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
5794 (hpux_thread_store_registers): Ditto.
5795 * hppah-nat.c (fetch_register): Ditto.
5796 * hppab-nat.c (fetch_register): Ditto.
5797 * hppa-tdep.c (pa_register_look_aside): Ditto.
5798 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
5799 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
5801 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5803 * gdbarch.sh: Explictly specify all method levels. When a
5804 variable with an empty level, provide a non-multi-arch default.
5805 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
5806 * gdbarch.h: Re-generate.
5807 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
5808 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
5810 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5812 * defs.h (host_pointer_to_address): Delete declaration.
5813 (address_to_host_pointer): Delete declaration.
5814 * utils.c (host_pointer_to_address): Delete function.
5815 (address_to_host_pointer): Delete function.
5816 * procfs.c (procfs_address_to_host_pointer): New function.
5817 * procfs.c (proc_set_watchpoint): Use.
5818 (procfs_can_use_hw_breakpoint): Update comments.
5819 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
5820 (som_solib_add): Use.
5821 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
5822 * hppa-tdep.c (unwind_command): Use.
5824 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5826 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
5829 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
5830 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
5831 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
5832 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
5833 (define_symbol): Update.
5834 * symfile.c (generic_load): Remove references to nindy.
5835 * symtab.c: Remove references to nindy.
5837 2003-02-01 Andrew Cagney <ac131313@redhat.com>
5839 * infcmd.c (print_float_info): Delete code conditional on
5841 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
5842 * config/m68k/nm-apollo68b.h: Ditto.
5843 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
5844 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
5845 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
5847 2003-02-01 Mark Kettenis <kettenis@gnu.org>
5849 * config/i386/tm-i386os9k.h: Removed.
5851 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
5852 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
5853 they're identical to i[3456]86-*-sysv* now.
5854 * config/i386/i386v32.mh: Removed.
5855 * config/i386/xm-i386v32.h: Removed.
5856 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
5858 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
5860 * config/i386/i386dgux.mh: Removed.
5861 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
5863 * configure.in: Fix typo.
5864 * configure: Regenerated.
5866 2003-01-31 David Carlton <carlton@math.stanford.edu>
5868 * dwarf2read.c (dwarf2_locate_sections): Set
5869 dwarf_ranges_section.
5871 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5873 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
5874 * utils.c: Update comments documenting legitimate uses of PTR.
5876 * utils.c: Re-indent.
5878 * config/djgpp/fnchange.lst: Delete nindy files.
5879 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
5880 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
5881 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
5882 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
5883 * nindy-share/README, nindy-share/Onindy.c: Delete files.
5884 * nindy-tdep.c, nindy-share/Makefile: Delete files.
5885 * Makefile.in (init.c): Remove nindy references.
5886 (saber_gdb): Delete rule.
5887 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
5888 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
5890 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
5891 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
5892 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
5893 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
5895 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
5896 * saber.suppress: Delete file.
5898 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
5900 * dbxread.c (stabs_data): New static variable.
5901 (fill_symbuf): Support an in-memory buffer for stabs data.
5902 (stabs_seek): New function.
5903 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
5904 (read_ofile_symtab): Use stabs_seek.
5905 (elfstab_build_psymtabs): Take an asection* instead of
5906 an offset and size. Relocate the stabs data if necessary.
5907 Save the section* for dbx_psymtab_to_symtab.
5908 * dwarf2read.c: Add section variables for each debug section.
5909 (dwarf2_locate_sections): Fill them in.
5910 (dwarf2_read_section): Take an asection* argument.
5911 Relocate the section contents if necessary.
5912 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
5913 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
5914 it to dwarf2_read_section.
5915 (dwarf2_build_frame_info): Update callers.
5916 * elfread.c (elf_symfile_read): Update call to
5917 elfstab_build_psymtabs.
5918 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
5919 (DBX_STAB_SECTION): New macro.
5920 * stabsread.h (elfstab_build_psymtabs): Update prototype.
5921 * symfile.c (symfile_dummy_outputs): New function.
5922 (symfile_relocate_debug_section): New function.
5923 * symfile.h (symfile_relocate_debug_section): Add prototype.
5925 2003-01-31 Richard Henderson <rth@redhat.com>
5927 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
5928 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
5929 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
5930 * alpha-tdep.c (alpha_register_name): Add "unique".
5931 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
5932 (ALPHA_UNIQUE_REGNUM): New.
5933 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
5935 2003-01-31 Andrew Cagney <ac131313@redhat.com>
5937 * README: Remove reference to Ericsson 1800 monitor.
5938 * Makefile.in (remote-es.o): Delete rule.
5939 (ALLDEPFILES): Delete remote-es.c.
5940 * remote-es.c: Delete file.
5941 * config/m68k/es1800.mt: Delete file.
5942 * config/djgpp/fnchange.lst: Update.
5943 * configure.tgt: Delete m68*-ericsson-* target.
5945 2003-01-31 Adam Fedor <fedor@gnu.org>
5947 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
5948 Remove duplicate/shadowing variable of same name.
5950 2003-01-30 Jim Blandy <jimb@redhat.com>
5952 * symfile.c (find_separate_debug_file): Assert that the objfile's
5953 directory name we compute ends with a slash, and then assume that
5954 that's so everywhere we use it.
5956 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
5958 * valops.c (value_assign): Flush frame cache after stores to memory
5961 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5963 * Makefile.in (mon960-rom.o): Delete rule.
5964 * mon960-rom.c: Delete file.
5966 2003-01-30 Andrew Cagney <ac131313@redhat.com>
5968 * d10v-tdep.c: Include "frame-unwind.h".
5969 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
5971 (next_addr, uses_frame): Delete.
5972 (struct d10v_unwind_cache): Define.
5973 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
5974 Use info instead of next_addr and uses_frame globals.
5975 (d10v_frame_init_saved_regs): Delete function.
5976 (d10v_init_extra_frame_info): Delete function.
5977 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
5978 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
5979 init_frame_pc or frame_saved_pc.
5980 (d10v_pop_frame): Delete function.
5981 (do_d10v_pop_frame): Delete function.
5982 (d10v_frame_chain): Delete function.
5983 (d10v_frame_chain_valid): Delete function.
5984 (d10v_frame_pc_unwind): New function.
5985 (d10v_frame_id_unwind): New function.
5986 (saved_regs_unwinder): New function.
5987 (d10v_frame_register_unwind): New function.
5988 (d10v_frame_pop): New function.
5989 (d10v_frame_unwind): New variable.
5990 (d10v_frame_p): New function.
5991 (d10v_frame_saved_pc): Delete function.
5992 * Makefile.in (d10v-tdep.o): Update dependencies.
5994 2003-01-30 J. Brobecker <brobecker@gnat.com>
5996 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
5997 causing some regressions due to a change in the default value
6000 2003-01-29 Richard Henderson <rth@redhat.com>
6001 Elena Zannoni <ezannoni@redhat.com>
6002 Daniel Jacobowitz <drow@mvista.com>
6005 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
6007 (RANGES_SECTION): New.
6008 (dwarf_ranges_buffer): New variable.
6009 (struct comp_unit_head): Add member "die".
6010 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
6011 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
6012 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
6013 (dwarf2_locate_sections): Likewise.
6014 (dwarf2_build_psymtabs): Read .debug_ranges.
6015 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
6016 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
6017 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
6018 Look for DW_AT_ranges and return the bounding box.
6020 2003-01-29 Brian Ford <ford@vss.fsi.com>
6022 * win32-nat.c (cygwin_pid): Removed as unused.
6023 (child_attach): Try fall back to Cygwin pid.
6025 2003-01-29 Jim Blandy <jimb@redhat.com>
6027 * objfiles.h (struct objfile): Doc fix.
6029 2003-01-29 Andrew Cagney <ac131313@redhat.com>
6031 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
6032 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
6033 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
6034 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
6035 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
6036 (FRAME_SAVED_PC): Change to a function with predicate.
6037 * gdbarch.h, gdbarch.c: Re-generate.
6039 2003-01-28 Andrew Cagney <ac131313@redhat.com>
6041 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
6043 * complaints.c (complain): Delete function.
6044 * complaints.h (struct deprecated_complaint): Delete definition.
6045 (complain): Delete declaration.
6047 2003-01-28 Kevin Buettner <kevinb@redhat.com>
6049 * mips-tdep.c (mips_init_extra_frame_info): Return early for
6052 2003-01-27 Andrew Cagney <ac131313@redhat.com>
6054 * sentinel-frame.h, sentinel-frame.c: New files.
6055 * Makefile.in (frame.o): Update dependencies.
6056 (SFILES): Add sentinel-frame.c.
6057 (sentinel_frame_h): Define.
6058 (COMMON_OBS): Add sentinel-frame.o.
6059 (sentinel-frame.o): Specify dependencies.
6060 * frame.c: Include "sentinel-frame.h".
6061 (frame_register_unwind): Rewrite assuming that there is always a a
6063 (frame_register, generic_unwind_get_saved_register): Ditto.
6064 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
6065 (create_sentinel_frame, unwind_to_current_frame): New functions.
6066 (get_current_frame): Rewrite using create_sentinel_frame and
6067 unwind_to_current_frame. When possible, always create a frame.
6068 (create_new_frame): Set next to the sentinel frame.
6069 (get_next_frame): Rewrite. Don't go below the level 0 frame.
6070 (deprecated_update_frame_pc_hack): Update the next frame's PC and
6071 ID cache when necessary.
6072 (frame_saved_regs_id_unwind): Use frame_relative_level.
6073 (deprecated_generic_get_saved_register): Use frame_relative_level,
6074 get_frame_saved_regs, get_frame_pc, get_frame_base and
6076 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
6079 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6081 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
6083 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6085 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
6086 (maintenance_set_profile_cmd): Use error () instead of warning ().
6088 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
6090 * configure.in: Check that -pg works if using --enable-profiling.
6091 Check for monstartup and _mcleanup regardless of --enable-profiling.
6092 * maint.c: Check for monstartup and _mcleanup before using them.
6093 * config.in: Regenerated.
6094 * configure: Regenerated.
6096 2003-01-24 Nick Clifton <nickc@redhat.com>
6100 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
6102 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
6103 (sh2e_show_regs): New.
6104 (sh_gdbarch_init): Handle bfd_mach_sh2e.
6105 * config/sh/tm-sh.h: Added sh2e to comments.
6107 2003-01-23 Jim Blandy <jimb@redhat.com>
6109 * symfile.c (syms_from_objfile): Don't print the "(no debugging
6110 symbols found)" message here; we haven't checked for a separate
6111 debug info file yet, so we don't know yet.
6112 (symbol_file_add_with_addrs_or_offsets): Print it here, after
6113 we've looked everywhere. Also, there's no need to print a special
6114 message when we're loading the separate debug info file: the one
6115 symbol_file_add prints is fine.
6117 2003-01-23 Alexander Larsson <alexl@redhat.com>
6118 Jim Blandy <jimb@redhat.com>
6120 Add support for executables whose debug info has been separated
6121 out into a separate file, leaving only a link behind.
6122 * objfiles.h (struct objfile): New fields: separate_debug_objfile
6123 and separate_debug_objfile_backlink.
6124 (put_objfile_before): New declaration.
6125 * symfile.c: #include "filenames.h".
6126 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
6127 debug info in a separate file, read that, too. Save the addrs
6128 argument, so we can use it again to read the separated debug info;
6129 syms_from_objfile modifies the table we pass it.
6130 (reread_symbols): After re-reading an objfile, call
6131 reread_separate_symbols to refresh its separate debug info
6132 objfile, if it has one.
6133 (reread_separate_symbols, find_separate_debug_file,
6134 get_debug_link_info, separate_debug_file_exists): New functions.
6135 (debug_file_directory): New global var.
6136 (_initialize_symfile): Initialize debug_file_directory, and
6137 provide the new `set debug-file-directory' command to let the user
6139 * objfiles.c (free_objfile): If this objfile has its debug info in
6140 a separate objfile, free that one too. If this is itself a
6141 separate debug info objfile, clear our parent's backlink.
6142 (put_objfile_before): New function.
6143 * utils.c (gnu_debuglink_crc32): New function.
6144 * defs.h (gnu_debuglink_crc32): New declaration.
6145 * Makefile.in (symfile.o): Note dependency on "filenames.h".
6146 * configure.in: Handle --with-separate-debug-dir config option.
6147 * acinclude.m4 (AC_DEFINE_DIR): New macro.
6148 * acconfig.h (DEBUGDIR): New macro.
6149 * configure, aclocal.m4, config.in: Regenerated.
6151 2003-01-22 Jim Blandy <jimb@redhat.com>
6153 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
6154 like the old symbol_file_add, but taking new arguments: you can
6155 now pass in either a `struct section_addr_info' list to say where
6156 each section is loaded, or a `struct section_offsets' table. Pass
6157 these new arguments through to syms_from_objfile as appropriate.
6158 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
6159 with the appropriate quiescent values for the new arguments.
6161 * symfile.c: #include "gdb_assert.h".
6162 (syms_from_objfile): Add the ability to pass in a section offset
6163 table directly, as an alternative to the section_addr_info table.
6164 Document arguments better.
6165 (symbol_file_add): Pass extra arguments to syms_from_objfile.
6166 * symfile.h (syms_from_objfile): Update declaration.
6167 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
6169 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
6171 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
6173 Original patch by Tom Tromey <tromey@cygnus.com> and
6174 Jason Molenda <jmolenda@apple.com>.
6175 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
6176 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
6177 * NEWS: Mention profiling.
6178 * configure.in (--enable-gdbtk): Fix typo.
6179 (--enable-profiling): New. Set PROFILE_CFLAGS.
6180 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
6182 (profiling_state): New variable.
6183 (mcleanup_wrapper): New function.
6184 (_initialize_maint): Remove NOTYET, fix call to
6185 add_setshow_boolean_cmd for "maint set profile".
6186 * configure: Regenerated.
6188 2003-01-21 Martin M. Hunt <hunt@redhat.com>
6190 * Makefile.in (install-gdbtk): Install PNG images too.
6192 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6194 * exec.c (text_start): Delete global variable.
6195 (exec_file_attach): Make text_start local to the function.
6196 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
6197 * valops.c (hand_function_call): Delete code that handles
6198 BEFORE_TEXT_END and AFTER_TEXT_END.
6199 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
6200 of CALL_DUMMY_LOCATION.
6201 * gdbarch.c: Regenerate.
6202 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
6203 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
6204 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
6205 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
6206 (text_end): Delete extern declaration.
6208 2003-01-21 Andrew Cagney <ac131313@redhat.com>
6210 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
6211 * blockframe.c (backtrace_below_main): Move to "frame.c".
6212 (frame_chain_valid): Delete check for backtrace_below_main.
6213 (_initialize_blockframe): Delete initialization, move ``set
6214 backtrace-below-main'' command to "frame.c".
6215 (do_flush_frames_sfunc): Delete function.
6216 * frame.c: Include "command.h" and "gdbcmd.h".
6217 (frame_type_from_pc): New function.
6218 (create_new_frame): Use frame_type_from_pc.
6219 (legacy_get_prev_frame): New function.
6220 (get_prev_frame): Rewrite. When an old style frame, call
6221 legacy_get_prev_frame. Otherwize, unwind the PC first.
6222 (_initialize_frame): Add ``set backtrace-below-main'' command.
6223 * Makefile.in (frame.o): Update dependencies.
6225 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6227 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
6228 DEPRECATED_REGISTERS_INFO.
6230 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6232 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
6233 Maintainers'. Update `Various Maintainers'.
6235 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6237 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
6238 * gdbarch.sh (POP_FRAME): Change to function with predicate.
6239 Suppress actual parameters when `-'.
6240 * gdbarch.h, gdbarch.c: Regenerate.
6242 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6244 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
6245 code handling dummy frames.
6247 2003-01-19 Andrew Cagney <ac131313@redhat.com>
6249 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
6250 (struct frame_unwind): Add field pop.
6251 * frame.h (frame_pop): Declare.
6252 * frame.c (frame_saved_regs_pop): New function.
6253 (trad_frame_unwinder): Add frame_saved_regs_pop.
6254 (frame_pop): New function.
6255 * dummy-frame.c (dummy_frame_pop): New function.
6256 (discard_innermost_dummy): New function.
6257 (generic_pop_dummy_frame): Use discard_innermost_dummy.
6258 (dummy_frame_unwind): Add dummy_frame_pop.
6259 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
6260 * valops.c (hand_function_call): Ditto.
6261 * stack.c (return_command): Ditto.
6263 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6265 * cris-tdep.c: Fix function declaration indentation.
6266 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
6267 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
6268 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
6269 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
6270 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
6271 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
6273 2003-01-18 Michael Chastain <mec@shout.net>
6275 * README (Unpacking and Installation -- quick overview):
6276 Warn against ".../gdb-5.3/gdb/configure".
6278 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6280 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
6281 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6282 (struct frame_unwind): Declare opaque.
6283 (dummy_frame_p): Declare function.
6284 * dummy-frame.c (dummy_frame_id_unwind): Make static.
6285 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
6286 * dummy-frame.c: Include "frame-unwind.h".
6287 (dummy_frame_p): New function.
6288 (dummy_frame_unwind): New variable.
6289 * frame.c: Include "frame-unwind.h".
6290 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
6291 to use the new unwind field.
6292 (set_unwind_by_pc): Delete function.
6293 (create_new_frame, get_prev_frame): Set unwind field using
6294 frame_unwind_find_by_pc.
6295 (trad_frame_unwind, trad_frame_unwinder): New variables.
6296 * frame.h (trad_frame_unwind): Declare variable.
6297 (frame_id_unwind_ftype): Delete declaration.
6298 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
6299 (struct frame_unwind): Declare opaque.
6300 (struct frame_info): Replace the fields id_unwind, pc_unwind and
6301 register_unwind with a single unwind pointer.
6302 * frame-unwind.h, frame-unwind.c: New files.
6303 * Makefile.in (SFILES): Add frame-unwind.c.
6304 (frame_unwind_h): Define.
6305 (COMMON_OBS): Add frame-unwind.o.
6306 (frame-unwind.o): Specify dependencies.
6307 (frame.o, dummy-frame.o): Update dependencies.
6309 2003-01-18 Andrew Cagney <ac131313@redhat.com>
6311 * ada-valprint.c: Eliminate PTR.
6312 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
6313 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
6314 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
6315 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
6316 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
6317 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
6318 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
6320 2003-01-17 Andrew Cagney <ac131313@redhat.com>
6322 * main.c (captured_main): Don't use PTR.
6323 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
6324 * gdbtypes.c (lookup_primitive_typename): Ditto.
6325 (lookup_struct_elt_type): Ditto.
6326 * f-valprint.c (info_common_command): Ditto.
6327 (list_all_visible_commons): Ditto.
6328 * jv-typeprint.c (java_type_print_base): Ditto.
6330 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
6331 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
6332 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
6333 i386-interix-nat.c and i386-interix-tdep.c. Rename
6334 m68klinux-nat.c and m68klinux-tdep.c. Rename
6335 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
6336 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
6337 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
6338 * main.c (captured_main): Use xfree, not free.
6340 2003-01-16 Andrew Cagney <ac131313@redhat.com>
6342 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
6343 ID back using a parameter.
6344 * frame.c (frame_id_unwind): Update call.
6345 (frame_saved_regs_id_unwind): Update.
6346 * dummy-frame.c (dummy_frame_id_unwind): Update function.
6347 * dummy-frame.h (struct frame_id): Add opaque declaration.
6348 (dummy_frame_id_unwind): Update declaration.
6350 2003-01-15 Andrew Cagney <ac131313@redhat.com>
6352 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
6354 2003-01-15 Stephen P. Smith <ischis2@cox.net>
6356 * MAINTAINERS (Stephen P. Smith): Updated email address.
6358 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
6361 * breakpoint.c (until_break_command): Add new argument. Use it to
6362 decide whether to stop only at the current frame or not.
6363 * breakpoint.h (until_break_command): Update prototype.
6364 * infcmd.c (until_command): Add new argument to until_break_command
6366 (advance_command): New function.
6367 (_initialize_infcmd): Update help string for 'until' command.
6368 Add new 'advance' command.
6370 2003-01-14 David Carlton <carlton@math.stanford.edu>
6372 * linespec.c (decode_line_1): Normalize comments.
6374 (locate_first_half): Ditto.
6375 (decode_compound): Ditto.
6376 (symtab_from_filename): Ditto.
6377 (decode_all_digits): Ditto.
6378 (decode_dollar): Ditto.
6379 (find_methods): Ditto.
6380 (find_toplevel_char): Ditto.
6382 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6384 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
6385 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
6386 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
6387 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
6388 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
6389 * language.c, language.h, m32r-tdep.c: Update copyright.
6390 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
6391 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
6392 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
6393 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
6394 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
6395 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
6397 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6399 * stabsread.h (process_later, resolve_cfront_continuation):
6401 Update copyright years.
6402 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
6403 Update copyright year.
6404 * dbxread.c(struct cont_elem): Obsolete.
6405 (process_later, process_now): Obsolete functions.
6406 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
6407 Update copyright year.
6408 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
6409 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
6410 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
6411 (parse_partial_symbols): Obsolete cfront support.
6413 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
6415 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
6416 read_cfront_baseclasses, read_cfront_member_functions,
6417 resolve_cfront_continuation,read_cfront_static_fields,
6418 copy_cfront_struct_fields): Obsolete functions.
6419 (define_symbol, read_one_struct_field): Obsolete cfront support.
6420 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
6421 Update Copyright year.
6423 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
6425 * stack.c (print_frame_info, print_stack_frame_base_stub,
6426 print_stack_frame_base, show_and_print_stack_frame_stub,
6427 show_and_print_stack_frame, print_only_stack_frame_stub,
6428 print_only_stack_frame): Delete functions.
6429 (print_stack_frame_stub): Call print_frame_info instead of
6430 print_frame_info_base.
6431 (print_frame_info_base): Rename to print_frame_info.
6432 (backtrace_command_1): Call print_frame_info, instead of
6433 print_frame_info_base.
6434 (current_frame_command): Call print_stack_frame, instead of
6435 print_only_stack_frame.
6436 (frame_command): Call print_stack_frame, instead of
6437 show_and_print_stack_frame.
6438 (up_command): Ditto.
6439 (down_command): Ditto.
6440 * frame.h (print_only_stack_frame): Delete prototype.
6441 * infrun.c (normal_stop): Call print_stack_frame, instead of
6442 show_and_print_stack_frame.
6443 * thread.c (info_threads_command): Call print_stack_frame, instead
6444 of print_only_stack_frame.
6446 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6448 * README (Graphical interface to GDB): Update URL. Point at
6451 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
6454 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6456 * symtab.c (find_pc_sect_line): Don't consider end-of-function
6459 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6461 * thread-db.c (attach_thread): Prototype.
6462 (struct private_thread_info): Remove lwpid. Add thread handle (th),
6463 thread information (ti), and valid flags (th_valid, ti_valid).
6464 (attach_thread): Move target_pid_to_str call to after the thread
6465 is added to GDB's list. Initialize the cache.
6466 (thread_get_info_callback, thread_db_map_id2thr)
6467 (thread_db_get_info): New functions.
6468 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
6469 (thread_db_store_registers, thread_db_thread_alive)
6470 (thread_db_get_thread_local_address): Use them.
6471 (thread_db_pid_to_str): Likewise. Return "Missing" instead
6472 of calling error() for threads in unknown state.
6474 (clear_lwpid_callback): New function.
6475 (thread_db_resume): Use it to clear the cache.
6477 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6479 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
6480 (resume_callback): Remove dead code.
6482 2003-01-13 Andrew Cagney <ac131313@redhat.com>
6484 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
6486 * gdbarch.h, gdbarch.c: Regenerate.
6487 * stack.c (frame_info): Only initialize the saved registers when
6488 FRAME_INIT_SAVED_REGS_P.
6489 * frame.c (frame_saved_regs_register_unwind): Assert
6490 FRAME_INIT_SAVED_REGS_P.
6491 (deprecated_generic_get_saved_register): Ditto.
6493 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6495 * source.c (openp): Squelch warning about "filename".
6497 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6499 * source.c (openp): If the file does not exist don't necessarily
6502 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6505 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
6506 (integer_types_same_name_p): New function.
6507 (rank_one_type): Use it.
6508 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
6510 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
6512 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
6514 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
6515 * configure.in: Add --with-sysroot.
6516 * configure: Regenerated.
6517 * main.c (gdb_sysroot): New variable.
6518 (captured_main): Initialize gdb_sysroot.
6519 * defs.h (gdb_sysroot): New extern declaration.
6520 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
6522 2003-01-12 Michael Chastain <mec@shout.net>
6524 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
6526 2003-01-12 Michael Chastain <mec@shout.net>
6528 * top.c (print_gdb_version): Bump copyright year to 2003.
6530 2003-01-12 David Carlton <carlton@bactrian.org>
6532 * linespec.c (symtab_from_filename): Rename variable 's' to
6535 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6537 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
6539 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
6541 2003-01-12 Andrew Cagney <ac131313@redhat.com>
6543 * d10v-tdep.c: Include "gdb_assert.h".
6544 (d10v_store_return_value): Rewrite to match current interface.
6545 (d10v_extract_struct_value_address): Ditto.
6546 (d10v_extract_return_value): Ditto.
6547 (d10v_gdbarch_init): Set store_restore_value,
6548 extract_struct_value_address and extract_return_value.
6550 2003-01-12 J. Brobecker <brobecker@gnat.com>
6552 * hpread.c (set_namestring): New procedure replacing the
6553 SET_NAMESTRING macro.
6554 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
6555 by calls to set_namestring.
6557 2003-01-11 J. Brobecker <brobecker@gnat.com>
6559 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
6560 a compilation warning.
6561 (hpread_process_one_debug_symbol): Likewise.
6563 2003-01-10 David Carlton <carlton@math.stanford.edu>
6565 * linespec.c (decode_line_1): Rename variable 's' to
6567 (decode_all_digits): Rename argument 's' to 'file_symtab'.
6568 (decode_dollar): Ditto.
6569 (decode_variable): Ditto.
6570 (symbol_found): Ditto.
6572 2003-01-09 Michael Chastain <mec@shout.net>
6574 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
6576 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
6578 * win32-nat.c (set_process_privilege): New function.
6579 (child_attach): Call set_process_privilege() to enable the
6580 SE_DEBUG_NAME user privilege if available in process token.
6582 2003-01-10 J. Brobecker <brobecker@gnat.com>
6584 * hpread.c (hpread_process_one_debug_symbol): Fix a small
6585 compilation error in the previous revision.
6587 2003-01-09 David Carlton <carlton@math.stanford.edu>
6589 * linespec.c: Update copyright.
6591 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
6593 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
6595 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
6597 2003-01-09 Andrew Cagney <ac131313@redhat.com>
6599 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
6601 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
6602 (frame_saved_regs_zalloc): Update.
6603 (frame_saved_regs_register_unwind): Update.
6604 (create_new_frame): Update.
6605 (get_prev_frame): Update.
6606 (frame_extra_info_zalloc): Update.
6607 (deprecated_get_frame_saved_regs): Update.
6608 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
6609 * cris-tdep.c: Update comment.
6611 * somsolib.h: Fix function indentation.
6612 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
6613 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
6614 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
6615 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
6616 * somsolib.c, inftarg.c: Remove assignment in if conditional.
6618 * infrun.c (follow_fork): Use ISO C definition.
6619 * expprint.c (print_subexp): Use xfree instead of free.
6620 * charset.c: Include "gdb_string.h" instead of <string.h>.
6621 (register_iconv_charsets): Use ISO C definition.
6622 (host_charset, target_charset): Ditto.
6623 * Makefile.in (charset.o): Update dependencies.
6624 (mi-cmd-env.o): Update dependencies.
6626 2003-01-08 Andrew Cagney <cagney@redhat.com>
6628 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
6631 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6633 * gdb_mbuild.sh: Add --keep option. When specified, keep the
6634 build directories. Save edited gdb output in Mbuild.log. If a
6635 build fails, remove any final GDB executable.
6637 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6639 * gdb_mbuild.sh: Edit the output of `maint print architecture'
6640 replacing hex constants with function names and stripping leading
6641 file name directory prefixes.
6643 2003-01-08 Andrew Cagney <cagney@redhat.com>
6645 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
6648 2003-01-08 David Carlton <carlton@math.stanford.edu>
6650 * linespec.c (decode_line_1): Move code into decode_variable.
6651 (decode_variable): New function.
6653 2003-01-08 Andrew Cagney <ac131313@redhat.com>
6655 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
6657 2003-01-08 Andrew Cagney <cagney@redhat.com>
6659 * cris-tdep.c (cris_frame_init_saved_regs): Use
6660 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
6662 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
6663 (sh64_nofp_frame_init_saved_regs): Ditto.
6664 (sh_fp_frame_init_saved_regs): Ditto.
6665 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
6666 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6667 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6668 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6670 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
6672 * minsyms.c (lookup_minimal_symbol): Update comment.
6673 (lookup_minimal_symbol_text): Update comment. Use the hash table.
6674 (lookup_minimal_symbol_solib_trampoline): Likewise.
6676 2003-01-08 Andrew Cagney <cagney@redhat.com>
6678 * d10v-tdep.c (d10v_init_extra_frame_info): Use
6679 frame_relative_level.
6681 * alpha-tdep.c: Use get_frame_extra_info.
6682 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6683 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
6684 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6685 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
6687 * alpha-tdep.c: Use get_next_frame.
6688 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6689 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6690 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
6691 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
6692 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
6693 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
6694 * xstormy16-tdep.c: Ditto.
6696 2003-01-07 Andrew Cagney <cagney@redhat.com>
6698 * alpha-tdep.c: Use get_frame_base.
6699 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6700 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6701 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6702 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
6703 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
6704 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6705 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
6706 * config/sparc/tm-sparc.h: Ditto.
6708 2003-01-07 Andrew Cagney <cagney@redhat.com>
6710 * frame.c (deprecated_get_frame_context): New function.
6711 (deprecated_set_frame_context): New function.
6712 * frame.h (deprecated_get_frame_context): Declare.
6713 (deprecated_set_frame_context): Declare.
6714 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
6715 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
6717 2003-01-07 Andrew Cagney <cagney@redhat.com>
6719 * frame.c (deprecated_set_frame_next_hack): New function.
6720 (deprecated_set_frame_prev_hack): New function.
6721 * frame.h (deprecated_set_frame_next_hack): Declare.
6722 (deprecated_set_frame_prev_hack): Declare.
6723 * mcore-tdep.c (analyze_dummy_frame): Use
6724 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
6725 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6727 2003-01-07 David Carlton <carlton@math.stanford.edu>
6729 * linespec.c (decode_line_1): Move code into decode_dollar.
6730 (decode_dollar): New function.
6732 2003-01-07 Andrew Cagney <cagney@redhat.com>
6734 * arm-tdep.c (arm_init_extra_frame_info): Use
6735 deprecated_update_frame_base_hack.
6736 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
6737 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
6738 (fix_frame_pointer): Ditto.
6739 (mn10300_analyze_prologue): Ditto.
6741 2003-01-07 Andrew Cagney <cagney@redhat.com>
6743 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
6744 extra_info using frame_extra_info_zalloc.
6745 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
6746 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
6747 (sh64_init_extra_frame_info): Ditto.
6748 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
6749 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
6750 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
6751 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
6752 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
6753 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
6754 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
6755 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
6756 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
6757 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
6758 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
6759 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
6761 * mn10300-tdep.c (analyze_dummy_frame): Use
6762 deprecated_set_frame_extra_info_hack.
6763 * mcore-tdep.c (analyze_dummy_frame): Ditto.
6765 2003-01-07 J. Brobecker <brobecker@gnat.com>
6767 * mdebugread.c (parse_symbol): Skip stProc entries which storage
6768 class is not scText. These do not define "real" procedures.
6769 (parse_partial_symbols): Likewise.
6771 2003-01-06 Michael Snyder <msnyder@redhat.com>
6773 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
6775 2003-01-06 Andrew Cagney <ac131313@redhat.com>
6777 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
6778 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
6779 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
6780 deprecated_frame_xmalloc_with_cleanup.
6781 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
6782 deprecated_frame_xmalloc.
6783 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
6784 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
6786 2003-01-06 Andrew Cagney <cagney@redhat.com>
6788 * x86-64-linux-tdep.c: Include "osabi.h".
6789 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
6791 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
6793 2003-01-06 Andrew Cagney <cagney@redhat.com>
6795 * MAINTAINERS (Target Instruction Set Architectures): Update
6796 arm-elf. Can be built with -Werror, has been multiarched.
6798 * value.h (unpack_long): Make buffer parameter constant.
6799 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
6800 * scm-lang.h (scm_parse): Ditto.
6801 * defs.h (extract_typed_address, extract_address): Ditto.
6802 (extract_long_unsigned_integer): Ditto.
6803 * inferior.h (unsigned_pointer_to_address): Ditto.
6804 (signed_pointer_to_address): Ditto.
6805 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
6806 * gdbarch.h, gdbarch.c: Regenerate.
6807 * findvar.c (extract_long_unsigned_integer): Update.
6808 (extract_address): Update.
6809 (extract_typed_address): Update.
6810 (unsigned_pointer_to_address): Update.
6811 * values.c (unpack_long): Update.
6812 (unpack_double): Update.
6813 (unpack_pointer): Update.
6814 (unpack_field_as_long): Update.
6815 * d10v-tdep.c (d10v_pointer_to_address): Update.
6816 * avr-tdep.c (avr_pointer_to_address): Update.
6817 * scm-lang.c (scm_unpack): Update.
6818 * findvar.c (signed_pointer_to_address): Update.
6820 2003-01-06 Michal Ludvig <mludvig@suse.cz>
6822 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
6823 since it is in i386-tdep.c.
6825 2003-01-06 J. Brobecker <brobecker@gnat.com>
6827 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
6828 failure introduced in the previous change.
6830 2003-01-05 Michael Chastain <mec@shout.net>
6832 * README: Remove references to deleted remote-*.c files:
6833 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
6834 remote-nrom.c, remote-os9k.c, remote-udi.c.
6836 2003-01-05 Mark Kettenis <kettenis@gnu.org>
6838 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
6839 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
6840 i386_get_longjmp_target.
6842 2003-01-05 Andrew Cagney <ac131313@redhat.com>
6844 * arm-tdep.c (prologue_cache): Change to a pointer.
6845 (_initialize_arm_tdep): Allocate prologue_cache.
6846 (check_prologue_cache): Update.
6847 (save_prologue_cache): Update.
6848 (arm_gdbarch_init): Update.
6850 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6852 * stabsread.c (update_method_name_from_physname): Call complaint()
6855 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6857 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
6858 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
6859 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
6861 * blockframe.c: Include "gdbcmd.h" and "command.h".
6862 (backtrace_below_main): New variable.
6863 (file_frame_chain_valid, func_frame_chain_valid)
6864 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
6865 (generic_func_frame_chain_valid): Remove functions.
6866 (frame_chain_valid, do_flush_frames_sfunc): New functions.
6867 (_initialize_blockframe): New function.
6868 * Makefile.in (blockframe.o): Update dependencies.
6869 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
6870 comment. Call frame_chain_valid ().
6871 * frame.h: Remove old prototypes. Add prototype for
6872 frame_chain_valid and update comments to match.
6873 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
6875 * gdbarch.h: Regenerated.
6876 * gdbarch.c: Regenerated.
6878 * alpha-tdep.c (alpha_gdbarch_init): Don't call
6879 set_gdbarch_frame_chain_valid.
6880 * avr-tdep.c (avr_gdbarch_init): Likewise.
6881 * cris-tdep.c (cris_gdbarch_init): Likewise.
6882 * frv-tdep.c (frv_gdbarch_init): Likewise.
6883 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
6884 * i386-tdep.c (i386_svr4_init_abi): Likewise.
6885 (i386_nw_init_abi): Likewise.
6886 (i386_gdbarch_init): Likewise.
6887 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
6888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
6889 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
6890 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
6891 * mips-tdep.c (mips_gdbarch_init): Likewise.
6892 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
6893 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
6894 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
6895 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6896 * s390-tdep.c (s390_gdbarch_init): Likewise.
6897 * sh-tdep.c (sh_gdbarch_init): Likewise.
6898 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6899 * v850-tdep.c (v850_gdbarch_init): Likewise.
6900 * vax-tdep.c (vax_gdbarch_init): Likewise.
6901 * x86-64-tdep.c (x86_64_init_abi): Likewise.
6903 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
6904 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
6905 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
6906 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
6907 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
6908 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
6909 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
6910 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
6912 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
6914 * Makefile.in (acconfig_h): Remove incorrect macro.
6916 (osabi.o): Update dependencies.
6917 * configure.tgt: Set gdb_osabi based on target triplet.
6918 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
6919 * configure: Regenerated.
6920 * config.in: Regenerated.
6921 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
6922 (GDB_OSABI_DEFAULT): Define if not already defined.
6923 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
6924 (set_osabi_string): New variables.
6925 (gdbarch_register_osabi): Add new OS ABI to
6926 gdb_osabi_available_names.
6927 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
6928 (set_osabi, show_osabi): New functions.
6929 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
6931 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6933 * arch-utils.c (gdbarch_info_init): Set osabi to
6934 GDB_OSABI_UNINITIALIZED.
6935 * gdbarch.sh: Add osabi to struct gdbarch and to struct
6936 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
6937 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
6938 * gdbarch.c: Regenerated.
6939 * gdbarch.h: Regenerated.
6940 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
6942 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
6943 * osabi.h (enum gdb_osabi): Move to defs.h.
6944 (gdbarch_init_osabi): Update prototype.
6945 * defs.h (enum gdb_osabi): Moved here.
6946 * Makefile.in: Update dependencies.
6948 * alpha-tdep.h: Don't include "osabi.h".
6949 (struct gdbarch_tdep): Remove osabi member.
6950 * alpha-tdep.c: Include "osabi.h".
6951 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6952 iterate over arches. Update call to gdbarch_init_osabi.
6953 (alpha_dump_tdep): Don't dump osabi.
6954 * alpha-linux-tdep.c: Include "osabi.h".
6955 * alpha-osf1-tdep.c: Include "osabi.h".
6956 * alphafbsd-tdep.c: Include "osabi.h".
6957 * alphanbsd-tdep.c: Include "osabi.h".
6959 * arm-tdep.h: Don't include "osabi.h".
6960 (struct gdbarch_tdep): Remove osabi member.
6961 * arm-tdep.c: Include "osabi.h".
6962 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6963 iterate over arches. Update call to gdbarch_init_osabi.
6964 (arm_dump_tdep): Don't dump osabi.
6965 * arm-linux-tdep.c: Include "osabi.h".
6966 * armnbsd-tdep.c: Include "osabi.h".
6968 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
6969 Update call to gdbarch_init_osabi.
6971 * i386-tdep.h: Don't include "osabi.h".
6972 (struct gdbarch_tdep): Remove osabi member.
6973 * i386-tdep.c: Include "osabi.h".
6974 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6975 iterate over arches. Update call to gdbarch_init_osabi.
6976 (i386_dump_tdep): Don't dump osabi.
6977 * i386-linux-tdep.c: Include "osabi.h".
6978 * i386-sol2-tdep.c: Include "osabi.h".
6979 * i386bsd-tdep.c: Include "osabi.h".
6980 * i386gnu-tdep.c: Include "osabi.h".
6981 * i386ly-tdep.c: Include "osabi.h".
6982 * i386nbsd-tdep.c: Include "osabi.h".
6983 * i386obsd-tdep.c: Include "osabi.h".
6985 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
6986 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6987 check osabi when iterating over arches. Update call to
6989 (mips_dump_tdep): Don't dump osabi.
6991 * ns32k-tdep.h: Don't include "osabi.h".
6992 (struct gdbarch_tdep): Remove.
6993 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
6994 gdbarch_lookup_osabi. Don't iterate over arches. Don't
6995 allocate tdep. Update call to gdbarch_init_osabi.
6996 (ns32k_dump_tdep): Remove.
6997 (_initialize_ns32k_tdep): Update call to gdbarch_register.
6998 * ns32knbsd-tdep.c: Include "osabi.h".
7000 * ppc-tdep.h: Don't include "osabi.h".
7001 (struct gdbarch_tdep): Remove osabi member.
7002 * rs6000-tdep.c: Include "osabi.h".
7003 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
7004 osabi when iterating over arches. Update call to
7006 (rs6000_dump_tdep): Don't dump osabi.
7007 * ppc-linux-tdep.c: Include "osabi.h".
7008 * ppcnbsd-tdep.c: Include "osabi.h".
7010 * sh-tdep.h: Don't include "osabi.h".
7011 (struct gdbarch_tdep): Remove osabi member.
7012 * sh-tdep.c: Include "osabi.h".
7013 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7014 iterate over arches. Update call to gdbarch_init_osabi.
7015 (sh_dump_tdep): Don't dump osabi.
7016 * shnbsd-tdep.c: Include "osabi.h".
7018 * sparc-tdep.c: Include "osabi.h".
7019 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7020 iterate over arches. Update call to gdbarch_init_osabi.
7021 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
7024 * vax-tdep.h: Don't include "osabi.h".
7025 (struct gdbarch_tdep): Remove.
7026 * vax-tdep.c: Include "osabi.h".
7027 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
7028 iterate over arches. Don't allocate tdep. Update call
7029 to gdbarch_init_osabi.
7030 (vax_dump_tdep): Remove.
7031 (_initialize_vax_tdep): Update call to gdbarch_register.
7033 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7035 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
7037 (breakpoint_re_set_one): Don't fetch the value for a disabled
7040 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7042 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
7043 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
7044 (COERCE_FLOAT_TO_DOUBLE): Remove.
7045 * gdbarch.c: Regenerate.
7046 * gdbarch.h: Regenerate.
7047 * Makefile.in: Remove value_h from gdbarch_h.
7048 * valops.c (coerce_float_to_double): New variable.
7049 (default_coerce_float_to_double): Remove.
7050 (standard_coerce_float_to_double): Remove.
7051 (value_arg_coerce): Use coerce_float_to_double.
7052 (_initialize_valops): Add "set coerce-float-to-double".
7053 * value.h (default_coerce_float_to_double): Remove prototype.
7054 (standard_coerce_float_to_double): Remove prototype.
7056 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
7058 * mdebugread.c (parse_symbol): Likewise.
7059 * stabsread.c (define_symbol): Mark all functions as prototyped.
7061 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
7062 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
7063 set_gdbarch_coerce_float_to_double.
7064 * arm-tdep.c (arm_gdbarch_init): Likewise.
7065 * frv-tdep.c (frv_gdbarch_init): Likewise.
7066 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
7067 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
7068 * mips-tdep.c (mips_gdbarch_init): Likewise.
7069 (mips_coerce_float_to_double): Remove.
7070 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
7071 (rs6000_coerce_float_to_double): Remove.
7072 * s390-tdep.c (s390_gdbarch_init): Likewise.
7073 * sh-tdep.c (sh_gdbarch_init): Likewise.
7074 (sh_coerce_float_to_double): Remove.
7075 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
7076 (sparc_coerce_float_to_double): Remove.
7077 * v850-tdep.c (v850_gdbarch_init): Likewise.
7078 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
7079 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7080 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
7081 (hppa_coerce_float_to_double): Remove prototype.
7082 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
7084 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7086 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
7088 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
7090 Suggested by Stewart Brown <sb24@avaya.com>:
7091 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
7092 in recursive calls. Handle TYPE_CODE_TYPEDEF.
7093 (c_type_print_varspec_suffix): Likewise.
7095 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7097 * configure.in: Don't set and AC_SUBST SUBDIRS.
7098 * configure: Regenerated.
7100 * configure.in: Remove code dealing with shared libraries.
7101 * Makefile.in: Remove HLDFLAGS and HLDENV.
7102 * configure: Regenerated.
7104 2003-01-04 Andrew Cagney <ac131313@redhat.com>
7106 * frame.c (deprecated_frame_xmalloc): New function.
7107 (deprecated_set_frame_saved_regs_hack): New function.
7108 (deprecated_set_frame_extra_info_hack): New function.
7109 * frame.h (deprecated_frame_xmalloc): Declare.
7110 (deprecated_set_frame_saved_regs_hack): Declare.
7111 (deprecated_set_frame_extra_info_hack): Declare.
7113 2003-01-04 Mark Kettenis <kettenis@gnu.org>
7115 * configure.in: Move code that provides the --enable-gdbtk option
7116 right after the code that handles the --enable-tui option, and
7118 * configure: Regenerated.
7120 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
7121 AC_CHECK_FUNCS and remove the old check for pread64.
7122 * acinclude.m4 (AC_GNU_SOURCE): New macro.
7123 * acconfig.h (_GNU_SOURCE): Add.
7124 (HAVE_PREAD64): Remove.
7125 * configure, aclocal.m4, config.in: Regenerated.
7127 2003-01-03 Andrew Cagney <ac131313@redhat.com>
7129 * alpha-tdep.c: Use get_frame_saved_regs.
7130 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7131 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
7132 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
7133 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
7134 * vax-tdep.c, xstormy16-tdep.c: Ditto.
7136 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7138 * configure.in: Remove all use of the SUBDIRS variable; add
7139 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
7140 code providing the --enable-multi-ice option, and move it right in
7141 front of the code that checks whether gdbserver is supported.
7143 * configure: Regenerated.
7144 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
7147 2003-01-03 Andrew Cagney <cagney@redhat.com>
7149 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
7150 * avr-tdep.c, cris-tdep.c: Ditto.
7151 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
7152 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7154 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7156 * configure.in: Remove --enable-netrom option.
7157 * configure: Regenerated.
7159 2003-01-03 Mark Kettenis <kettenis@gnu.org>
7161 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
7162 declaration for `struct re_pattern_buffer' instead.
7163 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
7165 2003-01-03 J. Brobecker <brobecker@gnat.com>
7167 * mdebugread.c (parse_symbol): Count until the stEnd matching
7170 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7172 * configure.in: Remove --with-cpu option.
7173 subscripts. Remove evil changequotes here.
7174 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
7175 * config.in, configure: Regenerated.
7177 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
7178 * configure.in: Cleanup section that sources GDB and BFD configure
7179 subscripts. Remove evil changequotes here.
7180 * config.in, configure: Regenerated.
7182 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7184 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
7185 frame accessor methods.
7186 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
7187 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
7188 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
7189 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
7190 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
7191 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
7192 * z8k-tdep.c: Ditto.
7194 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7196 * configure.in: Remove UI_OUT configuration code.
7197 * ada-lang.c: Update assuming UI_OUT is always true.
7198 * Makefile.in (UIOUT_CFLAGS): Remove.
7199 * configure: Regenerated.
7200 * TODO: Remove blurb about elimination of -DUI_OUT.
7202 * configure.in: Move code that provides the --enable-gdbcli,
7203 --enable-gdbmi options right before the code that handles the
7204 --enable-tui option. Polish a bit.
7205 * configure: Regenerated.
7207 * configure.in: Rewrite check for GNU regex and the
7208 --without-included regex option, and move it into the "Checks for
7209 library functions" section. This makes us use the system regex
7210 again by default on systems with version 2 of the GNU C library.
7211 This was apparently broken.
7212 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
7213 * acconfig.h (USE_INCLUDED_REGEX): Remove.
7214 * config.in, configure: Regenerated.
7216 * configure.in: Move code that provides the --enable-tui option
7217 before the "Checks for libraries" section. Polish the code
7218 somewhat and set need_curses to yes if we build the TUI. Rewrite
7219 code that looks for a library providing termcap functionality to
7220 match more closely what's done in the Readline library, and move
7221 it into to the "Checks for libraries" section.
7222 * configure: Regenerated.
7223 * Makefile.in (TERMCAP): Remove variable.
7224 * config/i386/go32.mh (TERMCAP): Remove variable.
7226 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7228 * MAINTAINERS: Mention gdb_mbuild.sh.
7229 * gdb_mbuild.sh: Rewrite.
7231 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7233 * configure.in: Fix typo in last change.
7234 * config.in, configure: Regenerated.
7236 2003-01-02 Andrew Cagney <ac131313@redhat.com>
7238 * valarith.c (value_binop): Delete obsolete code and comments.
7239 * configure.host: Ditto.
7240 * buildsym.h (make_blockvector): Ditto.
7241 * buildsym.c (make_blockvector): Ditto.
7242 * defs.h (enum language): Ditto.
7243 (chill_demangle): Ditto.
7244 * elfread.c (elf_symtab_read): Ditto.
7245 * dwarfread.c (CHILL_PRODUCER): Ditto.
7246 (set_cu_language): Ditto.
7247 (handle_producer): Ditto.
7248 * expprint.c (print_subexp): Ditto.
7249 * gdbtypes.c (chill_varying_type): Ditto.
7250 * gdbtypes.h (builtin_type_chill_bool): Ditto.
7251 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
7252 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
7253 (chill_varying_type): Ditto.
7254 * language.h (_LANG_chill): Ditto.
7255 * language.c (binop_result_type, integral_type): Ditto.
7256 (character_type, string_type, structured_type): Ditto.
7257 (lang_bool_type, binop_type_check): Ditto.
7258 * stabsread.h (os9k_stabs): Ditto.
7259 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
7260 (define_symbol, read_type, read_struct_fields): Ditto.
7261 (read_array_type, read_enum_type, read_huge_number): Ditto.
7262 (read_range_type, start_stabs): Ditto.
7263 * symfile.c (init_filename_language_table): Ditto.
7264 (add_psymbol_with_dem_name_to_list): Ditto.
7265 * symtab.c (symbol_init_language_specific): Ditto.
7266 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
7267 * symtab.h (struct general_symbol_info): Ditto.
7268 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
7269 * typeprint.c (typedef_print): Ditto.
7270 * utils.c (fprintf_symbol_filtered): Ditto.
7271 * valops.c (value_cast, search_struct_field, value_slice): Delete
7273 (varying_to_slice): Delete function.
7274 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
7275 (varying_to_slice): Delete declaration.
7276 * MAINTAINERS: Update.
7278 2003-01-02 Mark Kettenis <kettenis@gnu.org>
7280 * configure.in: Reorganize "Checks for library functions section"
7281 a bit. Remove check for `btowc' and `isascii' functions.
7282 * configure: Regenerated.
7284 * acconfig.h (_MSE_INT_H): Remove.
7285 * configure.in: Create "Checks for header files" section, and move
7286 appropriate tests there. Don't check for objlist.h, wchar.h,
7287 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
7288 misdetection fix. Also add "Checks for types", "Checks for
7289 compiler characteristics" and "Checks for library functions"
7291 * config.in, configure: Regenerated.
7293 * configure.in: Create "Checks for programs" section, and move
7294 appropriate tests there.
7296 2003-01-01 Mark Kettenis <kettenis@gnu.org>
7298 * configure.in: Create "Checks for libraries" section, and move
7299 appropriate tests there. Cleanup check for wctype in libw. Use
7300 AC_SEARCH_LIBS to see whether we need libsocket.
7301 * configure: Regenerated.
7303 For older changes see ChangeLog-2002
7309 version-control: never