1 2003-05-28 H.J. Lu <hongjiu.lu@intel.com>
3 * dwarf2read.c (process_die): Handle DW_TAG_try_block and
6 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
8 * stabsread.c (dbx_lookup_type): Make static.
10 (add_undefined_type): Ditto.
11 * stabsread.h (dbx_lookup_type, read_type, add_undefined_type): Do
14 2003-05-26 Elena Zannoni <ezannoni@redhat.com>
16 * hpread.c (hpread_has_name): Make static.
17 (hpread_psymtab_to_symtab): Ditto.
19 (hpread_call_pxdb): Ditto.
20 (hpread_pxdb_needed): Ditto.
21 (hpread_quick_traverse): Ditto.
22 (hpread_get_header): Ditto.
23 (hpread_get_lntt): Ditto.
24 (hpread_get_slt): Ditto.
27 2003-05-25 Andreas Schwab <schwab@suse.de>
29 * m68k-tdep.c (m68k_gdbarch_init): Set parm_boundary instead of
30 stack_align and deprecated_extra_stack_alignment_needed.
31 (m68k_stack_align): Delete.
33 * m68k-tdep.c (m68k_register_raw_size): Remove cast.
34 (m68k_register_virtual_size): Likewise.
35 (altos_skip_prologue): Remove obsolete function.
36 (isi_frame_num_args): Likewise.
37 (news_frame_num_args): Likewise.
38 (m68k_fix_call_dummy): Make static.
39 (m68k_push_dummy_frame): Likewise.
40 (m68k_pop_frame): Likewise.
41 (m68k_skip_prologue): Likewise.
42 (m68k_frame_init_saved_regs): Likewise.
43 (m68k_saved_pc_after_call): Likewise.
44 (m68k_get_longjmp_target): Make multi-arch.
45 (m68k_gdbarch_init): Allocate and initialize gdbarch_tdep
46 structure. Register m68k_get_longjmp_target if enabled.
47 * m68k-tdep.h (struct gdbarch_tdep): Define.
48 * config/m68k/tm-m68k.h: Don't include "regcache.h".
50 * Makefile.in (config.status): Also depend on configure.tgt
52 (m68klinux-tdep.o): Update dependencies.
53 * configure.tgt (m68*-*-linux*): Set gdb_multi_arch to 1.
54 * m68klinux-tdep.c (M68K_LINUX_JB_ELEMENT_SIZE): Define.
55 (M68K_LINUX_JB_PC): Define.
56 (m68k_linux_pc_in_sigtramp): Renamed from m68k_linux_in_sigtramp
57 and take additional parameter.
58 (m68k_linux_sigtramp_saved_pc): Update.
59 (m68k_linux_init_abi): Set jb_pc and jb_elt_size. Register
60 m68k_linux_pc_in_sigtramp, in_plt_section,
61 find_solib_trampoline_target.
62 * config/m68k/tm-linux.h: Don't include any tm headers.
63 (START_INFERIOR_TRAPS_EXPECTED): Remove definition.
64 (JB_ELEMENT_SIZE): Likewise.
66 (GET_LONGJMP_TARGET): Likewise.
67 (IN_SIGTRAMP): Likewise.
68 (SVR4_SHARED_LIBS): Define this and include "solib.h".
70 2003-05-25 Mark Kettenis <kettenis@gnu.org>
72 * sparc-tdep.c (sparc32_do_push_arguments): New function.
73 (sparc32_push_arguments): Re-implement by calling
74 sparc32_do_push_arguments.
76 2003-05-25 Mark Kettenis <kettenis@gnu.org>
78 * sparc-tdep.c (SPARC_F0_REGNUM, SPARC_F1_REGNUM, SPARC_O0_REGNUM,
79 SPARC_O1_REGNUM): New defines.
80 (sparc32_extract_return_value): Rewrite to operate on a regcache.
81 (sparc32_store_return_value): New function.
82 (sparc_extract_struct_value_address): Rewrite to operate on a
84 (sparc_gdbarch_init): Don't set
85 deprecated_extract_struct_value_address. Set
86 extract_struct_value_address instead. Don't set
87 deprecated_extract_return_value and deprecated_store_return_value
88 for 32-bit targets. Set extract_return_value and
89 store_return_value instead.
90 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE,
91 DEPRECTAED_EXTRACT_RETURN_VALUE,
92 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Don't define these.
93 (STORE_RETURN_VALUE, EXTRACT_RETURN_VALUE,
94 EXTRACT_STRUCT_VALUE_ADDRESS): Define these instead.
95 (sparc_store_return_value): Remove prototype.
96 (sparc32_store_return_value): New prototype.
97 (sparc32_extract_return_value, sparc_extract_struct_value_address):
100 2003-05-24 Mark Kettenis <kettenis@gnu.org>
102 * sparcnbsd-tdep.c: Include "gdb_string.h".
104 2003-05-23 Andrew Cagney <cagney@redhat.com>
106 * p-valprint.c (pascal_val_print): Replace extract_address with
107 the inline equivalent extract_unsigned_integer.
108 * jv-valprint.c (java_value_print): Ditto.
109 * ada-valprint.c (ada_val_print_1): Ditto.
110 * ada-lang.h (EXTRACT_ADDRESS): Ditto.
112 2003-05-23 Theodore A. Roth <troth@openavr.org>
114 * blockframe.c (frameless_look_for_prologue): Remove unused
115 after_prologue variable.
117 2003-05-23 Mark Kettenis <kettenis@gnu.org>
119 * blockframe.c (get_pc_function_start): Rewrite to avoid
120 asignments in if-statements.
122 2003-05-23 Raoul Gough <RaoulGough@yahoo.co.uk>
124 Committed by Elena Zannoni <ezannoni@redhat.com>.
125 * coffread.c(coff_symtab_read): Do relocate static symbols from PE
126 files, don't relocate absolute symbols (and do use mst_abs).
128 2003-05-23 Andrew Cagney <cagney@redhat.com>
130 * objc-lang.c: Include "gdb_assert.h".
131 (objc_op_print_tab): Use OP_NULL and PREC_NULL instead of 0.
132 (CHECK, CHECK_FATAL, __CHECK_FUNCTION): Delete macros.
133 (gdb_check, gdb_check_fatal): Delete functions.
134 (read_objc_methlist_method): Replace CHECK and CHECK_FATAL with
136 (parse_selector, parse_method, find_methods, find_imps): Ditto.
137 * Makefile.in (objc-lang.o): Update dependencies.
139 2003-05-22 Ian Lance Taylor <ian@airs.com>
141 * disasm.c (gdb_disassemble_info): Initialize disassemble_info
142 with fprintf_filtered, not fprintf_unfiltered.
144 2003-05-22 Andrew Cagney <cagney@redhat.com>
146 * stack.c (frame_info): Inline extract_address, replacing it with
147 extract_unsigned_integer.
148 * findvar.c (unsigned_pointer_to_address): Ditto.
149 * dwarf2loc.c (dwarf_expr_read_reg): Ditto.
150 * dwarf2expr.c (dwarf2_read_address): Ditto.
151 * frame.c (frame_pc_unwind): Update comment.
152 * dummy-frame.c (deprecated_read_register_dummy): Update comment.
154 2003-05-22 Jeff Johnston <jjohnstn@redhat.com>
156 * infptrace.c (detach): Call print_sys_errmsg rather than
157 perror_with_name to issue warning message when errno is non-zero
158 after calling ptrace detach.
160 2003-05-21 J. Brobecker <brobecker@gnat.com>
162 * config/pa/tm-hppa.h: Delete some unused macros. Move some
163 macro definitions from here...
164 * hppa-tdep.c: ...to there.
166 2003-05-20 Kevin Buettner <kevinb@redhat.com>
168 * mips-nat.c (REGISTER_PTRACE_ADDR): Convert macro to function
169 register_ptrace_addr(). Fix all callers.
171 2003-05-21 Andreas Schwab <schwab@suse.de>
173 * Makefile.in (m68k-tdep.o, m68klinux-tdep.o): Update
175 * m68k-tdep.c (m68k_gdbarch_init): Call gdbarch_init_osabi at the
177 * m68klinux-tdep.c (m68k_linux_init_abi): New function.
178 (_initialize_m68k_linux_tdep): New function.
179 (m68k_linux_frame_saved_pc): Make static.
180 (m68k_linux_extract_return_value): Likewise.
181 (m68k_linux_store_return_value): Likewise.
182 (m68k_linux_extract_struct_value_address): Likewise.
183 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE):
185 (DEPRECATED_STORE_RETURN_VALUE): Remove.
186 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
187 (DEPRECATED_FRAME_SAVED_PC): Remove.
189 2003-05-20 Kris Warkentin <kewarken@qnx.com>
191 * nto-tdep.c (fetch_core_registers): Match gdb's idea of
192 regset numbering rather than our own.
194 2003-05-19 David Carlton <carlton@bactrian.org>
196 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/rtti*.
198 2003-05-19 David Carlton <carlton@bactrian.org>
200 Partial fix for PR c++/827.
201 * cp-support.h: Include symtab.h.
202 Declare cp_lookup_symbol_nonlocal, cp_lookup_symbol_namespace.
203 * cp-namespace.c: Update contributors.
204 (cp_lookup_symbol_nonlocal): New.
205 (lookup_namespace_scope, cp_lookup_symbol_namespace)
206 (lookup_symbol_file): Ditto.
207 * c-lang.c (cplus_language_defn): Use cp_lookup_symbol_nonlocal.
208 * block.h: Declare block_scope, block_using, block_global_block.
209 * block.c (block_scope): New.
210 (block_using, block_global_block): Ditto.
211 * Makefile.in (cp_support_h): Depend on symtab_h.
212 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/namespace1.cc.
214 2003-05-19 David Carlton <carlton@bactrian.org>
216 * language.h (struct language_defn): Add 'la_value_of_this'
217 and 'la_lookup_symbol_nonlocal' members.
218 * symtab.h: Declare basic_lookup_symbol_nonlocal,
219 lookup_symbol_static, lookup_symbol_global,
220 lookup_symbol_aux_block.
221 * symtab.c (lookup_symbol_aux): Call language hooks to determine
222 if we should search fields of this and how to do static/global
224 (lookup_symbol_aux_block): Make extern.
225 (basic_lookup_symbol_nonlocal): New.
226 (lookup_symbol_static, lookup_symbol_global): Ditto.
227 * ada-lang.c (ada_language_defn): Set 'la_value_of_this' and
228 'la_lookup_symbol_nonlocal' members.
229 * c-lang.c (c_language_defn, cplus_language_defn)
230 (asm_language_defn, minimal_language_defn): Ditto.
231 * jv-lang.c (java_language_defn): Ditto.
232 * language.c (unknown_language_defn, auto_language_defn)
233 (local_language_defn): Ditto.
234 * m2-lang.c (m2_language_defn): Ditto.
235 * objc-lang.c (objc_language_defn): Ditto.
236 * scm-lang.c (scm_language_defn): Ditto.
237 * f-lang.c (f_language_defn): Ditto, and include value.h as well.
238 * p-lang.c (pascal_language_defn): Ditto for both.
239 * Makefile.in (f-lang.o): Depend on value_h.
242 2003-05-19 David Carlton <carlton@bactrian.org>
244 * block.h: Declare block_static_block.
245 * block.c (block_static_block): New.
246 * symtab.c (lookup_symbol_aux): Remove 'static_block' argument to
247 lookup_symbol_aux_local, calling block_static_block instead.
248 (lookup_symbol_aux_local): Delete 'static_block' argument.
250 2003-05-19 David Carlton <carlton@bactrian.org>
252 * symtab.c (lookup_symbol_aux): Delete #if 0 hunk.
254 2003-05-19 Michal Ludvig <mludvig@suse.cz>
256 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map): Fix
257 register numbers mapping.
259 2003-05-18 Adam Fedor <fedor@gnu.org>
261 * symtab.c (completion_list_objc_symbol): New function.
262 (make_symbol_completion_list): Use it to add ObjC symbols
263 when looking though the list.
264 (language_search_unquoted_string): New function.
265 (make_file_symbol_completion_list): Use it.
267 2003-05-18 Andreas Schwab <schwab@suse.de>
269 * Makefile (m68klinux-nat.o, m68klinux-tdep.o): Update
271 * config/m68k/tm-linux.h (DEPRECATED_EXTRACT_RETURN_VALUE): Define
272 as m68k_linux_extract_return_value.
273 (DEPRECATED_STORE_RETURN_VALUE): Define as
274 m68k_linux_store_return_value.
275 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Define as
276 m68k_linux_extract_struct_value_address.
277 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc): Use
278 get_next_frame, get_frame_base, get_frame_pc.
279 (m68k_linux_frame_saved_pc): Use get_frame_base.
280 (m68k_linux_extract_return_value): New function.
281 (m68k_linux_store_return_value): New function.
282 (m68k_linux_extract_struct_value_address): New function.
283 * config/m68k/tm-m68k.h: Declare m68k_get_longjmp_target.
285 * c-exp.y (typebase): Remove duplicate occurence of
286 `SIGNED_KEYWORD LONG LONG'. Use builtin_type_long_long instead
287 of lookup_signed_typename.
289 2003-05-18 Mark Kettenis <kettenis@gnu.org>
291 * dwarf2loc.c (find_location_expression): Change type of second
292 argument to `size_t *'.
293 (loclist_read_variable, loclist_tracepoint_var_ref): Use size_t
296 2003-05-18 David Carlton <carlton@bactrian.org>
298 * symtab.c (lookup_symbol_aux): Rename 'mangled_name' argument to
299 'linkage_name'. Add comment.
300 (lookup_symbol_aux_local): Rename 'mangled_name' argument to
302 (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
303 (lookup_symbol_aux_psymtabs, lookup_symbol_aux_minsyms)
304 (lookup_block_symbol): Ditto.
306 2003-05-16 Andrew Cagney <cagney@redhat.com>
308 * gdbarch.sh (DEPRECATED_REGISTER_BYTES): Rename REGISTER_BYTES.
309 * gdbarch.h, gdbarch.c: Re-generate.
310 * arm-linux-tdep.c (arm_linux_extract_return_value): Delete reference.
311 * TODO (REGISTER_BYTES): Delete reference.
312 * alpha-tdep.c (alpha_gdbarch_init): Update.
313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
314 * x86-64-tdep.c (x86_64_init_abi): Update.
315 * vax-tdep.c (vax_gdbarch_init): Update.
316 * v850-tdep.c (v850_gdbarch_init): Update.
317 * sparc-tdep.c (sparc_gdbarch_init): Update.
318 * sh-tdep.c (sh_gdbarch_init): Update.
319 * s390-tdep.c (s390_gdbarch_init): Update.
320 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
321 * ns32k-tdep.c (ns32k_gdbarch_init_32082): Update.
322 (ns32k_gdbarch_init_32382): Update.
323 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
324 * mcore-tdep.c (mcore_gdbarch_init): Update.
325 * m68k-tdep.c (m68k_gdbarch_init): Update.
326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
327 * ia64-tdep.c (ia64_gdbarch_init): Update.
328 * i386-tdep.c (i386_gdbarch_init): Update.
329 * i386-linux-tdep.c (i386_linux_init_abi): Update.
330 * hppa-tdep.c (hppa_gdbarch_init): Update.
331 * h8300-tdep.c (h8300_gdbarch_init): Update.
332 * frv-tdep.c (frv_gdbarch_init): Update.
333 * cris-tdep.c (cris_gdbarch_init): Update.
334 * avr-tdep.c (avr_gdbarch_init): Update.
335 * arm-tdep.c (arm_gdbarch_init): Update.
336 * sparc-tdep.c (sparc_pop_frame): Update.
337 * rs6000-tdep.c (rs6000_pop_frame): Update.
338 * remote.c (init_remote_state): Update.
339 (remote_prepare_to_store): Update.
340 * remote-vx.c (vx_prepare_to_store): Update.
341 * remote-sds.c (sds_fetch_registers): Update.
342 (sds_prepare_to_store): Update.
343 * remote-array.c: Update.
344 * regcache.c (init_legacy_regcache_descr): Update.
345 (init_regcache_descr): Update.
346 * mips-tdep.c (mips_eabi_extract_return_value): Update.
347 (mips_o64_extract_return_value): Update.
348 * irix5-nat.c (fetch_core_registers): Update.
349 * irix4-nat.c (fetch_core_registers): Update.
350 * i386-tdep.h: Update.
351 * hppa-tdep.c (pa_do_registers_info): Update.
352 (pa_do_strcat_registers_info): Update.
353 * cris-tdep.c (cris_register_bytes_ok): Update.
354 * config/nm-gnu.h (CHILD_PREPARE_TO_STORE): Update.
355 * config/sparc/tm-sparc.h (DEPRECATED_REGISTER_BYTES): Update.
356 * config/sparc/nm-sun4sol2.h (CHILD_PREPARE_TO_STORE): Update.
357 * config/sparc/nm-sun4os4.h (CHILD_PREPARE_TO_STORE): Update.
358 * config/sparc/nm-nbsd.h (CHILD_PREPARE_TO_STORE): Update.
359 * config/sparc/tm-sp64.h (DEPRECATED_REGISTER_BYTES): Update.
360 * config/s390/tm-s390.h (DEPRECATED_REGISTER_BYTES): Update.
361 * config/pa/tm-hppa64.h (DEPRECATED_REGISTER_BYTES): Update.
362 * config/mips/tm-mips.h (DEPRECATED_REGISTER_BYTES): Update.
363 * config/mips/tm-irix6.h (DEPRECATED_REGISTER_BYTES): Update.
364 * config/mips/tm-irix5.h (DEPRECATED_REGISTER_BYTES): Update.
365 * config/m68k/tm-sun3.h (DEPRECATED_REGISTER_BYTES): Update.
366 (REGISTER_BYTES_OK): Update.
367 * config/m68k/nm-sun3.h (CHILD_PREPARE_TO_STORE): Update.
368 * config/ia64/tm-ia64.h (DEPRECATED_REGISTER_BYTES): Update.
370 2003-05-16 Ian Lance Taylor <ian@airs.com>
372 * vax-tdep.c (INVALID_FLOAT, MAXLEN, NOPCODES): Don't define.
373 (vax_print_insn, print_insn_arg): Remove static functions.
374 (vax_gdbarch_init): Call set_gdbarch_print_insn with
375 print_insn_vax from opcodes library.
376 (_initialize_vax_tdep): Don't set deprecated_tm_print_insn.
378 2003-05-15 Andrew Cagney <cagney@redhat.com>
380 * arch-utils.h (legacy_breakpoint_from_pc): Delete declaration.
381 * target.h (memory_breakpoint_from_pc): Delete declaration.
382 * mem-break.c (memory_breakpoint_from_pc): Delete function.
383 * arch-utils.c (legacy_breakpoint_from_pc): Delete function.
384 * monitor.c (monitor_insert_breakpoint): Use
385 gdbarch_breakpoint_from_pc instead of memory_breakpoint_from_pc.
386 * gdbarch.sh (BREAKPOINT_FROM_PC): Do not provide a default.
387 * gdbarch.h, gdbarch.c: Re-generate.
388 * sparc-tdep.c (sparc_breakpoint_from_pc): New function.
389 (sparc_gdbarch_init): Set breakpoint_from_pc to
390 sparc_breakpoint_from_pc.
391 * config/sparc/tm-sparc.h (BREAKPOINT): Delete macro.
392 (BREAKPOINT_FROM_PC): Define.
393 (sparc_breakpoint_from_pc): Declare.
394 * hppa-tdep.c (hppa_breakpoint_from_pc): New function.
395 * config/pa/tm-hppa.h (hppa_breakpoint_from_pc): Declare.
396 (BREAKPOINT_FROM_PC): Define.
397 (BREAKPOINT): Delete macro.
398 * target.h: Update comment.
399 * s390-tdep.c (s390_gdbarch_init): Update comments.
400 * remote.c: Update comments.
401 * remote-mips.c: Update comments.
402 * proc-api.c (write_with_trace): Do not check for a breakpoint.
403 * mem-break.c: Update comment.
404 * ia64-tdep.c (IA64_BREAKPOINT): Rename BREAKPOINT.
405 (ia64_memory_insert_breakpoint): Update.
406 * config/sparc/tm-sparc.h: Update comment.
407 * config/pa/tm-hppa64.h: Update comment.
408 * rs6000-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
409 (rs6000_breakpoint_from_pc): Update.
410 * mips-tdep.c (BIG_BREAKPOINT, LITTLE_BREAKPOINT): Delete macro.
411 (PMON_BIG_BREAKPOINT, PMON_LITTLE_BREAKPOINT): Delete macro.
412 (IDT_LITTLE_BREAKPOINT, IDT_LITTLE_BREAKPOINT): Delete macro.
413 (MIPS16_LITTLE_BREAKPOINT, MIPS16_BIG_BREAKPOINT): Delete macro.
414 (mips_breakpoint_from_pc): Update.
415 (mips_dump_tdep): Update.
417 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Delete macro.
418 * minsyms.c (lookup_minimal_symbol): Inline
419 DEPRECATED_SYMBOL_MATCHES_NAME. Replace STREQ with strcmp.
421 * c-lang.c (c_printstr): Delete "extern inspect_it" declaration.
422 * p-valprint.c (pascal_object_print_value_fields): Ditto.
423 * p-lang.c (pascal_printstr): Ditto.
424 * objc-lang.c (objc_printstr): Ditto.
425 * m2-lang.c (m2_printstr): Ditto.
426 * jv-valprint.c (java_print_value_fields): Ditto.
427 * f-lang.c (f_printstr): Ditto.
428 * cp-valprint.c (cp_print_value_fields): Ditto. Include "valprint.h".
429 * ada-valprint.c (inspect_it, repeat_count_threshold): Ditto, and
430 for repeat_count_threshold.
431 * Makefile.in (cp-valprint.o): Update dependencies.
433 2003-05-15 Jeff Johnston <jjohnstn@redhat.com>
435 * ia64-tdep.c: Increase max_skip_non_prologue_insns to 40.
436 (examine_prologue): Support looking through leaf functions, knowing
437 they start with mov r2,r12. Support skipping over indirect stores
438 of the input registers. Upon hitting a non-nop branch instruction
439 or predicated instruction, bail out by setting lim_pc to the current
440 pc value in the loop. At the end, if the lim_pc value is still
441 beyond our calculated value and we have trust_limit set,
442 use the lim_pc value.
444 2003-05-15 Andrew Cagney <cagney@redhat.com>
446 * dummy-frame.h (deprecated_find_dummy_frame_regcache): Rename
447 generic_find_dummy_frame.
448 * dummy-frame.c (deprecated_find_dummy_frame_regcache): Update.
449 (deprecated_generic_find_dummy_frame): Update.
450 (deprecated_read_register_dummy): Update.
451 * frame.c (deprecated_generic_get_saved_register): Update.
453 2003-05-15 Theodore A. Roth <troth@openavr.org>
455 * avr-tdep.c (avr_breakpoint_from_pc): New function.
456 (avr_gdbarch_init): Set breakpoint_from_pc method.
458 2003-05-15 Andrew Cagney <cagney@redhat.com>
460 * regcache.c (build_regcache): Set deprecated_register_valid
462 (deprecated_grub_regcache_for_register_valid): Delete function.
463 * regcache.h (deprecated_grub_regcache_for_register_valid): Delete
466 2003-05-15 David Carlton <carlton@bactrian.org>
468 Committed by Elena Zannoni <ezannoni@redhat.com>
469 * symtab.c (lookup_symbol_aux): Delete calls to
470 lookup_symbol_aux_minsyms.
471 (lookup_symbol_aux_minsyms): Comment out function and
472 prototype. Delete lookup by mangled name.
474 2003-05-14 Kevin Buettner <kevinb@redhat.com>
476 * dwarf2expr.c (new_dwarf_expr_context): Set ``stack_len'' to
477 correctly indicate an empty stack and ``stack_allocated'' to the
478 indicate the number of elements initially allocated.
479 (dwarf_expr_grow_stack): Simplify method for computing new
480 stack size. Don't loop infinitely if ``stack_len'' is zero.
481 (execute_stack_op): Move ``ctx->in_reg'' initialization
482 out of loop. Allow DW_OP_reg0 ... DW_OP_reg31 and DW_OP_regx to
483 be used in conjuction with DW_OP_piece. Revise error message
486 2003-05-14 Theodore A. Roth <troth@openavr.org>
488 * MAINTAINERS: Update my email address.
491 2003-05-14 Elena Zannoni <ezannoni@redhat.com>
493 * symtab.h (enum domain_enum): Rename from namespace_enum.
494 (UNDEF_DOMAIN, VAR_DOMAIN, STRUCT_DOMAIN, LABEL_DOMAIN,
495 VARIABLES_DOMAIN, FUNCTIONS_DOMAIN, TYPES_DOMAIN, METHODS_DOMAIN):
496 Rename from UNDEF_NAMESPACE, VAR_NAMESPACE, STRUCT_NAMESPACE,
497 LABEL_NAMESPACE, VARIABLES_NAMESPACE, FUNCTIONS_NAMESPACE,
498 TYPES_NAMESPACE, METHODS_NAMESPACE.
499 (SYMBOL_NAMESPACE): Rename to SYMBOL_DOMAIN.
500 (struct symbol, struct partial_symbol): Rename field
501 'namespace_enum namespace' to 'domain_enum domain'.
502 (PSYMBOL_NAMESPACE): Rename to PSYMBOL_DOMAIN.
503 Delete old define kludge for namespace.
505 * ada-exp.y, ada-lang.c, ada-lang.h, alpha-tdep.c, arm-tdep.c,
506 blockframe.c, c-exp.y, c-valprint.c, coffread.c, dbxread.c,
507 dwarf2read.c, dwarfread.c, f-exp.y, gdbtypes.c, gdbtypes.h,
508 gnu-v3-abi.c, hppa-tdep.c, hpread.c, jv-exp.y, jv-lang.c,
509 language.c, linespec.c, m2-exp.y, m3-nat.c, mdebugread.c,
510 mips-tdep.c, nlmread.c, objc-exp.y, objc-lang.c, objfiles.c,
511 p-exp.y, p-valprint.c, parse.c, printcmd.c, scm-lang.c, source.c,
512 stabsread.c, stack.c, symfile.c, symfile.h, symmisc.c, symtab.c,
513 valops.c, values.c, xcoffread.c, xstormy16-tdep.c: Replace all
514 occurrences of the above.
516 2003-05-14 Ian Lance Taylor <ian@airs.com>
518 * Makefile.in (install-only): Use $(SHELL) when running
521 2003-05-13 Ian Lance Taylor <ian@airs.com>
523 * MAINTAINERS (write after approval): Add myself.
525 * ser-pipe.c (_initialize_ser_pipe): Correct call to memset--swap
526 second and third arguments.
527 * ser-tcp.c (_initialize_ser_tcp): Likewise.
528 * ser-unix.c (_initialize_ser_hardwire): Likewise.
530 2003-05-13 Andrew Cagney <cagney@redhat.com>
532 * defs.h (store_address): Delete declaration.
533 findvar.c (store_address): Delete function.
534 * arm-tdep.c (arm_push_dummy_call): Replace store_address with
535 store_unsigned_integer.
536 * xstormy16-tdep.c (xstormy16_address_to_pointer): Ditto.
537 * v850-tdep.c (v850_push_arguments): Ditto.
538 * sparc-tdep.c (sparc_get_saved_register): Ditto.
539 * sh-tdep.c (sh64_get_saved_register): Ditto.
540 * rs6000-tdep.c (rs6000_push_arguments): Ditto.
541 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Ditto.
542 * mips-tdep.c (mips_eabi_push_arguments): Ditto.
543 (mips_get_saved_register): Ditto.
544 * ia64-tdep.c (ia64_get_saved_register): Ditto.
545 (find_func_descr, ia64_push_arguments): Ditto.
546 * i386-tdep.c (i386_push_arguments): Ditto.
547 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
548 * frv-tdep.c (frv_push_arguments): Ditto.
549 * frame.c (legacy_saved_regs_prev_register): Ditto.
550 (deprecated_generic_get_saved_register): Ditto.
551 * findvar.c (unsigned_address_to_pointer): Ditto.
552 * dwarf2read.c (dwarf2_const_value): Ditto.
553 * arm-linux-tdep.c (arm_linux_push_arguments): Ditto.
554 * alpha-tdep.c (alpha_push_arguments): Ditto.
556 2003-05-12 J. Brobecker <brobecker@gnat.com>
558 * NEWS: Mention that the hppa-hpux port has been partially
559 multiarched (32bit ABIT only, so far).
561 2003-05-11 Andrew Cagney <cagney@redhat.com>
563 * Makefile.in (mi-symbol-cmds.o): Rename mi-cmd-symbol.
564 * config/djgpp/fnchange.lst: Rename include/xtensa-isa-internal.h,
565 include/xtensa-isa.h, sim/testsuite/sim/arm/misaligned1.ms,
566 sim/testsuite/sim/arm/misaligned2.ms, and
567 sim/testsuite/sim/arm/misaligned3.ms.
568 * disasm.h (struct ui_file): Add opaque struct declaration.
569 * config/pa/tm-hppa64.h (struct type, struct frame_info): Ditto.
570 * frame.h (struct ui_file): Ditto.
572 2003-05-11 Mark Kettenis <kettenis@gnu.org>
574 * value.h: Pretty print.
576 2003-05-10 Mark Kettenis <kettenis@gnu.org>
578 * config/i386/tm-linux.h (I386_GNULINUX_TARGET): Remove define.
580 2003-05-08 Andrew Cagney <cagney@redhat.com>
582 * regcache.h (max_register_size): Delete declaration.
583 * regcache.c (max_register_size): Delete function.
584 (struct regcache_descr): Delete field "max_register_size".
585 (init_regcache_descr, init_legacy_regcache_descr): Assert that all
586 registers fit in MAX_REGISTER_SIZE.
587 (regcache_save): Replace max_register_size with MAX_REGISTER_SIZE.
588 (regcache_restore, regcache_xfer_part, regcache_dump): Ditto.
589 * thread-db.c: Replace max_register_size with MAX_REGISTER_SIZE.
590 * sh-tdep.c, rom68k-rom.c, remote-sim.c, remote-mips.c: Ditto.
591 * remote-e7000.c, monitor.c, mipsv4-nat.c, mips-nat.c: Ditto.
592 * m68klinux-nat.c, lynx-nat.c, irix4-nat.c: Ditto.
593 * hpux-thread.c, hppah-nat.c, hppab-nat.c, hppa-tdep.c: Ditto.
594 * dve3900-rom.c, hppa-tdep.c: Ditto.
596 2003-05-08 David Carlton <carlton@math.stanford.edu>
598 * valops.c (push_word): Fix typo.
600 2003-05-08 Andrew Cagney <cagney@redhat.com>
602 * gdbarch.sh: Delete references to MAX_REGISTER_RAW_SIZE.
603 * gdbarch.h: Re-generate.
604 * defs.h (MAX_REGISTER_RAW_SIZE): Delete macro.
605 (legacy_max_register_raw_size): Delete declaration.
606 * regcache.c (legacy_max_register_raw_size): Delete function.
607 * valops.c: Replace MAX_REGISTER_RAW_SIZE with MAX_REGISTER_SIZE.
608 * target.c, stack.c, sparc-tdep.c, sh-tdep.c: Ditto.
609 * rs6000-tdep.c, rs6000-nat.c, remote.c, remote-sim.c: Ditto.
610 * remote-rdp.c, remote-array.c, regcache.c: Ditto.
611 * ppc-linux-nat.c, monitor.c, mn10300-tdep.c: Ditto.
612 * mips-tdep.c, mips-linux-tdep.c, m68klinux-nat.c: Ditto.
613 * infptrace.c, ia64-tdep.c, i386-tdep.c, frame.c: Ditto.
614 * findvar.c, dwarf2cfi.c: Ditto.
616 2003-05-08 Andrew Cagney <cagney@redhat.com>
618 * mips-tdep.c (read_signed_register): New function, moved to here
620 (read_signed_register_pid): Ditto.
621 * regcache.c (read_signed_register_pid): Delete function, moved to
623 (read_signed_register): Ditto.
624 * regcache.h (read_signed_register): Delete declaration.
625 (read_signed_register_pid): Delete declaration.
627 2003-05-08 Andrew Cagney <cagney@redhat.com>
629 * gdbarch.sh: Add comments on MAX_REGISTER_SIZE.
630 * gdbarch.h: Re-generate.
631 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Delete macro.
632 (legacy_max_register_virtual_size): Delete declaration.
633 * infcmd.c (default_print_registers_info): Use MAX_REGISTER_SIZE.
634 * d10v-tdep.c (d10v_print_registers_info): Ditto.
635 * tracepoint.c (memrange_sortmerge): Ditto.
636 * sparc-tdep.c (sparc_print_registers): Ditto.
637 * regcache.c (legacy_max_register_virtual_size): Delete function.
639 2002-05-08 J. Brobecker <brobecker@gnat.com>
641 * fork-child.c (escape_bang_in_quoted_argument): New function.
642 (fork_inferior): Escape '!' characters in quoted arguments
645 2003-05-08 J. Brobecker <brobecker@gnat.com>
647 * dwarf2read.c (set_cu_language): Set the language to "minimal" if
648 the language of the CU is not currently supported by GDB.
650 2003-05-08 J. Brobecker <brobecker@gnat.com>
652 * defs.h (language): Add language_minimal enum value.
653 * c-lang.c (minimal_language_defn): New language definition.
654 (_initialize_c_language): Add the new minimal language to the list
655 of languages known to GDB.
657 2003-05-08 Kevin Buettner <kevinb@redhat.com>
659 * frame.c (get_frame_type): Don't attempt to lazily initialize
660 frame's unwinder for legacy frames.
662 2003-05-07 Andrew Cagney <cagney@redhat.com>
664 * ia64-tdep.c (ia64_remote_translate_xfer_address): Add "gdbarch"
665 and "regcache" parameters.
666 * avr-tdep.c (avr_remote_translate_xfer_address): Ditto.
668 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
670 * dwarf2read.c (dwarf_decode_lines): Only use output of
671 check_cu_functions() when calling record_line(). Do not update
674 2003-05-07 Andrew Cagney <cagney@redhat.com>
676 * fork-child.c (startup_inferior): Delete #ifdef STARTUP_INFERIOR
679 2003-05-07 Jim Blandy <jimb@redhat.com>
681 Rename commands 'maint list symtabs' and 'maint list psymtabs' to
682 'maint info symtabs' and 'maint info psymtabs'.
683 * symmisc.c (maintenance_info_symtabs, maintenance_info_psymtabs):
684 Renamed from maintenance_list_symtabs and maintenance_list_psymtabs.
685 * symtab.h (maintenance_info_symtabs, maintenance_info_psymtabs):
686 Declarations updated.
687 * maint.c (maintenance_list_command): Delete.
688 (_initialize_maint_cmds): Update calls to add_cmd.
689 * gdbcmd.h (maintenancelistlist): Delete declaration.
690 * cli/cli-cmds.c (maintenancelistlist): Delete.
691 (init_cmd_lists): Don't initialize it.
692 * cli/cli-cmds.h (maintenancelistlist): Delete declaration.
694 2003-05-07 Andrew Cagney <cagney@redhat.com>
696 * d10v-tdep.c (remote_d10v_translate_xfer_address): Add
698 (d10v_print_registers_info): Update.
699 (d10v_dmap_register, d10v_imap_register): Delete functions.
700 (struct gdbarch_tdep): Add "regcache" parameter to "dmap_register"
702 (d10v_ts2_dmap_register, d10v_ts2_imap_register): Add "regcache".
703 (d10v_ts3_dmap_register, d10v_ts3_imap_register): Add "regcache".
704 * arch-utils.c (generic_remote_translate_xfer_address): Add
705 "regcache" and "gdbarch" parameters.
706 * gdbarch.sh (REMOTE_TRANSLATE_XFER_ADDRESS): Add "regcache"
707 parameter. Change class to multi-arch.
708 * gdbarch.h, gdbarch.c: Re-generate.
709 * remote.c (remote_xfer_memory): Use
710 gdbarch_remote_translate_xfer_address.
712 2003-05-07 Jeff Johnston <jjohnstn@redhat.com>
714 * infrun.c (prev_pc): Move declaration ahead of proceed().
715 (proceed): Refresh prev_pc value before resuming.
716 (stop_stepping): Remove code to refresh prev_pc.
718 2003-05-06 Kris Warkentin <kewarken@qnx.com>
720 * nto-tdep.c: Removed stray comment.
722 2003-05-06 Kris Warkentin <kewarken@qnx.com>
724 * i386-nto-tdep.c: Fix old K&R function definitions.
725 * nto-tdep.c: Likewise and change stat.h include to gdb_stat.h.
726 Also change add_show_from_set() call to add_setshow_cmd().
727 * nto-tdep.h: Remove PARAMS and grep ^func ARI hits.
729 2003-05-05 Andrew Cagney <cagney@redhat.com>
731 * dummy-frame.c: Include "command.h" and "gdbcmd.h".
732 (fprint_dummy_frames): New function.
733 (maintenance_print_dummy_frames): New function.
734 (_initialize_dummy_frame): Add command "maint print dummy-frames".
735 * frame.c (fprint_frame_id): Make global.
736 * frame.h (fprint_frame_id): Declare.
737 * Makefile.in (dummy-frame.o): Update dependencies.
739 2003-05-05 Andrew Cagney <cagney@redhat.com>
741 * gdbarch.sh (DEPRECATED_REGISTER_SIZE): Rename REGISTER_SIZE.
742 (DEPRECATED_SIZEOF_CALL_DUMMY_WORDS): Rename
743 SIZEOF_CALL_DUMMY_WORDS.
744 (DEPRECATED_CALL_DUMMY_WORDS): Rename CALL_DUMMY_WORDS.
745 (DEPRECATED_FIX_CALL_DUMMY): Rename FIX_CALL_DUMMY.
746 (DEPRECATED_CALL_DUMMY_BREAKPOINT_OFFSET): Rename
747 CALL_DUMMY_BREAKPOINT_OFFSET.
748 (DEPRECATED_CALL_DUMMY_START_OFFSET): Rename
749 CALL_DUMMY_START_OFFSET.
750 (DEPRECATED_CALL_DUMMY_LENGTH): Rename CALL_DUMMY_LENGTH.
751 * gdbarch.h, gdbarch.c: Re-generate.
752 * alpha-tdep.c, alphafbsd-tdep.c, arm-linux-tdep.c: Update.
753 * arm-tdep.c, avr-tdep.c, breakpoint.c, cris-tdep.c: Update.
754 * dummy-frame.c, dummy-frame.h, frv-tdep.c, gdbarch.c: Update.
755 * gdbarch.h, gdbarch.sh, h8300-tdep.c, hppa-tdep.c: Update.
756 * i386-tdep.c, ia64-tdep.c, infcall.c, inferior.h: Update.
757 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Update.
758 * mips-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Update.
759 * rs6000-tdep.c, s390-tdep.c, sh-tdep.c, sol-thread.c: Update.
760 * sparc-tdep.c, target.c, v850-tdep.c, valops.c: Update.
761 * vax-tdep.c, x86-64-tdep.c, xstormy16-tdep.c: Update.
762 * config/ia64/tm-ia64.h, config/m68k/tm-vx68.h: Update.
763 * config/mips/tm-mips.h, config/pa/nm-hppah.h: Update.
764 * config/pa/tm-hppa.h, config/pa/tm-hppa64.h: Update.
765 * config/s390/tm-s390.h, config/sparc/tm-sp64.h: Update.
766 * config/sparc/tm-sparc.h: Update.
768 2003-05-05 Kris Warkentin <kewarken@qnx.com>
770 * configure.tgt: Add i[3456]86-*-nto*.
771 * i386-nto-tdep.c: New file. i386 specific support for QNX Neutrino.
772 * nto-tdep.c: New file. Neutrino target support routines.
773 * nto-tdep.h: New file. Neutrino target header.
774 * config/tm-qnxnto.h: New file.
775 * config/i386/i386nto.mt: New file.
776 * config/i386/tm-i386nto.h: New file.
778 2003-05-04 Andrew Cagney <cagney@redhat.com>
780 * gdbthread.h (save_infrun_state): Drop prev_func_name parameter.
781 (load_infrun_state): Ditto.
782 (struct thread_info): Drop "prev_func_name" field.
783 * thread.c (load_infrun_state): Update.
784 (save_infrun_state): Update.
785 * infrun.c (prev_func_name): Delete variable.
786 (init_wait_for_inferior): Do not clear prev_func_name.
787 (stop_stepping, keep_going, context_switch): Do not swap
789 (handle_inferior_event, check_sigtramp2): Use pc_in_sigtramp
790 instead of PC_IN_SIGTRAMP.
792 2003-05-04 Andrew Cagney <cagney@redhat.com>
794 * sentinel-frame.c (sentinel_frame_prev_register): Replace
795 REGISTER_BYTE with register_offset_hack.
796 * regcache.c (init_regcache_descr): When REGISTER_BYTE_P, check
797 that REGISTER_BYTE is consistent with the regcache.
798 * gdbarch.sh (REGISTER_BYTE): Add a predicate.
799 * gdbarch.h, gdbarch.c: Regenerate.
801 2003-05-04 Mark Kettenis <kettenis@gnu.org>
803 * i387-tdep.c (fxsave_offset): Add entries for %xmm8-%xmm15.
804 (FXSAVE_ADDR, i387_supply_fxsave): Add support for %xmm8-%xmm15.
806 * i386-linux-nat.c (supply_gregset): Remove unnecessary casts.
808 2003-05-03 J. Brobecker <brobecker@gnat.com>
810 From Thierry Schneider <tpschneider1@yahoo.com>
811 * Makfile.in (SUBDIR_MI_OBS): Add dependency on mi-cmd-symbol.o.
812 (SUBDIR_MI_SRCS): Add mi-cmd-symbol.c.
813 (mi-cmd-symbol.o): Add rule.
815 2003-05-03 Andrew Cagney <cagney@redhat.com>
817 * gdbarch.sh (PUSH_DUMMY_CODE): New architecture method, add
818 comments noteing that it replaces the old FIX_CALL_DUMMY code.
819 * gdbarch.h, gdbarch.c: Re-generate.
820 * d10v-tdep.c (d10v_push_dummy_code): New function.
821 (d10v_gdbarch_init): Set push_dummy_code.
822 * infcall.c (legacy_push_dummy_code): New function.
823 (generic_push_dummy_code): New function.
824 (push_dummy_code): New function.
825 (call_function_by_hand): Call push_dummy_code. Pass bp_addr,
826 instead of dummy_addr, to push_dummy_call. Move call to
827 generic_save_call_dummy_addr to outside of CALL_DUMMY_LOCATION
829 * sparc-tdep.c (sparc_gdbarch_init): Mention push_dummy_code.
831 2003-05-03 Andrew Cagney <cagney@redhat.com>
833 * disasm.h (print_insn): Declare.
834 * disasm.c (init_gdb_disassemble_info): New function.
835 (gdb_disassembly): Call init_gdb_disassemble_info.
836 (gdb_print_insn): New function.
837 * v850-tdep.c (v850_scan_prologue): Call gdb_print_insn, instead
838 of TARGET_PRINT_INSN. Send debug info to "gdb_stdlog".
839 * mcore-tdep.c: Include "disasm.h"
840 (mcore_dump_insn): Call gdb_print_insn, instead of TARGET_PRINT_INSN.
841 * d10v-tdep.c: Include "disasm.h".
842 (display_trace): Call gdb_print_insn, instead of print_insn.
843 (print_insn): Delete function.
844 * printcmd.c: Include "disasm.h".
845 (print_insn): Delete function.
846 (print_formatted): Call gdb_print_insn, instead of print_insn.
847 * Makefile.in (printcmd.o): Update dependencies.
848 (mcore-tdep.o, d10v-tdep.o): Ditto.
850 2003-05-02 Andrew Cagney <cagney@redhat.com>
852 * std-regs.c (value_of_builtin_frame_pc_reg): Delete #ifdef
853 PC_REGNUM, re-indent.
854 * stack.c (frame_info): Use "pc" for the name of get_frame_pc when
857 * gdbarch.sh (REGISTER_SIZE, REGISTER_BYTES): Make optional.
858 * gdbarch.h, gdbarch.c: Re-generate.
859 * d10v-tdep.c (d10v_gdbarch_init): Do not set register_size,
860 register_virtual_size, pc_regnum, or register_bytes.
861 (D10V_PC_REGNUM): Rename _PC_REGNUM.
862 (d10v_register_type): Use D10V_PC_REGNUM.
863 (d10v_print_registers_info, d10v_read_pc): Ditto.
864 (d10v_write_pc, d10v_eva_prepare_to_trace): Ditto.
865 (d10v_unwind_pc, d10v_frame_prev_register): Ditto.
867 2003-05-02 David Carlton <carlton@bactrian.org>
869 * objfiles.c (allocate_objfile): For anonymous objfiles, allocate
870 the name with mstrsave.
872 2003-05-02 Elena Zannoni <ezannoni@redhat.com>
874 * charset.c (GDB_DEFAULT_TARGET_CHARSET,
875 GDB_DEFAULT_HOST_CHARSET): Move to earlier in the file.
876 (host_charset_name, target_charset_name): New vars for use by
878 (host_charset_enum, target_charset_enum): New enums for set/show
880 (set_charset_sfunc, set_host_charset_sfunc,
881 set_target_charset_sfunc): New functions.
882 (set_host_charset, set_target_charset): Make static.
883 (list_charsets, set_host_charset_command,
884 set_target_charset_command): Delete functions.
885 (show_charset_command): Rewrite as....
886 (show_charset): Hook this up with the set/show command mechanism.
887 (_initialize_charset): Change names of charsets to match the
888 set/show enums. Use host_charset_name and target_charset_name.
889 Use set/show mechanism for charset, host-charset, target-charset
890 commands. Do not make 'show host-charset' and 'show
891 target-charset' be aliases of 'show charset'.
893 * charset.h (set_host_charset, set_target_charset): Don't export,
894 they are not used outside the file.
896 2003-05-01 Andrew Cagney <cagney@redhat.com>
898 * disasm.c (gdb_disassemble_from_exec): Delete global variable.
899 (gdb_disassembly): Make "di" non static, always initialize and
900 cleanup. Always use dis_asm_read_memory.
901 (gdb_dis_asm_read_memory): Delete function.
903 2003-05-01 Andrew Cagney <cagney@redhat.com>
905 * d10v-tdep.c (d10v_frame_align): Replace d10v_stack_align.
906 (d10v_gdbarch_init): Set frame_align instead of stack_align.
908 2003-04-30 Andrew Cagney <cagney@redhat.com>
910 * gdbarch.sh (deprecated_tm_print_insn_info): Rename
911 "tm_print_insn_info".
912 (TARGET_PRINT_INSN_INFO): Delete macro.
913 (dis_asm_read_memory): Delete function declaration.
914 (dis_asm_memory_error, dis_asm_print_address): Ditto.
915 (tm_print_insn_info): Delete variable definition.
916 (_initialize_gdbarch): Do not initialize "tm_print_insn_info".
917 * gdbarch.h, gdbarch.c: Re-generate.
918 * d10v-tdep.c (display_trace): Replace "tm_print_insn_info" with
919 "deprecated_tm_print_insn_info".
920 * mcore-tdep.c (mcore_dump_insn): Ditto.
921 * mips-tdep.c (mips_gdbarch_init): Ditto.
922 * sparc-tdep.c (_initialize_sparc_tdep): Ditto.
923 * v850-tdep.c (v850_scan_prologue, v850_gdbarch_init): Ditto.
924 * ia64-tdep.c (_initialize_ia64_tdep): Ditto.
925 * printcmd.c (print_insn): Use "deprecated_tm_print_insn_info"
926 instead of TARGET_PRINT_INSN_INFO, add comment.
927 * s390-tdep.c (s390_get_frame_info): Instead of
928 "dis_asm_read_memory", use "deprecated_tm_print_insn_info".
929 (s390_check_function_end, s390_is_sigreturn): Ditto.
930 * corefile.c (dis_asm_read_memory): Move to "disasm.c".
931 (dis_asm_memory_error, dis_asm_print_address): Ditto.
932 * disasm.c: Include "gdbcore.h".
933 (_initialize_disasm): New function, initialize
934 "deprecated_tm_print_insn_info".
935 (deprecated_tm_print_insn_info): New variable.
936 (dis_asm_read_memory): Moved from "corefile.c", made static.
937 (dis_asm_print_address, dis_asm_memory_error): Ditto.
938 * Makefile.in (disasm.o): Update dependencies.
940 2003-04-30 Andrew Cagney <cagney@redhat.com>
942 * sparc-tdep.c (SPARC_HAS_FPU): When multi-arch, define as 1.
944 2003-04-29 Adam Fedor <fedor@gnu.org>
946 * eval.c (evaluate_subexp_standard): Handle ObjC ops.
947 * infcall.c (find_function_addr): Make non-static.
948 * infcall.h (find_function_addr): Declare.
949 * Makefile.in (eval.o): Update dependencies.
951 2003-04-28 Adam Fedor <fedor@gnu.org>
953 * symtab.c (symbol_find_demangled_name): Check for and demangle
955 (symbol_init_demangled_name): Init for language_objc as well.
957 2003-04-28 Andrew Cagney <cagney@redhat.com>
959 * gdbarch.sh (DEPRECATED_TARGET_READ_FP): Replace TARGET_READ_FP.
960 (DEPRECATED_FP_REGNUM): Replace FP_REGNUM.
961 * gdbarch.h, gdbarch.c: Re-generate.
962 * infcall.c (call_function_by_hand): Use DEPRECATED_FP_REGNUM,
963 DEPRECATED_TARGET_READ_FP, or "sp" to create the dummy frame ID.
964 * inferior.h (deprecated_read_fp): Rename read_fp.
965 (generic_target_read_fp): Delete declaration.
966 * regcache.c (generic_target_read_fp): Delete function.
967 (deprecated_read_fp): Replace read_fp, use
968 DEPRECATED_TARGET_READ_FP or DEPRECATED_FP_REGNUM.
969 * d10v-tdep.c (d10v_read_fp): Delete function.
970 (d10v_gdbarch_init): Do not set deprecated_read_fp.
972 * sparc-tdep.c (sparc_gdbarch_init): Do not set
973 deprecated_target_read_fp to generic_target_read_fp.
974 * sh-tdep.c (sh_gdbarch_init): Ditto.
975 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
977 * frv-tdep.c (frv_gdbarch_init): Ditto.
979 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set
980 deprecated_fp_regnum.
981 * x86-64-tdep.c (x86_64_init_abi): Ditto.
982 * vax-tdep.c (vax_gdbarch_init): Ditto.
983 * v850-tdep.c (v850_gdbarch_init): Ditto.
984 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
985 * sh-tdep.c (sh_gdbarch_init): Ditto.
986 * s390-tdep.c (s390_gdbarch_init): Ditto.
987 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
988 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
989 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
990 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
992 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
993 * i386-tdep.c (i386_gdbarch_init): Ditto.
994 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
995 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
996 * frv-tdep.c (frv_gdbarch_init): Ditto.
997 * cris-tdep.c (cris_gdbarch_init): Ditto.
998 * avr-tdep.c (avr_gdbarch_init): Ditto.
999 * arm-tdep.c (arm_gdbarch_init): Ditto.
1000 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1002 * x86-64-tdep.c (x86_64_init_abi): Set deprecated_target_read_fp.
1003 * v850-tdep.c (v850_gdbarch_init): Ditto.
1004 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1005 * sh-tdep.c (sh_gdbarch_init): Ditto.
1006 * s390-tdep.c (s390_gdbarch_init): Ditto.
1007 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1008 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1009 * mips-tdep.c (mips_gdbarch_init): Ditto.
1010 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1011 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1012 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1013 * frv-tdep.c (frv_gdbarch_init): Ditto.
1014 * avr-tdep.c (avr_gdbarch_init): Ditto.
1015 * arm-tdep.c (arm_gdbarch_init): Ditto.
1017 * vax-tdep.c (vax_frame_init_saved_regs): Replace FP_REGNUM with
1018 DEPRECATED_FP_REGNUM.
1019 (vax_push_dummy_frame, vax_pop_frame): Ditto.
1020 * std-regs.c (value_of_builtin_frame_fp_reg): Ditto.
1021 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
1022 (sparc_push_dummy_frame, sparc64_read_fp): Ditto.
1023 (sparc32_register_virtual_type): Ditto.
1024 * sh-tdep.c (sh64_frame_chain): Ditto.
1025 (sh64_get_saved_register, sh64_pop_frame): Ditto.
1026 (sh_nofp_frame_init_saved_regs): Ditto.
1027 (sh64_nofp_frame_init_saved_regs): Ditto.
1028 (sh_fp_frame_init_saved_regs): Ditto.
1029 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1030 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1031 * procfs.c (procfs_fetch_registers): Ditto.
1032 (procfs_store_registers): Ditto.
1033 * ns32knbsd-nat.c (fetch_inferior_registers): Ditto.
1034 (store_inferior_registers, fetch_core_registers): Ditto.
1035 (fetch_kcore_registers, clear_regs): Ditto.
1036 * ns32k-tdep.c (ns32k_frame_init_saved_regs): Ditto.
1037 (ns32k_push_dummy_frame, ns32k_pop_frame): Ditto.
1038 * nlm/i386.h (DEPRECATED_FP_REGNUM): Ditto.
1039 * nlm/i386.c (do_status): Ditto.
1040 * mipsv4-nat.c (supply_gregset): Ditto.
1041 * mips-tdep.c: Ditto for comments.
1042 * mips-nat.c (fetch_inferior_registers): Ditto.
1043 (store_inferior_registers, fetch_core_registers): Ditto.
1044 * m68k-tdep.c (m68k_push_dummy_frame): Ditto.
1045 (m68k_pop_frame, m68k_frame_init_saved_regs): Ditto.
1046 * i386-tdep.c (i386_frame_init_saved_regs): Ditto.
1047 (i386_do_pop_frame, i386_register_type): Ditto.
1048 * hppa-tdep.c (hppa_frame_chain): Ditto.
1049 (hppa_push_dummy_frame, find_dummy_frame_regs): Ditto.
1050 (hppa_pop_frame, hppa_read_fp): Ditto.
1051 (skip_prologue_hard_way, hppa_frame_find_saved_regs): Ditto.
1052 * cris-tdep.c (cris_examine, cris_pop_frame): Ditto.
1053 * config/vax/nm-vax.h (REGISTER_U_ADDR): Ditto.
1054 * config/sparc/tm-sparc.h (DEPRECATED_FP_REGNUM): Ditto.
1055 * config/sparc/tm-sp64.h (DEPRECATED_FP_REGNUM): Ditto.
1056 * config/s390/tm-s390.h (DEPRECATED_FP_REGNUM): Ditto.
1057 * config/pa/tm-hppa64.h (DEPRECATED_FP_REGNUM): Ditto.
1058 * config/ia64/tm-ia64.h (DEPRECATED_FP_REGNUM): Ditto.
1059 * blockframe.c: Ditto for comments.
1060 * arch-utils.h: Ditto for comments.
1061 * arch-utils.c (legacy_virtual_frame_pointer): Ditto.
1062 * alphanbsd-tdep.c (fetch_core_registers): Ditto.
1063 * alphabsd-nat.c (fetch_inferior_registers): Ditto.
1064 * alpha-tdep.h: Ditto for comments.
1065 * alpha-tdep.c (alpha_cannot_fetch_register): Ditto.
1066 (alpha_cannot_store_register): Ditto.
1067 (alpha_push_dummy_frame): Ditto.
1068 * alpha-nat.c (supply_gregset): Ditto.
1070 * config/sparc/tm-sp64.h (DEPRECATED_TARGET_READ_FP): Update.
1071 * config/pa/tm-hppa64.h (DEPRECATED_TARGET_READ_FP): Update.
1072 * config/sparc/tm-sparc.h: Update comment.
1074 * hppa-tdep.c (hppa_init_extra_frame_info): Use
1075 deprecated_read_fp instead of TARGET_READ_FP.
1076 (hppa_init_extra_frame_info, hppa_frame_chain): Ditto.
1077 (hppa_push_dummy_frame, hppa_read_fp): Ditto.
1078 * sparc-tdep.c (sparc_init_extra_frame_info): Use
1079 deprecated_read_fp instead of read_fp.
1080 * s390-tdep.c (s390_push_arguments): Ditto.
1081 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1082 * frame.h: Ditto in comments.
1083 * frame.c (legacy_get_prev_frame): Ditto.
1084 * dummy-frame.c (dummy_frame_this_id): Ditto.
1085 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
1087 2003-04-28 Andrew Cagney <cagney@redhat.com>
1089 * gdbarch.sh (deprecated_tm_print_insn): Rename tm_print_insn.
1090 * gdbarch.h, gdbarch.c: Re-generate.
1091 * xstormy16-tdep.c (_initialize_xstormy16_tdep): Update.
1092 * vax-tdep.c (_initialize_vax_tdep): Update.
1093 * v850-tdep.c (_initialize_v850_tdep): Update.
1094 * sparc-tdep.c (_initialize_sparc_tdep): Update.
1095 * s390-tdep.c (_initialize_s390_tdep): Update.
1096 * ns32k-tdep.c (_initialize_ns32k_tdep): Update.
1097 * mn10300-tdep.c (_initialize_mn10300_tdep): Update.
1098 * mips-tdep.c (_initialize_mips_tdep): Update.
1099 * mcore-tdep.c (_initialize_mcore_tdep): Update.
1100 * m68k-tdep.c (_initialize_m68k_tdep): Update.
1101 * ia64-tdep.c (_initialize_ia64_tdep): Update.
1102 * hppa-tdep.c (_initialize_hppa_tdep): Update.
1103 * h8300-tdep.c (_initialize_h8300_tdep): Update.
1104 * frv-tdep.c (_initialize_frv_tdep): Update.
1105 * cris-tdep.c (cris_delayed_get_disassembler): Update.
1106 (_initialize_cris_tdep): Update.
1107 * arch-utils.c (legacy_print_insn): Update.
1108 * alpha-tdep.c (_initialize_alpha_tdep): Update.
1110 2003-04-26 Adam Fedor <fedor@gnu.org>
1112 * linespec.c (decode_objc): New function to decode ObjC calls
1113 (decode_line_1): Check for ObjC calls (using decode_objc)
1114 * Makefile (linespec.o): Update dependencies.
1116 2003-04-26 Daniel Jacobowitz <drow@mvista.com>
1118 * breakpoint.h (struct breakpoint_ops): New.
1119 (struct breakpoint): Add ops member.
1121 * breakpoint.c (print_bp_stop_message, print_one_breakpoint)
1122 (mention): Use new breakpoint ops member.
1123 (set_raw_breakpoint): Initialize ops field to NULL.
1124 (print_exception_catchpoint, print_one_exception_catchpoint)
1125 (print_mention_exception_catchpoint, handle_gnu_v3_exceptions): New.
1126 (gnu_v3_exception_catchpoint_ops): New.
1127 (catch_exception_command_1): Call handle_gnu_v3_exceptions.
1129 2003-04-25 Adam Fedor <fedor@gnu.org>
1131 * Makefile.in (COMMON_OBS): Add objc-lang.o
1133 2003-04-25 Andrew Cagney <cagney@redhat.com>
1135 * d10v-tdep.c (print_insn): Delete function.
1136 (display_trace): Use TARGET_PRINT_INSN.
1137 (_initialize_d10v_tdep): Do not set tm_print_insn.
1138 (d10v_gdbarch_init): Set print_insn.
1140 2003-04-25 Andrew Cagney <cagney@redhat.com>
1142 * d10v-tdep.c (d10v_extract_return_value): Delete call to printf.
1143 (_initialize_d10v_tdep): Use add_setshow_boolean_cmd.
1144 (d10v_frame_unwind_cache): Use FRAME_OBSTACK_CALLOC.
1145 (NR_DMAP_REGS, A0_REGNUM): Delete, replaced by ...
1146 (nr_dmap_regs, a0_regnum): ... new functions.
1147 (d10v_print_registers_info): Use a0_regnum, use register_size.
1148 (d10v_register_byte): Delete function.
1149 (d10v_register_raw_size): Delete function.
1150 (d10v_register_type): Use a0_regnum.
1151 (d10v_print_registers_info): Use a0_regnum.
1152 (D10V_SP_REGNUM): Rename _SP_REGNUM, replace it and SP_REGNUM.
1153 (d10v_gdbarch_init): Do not set register_byte or
1154 register_raw_size, use D10V_SP_REGNUM to set sp_regnum.
1155 (d10v_pointer_to_address): Use extract_unsigned_integer instead of
1157 (trace_command): Use XCALLOC.
1158 (print_insn): Delete reference to tm_print_insn.
1159 (saved_regs_unwinder): Use store_unsigned_integer instead of
1161 * frame.h (FRAME_OBSTACK_CALLOC): Define
1163 2003-04-25 David Carlton <carlton@bactrian.org>
1165 * config/djgpp/fnchange.lst: Add testsuite/gdb.c++/maint.exp.
1167 2003-04-24 Adam Fedor <fedor@gnu.org>
1169 * objc-lang.c: Include "valprint.h"
1170 * Makefile.in (objc-lang.o): Update dependencies.
1172 2003-04-24 Adam Fedor <fedor@gnu.org>
1174 * objc-lang.c (FETCH_ARGUMENT, CONVERT_FUNCPTR): Remove
1175 architecture dependant compilation and mark as unimplemented
1176 (until they get put in the gdbarch vector).
1178 2003-04-23 David Carlton <carlton@bactrian.org>
1180 * cp-support.c (cp_find_first_component): Accept 'operator' in
1183 2003-04-23 Andrew Cagney <cagney@redhat.com>
1185 * infcall.c (call_function_by_hand): Eliminate redundant
1186 indentation. Move "saved_async" and "old_cleanups" to where they
1189 2003-04-23 Andrew Cagney <cagney@redhat.com>
1191 * infcall.c (call_function_by_hand): Eliminate the variables "rc"
1192 and "buffer". Move the "name" code to where it is needed.
1194 2003-04-23 Andrew Cagney <cagney@redhat.com>
1196 * infcall.c (call_function_by_hand): Move variables "start_sp",
1197 "dummy", "sizeof_dummy1" and "dummy1" and corresponding dummy call
1198 code to ON_STACK switch branch.
1200 2003-04-23 Andrew Cagney <cagney@redhat.com>
1202 * infcall.c (call_function_by_hand): Make declaration of "i",
1203 "sal", "bpt" and "old_sp" more local to their use. Delete #if
1206 2003-04-23 Andrew Cagney <cagney@redhat.com>
1208 * infcall.c (call_function_by_hand): Delete variable
1209 "n_method_args". Localize "param_type"'s declaration to the loop
1210 that it is used. Reinstate code assigning to said variable -
1211 deleted on 2002-06-14. Rationalize calls to value_args_coerce.
1212 Rationalize code using "param_type".
1214 2003-04-22 Andrew Cagney <cagney@redhat.com>
1216 * infcall.c (call_function_by_hand): Use new variable "bp_addr" to
1217 compute the breakpoint address. Only call FIX_CALL_DUMMY when
1218 ON_STACK. Eliminate the variable "addr". Do not pass "real_pc"
1219 to DEPRECATED_PUSH_RETURN_ADDRESS.
1221 2003-04-22 Kevin Buettner <kevinb@redhat.com>
1223 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Invoke DWARF2_REG_TO_REGNUM
1224 on the DWARF2 register number prior to fetching a register.
1226 2003-04-22 J. Brobecker <brobecker@gnat.com>
1228 * config/pa/tm-hppa.h (SOFT_FLOAT): Delete this macro.
1229 Update all the tests using SOFT_FLOAT considering the fact that
1230 this macro was always set to 0.
1231 * config/pa/tm-hppa64.h: Update all the tests using SOFT_FLOAT
1232 considering the fact that this macro was always set to 0.
1233 * hppa-tdep.h (hppa_store_return_value): Likewise.
1234 (hppa_extract_return_value): Likewise.
1236 2003-04-22 J. Brobecker <brobecker@gnat.com>
1238 * config/pa/tm-hppa.h: Remove obsolete code, was used by
1239 the hppa-pro target only.
1241 2003-04-21 J. Brobecker <brobecker@gnat.com>
1243 Ongoing multi-arch conversion effort for HP/UX:
1244 * config/pa/tm-hppa.h: Move all macro that are no longer
1245 defined now that GDB_MULTI_ARCH is now set to 1 from here...
1246 * config/pa/tm-hppa64.h: ... to here (hppa64 is not multiarch'ed yet).
1248 2003-04-21 J. Brobecker <brobecker@gnat.com>
1250 * config/pa/tm-hppa.h: Obsolete a section that was only used
1253 2003-04-21 J. Brobecker <brobecker@gnat.com>
1255 Ongoing multi-arch conversion for HP/UX.
1256 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): Set to 1. Do not define
1257 if already defined (allows hppa64 to stay non-multiarched for now).
1258 * config/pa/tm-hppa64.h (GDB_MULTI_ARCH): Define.
1260 2003-04-21 Andrew Cagney <cagney@redhat.com>
1262 * frame.c (frame_id_eq): Fail when the code_addr's do not match.
1264 2003-04-21 Andrew Cagney <cagney@redhat.com>
1266 * i386-tdep.c (i386_gdbarch_init): Replace "mmx_num_regs" with
1267 "i386_num_mmx_regs".
1269 2003-04-21 Andrew Cagney <cagney@redhat.com>
1271 * infcall.c: New file.
1272 * infcall.h: New file.
1273 * valarith.c: Include "infcall.h".
1274 * scm-lang.c, objc-lang.cm, hppa-tdep.c, gcore.c: Ditto.
1275 * eval.c, ada-valprint.c, ada-lang.c: Ditto.
1276 * Makefile.in (valarith.o, scm-lang.o): Update dependencies.
1277 (objc-lang.o, hppa-tdep.o, gcore.o): Update dependencies.
1278 (eval.o, ada-valprint.o, ada-lang.o): Update dependencies.
1279 (SFILES): Add "infcall.c"
1280 (COMMON_OBS): Add "infcall.o".
1281 (infcall.o): Specify dependencies.
1282 * value.h (call_function_by_hand): Delete declaration.
1283 * inferior.h (run_stack_dummy): Delete declaration.
1284 * infcmd.c (breakpoint_auto_delete_contents): Move to "infcall.c".
1285 (run_stack_dummy): Move to "infcall.c", merged into
1286 call_function_by_hand.
1287 * valops.c (call_function_by_hand): Moved to "infcall.c".
1288 (find_function_addr, value_arg_coerce): Ditto.
1289 (unwindonsignal_p, coerce_float_to_double): Ditto.
1290 (_initialize_valops): Move "set/show coerce-float-to-double", and
1291 "set/show unwindonsignal" commands to "infcall.c".
1292 * v850-tdep.c, target.h: Update comments.
1293 * sparc-tdep.c (sparc_fix_call_dummy): Update comments.
1294 * sh-tdep.c (sh_init_extra_frame_info): Update comments.
1295 (sh64_init_extra_frame_info): Update comments.
1296 * mn10300-tdep.c: Update comments.
1297 * mcore-tdep.c (mcore_init_extra_frame_info): Update comments.
1298 * config/sparc/tm-sparc.h: Update comments.
1299 * breakpoint.h: Update comments.
1300 * avr-tdep.c (avr_init_extra_frame_info): Update comments.
1301 * arm-tdep.c: Update comment.
1303 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1305 * i386-tdep.c (i386_num_register_names): New variable.
1306 (i386_num_mmx_regs): Renamed from mmx_num_regs.
1307 (MM0_REGNUM): Remove redundant parentheses in define.
1308 (i386_mmx_regnum_p): Use i386_mmx_regnum instead of mmx_num_regs.
1309 (i386_fp_regnum_p, i386_fpc_regnum_p, i386_sse_regnum_p,
1310 i386_mxcsr_regnum_p): Remove redundant parentheses.
1311 (i386_register_name): Use i386_num_register_names.
1313 * i386-tdep.c (i386_extract_return_value,
1314 i386_store_return_value): Correct check for availability of
1315 floating-point registers.
1317 * i386-tdep.c (i386_frame_num_args): Remove function.
1318 (i386_gdbarch_init): Set frame_num_args to frame_num_args_unknown.
1320 * i386-tdep.c (i386_mmx_regnum_to_fp_regnum): Renamed from
1321 mmx_regnum_to_fp_regnum. Adjust all callers.
1323 * i386-tdep.c (i386_get_longjmp_target): Use
1324 TYPE_LENGTH(builtin_type_void_func_ptr) instead of TARGET_PTR_BIT
1325 and TARGET_CHAR_BIT. Use extract_typed_address instead of
1328 2003-04-19 Mark Kettenis <kettenis@gnu.org>
1330 * core-regset.c: Update comments to reflect reality. Re-order
1332 (fetch_core_registers): Use switch instead of if. Remove
1333 redundant prototype.
1335 2003-04-18 Jim Blandy <jimb@redhat.com>
1337 * s390-tdep.c (s390_frame_align): New function.
1338 (s390_gdbarch_init): Register it with the gdbarch object.
1340 2003-04-17 Richard Henderson <rth@redhat.com>
1342 * remote.c (minitelnet): Don't redeclare escape_count, echo_check.
1344 2003-04-17 Michael Snyder <msnyder@redhat.com>
1345 Karen Bennet <bennet@redhat.com>
1347 Committed by Elena Zannoni <ezannoni@redhat.com>
1348 * gdb_gcore.sh: New script to create a core dump of a process.
1350 2003-04-17 Elena Zannoni <ezannoni@redhat.com>
1352 * values.c (value_being_returned): Don't fetch the return
1353 value if the return type is void.
1355 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1357 * thread-db.c: Reindented.
1359 2003-04-17 Jeff Johnston <jjohnstn@redhat.com>
1361 * gdb_indent.sh: Recognize td_thrhandle_t, td_event_msg_t,
1362 td_thr_events_t, td_notify_t, td_thr_iter_f, and td_thrinfo_t
1365 2003-04-16 Kevin Buettner <kevinb@redhat.com>
1367 * rs6000-tdep.c (rs6000_gdbarch_init): For the SysV ABI, set
1368 the size of ``long double'' to 16, instead of 8.
1370 2003-04-16 Mark Kettenis <kettenis@gnu.org>
1372 * i386-linux-nat.c: Add some whitespace to make things more
1374 (fetch_register, store_register, fetch_inferior_registers,
1375 store_inferior_registers): Get rid of assignment in if-statement.
1376 (store_register): Fix typo in error message.
1378 2003-04-16 Andrew Cagney <cagney@redhat.com>
1380 * utils.c (xmmalloc): Always allocate something, matches
1381 libiberty/xmalloc's semantics.
1382 (xmrealloc, xmcalloc): Ditto.
1384 2003-04-16 Andrew Cagney <cagney@redhat.com>
1386 * frame.c (get_prev_frame): Do not initialize "unwind" or "type",
1388 (get_frame_type): Initialize unwind and type when needed.
1389 (get_frame_id, frame_register_unwind): Ditto.
1391 2003-04-16 Andrew Cagney <cagney@redhat.com>
1393 * NEWS: Mention that sparclet-*-* and sparclite-*-* have been made
1395 * sparc-tdep.c: Obsolete SPARCLET and SPARCLITE code.
1396 * sparcl-stub.c: Obsolete file.
1397 * config/sparc/tm-sparclet.h: Obsolete file.
1398 * sparclet-stub.c: Obsolete file.
1399 * sparclet-rom.c: Obsolete file.
1400 * sparcl-tdep.c: Obsolete file.
1401 * config/sparc/tm-sparclite.h: Obsolete file.
1402 * config/sparc/sparclite.mt: Obsolete file.
1403 * config/sparc/sparclet.mt: Obsolete file.
1404 * configure.tgt: Make sparclet-*-*, sparclite-*-*, and
1405 sparc86x-*-* obsolete.
1407 2003-04-15 David Carlton <carlton@math.stanford.edu>
1409 * Makefile.in (SFILES): Add cp-namespace.c.
1410 (COMMON_OBS): Add cp-namespace.o.
1411 (block.o): Depend on gdb_obstack_h and cp_support_h.
1412 (buildsym.o): Depend on cp_support_h.
1413 (cp-namespace.o): New.
1414 (cp-support.o): Depend on gdb_string_h, demangle_h, gdb_assert_h,
1415 gdb_obstack_h, symtab_h, symfile_h, and gdbcmd_h.
1416 (dwarf2read.o): Depend on cp_support_h.
1417 * jv-lang.c (get_java_class_symtab): Set BLOCK_NAMESPACE.
1418 * dwarf2read.c (process_die): Set processing_has_namespace_info,
1419 processing_current_namespace.
1420 (read_namespace): Update processing_current_namespace; check for
1421 anonymous namespaces.
1422 (dwarf2_name): New function.
1423 (dwarf2_extension): Ditto.
1424 * cp-support.h: Update copyright, contributors.
1425 Add inclusion guards.
1426 Add opaque declaration for structs obstack, block, symbol.
1427 (struct using_direct): New struct.
1428 Add declarations for cp_find_first_component,
1429 cp_entire_prefix_len, processing_has_namespace_info,
1430 processing_current_namespace, cp_is_anonymous,
1431 cp_add_using_directive, cp_initialize_namespace,
1432 cp_finalize_namespace, cp_set_block_scope,
1433 cp_scan_for_anonymous_namespaces.
1434 * cp-namespace.c: New file.
1435 * cp-support.c: Update copyright.
1436 Include ctype.h, gdb_assert.h, gdbcmd.h.
1437 New variable maint_cplus_cmd_list.
1438 (cp_find_first_component): New function.
1439 (cp_entire_prefix_len, maint_cplus_command)
1440 (first_component_command, _initialize_cp_support): Ditto.
1441 * buildsym.c: Include cp-support.h.
1442 New variable using_list.
1443 (add_symbol_to_list): Check for anonymous namespaces.
1444 (finish_block): Set block's scope.
1445 (start_symtab): Initialize C++ namespace support.
1446 (end_symtab): Finalize C++ namespace support.
1447 * block.h: Add opaque declarations for structs
1448 block_namespace_info, using_direct, and obstack.
1449 Add declarations for block_set_scope and block_set_using.
1450 (struct block): Add 'language_specific' member.
1451 (BLOCK_NAMESPACE): New macro.
1452 * block.c: Include gdb_obstack.h and cp-support.h.
1453 (struct block_namespace_info): New struct.
1454 (block_set_scope): New function.
1455 (block_set_using, block_initialize_namespace): Ditto.
1457 2003-04-14 Kevin Buettner <kevinb@redhat.com>
1459 * solib-svr4.c (svr4_have_link_map_offsets): New function.
1460 (locate_base): Return early if there aren't any link map offsets.
1461 (svr4_solib_create_inferior_hook): Warn if shared library support
1464 2003-04-14 David Carlton <carlton@math.stanford.edu>
1466 * symtab.c (symbol_set_names): Add prefix when storing Java names
1467 in hash table. Fix for PR java/1039.
1469 2003-04-14 David Carlton <carlton@math.stanford.edu>
1471 * symtab.c (symbol_set_names): Rename 'name' arg to
1472 'linkage_name', and 'tmpname' variable to 'linkage_name_copy'.
1473 * symtab.h: Change 'name' argument in declaration of
1474 symbol_set_names to 'linkage_name'.
1475 (SYMBOL_SET_NAMES): Change 'name' argument to 'linkage_name'.
1477 2003-04-14 Andrew Cagney <cagney@redhat.com>
1479 * mips-tdep.c (mips_read_sp): Do not apply ADDR_BITS_REMOVE,
1480 return the fully sign-extended register value.
1481 (get_frame_pointer): Ditto.
1482 (mips_pop_frame): Initialize "proc_desc" after checking for a
1485 2003-04-14 Andrew Cagney <cagney@redhat.com>
1487 * mips-tdep.c (mips_push_dummy_frame): Delete function.
1488 (MASK, PUSH_FP_REGNUM, GEN_REG_SAVE_MASK): Delete macros.
1489 (FLOAT_REG_SAVE_MASK, FLOAT_SINGLE_REG_SAVE_MASK): Delete macro.
1490 (mips_push_register): Delete function.
1491 (mips_dump_tdep): Delete references to GEN_REG_SAVE_MASK and
1494 2003-04-14 Jim Blandy <jimb@redhat.com>
1496 * symmisc.c: #include "gdb_regex.h".
1497 (maintenance_list_symtabs, maintenance_list_psymtabs): New
1499 * maint.c (maintenance_list_command): New function.
1500 (_initialize_maint_cmds): Register the above as commands.
1501 * symtab.h (maintenance_list_symtabs,
1502 maintenance_list_psymtabs): New declarations.
1503 * cli/cli-cmds.c (maintenancelistlist): New variable.
1504 (init_cmd_lists): Initialize it.
1505 * cli/cli-cmds.h (maintenancelistlist): New declaration.
1506 * gdbcmd.h (maintenancelistlist): New declaration.
1507 * Makefile.in (symmisc.o): Update dependencies.
1509 2003-04-14 Elena Zannoni <ezannoni@redhat.com>
1511 * s390-nat.c: Include asm/types.h for addr_t.
1513 2003-04-14 Corinna Vinschen <vinschen@redhat.com>
1515 * cp-valprint.c (cp_print_class_method): Call unpack_pointer() with
1516 actually incoming type.
1518 2003-04-13 Andrew Cagney <cagney@redhat.com>
1520 * ppc-linux-tdep.c: Use get_frame_base, get_frame_pc,
1521 get_next_frame and get_frame_saved_regs.
1523 2003-04-13 Andrew Cagney <cagney@redhat.com>
1525 * reggroups.c (default_register_reggroup_p): Use NUM_REGS instead
1526 of gdbarch_num_regs.
1528 2003-04-13 Andrew Cagney <cagney@redhat.com>
1530 * frame.h: Mention what replaced what in "struct frame_info".
1531 * hppa-hpux-tdep.c: Use get_frame_base, get_frame_pc and
1532 deprecated_update_frame_base_hack and
1533 deprecated_update_frame_pc_hack.
1534 * hppa-tdep.c: Ditto.
1536 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1538 * dwarf2expr.h (struct dwarf_expr_context): Remove extra arguments
1539 to read_reg and update its comment. Remove regnum member.
1540 * dwarf2expr.c (execute_stack_op): Remove memaddr and expr_lval.
1541 Don't call read_reg when setting in_reg. Call read_reg to get
1542 the frame base if it's in a register. Return the register number
1543 on the stack instead of in the context. Remove extra arguments
1545 * dwarf2loc.c (dwarf_expr_read_reg): Remove extra arguments.
1546 (dwarf2_evaluate_loc_desc): Call value_from_register. Expect
1547 the register number on the expression stack.
1548 (needs_frame_read_reg): Remove extra arguments.
1550 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1552 * dwarf2expr.c (dwarf2_read_address): Renamed from read_address;
1554 (execute_stack_op): All callers updated.
1555 * dwarf2expr.h: Add prototype for dwarf2_read_address.
1556 * dwarf2loc.c (find_location_expression): New function.
1557 (dwarf_expr_frame_base): Call it.
1558 (dwarf2_evaluate_loc_desc): Handle 0-length location expressions.
1559 (dwarf2_tracepoint_var_ref): New function, broken out from
1560 locexpr_tracepoint_var_ref.
1561 (locexpr_tracepoint_var_ref): Call dwarf2_tracepoint_var_ref.
1563 (loclist_read_variable, loclist_read_needs_frame): New functions.
1564 (loclist_describe_location, loclist_tracepoint_var_ref): New
1566 (dwarf2_loclist_funcs): New struct location_funcs.
1567 * dwarf2loc.h (struct dwarf2_loclist_baton): New type.
1568 (struct dwarf2_locexpr_baton): Add comments.
1569 (dwarf2_loclist_funcs): New extern.
1570 * dwarf2read.c (struct comp_unit_head): Remove DIE member, add
1571 base_address and base_known.
1572 (dwarf_loc_buffer): New variable.
1573 (struct dwarf2_pinfo): Add dwarf_loc_buffer and dwarf_loc_size.
1574 (DWARF_LOC_BUFFER, DWARF_LOC_SIZE): New macros.
1575 (dwarf2_has_info): Initialize dwarf_loc_offset.
1576 (dwarf2_build_psymtabs): Read in .debug_loc.
1577 (dwarf2_build_psymtabs_hard): Use DWARF_LOC_BUFFER and
1579 (psymtab_to_symtab_1): Likewise. Move base address calculation
1581 (dwarf2_get_pc_bounds): ... here. Use the base address from
1583 (dwarf2_symbol_mark_computed): Handle location lists.
1585 2003-04-13 Daniel Jacobowitz <drow@mvista.com>
1587 * minsyms.c (install_minimal_symbols): Only switch to gnu-v3 mode
1588 if the linkage name demangled successfully.
1590 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1592 * x86-64-tdep.c (att_flavour, intel_flavour, valid_flavours,
1593 disassmbly_flavour): Removed.
1595 * x86-64-tdep.c (gdb_print_insn_x86_64): Removed.
1597 2003-04-13 Mark Kettenis <kettenis@gnu.org>
1599 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Removed.
1601 2003-04-12 Andrew Cagney <cagney@redhat.com>
1603 * frame.h (struct frame_info): Move definition from here ...
1604 * frame.c (struct frame_info): ... to here.
1606 2003-04-12 Andrew Cagney <cagney@redhat.com>
1608 * gdbthread.h (save_infrun_state): Delete parameter
1610 (struct thread_info): Delete field "prev_func_start".
1611 (load_infrun_state): Ditto.
1612 * thread.c (load_infrun_state, save_infrun_state): Update.
1613 * infrun.c (prev_func_start): Delete variable.
1614 (context_switch, init_wait_for_inferior): Update.
1615 (stop_stepping, keep_going): Update.
1617 2003-04-12 Andrew Cagney <cagney@redhat.com>
1619 * gdbarch.sh: Add missing opaque declarations.
1620 * gdbarch.h: Regnerate.
1621 * symtab.h: Add missing opaque declarations.
1622 * value.h, target.h, symfile.h, stabsread.h: Ditto.
1623 * x86-64-tdep.h, xmodem.h, monitor.h, typeprint.h: Ditto.
1624 * srec.h, solib-svr4.h, source.h, inferior.h: Ditto.
1625 * ser-unix.h, serial.h, remote-utils.h, gdbcore.h: Ditto.
1626 * ppc-tdep.h, ocd.h, mips-tdep.h, gdbtypes.h: Ditto.
1627 * buildsym.h, builtin-regs.h, linespec.h, language.h: Ditto.
1628 * i387-tdep.h, gdbthread.h, event-top.h, gdb.h: Ditto.
1629 * dwarf2cfi.h, doublest.h, disasm.h, cp-abi.h: Ditto.
1630 * cli-out.h, c-lang.h, ax-gdb.h, arch-utils.h: Ditto.
1631 * ada-lang.h, config/nm-lynx.h, config/nm-linux.h: Ditto.
1632 * config/sparc/tm-sp64.h, config/rs6000/tm-rs6000.h: Ditto.
1633 * config/pa/tm-hppah.h, config/m68k/tm-delta68.h: Ditto.
1634 * cli/cli-setshow.h, cli/cli-script.h: Ditto.
1636 2003-04-11 Andrew Cagney <cagney@redhat.com>
1638 * frame.c (get_frame_id): Return this frame's "id".
1639 (legacy_get_prev_frame): Set prev's frame ID code_addr to the
1641 (legacy_saved_regs_this_id): Replace function body with
1643 (deprecated_frame_xmalloc): Mark the frame ID as valid, use
1644 FRAME_OBSTACK_ZALLOC.
1645 (create_new_frame): Mark the frame ID as valid.
1647 2003-04-11 Alexandre Oliva <aoliva@redhat.com>
1649 * Makefile.in (libbfd_h): Added missing setting.
1650 * mips-tdep.c (mips_gdbarch_init): Set disassembler_options
1651 according to the selected ABI.
1653 2003-04-11 Jeff Johnston <jjohnstn@redhat.com>
1655 * gdb_indent.sh: Recognize pid_t and sigset_t as types.
1657 2003-04-11 Andrew Cagney <cagney@redhat.com>
1659 * gdbarch.sh (DEPRECATED_SAVED_PC_AFTER_CALL): Deprecate
1660 SAVED_PC_AFTER_CALL.
1661 * gdbarch.h, gdbarch.c: Regenerate.
1662 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1663 * x86-64-tdep.c (x86_64_init_abi): Update.
1664 * vax-tdep.c (vax_gdbarch_init): Update.
1665 * v850-tdep.c (v850_gdbarch_init): Update.
1666 * sparc-tdep.c (sparc_gdbarch_init): Update.
1667 * sh-tdep.c (sh_gdbarch_init): Update.
1668 * s390-tdep.c (s390_gdbarch_init): Update.
1669 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1670 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1671 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1672 * mips-tdep.c (mips_gdbarch_init): Update.
1673 * mcore-tdep.c (mcore_gdbarch_init): Update.
1674 * m68k-tdep.c (m68k_gdbarch_init): Update.
1675 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1676 * ia64-tdep.c (ia64_gdbarch_init): Update.
1677 (ia64_saved_pc_after_call): Update declaration.
1678 * i386ly-tdep.c (i386lynx_init_abi): Update.
1679 * i386-tdep.c (i386_gdbarch_init): Update.
1680 * hppa-tdep.c (hppa_gdbarch_init): Update.
1681 * h8300-tdep.c (h8300_gdbarch_init): Update.
1682 * frv-tdep.c (frv_gdbarch_init): Update.
1683 * cris-tdep.c (cris_gdbarch_init): Update.
1684 * avr-tdep.c (avr_gdbarch_init): Update.
1685 * arm-tdep.c (arm_gdbarch_init): Update.
1686 * alpha-tdep.c (alpha_gdbarch_init): Update.
1687 * ns32knbsd-nat.c (frame_num_args): Update.
1688 * ns32k-tdep.c (umax_frame_num_args): Update.
1689 * mips-tdep.c (mips_init_frame_pc_first): Update.
1690 * infrun.c (step_over_function): Update.
1691 * i386-linux-tdep.c (skip_hurd_resolver): Update.
1692 * i386-interix-tdep.c (i386_interix_back_one_frame): Update.
1693 * config/sparc/tm-sparc.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1694 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1695 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1696 * config/pa/tm-hppa.h (DEPRECATED_SAVED_PC_AFTER_CALL): Update.
1697 * arm-linux-tdep.c (skip_hurd_resolver): Update.
1698 * arch-utils.c (init_frame_pc_default): Update.
1699 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1700 * x86-64-tdep.h (x86_64_linux_saved_pc_after_call): Update
1703 2003-04-11 Andrew Cagney <cagney@redhat.com>
1705 * i387-tdep.c: Update copyright.
1706 (i387_to_double): Delete function.
1707 (double_to_i387): Delete function.
1709 2003-04-10 Andrew Cagney <cagney@redhat.com>
1711 * d10v-tdep.c (d10v_frame_this_id): Set the code addr to the
1712 frame's function's address. Simplify.
1713 (d10v_frame_unwind_cache): Check that the frame's function is
1716 2003-04-10 Jim Blandy <jimb@redhat.com>
1718 * s390-tdep.c (s390_gdbarch_init): Put back accidentally deleted
1719 call to set_gdbarch_deprecated_push_arguments.
1721 2003-04-10 Andrew Cagney <cagney@redhat.com>
1723 * frame.c (fprint_frame_id): New function.
1724 (fprint_frame_type, fprint_frame): New function.
1725 (frame_pc_unwind, frame_func_unwind): Add/update trace code.
1726 (create_sentinel_frame, get_frame_id): Ditto.
1727 (frame_id_p, frame_id_eq): Ditto.
1728 (frame_id_inner, create_new_frame): Ditto.
1729 (legacy_get_prev_frame, get_prev_frame): Ditto.
1730 (deprecated_update_frame_pc_hack): Ditto.
1731 (frame_register_unwind): Ditto.
1732 (deprecated_update_frame_base_hack): Ditto.
1734 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1736 * i386-cygwin-tdep.c (i386_cygwin_frame_chain): New function.
1737 (i386_cygwin_init_abi): Set i386_cygwin_frame_chain as new
1738 frame_chain function.
1739 * Makefile.in: Add dependencies due to above change.
1741 2003-04-10 Corinna Vinschen <vinschen@redhat.com>
1743 * blockframe.c (legacy_frame_chain_valid): Move call to
1744 DEPRECATED_FRAME_CHAIN_VALID before calls to inside_entry_func and
1747 2003-04-09 Andrew Cagney <cagney@redhat.com>
1749 * frame.h (struct frame_id): Replace "pc" and "base" with
1750 "stack_addr" and "code_addr". Update comments.
1751 (frame_id_build): Update parameter names and comment.
1752 (struct frame_info): Replace "id_p" and "id" with "this_id".
1753 * dummy-frame.c (dummy_frame_this_id): Update.
1754 * breakpoint.c (print_one_breakpoint): Update.
1755 * frame.c (get_frame_id): Update.
1756 (get_frame_base, frame_id_build): Update.
1757 (create_sentinel_frame, legacy_get_prev_frame): Update.
1758 (deprecated_update_frame_base_hack): Update.
1759 (frame_id_p, frame_id_eq): Rework, return 0 when an invalid ID.
1760 (frame_id_inner): Ditto.
1762 2003-04-09 Andrew Cagney <cagney@redhat.com>
1764 * defs.h (gdb_print_host_address): Make "addr" parameter a
1766 * utils.c (gdb_print_host_address): Update.
1768 2003-04-09 Kevin Buettner <kevinb@redhat.com>
1770 * rs6000-tdep.c (frame_get_saved_regs): Don't assume that the
1771 register number for R0 is 0.
1773 2003-04-09 J. Brobecker <brobecker@gnat.com>
1775 * frame.h (struct gdbarch): Add opaque structure definition
1776 to avoid a compilation warning on LynxOS 4.0.
1778 2003-04-09 Andrew Cagney <cagney@redhat.com>
1780 * frame.h (struct frame_info): Delete field "pc". Replace
1781 "pc_unwind_cache" and "pc_unwind_cache_p" with "prev_pc"
1783 * frame.c (frame_pc_unwind): Update.
1784 (create_sentinel_frame): Do not set "pc".
1785 (get_prev_frame): Do not set "pc". Use frame_pc_unwind.
1786 (get_frame_pc): Call frame_pc_unwind.
1787 (deprecated_update_frame_pc_hack): Update.
1788 (create_new_frame): Use "pc" not "->pc".
1790 2003-04-09 Andrew Cagney <cagney@redhat.com>
1792 * frame.c (get_frame_id): Eliminate code updating "frame".
1793 (legacy_get_prev_frame): Ditto.
1794 (get_frame_base): Return id.base directly.
1795 (deprecated_update_frame_base_hack): Update "id.base".
1796 * frame.h (struct frame_info): Delete field "frame".
1798 2003-04-09 Andrew Cagney <cagney@redhat.com>
1800 * NEWS: Mention that the "Sequent family" is obsolete.
1801 * configure.tgt: Obsolete i[3456]86-sequent-bsd*,
1802 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1803 * configure.host: Obsolete i[3456]86-sequent-bsd*,
1804 i[3456]86-sequent-sysv4*, and i[3456]86-sequent-sysv*.
1805 * config/i386/tm-ptx4.h: Obsolete file.
1806 * config/i386/tm-ptx.h: Obsolete file.
1807 * symm-tdep.c: Obsolete file.
1808 * config/i386/symmetry.mt: Obsolete file.
1809 * config/i386/tm-symmetry.h: Obsolete file.
1810 * symm-nat.c: Obsolete file.
1811 * config/i386/nm-symmetry.h: Obsolete file.
1812 * config/i386/xm-symmetry.h: Obsolete file.
1813 * config/i386/symmetry.mh: Obsolete file.
1814 * config/i386/nm-ptx4.h: Obsolete file.
1815 * config/i386/ptx4.mh: Obsolete file.
1816 * config/i386/ptx.mt: Obsolete file.
1817 * config/i386/ptx.mh: Obsolete file.
1818 * config/i386/xm-ptx4.h: Obsolete file.
1819 * config/i386/xm-ptx.h: Obsolete file.
1821 2003-04-09 Andrew Cagney <cagney@redhat.com>
1823 Obsolete mips*-*-mach3*.
1824 * NEWS: Mention that mips*-*-mach3* is obsolete.
1825 * m3-nat.c: Obsolete file.
1826 * config/nm-m3.h: Obsolete file.
1827 * config/mips/tm-mipsm3.h: Obsolete file.
1828 * config/mips/mipsm3.mt: Obsolete file.
1829 * config/mips/mipsm3.mh: Obsolete file.
1830 * config/mips/xm-mipsm3.h: Obsolete file.
1831 * mipsm3-nat.c: Obsolete file.
1832 * configure.host: Obsolete mips-dec-mach3*.
1833 * configure.tgt: Obsolete mips*-*-mach3*.
1835 2003-04-09 Andrew Cagney <cagney@redhat.com>
1837 * doublest.h: Update copyright.
1838 (deprecated_store_floating, deprecated_extract_floating): Rename
1839 store_floating and extract_floating. Update comments.
1840 * doublest.c: Update copyright.
1841 (extract_floating_by_length): Replace extract_floating.
1842 (store_floating_by_length): Replace store_floating.
1843 (deprecated_extract_floating): New function.
1844 (deprecated_store_floating): New function.
1845 (extract_typed_floating): Call extract_floating_by_length.
1846 (store_typed_floating): Call store_floating_by_length.
1847 * x86-64-tdep.c (x86_64_store_return_value): Update.
1848 * sh-tdep.c (sh3e_sh4_extract_return_value): Update.
1849 (sh64_extract_return_value): Update.
1850 (sh_sh4_register_convert_to_virtual): Update.
1851 (sh_sh64_register_convert_to_virtual): Update.
1852 (sh_sh4_register_convert_to_raw): Update.
1853 (sh_sh64_register_convert_to_raw): Update.
1854 * rs6000-tdep.c (rs6000_register_convert_to_virtual): Update.
1855 (rs6000_register_convert_to_raw): Update.
1856 * ia64-tdep.c (ia64_register_convert_to_virtual): Update.
1857 (ia64_register_convert_to_raw): Update.
1858 * config/i386/tm-symmetry.h (REGISTER_CONVERT_TO_RAW): Update.
1859 (REGISTER_CONVERT_TO_VIRTUAL): Update.
1860 * arm-linux-tdep.c (arm_linux_push_arguments): Update.
1861 * alpha-tdep.c (alpha_register_convert_to_virtual): Update.
1862 (alpha_register_convert_to_raw): Update.
1864 2003-04-08 Andrew Cagney <cagney@redhat.com>
1866 * gdbarch.sh (SAVED_PC_AFTER_CALL): Add a predicate.
1867 * gdbarch.h, gdbarch.c: Re-generate.
1868 * d10v-tdep.c (d10v_saved_pc_after_call): Delete function.
1869 (d10v_gdbarch_init): Do not set saved_pc_after_call.
1870 * infrun.c (step_over_function): Call SAVED_PC_AFTER_CALL_P
1871 conditionally, use frame_pc_unwind as an alternative. Add
1873 * arch-utils.c (init_frame_pc_default): Only call
1874 SAVED_PC_AFTER_CALL when available.
1876 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1878 * infrun.c (stop_soon): Rename from stop_soon_quietly.
1879 (struct inferior_status): Rename stop_soon_quietly field to stop_soon.
1880 (clear_proceed_status): Rename stop_soon_quietly to stop_soon.
1881 (start_remote): Ditto.
1882 (handle_inferior_event): Ditto.
1883 (save_inferior_status): Ditto.
1884 (restore_inferior_status): Ditto.
1885 * infcmd.c (attach_command): Ditto.
1886 * fork-child.c (startup_inferior): Ditto.
1887 * inferior.h (stop_soon): Rename from stop_soon_quietly.
1888 * alpha-tdep.c (heuristic_proc_start): Ditto.
1889 * mips-tdep.c (heuristic_proc_start): Ditto.
1890 * solib-svr4.c (svr4_solib_create_inferior_hook): Ditto.
1891 * solib-sunos.c (sunos_solib_create_inferior_hook): Ditto.
1892 * solib-osf.c (osf_solib_create_inferior_hook): Ditto.
1893 * solib-irix.c (irix_solib_create_inferior_hook): Ditto.
1894 * remote-vx.c (vx_create_inferior): Ditto.
1896 2003-04-08 Elena Zannoni <ezannoni@redhat.com>
1898 * infrun.c (stop_soon_quietly): Make it an enum, to better
1899 override the default behavior of handle_inferior_event.
1900 (clear_proceed_status): Update uses of stop_soon_quietly to
1901 reflect that it is now an enum.
1902 (start_remote): Ditto.
1903 (handle_inferior_event): Change logic a bit if stop_soon_quietly
1904 is set to handle the new GNU/Linux kernel behavior for
1905 attach/sigstop. Update uses of stop_soon_quietly.
1906 * inferior.h (enum stop_kind): New enum.
1907 * infcmd.c (attach_command): Use STOP_QUIETLY_NO_SIGSTOP.
1908 Reset normal handle_inferior_event behavior, afterwards.
1909 * fork-child.c (startup_inferior): Update.
1910 * alpha-tdep.c (heuristic_proc_start): Update.
1911 * solib-svr4.c (svr4_solib_create_inferior_hook): Update.
1912 * solib-sunos.c (sunos_solib_create_inferior_hook): Update.
1913 * solib-osf.c (osf_solib_create_inferior_hook): Update.
1914 * solib-irix.c (irix_solib_create_inferior_hook): Update.
1915 * remote-vx.c (vx_create_inferior): Update.
1916 * mips-tdep.c (heuristic_proc_start): Update.
1918 2003-04-07 Elena Zannoni <ezannoni@redhat.com>
1920 * disasm.c (dump_insns): Move variables inside loop, or they will
1921 be freed more than once, causing wild memory corruptions.
1922 (gdb_disassembly): Look for the substring "-thread",
1923 instead of "-threads" in the target name, to make sure to find
1924 the 'multi-thread' target. Also, make sure we do the right thing
1925 with the "core" target.
1927 2003-04-07 Kevin Buettner <kevinb@redhat.com>
1929 * mips-tdep.c (mips_print_fp_register): New function, created from
1930 do_fp_register_row(). Registers are now (also) printed as hex.
1931 Only one register is printed per row.
1932 (mips_print_register, do_fp_register_row): Print floating point
1933 registers with mips_print_fp_register().
1935 2003-04-06 Andrew Cagney <cagney@redhat.com>
1937 * valprint.h (inspect_it): Add extern declaration.
1938 * objc-lang.c (value_nsstring): Avoid assignment inside of "if".
1939 (selectors_info, classes_info): Ditto.
1940 (find_objc_msgcall): Fix indentation.
1941 (objc_printstr): Delete extern declarations.
1943 * arm-tdep.c (arm_frameless_function_invocation): Fix typo.
1945 2003-04-06 Andrew Cagney <cagney@redhat.com>
1947 * frame.h (legacy_frame_chain_valid): Rename frame_chain_valid.
1949 * frame.c (legacy_saved_regs_this_id): Update.
1950 (legacy_get_prev_frame): Update.
1951 * xstormy16-tdep.c: Update comment.
1952 * sparc-tdep.c (sparc_frame_chain): Update comment.
1953 * blockframe.c (legacy_frame_chain_valid): Update.
1955 2003-04-06 Andrew Cagney <cagney@redhat.com>
1957 * valprint.c (val_print_type_code_int): Delete #ifdef
1958 PRINT_TYPELESS_INTEGER code.
1960 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES)
1961 (CALL_DUMMY_LOCATION, DEPRECATED_PC_IN_CALL_DUMMY): Allow partial
1962 multi-arch definition.
1963 * gdbarch.h: Re-generate.
1965 2003-04-05 Andrew Cagney <cagney@redhat.com>
1967 Eliminate FRAME_FIND_SAVED_REGS.
1968 * config/pa/tm-hppah.h (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1969 Change FSR parameter to a pointer.
1970 * config/pa/tm-hppa64.h (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP):
1971 Assume FSR parameter is a pointer.
1972 * hppa-hpux-tdep.c (hppa_hpux_frame_find_saved_regs_in_sigtramp):
1974 * hppa-tdep.c (hppa_frame_find_saved_regs): New function.
1975 (hppa_frame_saved_pc): Call hppa_frame_init_saved_regs. Make
1976 saved_regs a pointer.
1977 (hppa_frame_saved_pc): Ditto.
1978 (find_dummy_frame_regs): Make frame_saved_regs a pointer
1979 (hppa_pop_frame): Call hppa_frame_init_saved_regs. Make fsr a
1981 (restore_pc_queue): Make fsr a pointer.
1982 (hppa_frame_find_saved_regs): Make frame_saved_regs a pointer.
1983 (hppa_frame_chain): Make saved_regs a pointer, call
1984 hppa_frame_init_saved_regs.
1985 * sparc-tdep.c: Include "gdb_assert.h".
1986 (sparc_frame_find_saved_regs): Replace internal_error with
1988 * remote-vxsparc.c (vx_read_register): Delete reference to
1989 FRAME_FIND_SAVED_REGS.
1990 * gdbarch.sh: Delete check for FRAME_FIND_SAVED_REGS.
1991 * gdbarch.h: Regenerate.
1992 * frame.h (DEPRECATED_FRAME_INIT_SAVED_REGS): Delete macro.
1993 (deprecated_get_frame_saved_regs): Delete declaration.
1994 (struct frame_saved_regs): Delete definition.
1995 * frame.c (deprecated_get_frame_saved_regs): Delete function.
1996 * config/pa/tm-hppa.h (hppa_frame_init_saved_regs): Declare.
1997 (hppa_frame_find_saved_regs): Delete declaration.
1998 (FRAME_FIND_SAVED_REGS): Delete macro.
1999 (DEPRECATED_FRAME_INIT_SAVED_REGS): Define.
2000 * config/i386/tm-ptx.h (FRAME_FIND_SAVED_REGS): Delete
2001 FRAME_FIND_SAVED_REGS in comment.
2003 2003-04-05 Andrew Cagney <cagney@redhat.com>
2005 * frame.c (frame_func_unwind, get_frame_func): New functions.
2006 * frame.h (get_frame_func, frame_func_unwind): Declare.
2007 (struct frame_info): Add field "prev_func" for caching the
2008 previous frame's function address.
2009 * arm-tdep.c (arm_frameless_function_invocation): Combine
2010 get_pc_function_start and get_frame_pc into get_frame_func.
2011 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2012 (sh64_nofp_frame_init_saved_regs): Ditto.
2013 * s390-tdep.c (s390_function_start): Ditto.
2014 * rs6000-tdep.c (rs6000_pop_frame): Ditto.
2015 (rs6000_frameless_function_invocation): Ditto.
2016 (rs6000_frame_saved_pc): Ditto.
2017 * m68k-tdep.c (m68k_frame_init_saved_regs): Ditto.
2018 * ia64-tdep.c (ia64_frame_init_saved_regs): Ditto.
2019 * i386-tdep.c (i386_frameless_signal_p): Ditto.
2020 (i386_frame_init_saved_regs): Ditto.
2021 * hppa-tdep.c (hppa_frame_find_saved_regs): Ditto.
2022 * d10v-tdep.c (d10v_frame_unwind_cache): Combine
2023 get_pc_function_start and frame_pc_unwind into frame_func_unwind.
2024 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
2025 * blockframe.c (frameless_look_for_prologue): Ditto.
2027 2003-04-05 Andrew Cagney <cagney@redhat.com>
2029 * frame.c (legacy_get_prev_frame): Link prev to next at the
2030 function start. Update comments.
2032 2003-04-05 Andrew Cagney <cagney@redhat.com>
2034 * frame.c (get_frame_id): Update comment.
2035 (legacy_get_prev_frame): Update comment.
2036 * gdbarch.sh: Delete check for EXTRA_FRAME_INFO.
2037 * gdbarch.h: Regenerate.
2038 * config/sparc/tm-sparc.h (EXTRA_FRAME_INFO): Delete.
2039 * frame.h: Delete #ifdef EXTRA_FRAME_INFO code.
2041 2003-04-05 Andrew Cagney <cagney@redhat.com>
2043 * stack.c (print_frame_info): Use get_frame_pc.
2045 2003-04-04 Andrew Cagney <cagney@redhat.com>
2047 * frame.c (get_prev_frame): Do not call frame_type_from_pc. Set
2048 the frame's type from the unwinder.
2049 (get_frame_type): Map UNKNOWN_FRAME onto NORMAL_FRAME.
2050 (create_new_frame, legacy_get_prev_frame): When the unwinder's
2051 type isn't UNKNOWN_FRAME, initalize "type" from the unwinder.
2052 (get_frame_base_address): Use get_frame_type.
2053 (get_frame_locals_address, get_frame_args_address): Ditto.
2054 (legacy_saved_regs_unwinder): Set the type to UNKNOWN_TYPE.
2055 * frame.h (enum frame_type): Add UNKNOWN_FRAME.
2056 (struct frame_info): Add comment explaining why the frame contains
2058 * dummy-frame.c (dummy_frame_unwind): Set the type to DUMMY_FRAME.
2059 * d10v-tdep.c (d10v_frame_unwind): Set the type to NORMAL_FRAME.
2060 * sentinel-frame.c (sentinel_frame_unwinder): Set the type to
2062 * frame-unwind.h: Include "frame.h".
2063 (struct frame_unwind): Add "type" field.
2064 * Makefile.in (frame_unwind_h): Add $(frame_h).
2066 2003-04-04 Andrew Cagney <cagney@redhat.com>
2068 * x86-64-tdep.c (x86_64_unwind_dummy_id): Use frame_id_build.
2069 * dummy-frame.c (dummy_frame_this_id): Use frame_id_build.
2070 * d10v-tdep.c (d10v_frame_this_id): Use get_frame_pc and
2072 (d10v_unwind_dummy_id): Use frame_id_build.
2073 * frame.c (find_frame_sal): Use get_frame_pc.
2074 (create_new_frame): Use deprecated_update_frame_pc_hack and
2075 deprecated_update_frame_base_hack.
2076 (create_sentinel_frame): Add comment about ->pc going away.
2077 (get_prev_frame): Add comment about ->pc going away.
2078 (legacy_get_prev_frame): Use get_frame_base, get_frame_pc,
2079 frame_id_build, deprecated_update_frame_pc_hack and
2080 deprecated_update_frame_base_hack.
2081 (select_frame): Use get_frame_pc.
2082 (legacy_saved_regs_this_id): Use frame_id_build.
2084 2003-04-04 Elena Zannoni <ezannoni@redhat.com>
2086 * x86-64-tdep.c (x86_64_push_arguments): Handle correctly the
2087 signed integer case.
2088 (classify_argument): Handle enumerations and references.
2090 2003-04-04 Andrew Cagney <cagney@redhat.com>
2092 * frame.c (create_sentinel_frame): Initialize the sentinel frame's
2095 2003-04-01 Adam Fedor <fedor@gnu.org>
2097 * gdb/objc-lang.c (selectors_info): Replace calls to
2098 SYMBOL_DEMANGLED_NAME and DEPRECATED_SYMBOL_NAME with
2099 SYMBOL_NATURAL_NAME.
2100 (classes_info, find_methods): Likewise.
2102 2003-04-03 Kevin Buettner <kevinb@redhat.com>
2104 * rs6000-tdep.c (rs6000_gdbarch_init): For xcoff executables, set
2105 ``mach'' to the value determined by bfd_default_set_arch_mach().
2107 2003-04-02 Bob Rossi <bob_rossi@cox.net>
2109 * Makefile.in (SUBDIR_MI_OBS): Add "mi-cmd-file.o".
2110 (SUBDIR_MI_SRCS): Add "mi-cmd-file.c".
2111 (mi-cmd-file.o): Update dependencies.
2113 2003-04-01 Kevin Buettner <kevinb@redhat.com>
2115 * mips-tdep.c (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
2116 (mips_stab_reg_to_regnum): Add mappings for HI_REGNUM and LO_REGNUM.
2118 2003-04-01 Adam Fedor <fedor@gnu.org>
2120 * Makefile.in (c_lang.o, jv_lang.o, language.o): Add $(demangle_h).
2121 * language.h (struct language_defn): Add la_demangle.
2122 (language_demangle): Declare.
2123 * language.c (language_demangle): New function.
2124 (unk_lang_demangle): Likewise.
2125 (unknown_language_defn, auto_language_defn, local_language_defn):
2126 Add ukn_lang_demangle.
2127 * ada-lang.c (ada_language_defn): Add NULL for la_demangle element.
2128 * f-lang.c, m2-lang.c, p-lang.c, scm-lang.c: Likewise.
2129 * c-lang.c (c_language_defn, asm_language_defn): Likewise.
2130 (cplus_language_defn): Add cplus_demangle for la_demangle element.
2131 * jv-lang.c (java_demangle): New function
2132 (java_language_defn): Use it for la_demangle element.
2133 * objc-lang.c (objc_demangle): Add options argument
2134 (objc_language_defn): Use objc_demangle for la_demangle element.
2135 * maint.c (maintenance_demangle): Replace switch with
2136 call to language_demangle.
2137 * utils.c (fprintf_symbol_filtered): Likewise.
2139 2003-04-01 Andrew Cagney <cagney@redhat.com>
2141 * printcmd.c (print_frame_nameless_args): Delete #ifdef
2142 NAMELESS_ARG_VALUE, PRINT_NAMELESS_INTEGER and
2143 PRINT_TYPELESS_INTEGER.
2144 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_RETURN_ADDRESS): Rename
2145 PUSH_RETURN_ADDRESS.
2147 2003-04-01 Andrew Cagney <cagney@redhat.com>
2149 * Makefile.in (d10v-tdep.o): Update dependencies.
2150 * d10v-tdep.c: Include "frame-base.h".
2151 (d10v_frame_unwind): Make constant.
2152 (d10v_frame_base_address): New function.
2153 (d10v_frame_base): New variable.
2154 (d10v_gdbarch_init): Set frame_base default.
2155 (struct d10v_unwind_cache): Add the field "prev_sp". Update
2157 (d10v_frame_unwind_cache): Set and use "prev_sp".
2158 (d10v_frame_this_id): Use the previous frame's inner most stack
2159 address and this frame's func address for the frame ID. Use
2160 frame_id_build. Don't analyze beyond the current instruction.
2162 2003-04-01 Andrew Cagney <cagney@redhat.com>
2164 * frame.h (get_frame_locals_address, get_frame_args_address):
2165 Refer to the base address, instead of the address of the first
2168 2003-04-01 Andrew Cagney <cagney@redhat.com>
2170 Add frame debug info addresses:
2171 * frame-base.c: New file.
2172 * frame-base.h: New file.
2173 * frame.h (struct frame_base): Add opaque declaration.
2174 (get_frame_base): Update comment.
2175 (get_frame_base_address): Declare.
2176 (get_frame_locals_address): Declare.
2177 (get_frame_args_address): Declare.
2178 (struct frame_info): Add "base" and "base_cache". Update
2179 comments on the unwinder.
2180 * frame.c: Include "frame-base.h".
2181 (get_frame_locals_address): New function.
2182 (get_frame_base_address): New function.
2183 (get_frame_args_address): New function.
2184 * findvar.c (read_var_value): Use get_frame_locals_address and
2185 get_frame_args_address.
2186 * stack.c (frame_info): Use get_frame_locals_address and
2187 get_frame_args_address.
2188 (FRAME_ARGS_ADDRESS_CORRECT): Delete conditionally defined macro,
2189 moved to "frame-base.c".
2190 * printcmd.c (print_frame_nameless_args): Ditto.
2191 * symtab.h (address_class): Update comments.
2192 * dwarf2loc.c (dwarf_expr_frame_base): Add note about
2193 get_frame_base_address.
2194 * dwarf2expr.c (execute_stack_op): Ditto.
2195 * Makefile.in (frame_base_h): Define.
2196 (frame.o): Update dependencies.
2197 (frame-base.o): Add dependencies.
2198 (SFILES): Add frame-base.c.
2199 (COMMON_OBS): Add frame-base.o.
2201 2003-04-01 Andrew Cagney <cagney@redhat.com>
2203 * gdbarch.sh (CALL_DUMMY_START_OFFSET): Default to zero.
2204 CALL_DUMMY_LENGTH): Ditto.
2205 * gdbarch.c: Re-generate.
2206 * inferior.h (CALL_DUMMY_START_OFFSET): Delete macro.
2207 (CALL_DUMMY_LENGTH): Delete macro.
2208 * alpha-tdep.c (alpha_gdbarch_init): Do not set above when zero.
2209 * arm-tdep.c (arm_gdbarch_init): Ditto.
2210 * avr-tdep.c (avr_gdbarch_init): Ditto.
2211 * cris-tdep.c (cris_gdbarch_init): Ditto.
2212 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2213 * frv-tdep.c (frv_gdbarch_init): Ditto.
2214 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2215 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2216 * i386-tdep.c (i386_gdbarch_init): Ditto.
2217 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2218 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2219 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2220 * mips-tdep.c (mips_gdbarch_init): Ditto.
2221 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2222 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2223 * s390-tdep.c (s390_gdbarch_init): Ditto.
2224 * sh-tdep.c (sh_gdbarch_init): Ditto.
2225 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2226 * v850-tdep.c (v850_gdbarch_init): Ditto.
2227 * vax-tdep.c (vax_gdbarch_init): Ditto.
2228 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2230 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
2232 * frame.c (get_prev_frame): Disable call to inside_entry_file().
2234 2003-04-01 Andrew Cagney <cagney@redhat.com>
2236 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
2237 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2238 * gdbarch.h, gdbarch.c: Re-generate.
2239 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2240 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2241 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2242 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
2243 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
2244 * infcmd.c (run_stack_dummy): Simplify assuming
2245 CALL_DUMMY_BREAKPOINT_OFFSET_P.
2246 * infrun.c (handle_inferior_event): Ditto.
2247 * alpha-tdep.c (alpha_gdbarch_init): Do not set
2248 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
2249 * arm-tdep.c (arm_gdbarch_init): Ditto.
2250 * avr-tdep.c (avr_gdbarch_init): Ditto.
2251 * cris-tdep.c (cris_gdbarch_init): Ditto.
2252 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2253 * frv-tdep.c (frv_gdbarch_init): Ditto.
2254 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2255 * i386-tdep.c (i386_gdbarch_init): Ditto.
2256 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2257 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2258 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2259 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2260 * mips-tdep.c (mips_gdbarch_init): Ditto.
2261 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2262 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2263 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2264 * s390-tdep.c (s390_gdbarch_init): Ditto.
2265 * sh-tdep.c (sh_gdbarch_init): Ditto.
2266 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2267 * v850-tdep.c (v850_gdbarch_init): Ditto.
2268 * vax-tdep.c (vax_gdbarch_init): Ditto.
2269 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2271 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
2273 * symfile.c (symfile_relocate_debug_section): Update call to
2274 bfd_simple_get_relocated_section_contents.
2276 2003-03-31 Andrew Cagney <cagney@redhat.com>
2278 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
2279 * gdbarch.h, gdbarch.c: Regenerate.
2280 * inferior.h (FIX_CALL_DUMMY): Delete macro.
2281 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
2283 * frame.h (generic_fix_call_dummy): Delete declaration.
2284 * dummy-frame.h: Update comment.
2285 * dummy-frame.c (generic_fix_call_dummy): Delete function.
2286 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2288 * sh-tdep.c (sh_gdbarch_init): Ditto.
2289 * s390-tdep.c (s390_gdbarch_init): Ditto.
2290 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2291 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2292 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2293 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2294 * i386-tdep.c (i386_gdbarch_init): Ditto.
2295 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2296 * frv-tdep.c (frv_gdbarch_init): Ditto.
2297 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2298 * cris-tdep.c (cris_gdbarch_init): Ditto.
2299 * avr-tdep.c (avr_gdbarch_init): Ditto.
2300 * arm-tdep.c (arm_gdbarch_init): Ditto.
2302 2003-03-31 J. Brobecker <brobecker@gnat.com>
2304 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
2305 (INIT_FRAME_AP): Likewise.
2306 (EXTRA_FRAME_INFO): Likewise.
2308 2003-03-31 Andrew Cagney <cagney@redhat.com>
2310 * gdbarch.sh: Include "symfile.h".
2311 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
2312 * gdbarch.h, gdbarch.c: Re-generate.
2313 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
2314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2315 call_dummy_address, the default is at entry_point_address.
2316 * v850-tdep.c (v850_gdbarch_init): Ditto.
2317 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2318 * sh-tdep.c (sh_gdbarch_init): Ditto.
2319 * s390-tdep.c (s390_gdbarch_init): Ditto.
2320 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2321 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2322 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2323 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2324 * i386-tdep.c (i386_gdbarch_init): Ditto.
2325 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2326 * frv-tdep.c (frv_gdbarch_init): Ditto.
2327 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2328 * cris-tdep.c (cris_gdbarch_init): Ditto.
2329 * arm-tdep.c (arm_gdbarch_init): Ditto.
2331 2003-03-31 Andrew Cagney <cagney@redhat.com>
2333 * gdbarch.sh (CALL_DUMMY_P): Delete.
2334 * gdbarch.h, gdbarch.c: Re-generate.
2335 * inferior.h (CALL_DUMMY_P): Delete macro.
2336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2337 * vax-tdep.c (vax_gdbarch_init): Update.
2338 * v850-tdep.c (v850_gdbarch_init): Update.
2339 * sparc-tdep.c (sparc_gdbarch_init): Update.
2340 * sh-tdep.c (sh_gdbarch_init): Update.
2341 * s390-tdep.c (s390_gdbarch_init): Update.
2342 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2343 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2344 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2345 * mips-tdep.c (mips_gdbarch_init): Update.
2346 * mcore-tdep.c (mcore_gdbarch_init): Update.
2347 * m68k-tdep.c (m68k_gdbarch_init): Update.
2348 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2349 * ia64-tdep.c (ia64_gdbarch_init): Update.
2350 * i386-tdep.c (i386_gdbarch_init): Update.
2351 * h8300-tdep.c (h8300_gdbarch_init): Update.
2352 * frv-tdep.c (frv_gdbarch_init): Update.
2353 * d10v-tdep.c (d10v_gdbarch_init): Update.
2354 * cris-tdep.c (cris_gdbarch_init): Update.
2355 * breakpoint.c (deprecated_frame_in_dummy): Update.
2356 * avr-tdep.c (avr_gdbarch_init): Update.
2357 * alpha-tdep.c (alpha_gdbarch_init): Update.
2358 * arm-tdep.c (arm_gdbarch_init): Update.
2359 * dummy-frame.c (dummy_frame_this_id): Update comments.
2360 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
2361 * frame.c (legacy_get_prev_frame): Ditto.
2362 * valops.c (call_function_by_hand): Delete function.
2363 (hand_function_call): Rename to call_function_by_hand
2365 2003-03-30 Andrew Cagney <cagney@redhat.com>
2367 2002-11-10 Klee Dienes <kdienes@apple.com>
2368 * value.h (struct value): Update comment.
2370 2003-03-30 Andrew Cagney <cagney@redhat.com>
2372 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
2374 (d10v_gdbarch_init): Do not set fp_regnum.
2376 * frame.c (get_frame_base): Force ID initialization.
2377 (get_prev_frame): Move computation of the frame ID from here ...
2378 (get_frame_id): ... to here.
2379 (legacy_get_prev_frame): Mark the frame ID as valid.
2380 * frame.h (struct frame_info): Add field "id_p".
2382 2003-03-30 Mark Kettenis <kettenis@gnu.org>
2384 * i386-tdep.c (i386_store_struct_return): Removed.
2385 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
2387 2003-03-30 Andrew Cagney <cagney@redhat.com>
2389 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
2390 * gdbarch.h, gdbarch.c: Regenerate.
2391 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
2392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2393 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2394 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2395 * i386-tdep.c (i386_gdbarch_init): Ditto.
2396 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2397 * cris-tdep.c (cris_gdbarch_init): Ditto.
2398 * vax-tdep.c (vax_gdbarch_init): Ditto.
2399 * s390-tdep.c (s390_gdbarch_init): Ditto.
2400 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2401 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2402 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2403 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
2404 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
2405 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
2406 * sparc-tdep.c (sparc_gdbarch_init): Update.
2407 * sh-tdep.c (sh_gdbarch_init): Update.
2408 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2409 * mips-tdep.c (mips_gdbarch_init): Update.
2410 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2411 * ia64-tdep.c (ia64_gdbarch_init): Update.
2412 * frv-tdep.c (frv_gdbarch_init): Update.
2413 * avr-tdep.c (avr_gdbarch_init): Update.
2414 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
2415 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
2416 instead of when push_dummy_call is not available.
2418 2003-03-30 Andrew Cagney <cagney@redhat.com>
2420 * infttrace.c: Include "gdbthread.h".
2421 (parent_attach_all): Fix function signature.
2422 (call_ptrace): Update call.
2423 * Makefile.in (infttrace.o): Update dependencies.
2425 2003-03-30 Andrew Cagney <cagney@redhat.com>
2427 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
2428 PUSH_RETURN_ADDRESS.
2429 * gdbarch.h, gdbarch.c: Regenerate.
2430 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2431 * x86-64-tdep.c (x86_64_init_abi): Update.
2432 * v850-tdep.c (v850_gdbarch_init): Update.
2433 * sparc-tdep.c (sparc_gdbarch_init): Update.
2434 * sh-tdep.c (sh_gdbarch_init): Update.
2435 * s390-tdep.c (s390_gdbarch_init): Update.
2436 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2437 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2438 * mips-tdep.c (mips_gdbarch_init): Update.
2439 * mcore-tdep.c (mcore_gdbarch_init): Update.
2440 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2441 * ia64-tdep.c (ia64_gdbarch_init): Update.
2442 * i386-tdep.c (i386_gdbarch_init): Update.
2443 * h8300-tdep.c (h8300_gdbarch_init): Update.
2444 * frv-tdep.c (frv_gdbarch_init): Update.
2445 * cris-tdep.c (cris_gdbarch_init): Update.
2446 * avr-tdep.c (avr_gdbarch_init): Update.
2447 * arm-tdep.c (arm_gdbarch_init): Update.
2448 * valops.c (hand_function_call): Update.
2450 2003-03-29 Andrew Cagney <cagney@redhat.com>
2452 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
2453 sizeof_call_dummy_words.
2454 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
2456 * gdbarch.h: Regenerate.
2458 2003-03-29 Andrew Cagney <cagney@redhat.com>
2460 * infttrace.h: New file.
2461 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
2462 (hpread_get_textlow): Detect an uninitialized dn_bufp.
2463 (hpread_read_doc_function_type): Detect an initialized type1.
2464 (hpread_quick_traverse): Initialize mod_name_string.
2465 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
2466 (som_solib_get_solib_by_pc): Declare.
2467 (so_lib_thread_start_addr): Declare.
2468 (no_shared_libraries): Declare.
2469 * somread.c (init_import_symbols): Make static. Add forward
2471 * config/pa/nm-hppah.h: Include "infttrace.h" for
2473 (hppa_insert_hw_watchpoint): Declare.
2474 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
2475 * hppah-nat.c: Include "gdb_string.h".
2476 (parent_attach_all): Delete extern declaration, moved to
2478 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
2480 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
2481 * Makefile.in (infttrace_h): Define.
2482 (hpread.o): Update dependencies.
2483 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
2484 * hppa-hpux-tdep.c: Include "gdb_string.h".
2485 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
2486 * infrun.c (handle_inferior_event): Always initialize
2487 stepped_after_stopped_by_watchpoint. Add default and remove
2488 fallthrough in switch statement.
2489 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
2491 (hppa_remove_hw_watchpoint): Ditto.
2493 2003-03-29 Andrew Cagney <cagney@redhat.com>
2495 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
2498 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
2500 * arm-tdep.c (arm_push_arguments): Delete.
2501 (struct stack_item): New type.
2502 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
2503 (arm_store_struct_return): Delte.
2504 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
2505 arm_push_arguments or arm_store_struct_return.
2507 2003-03-28 Andrew Cagney <cagney@redhat.com>
2509 * Makefile.in (d10v-tdep.o): Update dependencies.
2510 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
2511 * d10v-tdep.c: Include "remote.h".
2512 (target_resume_hook): Delete extern declaration.
2513 (target_wait_loop_hook): Ditto.
2514 (tdisassemble_command): Eliminate assignment in "if" conditional.
2515 (d10v_ts2_register_sim_regno): Eliminate call to
2516 legacy_register_sim_regno.
2517 (d10v_ts3_register_sim_regno): Ditto.
2519 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
2521 * thread.c: Reindented.
2523 * linux-proc.c: Ditto.
2525 2003-03-28 Bob Rossi <bob_rossi@cox.net>
2527 * MAINTAINERS (write after approval): Add myself.
2529 2003-03-27 Theodore A. Roth <troth@openavr.org>
2531 * objc-exp.y: Add missing semi-colons.
2533 2003-03-27 Andrew Cagney <cagney@redhat.com>
2535 * regcache.c (write_sp): Delete function and references.
2536 * inferior.h (write_sp): Delete declaration.
2537 * valops.c (hand_function_call): Replace write_sp with
2539 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
2540 (sparc_pop_frame): Ditto.
2542 2003-03-27 Andrew Cagney <cagney@redhat.com>
2544 * NEWS: Mention removal of support for hppa*-*-bsd* and
2545 hppa*-*-osf* natives, and hppa*-*-pro* target.
2546 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
2547 * config/pa/xm-pa.h: Obsolete file.
2548 * config/pa/xm-hppab.h: Obsolete file.
2549 * config/pa/nm-hppab.h: Obsolete file.
2550 * config/pa/tm-hppab.h: Obsolete file.
2551 * config/pa/tm-hppao.h: Obsolete file.
2552 * config/pa/nm-hppao.h: Obsolete file.
2553 * config/pa/tm-pro.h: Obsolete file.
2554 * config/pa/hppaosf.mt: Obsolete file.
2555 * config/pa/hppaosf.mh: Obsolete file.
2556 * config/pa/hppapro.mt: Obsolete file.
2557 * config/pa/hppabsd.mt: Obsolete file.
2558 * config/pa/hppabsd.mh: Obsolete file.
2559 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
2560 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
2563 2003-03-27 Andrew Cagney <cagney@redhat.com>
2565 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
2566 push_arguments. Don't set push_return_address or write_sp.
2567 (d10v_push_dummy_call): Replace d10v_push_arguments.
2568 (d10v_push_return_address, d10v_write_sp): Delete function,
2569 handled by push_dummy_call.
2571 2003-03-26 Andrew Cagney <cagney@redhat.com>
2573 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
2574 (push_dummy_call): New pure multi-arch replacement with gdbarch,
2575 regcache and dummy_addr parameters.
2576 * gdbarch.h, gdbarch.c: Re-generate.
2577 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
2578 available; assume it will handle stack alignment and return
2579 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
2580 legacy_push_arguments.
2581 (legacy_push_arguments): Rename default_push_arguments.
2582 * value.h (legacy_push_arguments): Rename default_push_arguments.
2583 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
2584 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2585 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2586 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
2587 * config/i386/tm-symmetry.h: Update.
2588 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2589 * x86-64-tdep.c (x86_64_init_abi): Update.
2590 * v850-tdep.c (v850_gdbarch_init): Update.
2591 * sparc-tdep.c (sparc_gdbarch_init): Update.
2592 * sh-tdep.c (sh_gdbarch_init): Update.
2593 * s390-tdep.c (s390_gdbarch_init): Update.
2594 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2595 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2596 * mips-tdep.c (mips_gdbarch_init): Update.
2597 * mcore-tdep.c (mcore_gdbarch_init): Update.
2598 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2599 * ia64-tdep.c (ia64_gdbarch_init): Update.
2600 * i386-tdep.c (i386_gdbarch_init): Update.
2601 * hppa-tdep.c (hppa_gdbarch_init): Update.
2602 * h8300-tdep.c (h8300_gdbarch_init): Update.
2603 * frv-tdep.c (frv_gdbarch_init): Update.
2604 * d10v-tdep.c (d10v_gdbarch_init): Update.
2605 * cris-tdep.c (cris_gdbarch_init): Update.
2606 * avr-tdep.c (avr_gdbarch_init): Update.
2607 * arm-tdep.c (arm_gdbarch_init): Update.
2608 * arm-linux-tdep.c (arm_linux_init_abi): Update.
2609 * alpha-tdep.c (alpha_gdbarch_init): Update.
2611 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2613 * signals/signals.c (do_target_signal_to_host): Correct realtime
2616 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2618 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
2619 (struct sal_chain, map_catch_names): Remove.
2620 (catch_exception_command_1): Don't call
2621 handle_gnu_4_16_catch_command.
2623 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2625 From Mark Dettinger <dettinge@de.ibm.com>:
2626 * dwarf2cfi.c (read_2u): Increment pointer by two.
2628 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2630 * signals/signals.c: Fix typos in last change.
2632 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
2634 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
2635 not already defined. Use __SIGRTMIN if available.
2636 (target_signal_from_host): Remove SIGRTMIN block.
2637 (do_target_signal_to_host): Remove SIGRTMIN block; check that
2638 the signal is within the realtime range.
2640 2003-03-25 Adam Fedor <fedor@gnu.org>
2642 * Makefile.in (infrun.o): Add $(language_h)
2643 * infrun.c (handle_inferior_event): Use skip_language_trampoline
2644 for language specific trampolines.
2645 * language.h (struct language_defn): Add skip_trampoline.
2646 (skip_language_trampoline): Declare.
2647 * language.c (unk_lang_trampoline, skip_language_trampoline):
2649 (unknown_language_defn, auto_language_defn, local_language_defn):
2650 Add ukn_lang_trampoline.
2651 * ada-lang.c (ada_language_defn): Add NULL for language
2652 specific skip_trampoline.
2653 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
2654 scm-lang.c: Likewise.
2655 * objc-lang.c (objc_skip_trampoline): New function.
2656 (objc_language_defn): Add objc_skip_trampoline.
2658 2003-03-25 Andrew Cagney <cagney@redhat.com>
2660 * frame.c (get_prev_frame): Delay validating a frame's ID -
2661 non-NULL, didn't go backwards - until an attempt to unwind it to
2664 2003-03-25 Andrew Cagney <cagney@redhat.com>
2666 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
2667 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
2668 * gdbarch.h, gdbarch.c: Re-generate.
2669 * config/sparc/tm-sparc.h
2670 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
2671 * sparc-tdep.c (sparc_gdbarch_init): Set
2672 deprecated_extra_stack_alignment_needed.
2673 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
2674 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
2675 extra_stack_alignment_needed.
2676 * v850-tdep.c (v850_gdbarch_init): Ditto.
2677 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
2678 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2679 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2680 * cris-tdep.c (cris_gdbarch_init): Ditto.
2681 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2682 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2684 2003-03-25 Andrew Cagney <cagney@redhat.com>
2686 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
2687 STORE_STRUCT_RETURN.
2688 * gdbarch.h, gdbarch.c: Regenerate.
2689 * d10v-tdep.c (d10v_store_struct_return): Delete function.
2690 (d10v_push_arguments): Set the struct return register.
2691 (d10v_gdbarch_init): Update.
2692 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2693 * x86-64-tdep.c (x86_64_init_abi): Update.
2694 * vax-tdep.c (vax_gdbarch_init): Update.
2695 * v850-tdep.c (v850_gdbarch_init): Update.
2696 * sparc-tdep.c (sparc_gdbarch_init): Update.
2697 * sh-tdep.c (sh_gdbarch_init): Update.
2698 * s390-tdep.c (s390_gdbarch_init): Update.
2699 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
2700 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2701 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2702 * mips-tdep.c (mips_gdbarch_init): Update.
2703 * mcore-tdep.c (mcore_gdbarch_init): Update.
2704 * m68k-tdep.c (m68k_gdbarch_init): Update.
2705 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2706 * ia64-tdep.c (ia64_gdbarch_init): Update.
2707 * i386-tdep.c (i386_gdbarch_init): Update.
2708 * hppa-tdep.c (hppa_gdbarch_init): Update.
2709 * h8300-tdep.c (h8300_gdbarch_init): Update.
2710 * frv-tdep.c (frv_gdbarch_init): Update.
2711 * cris-tdep.c (cris_gdbarch_init): Update.
2712 * avr-tdep.c (avr_gdbarch_init): Update.
2713 * arm-tdep.c (arm_gdbarch_init): Update.
2714 * alpha-tdep.c (alpha_gdbarch_init): Update.
2716 2003-03-25 Andrew Cagney <cagney@redhat.com>
2718 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
2719 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
2720 CALL_DUMMY_STACK_ADJUST with a predicate variable.
2721 * gdbarch.h, gdbarch.c: Regenerate.
2722 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2723 call_dummy_stack_adjust_p.
2724 * vax-tdep.c (vax_gdbarch_init): Ditto.
2725 * v850-tdep.c (v850_gdbarch_init): Ditto.
2726 * sh-tdep.c (sh_gdbarch_init): Ditto.
2727 * s390-tdep.c (s390_gdbarch_init): Ditto.
2728 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2729 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
2730 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2731 * mips-tdep.c (mips_gdbarch_init): Ditto.
2732 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2733 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
2734 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2735 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2736 * i386-tdep.c (i386_gdbarch_init): Ditto.
2737 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2738 * frv-tdep.c (frv_gdbarch_init): Ditto.
2739 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2740 * cris-tdep.c (cris_gdbarch_init): Ditto.
2741 * avr-tdep.c (avr_gdbarch_init): Ditto.
2742 * arm-tdep.c (arm_gdbarch_init): Ditto.
2743 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2744 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2745 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
2746 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
2747 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
2748 call_dummy_stack_adjust_p.
2749 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
2750 (CALL_DUMMY_STACK_ADJUST): Delete macro.
2751 * sparc-tdep.c (sparc32_push_arguments): Update.
2752 * valops.c (hand_function_call): Update.
2754 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
2756 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
2757 set_gdbarch_char_signed.
2759 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2762 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
2764 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
2766 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
2767 (_initialize_arm_tdep): Don't set tm_print_insn.
2769 2003-03-24 Adam Fedor <fedor@gnu.org>
2771 * Makefile.in (YYOBJ): Add objc-exp.tab.o
2772 * objc-lang.h: Add multiple inclusion protection.
2773 (start_msglist, add_msglist, end_msglist): Additional declarations.
2775 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
2777 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
2778 value was renamed to ARM_FLOAT_SOFT_FPA.
2780 2003-03-23 Andrew Cagney <cagney@redhat.com>
2782 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
2783 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2785 * valops.c (hand_function_call): Update.
2786 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2787 * frame.c (legacy_saved_regs_this_id): Update.
2788 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
2789 * dummy-frame.h: Update.
2790 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
2791 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
2792 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
2793 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
2794 * config/m68k/tm-sun3.h: Update.
2795 * blockframe.c (inside_main_func, frame_chain_valid): Update.
2796 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2797 * x86-64-tdep.c (x86_64_init_abi): Update.
2798 * vax-tdep.c (vax_gdbarch_init): Update.
2799 * v850-tdep.c (v850_gdbarch_init): Update.
2800 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
2801 * sh-tdep.c (sh_gdbarch_init): Update.
2802 * s390-tdep.c (s390_gdbarch_init): Update.
2803 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
2804 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
2805 (frame_get_saved_regs): Update.
2806 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
2807 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2808 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2809 * mips-tdep.c (mips_gdbarch_init): Update.
2810 * mcore-tdep.c (mcore_gdbarch_init): Update.
2811 * m68k-tdep.c (m68k_gdbarch_init): Update.
2812 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
2813 * ia64-tdep.c (ia64_gdbarch_init): Update.
2814 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
2815 * i386-interix-tdep.c (i386_interix_init_abi): Update.
2816 (i386_interix_back_one_frame): Update.
2817 * hppa-tdep.c (hppa_gdbarch_init): Update.
2818 (hppa_init_extra_frame_info): Update.
2819 * h8300-tdep.c (h8300_gdbarch_init): Update.
2820 * frv-tdep.c (frv_gdbarch_init): Update.
2821 * cris-tdep.c (cris_gdbarch_init): Update.
2822 * avr-tdep.c (avr_gdbarch_init): Update.
2823 * arm-tdep.c (arm_gdbarch_init): Update.
2824 * alpha-tdep.c (alpha_gdbarch_init): Update.
2826 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2828 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
2829 (arm_get_fp_model): Declare.
2830 * arm-tdep.c (fp_model_strings): New string array.
2831 (arm_fp_model, current_fp_model): New variables.
2832 (arm_get_fp_model): New function.
2833 (arm_set_fp): New function.
2834 (set_fp_model_sfunc): New function.
2835 (show_fp_model): New function.
2836 (_initialize_arm_tdep): Add new command to set/show the FPU.
2837 (arm_extract_return_value): Use arm_get_fp_model.
2838 (arm_store_return_value): Likewise.
2839 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
2840 to initialize the floating-point data types.
2841 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
2844 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2846 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
2847 the current setting of each value.
2848 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
2849 new_set and new_show. Use add_setshow_cmd_full and
2850 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
2851 commands and add new version as subcommands of "set/show arm".
2853 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2855 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
2856 (set_arm_command, show_arm_command): New functions.
2857 (_initialize_arm_tdep): Add them.
2858 (num_disassembly_options): Renamed from num_flavor_options.
2859 (valid_disassembly_styles): Renamed from valid_flavors.
2860 (disassembly_style): Renamed from disassembly_flavor.
2861 (set_disassembly_style_sfunc): Renamed from
2862 set_disassembly_flavor_sfunc.
2863 (set_disassembly_style): Renamed from set_disassembly_flavor.
2864 (arm_othernames): Updated.
2865 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
2866 command. Add "set/show arm disassembly" commands. Deprecate
2867 "othernames" command.
2869 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2871 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
2872 (arm-tdep.o): Depend on elf_arm_h.
2874 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2876 * Makefile.in (coff_internal_h): Define.
2877 (arm-tdep.o): Update dependencies.
2879 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
2881 * arm-tdep.c (prologue_cache): Delete.
2882 (check_prologue_cache, save_prologue_cache): Delete.
2883 (arm_scan_prologue): Don't check or update the prologue_cache.
2884 (arm_gdb_arch_init): Don't initialize it.
2885 (_initialize_arm_tdep): Likewise.
2887 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
2889 * MAINTAINERS (tui): Maintainer of tui code.
2891 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
2893 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
2894 (i386-cygwin-tdep.o): Add dependencies.
2895 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
2896 * i386-cygwin-tdep.c: New file.
2897 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
2898 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
2900 2003-03-20 Andrew Cagney <cagney@redhat.com>
2902 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
2903 (handle_inferior_event): Remove code calling
2904 DYNAMIC_TRAMPOLINE_NEXTPC.
2906 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
2907 already has a full path.
2909 * main.c (gdb_main): Return 1.
2910 (captured_main): Call error to report an invalid interpreter.
2912 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
2913 * alpha-osf1-tdep.c: Include "gdb_string.h".
2915 2003-03-19 J. Brobecker <brobecker@gnat.com>
2917 Continuing work to convert the hppa targets to multiarch partial.
2919 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
2920 method, now that hppa_push_dummy_frame has a conformant prototype.
2921 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
2922 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
2923 for the switch to multiarch partial.
2925 2003-03-19 Kevin Buettner <kevinb@redhat.com>
2927 * mdebugread.c (parse_symbol): For stEnd, we're done counting
2928 when iss is issNull.
2930 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2932 * mips-tdep.c (mips_register_name): Fix fencepost error involving
2933 NUM_REGS bounds check.
2935 2003-03-18 Kevin Buettner <kevinb@redhat.com>
2937 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
2938 * mips-tdep.c (gdb_assert.h): Include.
2939 (mips_generic_reg_names, mips_processor_reg_names): Make static.
2940 (mips_register_name): Handle integer registers explicitly. Add
2942 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
2943 (mips_lsi33k_reg_names): Don't list integer registers; they're
2944 handled by mips_register_name() now.
2945 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
2946 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
2947 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
2948 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
2949 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
2951 2003-03-18 Andrew Cagney <cagney@redhat.com>
2953 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
2955 * gdbtypes.h (print_scalar_formatted): Update declaration.
2956 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
2958 2003-03-18 J. Brobecker <brobecker@gnat.com>
2960 * infrun.c (observer.h): Add #include.
2961 (normal_stop): Add call to observer_notify_normal_stop.
2962 * Makefile.in (infrun.o): Add dependency on observer.h.
2964 2003-03-18 J. Brobecker <brobecker@gnat.com>
2966 Continuing work to convert the hppa targets to multiarch partial.
2967 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
2968 parameter. Reformat comment.
2969 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
2970 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
2971 to match new profile.
2973 2003-03-18 J. Brobecker <brobecker@gnat.com>
2975 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
2976 appear to be working in any case.
2978 2003-03-18 J. Brobecker <brobecker@gnat.com>
2980 * observer.c (observer_test_first_observer): New static variable.
2981 (observer_test_second_observer): Likewise.
2982 (observer_test_third_observer): Likewise.
2983 (observer_test_first_notification_function): New static function.
2984 (observer_test_second_notification_function): Likewise.
2985 (observer_test_third_notification_function): Likewise.
2987 2003-03-17 J. Brobecker <brobecker@gnat.com>
2989 * hppa-tdep.c (gdb_assert.h): Add missing #include.
2990 * somsolib.c (gdb_assert.h): Likewise.
2991 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
2992 (somsolib.o): Likewise.
2994 2003-03-17 Andrew Cagney <cagney@redhat.com>
2996 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
2997 BFD. Simplify setting of di.endian.
2999 2003-03-17 Andrew Cagney <cagney@redhat.com>
3001 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
3002 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
3004 From Elena Zannoni <ezannoni@redhat.com>
3005 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
3006 vector and floating-point parameters.
3007 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
3009 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
3011 2003-03-17 Fernando Nasser <fnasser@redhat.com>
3013 * MAINTAINERS: Remove my name from several maintainership roles.
3015 2003-03-17 Andrew Cagney <cagney@redhat.com>
3017 Fix frame off-by-one bug.
3018 * frame-unwind.h (frame_this_id_ftype): Replace
3019 frame_unwind_id_ftype.
3020 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
3021 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
3022 with "prev_register".
3023 * frame-unwind.c (frame_unwind_find_by_pc): Return
3024 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
3026 * dummy-frame.c (cached_find_dummy_frame): Delete function.
3027 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
3028 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
3029 (dummy_frame_unwind): Update.
3030 * sentinel-frame.c (sentinel_frame_prev_register): Replace
3031 sentinel_frame_register_unwind.
3032 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
3033 (sentinel_frame_unwinder): Update.
3034 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3035 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
3036 * frame.c (create_sentinel_frame): Update. Initialize
3037 "prologue_cache" instead of "unwind_cache".
3038 (frame_register_unwind): Call this frame's prev_register with the
3039 next frame and this frame's prologue cache.
3040 (get_prev_frame): Simplify. Always call prev frame's this_id with
3041 this frame and prev frame's prologue cache. Document that this
3042 call is shifted one to the left when compared to the
3043 frame_register_unwind call.
3044 (legacy_saved_regs_prev_register): Replace
3045 frame_saved_regs_register_unwind.
3046 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
3047 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
3048 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
3049 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
3050 (d10v_frame_unwind): Update.
3051 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
3052 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
3053 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
3054 "saved_regs" with "this_saved_regs".
3056 2003-03-16 Andrew Cagney <cagney@redhat.com>
3058 * frame.c (frame_pop): Don't call target_store_registers. Fix
3059 problem reported by Mark Kettenis.
3061 2003-03-16 Mark Kettenis <kettenis@gnu.org>
3063 * i386-tdep.c (i386_register_type): Renamed from
3064 i386_register_virtual_type. Adjust function signature.
3065 (i386_gdbarch_init): Set register_type instead of
3066 deprecated_max_register_raw_size,
3067 deprecated_max_register_virtual_size and register_virtual_type.
3069 2003-03-14 Andrew Cagney <cagney@redhat.com>
3071 * frame.c (get_prev_frame): When a legacy frame, always call
3072 legacy_get_prev_frame. Simplify unwind code using assumption that
3073 the unwinder is new.
3074 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
3075 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
3076 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
3078 2003-03-14 Andrew Cagney <cagney@redhat.com>
3080 * frame.c (get_saved_register): Delete function.
3081 * frame.h (get_saved_register): Delete declaration.
3082 * xstormy16-tdep.c: Update comment.
3083 * regcache.h: Update comments.
3084 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
3085 get_saved_register and extract_address, use
3086 frame_read_unsigned_register.
3087 (sparc_frame_saved_pc): Ditto.
3088 (sparc_get_saved_register): Instead of get_saved_register, use
3090 (sparc_pop_frame): Ditto.
3091 * findvar.c: Update comments.
3092 (value_of_register): Call frame_register instead of
3094 (value_from_register): Ditto.
3095 * config/sparc/tm-sparc.h: Update comment.
3096 * breakpoint.c: Update comment.
3098 2003-03-14 Andrew Cagney <cagney@redhat.com>
3100 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
3102 * gdbarch.h, gdbarch.c: Re-generate.
3103 * frame.h: Update comments.
3104 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3105 * x86-64-tdep.c (x86_64_init_abi): Update.
3106 * sparc-tdep.c (sparc_gdbarch_init): Update.
3107 * sh-tdep.c (sh_gdbarch_init): Update.
3108 * mips-tdep.c (mips_gdbarch_init): Update.
3109 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3110 * cris-tdep.c (cris_gdbarch_init): Update.
3111 * ia64-tdep.c (ia64_gdbarch_init): Update.
3112 * frame.c (frame_register): Update.
3113 (get_saved_register): Update.
3114 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
3116 2003-03-13 Andrew Cagney <cagney@redhat.com>
3118 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
3119 * gdbarch.h, gdbarch.c: Regenerate.
3120 * valops.c (hand_function_call): Update comment.
3121 * stack.c (return_command): Update comment.
3122 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
3123 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
3124 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3125 * x86-64-tdep.c (x86_64_init_abi): Update.
3126 * vax-tdep.c (vax_gdbarch_init): Update.
3127 * v850-tdep.c (v850_gdbarch_init): Update.
3128 * sparc-tdep.c (sparc_gdbarch_init): Update.
3129 * sh-tdep.c (sh_gdbarch_init): Update.
3130 * s390-tdep.c (s390_gdbarch_init): Update.
3131 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3132 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3133 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3134 * mips-tdep.c (mips_gdbarch_init): Update.
3135 * mcore-tdep.c (mcore_gdbarch_init): Update.
3136 * m68k-tdep.c (m68k_gdbarch_init): Update.
3137 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3138 * ia64-tdep.c (ia64_gdbarch_init): Update.
3139 * i386-tdep.c (i386_gdbarch_init): Update.
3140 * hppa-tdep.c (hppa_gdbarch_init): Update.
3141 * h8300-tdep.c (h8300_gdbarch_init): Update.
3142 * frv-tdep.c (frv_gdbarch_init): Update.
3143 * cris-tdep.c (cris_gdbarch_init): Update.
3144 * avr-tdep.c (avr_gdbarch_init): Update.
3145 * arm-tdep.c (arm_gdbarch_init): Update.
3146 * alpha-tdep.c (alpha_gdbarch_init): Update.
3148 2003-03-13 Andrew Cagney <cagney@redhat.com>
3150 * frame.c (legacy_frame_p): New function.
3151 (get_prev_frame): Use legacy_frame_p.
3152 * frame.h (legacy_frame_p): Declare.
3154 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3156 * MAINTAINERS (write after approval): Alphabetically
3159 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
3161 * MAINTAINERS (write after approval): Add myself.
3163 2003-03-12 Andrew Cagney <cagney@redhat.com>
3165 * frame.c (get_prev_frame): Rename the frame parameter to
3167 (get_next_frame, legacy_get_prev_frame): Ditto.
3169 2003-03-12 Andrew Cagney <cagney@redhat.com>
3171 * frame.c (get_current_frame): Check target_has_registers before
3172 checking target_has_stack.
3173 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
3174 instead of deprecated_selected_frame.
3175 * findvar.c (value_of_register): Pass "frame", not
3176 deprecated_selected_frame, to value_of_builtin_reg.
3178 2003-03-12 Andrew Cagney <cagney@redhat.com>
3180 * regcache.c (regcache_cooked_write_signed): New function.
3181 (regcache_cooked_write_unsigned): New function.
3182 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
3183 (regcache_cooked_read_signed): Fix regnum in range assertion.
3184 * regcache.h (regcache_cooked_write_signed): Declare.
3185 (regcache_cooked_write_unsigned): Declare.
3187 2003-03-12 Andrew Cagney <cagney@redhat.com>
3189 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3190 * gdbarch.h, gdbarch.c: Re-generate.
3191 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3192 * x86-64-tdep.h: Update.
3193 * x86-64-tdep.c (x86_64_init_abi): Update.
3194 * v850-tdep.c (v850_gdbarch_init): Update.
3195 * sparc-tdep.c (sparc_gdbarch_init): Update.
3196 * sh-tdep.c (sh_gdbarch_init): Update.
3197 * s390-tdep.c (s390_gdbarch_init): Update.
3198 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3199 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3200 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3201 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3202 * mips-tdep.c (mips_gdbarch_init): Update.
3203 * mcore-tdep.c (mcore_gdbarch_init): Update.
3204 * m68k-tdep.c (m68k_gdbarch_init): Update.
3205 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3206 * ia64-tdep.c (ia64_gdbarch_init): Update.
3207 * i386-tdep.c (i386_gdbarch_init): Update.
3208 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3209 * hppa-tdep.c (hppa_gdbarch_init): Update.
3210 * h8300-tdep.c (h8300_gdbarch_init): Update.
3211 * frv-tdep.c (frv_gdbarch_init): Update.
3212 * cris-tdep.c (cris_gdbarch_init): Update.
3213 * avr-tdep.c (avr_gdbarch_init): Update.
3214 * arm-tdep.c (arm_gdbarch_init): Update.
3215 * alpha-tdep.c (alpha_gdbarch_init): Update.
3216 * sh-tdep.c (sh_init_extra_frame_info): Update.
3217 (sh64_init_extra_frame_info): Update.
3218 * ns32knbsd-nat.c (frame_num_args): Update.
3219 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3220 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3221 (xstormy16_frame_chain_valid): Update.
3222 * vax-tdep.c (vax_saved_pc_after_call): Update.
3223 * v850-tdep.c (v850_frame_chain): Update.
3224 (v850_pop_frame): Update.
3225 (v850_init_extra_frame_info): Update.
3226 * sparc-tdep.c (setup_arbitrary_frame): Update.
3227 * ns32k-tdep.c (umax_frame_num_args): Update.
3228 * s390-tdep.c (s390_pop_frame_regular): Update.
3229 * mn10300-tdep.c (mn10300_frame_chain): Update.
3230 (mn10300_pop_frame_regular): Update.
3231 (mn10300_init_extra_frame_info): Update.
3232 * mips-tdep.c (mips_init_frame_pc_first): Update.
3233 (mips_frame_chain): Update.
3234 (mips_pop_frame): Update.
3235 * mcore-tdep.c (mcore_frame_chain): Update.
3236 (mcore_pop_frame): Update.
3237 (mcore_init_extra_frame_info): Update.
3238 * arch-utils.c (init_frame_pc_default): Update.
3239 * m68k-tdep.c (isi_frame_num_args): Update.
3240 (delta68_frame_num_args): Update.
3241 (news_frame_num_args): Update.
3242 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3243 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3244 (alpha_frame_chain): Update.
3245 (alpha_pop_frame): Update.
3246 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3247 (hppa_init_extra_frame_info): Update.
3248 (hppa_frame_chain): Update.
3249 (hppa_frame_chain_valid): Update.
3250 * cris-tdep.c (cris_init_extra_frame_info): Update.
3251 * avr-tdep.c (avr_init_extra_frame_info): Update.
3252 * arm-tdep.c (arm_frame_chain_valid): Update.
3253 (arm_init_extra_frame_info): Update.
3254 (arm_pop_frame): Update.
3255 * frame.c (frame_pc_unwind): Update.
3256 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3257 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3258 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3259 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3260 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3261 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3263 2003-03-12 Andrew Cagney <cagney@redhat.com>
3265 Eliminate the need for POP_FRAME.
3266 * frame.c (do_frame_unwind_register): New function.
3267 (frame_pop): When no POP_FRAME, pop the frame using register
3268 unwind and a scratch regcache.
3269 (frame_saved_regs_pop): Delete function.
3270 (trad_frame_unwinder): Update.
3271 * d10v-tdep.c (d10v_frame_pop): Delete function.
3272 (d10v_frame_unwind): Update.
3273 * sentinel-frame.c (sentinel_frame_pop): Delete function.
3274 (sentinel_frame_unwinder): Update.
3275 * dummy-frame.c (dummy_frame_pop): Delete function.
3276 (dummy_frame_unwind): Update.
3277 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
3278 (struct frame_unwind): Update.
3280 2003-03-11 Kevin Buettner <kevinb@redhat.com>
3282 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
3283 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
3284 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
3285 Do range checks on register number obtained from debugging info.
3286 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
3287 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
3288 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
3290 (do_fp_register_row): Fix typo which caused double type to be
3291 used when attempting to unpack a float.
3293 2003-03-11 J. Brobecker <brobecker@gnat.com>
3295 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
3297 2003-03-11 Andrew Cagney <cagney@redhat.com>
3299 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
3300 frame. Problem found by Corinna Vinschen.
3302 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
3304 * doublest.c (floatformat_from_length): Accept also
3305 the real size of 'long double' type.
3307 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
3309 From Klee Dienes <kdienes@apple.com>:
3310 * breakpoint.c (bpstat_copy): Copy the command lines as well
3311 as the old value, to match what is freed in bpstat_clear.
3313 2003-03-10 David Carlton <carlton@math.stanford.edu>
3315 * minsyms.c (add_minsym_to_hash_table): Replace
3316 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
3317 (compare_minimal_symbols, compact_minimal_symbols)
3318 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
3319 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
3320 of DEPRECATED_SYMBOL_MATCHES_NAME.
3321 (lookup_minimal_symbol_solib_trampoline): Ditto.
3323 2003-03-10 Andrew Cagney <cagney@redhat.com>
3325 * regcache.h (regcache_cooked_read_ftype): Define.
3326 (regcache_save, regcache_restore): Add a cooked_read parameter.
3327 * regcache.c (regcache_save, regcache_restore): Update.
3328 (do_cooked_read): New function.
3329 (regcache_cpy): Pass do_cooked_read to regcache_save and
3332 2003-03-10 Andrew Cagney <cagney@redhat.com>
3334 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
3335 * gdbarch.h, gdbarch.c: Re-generate.
3336 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3337 * x86-64-tdep.h: Update.
3338 * x86-64-tdep.c (x86_64_init_abi): Update.
3339 * v850-tdep.c (v850_gdbarch_init): Update.
3340 * sparc-tdep.c (sparc_gdbarch_init): Update.
3341 * sh-tdep.c (sh_gdbarch_init): Update.
3342 * s390-tdep.c (s390_gdbarch_init): Update.
3343 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3344 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3345 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3346 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3347 * mips-tdep.c (mips_gdbarch_init): Update.
3348 * mcore-tdep.c (mcore_gdbarch_init): Update.
3349 * m68k-tdep.c (m68k_gdbarch_init): Update.
3350 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3351 * ia64-tdep.c (ia64_gdbarch_init): Update.
3352 * i386-tdep.c (i386_gdbarch_init): Update.
3353 * i386-interix-tdep.c (i386_interix_init_abi): Update.
3354 * hppa-tdep.c (hppa_gdbarch_init): Update.
3355 * h8300-tdep.c (h8300_gdbarch_init): Update.
3356 * frv-tdep.c (frv_gdbarch_init): Update.
3357 * cris-tdep.c (cris_gdbarch_init): Update.
3358 * avr-tdep.c (avr_gdbarch_init): Update.
3359 * arm-tdep.c (arm_gdbarch_init): Update.
3360 * alpha-tdep.c (alpha_gdbarch_init): Update.
3361 * sh-tdep.c (sh_init_extra_frame_info): Update.
3362 (sh64_init_extra_frame_info): Update.
3363 * ns32knbsd-nat.c (frame_num_args): Update.
3364 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
3365 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
3366 (xstormy16_frame_chain_valid): Update.
3367 * vax-tdep.c (vax_saved_pc_after_call): Update.
3368 * v850-tdep.c (v850_frame_chain): Update.
3369 (v850_pop_frame): Update.
3370 (v850_init_extra_frame_info): Update.
3371 * sparc-tdep.c (setup_arbitrary_frame): Update.
3372 * ns32k-tdep.c (umax_frame_num_args): Update.
3373 * s390-tdep.c (s390_pop_frame_regular): Update.
3374 * mn10300-tdep.c (mn10300_frame_chain): Update.
3375 (mn10300_pop_frame_regular): Update.
3376 (mn10300_init_extra_frame_info): Update.
3377 * mips-tdep.c (mips_init_frame_pc_first): Update.
3378 (mips_frame_chain): Update.
3379 (mips_pop_frame): Update.
3380 * mcore-tdep.c (mcore_frame_chain): Update.
3381 (mcore_pop_frame): Update.
3382 (mcore_init_extra_frame_info): Update.
3383 * arch-utils.c (init_frame_pc_default): Update.
3384 * m68k-tdep.c (isi_frame_num_args): Update.
3385 (delta68_frame_num_args): Update.
3386 (news_frame_num_args): Update.
3387 * ia64-tdep.c (ia64_pop_frame_regular): Update.
3388 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
3389 (alpha_frame_chain): Update.
3390 (alpha_pop_frame): Update.
3391 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
3392 (hppa_init_extra_frame_info): Update.
3393 (hppa_frame_chain): Update.
3394 (hppa_frame_chain_valid): Update.
3395 * cris-tdep.c (cris_init_extra_frame_info): Update.
3396 * avr-tdep.c (avr_init_extra_frame_info): Update.
3397 * arm-tdep.c (arm_frame_chain_valid): Update.
3398 (arm_init_extra_frame_info): Update.
3399 (arm_pop_frame): Update.
3400 * frame.c (frame_pc_unwind): Update.
3401 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
3402 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3403 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
3404 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
3405 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
3406 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
3408 2003-03-10 Andrew Cagney <cagney@redhat.com>
3410 * gdbarch.sh (gdbarch_unwind_pc): New method.
3411 * gdbarch.h, gdbarch.c: Regenerate.
3412 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
3413 but use read_pc and FRAME_SAVED_PC as fall backs.
3414 (frame_saved_regs_pc_unwind): Delete function.
3415 (trad_frame_unwinder): Update.
3416 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
3417 (struct frame_unwind): Update.
3418 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
3419 (dummy_frame_unwind): Update.
3420 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
3421 (sentinel_frame_unwinder): Update.
3422 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
3423 (d10v_frame_unwind): Update.
3424 (d10v_unwind_pc): New function.
3425 (d10v_gdbarch_init): Set unwind_pc.
3427 2003-03-10 Andrew Cagney <cagney@redhat.com>
3429 * gdbarch.h: Re-generate.
3431 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
3433 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
3436 2003-03-08 Mark Kettenis <kettenis@gnu.org>
3438 * gdbarch.sh (save_dummy_frame_tos): Add comment.
3440 2003-03-08 Andrew Cagney <cagney@redhat.com>
3442 * cli-out.c: Update copyright.
3443 (cli_out_data): Define typedef. Use instead of ui_out_data.
3445 2003-03-08 Andrew Cagney <cagney@redhat.com>
3447 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
3450 2003-03-07 Andrew Cagney <cagney@redhat.com>
3452 * gdbarch.sh: Don't generate two macro definitions when an
3453 undefined macro taking no arguments.
3454 * gdbarch.h: Regenerate.
3456 2002-03-07 Michal Ludvig <mludvig@suse.cz>
3458 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
3459 (x86_64_unwind_dummy_id): New functions.
3460 (x86_64_init_abi): Register these two new functions.
3462 2003-03-07 Michal Ludvig <mludvig@suse.cz>
3464 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
3465 (x86_64_skip_prologue): Move prologue detection to
3467 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
3469 2003-03-05 Andrew Cagney <cagney@redhat.com>
3471 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
3472 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
3473 * frame.c (get_prev_frame): Restructure the frame ID unwind code
3474 to use unwind_dummy_id when a dummy frame.
3475 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
3477 * gdbarch.h, gdbarch.c: Regneerate.
3479 2003-03-05 Andrew Cagney <cagney@redhat.com>
3481 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
3482 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
3483 Do not use d10v_read_sp or d10v_read_fp when obtaining register
3486 2003-03-05 Andrew Cagney <cagney@redhat.com>
3488 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
3489 (struct d10v_unwind_cache): Delete field "frameless". Replace
3490 "next_addr" with "sp_offset". Add "r11_offset".
3491 (d10v_frame_unwind_cache): Update.
3492 (prologue_find_regs): Update. When "mv r11, sp", save the
3493 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
3494 RN was saved in r11_offset.
3496 2003-03-05 Andrew Cagney <cagney@redhat.com>
3498 * frame.c (deprecated_update_frame_pc_hack): Also update the the
3499 cached PC value in the next frame.
3501 2003-03-05 Andrew Cagney <cagney@redhat.com>
3503 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
3504 "id_unwind_cache" with "id".
3505 (frame_id_unwind): Delete declaration.
3506 * frame.c (frame_id_unwind): Delete function.
3507 (get_prev_frame): Call the frame id unwind method directly. Store
3508 the returned next frame's ID value in NEXT_FRAME. Note that there
3509 is a problem with the wrong unwind ID being called with the wrong
3512 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3514 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
3516 2003-03-05 James Ingham <jingham@apple.com>
3517 Daniel Jacobowitz <drow@mvista.com>
3519 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
3520 (auto_cp_abi): New variable.
3521 (current_cp_abi, num_cp_abis): Make static.
3522 (CP_ABI_MAX): Define.
3523 (cp_abis): Turn into an array.
3524 (value_virtual_fn_field): Fix formatting.
3525 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
3527 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
3528 (list_cp_abis, _initialize_cp_abi): New functions.
3529 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
3530 declarations for cp_abis, num_cp_abis, current_cp_abi, and
3531 switch_to_cp_abi. Update prototype for register_cp_abi.
3532 * Makefile.in (cp-abi.o): Update dependencies.
3533 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
3534 instead of switch_to_cp_abi.
3535 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
3537 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
3539 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
3541 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
3543 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
3544 * dwarf2loc.c: Include "regcache.h".
3545 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
3547 * Makefile.in (dwarf2loc.o): Update dependencies.
3549 2003-03-04 Theodore A. Roth <troth@openavr.org>
3551 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
3552 number of io registers reported by remote target is not a multiple of
3555 2003-03-04 David Carlton <carlton@math.stanford.edu>
3557 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
3558 (lookup_symbol_aux_psymtabs): Update call to
3559 lookup_partial_symbol.
3560 (lookup_transparent_type, find_main_psymtab)
3561 (make_symbol_overload_list): Ditto.
3563 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
3565 * MAINTAINERS (Write after approval): Update my email address.
3567 2003-03-03 Andrew Cagney <cagney@redhat.com>
3569 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
3570 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
3571 predicate. Replace MAX_REGISTER_RAW_SIZE.
3572 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
3573 MAX_REGISTER_VIRTUAL_SIZE.
3574 * regcache.c (legacy_max_register_raw_size): New function.
3575 (legacy_max_register_virtual_size): New function.
3576 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
3577 (MAX_REGISTER_RAW_SIZE): Define.
3578 (legacy_max_register_raw_size): Declare.
3579 (legacy_max_register_virtual_size): Declare.
3580 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3581 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
3582 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3583 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3584 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
3585 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
3586 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3587 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3588 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
3589 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3590 * vax-tdep.c (vax_gdbarch_init): Update.
3591 * v850-tdep.c (v850_gdbarch_init): Update.
3592 * sparc-tdep.c (sparc_gdbarch_init): Update.
3593 * sh-tdep.c (sh_gdbarch_init): Update.
3594 * s390-tdep.c (s390_gdbarch_init): Update.
3595 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3596 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3597 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3598 * mips-tdep.c (mips_gdbarch_init): Update.
3599 * mcore-tdep.c (mcore_gdbarch_init): Update.
3600 * m68k-tdep.c (m68k_gdbarch_init): Update.
3601 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3602 * ia64-tdep.c (ia64_gdbarch_init): Update.
3603 * i386-tdep.c (i386_gdbarch_init): Update.
3604 * hppa-tdep.c (hppa_gdbarch_init): Update.
3605 * h8300-tdep.c (h8300_gdbarch_init): Update.
3606 * frv-tdep.c (frv_gdbarch_init): Update.
3607 * cris-tdep.c (cris_gdbarch_init): Update.
3608 * avr-tdep.c (avr_gdbarch_init): Update.
3609 * arm-tdep.c (arm_gdbarch_init): Update.
3610 * alpha-tdep.c (alpha_gdbarch_init): Update.
3611 * d10v-tdep.c (d10v_gdbarch_init): Do not set
3612 max_register_raw_size or max_register_virtual_size.
3614 2003-03-03 David Carlton <carlton@math.stanford.edu>
3616 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
3617 SYMBOL_MATCHES_NAME, add comment.
3618 (SYMBOL_MATCHES_NATURAL_NAME): New.
3619 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
3620 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
3621 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
3622 * symtab.c (lookup_partial_symbol): Use
3623 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
3625 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
3626 SYMBOL_MATCHES_NAME.
3629 2003-03-03 David Carlton <carlton@math.stanford.edu>
3631 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
3632 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
3633 by regexp matching against SYMBOL_NATURAL_NAME.
3635 2003-03-03 David Carlton <carlton@math.stanford.edu>
3637 * linespec.c (find_method): Extract code into collect_methods.
3638 (collect_methods): New.
3640 2003-03-02 Mark Kettenis <kettenis@gnu.org>
3642 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
3645 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
3646 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3648 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
3650 * arch-utils.c (generic_register_byte): Fix to use the loop index
3651 and not regnum when summing the size of all registers up to regnum.
3653 2003-03-01 Andrew Cagney <cagney@redhat.com>
3655 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
3656 FRAME_INIT_SAVED_REGS.
3657 * gdbarch.h, gdbarch.c: Regenerate.
3658 * stack.c (frame_info): Update.
3659 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
3660 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
3661 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
3662 * ns32k-tdep.c (ns32k_pop_frame): Update.
3663 * mips-tdep.c (mips_pop_frame): Update.
3664 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
3665 * ia64-tdep.c (ia64_frame_chain): Update.
3666 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
3667 (ia64_frameless_function_invocation): Update.
3668 (ia64_init_extra_frame_info): Update.
3669 (ia64_pop_frame_regular): Update.
3670 * frame.h (struct frame_info): Update comment.
3671 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
3672 * frame.c (frame_saved_regs_register_unwind): Update.
3673 (frame_saved_regs_register_unwind): Update.
3674 (deprecated_generic_get_saved_register): Update.
3675 * cris-tdep.c: Update comment.
3676 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
3678 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
3679 * x86-64-tdep.c (x86_64_init_abi): Update.
3680 * vax-tdep.c (vax_gdbarch_init): Update.
3681 * v850-tdep.c (v850_gdbarch_init): Update.
3682 * sparc-tdep.c (sparc_gdbarch_init): Update.
3683 * sh-tdep.c (sh_gdbarch_init): Update.
3684 * s390-tdep.c (s390_gdbarch_init): Update.
3685 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
3686 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
3687 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3688 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
3689 * mips-tdep.c (mips_gdbarch_init): Update.
3690 * mcore-tdep.c (mcore_gdbarch_init): Update.
3691 * m68k-tdep.c (m68k_gdbarch_init): Update.
3692 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3693 * ia64-tdep.c (ia64_gdbarch_init): Update.
3694 * i386-tdep.c (i386_gdbarch_init): Update.
3695 * frv-tdep.c (frv_gdbarch_init): Update.
3696 * avr-tdep.c (avr_gdbarch_init): Update.
3697 * arm-tdep.c (arm_gdbarch_init): Update.
3698 * alpha-tdep.c (alpha_gdbarch_init): Update.
3700 2003-03-01 Andrew Cagney <cagney@redhat.com>
3702 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
3703 option enum and switch. When no windows, set the interpreter to
3706 2003-03-01 Andrew Cagney <cagney@redhat.com>
3708 * main.c (captured_main): Replace magic option characters with an
3711 2003-03-01 Andrew Cagney <cagney@redhat.com>
3713 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
3714 INIT_EXTRA_FRAME_INFO.
3715 * gdbarch.h, gdbarch.c: Regenerate.
3716 * arm-tdep.c: Update comments.
3717 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
3718 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
3719 * frame.h, avr-tdep.c: Ditto.
3720 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
3721 (create_new_frame, legacy_get_prev_frame): Ditto.
3722 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3723 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
3724 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
3725 deprecated_init_extra_frame_info instead of init_extra_frame_info.
3726 * x86-64-tdep.c (x86_64_init_abi): Ditto.
3727 * v850-tdep.c (v850_gdbarch_init): Ditto.
3728 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
3729 * sh-tdep.c (sh_gdbarch_init): Ditto.
3730 * s390-tdep.c (s390_gdbarch_init): Ditto.
3731 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
3732 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3733 * mips-tdep.c (mips_gdbarch_init): Ditto.
3734 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3735 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3736 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3737 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
3738 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
3739 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3740 * frv-tdep.c (frv_gdbarch_init): Ditto.
3741 * cris-tdep.c (cris_gdbarch_init): Ditto.
3742 * avr-tdep.c (avr_gdbarch_init): Ditto.
3743 * arm-tdep.c (arm_gdbarch_init): Ditto.
3744 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
3745 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3747 2003-03-01 Andrew Cagney <cagney@redhat.com>
3749 * gdbarch.sh (register_type): New function with predicate.
3750 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
3751 * gdbarch.h, gdbarch.c: Re-generate.
3752 * arch-utils.c (generic_register_byte): Use generic_register_size.
3753 (generic_register_size): When available, use
3754 gdbarch_register_type.
3755 * regcache.c (init_regcache_descr): When available, initialize the
3756 register type array using gdbarch_register_type. If the
3757 architecture supplies gdbarch_register_type, do not use the legacy
3759 * d10v-tdep.c (d10v_register_type): Replace
3760 d10v_register_virtual_type.
3761 (d10v_gdbarch_init): Set register_type instead of
3762 register_virtual_type.
3764 2003-03-01 Andrew Cagney <cagney@redhat.com>
3766 * Makefile.in (ax-gdb.o): Update dependencies.
3767 * ax-gdb.c: Include "regcache.h".
3768 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
3769 * findvar.c (value_of_register): Ditto.
3770 * infcmd.c (default_print_registers_info): Ditto.
3772 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3774 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
3775 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
3777 2003-03-01 Mark Kettenis <kettenis@gnu.org>
3779 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
3782 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
3784 * Makefile.in (dwarf2loc.o): Update dependencies.
3785 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
3786 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
3787 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
3788 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
3789 (locexpr_tracepoint_var_ref): New function.
3790 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
3792 2003-02-28 Andrew Cagney <cagney@redhat.com>
3794 * regcache.c (register_size): New function.
3795 * regcache.h (register_size): Declare
3796 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
3797 max_register_size instead of MAX_REGISTER_RAW_SIZE.
3799 2003-02-28 David Carlton <carlton@math.stanford.edu>
3801 * linespec.c (decode_compound): Extract code into find_method.
3804 2003-02-28 J. Brobecker <brobecker@gnat.com>
3806 * Makefile.in: Add rules to build and link in observer.o.
3808 2003-02-27 J. Brobecker <brobecker@gnat.com>
3810 * observer.c: Minor comments edits.
3812 2003-02-27 J. Brobecker <brobecker@gnat.com>
3814 * observer.h, observer.c: New file.
3816 2003-02-27 Andrew Cagney <cagney@redhat.com>
3818 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
3820 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
3822 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
3823 (M6812_OP_STS_EXT): Likewise.
3824 (m6811_prologue): Use the above to recognize prologue.
3825 (m6812_prologue): Likewise.
3827 2003-02-27 David Carlton <carlton@math.stanford.edu>
3829 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
3831 (compare_psymbols): Ditto.
3832 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
3834 2003-02-27 Michael Snyder <msnyder@redhat.com>
3836 * f-lang.c (build_fortran_types): New function.
3837 (_initialize_f_language): Gdbarch-register built-in fortran types.
3838 * doublest.c (extract_floating): Fix warning text.
3840 2003-02-27 Andrew Cagney <cagney@redhat.com>
3842 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
3843 predicate. Replaces PUSH_DUMMY_FRAME.
3844 * gdbarch.h, gdbarch.c: Regnerate.
3845 * valops.c (hand_function_call): Update. Call
3846 generic_push_dummy_frame directly.
3847 * vax-tdep.c (vax_gdbarch_init): Update.
3848 * sparc-tdep.c (sparc_gdbarch_init): Update.
3849 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
3850 * m68k-tdep.c (m68k_gdbarch_init): Update.
3851 * hppa-tdep.c (hppa_gdbarch_init): Update.
3852 * alpha-tdep.c (alpha_gdbarch_init): Update.
3853 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3854 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
3855 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
3856 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
3857 push_dummy_frame to generic_push_dummy_frame.
3858 * v850-tdep.c (v850_gdbarch_init): Ditto.
3859 * sh-tdep.c (sh_gdbarch_init): Ditto.
3860 * s390-tdep.c (s390_gdbarch_init): Ditto.
3861 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
3862 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3863 * mips-tdep.c (mips_gdbarch_init): Ditto.
3864 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
3865 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
3866 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
3867 * i386-tdep.c (i386_gdbarch_init): Ditto.
3868 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3869 * frv-tdep.c (frv_gdbarch_init): Ditto.
3870 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
3871 * cris-tdep.c (cris_gdbarch_init): Ditto.
3872 * avr-tdep.c (avr_gdbarch_init): Ditto.
3873 * arm-tdep.c (arm_gdbarch_init): Ditto.
3875 2003-02-26 Kevin Buettner <kevinb@redhat.com>
3877 * mips-tdep.c (show_mips_abi): New function.
3878 (_initialize_mips_tdep): Use show_mips_abi() to implement the
3879 command ``show mips abi''.
3881 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
3883 From Elena Zannoni <ezannoni@redhat.com>
3884 * dbxread.c (process_one_symbol): Only record line 0 if one or
3885 more sline entries have been seen for the function.
3887 2003-02-26 Michael Chastain <mec@shout.net>
3889 * configure: Regenerate with autoconf 000227.
3891 2003-02-26 Michael Chastain <mec@shout.net>
3894 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
3895 for old libc5/glibc.
3896 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
3898 2003-02-26 Kris Warkentin <kewarken@qnx.com>
3900 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
3901 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
3903 2003-02-26 Michael Chastain <mec@shout.net>
3905 * configure.in: New variable HAVE_UINTPTR_T.
3906 * configure, config.in: Regenerated.
3908 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
3911 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
3913 2003-02-25 Andrew Cagney <cagney@redhat.com>
3915 * frame.c (get_prev_frame): Add comment on check for
3916 inside_entry_func. Only check for inside_entry_file when not a
3917 dummy and not a sentinel. Check that the new frame is not inner
3920 2003-02-25 Andrew Cagney <cagney@redhat.com>
3922 * frame.c (frame_debug): New variable.
3923 (_initialize_frame): Add "set/show debug frame" command.
3924 (get_prev_frame): When frame_debug, print reason why unwind
3927 2003-02-25 Michael Chastain <mec@shout.net>
3929 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
3930 to avoid uintptr_t definition problems.
3932 2003-02-25 David Carlton <carlton@math.stanford.edu>
3934 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
3935 (SYMBOL_LINKAGE_NAME): Ditto.
3936 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
3937 SYMBOL_LINKAGE_NAME.
3938 (struct general_symbol_info): Expand comment.
3939 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
3940 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
3941 (SYMBOL_MATCHES_REGEXP): Ditto.
3942 * symtab.c (symbol_natural_name): New function.
3943 * objfiles.h: Replace all uses of SYMBOL_NAME by
3944 DEPRECATED_SYMBOL_NAME.
3945 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
3946 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
3947 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
3948 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
3949 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
3950 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
3951 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
3952 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
3953 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
3954 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
3956 * ada-exp.y: Update copyright.
3957 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
3958 * cp-valprint.c: Ditto.
3960 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
3962 * infptrace.c (detach): Do not flag error if ptrace detach fails
3963 and errno is set to ESRCH.
3965 2003-02-24 Andrew Cagney <cagney@redhat.com>
3967 * infptrace.c (udot_info): Change type of udot_off to long. Use
3968 paddr when printing udot_off's value.
3970 2003-02-24 David Carlton <carlton@math.stanford.edu>
3972 * symtab.c (make_symbol_overload_list): Only read in partial
3973 symtabs containing a matching partial symbol.
3975 2003-02-24 David Carlton <carlton@math.stanford.edu>
3977 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
3978 do the comparison, not strcmp.
3979 * symfile.c (compare_psymbols): Ditto.
3980 * defs.h: Declare strcmp_iw_ordered.
3981 * utils.c (strcmp_iw_ordered): New function.
3983 2003-02-24 Jim Blandy <jimb@redhat.com>
3985 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
3986 support, shared libs): Remove my name from here, to better reflect
3989 2003-02-24 Kris Warkentin <kewarken@qnx.com>
3991 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
3992 (target_ops): Add to_have_continuable_watchpoint.
3993 * target.c (update_current_target): Add INHERIT line for
3994 to_have_continuable_watchpoint.
3995 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
3996 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
3997 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
3998 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
4000 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
4002 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
4005 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4007 * solib.c (solib_open): Call target defined search function after
4008 failing with solib-search-path.
4009 * solist.h (target_so_ops): Add find_and_open_solib function hook and
4010 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
4012 2003-02-24 Kris Warkentin <kewarken@qnx.com>
4014 * MAINTAINERS: Add myself to Write After section.
4016 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
4018 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
4020 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
4022 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
4023 (m68hc11_add_reggroups): New function.
4024 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
4025 (m68hc11_gdbarch_init): Install the reggroups.
4026 (_initialize_m68hc11_tdep): Initialize them.
4028 2003-02-21 James E Wilson <wilson@tuliptree.org>
4030 * MAINTAINERS: Update my email address.
4032 2003-02-21 David Carlton <carlton@math.stanford.edu>
4034 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
4036 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
4038 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
4039 * symtab.h: Add opaque declarations of struct axs_value and
4041 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
4042 (struct location_funcs): New type.
4043 (struct symbol): Add "loc" to aux_value.
4044 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
4045 * dwarf2read.c: Include "dwarf2expr.h".
4046 (dwarf2_symbol_mark_computed): New function.
4047 (read_func_scope): Use it.
4048 (var_decode_location): New function.
4049 (new_symbol): Use it.
4050 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
4052 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
4053 (dwarf2expr_h, dwarf2loc_h): New variables.
4054 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
4055 (dwarf2expr.o, dwarf2loc.o): New rules.
4056 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
4057 * buildsym.c (finish_block): Handle LOC_COMPUTED and
4059 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
4060 * m2-exp.y (yylex): Likewise.
4061 * printcmd.c (address_info, print_frame_args): Likewise.
4062 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
4063 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
4064 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
4065 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
4066 * symtab.c (lookup_block_symbol): Likewise.
4068 2003-02-20 Adam Fedor <fedor@gnu.org>
4070 * symtab.h: Remove objc_specific struct
4071 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
4072 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
4073 Have language_objc use cplus_specific struct.
4075 2003-02-20 Tom Tromey <tromey@redhat.com>
4077 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
4078 TYPE_NAME, when printing a String value. PR java/1075.
4080 2003-02-20 Adam Fedor <fedor@gnu.org>
4082 * objc-lang.h (find_methods): Remove declaration.
4083 * objc-lang.c (find_methods): Make static.
4085 2003-02-20 Christopher Faylor <cgf@redhat.com>
4087 * win32-nat.c (get_image_name): Check return value from
4089 (child_xfer_memory): Ditto.
4091 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
4093 * configure.in (TARGET_SYSTEM_ROOT): Set default to
4094 ${exec_prefix}/${target_alias}/sys-root. Match explicit
4095 '${exec_prefix}' (in addition to the expansion thereof) as
4097 * configure: Rebuilt.
4099 2003-02-20 David Carlton <carlton@math.stanford.edu>
4101 * symtab.c (search_symbols): Revert the search_symbols part of my
4102 2002-12-23 patch. Add comment.
4104 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
4106 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
4107 * dbxread.c (elfstab_build_psymtabs): Don't call
4108 install_minimal_symbols.
4109 (stabsect_build_psymtabs): Likewise.
4110 * elfread.c (elf_symfile_read): Call install_minimal_symbols
4112 * somread.c (som_symfile_read): Call install_minimal_symbols
4113 and do_cleanups earlier.
4114 * nlmread.c (nlm_symfile_read): Likewise.
4115 * mdebugread.c (elfmdebug_build_psymtabs): Call
4116 install_minimal_symbols and make appropriate cleanups.
4118 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4120 * solib.c (reload_shared_libraries): New function.
4121 (_initialize_solib): Add callbacks for ``set solib-search-path''
4122 and ``set solib-absolute-prefix''.
4124 2003-02-20 David Carlton <carlton@math.stanford.edu>
4126 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
4128 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
4129 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
4130 * ada-typeprint.c (ada_typedef_print): Ditto.
4131 * ax-gdb.c (gen_var_ref): Ditto.
4132 * breakpoint.c (print_one_breakpoint): Ditto.
4133 * buildsym.c (finish_block): Ditto.
4134 * c-valprint.c (c_val_print): Ditto.
4135 * expprint.c (print_subexp): Ditto.
4136 * findvar.c (locate_var_value): Ditto.
4137 * infcmd.c (jump_command): Ditto.
4138 * linespec.c (decode_line_2, decode_compound): Ditto.
4139 * maint.c (maintenance_translate_address): Ditto.
4140 * objc-lang.c (compare_selectors, compare_classes): Ditto.
4141 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
4143 * p-valprint.c (pascal_val_print): Ditto.
4144 * stabsread.c (define_symbol): Ditto.
4145 * stack.c (print_frame, frame_info, print_block_frame_locals)
4146 (print_frame_arg_vars, return_command): Ditto.
4147 * symfile.c (compare_symbols, compare_psymbols): Ditto.
4148 * symmisc.c (print_symbol): Ditto.
4149 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
4150 (compare_search_syms, print_symbol_info, print_msymbol_info)
4151 (rbreak_command): Ditto.
4152 * tracepoint.c (tracepoints_info): Ditto.
4153 * typeprint.c (typedef_print): Ditto.
4154 * valops.c (value_of_variable, hand_function_call): Ditto.
4155 * cli/cli-cmds.c (edit_command, list_command): Ditto.
4156 * ada-typeprint.c: Update Copyright.
4157 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
4158 * tracepoint.c, cli/cli-cmds.c: Ditto.
4160 2003-02-20 Kevin Buettner <kevinb@redhat.com>
4162 * frame.c (generic_unwind_get_saved_register): Make non-static.
4163 * frame.h (generic_unwind_get_saved_register): Declare.
4164 * mips-tdep.c (read_next_frame_reg): Fetch register from
4165 current regcache when frame is NULL.
4166 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
4168 (mips_get_saved_register): Call generic_unwind_get_saved_register()
4169 instead of frame_register_unwind().
4171 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4173 * remote-sim.c (gdbsim_insert_breakpoint)
4174 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
4177 2003-02-20 Andrew Cagney <ac131313@redhat.com>
4179 * remote.c (_initialize_remote): Add commands "set/show remote
4180 hardware-watchpoint-limit" and "set/show remote
4181 hardware-breakpoint-limit".
4182 (remote_hw_watchpoint_limit): Initialize to -1.
4183 (remote_hw_breakpoint_limit): Ditto.
4184 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
4186 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
4188 * coff-pe-read.c: New file - support reading of minimal symbols from a
4189 portable executable using the export table.
4190 * coff-pe-read.h: New file.
4191 * coffread.c: Include coff-pe-read.h.
4192 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
4193 debugging symbols found.
4194 * Makefile.in (SFILES): Add coff-pe-read.o.
4195 (coff_pe_read_h): Define.
4196 (COMMON_OBS): Add coff-pe-read.o.
4197 (coffread.o): Add coff_pe_read_h dependency.
4198 (coff-pe-read.o): New target.
4200 2003-02-19 David Carlton <carlton@math.stanford.edu>
4202 * Makefile.in (SFILES): Add block.c.
4204 (COMMON_OBS): Add block.o.
4206 (x86-64-tdep.o): Add $(block_h).
4207 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
4208 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
4209 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
4210 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
4211 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
4212 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
4213 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
4214 * value.h: Add opaque declaration for struct block.
4215 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
4216 * ada-lang.h: Ditto.
4217 * x86-64-tdep.c: #include "block.h"
4218 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
4219 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
4220 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
4221 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
4222 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
4223 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
4224 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
4225 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
4226 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
4227 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
4228 * symtab.c (block_function): Ditto.
4229 (contained_in): Ditto.
4230 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
4231 block.h. Add opaque declaration for struct block.
4232 * symtab.h: Move block_function and contained_in declarations to
4233 block.h. Add opaque declarations for struct block, struct
4235 (struct block): Move to block.h.
4236 (struct blockvector): Ditto.
4237 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
4238 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
4239 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
4240 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
4241 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
4243 * block.c: New file.
4244 * block.h: New file.
4246 2003-02-19 Theodore A. Roth <troth@openavr.org>
4248 * avr-tdep.c (avr_extract_return_value): Remove function.
4249 (avr_store_return_value): Remove function.
4250 (avr_extract_struct_value_address): Remove function.
4251 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
4253 2003-02-19 Andrew Cagney <ac131313@redhat.com>
4255 * rs6000-tdep.c: Include "gdb_assert.h".
4256 (registers_e500): Add "acc" and "spefscr".
4257 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
4258 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
4259 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
4261 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
4263 2003-02-18 Keith Seitz <keiths@redhat.com>
4265 * Makefile.in: Add gdbtk-interps.c.
4267 2003-02-18 Kevin Buettner <kevinb@redhat.com>
4269 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
4270 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
4272 2003-02-18 Andrew Cagney <cagney@redhat.com>
4274 * symtab.h (struct objfile): Add opaque declaration.
4276 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
4278 From Jim Ingham <jingham@apple.com>:
4279 * dbxread.c (process_one_symbol): Use last_function_start rather
4280 than function_start_offset to find the real beginning of the
4281 current function. The latter is just the text section offset on
4282 some systems, the former is always the real function start.
4284 2003-02-17 Andrew Cagney <cagney@redhat.com>
4286 * configure.in: Revert ${target} != ${host}.
4288 2003-02-17 Andrew Cagney <ac131313@redhat.com>
4290 * configure.in (Makefile): Use the test ${target} != ${host},
4291 instead of the absence of the "nm.h" file, to determine of the
4292 configuration non-native.
4293 * configure: Regenerate.
4295 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
4297 From Brian Ford <ford@vss.fsi.com>
4299 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
4300 conditionalize tui_active test.
4301 (lookup_cmd_1): Ditto.
4303 2003-02-14 Mark Kettenis <kettenis@gnu.org>
4305 * configure.in: Add check for _etext.
4306 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
4308 * config.in, configure: regenerated.
4310 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
4312 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
4314 2003-02-14 Andrew Cagney <ac131313@redhat.com>
4316 * main.c (tui_version): Delete variable.
4317 (captured_main): When --tui, set interpreter_p to "tui" instead of
4318 enabling tui_version.
4319 * printcmd.c (display_command) [TUI]: Test tui_active instead of
4321 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
4322 * cli/cli-cmds.c (disassemble_command): Ditto.
4323 * defs.h (tui_version): Delete declaration.
4324 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
4325 (tui-interp.o): Add rules.
4326 (SUBDIR_TUI_OBS): Add "tui-interp.o".
4328 2003-02-14 Christopher Faylor <cgf@redhat.com>
4330 * win32-nat.c (register_loaded_dll): Correctly set address range for
4333 2003-02-12 Jason Molenda (jmolenda@apple.com)
4335 * symmisc.c (print_objfile_statistics): Include information about
4336 the number of psymtabs and symtabs in each object file.
4338 2003-02-13 Keith R Seitz <keiths@redhat.com>
4340 * main.h (struct captured_main_args): Add interpreter_p.
4341 * main.c (captured_main): Initialize interpreter_p from context.
4342 * gdb.c (main): Set interpreter_p argument.
4343 * Makefile.in (gdb.o): Add dependency for interps.h.
4345 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4347 * event-top.c (cli_command_loop): Delete declaration.
4348 (_initialize_event_loop): Delete function setting event_loop_hook.
4349 * event-top.h (cli_command_loop): Declare. Update copyright.
4350 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
4351 * interps.c (current_interp_command_loop): When event_loop_p, call
4354 2003-02-12 Andrew Cagney <ac131313@redhat.com>
4356 * interps.h (interp_command_loop_ftype): Change return type to
4359 2003-02-12 Michal Ludvig <mludvig@suse.cz>
4361 * x86-64-tdep.c (x86_64_extract_return_value)
4362 (x86_64_store_return_value): Use regcache instead of regbuf.
4363 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
4364 * x86-64-linux-nat.c (fill_gregset): Use regcache.
4366 2003-02-11 Andrew Cagney <ac131313@redhat.com>
4368 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
4369 * aclocal.m4: Regenerate.
4370 * configure: Regenerate.
4372 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
4373 TCL_LD_SEARCH_FLAGS.
4375 2003-02-10 Michal Ludvig <mludvig@suse.cz>
4377 * dwarf2cfi.c: Reindented.
4379 2003-02-09 Andrew Cagney <ac131313@redhat.com>
4381 * interps.c (clear_interpreter_hooks): Convert function definition
4384 2003-02-07 David Carlton <carlton@math.stanford.edu>
4386 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
4388 2003-02-07 Kevin Buettner <kevinb@redhat.com>
4390 * gdbtypes.h (struct main_type): Move ``length'' field from here...
4391 (struct type): ...to here.
4392 (TYPE_LENGTH): Adjust to reflect different location of ``length''
4394 * gdbtypes.c (make_qualified_type): Set length on newly created type.
4395 (replace_type): Set length on all type variants for a given type.
4397 2003-02-07 Andrew Cagney <ac131313@redhat.com>
4399 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
4401 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
4403 2003-02-06 Andrew Cagney <ac131313@redhat.com>
4405 * Makefile.in (symm-nat.o): Update dependencies.
4406 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
4407 (lynx-nat.o, ia64-linux-nat.): Ditto.
4408 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
4409 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
4410 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
4412 * Makefile.in (inflow_h): Define.
4413 (procfs.o, inflow.o, procfs.o): Update dependencies.
4414 * inftarg.c (child_stop): Delete extern declaration of
4415 inferior_process_group. Include "inflow.h".
4416 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
4417 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
4418 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
4419 (our_process_group, inferior_process_group): Extern declarations.
4421 * procfs.c: Include "gdb_assert.h".
4423 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4424 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
4425 * jv-typeprint.c (java_type_print_base): Ditto.
4426 * typeprint.c (typedef_print): Eliminate STREQ.
4427 * cli/cli-script.c (define_command, define_command): Ditto.
4428 * main.c (captured_main): Ditto.
4429 * values.c (lookup_internalvar): Ditto.
4430 * utils.c (safe_strerror, parse_escape): Eliminate assignment
4431 within `if' conditional.
4432 * linespec.c (decode_line_2): Ditto.
4433 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
4434 (bfd_openw_with_cleanup): Ditto.
4436 2003-02-07 Mark Kettenis <kettenis@gnu.org>
4438 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
4439 legacy_extract_return_value and store_return_value to
4440 legacy_return_value.
4442 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
4444 * win32-nat.c (get_relocated_section_addrs): New function. Find
4445 section load addresses for symbol handling in relocated DLLs.
4446 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
4448 2003-02-05 Fred Fish <fnf@intrinsity.com>
4450 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
4452 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
4454 (angel_RDI_info): Ditto.
4455 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
4457 (threads_continue_all_with_signals): Ditto.
4459 2003-02-05 Jim Ingham <jingham@apple.com>
4460 Keith Seitz <keiths@redhat.com>
4461 Elena Zannoni <ezannoni@redhat.com>
4462 Andrew Cagney <ac131313@redhat.com>
4464 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
4465 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
4466 (SUBDIR_MI_OBS): Add "mi-interp.o".
4467 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
4468 (SFILES): Add "interps.c".
4469 (COMMON_OBS): Add "interps.o".
4470 (interps_h, mi_main_h): Define.
4471 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
4472 (mi-main.o, main.o, event-top.o): Update dependencies.
4473 * cli/cli-interp.c: New file.
4474 * interps.h, interps.c: New files.
4475 * top.c: (gdb_init): Don't install the default interpreter, handed
4477 * main.c: Include "interps.h".
4478 (interpreter_p): Note that it should malloc'ed.
4479 (captured_command_loop): Call current_interp_command_loop.
4480 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
4481 xfree and xstrdup when updating interpreter_p. Install the
4482 default interpreter. Add hack to stop mi1's copyright notice
4484 * event-top.h (gdb_setup_readline): Declare.
4485 (gdb_disable_readline): Declare.
4486 * event-top.c: Include "interps.h".
4487 (display_gdb_prompt): Call current_interp_display_prompt_p.
4488 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
4489 gdb_stdlog, and gdb_stdtarg.
4490 (_initialize_event_loop): Don't call gdb_setup_readline.
4491 * cli-out.c (cli_out_set_stream): New function.
4492 * cli-out.h (cli_out_set_stream): Declare.
4494 2003-02-06 Mark Kettenis <kettenis@gnu.org>
4496 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
4497 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
4498 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
4499 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
4500 config/i386/i386v42mp.mt: Removed.
4502 2003-02-05 Mark Kettenis <kettenis@gnu.org>
4504 * configure.tgt (*-*-solaris*): Set gdb_osabi to
4507 2003-02-05 Michael Chastain <mec@shout.net>
4509 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
4510 2.12.1 and earlier versions.
4512 2003-02-05 Andrew Cagney <ac131313@redhat.com>
4514 Remove orphaned hosts, targets and files.
4515 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
4516 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
4517 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
4518 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
4519 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
4520 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
4521 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
4522 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
4523 * config/sparc/tm-sp64sim.h: Delete.
4524 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
4526 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
4527 mips*-dec-mach3* targets.
4529 2003-02-04 Michael Chastain <mec@shout.net>
4531 * NEWS: Fix typo: sepcifying -> specifying.
4533 2003-02-04 Michael Chastain <mec@shout.net>
4535 * dwarfread.c: Add documentation on the state of dwarf-1,
4536 looking towards obsoletion.
4538 2003-02-03 Michael Chastain <mec@shout.net>
4540 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
4541 gdb/testsuite/gdb.c++/pr-1023.exp.
4543 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4545 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
4546 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
4548 * utils.c (init_page_info): Delete reference to MPW in comments.
4549 * main.c (captured_main): Delete #ifdef MPW.
4551 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4553 * NEWS: Note that the m32r-*-elf* is obsolete.
4554 * monitor.c (monitor_expect): Obsolete reference to m32r.
4555 * configure.tgt: Mark m32r-*-elf* as obsolete.
4556 * MAINTAINERS: Mark m32k as obsolete.
4557 * m32r-rom.c: Obsolete file.
4558 * config/m32r/m32r.mt: Obsolete file.
4559 * config/m32r/tm-m32r.h: Obsolete file.
4560 * m32r-stub.c: Obsolete file.
4561 * m32r-tdep.c: Obsolete file.
4563 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4565 * NEWS: Mention that the z8k-zilog-none is obsolete.
4566 * MAINTAINERS: Mark z8k as obsolete.
4567 * configure.tgt: Obsolete the z8k-*-coff* target.
4568 * config/z8k/z8k.mt: Obsolete file.
4569 * config/z8k/tm-z8k.h: Obsolete file.
4570 * z8k-tdep.c: Obsolete file.
4572 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4574 * NEWS: Mention that the mn10200-elf is obsolete.
4575 * configure.tgt: Obsolete mn10200-*-* target.
4576 * breakpoint.c (update_breakpoints_after_exec): Update comment to
4577 mention that the mn10200 is obsolete.
4578 * breakpoint.h: Ditto.
4579 * MAINTAINERS: Mark the mn10200-elf as obsolete.
4580 * config/mn10200/mn10200.mt: Obsolete file.
4581 * config/mn10200/tm-mn10200.h: Obsolete file.
4582 * mn10200-tdep.c: Obsolete file.
4584 2003-02-04 Andrew Cagney <ac131313@redhat.com>
4586 * MAINTAINERS: Mark h8500 as obsolete.
4587 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
4588 * findvar.c (value_from_register): Ditto.
4589 * h8500-tdep.c: Mark file as obsolete.
4590 * config/h8500/h8500.mt: Ditto.
4591 * config/h8500/tm-h8500.h: Ditto.
4592 * NEWS: Mention that h8500 is obsolete.
4594 2003-02-04 David Carlton <carlton@math.stanford.edu>
4596 * objfiles.c (allocate_objfile): Always set name. Add comment at
4598 * jv-lang.c (get_dynamics_objfile): Add comment.
4600 2003-02-04 David Carlton <carlton@math.stanford.edu>
4602 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
4603 * printcmd.c (build_address_symbolic): Replace uses of
4604 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
4605 SYMBOL_NAME, and asm_demangle.
4608 2003-02-04 David Carlton <carlton@math.stanford.edu>
4610 * linespec.c (decode_compound): Extract code into
4612 (lookup_prefix_sym): New function.
4614 2003-02-04 David Carlton <carlton@math.stanford.edu>
4616 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
4617 FLOAT_COERCION_BADNESS.
4618 * gdbtypes.c (rank_one_type): Replace all uses of
4619 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
4621 2003-02-04 Jim Blandy <jimb@redhat.com>
4623 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
4624 section, let dwarf_macinfo_section point to it, not
4627 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4629 Pointed out by Anton Blanchard <anton@samba.org>.
4630 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
4631 (ppc_linux_at_sigtramp_return_path): Use it.
4633 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
4635 * defs.h (streq): Add prototype.
4636 * utils.c (streq): New function.
4638 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
4639 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
4640 * mdebugread.c (new_symbol): Likewise.
4641 * stabsread.c (define_symbol): Likewise.
4642 * coffread.c (process_coff_symbol): Likewise.
4643 * dwarfread.c (new_symbol): Likewise.
4645 * minsyms.c (prim_record_minimal_symbol_and_info): Use
4646 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
4648 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
4649 SYMBOL_INIT_DEMANGLED_NAME.
4650 * objfiles.c: Include "hashtab.h".
4651 (allocate_objfile): Call htab_set_functions_ex for the
4652 demangled_names_hash.
4653 (free_objfile): Call htab_delete for the demangled_names_hash.
4654 * objfiles.h (struct htab): Add declaration.
4655 (struct objfile): Add demangled_names_hash.
4656 * symfile.c: Include "hashtab.h".
4657 (reread_symbols): Call htab_delete for the demangled_names_hash.
4658 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
4659 SYMBOL_NAME in the bcache.
4660 * symtab.c: Include "hashtab.h". Update comments.
4661 (create_demangled_names_hash, symbol_set_names): New functions.
4662 (symbol_find_demangled_name): New function, broken out from
4663 symbol_init_demangled_names.
4664 (symbol_init_demangled_names): Use it.
4665 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
4666 (SYMBOL_SET_NAMES): New macro.
4667 (symbol_set_names): Add prototype.
4669 2003-02-03 Jim Blandy <jimb@redhat.com>
4671 Use a single, consistent representation for an empty minimal
4672 symbol table in an objfile.
4673 * objfiles.c (terminate_minimal_symbol_table): New function.
4674 (allocate_objfile): Call it.
4675 * objfiles.h (terminate_minimal_symbol_table): New declaration.
4676 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
4678 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
4679 objfile has minimal symbols, compare minimal_symbol_count to zero,
4680 instead of comparing msymbols with NULL.
4681 * objfiles.c (have_minimal_symbols): Same.
4682 * solib-sunos.c (solib_add_common_symbols): Call
4683 terminate_minimal_symbol_table.
4684 * symfile.c (reread_symbols): Same.
4686 2003-02-03 Kevin Buettner <kevinb@redhat.com>
4688 * s390-tdep.c (s390_address_class_type_flags)
4689 (s390_address_class_type_flags_to_name)
4690 (s390_address_class_name_to_type_flags): New functions.
4691 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
4692 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
4694 2003-02-03 Michael Snyder <msnyder@redhat.com>
4696 * arm-tdep.c: Fix spell-o in comment.
4698 2003-02-03 Michal Ludvig <mludvig@suse.cz>
4700 * dwarf2cfi.c (pointer_encoding): Added new parameter.
4701 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
4702 error messages to contain BFD filename.
4704 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
4706 Fix PR gdb/742 gdb/743 gdb/877
4707 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
4708 (do_mixed_source_and_assembly): Use
4709 make_cleanup_ui_out_tuple_begin_end and
4710 make_cleanup_ui_out_tuple_begin_end.
4711 (do_mixed_source_and_assembly): Ditto.
4712 * thread.c (do_captured_list_thread_ids): Ditto.
4713 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
4714 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
4715 ui_out_tuple_end): Delete prototypes.
4716 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
4717 ui_out_list_end, ui_out_tuple_end): Delete.
4719 From Kevin Buettner <kevinb@redhat.com>:
4720 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
4721 * ui-out.c (make_cleanup_ui_out_table_begin_end)
4722 (do_cleanup_table_end): New functions.
4723 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
4724 Use cleanups to invoke_ui_out_tuple_end().
4725 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
4726 * cli/cli-setshow.c (cmd_show_list): Use
4727 make_cleanup_ui_out_tuple_begin_end.
4729 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4731 * frame.c (frame_unwind_register): New function.
4732 (frame_unwind_unsigned_register): Use.
4733 (frame_unwind_signed_register): Use.
4734 (frame_read_register): New function.
4735 * frame.h (frame_unwind_register): Declare.
4736 (frame_read_register): Declare.
4738 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
4739 and frame_unwind_register instead of read_memory, write_register
4740 and deprecated_write_register_bytes.
4742 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4744 * frame.h: Note that namelen can be negative.
4745 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
4748 * NEWS: Mention that the d10v's `regs' command is deprecated.
4749 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
4750 (d10v_print_registers_info): New function.
4751 (show_regs): Call d10v_print_registers_info.
4752 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
4754 2003-02-02 Mark Kettenis <kettenis@gnu.org>
4756 * stack.c (print_frame_info): Restore call to annotate_frame_begin
4757 lost in the previous patch.
4759 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4761 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
4762 * stack.c (print_frame_info_base): Output complete FRAME tuple
4763 for synthesized frames.
4765 2003-02-02 Andrew Cagney <ac131313@redhat.com>
4767 * mips-nat.c (zerobuf): Delete.
4768 (fetch_inferior_registers): Alloc local zerobuf.
4769 (fetch_core_registers): Alloc local zerobuf.
4770 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
4771 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
4772 * thread-db.c (thread_db_store_registers): Ditto.
4773 * sh-tdep.c (sh_do_register): Ditto.
4774 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
4775 * remote-sim.c (gdbsim_store_register): Ditto.
4776 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
4777 * remote-e7000.c (fetch_regs_from_dump): Ditto.
4778 * monitor.c (monitor_supply_register): Ditto.
4779 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
4780 * mips-nat.c (fetch_inferior_registers): Ditto.
4781 * m68klinux-nat.c (fetch_register): Ditto.
4782 * lynx-nat.c (fetch_inferior_registers): Ditto.
4783 (fetch_inferior_registers): Ditto.
4784 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
4785 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
4786 (hpux_thread_store_registers): Ditto.
4787 * hppah-nat.c (fetch_register): Ditto.
4788 * hppab-nat.c (fetch_register): Ditto.
4789 * hppa-tdep.c (pa_register_look_aside): Ditto.
4790 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
4791 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
4793 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4795 * gdbarch.sh: Explictly specify all method levels. When a
4796 variable with an empty level, provide a non-multi-arch default.
4797 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
4798 * gdbarch.h: Re-generate.
4799 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
4800 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
4802 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4804 * defs.h (host_pointer_to_address): Delete declaration.
4805 (address_to_host_pointer): Delete declaration.
4806 * utils.c (host_pointer_to_address): Delete function.
4807 (address_to_host_pointer): Delete function.
4808 * procfs.c (procfs_address_to_host_pointer): New function.
4809 * procfs.c (proc_set_watchpoint): Use.
4810 (procfs_can_use_hw_breakpoint): Update comments.
4811 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
4812 (som_solib_add): Use.
4813 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
4814 * hppa-tdep.c (unwind_command): Use.
4816 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4818 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
4821 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
4822 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
4823 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
4824 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
4825 (define_symbol): Update.
4826 * symfile.c (generic_load): Remove references to nindy.
4827 * symtab.c: Remove references to nindy.
4829 2003-02-01 Andrew Cagney <ac131313@redhat.com>
4831 * infcmd.c (print_float_info): Delete code conditional on
4833 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
4834 * config/m68k/nm-apollo68b.h: Ditto.
4835 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
4836 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
4837 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
4839 2003-02-01 Mark Kettenis <kettenis@gnu.org>
4841 * config/i386/tm-i386os9k.h: Removed.
4843 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
4844 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
4845 they're identical to i[3456]86-*-sysv* now.
4846 * config/i386/i386v32.mh: Removed.
4847 * config/i386/xm-i386v32.h: Removed.
4848 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
4850 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
4852 * config/i386/i386dgux.mh: Removed.
4853 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
4855 * configure.in: Fix typo.
4856 * configure: Regenerated.
4858 2003-01-31 David Carlton <carlton@math.stanford.edu>
4860 * dwarf2read.c (dwarf2_locate_sections): Set
4861 dwarf_ranges_section.
4863 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4865 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
4866 * utils.c: Update comments documenting legitimate uses of PTR.
4868 * utils.c: Re-indent.
4870 * config/djgpp/fnchange.lst: Delete nindy files.
4871 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
4872 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
4873 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
4874 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
4875 * nindy-share/README, nindy-share/Onindy.c: Delete files.
4876 * nindy-tdep.c, nindy-share/Makefile: Delete files.
4877 * Makefile.in (init.c): Remove nindy references.
4878 (saber_gdb): Delete rule.
4879 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
4880 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
4882 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
4883 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
4884 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
4885 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
4887 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
4888 * saber.suppress: Delete file.
4890 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
4892 * dbxread.c (stabs_data): New static variable.
4893 (fill_symbuf): Support an in-memory buffer for stabs data.
4894 (stabs_seek): New function.
4895 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
4896 (read_ofile_symtab): Use stabs_seek.
4897 (elfstab_build_psymtabs): Take an asection* instead of
4898 an offset and size. Relocate the stabs data if necessary.
4899 Save the section* for dbx_psymtab_to_symtab.
4900 * dwarf2read.c: Add section variables for each debug section.
4901 (dwarf2_locate_sections): Fill them in.
4902 (dwarf2_read_section): Take an asection* argument.
4903 Relocate the section contents if necessary.
4904 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
4905 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
4906 it to dwarf2_read_section.
4907 (dwarf2_build_frame_info): Update callers.
4908 * elfread.c (elf_symfile_read): Update call to
4909 elfstab_build_psymtabs.
4910 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
4911 (DBX_STAB_SECTION): New macro.
4912 * stabsread.h (elfstab_build_psymtabs): Update prototype.
4913 * symfile.c (symfile_dummy_outputs): New function.
4914 (symfile_relocate_debug_section): New function.
4915 * symfile.h (symfile_relocate_debug_section): Add prototype.
4917 2003-01-31 Richard Henderson <rth@redhat.com>
4919 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
4920 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
4921 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
4922 * alpha-tdep.c (alpha_register_name): Add "unique".
4923 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
4924 (ALPHA_UNIQUE_REGNUM): New.
4925 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
4927 2003-01-31 Andrew Cagney <ac131313@redhat.com>
4929 * README: Remove reference to Ericsson 1800 monitor.
4930 * Makefile.in (remote-es.o): Delete rule.
4931 (ALLDEPFILES): Delete remote-es.c.
4932 * remote-es.c: Delete file.
4933 * config/m68k/es1800.mt: Delete file.
4934 * config/djgpp/fnchange.lst: Update.
4935 * configure.tgt: Delete m68*-ericsson-* target.
4937 2003-01-31 Adam Fedor <fedor@gnu.org>
4939 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
4940 Remove duplicate/shadowing variable of same name.
4942 2003-01-30 Jim Blandy <jimb@redhat.com>
4944 * symfile.c (find_separate_debug_file): Assert that the objfile's
4945 directory name we compute ends with a slash, and then assume that
4946 that's so everywhere we use it.
4948 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
4950 * valops.c (value_assign): Flush frame cache after stores to memory
4953 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4955 * Makefile.in (mon960-rom.o): Delete rule.
4956 * mon960-rom.c: Delete file.
4958 2003-01-30 Andrew Cagney <ac131313@redhat.com>
4960 * d10v-tdep.c: Include "frame-unwind.h".
4961 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
4963 (next_addr, uses_frame): Delete.
4964 (struct d10v_unwind_cache): Define.
4965 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
4966 Use info instead of next_addr and uses_frame globals.
4967 (d10v_frame_init_saved_regs): Delete function.
4968 (d10v_init_extra_frame_info): Delete function.
4969 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
4970 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
4971 init_frame_pc or frame_saved_pc.
4972 (d10v_pop_frame): Delete function.
4973 (do_d10v_pop_frame): Delete function.
4974 (d10v_frame_chain): Delete function.
4975 (d10v_frame_chain_valid): Delete function.
4976 (d10v_frame_pc_unwind): New function.
4977 (d10v_frame_id_unwind): New function.
4978 (saved_regs_unwinder): New function.
4979 (d10v_frame_register_unwind): New function.
4980 (d10v_frame_pop): New function.
4981 (d10v_frame_unwind): New variable.
4982 (d10v_frame_p): New function.
4983 (d10v_frame_saved_pc): Delete function.
4984 * Makefile.in (d10v-tdep.o): Update dependencies.
4986 2003-01-30 J. Brobecker <brobecker@gnat.com>
4988 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
4989 causing some regressions due to a change in the default value
4992 2003-01-29 Richard Henderson <rth@redhat.com>
4993 Elena Zannoni <ezannoni@redhat.com>
4994 Daniel Jacobowitz <drow@mvista.com>
4997 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
4999 (RANGES_SECTION): New.
5000 (dwarf_ranges_buffer): New variable.
5001 (struct comp_unit_head): Add member "die".
5002 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
5003 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
5004 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
5005 (dwarf2_locate_sections): Likewise.
5006 (dwarf2_build_psymtabs): Read .debug_ranges.
5007 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
5008 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
5009 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
5010 Look for DW_AT_ranges and return the bounding box.
5012 2003-01-29 Brian Ford <ford@vss.fsi.com>
5014 * win32-nat.c (cygwin_pid): Removed as unused.
5015 (child_attach): Try fall back to Cygwin pid.
5017 2003-01-29 Jim Blandy <jimb@redhat.com>
5019 * objfiles.h (struct objfile): Doc fix.
5021 2003-01-29 Andrew Cagney <ac131313@redhat.com>
5023 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
5024 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
5025 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
5026 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
5027 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
5028 (FRAME_SAVED_PC): Change to a function with predicate.
5029 * gdbarch.h, gdbarch.c: Re-generate.
5031 2003-01-28 Andrew Cagney <ac131313@redhat.com>
5033 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
5035 * complaints.c (complain): Delete function.
5036 * complaints.h (struct deprecated_complaint): Delete definition.
5037 (complain): Delete declaration.
5039 2003-01-28 Kevin Buettner <kevinb@redhat.com>
5041 * mips-tdep.c (mips_init_extra_frame_info): Return early for
5044 2003-01-27 Andrew Cagney <ac131313@redhat.com>
5046 * sentinel-frame.h, sentinel-frame.c: New files.
5047 * Makefile.in (frame.o): Update dependencies.
5048 (SFILES): Add sentinel-frame.c.
5049 (sentinel_frame_h): Define.
5050 (COMMON_OBS): Add sentinel-frame.o.
5051 (sentinel-frame.o): Specify dependencies.
5052 * frame.c: Include "sentinel-frame.h".
5053 (frame_register_unwind): Rewrite assuming that there is always a a
5055 (frame_register, generic_unwind_get_saved_register): Ditto.
5056 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
5057 (create_sentinel_frame, unwind_to_current_frame): New functions.
5058 (get_current_frame): Rewrite using create_sentinel_frame and
5059 unwind_to_current_frame. When possible, always create a frame.
5060 (create_new_frame): Set next to the sentinel frame.
5061 (get_next_frame): Rewrite. Don't go below the level 0 frame.
5062 (deprecated_update_frame_pc_hack): Update the next frame's PC and
5063 ID cache when necessary.
5064 (frame_saved_regs_id_unwind): Use frame_relative_level.
5065 (deprecated_generic_get_saved_register): Use frame_relative_level,
5066 get_frame_saved_regs, get_frame_pc, get_frame_base and
5068 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
5071 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5073 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
5075 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5077 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
5078 (maintenance_set_profile_cmd): Use error () instead of warning ().
5080 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
5082 * configure.in: Check that -pg works if using --enable-profiling.
5083 Check for monstartup and _mcleanup regardless of --enable-profiling.
5084 * maint.c: Check for monstartup and _mcleanup before using them.
5085 * config.in: Regenerated.
5086 * configure: Regenerated.
5088 2003-01-24 Nick Clifton <nickc@redhat.com>
5092 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
5094 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
5095 (sh2e_show_regs): New.
5096 (sh_gdbarch_init): Handle bfd_mach_sh2e.
5097 * config/sh/tm-sh.h: Added sh2e to comments.
5099 2003-01-23 Jim Blandy <jimb@redhat.com>
5101 * symfile.c (syms_from_objfile): Don't print the "(no debugging
5102 symbols found)" message here; we haven't checked for a separate
5103 debug info file yet, so we don't know yet.
5104 (symbol_file_add_with_addrs_or_offsets): Print it here, after
5105 we've looked everywhere. Also, there's no need to print a special
5106 message when we're loading the separate debug info file: the one
5107 symbol_file_add prints is fine.
5109 2003-01-23 Alexander Larsson <alexl@redhat.com>
5110 Jim Blandy <jimb@redhat.com>
5112 Add support for executables whose debug info has been separated
5113 out into a separate file, leaving only a link behind.
5114 * objfiles.h (struct objfile): New fields: separate_debug_objfile
5115 and separate_debug_objfile_backlink.
5116 (put_objfile_before): New declaration.
5117 * symfile.c: #include "filenames.h".
5118 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
5119 debug info in a separate file, read that, too. Save the addrs
5120 argument, so we can use it again to read the separated debug info;
5121 syms_from_objfile modifies the table we pass it.
5122 (reread_symbols): After re-reading an objfile, call
5123 reread_separate_symbols to refresh its separate debug info
5124 objfile, if it has one.
5125 (reread_separate_symbols, find_separate_debug_file,
5126 get_debug_link_info, separate_debug_file_exists): New functions.
5127 (debug_file_directory): New global var.
5128 (_initialize_symfile): Initialize debug_file_directory, and
5129 provide the new `set debug-file-directory' command to let the user
5131 * objfiles.c (free_objfile): If this objfile has its debug info in
5132 a separate objfile, free that one too. If this is itself a
5133 separate debug info objfile, clear our parent's backlink.
5134 (put_objfile_before): New function.
5135 * utils.c (gnu_debuglink_crc32): New function.
5136 * defs.h (gnu_debuglink_crc32): New declaration.
5137 * Makefile.in (symfile.o): Note dependency on "filenames.h".
5138 * configure.in: Handle --with-separate-debug-dir config option.
5139 * acinclude.m4 (AC_DEFINE_DIR): New macro.
5140 * acconfig.h (DEBUGDIR): New macro.
5141 * configure, aclocal.m4, config.in: Regenerated.
5143 2003-01-22 Jim Blandy <jimb@redhat.com>
5145 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
5146 like the old symbol_file_add, but taking new arguments: you can
5147 now pass in either a `struct section_addr_info' list to say where
5148 each section is loaded, or a `struct section_offsets' table. Pass
5149 these new arguments through to syms_from_objfile as appropriate.
5150 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
5151 with the appropriate quiescent values for the new arguments.
5153 * symfile.c: #include "gdb_assert.h".
5154 (syms_from_objfile): Add the ability to pass in a section offset
5155 table directly, as an alternative to the section_addr_info table.
5156 Document arguments better.
5157 (symbol_file_add): Pass extra arguments to syms_from_objfile.
5158 * symfile.h (syms_from_objfile): Update declaration.
5159 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
5161 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
5163 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
5165 Original patch by Tom Tromey <tromey@cygnus.com> and
5166 Jason Molenda <jmolenda@apple.com>.
5167 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
5168 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
5169 * NEWS: Mention profiling.
5170 * configure.in (--enable-gdbtk): Fix typo.
5171 (--enable-profiling): New. Set PROFILE_CFLAGS.
5172 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
5174 (profiling_state): New variable.
5175 (mcleanup_wrapper): New function.
5176 (_initialize_maint): Remove NOTYET, fix call to
5177 add_setshow_boolean_cmd for "maint set profile".
5178 * configure: Regenerated.
5180 2003-01-21 Martin M. Hunt <hunt@redhat.com>
5182 * Makefile.in (install-gdbtk): Install PNG images too.
5184 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5186 * exec.c (text_start): Delete global variable.
5187 (exec_file_attach): Make text_start local to the function.
5188 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
5189 * valops.c (hand_function_call): Delete code that handles
5190 BEFORE_TEXT_END and AFTER_TEXT_END.
5191 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
5192 of CALL_DUMMY_LOCATION.
5193 * gdbarch.c: Regenerate.
5194 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
5195 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
5196 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
5197 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
5198 (text_end): Delete extern declaration.
5200 2003-01-21 Andrew Cagney <ac131313@redhat.com>
5202 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
5203 * blockframe.c (backtrace_below_main): Move to "frame.c".
5204 (frame_chain_valid): Delete check for backtrace_below_main.
5205 (_initialize_blockframe): Delete initialization, move ``set
5206 backtrace-below-main'' command to "frame.c".
5207 (do_flush_frames_sfunc): Delete function.
5208 * frame.c: Include "command.h" and "gdbcmd.h".
5209 (frame_type_from_pc): New function.
5210 (create_new_frame): Use frame_type_from_pc.
5211 (legacy_get_prev_frame): New function.
5212 (get_prev_frame): Rewrite. When an old style frame, call
5213 legacy_get_prev_frame. Otherwize, unwind the PC first.
5214 (_initialize_frame): Add ``set backtrace-below-main'' command.
5215 * Makefile.in (frame.o): Update dependencies.
5217 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5219 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
5220 DEPRECATED_REGISTERS_INFO.
5222 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5224 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
5225 Maintainers'. Update `Various Maintainers'.
5227 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5229 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
5230 * gdbarch.sh (POP_FRAME): Change to function with predicate.
5231 Suppress actual parameters when `-'.
5232 * gdbarch.h, gdbarch.c: Regenerate.
5234 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5236 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
5237 code handling dummy frames.
5239 2003-01-19 Andrew Cagney <ac131313@redhat.com>
5241 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
5242 (struct frame_unwind): Add field pop.
5243 * frame.h (frame_pop): Declare.
5244 * frame.c (frame_saved_regs_pop): New function.
5245 (trad_frame_unwinder): Add frame_saved_regs_pop.
5246 (frame_pop): New function.
5247 * dummy-frame.c (dummy_frame_pop): New function.
5248 (discard_innermost_dummy): New function.
5249 (generic_pop_dummy_frame): Use discard_innermost_dummy.
5250 (dummy_frame_unwind): Add dummy_frame_pop.
5251 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
5252 * valops.c (hand_function_call): Ditto.
5253 * stack.c (return_command): Ditto.
5255 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5257 * cris-tdep.c: Fix function declaration indentation.
5258 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
5259 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
5260 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
5261 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
5262 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
5263 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
5265 2003-01-18 Michael Chastain <mec@shout.net>
5267 * README (Unpacking and Installation -- quick overview):
5268 Warn against ".../gdb-5.3/gdb/configure".
5270 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5272 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
5273 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5274 (struct frame_unwind): Declare opaque.
5275 (dummy_frame_p): Declare function.
5276 * dummy-frame.c (dummy_frame_id_unwind): Make static.
5277 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
5278 * dummy-frame.c: Include "frame-unwind.h".
5279 (dummy_frame_p): New function.
5280 (dummy_frame_unwind): New variable.
5281 * frame.c: Include "frame-unwind.h".
5282 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
5283 to use the new unwind field.
5284 (set_unwind_by_pc): Delete function.
5285 (create_new_frame, get_prev_frame): Set unwind field using
5286 frame_unwind_find_by_pc.
5287 (trad_frame_unwind, trad_frame_unwinder): New variables.
5288 * frame.h (trad_frame_unwind): Declare variable.
5289 (frame_id_unwind_ftype): Delete declaration.
5290 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
5291 (struct frame_unwind): Declare opaque.
5292 (struct frame_info): Replace the fields id_unwind, pc_unwind and
5293 register_unwind with a single unwind pointer.
5294 * frame-unwind.h, frame-unwind.c: New files.
5295 * Makefile.in (SFILES): Add frame-unwind.c.
5296 (frame_unwind_h): Define.
5297 (COMMON_OBS): Add frame-unwind.o.
5298 (frame-unwind.o): Specify dependencies.
5299 (frame.o, dummy-frame.o): Update dependencies.
5301 2003-01-18 Andrew Cagney <ac131313@redhat.com>
5303 * ada-valprint.c: Eliminate PTR.
5304 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
5305 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
5306 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
5307 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
5308 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
5309 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
5310 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
5312 2003-01-17 Andrew Cagney <ac131313@redhat.com>
5314 * main.c (captured_main): Don't use PTR.
5315 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
5316 * gdbtypes.c (lookup_primitive_typename): Ditto.
5317 (lookup_struct_elt_type): Ditto.
5318 * f-valprint.c (info_common_command): Ditto.
5319 (list_all_visible_commons): Ditto.
5320 * jv-typeprint.c (java_type_print_base): Ditto.
5322 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
5323 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
5324 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
5325 i386-interix-nat.c and i386-interix-tdep.c. Rename
5326 m68klinux-nat.c and m68klinux-tdep.c. Rename
5327 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
5328 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
5329 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
5330 * main.c (captured_main): Use xfree, not free.
5332 2003-01-16 Andrew Cagney <ac131313@redhat.com>
5334 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
5335 ID back using a parameter.
5336 * frame.c (frame_id_unwind): Update call.
5337 (frame_saved_regs_id_unwind): Update.
5338 * dummy-frame.c (dummy_frame_id_unwind): Update function.
5339 * dummy-frame.h (struct frame_id): Add opaque declaration.
5340 (dummy_frame_id_unwind): Update declaration.
5342 2003-01-15 Andrew Cagney <ac131313@redhat.com>
5344 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
5346 2003-01-15 Stephen P. Smith <ischis2@cox.net>
5348 * MAINTAINERS (Stephen P. Smith): Updated email address.
5350 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
5353 * breakpoint.c (until_break_command): Add new argument. Use it to
5354 decide whether to stop only at the current frame or not.
5355 * breakpoint.h (until_break_command): Update prototype.
5356 * infcmd.c (until_command): Add new argument to until_break_command
5358 (advance_command): New function.
5359 (_initialize_infcmd): Update help string for 'until' command.
5360 Add new 'advance' command.
5362 2003-01-14 David Carlton <carlton@math.stanford.edu>
5364 * linespec.c (decode_line_1): Normalize comments.
5366 (locate_first_half): Ditto.
5367 (decode_compound): Ditto.
5368 (symtab_from_filename): Ditto.
5369 (decode_all_digits): Ditto.
5370 (decode_dollar): Ditto.
5371 (find_methods): Ditto.
5372 (find_toplevel_char): Ditto.
5374 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5376 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
5377 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
5378 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
5379 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
5380 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
5381 * language.c, language.h, m32r-tdep.c: Update copyright.
5382 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
5383 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
5384 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
5385 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
5386 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
5387 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
5389 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5391 * stabsread.h (process_later, resolve_cfront_continuation):
5393 Update copyright years.
5394 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
5395 Update copyright year.
5396 * dbxread.c(struct cont_elem): Obsolete.
5397 (process_later, process_now): Obsolete functions.
5398 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
5399 Update copyright year.
5400 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
5401 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
5402 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
5403 (parse_partial_symbols): Obsolete cfront support.
5405 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
5407 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
5408 read_cfront_baseclasses, read_cfront_member_functions,
5409 resolve_cfront_continuation,read_cfront_static_fields,
5410 copy_cfront_struct_fields): Obsolete functions.
5411 (define_symbol, read_one_struct_field): Obsolete cfront support.
5412 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
5413 Update Copyright year.
5415 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
5417 * stack.c (print_frame_info, print_stack_frame_base_stub,
5418 print_stack_frame_base, show_and_print_stack_frame_stub,
5419 show_and_print_stack_frame, print_only_stack_frame_stub,
5420 print_only_stack_frame): Delete functions.
5421 (print_stack_frame_stub): Call print_frame_info instead of
5422 print_frame_info_base.
5423 (print_frame_info_base): Rename to print_frame_info.
5424 (backtrace_command_1): Call print_frame_info, instead of
5425 print_frame_info_base.
5426 (current_frame_command): Call print_stack_frame, instead of
5427 print_only_stack_frame.
5428 (frame_command): Call print_stack_frame, instead of
5429 show_and_print_stack_frame.
5430 (up_command): Ditto.
5431 (down_command): Ditto.
5432 * frame.h (print_only_stack_frame): Delete prototype.
5433 * infrun.c (normal_stop): Call print_stack_frame, instead of
5434 show_and_print_stack_frame.
5435 * thread.c (info_threads_command): Call print_stack_frame, instead
5436 of print_only_stack_frame.
5438 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5440 * README (Graphical interface to GDB): Update URL. Point at
5443 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
5446 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5448 * symtab.c (find_pc_sect_line): Don't consider end-of-function
5451 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5453 * thread-db.c (attach_thread): Prototype.
5454 (struct private_thread_info): Remove lwpid. Add thread handle (th),
5455 thread information (ti), and valid flags (th_valid, ti_valid).
5456 (attach_thread): Move target_pid_to_str call to after the thread
5457 is added to GDB's list. Initialize the cache.
5458 (thread_get_info_callback, thread_db_map_id2thr)
5459 (thread_db_get_info): New functions.
5460 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
5461 (thread_db_store_registers, thread_db_thread_alive)
5462 (thread_db_get_thread_local_address): Use them.
5463 (thread_db_pid_to_str): Likewise. Return "Missing" instead
5464 of calling error() for threads in unknown state.
5466 (clear_lwpid_callback): New function.
5467 (thread_db_resume): Use it to clear the cache.
5469 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5471 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
5472 (resume_callback): Remove dead code.
5474 2003-01-13 Andrew Cagney <ac131313@redhat.com>
5476 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
5478 * gdbarch.h, gdbarch.c: Regenerate.
5479 * stack.c (frame_info): Only initialize the saved registers when
5480 FRAME_INIT_SAVED_REGS_P.
5481 * frame.c (frame_saved_regs_register_unwind): Assert
5482 FRAME_INIT_SAVED_REGS_P.
5483 (deprecated_generic_get_saved_register): Ditto.
5485 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5487 * source.c (openp): Squelch warning about "filename".
5489 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5491 * source.c (openp): If the file does not exist don't necessarily
5494 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5497 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
5498 (integer_types_same_name_p): New function.
5499 (rank_one_type): Use it.
5500 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
5502 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
5504 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
5506 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
5507 * configure.in: Add --with-sysroot.
5508 * configure: Regenerated.
5509 * main.c (gdb_sysroot): New variable.
5510 (captured_main): Initialize gdb_sysroot.
5511 * defs.h (gdb_sysroot): New extern declaration.
5512 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
5514 2003-01-12 Michael Chastain <mec@shout.net>
5516 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
5518 2003-01-12 Michael Chastain <mec@shout.net>
5520 * top.c (print_gdb_version): Bump copyright year to 2003.
5522 2003-01-12 David Carlton <carlton@bactrian.org>
5524 * linespec.c (symtab_from_filename): Rename variable 's' to
5527 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5529 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
5531 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
5533 2003-01-12 Andrew Cagney <ac131313@redhat.com>
5535 * d10v-tdep.c: Include "gdb_assert.h".
5536 (d10v_store_return_value): Rewrite to match current interface.
5537 (d10v_extract_struct_value_address): Ditto.
5538 (d10v_extract_return_value): Ditto.
5539 (d10v_gdbarch_init): Set store_restore_value,
5540 extract_struct_value_address and extract_return_value.
5542 2003-01-12 J. Brobecker <brobecker@gnat.com>
5544 * hpread.c (set_namestring): New procedure replacing the
5545 SET_NAMESTRING macro.
5546 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
5547 by calls to set_namestring.
5549 2003-01-11 J. Brobecker <brobecker@gnat.com>
5551 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
5552 a compilation warning.
5553 (hpread_process_one_debug_symbol): Likewise.
5555 2003-01-10 David Carlton <carlton@math.stanford.edu>
5557 * linespec.c (decode_line_1): Rename variable 's' to
5559 (decode_all_digits): Rename argument 's' to 'file_symtab'.
5560 (decode_dollar): Ditto.
5561 (decode_variable): Ditto.
5562 (symbol_found): Ditto.
5564 2003-01-09 Michael Chastain <mec@shout.net>
5566 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
5568 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
5570 * win32-nat.c (set_process_privilege): New function.
5571 (child_attach): Call set_process_privilege() to enable the
5572 SE_DEBUG_NAME user privilege if available in process token.
5574 2003-01-10 J. Brobecker <brobecker@gnat.com>
5576 * hpread.c (hpread_process_one_debug_symbol): Fix a small
5577 compilation error in the previous revision.
5579 2003-01-09 David Carlton <carlton@math.stanford.edu>
5581 * linespec.c: Update copyright.
5583 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
5585 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
5587 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
5589 2003-01-09 Andrew Cagney <ac131313@redhat.com>
5591 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
5593 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
5594 (frame_saved_regs_zalloc): Update.
5595 (frame_saved_regs_register_unwind): Update.
5596 (create_new_frame): Update.
5597 (get_prev_frame): Update.
5598 (frame_extra_info_zalloc): Update.
5599 (deprecated_get_frame_saved_regs): Update.
5600 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
5601 * cris-tdep.c: Update comment.
5603 * somsolib.h: Fix function indentation.
5604 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
5605 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
5606 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
5607 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
5608 * somsolib.c, inftarg.c: Remove assignment in if conditional.
5610 * infrun.c (follow_fork): Use ISO C definition.
5611 * expprint.c (print_subexp): Use xfree instead of free.
5612 * charset.c: Include "gdb_string.h" instead of <string.h>.
5613 (register_iconv_charsets): Use ISO C definition.
5614 (host_charset, target_charset): Ditto.
5615 * Makefile.in (charset.o): Update dependencies.
5616 (mi-cmd-env.o): Update dependencies.
5618 2003-01-08 Andrew Cagney <cagney@redhat.com>
5620 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
5623 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5625 * gdb_mbuild.sh: Add --keep option. When specified, keep the
5626 build directories. Save edited gdb output in Mbuild.log. If a
5627 build fails, remove any final GDB executable.
5629 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5631 * gdb_mbuild.sh: Edit the output of `maint print architecture'
5632 replacing hex constants with function names and stripping leading
5633 file name directory prefixes.
5635 2003-01-08 Andrew Cagney <cagney@redhat.com>
5637 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
5640 2003-01-08 David Carlton <carlton@math.stanford.edu>
5642 * linespec.c (decode_line_1): Move code into decode_variable.
5643 (decode_variable): New function.
5645 2003-01-08 Andrew Cagney <ac131313@redhat.com>
5647 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
5649 2003-01-08 Andrew Cagney <cagney@redhat.com>
5651 * cris-tdep.c (cris_frame_init_saved_regs): Use
5652 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
5654 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
5655 (sh64_nofp_frame_init_saved_regs): Ditto.
5656 (sh_fp_frame_init_saved_regs): Ditto.
5657 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
5658 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5659 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5660 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5662 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
5664 * minsyms.c (lookup_minimal_symbol): Update comment.
5665 (lookup_minimal_symbol_text): Update comment. Use the hash table.
5666 (lookup_minimal_symbol_solib_trampoline): Likewise.
5668 2003-01-08 Andrew Cagney <cagney@redhat.com>
5670 * d10v-tdep.c (d10v_init_extra_frame_info): Use
5671 frame_relative_level.
5673 * alpha-tdep.c: Use get_frame_extra_info.
5674 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5675 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
5676 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5677 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
5679 * alpha-tdep.c: Use get_next_frame.
5680 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5681 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
5682 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
5683 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
5684 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
5685 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
5686 * xstormy16-tdep.c: Ditto.
5688 2003-01-07 Andrew Cagney <cagney@redhat.com>
5690 * alpha-tdep.c: Use get_frame_base.
5691 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
5692 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
5693 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
5694 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
5695 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
5696 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
5697 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
5698 * config/sparc/tm-sparc.h: Ditto.
5700 2003-01-07 Andrew Cagney <cagney@redhat.com>
5702 * frame.c (deprecated_get_frame_context): New function.
5703 (deprecated_set_frame_context): New function.
5704 * frame.h (deprecated_get_frame_context): Declare.
5705 (deprecated_set_frame_context): Declare.
5706 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
5707 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
5709 2003-01-07 Andrew Cagney <cagney@redhat.com>
5711 * frame.c (deprecated_set_frame_next_hack): New function.
5712 (deprecated_set_frame_prev_hack): New function.
5713 * frame.h (deprecated_set_frame_next_hack): Declare.
5714 (deprecated_set_frame_prev_hack): Declare.
5715 * mcore-tdep.c (analyze_dummy_frame): Use
5716 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
5717 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5719 2003-01-07 David Carlton <carlton@math.stanford.edu>
5721 * linespec.c (decode_line_1): Move code into decode_dollar.
5722 (decode_dollar): New function.
5724 2003-01-07 Andrew Cagney <cagney@redhat.com>
5726 * arm-tdep.c (arm_init_extra_frame_info): Use
5727 deprecated_update_frame_base_hack.
5728 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
5729 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
5730 (fix_frame_pointer): Ditto.
5731 (mn10300_analyze_prologue): Ditto.
5733 2003-01-07 Andrew Cagney <cagney@redhat.com>
5735 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
5736 extra_info using frame_extra_info_zalloc.
5737 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
5738 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
5739 (sh64_init_extra_frame_info): Ditto.
5740 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
5741 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
5742 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
5743 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
5744 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
5745 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
5746 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
5747 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
5748 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
5749 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
5750 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
5751 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
5753 * mn10300-tdep.c (analyze_dummy_frame): Use
5754 deprecated_set_frame_extra_info_hack.
5755 * mcore-tdep.c (analyze_dummy_frame): Ditto.
5757 2003-01-07 J. Brobecker <brobecker@gnat.com>
5759 * mdebugread.c (parse_symbol): Skip stProc entries which storage
5760 class is not scText. These do not define "real" procedures.
5761 (parse_partial_symbols): Likewise.
5763 2003-01-06 Michael Snyder <msnyder@redhat.com>
5765 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
5767 2003-01-06 Andrew Cagney <ac131313@redhat.com>
5769 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
5770 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
5771 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
5772 deprecated_frame_xmalloc_with_cleanup.
5773 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
5774 deprecated_frame_xmalloc.
5775 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
5776 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
5778 2003-01-06 Andrew Cagney <cagney@redhat.com>
5780 * x86-64-linux-tdep.c: Include "osabi.h".
5781 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
5783 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
5785 2003-01-06 Andrew Cagney <cagney@redhat.com>
5787 * MAINTAINERS (Target Instruction Set Architectures): Update
5788 arm-elf. Can be built with -Werror, has been multiarched.
5790 * value.h (unpack_long): Make buffer parameter constant.
5791 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
5792 * scm-lang.h (scm_parse): Ditto.
5793 * defs.h (extract_typed_address, extract_address): Ditto.
5794 (extract_long_unsigned_integer): Ditto.
5795 * inferior.h (unsigned_pointer_to_address): Ditto.
5796 (signed_pointer_to_address): Ditto.
5797 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
5798 * gdbarch.h, gdbarch.c: Regenerate.
5799 * findvar.c (extract_long_unsigned_integer): Update.
5800 (extract_address): Update.
5801 (extract_typed_address): Update.
5802 (unsigned_pointer_to_address): Update.
5803 * values.c (unpack_long): Update.
5804 (unpack_double): Update.
5805 (unpack_pointer): Update.
5806 (unpack_field_as_long): Update.
5807 * d10v-tdep.c (d10v_pointer_to_address): Update.
5808 * avr-tdep.c (avr_pointer_to_address): Update.
5809 * scm-lang.c (scm_unpack): Update.
5810 * findvar.c (signed_pointer_to_address): Update.
5812 2003-01-06 Michal Ludvig <mludvig@suse.cz>
5814 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
5815 since it is in i386-tdep.c.
5817 2003-01-06 J. Brobecker <brobecker@gnat.com>
5819 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
5820 failure introduced in the previous change.
5822 2003-01-05 Michael Chastain <mec@shout.net>
5824 * README: Remove references to deleted remote-*.c files:
5825 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
5826 remote-nrom.c, remote-os9k.c, remote-udi.c.
5828 2003-01-05 Mark Kettenis <kettenis@gnu.org>
5830 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
5831 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
5832 i386_get_longjmp_target.
5834 2003-01-05 Andrew Cagney <ac131313@redhat.com>
5836 * arm-tdep.c (prologue_cache): Change to a pointer.
5837 (_initialize_arm_tdep): Allocate prologue_cache.
5838 (check_prologue_cache): Update.
5839 (save_prologue_cache): Update.
5840 (arm_gdbarch_init): Update.
5842 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5844 * stabsread.c (update_method_name_from_physname): Call complaint()
5847 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5849 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
5850 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
5851 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
5853 * blockframe.c: Include "gdbcmd.h" and "command.h".
5854 (backtrace_below_main): New variable.
5855 (file_frame_chain_valid, func_frame_chain_valid)
5856 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
5857 (generic_func_frame_chain_valid): Remove functions.
5858 (frame_chain_valid, do_flush_frames_sfunc): New functions.
5859 (_initialize_blockframe): New function.
5860 * Makefile.in (blockframe.o): Update dependencies.
5861 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
5862 comment. Call frame_chain_valid ().
5863 * frame.h: Remove old prototypes. Add prototype for
5864 frame_chain_valid and update comments to match.
5865 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
5867 * gdbarch.h: Regenerated.
5868 * gdbarch.c: Regenerated.
5870 * alpha-tdep.c (alpha_gdbarch_init): Don't call
5871 set_gdbarch_frame_chain_valid.
5872 * avr-tdep.c (avr_gdbarch_init): Likewise.
5873 * cris-tdep.c (cris_gdbarch_init): Likewise.
5874 * frv-tdep.c (frv_gdbarch_init): Likewise.
5875 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
5876 * i386-tdep.c (i386_svr4_init_abi): Likewise.
5877 (i386_nw_init_abi): Likewise.
5878 (i386_gdbarch_init): Likewise.
5879 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
5880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
5881 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
5882 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
5883 * mips-tdep.c (mips_gdbarch_init): Likewise.
5884 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
5885 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
5886 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
5887 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
5888 * s390-tdep.c (s390_gdbarch_init): Likewise.
5889 * sh-tdep.c (sh_gdbarch_init): Likewise.
5890 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
5891 * v850-tdep.c (v850_gdbarch_init): Likewise.
5892 * vax-tdep.c (vax_gdbarch_init): Likewise.
5893 * x86-64-tdep.c (x86_64_init_abi): Likewise.
5895 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
5896 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
5897 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
5898 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
5899 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
5900 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
5901 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
5902 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
5904 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
5906 * Makefile.in (acconfig_h): Remove incorrect macro.
5908 (osabi.o): Update dependencies.
5909 * configure.tgt: Set gdb_osabi based on target triplet.
5910 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
5911 * configure: Regenerated.
5912 * config.in: Regenerated.
5913 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
5914 (GDB_OSABI_DEFAULT): Define if not already defined.
5915 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
5916 (set_osabi_string): New variables.
5917 (gdbarch_register_osabi): Add new OS ABI to
5918 gdb_osabi_available_names.
5919 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
5920 (set_osabi, show_osabi): New functions.
5921 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
5923 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
5925 * arch-utils.c (gdbarch_info_init): Set osabi to
5926 GDB_OSABI_UNINITIALIZED.
5927 * gdbarch.sh: Add osabi to struct gdbarch and to struct
5928 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
5929 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
5930 * gdbarch.c: Regenerated.
5931 * gdbarch.h: Regenerated.
5932 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
5934 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
5935 * osabi.h (enum gdb_osabi): Move to defs.h.
5936 (gdbarch_init_osabi): Update prototype.
5937 * defs.h (enum gdb_osabi): Moved here.
5938 * Makefile.in: Update dependencies.
5940 * alpha-tdep.h: Don't include "osabi.h".
5941 (struct gdbarch_tdep): Remove osabi member.
5942 * alpha-tdep.c: Include "osabi.h".
5943 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5944 iterate over arches. Update call to gdbarch_init_osabi.
5945 (alpha_dump_tdep): Don't dump osabi.
5946 * alpha-linux-tdep.c: Include "osabi.h".
5947 * alpha-osf1-tdep.c: Include "osabi.h".
5948 * alphafbsd-tdep.c: Include "osabi.h".
5949 * alphanbsd-tdep.c: Include "osabi.h".
5951 * arm-tdep.h: Don't include "osabi.h".
5952 (struct gdbarch_tdep): Remove osabi member.
5953 * arm-tdep.c: Include "osabi.h".
5954 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5955 iterate over arches. Update call to gdbarch_init_osabi.
5956 (arm_dump_tdep): Don't dump osabi.
5957 * arm-linux-tdep.c: Include "osabi.h".
5958 * armnbsd-tdep.c: Include "osabi.h".
5960 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
5961 Update call to gdbarch_init_osabi.
5963 * i386-tdep.h: Don't include "osabi.h".
5964 (struct gdbarch_tdep): Remove osabi member.
5965 * i386-tdep.c: Include "osabi.h".
5966 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5967 iterate over arches. Update call to gdbarch_init_osabi.
5968 (i386_dump_tdep): Don't dump osabi.
5969 * i386-linux-tdep.c: Include "osabi.h".
5970 * i386-sol2-tdep.c: Include "osabi.h".
5971 * i386bsd-tdep.c: Include "osabi.h".
5972 * i386gnu-tdep.c: Include "osabi.h".
5973 * i386ly-tdep.c: Include "osabi.h".
5974 * i386nbsd-tdep.c: Include "osabi.h".
5975 * i386obsd-tdep.c: Include "osabi.h".
5977 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
5978 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
5979 check osabi when iterating over arches. Update call to
5981 (mips_dump_tdep): Don't dump osabi.
5983 * ns32k-tdep.h: Don't include "osabi.h".
5984 (struct gdbarch_tdep): Remove.
5985 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
5986 gdbarch_lookup_osabi. Don't iterate over arches. Don't
5987 allocate tdep. Update call to gdbarch_init_osabi.
5988 (ns32k_dump_tdep): Remove.
5989 (_initialize_ns32k_tdep): Update call to gdbarch_register.
5990 * ns32knbsd-tdep.c: Include "osabi.h".
5992 * ppc-tdep.h: Don't include "osabi.h".
5993 (struct gdbarch_tdep): Remove osabi member.
5994 * rs6000-tdep.c: Include "osabi.h".
5995 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
5996 osabi when iterating over arches. Update call to
5998 (rs6000_dump_tdep): Don't dump osabi.
5999 * ppc-linux-tdep.c: Include "osabi.h".
6000 * ppcnbsd-tdep.c: Include "osabi.h".
6002 * sh-tdep.h: Don't include "osabi.h".
6003 (struct gdbarch_tdep): Remove osabi member.
6004 * sh-tdep.c: Include "osabi.h".
6005 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6006 iterate over arches. Update call to gdbarch_init_osabi.
6007 (sh_dump_tdep): Don't dump osabi.
6008 * shnbsd-tdep.c: Include "osabi.h".
6010 * sparc-tdep.c: Include "osabi.h".
6011 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6012 iterate over arches. Update call to gdbarch_init_osabi.
6013 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
6016 * vax-tdep.h: Don't include "osabi.h".
6017 (struct gdbarch_tdep): Remove.
6018 * vax-tdep.c: Include "osabi.h".
6019 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
6020 iterate over arches. Don't allocate tdep. Update call
6021 to gdbarch_init_osabi.
6022 (vax_dump_tdep): Remove.
6023 (_initialize_vax_tdep): Update call to gdbarch_register.
6025 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6027 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
6029 (breakpoint_re_set_one): Don't fetch the value for a disabled
6032 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6034 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
6035 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
6036 (COERCE_FLOAT_TO_DOUBLE): Remove.
6037 * gdbarch.c: Regenerate.
6038 * gdbarch.h: Regenerate.
6039 * Makefile.in: Remove value_h from gdbarch_h.
6040 * valops.c (coerce_float_to_double): New variable.
6041 (default_coerce_float_to_double): Remove.
6042 (standard_coerce_float_to_double): Remove.
6043 (value_arg_coerce): Use coerce_float_to_double.
6044 (_initialize_valops): Add "set coerce-float-to-double".
6045 * value.h (default_coerce_float_to_double): Remove prototype.
6046 (standard_coerce_float_to_double): Remove prototype.
6048 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
6050 * mdebugread.c (parse_symbol): Likewise.
6051 * stabsread.c (define_symbol): Mark all functions as prototyped.
6053 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
6054 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
6055 set_gdbarch_coerce_float_to_double.
6056 * arm-tdep.c (arm_gdbarch_init): Likewise.
6057 * frv-tdep.c (frv_gdbarch_init): Likewise.
6058 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
6059 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
6060 * mips-tdep.c (mips_gdbarch_init): Likewise.
6061 (mips_coerce_float_to_double): Remove.
6062 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
6063 (rs6000_coerce_float_to_double): Remove.
6064 * s390-tdep.c (s390_gdbarch_init): Likewise.
6065 * sh-tdep.c (sh_gdbarch_init): Likewise.
6066 (sh_coerce_float_to_double): Remove.
6067 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
6068 (sparc_coerce_float_to_double): Remove.
6069 * v850-tdep.c (v850_gdbarch_init): Likewise.
6070 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
6071 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6072 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
6073 (hppa_coerce_float_to_double): Remove prototype.
6074 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
6076 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6078 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
6080 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
6082 Suggested by Stewart Brown <sb24@avaya.com>:
6083 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
6084 in recursive calls. Handle TYPE_CODE_TYPEDEF.
6085 (c_type_print_varspec_suffix): Likewise.
6087 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6089 * configure.in: Don't set and AC_SUBST SUBDIRS.
6090 * configure: Regenerated.
6092 * configure.in: Remove code dealing with shared libraries.
6093 * Makefile.in: Remove HLDFLAGS and HLDENV.
6094 * configure: Regenerated.
6096 2003-01-04 Andrew Cagney <ac131313@redhat.com>
6098 * frame.c (deprecated_frame_xmalloc): New function.
6099 (deprecated_set_frame_saved_regs_hack): New function.
6100 (deprecated_set_frame_extra_info_hack): New function.
6101 * frame.h (deprecated_frame_xmalloc): Declare.
6102 (deprecated_set_frame_saved_regs_hack): Declare.
6103 (deprecated_set_frame_extra_info_hack): Declare.
6105 2003-01-04 Mark Kettenis <kettenis@gnu.org>
6107 * configure.in: Move code that provides the --enable-gdbtk option
6108 right after the code that handles the --enable-tui option, and
6110 * configure: Regenerated.
6112 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
6113 AC_CHECK_FUNCS and remove the old check for pread64.
6114 * acinclude.m4 (AC_GNU_SOURCE): New macro.
6115 * acconfig.h (_GNU_SOURCE): Add.
6116 (HAVE_PREAD64): Remove.
6117 * configure, aclocal.m4, config.in: Regenerated.
6119 2003-01-03 Andrew Cagney <ac131313@redhat.com>
6121 * alpha-tdep.c: Use get_frame_saved_regs.
6122 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6123 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
6124 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
6125 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
6126 * vax-tdep.c, xstormy16-tdep.c: Ditto.
6128 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6130 * configure.in: Remove all use of the SUBDIRS variable; add
6131 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
6132 code providing the --enable-multi-ice option, and move it right in
6133 front of the code that checks whether gdbserver is supported.
6135 * configure: Regenerated.
6136 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
6139 2003-01-03 Andrew Cagney <cagney@redhat.com>
6141 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
6142 * avr-tdep.c, cris-tdep.c: Ditto.
6143 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
6144 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6146 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6148 * configure.in: Remove --enable-netrom option.
6149 * configure: Regenerated.
6151 2003-01-03 Mark Kettenis <kettenis@gnu.org>
6153 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
6154 declaration for `struct re_pattern_buffer' instead.
6155 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
6157 2003-01-03 J. Brobecker <brobecker@gnat.com>
6159 * mdebugread.c (parse_symbol): Count until the stEnd matching
6162 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6164 * configure.in: Remove --with-cpu option.
6165 subscripts. Remove evil changequotes here.
6166 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
6167 * config.in, configure: Regenerated.
6169 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
6170 * configure.in: Cleanup section that sources GDB and BFD configure
6171 subscripts. Remove evil changequotes here.
6172 * config.in, configure: Regenerated.
6174 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6176 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
6177 frame accessor methods.
6178 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
6179 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
6180 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
6181 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
6182 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
6183 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
6184 * z8k-tdep.c: Ditto.
6186 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6188 * configure.in: Remove UI_OUT configuration code.
6189 * ada-lang.c: Update assuming UI_OUT is always true.
6190 * Makefile.in (UIOUT_CFLAGS): Remove.
6191 * configure: Regenerated.
6192 * TODO: Remove blurb about elimination of -DUI_OUT.
6194 * configure.in: Move code that provides the --enable-gdbcli,
6195 --enable-gdbmi options right before the code that handles the
6196 --enable-tui option. Polish a bit.
6197 * configure: Regenerated.
6199 * configure.in: Rewrite check for GNU regex and the
6200 --without-included regex option, and move it into the "Checks for
6201 library functions" section. This makes us use the system regex
6202 again by default on systems with version 2 of the GNU C library.
6203 This was apparently broken.
6204 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
6205 * acconfig.h (USE_INCLUDED_REGEX): Remove.
6206 * config.in, configure: Regenerated.
6208 * configure.in: Move code that provides the --enable-tui option
6209 before the "Checks for libraries" section. Polish the code
6210 somewhat and set need_curses to yes if we build the TUI. Rewrite
6211 code that looks for a library providing termcap functionality to
6212 match more closely what's done in the Readline library, and move
6213 it into to the "Checks for libraries" section.
6214 * configure: Regenerated.
6215 * Makefile.in (TERMCAP): Remove variable.
6216 * config/i386/go32.mh (TERMCAP): Remove variable.
6218 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6220 * MAINTAINERS: Mention gdb_mbuild.sh.
6221 * gdb_mbuild.sh: Rewrite.
6223 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6225 * configure.in: Fix typo in last change.
6226 * config.in, configure: Regenerated.
6228 2003-01-02 Andrew Cagney <ac131313@redhat.com>
6230 * valarith.c (value_binop): Delete obsolete code and comments.
6231 * configure.host: Ditto.
6232 * buildsym.h (make_blockvector): Ditto.
6233 * buildsym.c (make_blockvector): Ditto.
6234 * defs.h (enum language): Ditto.
6235 (chill_demangle): Ditto.
6236 * elfread.c (elf_symtab_read): Ditto.
6237 * dwarfread.c (CHILL_PRODUCER): Ditto.
6238 (set_cu_language): Ditto.
6239 (handle_producer): Ditto.
6240 * expprint.c (print_subexp): Ditto.
6241 * gdbtypes.c (chill_varying_type): Ditto.
6242 * gdbtypes.h (builtin_type_chill_bool): Ditto.
6243 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
6244 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
6245 (chill_varying_type): Ditto.
6246 * language.h (_LANG_chill): Ditto.
6247 * language.c (binop_result_type, integral_type): Ditto.
6248 (character_type, string_type, structured_type): Ditto.
6249 (lang_bool_type, binop_type_check): Ditto.
6250 * stabsread.h (os9k_stabs): Ditto.
6251 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
6252 (define_symbol, read_type, read_struct_fields): Ditto.
6253 (read_array_type, read_enum_type, read_huge_number): Ditto.
6254 (read_range_type, start_stabs): Ditto.
6255 * symfile.c (init_filename_language_table): Ditto.
6256 (add_psymbol_with_dem_name_to_list): Ditto.
6257 * symtab.c (symbol_init_language_specific): Ditto.
6258 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
6259 * symtab.h (struct general_symbol_info): Ditto.
6260 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6261 * typeprint.c (typedef_print): Ditto.
6262 * utils.c (fprintf_symbol_filtered): Ditto.
6263 * valops.c (value_cast, search_struct_field, value_slice): Delete
6265 (varying_to_slice): Delete function.
6266 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
6267 (varying_to_slice): Delete declaration.
6268 * MAINTAINERS: Update.
6270 2003-01-02 Mark Kettenis <kettenis@gnu.org>
6272 * configure.in: Reorganize "Checks for library functions section"
6273 a bit. Remove check for `btowc' and `isascii' functions.
6274 * configure: Regenerated.
6276 * acconfig.h (_MSE_INT_H): Remove.
6277 * configure.in: Create "Checks for header files" section, and move
6278 appropriate tests there. Don't check for objlist.h, wchar.h,
6279 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
6280 misdetection fix. Also add "Checks for types", "Checks for
6281 compiler characteristics" and "Checks for library functions"
6283 * config.in, configure: Regenerated.
6285 * configure.in: Create "Checks for programs" section, and move
6286 appropriate tests there.
6288 2003-01-01 Mark Kettenis <kettenis@gnu.org>
6290 * configure.in: Create "Checks for libraries" section, and move
6291 appropriate tests there. Cleanup check for wctype in libw. Use
6292 AC_SEARCH_LIBS to see whether we need libsocket.
6293 * configure: Regenerated.
6295 For older changes see ChangeLog-2002
6301 version-control: never