1 2003-03-30 Andrew Cagney <cagney@redhat.com>
3 2002-11-10 Klee Dienes <kdienes@apple.com>
4 * value.h (struct value): Update comment.
6 2003-03-30 Andrew Cagney <cagney@redhat.com>
8 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
10 (d10v_gdbarch_init): Do not set fp_regnum.
12 * frame.c (get_frame_base): Force ID initialization.
13 (get_prev_frame): Move computation of the frame ID from here ...
14 (get_frame_id): ... to here.
15 (legacy_get_prev_frame): Mark the frame ID as valid.
16 * frame.h (struct frame_info): Add field "id_p".
18 2003-03-30 Mark Kettenis <kettenis@gnu.org>
20 * i386-tdep.c (i386_store_struct_return): Removed.
21 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
23 2003-03-30 Andrew Cagney <cagney@redhat.com>
25 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
26 * gdbarch.h, gdbarch.c: Regenerate.
27 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
28 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
29 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
30 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
31 * i386-tdep.c (i386_gdbarch_init): Ditto.
32 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
33 * cris-tdep.c (cris_gdbarch_init): Ditto.
34 * vax-tdep.c (vax_gdbarch_init): Ditto.
35 * s390-tdep.c (s390_gdbarch_init): Ditto.
36 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
37 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
38 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
39 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
40 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
41 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
42 * sparc-tdep.c (sparc_gdbarch_init): Update.
43 * sh-tdep.c (sh_gdbarch_init): Update.
44 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
45 * mips-tdep.c (mips_gdbarch_init): Update.
46 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
47 * ia64-tdep.c (ia64_gdbarch_init): Update.
48 * frv-tdep.c (frv_gdbarch_init): Update.
49 * avr-tdep.c (avr_gdbarch_init): Update.
50 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
51 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
52 instead of when push_dummy_call is not available.
54 2003-03-30 Andrew Cagney <cagney@redhat.com>
56 * infttrace.c: Include "gdbthread.h".
57 (parent_attach_all): Fix function signature.
58 (call_ptrace): Update call.
59 * Makefile.in (infttrace.o): Update dependencies.
61 2003-03-30 Andrew Cagney <cagney@redhat.com>
63 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
65 * gdbarch.h, gdbarch.c: Regenerate.
66 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
67 * x86-64-tdep.c (x86_64_init_abi): Update.
68 * v850-tdep.c (v850_gdbarch_init): Update.
69 * sparc-tdep.c (sparc_gdbarch_init): Update.
70 * sh-tdep.c (sh_gdbarch_init): Update.
71 * s390-tdep.c (s390_gdbarch_init): Update.
72 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
73 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
74 * mips-tdep.c (mips_gdbarch_init): Update.
75 * mcore-tdep.c (mcore_gdbarch_init): Update.
76 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
77 * ia64-tdep.c (ia64_gdbarch_init): Update.
78 * i386-tdep.c (i386_gdbarch_init): Update.
79 * h8300-tdep.c (h8300_gdbarch_init): Update.
80 * frv-tdep.c (frv_gdbarch_init): Update.
81 * cris-tdep.c (cris_gdbarch_init): Update.
82 * avr-tdep.c (avr_gdbarch_init): Update.
83 * arm-tdep.c (arm_gdbarch_init): Update.
84 * valops.c (hand_function_call): Update.
86 2003-03-29 Andrew Cagney <cagney@redhat.com>
88 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
89 sizeof_call_dummy_words.
90 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
92 * gdbarch.h: Regenerate.
94 2003-03-29 Andrew Cagney <cagney@redhat.com>
96 * infttrace.h: New file.
97 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
98 (hpread_get_textlow): Detect an uninitialized dn_bufp.
99 (hpread_read_doc_function_type): Detect an initialized type1.
100 (hpread_quick_traverse): Initialize mod_name_string.
101 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
102 (som_solib_get_solib_by_pc): Declare.
103 (so_lib_thread_start_addr): Declare.
104 (no_shared_libraries): Declare.
105 * somread.c (init_import_symbols): Make static. Add forward
107 * config/pa/nm-hppah.h: Include "infttrace.h" for
109 (hppa_insert_hw_watchpoint): Declare.
110 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
111 * hppah-nat.c: Include "gdb_string.h".
112 (parent_attach_all): Delete extern declaration, moved to
114 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
116 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
117 * Makefile.in (infttrace_h): Define.
118 (hpread.o): Update dependencies.
119 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
120 * hppa-hpux-tdep.c: Include "gdb_string.h".
121 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
122 * infrun.c (handle_inferior_event): Always initialize
123 stepped_after_stopped_by_watchpoint. Add default and remove
124 fallthrough in switch statement.
125 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
127 (hppa_remove_hw_watchpoint): Ditto.
129 2003-03-29 Andrew Cagney <cagney@redhat.com>
131 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
134 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
136 * arm-tdep.c (arm_push_arguments): Delete.
137 (struct stack_item): New type.
138 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
139 (arm_store_struct_return): Delte.
140 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
141 arm_push_arguments or arm_store_struct_return.
143 2003-03-28 Andrew Cagney <cagney@redhat.com>
145 * Makefile.in (d10v-tdep.o): Update dependencies.
146 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
147 * d10v-tdep.c: Include "remote.h".
148 (target_resume_hook): Delete extern declaration.
149 (target_wait_loop_hook): Ditto.
150 (tdisassemble_command): Eliminate assignment in "if" conditional.
151 (d10v_ts2_register_sim_regno): Eliminate call to
152 legacy_register_sim_regno.
153 (d10v_ts3_register_sim_regno): Ditto.
155 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
157 * thread.c: Reindented.
159 * linux-proc.c: Ditto.
161 2003-03-28 Bob Rossi <bob_rossi@cox.net>
163 * MAINTAINERS (write after approval): Add myself.
165 2003-03-27 Theodore A. Roth <troth@openavr.org>
167 * objc-exp.y: Add missing semi-colons.
169 2003-03-27 Andrew Cagney <cagney@redhat.com>
171 * regcache.c (write_sp): Delete function and references.
172 * inferior.h (write_sp): Delete declaration.
173 * valops.c (hand_function_call): Replace write_sp with
175 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
176 (sparc_pop_frame): Ditto.
178 2003-03-27 Andrew Cagney <cagney@redhat.com>
180 * NEWS: Mention removal of support for hppa*-*-bsd* and
181 hppa*-*-osf* natives, and hppa*-*-pro* target.
182 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
183 * config/pa/xm-pa.h: Obsolete file.
184 * config/pa/xm-hppab.h: Obsolete file.
185 * config/pa/nm-hppab.h: Obsolete file.
186 * config/pa/tm-hppab.h: Obsolete file.
187 * config/pa/tm-hppao.h: Obsolete file.
188 * config/pa/nm-hppao.h: Obsolete file.
189 * config/pa/tm-pro.h: Obsolete file.
190 * config/pa/hppaosf.mt: Obsolete file.
191 * config/pa/hppaosf.mh: Obsolete file.
192 * config/pa/hppapro.mt: Obsolete file.
193 * config/pa/hppabsd.mt: Obsolete file.
194 * config/pa/hppabsd.mh: Obsolete file.
195 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
196 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
199 2003-03-27 Andrew Cagney <cagney@redhat.com>
201 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
202 push_arguments. Don't set push_return_address or write_sp.
203 (d10v_push_dummy_call): Replace d10v_push_arguments.
204 (d10v_push_return_address, d10v_write_sp): Delete function,
205 handled by push_dummy_call.
207 2003-03-26 Andrew Cagney <cagney@redhat.com>
209 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
210 (push_dummy_call): New pure multi-arch replacement with gdbarch,
211 regcache and dummy_addr parameters.
212 * gdbarch.h, gdbarch.c: Re-generate.
213 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
214 available; assume it will handle stack alignment and return
215 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
216 legacy_push_arguments.
217 (legacy_push_arguments): Rename default_push_arguments.
218 * value.h (legacy_push_arguments): Rename default_push_arguments.
219 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
220 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
221 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
222 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
223 * config/i386/tm-symmetry.h: Update.
224 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
225 * x86-64-tdep.c (x86_64_init_abi): Update.
226 * v850-tdep.c (v850_gdbarch_init): Update.
227 * sparc-tdep.c (sparc_gdbarch_init): Update.
228 * sh-tdep.c (sh_gdbarch_init): Update.
229 * s390-tdep.c (s390_gdbarch_init): Update.
230 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
231 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
232 * mips-tdep.c (mips_gdbarch_init): Update.
233 * mcore-tdep.c (mcore_gdbarch_init): Update.
234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
235 * ia64-tdep.c (ia64_gdbarch_init): Update.
236 * i386-tdep.c (i386_gdbarch_init): Update.
237 * hppa-tdep.c (hppa_gdbarch_init): Update.
238 * h8300-tdep.c (h8300_gdbarch_init): Update.
239 * frv-tdep.c (frv_gdbarch_init): Update.
240 * d10v-tdep.c (d10v_gdbarch_init): Update.
241 * cris-tdep.c (cris_gdbarch_init): Update.
242 * avr-tdep.c (avr_gdbarch_init): Update.
243 * arm-tdep.c (arm_gdbarch_init): Update.
244 * arm-linux-tdep.c (arm_linux_init_abi): Update.
245 * alpha-tdep.c (alpha_gdbarch_init): Update.
247 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
249 * signals/signals.c (do_target_signal_to_host): Correct realtime
252 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
254 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
255 (struct sal_chain, map_catch_names): Remove.
256 (catch_exception_command_1): Don't call
257 handle_gnu_4_16_catch_command.
259 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
261 From Mark Dettinger <dettinge@de.ibm.com>:
262 * dwarf2cfi.c (read_2u): Increment pointer by two.
264 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
266 * signals/signals.c: Fix typos in last change.
268 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
270 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
271 not already defined. Use __SIGRTMIN if available.
272 (target_signal_from_host): Remove SIGRTMIN block.
273 (do_target_signal_to_host): Remove SIGRTMIN block; check that
274 the signal is within the realtime range.
276 2003-03-25 Adam Fedor <fedor@gnu.org>
278 * Makefile.in (infrun.o): Add $(language_h)
279 * infrun.c (handle_inferior_event): Use skip_language_trampoline
280 for language specific trampolines.
281 * language.h (struct language_defn): Add skip_trampoline.
282 (skip_language_trampoline): Declare.
283 * language.c (unk_lang_trampoline, skip_language_trampoline):
285 (unknown_language_defn, auto_language_defn, local_language_defn):
286 Add ukn_lang_trampoline.
287 * ada-lang.c (ada_language_defn): Add NULL for language
288 specific skip_trampoline.
289 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
290 scm-lang.c: Likewise.
291 * objc-lang.c (objc_skip_trampoline): New function.
292 (objc_language_defn): Add objc_skip_trampoline.
294 2003-03-25 Andrew Cagney <cagney@redhat.com>
296 * frame.c (get_prev_frame): Delay validating a frame's ID -
297 non-NULL, didn't go backwards - until an attempt to unwind it to
300 2003-03-25 Andrew Cagney <cagney@redhat.com>
302 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
303 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
304 * gdbarch.h, gdbarch.c: Re-generate.
305 * config/sparc/tm-sparc.h
306 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
307 * sparc-tdep.c (sparc_gdbarch_init): Set
308 deprecated_extra_stack_alignment_needed.
309 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
310 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
311 extra_stack_alignment_needed.
312 * v850-tdep.c (v850_gdbarch_init): Ditto.
313 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
314 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
315 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
316 * cris-tdep.c (cris_gdbarch_init): Ditto.
317 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
318 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
320 2003-03-25 Andrew Cagney <cagney@redhat.com>
322 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
324 * gdbarch.h, gdbarch.c: Regenerate.
325 * d10v-tdep.c (d10v_store_struct_return): Delete function.
326 (d10v_push_arguments): Set the struct return register.
327 (d10v_gdbarch_init): Update.
328 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
329 * x86-64-tdep.c (x86_64_init_abi): Update.
330 * vax-tdep.c (vax_gdbarch_init): Update.
331 * v850-tdep.c (v850_gdbarch_init): Update.
332 * sparc-tdep.c (sparc_gdbarch_init): Update.
333 * sh-tdep.c (sh_gdbarch_init): Update.
334 * s390-tdep.c (s390_gdbarch_init): Update.
335 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
336 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
337 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
338 * mips-tdep.c (mips_gdbarch_init): Update.
339 * mcore-tdep.c (mcore_gdbarch_init): Update.
340 * m68k-tdep.c (m68k_gdbarch_init): Update.
341 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
342 * ia64-tdep.c (ia64_gdbarch_init): Update.
343 * i386-tdep.c (i386_gdbarch_init): Update.
344 * hppa-tdep.c (hppa_gdbarch_init): Update.
345 * h8300-tdep.c (h8300_gdbarch_init): Update.
346 * frv-tdep.c (frv_gdbarch_init): Update.
347 * cris-tdep.c (cris_gdbarch_init): Update.
348 * avr-tdep.c (avr_gdbarch_init): Update.
349 * arm-tdep.c (arm_gdbarch_init): Update.
350 * alpha-tdep.c (alpha_gdbarch_init): Update.
352 2003-03-25 Andrew Cagney <cagney@redhat.com>
354 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
355 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
356 CALL_DUMMY_STACK_ADJUST with a predicate variable.
357 * gdbarch.h, gdbarch.c: Regenerate.
358 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
359 call_dummy_stack_adjust_p.
360 * vax-tdep.c (vax_gdbarch_init): Ditto.
361 * v850-tdep.c (v850_gdbarch_init): Ditto.
362 * sh-tdep.c (sh_gdbarch_init): Ditto.
363 * s390-tdep.c (s390_gdbarch_init): Ditto.
364 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
365 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
366 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
367 * mips-tdep.c (mips_gdbarch_init): Ditto.
368 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
369 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
370 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
371 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
372 * i386-tdep.c (i386_gdbarch_init): Ditto.
373 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
374 * frv-tdep.c (frv_gdbarch_init): Ditto.
375 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
376 * cris-tdep.c (cris_gdbarch_init): Ditto.
377 * avr-tdep.c (avr_gdbarch_init): Ditto.
378 * arm-tdep.c (arm_gdbarch_init): Ditto.
379 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
380 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
381 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
382 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
383 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
384 call_dummy_stack_adjust_p.
385 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
386 (CALL_DUMMY_STACK_ADJUST): Delete macro.
387 * sparc-tdep.c (sparc32_push_arguments): Update.
388 * valops.c (hand_function_call): Update.
390 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
393 set_gdbarch_char_signed.
395 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
398 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
400 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
402 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
403 (_initialize_arm_tdep): Don't set tm_print_insn.
405 2003-03-24 Adam Fedor <fedor@gnu.org>
407 * Makefile.in (YYOBJ): Add objc-exp.tab.o
408 * objc-lang.h: Add multiple inclusion protection.
409 (start_msglist, add_msglist, end_msglist): Additional declarations.
411 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
413 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
414 value was renamed to ARM_FLOAT_SOFT_FPA.
416 2003-03-23 Andrew Cagney <cagney@redhat.com>
418 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
419 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
420 * gdbarch.h, gdbarch.c: Regenerate.
421 * valops.c (hand_function_call): Update.
422 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
423 * frame.c (legacy_saved_regs_this_id): Update.
424 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
425 * dummy-frame.h: Update.
426 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
427 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
428 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
429 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
430 * config/m68k/tm-sun3.h: Update.
431 * blockframe.c (inside_main_func, frame_chain_valid): Update.
432 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
433 * x86-64-tdep.c (x86_64_init_abi): Update.
434 * vax-tdep.c (vax_gdbarch_init): Update.
435 * v850-tdep.c (v850_gdbarch_init): Update.
436 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
437 * sh-tdep.c (sh_gdbarch_init): Update.
438 * s390-tdep.c (s390_gdbarch_init): Update.
439 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
440 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
441 (frame_get_saved_regs): Update.
442 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
443 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
444 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
445 * mips-tdep.c (mips_gdbarch_init): Update.
446 * mcore-tdep.c (mcore_gdbarch_init): Update.
447 * m68k-tdep.c (m68k_gdbarch_init): Update.
448 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
449 * ia64-tdep.c (ia64_gdbarch_init): Update.
450 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
451 * i386-interix-tdep.c (i386_interix_init_abi): Update.
452 (i386_interix_back_one_frame): Update.
453 * hppa-tdep.c (hppa_gdbarch_init): Update.
454 (hppa_init_extra_frame_info): Update.
455 * h8300-tdep.c (h8300_gdbarch_init): Update.
456 * frv-tdep.c (frv_gdbarch_init): Update.
457 * cris-tdep.c (cris_gdbarch_init): Update.
458 * avr-tdep.c (avr_gdbarch_init): Update.
459 * arm-tdep.c (arm_gdbarch_init): Update.
460 * alpha-tdep.c (alpha_gdbarch_init): Update.
462 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
464 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
465 (arm_get_fp_model): Declare.
466 * arm-tdep.c (fp_model_strings): New string array.
467 (arm_fp_model, current_fp_model): New variables.
468 (arm_get_fp_model): New function.
469 (arm_set_fp): New function.
470 (set_fp_model_sfunc): New function.
471 (show_fp_model): New function.
472 (_initialize_arm_tdep): Add new command to set/show the FPU.
473 (arm_extract_return_value): Use arm_get_fp_model.
474 (arm_store_return_value): Likewise.
475 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
476 to initialize the floating-point data types.
477 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
480 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
482 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
483 the current setting of each value.
484 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
485 new_set and new_show. Use add_setshow_cmd_full and
486 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
487 commands and add new version as subcommands of "set/show arm".
489 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
491 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
492 (set_arm_command, show_arm_command): New functions.
493 (_initialize_arm_tdep): Add them.
494 (num_disassembly_options): Renamed from num_flavor_options.
495 (valid_disassembly_styles): Renamed from valid_flavors.
496 (disassembly_style): Renamed from disassembly_flavor.
497 (set_disassembly_style_sfunc): Renamed from
498 set_disassembly_flavor_sfunc.
499 (set_disassembly_style): Renamed from set_disassembly_flavor.
500 (arm_othernames): Updated.
501 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
502 command. Add "set/show arm disassembly" commands. Deprecate
503 "othernames" command.
505 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
507 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
508 (arm-tdep.o): Depend on elf_arm_h.
510 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
512 * Makefile.in (coff_internal_h): Define.
513 (arm-tdep.o): Update dependencies.
515 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
517 * arm-tdep.c (prologue_cache): Delete.
518 (check_prologue_cache, save_prologue_cache): Delete.
519 (arm_scan_prologue): Don't check or update the prologue_cache.
520 (arm_gdb_arch_init): Don't initialize it.
521 (_initialize_arm_tdep): Likewise.
523 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
525 * MAINTAINERS (tui): Maintainer of tui code.
527 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
529 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
530 (i386-cygwin-tdep.o): Add dependencies.
531 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
532 * i386-cygwin-tdep.c: New file.
533 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
534 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
536 2003-03-20 Andrew Cagney <cagney@redhat.com>
538 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
539 (handle_inferior_event): Remove code calling
540 DYNAMIC_TRAMPOLINE_NEXTPC.
542 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
543 already has a full path.
545 * main.c (gdb_main): Return 1.
546 (captured_main): Call error to report an invalid interpreter.
548 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
549 * alpha-osf1-tdep.c: Include "gdb_string.h".
551 2003-03-19 J. Brobecker <brobecker@gnat.com>
553 Continuing work to convert the hppa targets to multiarch partial.
555 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
556 method, now that hppa_push_dummy_frame has a conformant prototype.
557 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
558 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
559 for the switch to multiarch partial.
561 2003-03-19 Kevin Buettner <kevinb@redhat.com>
563 * mdebugread.c (parse_symbol): For stEnd, we're done counting
566 2003-03-18 Kevin Buettner <kevinb@redhat.com>
568 * mips-tdep.c (mips_register_name): Fix fencepost error involving
569 NUM_REGS bounds check.
571 2003-03-18 Kevin Buettner <kevinb@redhat.com>
573 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
574 * mips-tdep.c (gdb_assert.h): Include.
575 (mips_generic_reg_names, mips_processor_reg_names): Make static.
576 (mips_register_name): Handle integer registers explicitly. Add
578 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
579 (mips_lsi33k_reg_names): Don't list integer registers; they're
580 handled by mips_register_name() now.
581 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
582 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
583 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
584 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
585 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
587 2003-03-18 Andrew Cagney <cagney@redhat.com>
589 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
591 * gdbtypes.h (print_scalar_formatted): Update declaration.
592 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
594 2003-03-18 J. Brobecker <brobecker@gnat.com>
596 * infrun.c (observer.h): Add #include.
597 (normal_stop): Add call to observer_notify_normal_stop.
598 * Makefile.in (infrun.o): Add dependency on observer.h.
600 2003-03-18 J. Brobecker <brobecker@gnat.com>
602 Continuing work to convert the hppa targets to multiarch partial.
603 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
604 parameter. Reformat comment.
605 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
606 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
607 to match new profile.
609 2003-03-18 J. Brobecker <brobecker@gnat.com>
611 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
612 appear to be working in any case.
614 2003-03-18 J. Brobecker <brobecker@gnat.com>
616 * observer.c (observer_test_first_observer): New static variable.
617 (observer_test_second_observer): Likewise.
618 (observer_test_third_observer): Likewise.
619 (observer_test_first_notification_function): New static function.
620 (observer_test_second_notification_function): Likewise.
621 (observer_test_third_notification_function): Likewise.
623 2003-03-17 J. Brobecker <brobecker@gnat.com>
625 * hppa-tdep.c (gdb_assert.h): Add missing #include.
626 * somsolib.c (gdb_assert.h): Likewise.
627 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
628 (somsolib.o): Likewise.
630 2003-03-17 Andrew Cagney <cagney@redhat.com>
632 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
633 BFD. Simplify setting of di.endian.
635 2003-03-17 Andrew Cagney <cagney@redhat.com>
637 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
638 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
640 From Elena Zannoni <ezannoni@redhat.com>
641 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
642 vector and floating-point parameters.
643 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
645 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
647 2003-03-17 Fernando Nasser <fnasser@redhat.com>
649 * MAINTAINERS: Remove my name from several maintainership roles.
651 2003-03-17 Andrew Cagney <cagney@redhat.com>
653 Fix frame off-by-one bug.
654 * frame-unwind.h (frame_this_id_ftype): Replace
655 frame_unwind_id_ftype.
656 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
657 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
658 with "prev_register".
659 * frame-unwind.c (frame_unwind_find_by_pc): Return
660 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
662 * dummy-frame.c (cached_find_dummy_frame): Delete function.
663 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
664 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
665 (dummy_frame_unwind): Update.
666 * sentinel-frame.c (sentinel_frame_prev_register): Replace
667 sentinel_frame_register_unwind.
668 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
669 (sentinel_frame_unwinder): Update.
670 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
671 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
672 * frame.c (create_sentinel_frame): Update. Initialize
673 "prologue_cache" instead of "unwind_cache".
674 (frame_register_unwind): Call this frame's prev_register with the
675 next frame and this frame's prologue cache.
676 (get_prev_frame): Simplify. Always call prev frame's this_id with
677 this frame and prev frame's prologue cache. Document that this
678 call is shifted one to the left when compared to the
679 frame_register_unwind call.
680 (legacy_saved_regs_prev_register): Replace
681 frame_saved_regs_register_unwind.
682 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
683 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
684 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
685 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
686 (d10v_frame_unwind): Update.
687 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
688 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
689 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
690 "saved_regs" with "this_saved_regs".
692 2003-03-16 Andrew Cagney <cagney@redhat.com>
694 * frame.c (frame_pop): Don't call target_store_registers. Fix
695 problem reported by Mark Kettenis.
697 2003-03-16 Mark Kettenis <kettenis@gnu.org>
699 * i386-tdep.c (i386_register_type): Renamed from
700 i386_register_virtual_type. Adjust function signature.
701 (i386_gdbarch_init): Set register_type instead of
702 deprecated_max_register_raw_size,
703 deprecated_max_register_virtual_size and register_virtual_type.
705 2003-03-14 Andrew Cagney <cagney@redhat.com>
707 * frame.c (get_prev_frame): When a legacy frame, always call
708 legacy_get_prev_frame. Simplify unwind code using assumption that
710 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
711 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
712 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
714 2003-03-14 Andrew Cagney <cagney@redhat.com>
716 * frame.c (get_saved_register): Delete function.
717 * frame.h (get_saved_register): Delete declaration.
718 * xstormy16-tdep.c: Update comment.
719 * regcache.h: Update comments.
720 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
721 get_saved_register and extract_address, use
722 frame_read_unsigned_register.
723 (sparc_frame_saved_pc): Ditto.
724 (sparc_get_saved_register): Instead of get_saved_register, use
726 (sparc_pop_frame): Ditto.
727 * findvar.c: Update comments.
728 (value_of_register): Call frame_register instead of
730 (value_from_register): Ditto.
731 * config/sparc/tm-sparc.h: Update comment.
732 * breakpoint.c: Update comment.
734 2003-03-14 Andrew Cagney <cagney@redhat.com>
736 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
738 * gdbarch.h, gdbarch.c: Re-generate.
739 * frame.h: Update comments.
740 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
741 * x86-64-tdep.c (x86_64_init_abi): Update.
742 * sparc-tdep.c (sparc_gdbarch_init): Update.
743 * sh-tdep.c (sh_gdbarch_init): Update.
744 * mips-tdep.c (mips_gdbarch_init): Update.
745 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
746 * cris-tdep.c (cris_gdbarch_init): Update.
747 * ia64-tdep.c (ia64_gdbarch_init): Update.
748 * frame.c (frame_register): Update.
749 (get_saved_register): Update.
750 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
752 2003-03-13 Andrew Cagney <cagney@redhat.com>
754 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
755 * gdbarch.h, gdbarch.c: Regenerate.
756 * valops.c (hand_function_call): Update comment.
757 * stack.c (return_command): Update comment.
758 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
759 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
760 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
761 * x86-64-tdep.c (x86_64_init_abi): Update.
762 * vax-tdep.c (vax_gdbarch_init): Update.
763 * v850-tdep.c (v850_gdbarch_init): Update.
764 * sparc-tdep.c (sparc_gdbarch_init): Update.
765 * sh-tdep.c (sh_gdbarch_init): Update.
766 * s390-tdep.c (s390_gdbarch_init): Update.
767 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
768 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
769 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
770 * mips-tdep.c (mips_gdbarch_init): Update.
771 * mcore-tdep.c (mcore_gdbarch_init): Update.
772 * m68k-tdep.c (m68k_gdbarch_init): Update.
773 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
774 * ia64-tdep.c (ia64_gdbarch_init): Update.
775 * i386-tdep.c (i386_gdbarch_init): Update.
776 * hppa-tdep.c (hppa_gdbarch_init): Update.
777 * h8300-tdep.c (h8300_gdbarch_init): Update.
778 * frv-tdep.c (frv_gdbarch_init): Update.
779 * cris-tdep.c (cris_gdbarch_init): Update.
780 * avr-tdep.c (avr_gdbarch_init): Update.
781 * arm-tdep.c (arm_gdbarch_init): Update.
782 * alpha-tdep.c (alpha_gdbarch_init): Update.
784 2003-03-13 Andrew Cagney <cagney@redhat.com>
786 * frame.c (legacy_frame_p): New function.
787 (get_prev_frame): Use legacy_frame_p.
788 * frame.h (legacy_frame_p): Declare.
790 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
792 * MAINTAINERS (write after approval): Alphabetically
795 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
797 * MAINTAINERS (write after approval): Add myself.
799 2003-03-12 Andrew Cagney <cagney@redhat.com>
801 * frame.c (get_prev_frame): Rename the frame parameter to
803 (get_next_frame, legacy_get_prev_frame): Ditto.
805 2003-03-12 Andrew Cagney <cagney@redhat.com>
807 * frame.c (get_current_frame): Check target_has_registers before
808 checking target_has_stack.
809 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
810 instead of deprecated_selected_frame.
811 * findvar.c (value_of_register): Pass "frame", not
812 deprecated_selected_frame, to value_of_builtin_reg.
814 2003-03-12 Andrew Cagney <cagney@redhat.com>
816 * regcache.c (regcache_cooked_write_signed): New function.
817 (regcache_cooked_write_unsigned): New function.
818 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
819 (regcache_cooked_read_signed): Fix regnum in range assertion.
820 * regcache.h (regcache_cooked_write_signed): Declare.
821 (regcache_cooked_write_unsigned): Declare.
823 2003-03-12 Andrew Cagney <cagney@redhat.com>
825 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
826 * gdbarch.h, gdbarch.c: Re-generate.
827 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
828 * x86-64-tdep.h: Update.
829 * x86-64-tdep.c (x86_64_init_abi): Update.
830 * v850-tdep.c (v850_gdbarch_init): Update.
831 * sparc-tdep.c (sparc_gdbarch_init): Update.
832 * sh-tdep.c (sh_gdbarch_init): Update.
833 * s390-tdep.c (s390_gdbarch_init): Update.
834 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
835 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
836 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
837 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
838 * mips-tdep.c (mips_gdbarch_init): Update.
839 * mcore-tdep.c (mcore_gdbarch_init): Update.
840 * m68k-tdep.c (m68k_gdbarch_init): Update.
841 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
842 * ia64-tdep.c (ia64_gdbarch_init): Update.
843 * i386-tdep.c (i386_gdbarch_init): Update.
844 * i386-interix-tdep.c (i386_interix_init_abi): Update.
845 * hppa-tdep.c (hppa_gdbarch_init): Update.
846 * h8300-tdep.c (h8300_gdbarch_init): Update.
847 * frv-tdep.c (frv_gdbarch_init): Update.
848 * cris-tdep.c (cris_gdbarch_init): Update.
849 * avr-tdep.c (avr_gdbarch_init): Update.
850 * arm-tdep.c (arm_gdbarch_init): Update.
851 * alpha-tdep.c (alpha_gdbarch_init): Update.
852 * sh-tdep.c (sh_init_extra_frame_info): Update.
853 (sh64_init_extra_frame_info): Update.
854 * ns32knbsd-nat.c (frame_num_args): Update.
855 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
856 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
857 (xstormy16_frame_chain_valid): Update.
858 * vax-tdep.c (vax_saved_pc_after_call): Update.
859 * v850-tdep.c (v850_frame_chain): Update.
860 (v850_pop_frame): Update.
861 (v850_init_extra_frame_info): Update.
862 * sparc-tdep.c (setup_arbitrary_frame): Update.
863 * ns32k-tdep.c (umax_frame_num_args): Update.
864 * s390-tdep.c (s390_pop_frame_regular): Update.
865 * mn10300-tdep.c (mn10300_frame_chain): Update.
866 (mn10300_pop_frame_regular): Update.
867 (mn10300_init_extra_frame_info): Update.
868 * mips-tdep.c (mips_init_frame_pc_first): Update.
869 (mips_frame_chain): Update.
870 (mips_pop_frame): Update.
871 * mcore-tdep.c (mcore_frame_chain): Update.
872 (mcore_pop_frame): Update.
873 (mcore_init_extra_frame_info): Update.
874 * arch-utils.c (init_frame_pc_default): Update.
875 * m68k-tdep.c (isi_frame_num_args): Update.
876 (delta68_frame_num_args): Update.
877 (news_frame_num_args): Update.
878 * ia64-tdep.c (ia64_pop_frame_regular): Update.
879 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
880 (alpha_frame_chain): Update.
881 (alpha_pop_frame): Update.
882 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
883 (hppa_init_extra_frame_info): Update.
884 (hppa_frame_chain): Update.
885 (hppa_frame_chain_valid): Update.
886 * cris-tdep.c (cris_init_extra_frame_info): Update.
887 * avr-tdep.c (avr_init_extra_frame_info): Update.
888 * arm-tdep.c (arm_frame_chain_valid): Update.
889 (arm_init_extra_frame_info): Update.
890 (arm_pop_frame): Update.
891 * frame.c (frame_pc_unwind): Update.
892 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
893 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
894 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
895 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
896 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
897 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
899 2003-03-12 Andrew Cagney <cagney@redhat.com>
901 Eliminate the need for POP_FRAME.
902 * frame.c (do_frame_unwind_register): New function.
903 (frame_pop): When no POP_FRAME, pop the frame using register
904 unwind and a scratch regcache.
905 (frame_saved_regs_pop): Delete function.
906 (trad_frame_unwinder): Update.
907 * d10v-tdep.c (d10v_frame_pop): Delete function.
908 (d10v_frame_unwind): Update.
909 * sentinel-frame.c (sentinel_frame_pop): Delete function.
910 (sentinel_frame_unwinder): Update.
911 * dummy-frame.c (dummy_frame_pop): Delete function.
912 (dummy_frame_unwind): Update.
913 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
914 (struct frame_unwind): Update.
916 2003-03-11 Kevin Buettner <kevinb@redhat.com>
918 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
919 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
920 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
921 Do range checks on register number obtained from debugging info.
922 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
923 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
924 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
926 (do_fp_register_row): Fix typo which caused double type to be
927 used when attempting to unpack a float.
929 2003-03-11 J. Brobecker <brobecker@gnat.com>
931 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
933 2003-03-11 Andrew Cagney <cagney@redhat.com>
935 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
936 frame. Problem found by Corinna Vinschen.
938 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
940 * doublest.c (floatformat_from_length): Accept also
941 the real size of 'long double' type.
943 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
945 From Klee Dienes <kdienes@apple.com>:
946 * breakpoint.c (bpstat_copy): Copy the command lines as well
947 as the old value, to match what is freed in bpstat_clear.
949 2003-03-10 David Carlton <carlton@math.stanford.edu>
951 * minsyms.c (add_minsym_to_hash_table): Replace
952 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
953 (compare_minimal_symbols, compact_minimal_symbols)
954 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
955 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
956 of DEPRECATED_SYMBOL_MATCHES_NAME.
957 (lookup_minimal_symbol_solib_trampoline): Ditto.
959 2003-03-10 Andrew Cagney <cagney@redhat.com>
961 * regcache.h (regcache_cooked_read_ftype): Define.
962 (regcache_save, regcache_restore): Add a cooked_read parameter.
963 * regcache.c (regcache_save, regcache_restore): Update.
964 (do_cooked_read): New function.
965 (regcache_cpy): Pass do_cooked_read to regcache_save and
968 2003-03-10 Andrew Cagney <cagney@redhat.com>
970 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
971 * gdbarch.h, gdbarch.c: Re-generate.
972 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
973 * x86-64-tdep.h: Update.
974 * x86-64-tdep.c (x86_64_init_abi): Update.
975 * v850-tdep.c (v850_gdbarch_init): Update.
976 * sparc-tdep.c (sparc_gdbarch_init): Update.
977 * sh-tdep.c (sh_gdbarch_init): Update.
978 * s390-tdep.c (s390_gdbarch_init): Update.
979 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
980 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
981 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
982 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
983 * mips-tdep.c (mips_gdbarch_init): Update.
984 * mcore-tdep.c (mcore_gdbarch_init): Update.
985 * m68k-tdep.c (m68k_gdbarch_init): Update.
986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
987 * ia64-tdep.c (ia64_gdbarch_init): Update.
988 * i386-tdep.c (i386_gdbarch_init): Update.
989 * i386-interix-tdep.c (i386_interix_init_abi): Update.
990 * hppa-tdep.c (hppa_gdbarch_init): Update.
991 * h8300-tdep.c (h8300_gdbarch_init): Update.
992 * frv-tdep.c (frv_gdbarch_init): Update.
993 * cris-tdep.c (cris_gdbarch_init): Update.
994 * avr-tdep.c (avr_gdbarch_init): Update.
995 * arm-tdep.c (arm_gdbarch_init): Update.
996 * alpha-tdep.c (alpha_gdbarch_init): Update.
997 * sh-tdep.c (sh_init_extra_frame_info): Update.
998 (sh64_init_extra_frame_info): Update.
999 * ns32knbsd-nat.c (frame_num_args): Update.
1000 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1001 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1002 (xstormy16_frame_chain_valid): Update.
1003 * vax-tdep.c (vax_saved_pc_after_call): Update.
1004 * v850-tdep.c (v850_frame_chain): Update.
1005 (v850_pop_frame): Update.
1006 (v850_init_extra_frame_info): Update.
1007 * sparc-tdep.c (setup_arbitrary_frame): Update.
1008 * ns32k-tdep.c (umax_frame_num_args): Update.
1009 * s390-tdep.c (s390_pop_frame_regular): Update.
1010 * mn10300-tdep.c (mn10300_frame_chain): Update.
1011 (mn10300_pop_frame_regular): Update.
1012 (mn10300_init_extra_frame_info): Update.
1013 * mips-tdep.c (mips_init_frame_pc_first): Update.
1014 (mips_frame_chain): Update.
1015 (mips_pop_frame): Update.
1016 * mcore-tdep.c (mcore_frame_chain): Update.
1017 (mcore_pop_frame): Update.
1018 (mcore_init_extra_frame_info): Update.
1019 * arch-utils.c (init_frame_pc_default): Update.
1020 * m68k-tdep.c (isi_frame_num_args): Update.
1021 (delta68_frame_num_args): Update.
1022 (news_frame_num_args): Update.
1023 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1024 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1025 (alpha_frame_chain): Update.
1026 (alpha_pop_frame): Update.
1027 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1028 (hppa_init_extra_frame_info): Update.
1029 (hppa_frame_chain): Update.
1030 (hppa_frame_chain_valid): Update.
1031 * cris-tdep.c (cris_init_extra_frame_info): Update.
1032 * avr-tdep.c (avr_init_extra_frame_info): Update.
1033 * arm-tdep.c (arm_frame_chain_valid): Update.
1034 (arm_init_extra_frame_info): Update.
1035 (arm_pop_frame): Update.
1036 * frame.c (frame_pc_unwind): Update.
1037 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1038 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1039 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1040 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1041 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1042 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1044 2003-03-10 Andrew Cagney <cagney@redhat.com>
1046 * gdbarch.sh (gdbarch_unwind_pc): New method.
1047 * gdbarch.h, gdbarch.c: Regenerate.
1048 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1049 but use read_pc and FRAME_SAVED_PC as fall backs.
1050 (frame_saved_regs_pc_unwind): Delete function.
1051 (trad_frame_unwinder): Update.
1052 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1053 (struct frame_unwind): Update.
1054 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1055 (dummy_frame_unwind): Update.
1056 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1057 (sentinel_frame_unwinder): Update.
1058 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1059 (d10v_frame_unwind): Update.
1060 (d10v_unwind_pc): New function.
1061 (d10v_gdbarch_init): Set unwind_pc.
1063 2003-03-10 Andrew Cagney <cagney@redhat.com>
1065 * gdbarch.h: Re-generate.
1067 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1069 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1072 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1074 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1076 2003-03-08 Andrew Cagney <cagney@redhat.com>
1078 * cli-out.c: Update copyright.
1079 (cli_out_data): Define typedef. Use instead of ui_out_data.
1081 2003-03-08 Andrew Cagney <cagney@redhat.com>
1083 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1086 2003-03-07 Andrew Cagney <cagney@redhat.com>
1088 * gdbarch.sh: Don't generate two macro definitions when an
1089 undefined macro taking no arguments.
1090 * gdbarch.h: Regenerate.
1092 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1094 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1095 (x86_64_unwind_dummy_id): New functions.
1096 (x86_64_init_abi): Register these two new functions.
1098 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1100 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1101 (x86_64_skip_prologue): Move prologue detection to
1103 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1105 2003-03-05 Andrew Cagney <cagney@redhat.com>
1107 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1108 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1109 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1110 to use unwind_dummy_id when a dummy frame.
1111 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1113 * gdbarch.h, gdbarch.c: Regneerate.
1115 2003-03-05 Andrew Cagney <cagney@redhat.com>
1117 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1118 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1119 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1122 2003-03-05 Andrew Cagney <cagney@redhat.com>
1124 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1125 (struct d10v_unwind_cache): Delete field "frameless". Replace
1126 "next_addr" with "sp_offset". Add "r11_offset".
1127 (d10v_frame_unwind_cache): Update.
1128 (prologue_find_regs): Update. When "mv r11, sp", save the
1129 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1130 RN was saved in r11_offset.
1132 2003-03-05 Andrew Cagney <cagney@redhat.com>
1134 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1135 cached PC value in the next frame.
1137 2003-03-05 Andrew Cagney <cagney@redhat.com>
1139 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1140 "id_unwind_cache" with "id".
1141 (frame_id_unwind): Delete declaration.
1142 * frame.c (frame_id_unwind): Delete function.
1143 (get_prev_frame): Call the frame id unwind method directly. Store
1144 the returned next frame's ID value in NEXT_FRAME. Note that there
1145 is a problem with the wrong unwind ID being called with the wrong
1148 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1150 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1152 2003-03-05 James Ingham <jingham@apple.com>
1153 Daniel Jacobowitz <drow@mvista.com>
1155 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1156 (auto_cp_abi): New variable.
1157 (current_cp_abi, num_cp_abis): Make static.
1158 (CP_ABI_MAX): Define.
1159 (cp_abis): Turn into an array.
1160 (value_virtual_fn_field): Fix formatting.
1161 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1163 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1164 (list_cp_abis, _initialize_cp_abi): New functions.
1165 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1166 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1167 switch_to_cp_abi. Update prototype for register_cp_abi.
1168 * Makefile.in (cp-abi.o): Update dependencies.
1169 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1170 instead of switch_to_cp_abi.
1171 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1173 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1175 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1177 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1179 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1180 * dwarf2loc.c: Include "regcache.h".
1181 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1183 * Makefile.in (dwarf2loc.o): Update dependencies.
1185 2003-03-04 Theodore A. Roth <troth@openavr.org>
1187 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1188 number of io registers reported by remote target is not a multiple of
1191 2003-03-04 David Carlton <carlton@math.stanford.edu>
1193 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1194 (lookup_symbol_aux_psymtabs): Update call to
1195 lookup_partial_symbol.
1196 (lookup_transparent_type, find_main_psymtab)
1197 (make_symbol_overload_list): Ditto.
1199 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1201 * MAINTAINERS (Write after approval): Update my email address.
1203 2003-03-03 Andrew Cagney <cagney@redhat.com>
1205 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1206 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1207 predicate. Replace MAX_REGISTER_RAW_SIZE.
1208 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1209 MAX_REGISTER_VIRTUAL_SIZE.
1210 * regcache.c (legacy_max_register_raw_size): New function.
1211 (legacy_max_register_virtual_size): New function.
1212 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1213 (MAX_REGISTER_RAW_SIZE): Define.
1214 (legacy_max_register_raw_size): Declare.
1215 (legacy_max_register_virtual_size): Declare.
1216 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1217 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1218 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1219 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1220 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1221 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1222 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1223 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1224 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1225 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1226 * vax-tdep.c (vax_gdbarch_init): Update.
1227 * v850-tdep.c (v850_gdbarch_init): Update.
1228 * sparc-tdep.c (sparc_gdbarch_init): Update.
1229 * sh-tdep.c (sh_gdbarch_init): Update.
1230 * s390-tdep.c (s390_gdbarch_init): Update.
1231 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1232 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1233 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1234 * mips-tdep.c (mips_gdbarch_init): Update.
1235 * mcore-tdep.c (mcore_gdbarch_init): Update.
1236 * m68k-tdep.c (m68k_gdbarch_init): Update.
1237 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1238 * ia64-tdep.c (ia64_gdbarch_init): Update.
1239 * i386-tdep.c (i386_gdbarch_init): Update.
1240 * hppa-tdep.c (hppa_gdbarch_init): Update.
1241 * h8300-tdep.c (h8300_gdbarch_init): Update.
1242 * frv-tdep.c (frv_gdbarch_init): Update.
1243 * cris-tdep.c (cris_gdbarch_init): Update.
1244 * avr-tdep.c (avr_gdbarch_init): Update.
1245 * arm-tdep.c (arm_gdbarch_init): Update.
1246 * alpha-tdep.c (alpha_gdbarch_init): Update.
1247 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1248 max_register_raw_size or max_register_virtual_size.
1250 2003-03-03 David Carlton <carlton@math.stanford.edu>
1252 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1253 SYMBOL_MATCHES_NAME, add comment.
1254 (SYMBOL_MATCHES_NATURAL_NAME): New.
1255 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1256 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1257 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1258 * symtab.c (lookup_partial_symbol): Use
1259 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1261 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1262 SYMBOL_MATCHES_NAME.
1265 2003-03-03 David Carlton <carlton@math.stanford.edu>
1267 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1268 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1269 by regexp matching against SYMBOL_NATURAL_NAME.
1271 2003-03-03 David Carlton <carlton@math.stanford.edu>
1273 * linespec.c (find_method): Extract code into collect_methods.
1274 (collect_methods): New.
1276 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1278 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1281 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1282 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1284 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1286 * arch-utils.c (generic_register_byte): Fix to use the loop index
1287 and not regnum when summing the size of all registers up to regnum.
1289 2003-03-01 Andrew Cagney <cagney@redhat.com>
1291 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1292 FRAME_INIT_SAVED_REGS.
1293 * gdbarch.h, gdbarch.c: Regenerate.
1294 * stack.c (frame_info): Update.
1295 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1296 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1297 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1298 * ns32k-tdep.c (ns32k_pop_frame): Update.
1299 * mips-tdep.c (mips_pop_frame): Update.
1300 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1301 * ia64-tdep.c (ia64_frame_chain): Update.
1302 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1303 (ia64_frameless_function_invocation): Update.
1304 (ia64_init_extra_frame_info): Update.
1305 (ia64_pop_frame_regular): Update.
1306 * frame.h (struct frame_info): Update comment.
1307 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1308 * frame.c (frame_saved_regs_register_unwind): Update.
1309 (frame_saved_regs_register_unwind): Update.
1310 (deprecated_generic_get_saved_register): Update.
1311 * cris-tdep.c: Update comment.
1312 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1315 * x86-64-tdep.c (x86_64_init_abi): Update.
1316 * vax-tdep.c (vax_gdbarch_init): Update.
1317 * v850-tdep.c (v850_gdbarch_init): Update.
1318 * sparc-tdep.c (sparc_gdbarch_init): Update.
1319 * sh-tdep.c (sh_gdbarch_init): Update.
1320 * s390-tdep.c (s390_gdbarch_init): Update.
1321 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1322 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1323 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1324 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1325 * mips-tdep.c (mips_gdbarch_init): Update.
1326 * mcore-tdep.c (mcore_gdbarch_init): Update.
1327 * m68k-tdep.c (m68k_gdbarch_init): Update.
1328 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1329 * ia64-tdep.c (ia64_gdbarch_init): Update.
1330 * i386-tdep.c (i386_gdbarch_init): Update.
1331 * frv-tdep.c (frv_gdbarch_init): Update.
1332 * avr-tdep.c (avr_gdbarch_init): Update.
1333 * arm-tdep.c (arm_gdbarch_init): Update.
1334 * alpha-tdep.c (alpha_gdbarch_init): Update.
1336 2003-03-01 Andrew Cagney <cagney@redhat.com>
1338 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1339 option enum and switch. When no windows, set the interpreter to
1342 2003-03-01 Andrew Cagney <cagney@redhat.com>
1344 * main.c (captured_main): Replace magic option characters with an
1347 2003-03-01 Andrew Cagney <cagney@redhat.com>
1349 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1350 INIT_EXTRA_FRAME_INFO.
1351 * gdbarch.h, gdbarch.c: Regenerate.
1352 * arm-tdep.c: Update comments.
1353 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1354 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1355 * frame.h, avr-tdep.c: Ditto.
1356 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1357 (create_new_frame, legacy_get_prev_frame): Ditto.
1358 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1359 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1361 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1362 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1363 * v850-tdep.c (v850_gdbarch_init): Ditto.
1364 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1365 * sh-tdep.c (sh_gdbarch_init): Ditto.
1366 * s390-tdep.c (s390_gdbarch_init): Ditto.
1367 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1368 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1369 * mips-tdep.c (mips_gdbarch_init): Ditto.
1370 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1371 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1372 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1373 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1374 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1375 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1376 * frv-tdep.c (frv_gdbarch_init): Ditto.
1377 * cris-tdep.c (cris_gdbarch_init): Ditto.
1378 * avr-tdep.c (avr_gdbarch_init): Ditto.
1379 * arm-tdep.c (arm_gdbarch_init): Ditto.
1380 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1381 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1383 2003-03-01 Andrew Cagney <cagney@redhat.com>
1385 * gdbarch.sh (register_type): New function with predicate.
1386 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1387 * gdbarch.h, gdbarch.c: Re-generate.
1388 * arch-utils.c (generic_register_byte): Use generic_register_size.
1389 (generic_register_size): When available, use
1390 gdbarch_register_type.
1391 * regcache.c (init_regcache_descr): When available, initialize the
1392 register type array using gdbarch_register_type. If the
1393 architecture supplies gdbarch_register_type, do not use the legacy
1395 * d10v-tdep.c (d10v_register_type): Replace
1396 d10v_register_virtual_type.
1397 (d10v_gdbarch_init): Set register_type instead of
1398 register_virtual_type.
1400 2003-03-01 Andrew Cagney <cagney@redhat.com>
1402 * Makefile.in (ax-gdb.o): Update dependencies.
1403 * ax-gdb.c: Include "regcache.h".
1404 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1405 * findvar.c (value_of_register): Ditto.
1406 * infcmd.c (default_print_registers_info): Ditto.
1408 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1410 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1411 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1413 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1415 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1418 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1420 * Makefile.in (dwarf2loc.o): Update dependencies.
1421 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1422 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1423 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1424 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1425 (locexpr_tracepoint_var_ref): New function.
1426 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1428 2003-02-28 Andrew Cagney <cagney@redhat.com>
1430 * regcache.c (register_size): New function.
1431 * regcache.h (register_size): Declare
1432 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1433 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1435 2003-02-28 David Carlton <carlton@math.stanford.edu>
1437 * linespec.c (decode_compound): Extract code into find_method.
1440 2003-02-28 J. Brobecker <brobecker@gnat.com>
1442 * Makefile.in: Add rules to build and link in observer.o.
1444 2003-02-27 J. Brobecker <brobecker@gnat.com>
1446 * observer.c: Minor comments edits.
1448 2003-02-27 J. Brobecker <brobecker@gnat.com>
1450 * observer.h, observer.c: New file.
1452 2003-02-27 Andrew Cagney <cagney@redhat.com>
1454 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1456 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1458 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1459 (M6812_OP_STS_EXT): Likewise.
1460 (m6811_prologue): Use the above to recognize prologue.
1461 (m6812_prologue): Likewise.
1463 2003-02-27 David Carlton <carlton@math.stanford.edu>
1465 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1467 (compare_psymbols): Ditto.
1468 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1470 2003-02-27 Michael Snyder <msnyder@redhat.com>
1472 * f-lang.c (build_fortran_types): New function.
1473 (_initialize_f_language): Gdbarch-register built-in fortran types.
1474 * doublest.c (extract_floating): Fix warning text.
1476 2003-02-27 Andrew Cagney <cagney@redhat.com>
1478 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1479 predicate. Replaces PUSH_DUMMY_FRAME.
1480 * gdbarch.h, gdbarch.c: Regnerate.
1481 * valops.c (hand_function_call): Update. Call
1482 generic_push_dummy_frame directly.
1483 * vax-tdep.c (vax_gdbarch_init): Update.
1484 * sparc-tdep.c (sparc_gdbarch_init): Update.
1485 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1486 * m68k-tdep.c (m68k_gdbarch_init): Update.
1487 * hppa-tdep.c (hppa_gdbarch_init): Update.
1488 * alpha-tdep.c (alpha_gdbarch_init): Update.
1489 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1490 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1491 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1492 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1493 push_dummy_frame to generic_push_dummy_frame.
1494 * v850-tdep.c (v850_gdbarch_init): Ditto.
1495 * sh-tdep.c (sh_gdbarch_init): Ditto.
1496 * s390-tdep.c (s390_gdbarch_init): Ditto.
1497 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1498 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1499 * mips-tdep.c (mips_gdbarch_init): Ditto.
1500 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1503 * i386-tdep.c (i386_gdbarch_init): Ditto.
1504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1505 * frv-tdep.c (frv_gdbarch_init): Ditto.
1506 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1507 * cris-tdep.c (cris_gdbarch_init): Ditto.
1508 * avr-tdep.c (avr_gdbarch_init): Ditto.
1509 * arm-tdep.c (arm_gdbarch_init): Ditto.
1511 2003-02-26 Kevin Buettner <kevinb@redhat.com>
1513 * mips-tdep.c (show_mips_abi): New function.
1514 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1515 command ``show mips abi''.
1517 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1519 From Elena Zannoni <ezannoni@redhat.com>
1520 * dbxread.c (process_one_symbol): Only record line 0 if one or
1521 more sline entries have been seen for the function.
1523 2003-02-26 Michael Chastain <mec@shout.net>
1525 * configure: Regenerate with autoconf 000227.
1527 2003-02-26 Michael Chastain <mec@shout.net>
1530 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1531 for old libc5/glibc.
1532 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1534 2003-02-26 Kris Warkentin <kewarken@qnx.com>
1536 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1537 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1539 2003-02-26 Michael Chastain <mec@shout.net>
1541 * configure.in: New variable HAVE_UINTPTR_T.
1542 * configure, config.in: Regenerated.
1544 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
1547 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1549 2003-02-25 Andrew Cagney <cagney@redhat.com>
1551 * frame.c (get_prev_frame): Add comment on check for
1552 inside_entry_func. Only check for inside_entry_file when not a
1553 dummy and not a sentinel. Check that the new frame is not inner
1556 2003-02-25 Andrew Cagney <cagney@redhat.com>
1558 * frame.c (frame_debug): New variable.
1559 (_initialize_frame): Add "set/show debug frame" command.
1560 (get_prev_frame): When frame_debug, print reason why unwind
1563 2003-02-25 Michael Chastain <mec@shout.net>
1565 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1566 to avoid uintptr_t definition problems.
1568 2003-02-25 David Carlton <carlton@math.stanford.edu>
1570 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1571 (SYMBOL_LINKAGE_NAME): Ditto.
1572 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1573 SYMBOL_LINKAGE_NAME.
1574 (struct general_symbol_info): Expand comment.
1575 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1576 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1577 (SYMBOL_MATCHES_REGEXP): Ditto.
1578 * symtab.c (symbol_natural_name): New function.
1579 * objfiles.h: Replace all uses of SYMBOL_NAME by
1580 DEPRECATED_SYMBOL_NAME.
1581 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1582 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1583 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1584 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1585 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1586 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1587 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1588 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1589 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1590 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1592 * ada-exp.y: Update copyright.
1593 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1594 * cp-valprint.c: Ditto.
1596 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1598 * infptrace.c (detach): Do not flag error if ptrace detach fails
1599 and errno is set to ESRCH.
1601 2003-02-24 Andrew Cagney <cagney@redhat.com>
1603 * infptrace.c (udot_info): Change type of udot_off to long. Use
1604 paddr when printing udot_off's value.
1606 2003-02-24 David Carlton <carlton@math.stanford.edu>
1608 * symtab.c (make_symbol_overload_list): Only read in partial
1609 symtabs containing a matching partial symbol.
1611 2003-02-24 David Carlton <carlton@math.stanford.edu>
1613 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1614 do the comparison, not strcmp.
1615 * symfile.c (compare_psymbols): Ditto.
1616 * defs.h: Declare strcmp_iw_ordered.
1617 * utils.c (strcmp_iw_ordered): New function.
1619 2003-02-24 Jim Blandy <jimb@redhat.com>
1621 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1622 support, shared libs): Remove my name from here, to better reflect
1625 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1627 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1628 (target_ops): Add to_have_continuable_watchpoint.
1629 * target.c (update_current_target): Add INHERIT line for
1630 to_have_continuable_watchpoint.
1631 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1632 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1633 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1634 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1636 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
1638 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1641 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1643 * solib.c (solib_open): Call target defined search function after
1644 failing with solib-search-path.
1645 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1646 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1648 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1650 * MAINTAINERS: Add myself to Write After section.
1652 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1654 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1656 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1658 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1659 (m68hc11_add_reggroups): New function.
1660 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1661 (m68hc11_gdbarch_init): Install the reggroups.
1662 (_initialize_m68hc11_tdep): Initialize them.
1664 2003-02-21 James E Wilson <wilson@tuliptree.org>
1666 * MAINTAINERS: Update my email address.
1668 2003-02-21 David Carlton <carlton@math.stanford.edu>
1670 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1672 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
1674 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1675 * symtab.h: Add opaque declarations of struct axs_value and
1677 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1678 (struct location_funcs): New type.
1679 (struct symbol): Add "loc" to aux_value.
1680 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1681 * dwarf2read.c: Include "dwarf2expr.h".
1682 (dwarf2_symbol_mark_computed): New function.
1683 (read_func_scope): Use it.
1684 (var_decode_location): New function.
1685 (new_symbol): Use it.
1686 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1688 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1689 (dwarf2expr_h, dwarf2loc_h): New variables.
1690 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1691 (dwarf2expr.o, dwarf2loc.o): New rules.
1692 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1693 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1695 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1696 * m2-exp.y (yylex): Likewise.
1697 * printcmd.c (address_info, print_frame_args): Likewise.
1698 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1699 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1700 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1701 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1702 * symtab.c (lookup_block_symbol): Likewise.
1704 2003-02-20 Adam Fedor <fedor@gnu.org>
1706 * symtab.h: Remove objc_specific struct
1707 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1708 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1709 Have language_objc use cplus_specific struct.
1711 2003-02-20 Tom Tromey <tromey@redhat.com>
1713 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1714 TYPE_NAME, when printing a String value. PR java/1075.
1716 2003-02-20 Adam Fedor <fedor@gnu.org>
1718 * objc-lang.h (find_methods): Remove declaration.
1719 * objc-lang.c (find_methods): Make static.
1721 2003-02-20 Christopher Faylor <cgf@redhat.com>
1723 * win32-nat.c (get_image_name): Check return value from
1725 (child_xfer_memory): Ditto.
1727 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1729 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1730 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1731 '${exec_prefix}' (in addition to the expansion thereof) as
1733 * configure: Rebuilt.
1735 2003-02-20 David Carlton <carlton@math.stanford.edu>
1737 * symtab.c (search_symbols): Revert the search_symbols part of my
1738 2002-12-23 patch. Add comment.
1740 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1742 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1743 * dbxread.c (elfstab_build_psymtabs): Don't call
1744 install_minimal_symbols.
1745 (stabsect_build_psymtabs): Likewise.
1746 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1748 * somread.c (som_symfile_read): Call install_minimal_symbols
1749 and do_cleanups earlier.
1750 * nlmread.c (nlm_symfile_read): Likewise.
1751 * mdebugread.c (elfmdebug_build_psymtabs): Call
1752 install_minimal_symbols and make appropriate cleanups.
1754 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1756 * solib.c (reload_shared_libraries): New function.
1757 (_initialize_solib): Add callbacks for ``set solib-search-path''
1758 and ``set solib-absolute-prefix''.
1760 2003-02-20 David Carlton <carlton@math.stanford.edu>
1762 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1764 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1765 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1766 * ada-typeprint.c (ada_typedef_print): Ditto.
1767 * ax-gdb.c (gen_var_ref): Ditto.
1768 * breakpoint.c (print_one_breakpoint): Ditto.
1769 * buildsym.c (finish_block): Ditto.
1770 * c-valprint.c (c_val_print): Ditto.
1771 * expprint.c (print_subexp): Ditto.
1772 * findvar.c (locate_var_value): Ditto.
1773 * infcmd.c (jump_command): Ditto.
1774 * linespec.c (decode_line_2, decode_compound): Ditto.
1775 * maint.c (maintenance_translate_address): Ditto.
1776 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1777 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1779 * p-valprint.c (pascal_val_print): Ditto.
1780 * stabsread.c (define_symbol): Ditto.
1781 * stack.c (print_frame, frame_info, print_block_frame_locals)
1782 (print_frame_arg_vars, return_command): Ditto.
1783 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1784 * symmisc.c (print_symbol): Ditto.
1785 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1786 (compare_search_syms, print_symbol_info, print_msymbol_info)
1787 (rbreak_command): Ditto.
1788 * tracepoint.c (tracepoints_info): Ditto.
1789 * typeprint.c (typedef_print): Ditto.
1790 * valops.c (value_of_variable, hand_function_call): Ditto.
1791 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1792 * ada-typeprint.c: Update Copyright.
1793 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1794 * tracepoint.c, cli/cli-cmds.c: Ditto.
1796 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1798 * frame.c (generic_unwind_get_saved_register): Make non-static.
1799 * frame.h (generic_unwind_get_saved_register): Declare.
1800 * mips-tdep.c (read_next_frame_reg): Fetch register from
1801 current regcache when frame is NULL.
1802 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1804 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1805 instead of frame_register_unwind().
1807 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1809 * remote-sim.c (gdbsim_insert_breakpoint)
1810 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1813 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1815 * remote.c (_initialize_remote): Add commands "set/show remote
1816 hardware-watchpoint-limit" and "set/show remote
1817 hardware-breakpoint-limit".
1818 (remote_hw_watchpoint_limit): Initialize to -1.
1819 (remote_hw_breakpoint_limit): Ditto.
1820 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1822 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1824 * coff-pe-read.c: New file - support reading of minimal symbols from a
1825 portable executable using the export table.
1826 * coff-pe-read.h: New file.
1827 * coffread.c: Include coff-pe-read.h.
1828 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1829 debugging symbols found.
1830 * Makefile.in (SFILES): Add coff-pe-read.o.
1831 (coff_pe_read_h): Define.
1832 (COMMON_OBS): Add coff-pe-read.o.
1833 (coffread.o): Add coff_pe_read_h dependency.
1834 (coff-pe-read.o): New target.
1836 2003-02-19 David Carlton <carlton@math.stanford.edu>
1838 * Makefile.in (SFILES): Add block.c.
1840 (COMMON_OBS): Add block.o.
1842 (x86-64-tdep.o): Add $(block_h).
1843 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1844 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1845 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1846 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1847 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1848 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1849 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1850 * value.h: Add opaque declaration for struct block.
1851 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1852 * ada-lang.h: Ditto.
1853 * x86-64-tdep.c: #include "block.h"
1854 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1855 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1856 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1857 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1858 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1859 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1860 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1861 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1862 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1863 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1864 * symtab.c (block_function): Ditto.
1865 (contained_in): Ditto.
1866 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1867 block.h. Add opaque declaration for struct block.
1868 * symtab.h: Move block_function and contained_in declarations to
1869 block.h. Add opaque declarations for struct block, struct
1871 (struct block): Move to block.h.
1872 (struct blockvector): Ditto.
1873 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1874 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1875 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1876 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1877 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1879 * block.c: New file.
1880 * block.h: New file.
1882 2003-02-19 Theodore A. Roth <troth@openavr.org>
1884 * avr-tdep.c (avr_extract_return_value): Remove function.
1885 (avr_store_return_value): Remove function.
1886 (avr_extract_struct_value_address): Remove function.
1887 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1889 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1891 * rs6000-tdep.c: Include "gdb_assert.h".
1892 (registers_e500): Add "acc" and "spefscr".
1893 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1894 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1895 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1897 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1899 2003-02-18 Keith Seitz <keiths@redhat.com>
1901 * Makefile.in: Add gdbtk-interps.c.
1903 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1905 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1906 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1908 2003-02-18 Andrew Cagney <cagney@redhat.com>
1910 * symtab.h (struct objfile): Add opaque declaration.
1912 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
1914 From Jim Ingham <jingham@apple.com>:
1915 * dbxread.c (process_one_symbol): Use last_function_start rather
1916 than function_start_offset to find the real beginning of the
1917 current function. The latter is just the text section offset on
1918 some systems, the former is always the real function start.
1920 2003-02-17 Andrew Cagney <cagney@redhat.com>
1922 * configure.in: Revert ${target} != ${host}.
1924 2003-02-17 Andrew Cagney <ac131313@redhat.com>
1926 * configure.in (Makefile): Use the test ${target} != ${host},
1927 instead of the absence of the "nm.h" file, to determine of the
1928 configuration non-native.
1929 * configure: Regenerate.
1931 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
1933 From Brian Ford <ford@vss.fsi.com>
1935 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1936 conditionalize tui_active test.
1937 (lookup_cmd_1): Ditto.
1939 2003-02-14 Mark Kettenis <kettenis@gnu.org>
1941 * configure.in: Add check for _etext.
1942 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1944 * config.in, configure: regenerated.
1946 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
1948 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1950 2003-02-14 Andrew Cagney <ac131313@redhat.com>
1952 * main.c (tui_version): Delete variable.
1953 (captured_main): When --tui, set interpreter_p to "tui" instead of
1954 enabling tui_version.
1955 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1957 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1958 * cli/cli-cmds.c (disassemble_command): Ditto.
1959 * defs.h (tui_version): Delete declaration.
1960 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1961 (tui-interp.o): Add rules.
1962 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1964 2003-02-14 Christopher Faylor <cgf@redhat.com>
1966 * win32-nat.c (register_loaded_dll): Correctly set address range for
1969 2003-02-12 Jason Molenda (jmolenda@apple.com)
1971 * symmisc.c (print_objfile_statistics): Include information about
1972 the number of psymtabs and symtabs in each object file.
1974 2003-02-13 Keith R Seitz <keiths@redhat.com>
1976 * main.h (struct captured_main_args): Add interpreter_p.
1977 * main.c (captured_main): Initialize interpreter_p from context.
1978 * gdb.c (main): Set interpreter_p argument.
1979 * Makefile.in (gdb.o): Add dependency for interps.h.
1981 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1983 * event-top.c (cli_command_loop): Delete declaration.
1984 (_initialize_event_loop): Delete function setting event_loop_hook.
1985 * event-top.h (cli_command_loop): Declare. Update copyright.
1986 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1987 * interps.c (current_interp_command_loop): When event_loop_p, call
1990 2003-02-12 Andrew Cagney <ac131313@redhat.com>
1992 * interps.h (interp_command_loop_ftype): Change return type to
1995 2003-02-12 Michal Ludvig <mludvig@suse.cz>
1997 * x86-64-tdep.c (x86_64_extract_return_value)
1998 (x86_64_store_return_value): Use regcache instead of regbuf.
1999 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2000 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2002 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2004 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2005 * aclocal.m4: Regenerate.
2006 * configure: Regenerate.
2008 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2009 TCL_LD_SEARCH_FLAGS.
2011 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2013 * dwarf2cfi.c: Reindented.
2015 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2017 * interps.c (clear_interpreter_hooks): Convert function definition
2020 2003-02-07 David Carlton <carlton@math.stanford.edu>
2022 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2024 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2026 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2027 (struct type): ...to here.
2028 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2030 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2031 (replace_type): Set length on all type variants for a given type.
2033 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2035 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2037 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2039 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2041 * Makefile.in (symm-nat.o): Update dependencies.
2042 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2043 (lynx-nat.o, ia64-linux-nat.): Ditto.
2044 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2045 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2046 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2048 * Makefile.in (inflow_h): Define.
2049 (procfs.o, inflow.o, procfs.o): Update dependencies.
2050 * inftarg.c (child_stop): Delete extern declaration of
2051 inferior_process_group. Include "inflow.h".
2052 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2053 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2054 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2055 (our_process_group, inferior_process_group): Extern declarations.
2057 * procfs.c: Include "gdb_assert.h".
2059 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2060 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2061 * jv-typeprint.c (java_type_print_base): Ditto.
2062 * typeprint.c (typedef_print): Eliminate STREQ.
2063 * cli/cli-script.c (define_command, define_command): Ditto.
2064 * main.c (captured_main): Ditto.
2065 * values.c (lookup_internalvar): Ditto.
2066 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2067 within `if' conditional.
2068 * linespec.c (decode_line_2): Ditto.
2069 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2070 (bfd_openw_with_cleanup): Ditto.
2072 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2074 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2075 legacy_extract_return_value and store_return_value to
2076 legacy_return_value.
2078 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2080 * win32-nat.c (get_relocated_section_addrs): New function. Find
2081 section load addresses for symbol handling in relocated DLLs.
2082 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2084 2003-02-05 Fred Fish <fnf@intrinsity.com>
2086 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2088 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2090 (angel_RDI_info): Ditto.
2091 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2093 (threads_continue_all_with_signals): Ditto.
2095 2003-02-05 Jim Ingham <jingham@apple.com>
2096 Keith Seitz <keiths@redhat.com>
2097 Elena Zannoni <ezannoni@redhat.com>
2098 Andrew Cagney <ac131313@redhat.com>
2100 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2101 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2102 (SUBDIR_MI_OBS): Add "mi-interp.o".
2103 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2104 (SFILES): Add "interps.c".
2105 (COMMON_OBS): Add "interps.o".
2106 (interps_h, mi_main_h): Define.
2107 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2108 (mi-main.o, main.o, event-top.o): Update dependencies.
2109 * cli/cli-interp.c: New file.
2110 * interps.h, interps.c: New files.
2111 * top.c: (gdb_init): Don't install the default interpreter, handed
2113 * main.c: Include "interps.h".
2114 (interpreter_p): Note that it should malloc'ed.
2115 (captured_command_loop): Call current_interp_command_loop.
2116 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2117 xfree and xstrdup when updating interpreter_p. Install the
2118 default interpreter. Add hack to stop mi1's copyright notice
2120 * event-top.h (gdb_setup_readline): Declare.
2121 (gdb_disable_readline): Declare.
2122 * event-top.c: Include "interps.h".
2123 (display_gdb_prompt): Call current_interp_display_prompt_p.
2124 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2125 gdb_stdlog, and gdb_stdtarg.
2126 (_initialize_event_loop): Don't call gdb_setup_readline.
2127 * cli-out.c (cli_out_set_stream): New function.
2128 * cli-out.h (cli_out_set_stream): Declare.
2130 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2132 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2133 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2134 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2135 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2136 config/i386/i386v42mp.mt: Removed.
2138 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2140 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2143 2003-02-05 Michael Chastain <mec@shout.net>
2145 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2146 2.12.1 and earlier versions.
2148 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2150 Remove orphaned hosts, targets and files.
2151 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2152 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2153 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2154 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2155 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2156 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2157 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2158 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2159 * config/sparc/tm-sp64sim.h: Delete.
2160 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2162 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2163 mips*-dec-mach3* targets.
2165 2003-02-04 Michael Chastain <mec@shout.net>
2167 * NEWS: Fix typo: sepcifying -> specifying.
2169 2003-02-04 Michael Chastain <mec@shout.net>
2171 * dwarfread.c: Add documentation on the state of dwarf-1,
2172 looking towards obsoletion.
2174 2003-02-03 Michael Chastain <mec@shout.net>
2176 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2177 gdb/testsuite/gdb.c++/pr-1023.exp.
2179 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2181 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2182 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2184 * utils.c (init_page_info): Delete reference to MPW in comments.
2185 * main.c (captured_main): Delete #ifdef MPW.
2187 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2189 * NEWS: Note that the m32r-*-elf* is obsolete.
2190 * monitor.c (monitor_expect): Obsolete reference to m32r.
2191 * configure.tgt: Mark m32r-*-elf* as obsolete.
2192 * MAINTAINERS: Mark m32k as obsolete.
2193 * m32r-rom.c: Obsolete file.
2194 * config/m32r/m32r.mt: Obsolete file.
2195 * config/m32r/tm-m32r.h: Obsolete file.
2196 * m32r-stub.c: Obsolete file.
2197 * m32r-tdep.c: Obsolete file.
2199 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2201 * NEWS: Mention that the z8k-zilog-none is obsolete.
2202 * MAINTAINERS: Mark z8k as obsolete.
2203 * configure.tgt: Obsolete the z8k-*-coff* target.
2204 * config/z8k/z8k.mt: Obsolete file.
2205 * config/z8k/tm-z8k.h: Obsolete file.
2206 * z8k-tdep.c: Obsolete file.
2208 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2210 * NEWS: Mention that the mn10200-elf is obsolete.
2211 * configure.tgt: Obsolete mn10200-*-* target.
2212 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2213 mention that the mn10200 is obsolete.
2214 * breakpoint.h: Ditto.
2215 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2216 * config/mn10200/mn10200.mt: Obsolete file.
2217 * config/mn10200/tm-mn10200.h: Obsolete file.
2218 * mn10200-tdep.c: Obsolete file.
2220 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2222 * MAINTAINERS: Mark h8500 as obsolete.
2223 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2224 * findvar.c (value_from_register): Ditto.
2225 * h8500-tdep.c: Mark file as obsolete.
2226 * config/h8500/h8500.mt: Ditto.
2227 * config/h8500/tm-h8500.h: Ditto.
2228 * NEWS: Mention that h8500 is obsolete.
2230 2003-02-04 David Carlton <carlton@math.stanford.edu>
2232 * objfiles.c (allocate_objfile): Always set name. Add comment at
2234 * jv-lang.c (get_dynamics_objfile): Add comment.
2236 2003-02-04 David Carlton <carlton@math.stanford.edu>
2238 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2239 * printcmd.c (build_address_symbolic): Replace uses of
2240 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2241 SYMBOL_NAME, and asm_demangle.
2244 2003-02-04 David Carlton <carlton@math.stanford.edu>
2246 * linespec.c (decode_compound): Extract code into
2248 (lookup_prefix_sym): New function.
2250 2003-02-04 David Carlton <carlton@math.stanford.edu>
2252 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2253 FLOAT_COERCION_BADNESS.
2254 * gdbtypes.c (rank_one_type): Replace all uses of
2255 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2257 2003-02-04 Jim Blandy <jimb@redhat.com>
2259 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2260 section, let dwarf_macinfo_section point to it, not
2263 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2265 Pointed out by Anton Blanchard <anton@samba.org>.
2266 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2267 (ppc_linux_at_sigtramp_return_path): Use it.
2269 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2271 * defs.h (streq): Add prototype.
2272 * utils.c (streq): New function.
2274 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2275 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2276 * mdebugread.c (new_symbol): Likewise.
2277 * stabsread.c (define_symbol): Likewise.
2278 * coffread.c (process_coff_symbol): Likewise.
2279 * dwarfread.c (new_symbol): Likewise.
2281 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2282 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2284 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2285 SYMBOL_INIT_DEMANGLED_NAME.
2286 * objfiles.c: Include "hashtab.h".
2287 (allocate_objfile): Call htab_set_functions_ex for the
2288 demangled_names_hash.
2289 (free_objfile): Call htab_delete for the demangled_names_hash.
2290 * objfiles.h (struct htab): Add declaration.
2291 (struct objfile): Add demangled_names_hash.
2292 * symfile.c: Include "hashtab.h".
2293 (reread_symbols): Call htab_delete for the demangled_names_hash.
2294 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2295 SYMBOL_NAME in the bcache.
2296 * symtab.c: Include "hashtab.h". Update comments.
2297 (create_demangled_names_hash, symbol_set_names): New functions.
2298 (symbol_find_demangled_name): New function, broken out from
2299 symbol_init_demangled_names.
2300 (symbol_init_demangled_names): Use it.
2301 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2302 (SYMBOL_SET_NAMES): New macro.
2303 (symbol_set_names): Add prototype.
2305 2003-02-03 Jim Blandy <jimb@redhat.com>
2307 Use a single, consistent representation for an empty minimal
2308 symbol table in an objfile.
2309 * objfiles.c (terminate_minimal_symbol_table): New function.
2310 (allocate_objfile): Call it.
2311 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2312 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2314 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2315 objfile has minimal symbols, compare minimal_symbol_count to zero,
2316 instead of comparing msymbols with NULL.
2317 * objfiles.c (have_minimal_symbols): Same.
2318 * solib-sunos.c (solib_add_common_symbols): Call
2319 terminate_minimal_symbol_table.
2320 * symfile.c (reread_symbols): Same.
2322 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2324 * s390-tdep.c (s390_address_class_type_flags)
2325 (s390_address_class_type_flags_to_name)
2326 (s390_address_class_name_to_type_flags): New functions.
2327 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2328 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2330 2003-02-03 Michael Snyder <msnyder@redhat.com>
2332 * arm-tdep.c: Fix spell-o in comment.
2334 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2336 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2337 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2338 error messages to contain BFD filename.
2340 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2342 Fix PR gdb/742 gdb/743 gdb/877
2343 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2344 (do_mixed_source_and_assembly): Use
2345 make_cleanup_ui_out_tuple_begin_end and
2346 make_cleanup_ui_out_tuple_begin_end.
2347 (do_mixed_source_and_assembly): Ditto.
2348 * thread.c (do_captured_list_thread_ids): Ditto.
2349 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2350 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2351 ui_out_tuple_end): Delete prototypes.
2352 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2353 ui_out_list_end, ui_out_tuple_end): Delete.
2355 From Kevin Buettner <kevinb@redhat.com>:
2356 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2357 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2358 (do_cleanup_table_end): New functions.
2359 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2360 Use cleanups to invoke_ui_out_tuple_end().
2361 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2362 * cli/cli-setshow.c (cmd_show_list): Use
2363 make_cleanup_ui_out_tuple_begin_end.
2365 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2367 * frame.c (frame_unwind_register): New function.
2368 (frame_unwind_unsigned_register): Use.
2369 (frame_unwind_signed_register): Use.
2370 (frame_read_register): New function.
2371 * frame.h (frame_unwind_register): Declare.
2372 (frame_read_register): Declare.
2374 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2375 and frame_unwind_register instead of read_memory, write_register
2376 and deprecated_write_register_bytes.
2378 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2380 * frame.h: Note that namelen can be negative.
2381 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2384 * NEWS: Mention that the d10v's `regs' command is deprecated.
2385 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2386 (d10v_print_registers_info): New function.
2387 (show_regs): Call d10v_print_registers_info.
2388 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2390 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2392 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2393 lost in the previous patch.
2395 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2397 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2398 * stack.c (print_frame_info_base): Output complete FRAME tuple
2399 for synthesized frames.
2401 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2403 * mips-nat.c (zerobuf): Delete.
2404 (fetch_inferior_registers): Alloc local zerobuf.
2405 (fetch_core_registers): Alloc local zerobuf.
2406 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2407 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2408 * thread-db.c (thread_db_store_registers): Ditto.
2409 * sh-tdep.c (sh_do_register): Ditto.
2410 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2411 * remote-sim.c (gdbsim_store_register): Ditto.
2412 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2413 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2414 * monitor.c (monitor_supply_register): Ditto.
2415 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2416 * mips-nat.c (fetch_inferior_registers): Ditto.
2417 * m68klinux-nat.c (fetch_register): Ditto.
2418 * lynx-nat.c (fetch_inferior_registers): Ditto.
2419 (fetch_inferior_registers): Ditto.
2420 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2421 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2422 (hpux_thread_store_registers): Ditto.
2423 * hppah-nat.c (fetch_register): Ditto.
2424 * hppab-nat.c (fetch_register): Ditto.
2425 * hppa-tdep.c (pa_register_look_aside): Ditto.
2426 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2427 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2429 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2431 * gdbarch.sh: Explictly specify all method levels. When a
2432 variable with an empty level, provide a non-multi-arch default.
2433 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2434 * gdbarch.h: Re-generate.
2435 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2436 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2438 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2440 * defs.h (host_pointer_to_address): Delete declaration.
2441 (address_to_host_pointer): Delete declaration.
2442 * utils.c (host_pointer_to_address): Delete function.
2443 (address_to_host_pointer): Delete function.
2444 * procfs.c (procfs_address_to_host_pointer): New function.
2445 * procfs.c (proc_set_watchpoint): Use.
2446 (procfs_can_use_hw_breakpoint): Update comments.
2447 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2448 (som_solib_add): Use.
2449 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2450 * hppa-tdep.c (unwind_command): Use.
2452 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2454 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2457 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2458 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2459 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2460 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2461 (define_symbol): Update.
2462 * symfile.c (generic_load): Remove references to nindy.
2463 * symtab.c: Remove references to nindy.
2465 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2467 * infcmd.c (print_float_info): Delete code conditional on
2469 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2470 * config/m68k/nm-apollo68b.h: Ditto.
2471 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2472 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2473 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2475 2003-02-01 Mark Kettenis <kettenis@gnu.org>
2477 * config/i386/tm-i386os9k.h: Removed.
2479 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2480 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2481 they're identical to i[3456]86-*-sysv* now.
2482 * config/i386/i386v32.mh: Removed.
2483 * config/i386/xm-i386v32.h: Removed.
2484 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2486 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2488 * config/i386/i386dgux.mh: Removed.
2489 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2491 * configure.in: Fix typo.
2492 * configure: Regenerated.
2494 2003-01-31 David Carlton <carlton@math.stanford.edu>
2496 * dwarf2read.c (dwarf2_locate_sections): Set
2497 dwarf_ranges_section.
2499 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2501 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2502 * utils.c: Update comments documenting legitimate uses of PTR.
2504 * utils.c: Re-indent.
2506 * config/djgpp/fnchange.lst: Delete nindy files.
2507 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2508 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2509 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2510 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2511 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2512 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2513 * Makefile.in (init.c): Remove nindy references.
2514 (saber_gdb): Delete rule.
2515 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2516 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2518 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2519 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2520 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2521 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2523 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2524 * saber.suppress: Delete file.
2526 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
2528 * dbxread.c (stabs_data): New static variable.
2529 (fill_symbuf): Support an in-memory buffer for stabs data.
2530 (stabs_seek): New function.
2531 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2532 (read_ofile_symtab): Use stabs_seek.
2533 (elfstab_build_psymtabs): Take an asection* instead of
2534 an offset and size. Relocate the stabs data if necessary.
2535 Save the section* for dbx_psymtab_to_symtab.
2536 * dwarf2read.c: Add section variables for each debug section.
2537 (dwarf2_locate_sections): Fill them in.
2538 (dwarf2_read_section): Take an asection* argument.
2539 Relocate the section contents if necessary.
2540 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2541 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2542 it to dwarf2_read_section.
2543 (dwarf2_build_frame_info): Update callers.
2544 * elfread.c (elf_symfile_read): Update call to
2545 elfstab_build_psymtabs.
2546 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2547 (DBX_STAB_SECTION): New macro.
2548 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2549 * symfile.c (symfile_dummy_outputs): New function.
2550 (symfile_relocate_debug_section): New function.
2551 * symfile.h (symfile_relocate_debug_section): Add prototype.
2553 2003-01-31 Richard Henderson <rth@redhat.com>
2555 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2556 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2557 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2558 * alpha-tdep.c (alpha_register_name): Add "unique".
2559 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2560 (ALPHA_UNIQUE_REGNUM): New.
2561 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2563 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2565 * README: Remove reference to Ericsson 1800 monitor.
2566 * Makefile.in (remote-es.o): Delete rule.
2567 (ALLDEPFILES): Delete remote-es.c.
2568 * remote-es.c: Delete file.
2569 * config/m68k/es1800.mt: Delete file.
2570 * config/djgpp/fnchange.lst: Update.
2571 * configure.tgt: Delete m68*-ericsson-* target.
2573 2003-01-31 Adam Fedor <fedor@gnu.org>
2575 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2576 Remove duplicate/shadowing variable of same name.
2578 2003-01-30 Jim Blandy <jimb@redhat.com>
2580 * symfile.c (find_separate_debug_file): Assert that the objfile's
2581 directory name we compute ends with a slash, and then assume that
2582 that's so everywhere we use it.
2584 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
2586 * valops.c (value_assign): Flush frame cache after stores to memory
2589 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2591 * Makefile.in (mon960-rom.o): Delete rule.
2592 * mon960-rom.c: Delete file.
2594 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2596 * d10v-tdep.c: Include "frame-unwind.h".
2597 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2599 (next_addr, uses_frame): Delete.
2600 (struct d10v_unwind_cache): Define.
2601 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2602 Use info instead of next_addr and uses_frame globals.
2603 (d10v_frame_init_saved_regs): Delete function.
2604 (d10v_init_extra_frame_info): Delete function.
2605 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2606 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2607 init_frame_pc or frame_saved_pc.
2608 (d10v_pop_frame): Delete function.
2609 (do_d10v_pop_frame): Delete function.
2610 (d10v_frame_chain): Delete function.
2611 (d10v_frame_chain_valid): Delete function.
2612 (d10v_frame_pc_unwind): New function.
2613 (d10v_frame_id_unwind): New function.
2614 (saved_regs_unwinder): New function.
2615 (d10v_frame_register_unwind): New function.
2616 (d10v_frame_pop): New function.
2617 (d10v_frame_unwind): New variable.
2618 (d10v_frame_p): New function.
2619 (d10v_frame_saved_pc): Delete function.
2620 * Makefile.in (d10v-tdep.o): Update dependencies.
2622 2003-01-30 J. Brobecker <brobecker@gnat.com>
2624 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2625 causing some regressions due to a change in the default value
2628 2003-01-29 Richard Henderson <rth@redhat.com>
2629 Elena Zannoni <ezannoni@redhat.com>
2630 Daniel Jacobowitz <drow@mvista.com>
2633 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2635 (RANGES_SECTION): New.
2636 (dwarf_ranges_buffer): New variable.
2637 (struct comp_unit_head): Add member "die".
2638 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2639 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2640 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2641 (dwarf2_locate_sections): Likewise.
2642 (dwarf2_build_psymtabs): Read .debug_ranges.
2643 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2644 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2645 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2646 Look for DW_AT_ranges and return the bounding box.
2648 2003-01-29 Brian Ford <ford@vss.fsi.com>
2650 * win32-nat.c (cygwin_pid): Removed as unused.
2651 (child_attach): Try fall back to Cygwin pid.
2653 2003-01-29 Jim Blandy <jimb@redhat.com>
2655 * objfiles.h (struct objfile): Doc fix.
2657 2003-01-29 Andrew Cagney <ac131313@redhat.com>
2659 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2660 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2661 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2662 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2663 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2664 (FRAME_SAVED_PC): Change to a function with predicate.
2665 * gdbarch.h, gdbarch.c: Re-generate.
2667 2003-01-28 Andrew Cagney <ac131313@redhat.com>
2669 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2671 * complaints.c (complain): Delete function.
2672 * complaints.h (struct deprecated_complaint): Delete definition.
2673 (complain): Delete declaration.
2675 2003-01-28 Kevin Buettner <kevinb@redhat.com>
2677 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2680 2003-01-27 Andrew Cagney <ac131313@redhat.com>
2682 * sentinel-frame.h, sentinel-frame.c: New files.
2683 * Makefile.in (frame.o): Update dependencies.
2684 (SFILES): Add sentinel-frame.c.
2685 (sentinel_frame_h): Define.
2686 (COMMON_OBS): Add sentinel-frame.o.
2687 (sentinel-frame.o): Specify dependencies.
2688 * frame.c: Include "sentinel-frame.h".
2689 (frame_register_unwind): Rewrite assuming that there is always a a
2691 (frame_register, generic_unwind_get_saved_register): Ditto.
2692 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2693 (create_sentinel_frame, unwind_to_current_frame): New functions.
2694 (get_current_frame): Rewrite using create_sentinel_frame and
2695 unwind_to_current_frame. When possible, always create a frame.
2696 (create_new_frame): Set next to the sentinel frame.
2697 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2698 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2699 ID cache when necessary.
2700 (frame_saved_regs_id_unwind): Use frame_relative_level.
2701 (deprecated_generic_get_saved_register): Use frame_relative_level,
2702 get_frame_saved_regs, get_frame_pc, get_frame_base and
2704 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2707 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2709 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2711 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2713 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2714 (maintenance_set_profile_cmd): Use error () instead of warning ().
2716 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2718 * configure.in: Check that -pg works if using --enable-profiling.
2719 Check for monstartup and _mcleanup regardless of --enable-profiling.
2720 * maint.c: Check for monstartup and _mcleanup before using them.
2721 * config.in: Regenerated.
2722 * configure: Regenerated.
2724 2003-01-24 Nick Clifton <nickc@redhat.com>
2728 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2730 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2731 (sh2e_show_regs): New.
2732 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2733 * config/sh/tm-sh.h: Added sh2e to comments.
2735 2003-01-23 Jim Blandy <jimb@redhat.com>
2737 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2738 symbols found)" message here; we haven't checked for a separate
2739 debug info file yet, so we don't know yet.
2740 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2741 we've looked everywhere. Also, there's no need to print a special
2742 message when we're loading the separate debug info file: the one
2743 symbol_file_add prints is fine.
2745 2003-01-23 Alexander Larsson <alexl@redhat.com>
2746 Jim Blandy <jimb@redhat.com>
2748 Add support for executables whose debug info has been separated
2749 out into a separate file, leaving only a link behind.
2750 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2751 and separate_debug_objfile_backlink.
2752 (put_objfile_before): New declaration.
2753 * symfile.c: #include "filenames.h".
2754 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2755 debug info in a separate file, read that, too. Save the addrs
2756 argument, so we can use it again to read the separated debug info;
2757 syms_from_objfile modifies the table we pass it.
2758 (reread_symbols): After re-reading an objfile, call
2759 reread_separate_symbols to refresh its separate debug info
2760 objfile, if it has one.
2761 (reread_separate_symbols, find_separate_debug_file,
2762 get_debug_link_info, separate_debug_file_exists): New functions.
2763 (debug_file_directory): New global var.
2764 (_initialize_symfile): Initialize debug_file_directory, and
2765 provide the new `set debug-file-directory' command to let the user
2767 * objfiles.c (free_objfile): If this objfile has its debug info in
2768 a separate objfile, free that one too. If this is itself a
2769 separate debug info objfile, clear our parent's backlink.
2770 (put_objfile_before): New function.
2771 * utils.c (gnu_debuglink_crc32): New function.
2772 * defs.h (gnu_debuglink_crc32): New declaration.
2773 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2774 * configure.in: Handle --with-separate-debug-dir config option.
2775 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2776 * acconfig.h (DEBUGDIR): New macro.
2777 * configure, aclocal.m4, config.in: Regenerated.
2779 2003-01-22 Jim Blandy <jimb@redhat.com>
2781 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2782 like the old symbol_file_add, but taking new arguments: you can
2783 now pass in either a `struct section_addr_info' list to say where
2784 each section is loaded, or a `struct section_offsets' table. Pass
2785 these new arguments through to syms_from_objfile as appropriate.
2786 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2787 with the appropriate quiescent values for the new arguments.
2789 * symfile.c: #include "gdb_assert.h".
2790 (syms_from_objfile): Add the ability to pass in a section offset
2791 table directly, as an alternative to the section_addr_info table.
2792 Document arguments better.
2793 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2794 * symfile.h (syms_from_objfile): Update declaration.
2795 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2797 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2799 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2801 Original patch by Tom Tromey <tromey@cygnus.com> and
2802 Jason Molenda <jmolenda@apple.com>.
2803 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2804 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2805 * NEWS: Mention profiling.
2806 * configure.in (--enable-gdbtk): Fix typo.
2807 (--enable-profiling): New. Set PROFILE_CFLAGS.
2808 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2810 (profiling_state): New variable.
2811 (mcleanup_wrapper): New function.
2812 (_initialize_maint): Remove NOTYET, fix call to
2813 add_setshow_boolean_cmd for "maint set profile".
2814 * configure: Regenerated.
2816 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2818 * Makefile.in (install-gdbtk): Install PNG images too.
2820 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2822 * exec.c (text_start): Delete global variable.
2823 (exec_file_attach): Make text_start local to the function.
2824 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2825 * valops.c (hand_function_call): Delete code that handles
2826 BEFORE_TEXT_END and AFTER_TEXT_END.
2827 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2828 of CALL_DUMMY_LOCATION.
2829 * gdbarch.c: Regenerate.
2830 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2831 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2832 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2833 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2834 (text_end): Delete extern declaration.
2836 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2838 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2839 * blockframe.c (backtrace_below_main): Move to "frame.c".
2840 (frame_chain_valid): Delete check for backtrace_below_main.
2841 (_initialize_blockframe): Delete initialization, move ``set
2842 backtrace-below-main'' command to "frame.c".
2843 (do_flush_frames_sfunc): Delete function.
2844 * frame.c: Include "command.h" and "gdbcmd.h".
2845 (frame_type_from_pc): New function.
2846 (create_new_frame): Use frame_type_from_pc.
2847 (legacy_get_prev_frame): New function.
2848 (get_prev_frame): Rewrite. When an old style frame, call
2849 legacy_get_prev_frame. Otherwize, unwind the PC first.
2850 (_initialize_frame): Add ``set backtrace-below-main'' command.
2851 * Makefile.in (frame.o): Update dependencies.
2853 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2855 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2856 DEPRECATED_REGISTERS_INFO.
2858 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2860 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2861 Maintainers'. Update `Various Maintainers'.
2863 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2865 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2866 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2867 Suppress actual parameters when `-'.
2868 * gdbarch.h, gdbarch.c: Regenerate.
2870 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2872 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2873 code handling dummy frames.
2875 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2877 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2878 (struct frame_unwind): Add field pop.
2879 * frame.h (frame_pop): Declare.
2880 * frame.c (frame_saved_regs_pop): New function.
2881 (trad_frame_unwinder): Add frame_saved_regs_pop.
2882 (frame_pop): New function.
2883 * dummy-frame.c (dummy_frame_pop): New function.
2884 (discard_innermost_dummy): New function.
2885 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2886 (dummy_frame_unwind): Add dummy_frame_pop.
2887 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2888 * valops.c (hand_function_call): Ditto.
2889 * stack.c (return_command): Ditto.
2891 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2893 * cris-tdep.c: Fix function declaration indentation.
2894 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2895 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2896 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2897 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2898 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2899 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2901 2003-01-18 Michael Chastain <mec@shout.net>
2903 * README (Unpacking and Installation -- quick overview):
2904 Warn against ".../gdb-5.3/gdb/configure".
2906 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2908 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2909 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2910 (struct frame_unwind): Declare opaque.
2911 (dummy_frame_p): Declare function.
2912 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2913 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2914 * dummy-frame.c: Include "frame-unwind.h".
2915 (dummy_frame_p): New function.
2916 (dummy_frame_unwind): New variable.
2917 * frame.c: Include "frame-unwind.h".
2918 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2919 to use the new unwind field.
2920 (set_unwind_by_pc): Delete function.
2921 (create_new_frame, get_prev_frame): Set unwind field using
2922 frame_unwind_find_by_pc.
2923 (trad_frame_unwind, trad_frame_unwinder): New variables.
2924 * frame.h (trad_frame_unwind): Declare variable.
2925 (frame_id_unwind_ftype): Delete declaration.
2926 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2927 (struct frame_unwind): Declare opaque.
2928 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2929 register_unwind with a single unwind pointer.
2930 * frame-unwind.h, frame-unwind.c: New files.
2931 * Makefile.in (SFILES): Add frame-unwind.c.
2932 (frame_unwind_h): Define.
2933 (COMMON_OBS): Add frame-unwind.o.
2934 (frame-unwind.o): Specify dependencies.
2935 (frame.o, dummy-frame.o): Update dependencies.
2937 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2939 * ada-valprint.c: Eliminate PTR.
2940 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2941 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2942 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2943 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2944 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2945 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2946 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2948 2003-01-17 Andrew Cagney <ac131313@redhat.com>
2950 * main.c (captured_main): Don't use PTR.
2951 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2952 * gdbtypes.c (lookup_primitive_typename): Ditto.
2953 (lookup_struct_elt_type): Ditto.
2954 * f-valprint.c (info_common_command): Ditto.
2955 (list_all_visible_commons): Ditto.
2956 * jv-typeprint.c (java_type_print_base): Ditto.
2958 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2959 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2960 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2961 i386-interix-nat.c and i386-interix-tdep.c. Rename
2962 m68klinux-nat.c and m68klinux-tdep.c. Rename
2963 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2964 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2965 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2966 * main.c (captured_main): Use xfree, not free.
2968 2003-01-16 Andrew Cagney <ac131313@redhat.com>
2970 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2971 ID back using a parameter.
2972 * frame.c (frame_id_unwind): Update call.
2973 (frame_saved_regs_id_unwind): Update.
2974 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2975 * dummy-frame.h (struct frame_id): Add opaque declaration.
2976 (dummy_frame_id_unwind): Update declaration.
2978 2003-01-15 Andrew Cagney <ac131313@redhat.com>
2980 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2982 2003-01-15 Stephen P. Smith <ischis2@cox.net>
2984 * MAINTAINERS (Stephen P. Smith): Updated email address.
2986 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
2989 * breakpoint.c (until_break_command): Add new argument. Use it to
2990 decide whether to stop only at the current frame or not.
2991 * breakpoint.h (until_break_command): Update prototype.
2992 * infcmd.c (until_command): Add new argument to until_break_command
2994 (advance_command): New function.
2995 (_initialize_infcmd): Update help string for 'until' command.
2996 Add new 'advance' command.
2998 2003-01-14 David Carlton <carlton@math.stanford.edu>
3000 * linespec.c (decode_line_1): Normalize comments.
3002 (locate_first_half): Ditto.
3003 (decode_compound): Ditto.
3004 (symtab_from_filename): Ditto.
3005 (decode_all_digits): Ditto.
3006 (decode_dollar): Ditto.
3007 (find_methods): Ditto.
3008 (find_toplevel_char): Ditto.
3010 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3012 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3013 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3014 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3015 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3016 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3017 * language.c, language.h, m32r-tdep.c: Update copyright.
3018 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3019 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3020 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3021 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3022 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3023 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3025 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3027 * stabsread.h (process_later, resolve_cfront_continuation):
3029 Update copyright years.
3030 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3031 Update copyright year.
3032 * dbxread.c(struct cont_elem): Obsolete.
3033 (process_later, process_now): Obsolete functions.
3034 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3035 Update copyright year.
3036 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3037 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3038 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3039 (parse_partial_symbols): Obsolete cfront support.
3041 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3043 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3044 read_cfront_baseclasses, read_cfront_member_functions,
3045 resolve_cfront_continuation,read_cfront_static_fields,
3046 copy_cfront_struct_fields): Obsolete functions.
3047 (define_symbol, read_one_struct_field): Obsolete cfront support.
3048 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3049 Update Copyright year.
3051 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3053 * stack.c (print_frame_info, print_stack_frame_base_stub,
3054 print_stack_frame_base, show_and_print_stack_frame_stub,
3055 show_and_print_stack_frame, print_only_stack_frame_stub,
3056 print_only_stack_frame): Delete functions.
3057 (print_stack_frame_stub): Call print_frame_info instead of
3058 print_frame_info_base.
3059 (print_frame_info_base): Rename to print_frame_info.
3060 (backtrace_command_1): Call print_frame_info, instead of
3061 print_frame_info_base.
3062 (current_frame_command): Call print_stack_frame, instead of
3063 print_only_stack_frame.
3064 (frame_command): Call print_stack_frame, instead of
3065 show_and_print_stack_frame.
3066 (up_command): Ditto.
3067 (down_command): Ditto.
3068 * frame.h (print_only_stack_frame): Delete prototype.
3069 * infrun.c (normal_stop): Call print_stack_frame, instead of
3070 show_and_print_stack_frame.
3071 * thread.c (info_threads_command): Call print_stack_frame, instead
3072 of print_only_stack_frame.
3074 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3076 * README (Graphical interface to GDB): Update URL. Point at
3079 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3082 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3084 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3087 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3089 * thread-db.c (attach_thread): Prototype.
3090 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3091 thread information (ti), and valid flags (th_valid, ti_valid).
3092 (attach_thread): Move target_pid_to_str call to after the thread
3093 is added to GDB's list. Initialize the cache.
3094 (thread_get_info_callback, thread_db_map_id2thr)
3095 (thread_db_get_info): New functions.
3096 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3097 (thread_db_store_registers, thread_db_thread_alive)
3098 (thread_db_get_thread_local_address): Use them.
3099 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3100 of calling error() for threads in unknown state.
3102 (clear_lwpid_callback): New function.
3103 (thread_db_resume): Use it to clear the cache.
3105 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3107 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3108 (resume_callback): Remove dead code.
3110 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3112 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3114 * gdbarch.h, gdbarch.c: Regenerate.
3115 * stack.c (frame_info): Only initialize the saved registers when
3116 FRAME_INIT_SAVED_REGS_P.
3117 * frame.c (frame_saved_regs_register_unwind): Assert
3118 FRAME_INIT_SAVED_REGS_P.
3119 (deprecated_generic_get_saved_register): Ditto.
3121 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3123 * source.c (openp): Squelch warning about "filename".
3125 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3127 * source.c (openp): If the file does not exist don't necessarily
3130 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3133 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3134 (integer_types_same_name_p): New function.
3135 (rank_one_type): Use it.
3136 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3138 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3140 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3142 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3143 * configure.in: Add --with-sysroot.
3144 * configure: Regenerated.
3145 * main.c (gdb_sysroot): New variable.
3146 (captured_main): Initialize gdb_sysroot.
3147 * defs.h (gdb_sysroot): New extern declaration.
3148 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3150 2003-01-12 Michael Chastain <mec@shout.net>
3152 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3154 2003-01-12 Michael Chastain <mec@shout.net>
3156 * top.c (print_gdb_version): Bump copyright year to 2003.
3158 2003-01-12 David Carlton <carlton@bactrian.org>
3160 * linespec.c (symtab_from_filename): Rename variable 's' to
3163 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3165 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3167 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3169 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3171 * d10v-tdep.c: Include "gdb_assert.h".
3172 (d10v_store_return_value): Rewrite to match current interface.
3173 (d10v_extract_struct_value_address): Ditto.
3174 (d10v_extract_return_value): Ditto.
3175 (d10v_gdbarch_init): Set store_restore_value,
3176 extract_struct_value_address and extract_return_value.
3178 2003-01-12 J. Brobecker <brobecker@gnat.com>
3180 * hpread.c (set_namestring): New procedure replacing the
3181 SET_NAMESTRING macro.
3182 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3183 by calls to set_namestring.
3185 2003-01-11 J. Brobecker <brobecker@gnat.com>
3187 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3188 a compilation warning.
3189 (hpread_process_one_debug_symbol): Likewise.
3191 2003-01-10 David Carlton <carlton@math.stanford.edu>
3193 * linespec.c (decode_line_1): Rename variable 's' to
3195 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3196 (decode_dollar): Ditto.
3197 (decode_variable): Ditto.
3198 (symbol_found): Ditto.
3200 2003-01-09 Michael Chastain <mec@shout.net>
3202 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3204 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3206 * win32-nat.c (set_process_privilege): New function.
3207 (child_attach): Call set_process_privilege() to enable the
3208 SE_DEBUG_NAME user privilege if available in process token.
3210 2003-01-10 J. Brobecker <brobecker@gnat.com>
3212 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3213 compilation error in the previous revision.
3215 2003-01-09 David Carlton <carlton@math.stanford.edu>
3217 * linespec.c: Update copyright.
3219 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3221 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3223 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3225 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3227 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3229 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3230 (frame_saved_regs_zalloc): Update.
3231 (frame_saved_regs_register_unwind): Update.
3232 (create_new_frame): Update.
3233 (get_prev_frame): Update.
3234 (frame_extra_info_zalloc): Update.
3235 (deprecated_get_frame_saved_regs): Update.
3236 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3237 * cris-tdep.c: Update comment.
3239 * somsolib.h: Fix function indentation.
3240 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3241 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3242 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3243 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3244 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3246 * infrun.c (follow_fork): Use ISO C definition.
3247 * expprint.c (print_subexp): Use xfree instead of free.
3248 * charset.c: Include "gdb_string.h" instead of <string.h>.
3249 (register_iconv_charsets): Use ISO C definition.
3250 (host_charset, target_charset): Ditto.
3251 * Makefile.in (charset.o): Update dependencies.
3252 (mi-cmd-env.o): Update dependencies.
3254 2003-01-08 Andrew Cagney <cagney@redhat.com>
3256 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3259 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3261 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3262 build directories. Save edited gdb output in Mbuild.log. If a
3263 build fails, remove any final GDB executable.
3265 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3267 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3268 replacing hex constants with function names and stripping leading
3269 file name directory prefixes.
3271 2003-01-08 Andrew Cagney <cagney@redhat.com>
3273 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3276 2003-01-08 David Carlton <carlton@math.stanford.edu>
3278 * linespec.c (decode_line_1): Move code into decode_variable.
3279 (decode_variable): New function.
3281 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3283 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3285 2003-01-08 Andrew Cagney <cagney@redhat.com>
3287 * cris-tdep.c (cris_frame_init_saved_regs): Use
3288 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3290 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3291 (sh64_nofp_frame_init_saved_regs): Ditto.
3292 (sh_fp_frame_init_saved_regs): Ditto.
3293 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3294 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3295 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3296 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3298 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3300 * minsyms.c (lookup_minimal_symbol): Update comment.
3301 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3302 (lookup_minimal_symbol_solib_trampoline): Likewise.
3304 2003-01-08 Andrew Cagney <cagney@redhat.com>
3306 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3307 frame_relative_level.
3309 * alpha-tdep.c: Use get_frame_extra_info.
3310 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3311 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3312 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3313 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3315 * alpha-tdep.c: Use get_next_frame.
3316 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3317 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3318 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3319 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3320 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3321 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3322 * xstormy16-tdep.c: Ditto.
3324 2003-01-07 Andrew Cagney <cagney@redhat.com>
3326 * alpha-tdep.c: Use get_frame_base.
3327 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3328 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3329 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3330 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3331 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3332 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3333 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3334 * config/sparc/tm-sparc.h: Ditto.
3336 2003-01-07 Andrew Cagney <cagney@redhat.com>
3338 * frame.c (deprecated_get_frame_context): New function.
3339 (deprecated_set_frame_context): New function.
3340 * frame.h (deprecated_get_frame_context): Declare.
3341 (deprecated_set_frame_context): Declare.
3342 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3343 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3345 2003-01-07 Andrew Cagney <cagney@redhat.com>
3347 * frame.c (deprecated_set_frame_next_hack): New function.
3348 (deprecated_set_frame_prev_hack): New function.
3349 * frame.h (deprecated_set_frame_next_hack): Declare.
3350 (deprecated_set_frame_prev_hack): Declare.
3351 * mcore-tdep.c (analyze_dummy_frame): Use
3352 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3353 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3355 2003-01-07 David Carlton <carlton@math.stanford.edu>
3357 * linespec.c (decode_line_1): Move code into decode_dollar.
3358 (decode_dollar): New function.
3360 2003-01-07 Andrew Cagney <cagney@redhat.com>
3362 * arm-tdep.c (arm_init_extra_frame_info): Use
3363 deprecated_update_frame_base_hack.
3364 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3365 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3366 (fix_frame_pointer): Ditto.
3367 (mn10300_analyze_prologue): Ditto.
3369 2003-01-07 Andrew Cagney <cagney@redhat.com>
3371 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3372 extra_info using frame_extra_info_zalloc.
3373 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3374 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3375 (sh64_init_extra_frame_info): Ditto.
3376 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3377 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3378 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3379 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3380 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3381 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3382 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3383 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3384 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3385 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3386 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3387 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3389 * mn10300-tdep.c (analyze_dummy_frame): Use
3390 deprecated_set_frame_extra_info_hack.
3391 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3393 2003-01-07 J. Brobecker <brobecker@gnat.com>
3395 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3396 class is not scText. These do not define "real" procedures.
3397 (parse_partial_symbols): Likewise.
3399 2003-01-06 Michael Snyder <msnyder@redhat.com>
3401 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3403 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3405 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3406 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3407 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3408 deprecated_frame_xmalloc_with_cleanup.
3409 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3410 deprecated_frame_xmalloc.
3411 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3412 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3414 2003-01-06 Andrew Cagney <cagney@redhat.com>
3416 * x86-64-linux-tdep.c: Include "osabi.h".
3417 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3419 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3421 2003-01-06 Andrew Cagney <cagney@redhat.com>
3423 * MAINTAINERS (Target Instruction Set Architectures): Update
3424 arm-elf. Can be built with -Werror, has been multiarched.
3426 * value.h (unpack_long): Make buffer parameter constant.
3427 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3428 * scm-lang.h (scm_parse): Ditto.
3429 * defs.h (extract_typed_address, extract_address): Ditto.
3430 (extract_long_unsigned_integer): Ditto.
3431 * inferior.h (unsigned_pointer_to_address): Ditto.
3432 (signed_pointer_to_address): Ditto.
3433 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3434 * gdbarch.h, gdbarch.c: Regenerate.
3435 * findvar.c (extract_long_unsigned_integer): Update.
3436 (extract_address): Update.
3437 (extract_typed_address): Update.
3438 (unsigned_pointer_to_address): Update.
3439 * values.c (unpack_long): Update.
3440 (unpack_double): Update.
3441 (unpack_pointer): Update.
3442 (unpack_field_as_long): Update.
3443 * d10v-tdep.c (d10v_pointer_to_address): Update.
3444 * avr-tdep.c (avr_pointer_to_address): Update.
3445 * scm-lang.c (scm_unpack): Update.
3446 * findvar.c (signed_pointer_to_address): Update.
3448 2003-01-06 Michal Ludvig <mludvig@suse.cz>
3450 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3451 since it is in i386-tdep.c.
3453 2003-01-06 J. Brobecker <brobecker@gnat.com>
3455 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3456 failure introduced in the previous change.
3458 2003-01-05 Michael Chastain <mec@shout.net>
3460 * README: Remove references to deleted remote-*.c files:
3461 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3462 remote-nrom.c, remote-os9k.c, remote-udi.c.
3464 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3466 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3467 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3468 i386_get_longjmp_target.
3470 2003-01-05 Andrew Cagney <ac131313@redhat.com>
3472 * arm-tdep.c (prologue_cache): Change to a pointer.
3473 (_initialize_arm_tdep): Allocate prologue_cache.
3474 (check_prologue_cache): Update.
3475 (save_prologue_cache): Update.
3476 (arm_gdbarch_init): Update.
3478 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3480 * stabsread.c (update_method_name_from_physname): Call complaint()
3483 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3485 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3486 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3487 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3489 * blockframe.c: Include "gdbcmd.h" and "command.h".
3490 (backtrace_below_main): New variable.
3491 (file_frame_chain_valid, func_frame_chain_valid)
3492 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3493 (generic_func_frame_chain_valid): Remove functions.
3494 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3495 (_initialize_blockframe): New function.
3496 * Makefile.in (blockframe.o): Update dependencies.
3497 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3498 comment. Call frame_chain_valid ().
3499 * frame.h: Remove old prototypes. Add prototype for
3500 frame_chain_valid and update comments to match.
3501 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3503 * gdbarch.h: Regenerated.
3504 * gdbarch.c: Regenerated.
3506 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3507 set_gdbarch_frame_chain_valid.
3508 * avr-tdep.c (avr_gdbarch_init): Likewise.
3509 * cris-tdep.c (cris_gdbarch_init): Likewise.
3510 * frv-tdep.c (frv_gdbarch_init): Likewise.
3511 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3512 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3513 (i386_nw_init_abi): Likewise.
3514 (i386_gdbarch_init): Likewise.
3515 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3516 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3517 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3518 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3519 * mips-tdep.c (mips_gdbarch_init): Likewise.
3520 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3521 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3522 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3523 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3524 * s390-tdep.c (s390_gdbarch_init): Likewise.
3525 * sh-tdep.c (sh_gdbarch_init): Likewise.
3526 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3527 * v850-tdep.c (v850_gdbarch_init): Likewise.
3528 * vax-tdep.c (vax_gdbarch_init): Likewise.
3529 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3531 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3532 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3533 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3534 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3535 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3536 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3537 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3538 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3540 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3542 * Makefile.in (acconfig_h): Remove incorrect macro.
3544 (osabi.o): Update dependencies.
3545 * configure.tgt: Set gdb_osabi based on target triplet.
3546 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3547 * configure: Regenerated.
3548 * config.in: Regenerated.
3549 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3550 (GDB_OSABI_DEFAULT): Define if not already defined.
3551 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3552 (set_osabi_string): New variables.
3553 (gdbarch_register_osabi): Add new OS ABI to
3554 gdb_osabi_available_names.
3555 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3556 (set_osabi, show_osabi): New functions.
3557 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3559 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3561 * arch-utils.c (gdbarch_info_init): Set osabi to
3562 GDB_OSABI_UNINITIALIZED.
3563 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3564 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3565 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3566 * gdbarch.c: Regenerated.
3567 * gdbarch.h: Regenerated.
3568 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3570 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3571 * osabi.h (enum gdb_osabi): Move to defs.h.
3572 (gdbarch_init_osabi): Update prototype.
3573 * defs.h (enum gdb_osabi): Moved here.
3574 * Makefile.in: Update dependencies.
3576 * alpha-tdep.h: Don't include "osabi.h".
3577 (struct gdbarch_tdep): Remove osabi member.
3578 * alpha-tdep.c: Include "osabi.h".
3579 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3580 iterate over arches. Update call to gdbarch_init_osabi.
3581 (alpha_dump_tdep): Don't dump osabi.
3582 * alpha-linux-tdep.c: Include "osabi.h".
3583 * alpha-osf1-tdep.c: Include "osabi.h".
3584 * alphafbsd-tdep.c: Include "osabi.h".
3585 * alphanbsd-tdep.c: Include "osabi.h".
3587 * arm-tdep.h: Don't include "osabi.h".
3588 (struct gdbarch_tdep): Remove osabi member.
3589 * arm-tdep.c: Include "osabi.h".
3590 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3591 iterate over arches. Update call to gdbarch_init_osabi.
3592 (arm_dump_tdep): Don't dump osabi.
3593 * arm-linux-tdep.c: Include "osabi.h".
3594 * armnbsd-tdep.c: Include "osabi.h".
3596 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3597 Update call to gdbarch_init_osabi.
3599 * i386-tdep.h: Don't include "osabi.h".
3600 (struct gdbarch_tdep): Remove osabi member.
3601 * i386-tdep.c: Include "osabi.h".
3602 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3603 iterate over arches. Update call to gdbarch_init_osabi.
3604 (i386_dump_tdep): Don't dump osabi.
3605 * i386-linux-tdep.c: Include "osabi.h".
3606 * i386-sol2-tdep.c: Include "osabi.h".
3607 * i386bsd-tdep.c: Include "osabi.h".
3608 * i386gnu-tdep.c: Include "osabi.h".
3609 * i386ly-tdep.c: Include "osabi.h".
3610 * i386nbsd-tdep.c: Include "osabi.h".
3611 * i386obsd-tdep.c: Include "osabi.h".
3613 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3614 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3615 check osabi when iterating over arches. Update call to
3617 (mips_dump_tdep): Don't dump osabi.
3619 * ns32k-tdep.h: Don't include "osabi.h".
3620 (struct gdbarch_tdep): Remove.
3621 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3622 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3623 allocate tdep. Update call to gdbarch_init_osabi.
3624 (ns32k_dump_tdep): Remove.
3625 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3626 * ns32knbsd-tdep.c: Include "osabi.h".
3628 * ppc-tdep.h: Don't include "osabi.h".
3629 (struct gdbarch_tdep): Remove osabi member.
3630 * rs6000-tdep.c: Include "osabi.h".
3631 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3632 osabi when iterating over arches. Update call to
3634 (rs6000_dump_tdep): Don't dump osabi.
3635 * ppc-linux-tdep.c: Include "osabi.h".
3636 * ppcnbsd-tdep.c: Include "osabi.h".
3638 * sh-tdep.h: Don't include "osabi.h".
3639 (struct gdbarch_tdep): Remove osabi member.
3640 * sh-tdep.c: Include "osabi.h".
3641 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3642 iterate over arches. Update call to gdbarch_init_osabi.
3643 (sh_dump_tdep): Don't dump osabi.
3644 * shnbsd-tdep.c: Include "osabi.h".
3646 * sparc-tdep.c: Include "osabi.h".
3647 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3648 iterate over arches. Update call to gdbarch_init_osabi.
3649 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3652 * vax-tdep.h: Don't include "osabi.h".
3653 (struct gdbarch_tdep): Remove.
3654 * vax-tdep.c: Include "osabi.h".
3655 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3656 iterate over arches. Don't allocate tdep. Update call
3657 to gdbarch_init_osabi.
3658 (vax_dump_tdep): Remove.
3659 (_initialize_vax_tdep): Update call to gdbarch_register.
3661 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3663 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3665 (breakpoint_re_set_one): Don't fetch the value for a disabled
3668 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3670 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3671 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3672 (COERCE_FLOAT_TO_DOUBLE): Remove.
3673 * gdbarch.c: Regenerate.
3674 * gdbarch.h: Regenerate.
3675 * Makefile.in: Remove value_h from gdbarch_h.
3676 * valops.c (coerce_float_to_double): New variable.
3677 (default_coerce_float_to_double): Remove.
3678 (standard_coerce_float_to_double): Remove.
3679 (value_arg_coerce): Use coerce_float_to_double.
3680 (_initialize_valops): Add "set coerce-float-to-double".
3681 * value.h (default_coerce_float_to_double): Remove prototype.
3682 (standard_coerce_float_to_double): Remove prototype.
3684 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3686 * mdebugread.c (parse_symbol): Likewise.
3687 * stabsread.c (define_symbol): Mark all functions as prototyped.
3689 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3690 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3691 set_gdbarch_coerce_float_to_double.
3692 * arm-tdep.c (arm_gdbarch_init): Likewise.
3693 * frv-tdep.c (frv_gdbarch_init): Likewise.
3694 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3695 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3696 * mips-tdep.c (mips_gdbarch_init): Likewise.
3697 (mips_coerce_float_to_double): Remove.
3698 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3699 (rs6000_coerce_float_to_double): Remove.
3700 * s390-tdep.c (s390_gdbarch_init): Likewise.
3701 * sh-tdep.c (sh_gdbarch_init): Likewise.
3702 (sh_coerce_float_to_double): Remove.
3703 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3704 (sparc_coerce_float_to_double): Remove.
3705 * v850-tdep.c (v850_gdbarch_init): Likewise.
3706 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3707 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3708 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3709 (hppa_coerce_float_to_double): Remove prototype.
3710 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3712 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3714 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3716 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3718 Suggested by Stewart Brown <sb24@avaya.com>:
3719 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3720 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3721 (c_type_print_varspec_suffix): Likewise.
3723 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3725 * configure.in: Don't set and AC_SUBST SUBDIRS.
3726 * configure: Regenerated.
3728 * configure.in: Remove code dealing with shared libraries.
3729 * Makefile.in: Remove HLDFLAGS and HLDENV.
3730 * configure: Regenerated.
3732 2003-01-04 Andrew Cagney <ac131313@redhat.com>
3734 * frame.c (deprecated_frame_xmalloc): New function.
3735 (deprecated_set_frame_saved_regs_hack): New function.
3736 (deprecated_set_frame_extra_info_hack): New function.
3737 * frame.h (deprecated_frame_xmalloc): Declare.
3738 (deprecated_set_frame_saved_regs_hack): Declare.
3739 (deprecated_set_frame_extra_info_hack): Declare.
3741 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3743 * configure.in: Move code that provides the --enable-gdbtk option
3744 right after the code that handles the --enable-tui option, and
3746 * configure: Regenerated.
3748 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3749 AC_CHECK_FUNCS and remove the old check for pread64.
3750 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3751 * acconfig.h (_GNU_SOURCE): Add.
3752 (HAVE_PREAD64): Remove.
3753 * configure, aclocal.m4, config.in: Regenerated.
3755 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3757 * alpha-tdep.c: Use get_frame_saved_regs.
3758 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3759 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3760 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3761 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3762 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3764 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3766 * configure.in: Remove all use of the SUBDIRS variable; add
3767 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3768 code providing the --enable-multi-ice option, and move it right in
3769 front of the code that checks whether gdbserver is supported.
3771 * configure: Regenerated.
3772 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3775 2003-01-03 Andrew Cagney <cagney@redhat.com>
3777 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3778 * avr-tdep.c, cris-tdep.c: Ditto.
3779 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3780 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3782 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3784 * configure.in: Remove --enable-netrom option.
3785 * configure: Regenerated.
3787 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3789 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3790 declaration for `struct re_pattern_buffer' instead.
3791 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3793 2003-01-03 J. Brobecker <brobecker@gnat.com>
3795 * mdebugread.c (parse_symbol): Count until the stEnd matching
3798 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3800 * configure.in: Remove --with-cpu option.
3801 subscripts. Remove evil changequotes here.
3802 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3803 * config.in, configure: Regenerated.
3805 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3806 * configure.in: Cleanup section that sources GDB and BFD configure
3807 subscripts. Remove evil changequotes here.
3808 * config.in, configure: Regenerated.
3810 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3812 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3813 frame accessor methods.
3814 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3815 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3816 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3817 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3818 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3819 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3820 * z8k-tdep.c: Ditto.
3822 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3824 * configure.in: Remove UI_OUT configuration code.
3825 * ada-lang.c: Update assuming UI_OUT is always true.
3826 * Makefile.in (UIOUT_CFLAGS): Remove.
3827 * configure: Regenerated.
3828 * TODO: Remove blurb about elimination of -DUI_OUT.
3830 * configure.in: Move code that provides the --enable-gdbcli,
3831 --enable-gdbmi options right before the code that handles the
3832 --enable-tui option. Polish a bit.
3833 * configure: Regenerated.
3835 * configure.in: Rewrite check for GNU regex and the
3836 --without-included regex option, and move it into the "Checks for
3837 library functions" section. This makes us use the system regex
3838 again by default on systems with version 2 of the GNU C library.
3839 This was apparently broken.
3840 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3841 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3842 * config.in, configure: Regenerated.
3844 * configure.in: Move code that provides the --enable-tui option
3845 before the "Checks for libraries" section. Polish the code
3846 somewhat and set need_curses to yes if we build the TUI. Rewrite
3847 code that looks for a library providing termcap functionality to
3848 match more closely what's done in the Readline library, and move
3849 it into to the "Checks for libraries" section.
3850 * configure: Regenerated.
3851 * Makefile.in (TERMCAP): Remove variable.
3852 * config/i386/go32.mh (TERMCAP): Remove variable.
3854 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3856 * MAINTAINERS: Mention gdb_mbuild.sh.
3857 * gdb_mbuild.sh: Rewrite.
3859 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3861 * configure.in: Fix typo in last change.
3862 * config.in, configure: Regenerated.
3864 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3866 * valarith.c (value_binop): Delete obsolete code and comments.
3867 * configure.host: Ditto.
3868 * buildsym.h (make_blockvector): Ditto.
3869 * buildsym.c (make_blockvector): Ditto.
3870 * defs.h (enum language): Ditto.
3871 (chill_demangle): Ditto.
3872 * elfread.c (elf_symtab_read): Ditto.
3873 * dwarfread.c (CHILL_PRODUCER): Ditto.
3874 (set_cu_language): Ditto.
3875 (handle_producer): Ditto.
3876 * expprint.c (print_subexp): Ditto.
3877 * gdbtypes.c (chill_varying_type): Ditto.
3878 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3879 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3880 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3881 (chill_varying_type): Ditto.
3882 * language.h (_LANG_chill): Ditto.
3883 * language.c (binop_result_type, integral_type): Ditto.
3884 (character_type, string_type, structured_type): Ditto.
3885 (lang_bool_type, binop_type_check): Ditto.
3886 * stabsread.h (os9k_stabs): Ditto.
3887 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3888 (define_symbol, read_type, read_struct_fields): Ditto.
3889 (read_array_type, read_enum_type, read_huge_number): Ditto.
3890 (read_range_type, start_stabs): Ditto.
3891 * symfile.c (init_filename_language_table): Ditto.
3892 (add_psymbol_with_dem_name_to_list): Ditto.
3893 * symtab.c (symbol_init_language_specific): Ditto.
3894 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3895 * symtab.h (struct general_symbol_info): Ditto.
3896 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3897 * typeprint.c (typedef_print): Ditto.
3898 * utils.c (fprintf_symbol_filtered): Ditto.
3899 * valops.c (value_cast, search_struct_field, value_slice): Delete
3901 (varying_to_slice): Delete function.
3902 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3903 (varying_to_slice): Delete declaration.
3904 * MAINTAINERS: Update.
3906 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3908 * configure.in: Reorganize "Checks for library functions section"
3909 a bit. Remove check for `btowc' and `isascii' functions.
3910 * configure: Regenerated.
3912 * acconfig.h (_MSE_INT_H): Remove.
3913 * configure.in: Create "Checks for header files" section, and move
3914 appropriate tests there. Don't check for objlist.h, wchar.h,
3915 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3916 misdetection fix. Also add "Checks for types", "Checks for
3917 compiler characteristics" and "Checks for library functions"
3919 * config.in, configure: Regenerated.
3921 * configure.in: Create "Checks for programs" section, and move
3922 appropriate tests there.
3924 2003-01-01 Mark Kettenis <kettenis@gnu.org>
3926 * configure.in: Create "Checks for libraries" section, and move
3927 appropriate tests there. Cleanup check for wctype in libw. Use
3928 AC_SEARCH_LIBS to see whether we need libsocket.
3929 * configure: Regenerated.
3931 For older changes see ChangeLog-2002
3937 version-control: never