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