1 2003-04-01 Corinna Vinschen <vinschen@redhat.com>
3 * frame.c (get_prev_frame): Disable call to inside_entry_file().
5 2003-04-01 Andrew Cagney <cagney@redhat.com>
7 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
8 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9 * gdbarch.h, gdbarch.c: Re-generate.
10 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
11 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
12 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
13 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
14 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
15 * infcmd.c (run_stack_dummy): Simplify assuming
16 CALL_DUMMY_BREAKPOINT_OFFSET_P.
17 * infrun.c (handle_inferior_event): Ditto.
18 * alpha-tdep.c (alpha_gdbarch_init): Do not set
19 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
20 * arm-tdep.c (arm_gdbarch_init): Ditto.
21 * avr-tdep.c (avr_gdbarch_init): Ditto.
22 * cris-tdep.c (cris_gdbarch_init): Ditto.
23 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
24 * frv-tdep.c (frv_gdbarch_init): Ditto.
25 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
26 * i386-tdep.c (i386_gdbarch_init): Ditto.
27 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
28 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
29 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
30 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
31 * mips-tdep.c (mips_gdbarch_init): Ditto.
32 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
33 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
34 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
35 * s390-tdep.c (s390_gdbarch_init): Ditto.
36 * sh-tdep.c (sh_gdbarch_init): Ditto.
37 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
38 * v850-tdep.c (v850_gdbarch_init): Ditto.
39 * vax-tdep.c (vax_gdbarch_init): Ditto.
40 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
42 2003-04-01 Daniel Jacobowitz <drow@mvista.com>
44 * symfile.c (symfile_relocate_debug_section): Update call to
45 bfd_simple_get_relocated_section_contents.
47 2003-03-31 Andrew Cagney <cagney@redhat.com>
49 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
50 * gdbarch.h, gdbarch.c: Regenerate.
51 * inferior.h (FIX_CALL_DUMMY): Delete macro.
52 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
54 * frame.h (generic_fix_call_dummy): Delete declaration.
55 * dummy-frame.h: Update comment.
56 * dummy-frame.c (generic_fix_call_dummy): Delete function.
57 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
59 * sh-tdep.c (sh_gdbarch_init): Ditto.
60 * s390-tdep.c (s390_gdbarch_init): Ditto.
61 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
62 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
63 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
64 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
65 * i386-tdep.c (i386_gdbarch_init): Ditto.
66 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
67 * frv-tdep.c (frv_gdbarch_init): Ditto.
68 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
69 * cris-tdep.c (cris_gdbarch_init): Ditto.
70 * avr-tdep.c (avr_gdbarch_init): Ditto.
71 * arm-tdep.c (arm_gdbarch_init): Ditto.
73 2003-03-31 J. Brobecker <brobecker@gnat.com>
75 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
76 (INIT_FRAME_AP): Likewise.
77 (EXTRA_FRAME_INFO): Likewise.
79 2003-03-31 Andrew Cagney <cagney@redhat.com>
81 * gdbarch.sh: Include "symfile.h".
82 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
83 * gdbarch.h, gdbarch.c: Re-generate.
84 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
85 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
86 call_dummy_address, the default is at entry_point_address.
87 * v850-tdep.c (v850_gdbarch_init): Ditto.
88 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
89 * sh-tdep.c (sh_gdbarch_init): Ditto.
90 * s390-tdep.c (s390_gdbarch_init): Ditto.
91 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
92 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
93 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
94 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
95 * i386-tdep.c (i386_gdbarch_init): Ditto.
96 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
97 * frv-tdep.c (frv_gdbarch_init): Ditto.
98 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
99 * cris-tdep.c (cris_gdbarch_init): Ditto.
100 * arm-tdep.c (arm_gdbarch_init): Ditto.
102 2003-03-31 Andrew Cagney <cagney@redhat.com>
104 * gdbarch.sh (CALL_DUMMY_P): Delete.
105 * gdbarch.h, gdbarch.c: Re-generate.
106 * inferior.h (CALL_DUMMY_P): Delete macro.
107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
108 * vax-tdep.c (vax_gdbarch_init): Update.
109 * v850-tdep.c (v850_gdbarch_init): Update.
110 * sparc-tdep.c (sparc_gdbarch_init): Update.
111 * sh-tdep.c (sh_gdbarch_init): Update.
112 * s390-tdep.c (s390_gdbarch_init): Update.
113 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
114 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
115 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
116 * mips-tdep.c (mips_gdbarch_init): Update.
117 * mcore-tdep.c (mcore_gdbarch_init): Update.
118 * m68k-tdep.c (m68k_gdbarch_init): Update.
119 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
120 * ia64-tdep.c (ia64_gdbarch_init): Update.
121 * i386-tdep.c (i386_gdbarch_init): Update.
122 * h8300-tdep.c (h8300_gdbarch_init): Update.
123 * frv-tdep.c (frv_gdbarch_init): Update.
124 * d10v-tdep.c (d10v_gdbarch_init): Update.
125 * cris-tdep.c (cris_gdbarch_init): Update.
126 * breakpoint.c (deprecated_frame_in_dummy): Update.
127 * avr-tdep.c (avr_gdbarch_init): Update.
128 * alpha-tdep.c (alpha_gdbarch_init): Update.
129 * arm-tdep.c (arm_gdbarch_init): Update.
130 * dummy-frame.c (dummy_frame_this_id): Update comments.
131 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
132 * frame.c (legacy_get_prev_frame): Ditto.
133 * valops.c (call_function_by_hand): Delete function.
134 (hand_function_call): Rename to call_function_by_hand
136 2003-03-30 Andrew Cagney <cagney@redhat.com>
138 2002-11-10 Klee Dienes <kdienes@apple.com>
139 * value.h (struct value): Update comment.
141 2003-03-30 Andrew Cagney <cagney@redhat.com>
143 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
145 (d10v_gdbarch_init): Do not set fp_regnum.
147 * frame.c (get_frame_base): Force ID initialization.
148 (get_prev_frame): Move computation of the frame ID from here ...
149 (get_frame_id): ... to here.
150 (legacy_get_prev_frame): Mark the frame ID as valid.
151 * frame.h (struct frame_info): Add field "id_p".
153 2003-03-30 Mark Kettenis <kettenis@gnu.org>
155 * i386-tdep.c (i386_store_struct_return): Removed.
156 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
158 2003-03-30 Andrew Cagney <cagney@redhat.com>
160 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
161 * gdbarch.h, gdbarch.c: Regenerate.
162 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
163 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
164 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
165 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
166 * i386-tdep.c (i386_gdbarch_init): Ditto.
167 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
168 * cris-tdep.c (cris_gdbarch_init): Ditto.
169 * vax-tdep.c (vax_gdbarch_init): Ditto.
170 * s390-tdep.c (s390_gdbarch_init): Ditto.
171 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
172 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
173 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
174 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
175 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
176 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
177 * sparc-tdep.c (sparc_gdbarch_init): Update.
178 * sh-tdep.c (sh_gdbarch_init): Update.
179 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
180 * mips-tdep.c (mips_gdbarch_init): Update.
181 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
182 * ia64-tdep.c (ia64_gdbarch_init): Update.
183 * frv-tdep.c (frv_gdbarch_init): Update.
184 * avr-tdep.c (avr_gdbarch_init): Update.
185 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
186 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
187 instead of when push_dummy_call is not available.
189 2003-03-30 Andrew Cagney <cagney@redhat.com>
191 * infttrace.c: Include "gdbthread.h".
192 (parent_attach_all): Fix function signature.
193 (call_ptrace): Update call.
194 * Makefile.in (infttrace.o): Update dependencies.
196 2003-03-30 Andrew Cagney <cagney@redhat.com>
198 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
200 * gdbarch.h, gdbarch.c: Regenerate.
201 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
202 * x86-64-tdep.c (x86_64_init_abi): Update.
203 * v850-tdep.c (v850_gdbarch_init): Update.
204 * sparc-tdep.c (sparc_gdbarch_init): Update.
205 * sh-tdep.c (sh_gdbarch_init): Update.
206 * s390-tdep.c (s390_gdbarch_init): Update.
207 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
208 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
209 * mips-tdep.c (mips_gdbarch_init): Update.
210 * mcore-tdep.c (mcore_gdbarch_init): Update.
211 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
212 * ia64-tdep.c (ia64_gdbarch_init): Update.
213 * i386-tdep.c (i386_gdbarch_init): Update.
214 * h8300-tdep.c (h8300_gdbarch_init): Update.
215 * frv-tdep.c (frv_gdbarch_init): Update.
216 * cris-tdep.c (cris_gdbarch_init): Update.
217 * avr-tdep.c (avr_gdbarch_init): Update.
218 * arm-tdep.c (arm_gdbarch_init): Update.
219 * valops.c (hand_function_call): Update.
221 2003-03-29 Andrew Cagney <cagney@redhat.com>
223 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
224 sizeof_call_dummy_words.
225 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
227 * gdbarch.h: Regenerate.
229 2003-03-29 Andrew Cagney <cagney@redhat.com>
231 * infttrace.h: New file.
232 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
233 (hpread_get_textlow): Detect an uninitialized dn_bufp.
234 (hpread_read_doc_function_type): Detect an initialized type1.
235 (hpread_quick_traverse): Initialize mod_name_string.
236 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
237 (som_solib_get_solib_by_pc): Declare.
238 (so_lib_thread_start_addr): Declare.
239 (no_shared_libraries): Declare.
240 * somread.c (init_import_symbols): Make static. Add forward
242 * config/pa/nm-hppah.h: Include "infttrace.h" for
244 (hppa_insert_hw_watchpoint): Declare.
245 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
246 * hppah-nat.c: Include "gdb_string.h".
247 (parent_attach_all): Delete extern declaration, moved to
249 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
251 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
252 * Makefile.in (infttrace_h): Define.
253 (hpread.o): Update dependencies.
254 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
255 * hppa-hpux-tdep.c: Include "gdb_string.h".
256 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
257 * infrun.c (handle_inferior_event): Always initialize
258 stepped_after_stopped_by_watchpoint. Add default and remove
259 fallthrough in switch statement.
260 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
262 (hppa_remove_hw_watchpoint): Ditto.
264 2003-03-29 Andrew Cagney <cagney@redhat.com>
266 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
269 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
271 * arm-tdep.c (arm_push_arguments): Delete.
272 (struct stack_item): New type.
273 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
274 (arm_store_struct_return): Delte.
275 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
276 arm_push_arguments or arm_store_struct_return.
278 2003-03-28 Andrew Cagney <cagney@redhat.com>
280 * Makefile.in (d10v-tdep.o): Update dependencies.
281 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
282 * d10v-tdep.c: Include "remote.h".
283 (target_resume_hook): Delete extern declaration.
284 (target_wait_loop_hook): Ditto.
285 (tdisassemble_command): Eliminate assignment in "if" conditional.
286 (d10v_ts2_register_sim_regno): Eliminate call to
287 legacy_register_sim_regno.
288 (d10v_ts3_register_sim_regno): Ditto.
290 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
292 * thread.c: Reindented.
294 * linux-proc.c: Ditto.
296 2003-03-28 Bob Rossi <bob_rossi@cox.net>
298 * MAINTAINERS (write after approval): Add myself.
300 2003-03-27 Theodore A. Roth <troth@openavr.org>
302 * objc-exp.y: Add missing semi-colons.
304 2003-03-27 Andrew Cagney <cagney@redhat.com>
306 * regcache.c (write_sp): Delete function and references.
307 * inferior.h (write_sp): Delete declaration.
308 * valops.c (hand_function_call): Replace write_sp with
310 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
311 (sparc_pop_frame): Ditto.
313 2003-03-27 Andrew Cagney <cagney@redhat.com>
315 * NEWS: Mention removal of support for hppa*-*-bsd* and
316 hppa*-*-osf* natives, and hppa*-*-pro* target.
317 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
318 * config/pa/xm-pa.h: Obsolete file.
319 * config/pa/xm-hppab.h: Obsolete file.
320 * config/pa/nm-hppab.h: Obsolete file.
321 * config/pa/tm-hppab.h: Obsolete file.
322 * config/pa/tm-hppao.h: Obsolete file.
323 * config/pa/nm-hppao.h: Obsolete file.
324 * config/pa/tm-pro.h: Obsolete file.
325 * config/pa/hppaosf.mt: Obsolete file.
326 * config/pa/hppaosf.mh: Obsolete file.
327 * config/pa/hppapro.mt: Obsolete file.
328 * config/pa/hppabsd.mt: Obsolete file.
329 * config/pa/hppabsd.mh: Obsolete file.
330 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
331 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
334 2003-03-27 Andrew Cagney <cagney@redhat.com>
336 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
337 push_arguments. Don't set push_return_address or write_sp.
338 (d10v_push_dummy_call): Replace d10v_push_arguments.
339 (d10v_push_return_address, d10v_write_sp): Delete function,
340 handled by push_dummy_call.
342 2003-03-26 Andrew Cagney <cagney@redhat.com>
344 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
345 (push_dummy_call): New pure multi-arch replacement with gdbarch,
346 regcache and dummy_addr parameters.
347 * gdbarch.h, gdbarch.c: Re-generate.
348 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
349 available; assume it will handle stack alignment and return
350 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
351 legacy_push_arguments.
352 (legacy_push_arguments): Rename default_push_arguments.
353 * value.h (legacy_push_arguments): Rename default_push_arguments.
354 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
355 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
356 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
357 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
358 * config/i386/tm-symmetry.h: Update.
359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
360 * x86-64-tdep.c (x86_64_init_abi): Update.
361 * v850-tdep.c (v850_gdbarch_init): Update.
362 * sparc-tdep.c (sparc_gdbarch_init): Update.
363 * sh-tdep.c (sh_gdbarch_init): Update.
364 * s390-tdep.c (s390_gdbarch_init): Update.
365 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
366 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
367 * mips-tdep.c (mips_gdbarch_init): Update.
368 * mcore-tdep.c (mcore_gdbarch_init): Update.
369 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
370 * ia64-tdep.c (ia64_gdbarch_init): Update.
371 * i386-tdep.c (i386_gdbarch_init): Update.
372 * hppa-tdep.c (hppa_gdbarch_init): Update.
373 * h8300-tdep.c (h8300_gdbarch_init): Update.
374 * frv-tdep.c (frv_gdbarch_init): Update.
375 * d10v-tdep.c (d10v_gdbarch_init): Update.
376 * cris-tdep.c (cris_gdbarch_init): Update.
377 * avr-tdep.c (avr_gdbarch_init): Update.
378 * arm-tdep.c (arm_gdbarch_init): Update.
379 * arm-linux-tdep.c (arm_linux_init_abi): Update.
380 * alpha-tdep.c (alpha_gdbarch_init): Update.
382 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
384 * signals/signals.c (do_target_signal_to_host): Correct realtime
387 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
389 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
390 (struct sal_chain, map_catch_names): Remove.
391 (catch_exception_command_1): Don't call
392 handle_gnu_4_16_catch_command.
394 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
396 From Mark Dettinger <dettinge@de.ibm.com>:
397 * dwarf2cfi.c (read_2u): Increment pointer by two.
399 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
401 * signals/signals.c: Fix typos in last change.
403 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
405 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
406 not already defined. Use __SIGRTMIN if available.
407 (target_signal_from_host): Remove SIGRTMIN block.
408 (do_target_signal_to_host): Remove SIGRTMIN block; check that
409 the signal is within the realtime range.
411 2003-03-25 Adam Fedor <fedor@gnu.org>
413 * Makefile.in (infrun.o): Add $(language_h)
414 * infrun.c (handle_inferior_event): Use skip_language_trampoline
415 for language specific trampolines.
416 * language.h (struct language_defn): Add skip_trampoline.
417 (skip_language_trampoline): Declare.
418 * language.c (unk_lang_trampoline, skip_language_trampoline):
420 (unknown_language_defn, auto_language_defn, local_language_defn):
421 Add ukn_lang_trampoline.
422 * ada-lang.c (ada_language_defn): Add NULL for language
423 specific skip_trampoline.
424 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
425 scm-lang.c: Likewise.
426 * objc-lang.c (objc_skip_trampoline): New function.
427 (objc_language_defn): Add objc_skip_trampoline.
429 2003-03-25 Andrew Cagney <cagney@redhat.com>
431 * frame.c (get_prev_frame): Delay validating a frame's ID -
432 non-NULL, didn't go backwards - until an attempt to unwind it to
435 2003-03-25 Andrew Cagney <cagney@redhat.com>
437 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
438 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
439 * gdbarch.h, gdbarch.c: Re-generate.
440 * config/sparc/tm-sparc.h
441 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
442 * sparc-tdep.c (sparc_gdbarch_init): Set
443 deprecated_extra_stack_alignment_needed.
444 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
446 extra_stack_alignment_needed.
447 * v850-tdep.c (v850_gdbarch_init): Ditto.
448 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
449 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
450 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
451 * cris-tdep.c (cris_gdbarch_init): Ditto.
452 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
453 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
455 2003-03-25 Andrew Cagney <cagney@redhat.com>
457 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
459 * gdbarch.h, gdbarch.c: Regenerate.
460 * d10v-tdep.c (d10v_store_struct_return): Delete function.
461 (d10v_push_arguments): Set the struct return register.
462 (d10v_gdbarch_init): Update.
463 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
464 * x86-64-tdep.c (x86_64_init_abi): Update.
465 * vax-tdep.c (vax_gdbarch_init): Update.
466 * v850-tdep.c (v850_gdbarch_init): Update.
467 * sparc-tdep.c (sparc_gdbarch_init): Update.
468 * sh-tdep.c (sh_gdbarch_init): Update.
469 * s390-tdep.c (s390_gdbarch_init): Update.
470 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
471 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
472 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
473 * mips-tdep.c (mips_gdbarch_init): Update.
474 * mcore-tdep.c (mcore_gdbarch_init): Update.
475 * m68k-tdep.c (m68k_gdbarch_init): Update.
476 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
477 * ia64-tdep.c (ia64_gdbarch_init): Update.
478 * i386-tdep.c (i386_gdbarch_init): Update.
479 * hppa-tdep.c (hppa_gdbarch_init): Update.
480 * h8300-tdep.c (h8300_gdbarch_init): Update.
481 * frv-tdep.c (frv_gdbarch_init): Update.
482 * cris-tdep.c (cris_gdbarch_init): Update.
483 * avr-tdep.c (avr_gdbarch_init): Update.
484 * arm-tdep.c (arm_gdbarch_init): Update.
485 * alpha-tdep.c (alpha_gdbarch_init): Update.
487 2003-03-25 Andrew Cagney <cagney@redhat.com>
489 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
490 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
491 CALL_DUMMY_STACK_ADJUST with a predicate variable.
492 * gdbarch.h, gdbarch.c: Regenerate.
493 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
494 call_dummy_stack_adjust_p.
495 * vax-tdep.c (vax_gdbarch_init): Ditto.
496 * v850-tdep.c (v850_gdbarch_init): Ditto.
497 * sh-tdep.c (sh_gdbarch_init): Ditto.
498 * s390-tdep.c (s390_gdbarch_init): Ditto.
499 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
500 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
501 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
502 * mips-tdep.c (mips_gdbarch_init): Ditto.
503 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
504 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
505 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
506 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
507 * i386-tdep.c (i386_gdbarch_init): Ditto.
508 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
509 * frv-tdep.c (frv_gdbarch_init): Ditto.
510 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
511 * cris-tdep.c (cris_gdbarch_init): Ditto.
512 * avr-tdep.c (avr_gdbarch_init): Ditto.
513 * arm-tdep.c (arm_gdbarch_init): Ditto.
514 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
515 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
516 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
517 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
518 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
519 call_dummy_stack_adjust_p.
520 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
521 (CALL_DUMMY_STACK_ADJUST): Delete macro.
522 * sparc-tdep.c (sparc32_push_arguments): Update.
523 * valops.c (hand_function_call): Update.
525 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
527 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
528 set_gdbarch_char_signed.
530 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
533 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
535 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
537 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
538 (_initialize_arm_tdep): Don't set tm_print_insn.
540 2003-03-24 Adam Fedor <fedor@gnu.org>
542 * Makefile.in (YYOBJ): Add objc-exp.tab.o
543 * objc-lang.h: Add multiple inclusion protection.
544 (start_msglist, add_msglist, end_msglist): Additional declarations.
546 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
548 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
549 value was renamed to ARM_FLOAT_SOFT_FPA.
551 2003-03-23 Andrew Cagney <cagney@redhat.com>
553 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
554 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
555 * gdbarch.h, gdbarch.c: Regenerate.
556 * valops.c (hand_function_call): Update.
557 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
558 * frame.c (legacy_saved_regs_this_id): Update.
559 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
560 * dummy-frame.h: Update.
561 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
562 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
563 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
564 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
565 * config/m68k/tm-sun3.h: Update.
566 * blockframe.c (inside_main_func, frame_chain_valid): Update.
567 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
568 * x86-64-tdep.c (x86_64_init_abi): Update.
569 * vax-tdep.c (vax_gdbarch_init): Update.
570 * v850-tdep.c (v850_gdbarch_init): Update.
571 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
572 * sh-tdep.c (sh_gdbarch_init): Update.
573 * s390-tdep.c (s390_gdbarch_init): Update.
574 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
575 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
576 (frame_get_saved_regs): Update.
577 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
578 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
579 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
580 * mips-tdep.c (mips_gdbarch_init): Update.
581 * mcore-tdep.c (mcore_gdbarch_init): Update.
582 * m68k-tdep.c (m68k_gdbarch_init): Update.
583 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
584 * ia64-tdep.c (ia64_gdbarch_init): Update.
585 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
586 * i386-interix-tdep.c (i386_interix_init_abi): Update.
587 (i386_interix_back_one_frame): Update.
588 * hppa-tdep.c (hppa_gdbarch_init): Update.
589 (hppa_init_extra_frame_info): Update.
590 * h8300-tdep.c (h8300_gdbarch_init): Update.
591 * frv-tdep.c (frv_gdbarch_init): Update.
592 * cris-tdep.c (cris_gdbarch_init): Update.
593 * avr-tdep.c (avr_gdbarch_init): Update.
594 * arm-tdep.c (arm_gdbarch_init): Update.
595 * alpha-tdep.c (alpha_gdbarch_init): Update.
597 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
599 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
600 (arm_get_fp_model): Declare.
601 * arm-tdep.c (fp_model_strings): New string array.
602 (arm_fp_model, current_fp_model): New variables.
603 (arm_get_fp_model): New function.
604 (arm_set_fp): New function.
605 (set_fp_model_sfunc): New function.
606 (show_fp_model): New function.
607 (_initialize_arm_tdep): Add new command to set/show the FPU.
608 (arm_extract_return_value): Use arm_get_fp_model.
609 (arm_store_return_value): Likewise.
610 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
611 to initialize the floating-point data types.
612 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
615 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
617 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
618 the current setting of each value.
619 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
620 new_set and new_show. Use add_setshow_cmd_full and
621 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
622 commands and add new version as subcommands of "set/show arm".
624 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
626 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
627 (set_arm_command, show_arm_command): New functions.
628 (_initialize_arm_tdep): Add them.
629 (num_disassembly_options): Renamed from num_flavor_options.
630 (valid_disassembly_styles): Renamed from valid_flavors.
631 (disassembly_style): Renamed from disassembly_flavor.
632 (set_disassembly_style_sfunc): Renamed from
633 set_disassembly_flavor_sfunc.
634 (set_disassembly_style): Renamed from set_disassembly_flavor.
635 (arm_othernames): Updated.
636 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
637 command. Add "set/show arm disassembly" commands. Deprecate
638 "othernames" command.
640 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
642 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
643 (arm-tdep.o): Depend on elf_arm_h.
645 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
647 * Makefile.in (coff_internal_h): Define.
648 (arm-tdep.o): Update dependencies.
650 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
652 * arm-tdep.c (prologue_cache): Delete.
653 (check_prologue_cache, save_prologue_cache): Delete.
654 (arm_scan_prologue): Don't check or update the prologue_cache.
655 (arm_gdb_arch_init): Don't initialize it.
656 (_initialize_arm_tdep): Likewise.
658 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
660 * MAINTAINERS (tui): Maintainer of tui code.
662 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
664 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
665 (i386-cygwin-tdep.o): Add dependencies.
666 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
667 * i386-cygwin-tdep.c: New file.
668 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
669 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
671 2003-03-20 Andrew Cagney <cagney@redhat.com>
673 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
674 (handle_inferior_event): Remove code calling
675 DYNAMIC_TRAMPOLINE_NEXTPC.
677 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
678 already has a full path.
680 * main.c (gdb_main): Return 1.
681 (captured_main): Call error to report an invalid interpreter.
683 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
684 * alpha-osf1-tdep.c: Include "gdb_string.h".
686 2003-03-19 J. Brobecker <brobecker@gnat.com>
688 Continuing work to convert the hppa targets to multiarch partial.
690 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
691 method, now that hppa_push_dummy_frame has a conformant prototype.
692 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
693 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
694 for the switch to multiarch partial.
696 2003-03-19 Kevin Buettner <kevinb@redhat.com>
698 * mdebugread.c (parse_symbol): For stEnd, we're done counting
701 2003-03-18 Kevin Buettner <kevinb@redhat.com>
703 * mips-tdep.c (mips_register_name): Fix fencepost error involving
704 NUM_REGS bounds check.
706 2003-03-18 Kevin Buettner <kevinb@redhat.com>
708 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
709 * mips-tdep.c (gdb_assert.h): Include.
710 (mips_generic_reg_names, mips_processor_reg_names): Make static.
711 (mips_register_name): Handle integer registers explicitly. Add
713 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
714 (mips_lsi33k_reg_names): Don't list integer registers; they're
715 handled by mips_register_name() now.
716 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
717 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
718 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
719 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
720 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
722 2003-03-18 Andrew Cagney <cagney@redhat.com>
724 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
726 * gdbtypes.h (print_scalar_formatted): Update declaration.
727 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
729 2003-03-18 J. Brobecker <brobecker@gnat.com>
731 * infrun.c (observer.h): Add #include.
732 (normal_stop): Add call to observer_notify_normal_stop.
733 * Makefile.in (infrun.o): Add dependency on observer.h.
735 2003-03-18 J. Brobecker <brobecker@gnat.com>
737 Continuing work to convert the hppa targets to multiarch partial.
738 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
739 parameter. Reformat comment.
740 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
741 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
742 to match new profile.
744 2003-03-18 J. Brobecker <brobecker@gnat.com>
746 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
747 appear to be working in any case.
749 2003-03-18 J. Brobecker <brobecker@gnat.com>
751 * observer.c (observer_test_first_observer): New static variable.
752 (observer_test_second_observer): Likewise.
753 (observer_test_third_observer): Likewise.
754 (observer_test_first_notification_function): New static function.
755 (observer_test_second_notification_function): Likewise.
756 (observer_test_third_notification_function): Likewise.
758 2003-03-17 J. Brobecker <brobecker@gnat.com>
760 * hppa-tdep.c (gdb_assert.h): Add missing #include.
761 * somsolib.c (gdb_assert.h): Likewise.
762 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
763 (somsolib.o): Likewise.
765 2003-03-17 Andrew Cagney <cagney@redhat.com>
767 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
768 BFD. Simplify setting of di.endian.
770 2003-03-17 Andrew Cagney <cagney@redhat.com>
772 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
773 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
775 From Elena Zannoni <ezannoni@redhat.com>
776 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
777 vector and floating-point parameters.
778 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
780 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
782 2003-03-17 Fernando Nasser <fnasser@redhat.com>
784 * MAINTAINERS: Remove my name from several maintainership roles.
786 2003-03-17 Andrew Cagney <cagney@redhat.com>
788 Fix frame off-by-one bug.
789 * frame-unwind.h (frame_this_id_ftype): Replace
790 frame_unwind_id_ftype.
791 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
792 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
793 with "prev_register".
794 * frame-unwind.c (frame_unwind_find_by_pc): Return
795 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
797 * dummy-frame.c (cached_find_dummy_frame): Delete function.
798 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
799 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
800 (dummy_frame_unwind): Update.
801 * sentinel-frame.c (sentinel_frame_prev_register): Replace
802 sentinel_frame_register_unwind.
803 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
804 (sentinel_frame_unwinder): Update.
805 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
806 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
807 * frame.c (create_sentinel_frame): Update. Initialize
808 "prologue_cache" instead of "unwind_cache".
809 (frame_register_unwind): Call this frame's prev_register with the
810 next frame and this frame's prologue cache.
811 (get_prev_frame): Simplify. Always call prev frame's this_id with
812 this frame and prev frame's prologue cache. Document that this
813 call is shifted one to the left when compared to the
814 frame_register_unwind call.
815 (legacy_saved_regs_prev_register): Replace
816 frame_saved_regs_register_unwind.
817 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
818 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
819 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
820 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
821 (d10v_frame_unwind): Update.
822 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
823 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
824 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
825 "saved_regs" with "this_saved_regs".
827 2003-03-16 Andrew Cagney <cagney@redhat.com>
829 * frame.c (frame_pop): Don't call target_store_registers. Fix
830 problem reported by Mark Kettenis.
832 2003-03-16 Mark Kettenis <kettenis@gnu.org>
834 * i386-tdep.c (i386_register_type): Renamed from
835 i386_register_virtual_type. Adjust function signature.
836 (i386_gdbarch_init): Set register_type instead of
837 deprecated_max_register_raw_size,
838 deprecated_max_register_virtual_size and register_virtual_type.
840 2003-03-14 Andrew Cagney <cagney@redhat.com>
842 * frame.c (get_prev_frame): When a legacy frame, always call
843 legacy_get_prev_frame. Simplify unwind code using assumption that
845 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
846 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
847 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
849 2003-03-14 Andrew Cagney <cagney@redhat.com>
851 * frame.c (get_saved_register): Delete function.
852 * frame.h (get_saved_register): Delete declaration.
853 * xstormy16-tdep.c: Update comment.
854 * regcache.h: Update comments.
855 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
856 get_saved_register and extract_address, use
857 frame_read_unsigned_register.
858 (sparc_frame_saved_pc): Ditto.
859 (sparc_get_saved_register): Instead of get_saved_register, use
861 (sparc_pop_frame): Ditto.
862 * findvar.c: Update comments.
863 (value_of_register): Call frame_register instead of
865 (value_from_register): Ditto.
866 * config/sparc/tm-sparc.h: Update comment.
867 * breakpoint.c: Update comment.
869 2003-03-14 Andrew Cagney <cagney@redhat.com>
871 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
873 * gdbarch.h, gdbarch.c: Re-generate.
874 * frame.h: Update comments.
875 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
876 * x86-64-tdep.c (x86_64_init_abi): Update.
877 * sparc-tdep.c (sparc_gdbarch_init): Update.
878 * sh-tdep.c (sh_gdbarch_init): Update.
879 * mips-tdep.c (mips_gdbarch_init): Update.
880 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
881 * cris-tdep.c (cris_gdbarch_init): Update.
882 * ia64-tdep.c (ia64_gdbarch_init): Update.
883 * frame.c (frame_register): Update.
884 (get_saved_register): Update.
885 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
887 2003-03-13 Andrew Cagney <cagney@redhat.com>
889 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
890 * gdbarch.h, gdbarch.c: Regenerate.
891 * valops.c (hand_function_call): Update comment.
892 * stack.c (return_command): Update comment.
893 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
894 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
895 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
896 * x86-64-tdep.c (x86_64_init_abi): Update.
897 * vax-tdep.c (vax_gdbarch_init): Update.
898 * v850-tdep.c (v850_gdbarch_init): Update.
899 * sparc-tdep.c (sparc_gdbarch_init): Update.
900 * sh-tdep.c (sh_gdbarch_init): Update.
901 * s390-tdep.c (s390_gdbarch_init): Update.
902 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
903 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
904 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
905 * mips-tdep.c (mips_gdbarch_init): Update.
906 * mcore-tdep.c (mcore_gdbarch_init): Update.
907 * m68k-tdep.c (m68k_gdbarch_init): Update.
908 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
909 * ia64-tdep.c (ia64_gdbarch_init): Update.
910 * i386-tdep.c (i386_gdbarch_init): Update.
911 * hppa-tdep.c (hppa_gdbarch_init): Update.
912 * h8300-tdep.c (h8300_gdbarch_init): Update.
913 * frv-tdep.c (frv_gdbarch_init): Update.
914 * cris-tdep.c (cris_gdbarch_init): Update.
915 * avr-tdep.c (avr_gdbarch_init): Update.
916 * arm-tdep.c (arm_gdbarch_init): Update.
917 * alpha-tdep.c (alpha_gdbarch_init): Update.
919 2003-03-13 Andrew Cagney <cagney@redhat.com>
921 * frame.c (legacy_frame_p): New function.
922 (get_prev_frame): Use legacy_frame_p.
923 * frame.h (legacy_frame_p): Declare.
925 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
927 * MAINTAINERS (write after approval): Alphabetically
930 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
932 * MAINTAINERS (write after approval): Add myself.
934 2003-03-12 Andrew Cagney <cagney@redhat.com>
936 * frame.c (get_prev_frame): Rename the frame parameter to
938 (get_next_frame, legacy_get_prev_frame): Ditto.
940 2003-03-12 Andrew Cagney <cagney@redhat.com>
942 * frame.c (get_current_frame): Check target_has_registers before
943 checking target_has_stack.
944 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
945 instead of deprecated_selected_frame.
946 * findvar.c (value_of_register): Pass "frame", not
947 deprecated_selected_frame, to value_of_builtin_reg.
949 2003-03-12 Andrew Cagney <cagney@redhat.com>
951 * regcache.c (regcache_cooked_write_signed): New function.
952 (regcache_cooked_write_unsigned): New function.
953 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
954 (regcache_cooked_read_signed): Fix regnum in range assertion.
955 * regcache.h (regcache_cooked_write_signed): Declare.
956 (regcache_cooked_write_unsigned): Declare.
958 2003-03-12 Andrew Cagney <cagney@redhat.com>
960 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
961 * gdbarch.h, gdbarch.c: Re-generate.
962 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
963 * x86-64-tdep.h: Update.
964 * x86-64-tdep.c (x86_64_init_abi): Update.
965 * v850-tdep.c (v850_gdbarch_init): Update.
966 * sparc-tdep.c (sparc_gdbarch_init): Update.
967 * sh-tdep.c (sh_gdbarch_init): Update.
968 * s390-tdep.c (s390_gdbarch_init): Update.
969 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
970 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
971 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
972 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
973 * mips-tdep.c (mips_gdbarch_init): Update.
974 * mcore-tdep.c (mcore_gdbarch_init): Update.
975 * m68k-tdep.c (m68k_gdbarch_init): Update.
976 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
977 * ia64-tdep.c (ia64_gdbarch_init): Update.
978 * i386-tdep.c (i386_gdbarch_init): Update.
979 * i386-interix-tdep.c (i386_interix_init_abi): Update.
980 * hppa-tdep.c (hppa_gdbarch_init): Update.
981 * h8300-tdep.c (h8300_gdbarch_init): Update.
982 * frv-tdep.c (frv_gdbarch_init): Update.
983 * cris-tdep.c (cris_gdbarch_init): Update.
984 * avr-tdep.c (avr_gdbarch_init): Update.
985 * arm-tdep.c (arm_gdbarch_init): Update.
986 * alpha-tdep.c (alpha_gdbarch_init): Update.
987 * sh-tdep.c (sh_init_extra_frame_info): Update.
988 (sh64_init_extra_frame_info): Update.
989 * ns32knbsd-nat.c (frame_num_args): Update.
990 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
991 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
992 (xstormy16_frame_chain_valid): Update.
993 * vax-tdep.c (vax_saved_pc_after_call): Update.
994 * v850-tdep.c (v850_frame_chain): Update.
995 (v850_pop_frame): Update.
996 (v850_init_extra_frame_info): Update.
997 * sparc-tdep.c (setup_arbitrary_frame): Update.
998 * ns32k-tdep.c (umax_frame_num_args): Update.
999 * s390-tdep.c (s390_pop_frame_regular): Update.
1000 * mn10300-tdep.c (mn10300_frame_chain): Update.
1001 (mn10300_pop_frame_regular): Update.
1002 (mn10300_init_extra_frame_info): Update.
1003 * mips-tdep.c (mips_init_frame_pc_first): Update.
1004 (mips_frame_chain): Update.
1005 (mips_pop_frame): Update.
1006 * mcore-tdep.c (mcore_frame_chain): Update.
1007 (mcore_pop_frame): Update.
1008 (mcore_init_extra_frame_info): Update.
1009 * arch-utils.c (init_frame_pc_default): Update.
1010 * m68k-tdep.c (isi_frame_num_args): Update.
1011 (delta68_frame_num_args): Update.
1012 (news_frame_num_args): Update.
1013 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1014 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1015 (alpha_frame_chain): Update.
1016 (alpha_pop_frame): Update.
1017 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1018 (hppa_init_extra_frame_info): Update.
1019 (hppa_frame_chain): Update.
1020 (hppa_frame_chain_valid): Update.
1021 * cris-tdep.c (cris_init_extra_frame_info): Update.
1022 * avr-tdep.c (avr_init_extra_frame_info): Update.
1023 * arm-tdep.c (arm_frame_chain_valid): Update.
1024 (arm_init_extra_frame_info): Update.
1025 (arm_pop_frame): Update.
1026 * frame.c (frame_pc_unwind): Update.
1027 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1028 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1029 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1030 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1031 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1032 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1034 2003-03-12 Andrew Cagney <cagney@redhat.com>
1036 Eliminate the need for POP_FRAME.
1037 * frame.c (do_frame_unwind_register): New function.
1038 (frame_pop): When no POP_FRAME, pop the frame using register
1039 unwind and a scratch regcache.
1040 (frame_saved_regs_pop): Delete function.
1041 (trad_frame_unwinder): Update.
1042 * d10v-tdep.c (d10v_frame_pop): Delete function.
1043 (d10v_frame_unwind): Update.
1044 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1045 (sentinel_frame_unwinder): Update.
1046 * dummy-frame.c (dummy_frame_pop): Delete function.
1047 (dummy_frame_unwind): Update.
1048 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1049 (struct frame_unwind): Update.
1051 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1053 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1054 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1055 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1056 Do range checks on register number obtained from debugging info.
1057 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1058 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1059 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1061 (do_fp_register_row): Fix typo which caused double type to be
1062 used when attempting to unpack a float.
1064 2003-03-11 J. Brobecker <brobecker@gnat.com>
1066 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1068 2003-03-11 Andrew Cagney <cagney@redhat.com>
1070 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1071 frame. Problem found by Corinna Vinschen.
1073 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1075 * doublest.c (floatformat_from_length): Accept also
1076 the real size of 'long double' type.
1078 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1080 From Klee Dienes <kdienes@apple.com>:
1081 * breakpoint.c (bpstat_copy): Copy the command lines as well
1082 as the old value, to match what is freed in bpstat_clear.
1084 2003-03-10 David Carlton <carlton@math.stanford.edu>
1086 * minsyms.c (add_minsym_to_hash_table): Replace
1087 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1088 (compare_minimal_symbols, compact_minimal_symbols)
1089 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1090 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1091 of DEPRECATED_SYMBOL_MATCHES_NAME.
1092 (lookup_minimal_symbol_solib_trampoline): Ditto.
1094 2003-03-10 Andrew Cagney <cagney@redhat.com>
1096 * regcache.h (regcache_cooked_read_ftype): Define.
1097 (regcache_save, regcache_restore): Add a cooked_read parameter.
1098 * regcache.c (regcache_save, regcache_restore): Update.
1099 (do_cooked_read): New function.
1100 (regcache_cpy): Pass do_cooked_read to regcache_save and
1103 2003-03-10 Andrew Cagney <cagney@redhat.com>
1105 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1106 * gdbarch.h, gdbarch.c: Re-generate.
1107 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1108 * x86-64-tdep.h: Update.
1109 * x86-64-tdep.c (x86_64_init_abi): Update.
1110 * v850-tdep.c (v850_gdbarch_init): Update.
1111 * sparc-tdep.c (sparc_gdbarch_init): Update.
1112 * sh-tdep.c (sh_gdbarch_init): Update.
1113 * s390-tdep.c (s390_gdbarch_init): Update.
1114 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1115 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1116 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1117 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1118 * mips-tdep.c (mips_gdbarch_init): Update.
1119 * mcore-tdep.c (mcore_gdbarch_init): Update.
1120 * m68k-tdep.c (m68k_gdbarch_init): Update.
1121 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1122 * ia64-tdep.c (ia64_gdbarch_init): Update.
1123 * i386-tdep.c (i386_gdbarch_init): Update.
1124 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1125 * hppa-tdep.c (hppa_gdbarch_init): Update.
1126 * h8300-tdep.c (h8300_gdbarch_init): Update.
1127 * frv-tdep.c (frv_gdbarch_init): Update.
1128 * cris-tdep.c (cris_gdbarch_init): Update.
1129 * avr-tdep.c (avr_gdbarch_init): Update.
1130 * arm-tdep.c (arm_gdbarch_init): Update.
1131 * alpha-tdep.c (alpha_gdbarch_init): Update.
1132 * sh-tdep.c (sh_init_extra_frame_info): Update.
1133 (sh64_init_extra_frame_info): Update.
1134 * ns32knbsd-nat.c (frame_num_args): Update.
1135 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1136 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1137 (xstormy16_frame_chain_valid): Update.
1138 * vax-tdep.c (vax_saved_pc_after_call): Update.
1139 * v850-tdep.c (v850_frame_chain): Update.
1140 (v850_pop_frame): Update.
1141 (v850_init_extra_frame_info): Update.
1142 * sparc-tdep.c (setup_arbitrary_frame): Update.
1143 * ns32k-tdep.c (umax_frame_num_args): Update.
1144 * s390-tdep.c (s390_pop_frame_regular): Update.
1145 * mn10300-tdep.c (mn10300_frame_chain): Update.
1146 (mn10300_pop_frame_regular): Update.
1147 (mn10300_init_extra_frame_info): Update.
1148 * mips-tdep.c (mips_init_frame_pc_first): Update.
1149 (mips_frame_chain): Update.
1150 (mips_pop_frame): Update.
1151 * mcore-tdep.c (mcore_frame_chain): Update.
1152 (mcore_pop_frame): Update.
1153 (mcore_init_extra_frame_info): Update.
1154 * arch-utils.c (init_frame_pc_default): Update.
1155 * m68k-tdep.c (isi_frame_num_args): Update.
1156 (delta68_frame_num_args): Update.
1157 (news_frame_num_args): Update.
1158 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1159 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1160 (alpha_frame_chain): Update.
1161 (alpha_pop_frame): Update.
1162 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1163 (hppa_init_extra_frame_info): Update.
1164 (hppa_frame_chain): Update.
1165 (hppa_frame_chain_valid): Update.
1166 * cris-tdep.c (cris_init_extra_frame_info): Update.
1167 * avr-tdep.c (avr_init_extra_frame_info): Update.
1168 * arm-tdep.c (arm_frame_chain_valid): Update.
1169 (arm_init_extra_frame_info): Update.
1170 (arm_pop_frame): Update.
1171 * frame.c (frame_pc_unwind): Update.
1172 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1173 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1174 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1175 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1176 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1177 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1179 2003-03-10 Andrew Cagney <cagney@redhat.com>
1181 * gdbarch.sh (gdbarch_unwind_pc): New method.
1182 * gdbarch.h, gdbarch.c: Regenerate.
1183 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1184 but use read_pc and FRAME_SAVED_PC as fall backs.
1185 (frame_saved_regs_pc_unwind): Delete function.
1186 (trad_frame_unwinder): Update.
1187 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1188 (struct frame_unwind): Update.
1189 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1190 (dummy_frame_unwind): Update.
1191 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1192 (sentinel_frame_unwinder): Update.
1193 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1194 (d10v_frame_unwind): Update.
1195 (d10v_unwind_pc): New function.
1196 (d10v_gdbarch_init): Set unwind_pc.
1198 2003-03-10 Andrew Cagney <cagney@redhat.com>
1200 * gdbarch.h: Re-generate.
1202 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1204 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1207 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1209 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1211 2003-03-08 Andrew Cagney <cagney@redhat.com>
1213 * cli-out.c: Update copyright.
1214 (cli_out_data): Define typedef. Use instead of ui_out_data.
1216 2003-03-08 Andrew Cagney <cagney@redhat.com>
1218 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1221 2003-03-07 Andrew Cagney <cagney@redhat.com>
1223 * gdbarch.sh: Don't generate two macro definitions when an
1224 undefined macro taking no arguments.
1225 * gdbarch.h: Regenerate.
1227 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1229 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1230 (x86_64_unwind_dummy_id): New functions.
1231 (x86_64_init_abi): Register these two new functions.
1233 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1235 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1236 (x86_64_skip_prologue): Move prologue detection to
1238 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1240 2003-03-05 Andrew Cagney <cagney@redhat.com>
1242 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1243 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1244 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1245 to use unwind_dummy_id when a dummy frame.
1246 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1248 * gdbarch.h, gdbarch.c: Regneerate.
1250 2003-03-05 Andrew Cagney <cagney@redhat.com>
1252 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1253 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1254 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1257 2003-03-05 Andrew Cagney <cagney@redhat.com>
1259 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1260 (struct d10v_unwind_cache): Delete field "frameless". Replace
1261 "next_addr" with "sp_offset". Add "r11_offset".
1262 (d10v_frame_unwind_cache): Update.
1263 (prologue_find_regs): Update. When "mv r11, sp", save the
1264 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1265 RN was saved in r11_offset.
1267 2003-03-05 Andrew Cagney <cagney@redhat.com>
1269 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1270 cached PC value in the next frame.
1272 2003-03-05 Andrew Cagney <cagney@redhat.com>
1274 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1275 "id_unwind_cache" with "id".
1276 (frame_id_unwind): Delete declaration.
1277 * frame.c (frame_id_unwind): Delete function.
1278 (get_prev_frame): Call the frame id unwind method directly. Store
1279 the returned next frame's ID value in NEXT_FRAME. Note that there
1280 is a problem with the wrong unwind ID being called with the wrong
1283 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1285 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1287 2003-03-05 James Ingham <jingham@apple.com>
1288 Daniel Jacobowitz <drow@mvista.com>
1290 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1291 (auto_cp_abi): New variable.
1292 (current_cp_abi, num_cp_abis): Make static.
1293 (CP_ABI_MAX): Define.
1294 (cp_abis): Turn into an array.
1295 (value_virtual_fn_field): Fix formatting.
1296 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1298 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1299 (list_cp_abis, _initialize_cp_abi): New functions.
1300 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1301 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1302 switch_to_cp_abi. Update prototype for register_cp_abi.
1303 * Makefile.in (cp-abi.o): Update dependencies.
1304 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1305 instead of switch_to_cp_abi.
1306 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1308 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1310 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1312 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1314 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1315 * dwarf2loc.c: Include "regcache.h".
1316 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1318 * Makefile.in (dwarf2loc.o): Update dependencies.
1320 2003-03-04 Theodore A. Roth <troth@openavr.org>
1322 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1323 number of io registers reported by remote target is not a multiple of
1326 2003-03-04 David Carlton <carlton@math.stanford.edu>
1328 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1329 (lookup_symbol_aux_psymtabs): Update call to
1330 lookup_partial_symbol.
1331 (lookup_transparent_type, find_main_psymtab)
1332 (make_symbol_overload_list): Ditto.
1334 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1336 * MAINTAINERS (Write after approval): Update my email address.
1338 2003-03-03 Andrew Cagney <cagney@redhat.com>
1340 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1341 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1342 predicate. Replace MAX_REGISTER_RAW_SIZE.
1343 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1344 MAX_REGISTER_VIRTUAL_SIZE.
1345 * regcache.c (legacy_max_register_raw_size): New function.
1346 (legacy_max_register_virtual_size): New function.
1347 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1348 (MAX_REGISTER_RAW_SIZE): Define.
1349 (legacy_max_register_raw_size): Declare.
1350 (legacy_max_register_virtual_size): Declare.
1351 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1352 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1353 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1354 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1355 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1356 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1357 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1358 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1359 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1360 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1361 * vax-tdep.c (vax_gdbarch_init): Update.
1362 * v850-tdep.c (v850_gdbarch_init): Update.
1363 * sparc-tdep.c (sparc_gdbarch_init): Update.
1364 * sh-tdep.c (sh_gdbarch_init): Update.
1365 * s390-tdep.c (s390_gdbarch_init): Update.
1366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1367 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1368 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1369 * mips-tdep.c (mips_gdbarch_init): Update.
1370 * mcore-tdep.c (mcore_gdbarch_init): Update.
1371 * m68k-tdep.c (m68k_gdbarch_init): Update.
1372 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1373 * ia64-tdep.c (ia64_gdbarch_init): Update.
1374 * i386-tdep.c (i386_gdbarch_init): Update.
1375 * hppa-tdep.c (hppa_gdbarch_init): Update.
1376 * h8300-tdep.c (h8300_gdbarch_init): Update.
1377 * frv-tdep.c (frv_gdbarch_init): Update.
1378 * cris-tdep.c (cris_gdbarch_init): Update.
1379 * avr-tdep.c (avr_gdbarch_init): Update.
1380 * arm-tdep.c (arm_gdbarch_init): Update.
1381 * alpha-tdep.c (alpha_gdbarch_init): Update.
1382 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1383 max_register_raw_size or max_register_virtual_size.
1385 2003-03-03 David Carlton <carlton@math.stanford.edu>
1387 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1388 SYMBOL_MATCHES_NAME, add comment.
1389 (SYMBOL_MATCHES_NATURAL_NAME): New.
1390 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1391 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1392 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1393 * symtab.c (lookup_partial_symbol): Use
1394 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1396 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1397 SYMBOL_MATCHES_NAME.
1400 2003-03-03 David Carlton <carlton@math.stanford.edu>
1402 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1403 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1404 by regexp matching against SYMBOL_NATURAL_NAME.
1406 2003-03-03 David Carlton <carlton@math.stanford.edu>
1408 * linespec.c (find_method): Extract code into collect_methods.
1409 (collect_methods): New.
1411 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1413 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1416 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1417 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1419 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1421 * arch-utils.c (generic_register_byte): Fix to use the loop index
1422 and not regnum when summing the size of all registers up to regnum.
1424 2003-03-01 Andrew Cagney <cagney@redhat.com>
1426 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1427 FRAME_INIT_SAVED_REGS.
1428 * gdbarch.h, gdbarch.c: Regenerate.
1429 * stack.c (frame_info): Update.
1430 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1431 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1432 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1433 * ns32k-tdep.c (ns32k_pop_frame): Update.
1434 * mips-tdep.c (mips_pop_frame): Update.
1435 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1436 * ia64-tdep.c (ia64_frame_chain): Update.
1437 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1438 (ia64_frameless_function_invocation): Update.
1439 (ia64_init_extra_frame_info): Update.
1440 (ia64_pop_frame_regular): Update.
1441 * frame.h (struct frame_info): Update comment.
1442 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1443 * frame.c (frame_saved_regs_register_unwind): Update.
1444 (frame_saved_regs_register_unwind): Update.
1445 (deprecated_generic_get_saved_register): Update.
1446 * cris-tdep.c: Update comment.
1447 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1450 * x86-64-tdep.c (x86_64_init_abi): Update.
1451 * vax-tdep.c (vax_gdbarch_init): Update.
1452 * v850-tdep.c (v850_gdbarch_init): Update.
1453 * sparc-tdep.c (sparc_gdbarch_init): Update.
1454 * sh-tdep.c (sh_gdbarch_init): Update.
1455 * s390-tdep.c (s390_gdbarch_init): Update.
1456 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1457 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1458 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1459 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1460 * mips-tdep.c (mips_gdbarch_init): Update.
1461 * mcore-tdep.c (mcore_gdbarch_init): Update.
1462 * m68k-tdep.c (m68k_gdbarch_init): Update.
1463 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1464 * ia64-tdep.c (ia64_gdbarch_init): Update.
1465 * i386-tdep.c (i386_gdbarch_init): Update.
1466 * frv-tdep.c (frv_gdbarch_init): Update.
1467 * avr-tdep.c (avr_gdbarch_init): Update.
1468 * arm-tdep.c (arm_gdbarch_init): Update.
1469 * alpha-tdep.c (alpha_gdbarch_init): Update.
1471 2003-03-01 Andrew Cagney <cagney@redhat.com>
1473 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1474 option enum and switch. When no windows, set the interpreter to
1477 2003-03-01 Andrew Cagney <cagney@redhat.com>
1479 * main.c (captured_main): Replace magic option characters with an
1482 2003-03-01 Andrew Cagney <cagney@redhat.com>
1484 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1485 INIT_EXTRA_FRAME_INFO.
1486 * gdbarch.h, gdbarch.c: Regenerate.
1487 * arm-tdep.c: Update comments.
1488 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1489 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1490 * frame.h, avr-tdep.c: Ditto.
1491 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1492 (create_new_frame, legacy_get_prev_frame): Ditto.
1493 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1494 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1495 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1496 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1497 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1498 * v850-tdep.c (v850_gdbarch_init): Ditto.
1499 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1500 * sh-tdep.c (sh_gdbarch_init): Ditto.
1501 * s390-tdep.c (s390_gdbarch_init): Ditto.
1502 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1503 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1504 * mips-tdep.c (mips_gdbarch_init): Ditto.
1505 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1506 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1507 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1508 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1509 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1510 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1511 * frv-tdep.c (frv_gdbarch_init): Ditto.
1512 * cris-tdep.c (cris_gdbarch_init): Ditto.
1513 * avr-tdep.c (avr_gdbarch_init): Ditto.
1514 * arm-tdep.c (arm_gdbarch_init): Ditto.
1515 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1516 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1518 2003-03-01 Andrew Cagney <cagney@redhat.com>
1520 * gdbarch.sh (register_type): New function with predicate.
1521 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1522 * gdbarch.h, gdbarch.c: Re-generate.
1523 * arch-utils.c (generic_register_byte): Use generic_register_size.
1524 (generic_register_size): When available, use
1525 gdbarch_register_type.
1526 * regcache.c (init_regcache_descr): When available, initialize the
1527 register type array using gdbarch_register_type. If the
1528 architecture supplies gdbarch_register_type, do not use the legacy
1530 * d10v-tdep.c (d10v_register_type): Replace
1531 d10v_register_virtual_type.
1532 (d10v_gdbarch_init): Set register_type instead of
1533 register_virtual_type.
1535 2003-03-01 Andrew Cagney <cagney@redhat.com>
1537 * Makefile.in (ax-gdb.o): Update dependencies.
1538 * ax-gdb.c: Include "regcache.h".
1539 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1540 * findvar.c (value_of_register): Ditto.
1541 * infcmd.c (default_print_registers_info): Ditto.
1543 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1545 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1546 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1548 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1550 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1553 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1555 * Makefile.in (dwarf2loc.o): Update dependencies.
1556 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1557 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1558 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1559 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1560 (locexpr_tracepoint_var_ref): New function.
1561 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1563 2003-02-28 Andrew Cagney <cagney@redhat.com>
1565 * regcache.c (register_size): New function.
1566 * regcache.h (register_size): Declare
1567 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1568 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1570 2003-02-28 David Carlton <carlton@math.stanford.edu>
1572 * linespec.c (decode_compound): Extract code into find_method.
1575 2003-02-28 J. Brobecker <brobecker@gnat.com>
1577 * Makefile.in: Add rules to build and link in observer.o.
1579 2003-02-27 J. Brobecker <brobecker@gnat.com>
1581 * observer.c: Minor comments edits.
1583 2003-02-27 J. Brobecker <brobecker@gnat.com>
1585 * observer.h, observer.c: New file.
1587 2003-02-27 Andrew Cagney <cagney@redhat.com>
1589 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1591 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1593 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1594 (M6812_OP_STS_EXT): Likewise.
1595 (m6811_prologue): Use the above to recognize prologue.
1596 (m6812_prologue): Likewise.
1598 2003-02-27 David Carlton <carlton@math.stanford.edu>
1600 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1602 (compare_psymbols): Ditto.
1603 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1605 2003-02-27 Michael Snyder <msnyder@redhat.com>
1607 * f-lang.c (build_fortran_types): New function.
1608 (_initialize_f_language): Gdbarch-register built-in fortran types.
1609 * doublest.c (extract_floating): Fix warning text.
1611 2003-02-27 Andrew Cagney <cagney@redhat.com>
1613 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1614 predicate. Replaces PUSH_DUMMY_FRAME.
1615 * gdbarch.h, gdbarch.c: Regnerate.
1616 * valops.c (hand_function_call): Update. Call
1617 generic_push_dummy_frame directly.
1618 * vax-tdep.c (vax_gdbarch_init): Update.
1619 * sparc-tdep.c (sparc_gdbarch_init): Update.
1620 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1621 * m68k-tdep.c (m68k_gdbarch_init): Update.
1622 * hppa-tdep.c (hppa_gdbarch_init): Update.
1623 * alpha-tdep.c (alpha_gdbarch_init): Update.
1624 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1625 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1626 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1627 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1628 push_dummy_frame to generic_push_dummy_frame.
1629 * v850-tdep.c (v850_gdbarch_init): Ditto.
1630 * sh-tdep.c (sh_gdbarch_init): Ditto.
1631 * s390-tdep.c (s390_gdbarch_init): Ditto.
1632 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1633 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1634 * mips-tdep.c (mips_gdbarch_init): Ditto.
1635 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1637 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1638 * i386-tdep.c (i386_gdbarch_init): Ditto.
1639 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1640 * frv-tdep.c (frv_gdbarch_init): Ditto.
1641 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1642 * cris-tdep.c (cris_gdbarch_init): Ditto.
1643 * avr-tdep.c (avr_gdbarch_init): Ditto.
1644 * arm-tdep.c (arm_gdbarch_init): Ditto.
1646 2003-02-26 Kevin Buettner <kevinb@redhat.com>
1648 * mips-tdep.c (show_mips_abi): New function.
1649 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1650 command ``show mips abi''.
1652 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1654 From Elena Zannoni <ezannoni@redhat.com>
1655 * dbxread.c (process_one_symbol): Only record line 0 if one or
1656 more sline entries have been seen for the function.
1658 2003-02-26 Michael Chastain <mec@shout.net>
1660 * configure: Regenerate with autoconf 000227.
1662 2003-02-26 Michael Chastain <mec@shout.net>
1665 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1666 for old libc5/glibc.
1667 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1669 2003-02-26 Kris Warkentin <kewarken@qnx.com>
1671 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1672 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1674 2003-02-26 Michael Chastain <mec@shout.net>
1676 * configure.in: New variable HAVE_UINTPTR_T.
1677 * configure, config.in: Regenerated.
1679 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
1682 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1684 2003-02-25 Andrew Cagney <cagney@redhat.com>
1686 * frame.c (get_prev_frame): Add comment on check for
1687 inside_entry_func. Only check for inside_entry_file when not a
1688 dummy and not a sentinel. Check that the new frame is not inner
1691 2003-02-25 Andrew Cagney <cagney@redhat.com>
1693 * frame.c (frame_debug): New variable.
1694 (_initialize_frame): Add "set/show debug frame" command.
1695 (get_prev_frame): When frame_debug, print reason why unwind
1698 2003-02-25 Michael Chastain <mec@shout.net>
1700 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1701 to avoid uintptr_t definition problems.
1703 2003-02-25 David Carlton <carlton@math.stanford.edu>
1705 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1706 (SYMBOL_LINKAGE_NAME): Ditto.
1707 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1708 SYMBOL_LINKAGE_NAME.
1709 (struct general_symbol_info): Expand comment.
1710 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1711 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1712 (SYMBOL_MATCHES_REGEXP): Ditto.
1713 * symtab.c (symbol_natural_name): New function.
1714 * objfiles.h: Replace all uses of SYMBOL_NAME by
1715 DEPRECATED_SYMBOL_NAME.
1716 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1717 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1718 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1719 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1720 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1721 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1722 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1723 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1724 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1725 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1727 * ada-exp.y: Update copyright.
1728 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1729 * cp-valprint.c: Ditto.
1731 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1733 * infptrace.c (detach): Do not flag error if ptrace detach fails
1734 and errno is set to ESRCH.
1736 2003-02-24 Andrew Cagney <cagney@redhat.com>
1738 * infptrace.c (udot_info): Change type of udot_off to long. Use
1739 paddr when printing udot_off's value.
1741 2003-02-24 David Carlton <carlton@math.stanford.edu>
1743 * symtab.c (make_symbol_overload_list): Only read in partial
1744 symtabs containing a matching partial symbol.
1746 2003-02-24 David Carlton <carlton@math.stanford.edu>
1748 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1749 do the comparison, not strcmp.
1750 * symfile.c (compare_psymbols): Ditto.
1751 * defs.h: Declare strcmp_iw_ordered.
1752 * utils.c (strcmp_iw_ordered): New function.
1754 2003-02-24 Jim Blandy <jimb@redhat.com>
1756 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1757 support, shared libs): Remove my name from here, to better reflect
1760 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1762 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1763 (target_ops): Add to_have_continuable_watchpoint.
1764 * target.c (update_current_target): Add INHERIT line for
1765 to_have_continuable_watchpoint.
1766 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1767 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1768 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1769 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1771 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
1773 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1776 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1778 * solib.c (solib_open): Call target defined search function after
1779 failing with solib-search-path.
1780 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1781 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1783 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1785 * MAINTAINERS: Add myself to Write After section.
1787 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1789 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1791 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1793 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1794 (m68hc11_add_reggroups): New function.
1795 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1796 (m68hc11_gdbarch_init): Install the reggroups.
1797 (_initialize_m68hc11_tdep): Initialize them.
1799 2003-02-21 James E Wilson <wilson@tuliptree.org>
1801 * MAINTAINERS: Update my email address.
1803 2003-02-21 David Carlton <carlton@math.stanford.edu>
1805 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1807 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
1809 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1810 * symtab.h: Add opaque declarations of struct axs_value and
1812 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1813 (struct location_funcs): New type.
1814 (struct symbol): Add "loc" to aux_value.
1815 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1816 * dwarf2read.c: Include "dwarf2expr.h".
1817 (dwarf2_symbol_mark_computed): New function.
1818 (read_func_scope): Use it.
1819 (var_decode_location): New function.
1820 (new_symbol): Use it.
1821 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1823 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1824 (dwarf2expr_h, dwarf2loc_h): New variables.
1825 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1826 (dwarf2expr.o, dwarf2loc.o): New rules.
1827 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1828 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1830 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1831 * m2-exp.y (yylex): Likewise.
1832 * printcmd.c (address_info, print_frame_args): Likewise.
1833 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1834 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1835 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1836 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1837 * symtab.c (lookup_block_symbol): Likewise.
1839 2003-02-20 Adam Fedor <fedor@gnu.org>
1841 * symtab.h: Remove objc_specific struct
1842 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1843 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1844 Have language_objc use cplus_specific struct.
1846 2003-02-20 Tom Tromey <tromey@redhat.com>
1848 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1849 TYPE_NAME, when printing a String value. PR java/1075.
1851 2003-02-20 Adam Fedor <fedor@gnu.org>
1853 * objc-lang.h (find_methods): Remove declaration.
1854 * objc-lang.c (find_methods): Make static.
1856 2003-02-20 Christopher Faylor <cgf@redhat.com>
1858 * win32-nat.c (get_image_name): Check return value from
1860 (child_xfer_memory): Ditto.
1862 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1864 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1865 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1866 '${exec_prefix}' (in addition to the expansion thereof) as
1868 * configure: Rebuilt.
1870 2003-02-20 David Carlton <carlton@math.stanford.edu>
1872 * symtab.c (search_symbols): Revert the search_symbols part of my
1873 2002-12-23 patch. Add comment.
1875 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1877 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1878 * dbxread.c (elfstab_build_psymtabs): Don't call
1879 install_minimal_symbols.
1880 (stabsect_build_psymtabs): Likewise.
1881 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1883 * somread.c (som_symfile_read): Call install_minimal_symbols
1884 and do_cleanups earlier.
1885 * nlmread.c (nlm_symfile_read): Likewise.
1886 * mdebugread.c (elfmdebug_build_psymtabs): Call
1887 install_minimal_symbols and make appropriate cleanups.
1889 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1891 * solib.c (reload_shared_libraries): New function.
1892 (_initialize_solib): Add callbacks for ``set solib-search-path''
1893 and ``set solib-absolute-prefix''.
1895 2003-02-20 David Carlton <carlton@math.stanford.edu>
1897 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1899 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1900 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1901 * ada-typeprint.c (ada_typedef_print): Ditto.
1902 * ax-gdb.c (gen_var_ref): Ditto.
1903 * breakpoint.c (print_one_breakpoint): Ditto.
1904 * buildsym.c (finish_block): Ditto.
1905 * c-valprint.c (c_val_print): Ditto.
1906 * expprint.c (print_subexp): Ditto.
1907 * findvar.c (locate_var_value): Ditto.
1908 * infcmd.c (jump_command): Ditto.
1909 * linespec.c (decode_line_2, decode_compound): Ditto.
1910 * maint.c (maintenance_translate_address): Ditto.
1911 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1912 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1914 * p-valprint.c (pascal_val_print): Ditto.
1915 * stabsread.c (define_symbol): Ditto.
1916 * stack.c (print_frame, frame_info, print_block_frame_locals)
1917 (print_frame_arg_vars, return_command): Ditto.
1918 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1919 * symmisc.c (print_symbol): Ditto.
1920 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1921 (compare_search_syms, print_symbol_info, print_msymbol_info)
1922 (rbreak_command): Ditto.
1923 * tracepoint.c (tracepoints_info): Ditto.
1924 * typeprint.c (typedef_print): Ditto.
1925 * valops.c (value_of_variable, hand_function_call): Ditto.
1926 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1927 * ada-typeprint.c: Update Copyright.
1928 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1929 * tracepoint.c, cli/cli-cmds.c: Ditto.
1931 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1933 * frame.c (generic_unwind_get_saved_register): Make non-static.
1934 * frame.h (generic_unwind_get_saved_register): Declare.
1935 * mips-tdep.c (read_next_frame_reg): Fetch register from
1936 current regcache when frame is NULL.
1937 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1939 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1940 instead of frame_register_unwind().
1942 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1944 * remote-sim.c (gdbsim_insert_breakpoint)
1945 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1948 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1950 * remote.c (_initialize_remote): Add commands "set/show remote
1951 hardware-watchpoint-limit" and "set/show remote
1952 hardware-breakpoint-limit".
1953 (remote_hw_watchpoint_limit): Initialize to -1.
1954 (remote_hw_breakpoint_limit): Ditto.
1955 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1957 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1959 * coff-pe-read.c: New file - support reading of minimal symbols from a
1960 portable executable using the export table.
1961 * coff-pe-read.h: New file.
1962 * coffread.c: Include coff-pe-read.h.
1963 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1964 debugging symbols found.
1965 * Makefile.in (SFILES): Add coff-pe-read.o.
1966 (coff_pe_read_h): Define.
1967 (COMMON_OBS): Add coff-pe-read.o.
1968 (coffread.o): Add coff_pe_read_h dependency.
1969 (coff-pe-read.o): New target.
1971 2003-02-19 David Carlton <carlton@math.stanford.edu>
1973 * Makefile.in (SFILES): Add block.c.
1975 (COMMON_OBS): Add block.o.
1977 (x86-64-tdep.o): Add $(block_h).
1978 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1979 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1980 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1981 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1982 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1983 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1984 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1985 * value.h: Add opaque declaration for struct block.
1986 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1987 * ada-lang.h: Ditto.
1988 * x86-64-tdep.c: #include "block.h"
1989 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1990 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1991 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1992 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1993 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1994 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1995 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1996 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1997 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1998 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1999 * symtab.c (block_function): Ditto.
2000 (contained_in): Ditto.
2001 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
2002 block.h. Add opaque declaration for struct block.
2003 * symtab.h: Move block_function and contained_in declarations to
2004 block.h. Add opaque declarations for struct block, struct
2006 (struct block): Move to block.h.
2007 (struct blockvector): Ditto.
2008 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2009 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2010 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2011 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2012 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2014 * block.c: New file.
2015 * block.h: New file.
2017 2003-02-19 Theodore A. Roth <troth@openavr.org>
2019 * avr-tdep.c (avr_extract_return_value): Remove function.
2020 (avr_store_return_value): Remove function.
2021 (avr_extract_struct_value_address): Remove function.
2022 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2024 2003-02-19 Andrew Cagney <ac131313@redhat.com>
2026 * rs6000-tdep.c: Include "gdb_assert.h".
2027 (registers_e500): Add "acc" and "spefscr".
2028 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2029 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2030 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2032 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2034 2003-02-18 Keith Seitz <keiths@redhat.com>
2036 * Makefile.in: Add gdbtk-interps.c.
2038 2003-02-18 Kevin Buettner <kevinb@redhat.com>
2040 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2041 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2043 2003-02-18 Andrew Cagney <cagney@redhat.com>
2045 * symtab.h (struct objfile): Add opaque declaration.
2047 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2049 From Jim Ingham <jingham@apple.com>:
2050 * dbxread.c (process_one_symbol): Use last_function_start rather
2051 than function_start_offset to find the real beginning of the
2052 current function. The latter is just the text section offset on
2053 some systems, the former is always the real function start.
2055 2003-02-17 Andrew Cagney <cagney@redhat.com>
2057 * configure.in: Revert ${target} != ${host}.
2059 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2061 * configure.in (Makefile): Use the test ${target} != ${host},
2062 instead of the absence of the "nm.h" file, to determine of the
2063 configuration non-native.
2064 * configure: Regenerate.
2066 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2068 From Brian Ford <ford@vss.fsi.com>
2070 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2071 conditionalize tui_active test.
2072 (lookup_cmd_1): Ditto.
2074 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2076 * configure.in: Add check for _etext.
2077 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2079 * config.in, configure: regenerated.
2081 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2083 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2085 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2087 * main.c (tui_version): Delete variable.
2088 (captured_main): When --tui, set interpreter_p to "tui" instead of
2089 enabling tui_version.
2090 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2092 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2093 * cli/cli-cmds.c (disassemble_command): Ditto.
2094 * defs.h (tui_version): Delete declaration.
2095 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2096 (tui-interp.o): Add rules.
2097 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2099 2003-02-14 Christopher Faylor <cgf@redhat.com>
2101 * win32-nat.c (register_loaded_dll): Correctly set address range for
2104 2003-02-12 Jason Molenda (jmolenda@apple.com)
2106 * symmisc.c (print_objfile_statistics): Include information about
2107 the number of psymtabs and symtabs in each object file.
2109 2003-02-13 Keith R Seitz <keiths@redhat.com>
2111 * main.h (struct captured_main_args): Add interpreter_p.
2112 * main.c (captured_main): Initialize interpreter_p from context.
2113 * gdb.c (main): Set interpreter_p argument.
2114 * Makefile.in (gdb.o): Add dependency for interps.h.
2116 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2118 * event-top.c (cli_command_loop): Delete declaration.
2119 (_initialize_event_loop): Delete function setting event_loop_hook.
2120 * event-top.h (cli_command_loop): Declare. Update copyright.
2121 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2122 * interps.c (current_interp_command_loop): When event_loop_p, call
2125 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2127 * interps.h (interp_command_loop_ftype): Change return type to
2130 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2132 * x86-64-tdep.c (x86_64_extract_return_value)
2133 (x86_64_store_return_value): Use regcache instead of regbuf.
2134 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2135 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2137 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2139 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2140 * aclocal.m4: Regenerate.
2141 * configure: Regenerate.
2143 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2144 TCL_LD_SEARCH_FLAGS.
2146 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2148 * dwarf2cfi.c: Reindented.
2150 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2152 * interps.c (clear_interpreter_hooks): Convert function definition
2155 2003-02-07 David Carlton <carlton@math.stanford.edu>
2157 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2159 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2161 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2162 (struct type): ...to here.
2163 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2165 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2166 (replace_type): Set length on all type variants for a given type.
2168 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2170 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2172 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2174 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2176 * Makefile.in (symm-nat.o): Update dependencies.
2177 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2178 (lynx-nat.o, ia64-linux-nat.): Ditto.
2179 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2180 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2181 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2183 * Makefile.in (inflow_h): Define.
2184 (procfs.o, inflow.o, procfs.o): Update dependencies.
2185 * inftarg.c (child_stop): Delete extern declaration of
2186 inferior_process_group. Include "inflow.h".
2187 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2188 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2189 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2190 (our_process_group, inferior_process_group): Extern declarations.
2192 * procfs.c: Include "gdb_assert.h".
2194 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2195 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2196 * jv-typeprint.c (java_type_print_base): Ditto.
2197 * typeprint.c (typedef_print): Eliminate STREQ.
2198 * cli/cli-script.c (define_command, define_command): Ditto.
2199 * main.c (captured_main): Ditto.
2200 * values.c (lookup_internalvar): Ditto.
2201 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2202 within `if' conditional.
2203 * linespec.c (decode_line_2): Ditto.
2204 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2205 (bfd_openw_with_cleanup): Ditto.
2207 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2209 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2210 legacy_extract_return_value and store_return_value to
2211 legacy_return_value.
2213 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2215 * win32-nat.c (get_relocated_section_addrs): New function. Find
2216 section load addresses for symbol handling in relocated DLLs.
2217 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2219 2003-02-05 Fred Fish <fnf@intrinsity.com>
2221 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2223 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2225 (angel_RDI_info): Ditto.
2226 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2228 (threads_continue_all_with_signals): Ditto.
2230 2003-02-05 Jim Ingham <jingham@apple.com>
2231 Keith Seitz <keiths@redhat.com>
2232 Elena Zannoni <ezannoni@redhat.com>
2233 Andrew Cagney <ac131313@redhat.com>
2235 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2236 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2237 (SUBDIR_MI_OBS): Add "mi-interp.o".
2238 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2239 (SFILES): Add "interps.c".
2240 (COMMON_OBS): Add "interps.o".
2241 (interps_h, mi_main_h): Define.
2242 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2243 (mi-main.o, main.o, event-top.o): Update dependencies.
2244 * cli/cli-interp.c: New file.
2245 * interps.h, interps.c: New files.
2246 * top.c: (gdb_init): Don't install the default interpreter, handed
2248 * main.c: Include "interps.h".
2249 (interpreter_p): Note that it should malloc'ed.
2250 (captured_command_loop): Call current_interp_command_loop.
2251 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2252 xfree and xstrdup when updating interpreter_p. Install the
2253 default interpreter. Add hack to stop mi1's copyright notice
2255 * event-top.h (gdb_setup_readline): Declare.
2256 (gdb_disable_readline): Declare.
2257 * event-top.c: Include "interps.h".
2258 (display_gdb_prompt): Call current_interp_display_prompt_p.
2259 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2260 gdb_stdlog, and gdb_stdtarg.
2261 (_initialize_event_loop): Don't call gdb_setup_readline.
2262 * cli-out.c (cli_out_set_stream): New function.
2263 * cli-out.h (cli_out_set_stream): Declare.
2265 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2267 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2268 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2269 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2270 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2271 config/i386/i386v42mp.mt: Removed.
2273 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2275 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2278 2003-02-05 Michael Chastain <mec@shout.net>
2280 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2281 2.12.1 and earlier versions.
2283 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2285 Remove orphaned hosts, targets and files.
2286 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2287 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2288 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2289 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2290 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2291 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2292 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2293 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2294 * config/sparc/tm-sp64sim.h: Delete.
2295 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2297 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2298 mips*-dec-mach3* targets.
2300 2003-02-04 Michael Chastain <mec@shout.net>
2302 * NEWS: Fix typo: sepcifying -> specifying.
2304 2003-02-04 Michael Chastain <mec@shout.net>
2306 * dwarfread.c: Add documentation on the state of dwarf-1,
2307 looking towards obsoletion.
2309 2003-02-03 Michael Chastain <mec@shout.net>
2311 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2312 gdb/testsuite/gdb.c++/pr-1023.exp.
2314 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2316 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2317 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2319 * utils.c (init_page_info): Delete reference to MPW in comments.
2320 * main.c (captured_main): Delete #ifdef MPW.
2322 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2324 * NEWS: Note that the m32r-*-elf* is obsolete.
2325 * monitor.c (monitor_expect): Obsolete reference to m32r.
2326 * configure.tgt: Mark m32r-*-elf* as obsolete.
2327 * MAINTAINERS: Mark m32k as obsolete.
2328 * m32r-rom.c: Obsolete file.
2329 * config/m32r/m32r.mt: Obsolete file.
2330 * config/m32r/tm-m32r.h: Obsolete file.
2331 * m32r-stub.c: Obsolete file.
2332 * m32r-tdep.c: Obsolete file.
2334 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2336 * NEWS: Mention that the z8k-zilog-none is obsolete.
2337 * MAINTAINERS: Mark z8k as obsolete.
2338 * configure.tgt: Obsolete the z8k-*-coff* target.
2339 * config/z8k/z8k.mt: Obsolete file.
2340 * config/z8k/tm-z8k.h: Obsolete file.
2341 * z8k-tdep.c: Obsolete file.
2343 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2345 * NEWS: Mention that the mn10200-elf is obsolete.
2346 * configure.tgt: Obsolete mn10200-*-* target.
2347 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2348 mention that the mn10200 is obsolete.
2349 * breakpoint.h: Ditto.
2350 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2351 * config/mn10200/mn10200.mt: Obsolete file.
2352 * config/mn10200/tm-mn10200.h: Obsolete file.
2353 * mn10200-tdep.c: Obsolete file.
2355 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2357 * MAINTAINERS: Mark h8500 as obsolete.
2358 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2359 * findvar.c (value_from_register): Ditto.
2360 * h8500-tdep.c: Mark file as obsolete.
2361 * config/h8500/h8500.mt: Ditto.
2362 * config/h8500/tm-h8500.h: Ditto.
2363 * NEWS: Mention that h8500 is obsolete.
2365 2003-02-04 David Carlton <carlton@math.stanford.edu>
2367 * objfiles.c (allocate_objfile): Always set name. Add comment at
2369 * jv-lang.c (get_dynamics_objfile): Add comment.
2371 2003-02-04 David Carlton <carlton@math.stanford.edu>
2373 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2374 * printcmd.c (build_address_symbolic): Replace uses of
2375 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2376 SYMBOL_NAME, and asm_demangle.
2379 2003-02-04 David Carlton <carlton@math.stanford.edu>
2381 * linespec.c (decode_compound): Extract code into
2383 (lookup_prefix_sym): New function.
2385 2003-02-04 David Carlton <carlton@math.stanford.edu>
2387 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2388 FLOAT_COERCION_BADNESS.
2389 * gdbtypes.c (rank_one_type): Replace all uses of
2390 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2392 2003-02-04 Jim Blandy <jimb@redhat.com>
2394 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2395 section, let dwarf_macinfo_section point to it, not
2398 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2400 Pointed out by Anton Blanchard <anton@samba.org>.
2401 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2402 (ppc_linux_at_sigtramp_return_path): Use it.
2404 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2406 * defs.h (streq): Add prototype.
2407 * utils.c (streq): New function.
2409 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2410 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2411 * mdebugread.c (new_symbol): Likewise.
2412 * stabsread.c (define_symbol): Likewise.
2413 * coffread.c (process_coff_symbol): Likewise.
2414 * dwarfread.c (new_symbol): Likewise.
2416 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2417 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2419 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2420 SYMBOL_INIT_DEMANGLED_NAME.
2421 * objfiles.c: Include "hashtab.h".
2422 (allocate_objfile): Call htab_set_functions_ex for the
2423 demangled_names_hash.
2424 (free_objfile): Call htab_delete for the demangled_names_hash.
2425 * objfiles.h (struct htab): Add declaration.
2426 (struct objfile): Add demangled_names_hash.
2427 * symfile.c: Include "hashtab.h".
2428 (reread_symbols): Call htab_delete for the demangled_names_hash.
2429 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2430 SYMBOL_NAME in the bcache.
2431 * symtab.c: Include "hashtab.h". Update comments.
2432 (create_demangled_names_hash, symbol_set_names): New functions.
2433 (symbol_find_demangled_name): New function, broken out from
2434 symbol_init_demangled_names.
2435 (symbol_init_demangled_names): Use it.
2436 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2437 (SYMBOL_SET_NAMES): New macro.
2438 (symbol_set_names): Add prototype.
2440 2003-02-03 Jim Blandy <jimb@redhat.com>
2442 Use a single, consistent representation for an empty minimal
2443 symbol table in an objfile.
2444 * objfiles.c (terminate_minimal_symbol_table): New function.
2445 (allocate_objfile): Call it.
2446 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2447 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2449 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2450 objfile has minimal symbols, compare minimal_symbol_count to zero,
2451 instead of comparing msymbols with NULL.
2452 * objfiles.c (have_minimal_symbols): Same.
2453 * solib-sunos.c (solib_add_common_symbols): Call
2454 terminate_minimal_symbol_table.
2455 * symfile.c (reread_symbols): Same.
2457 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2459 * s390-tdep.c (s390_address_class_type_flags)
2460 (s390_address_class_type_flags_to_name)
2461 (s390_address_class_name_to_type_flags): New functions.
2462 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2463 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2465 2003-02-03 Michael Snyder <msnyder@redhat.com>
2467 * arm-tdep.c: Fix spell-o in comment.
2469 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2471 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2472 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2473 error messages to contain BFD filename.
2475 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2477 Fix PR gdb/742 gdb/743 gdb/877
2478 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2479 (do_mixed_source_and_assembly): Use
2480 make_cleanup_ui_out_tuple_begin_end and
2481 make_cleanup_ui_out_tuple_begin_end.
2482 (do_mixed_source_and_assembly): Ditto.
2483 * thread.c (do_captured_list_thread_ids): Ditto.
2484 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2485 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2486 ui_out_tuple_end): Delete prototypes.
2487 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2488 ui_out_list_end, ui_out_tuple_end): Delete.
2490 From Kevin Buettner <kevinb@redhat.com>:
2491 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2492 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2493 (do_cleanup_table_end): New functions.
2494 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2495 Use cleanups to invoke_ui_out_tuple_end().
2496 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2497 * cli/cli-setshow.c (cmd_show_list): Use
2498 make_cleanup_ui_out_tuple_begin_end.
2500 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2502 * frame.c (frame_unwind_register): New function.
2503 (frame_unwind_unsigned_register): Use.
2504 (frame_unwind_signed_register): Use.
2505 (frame_read_register): New function.
2506 * frame.h (frame_unwind_register): Declare.
2507 (frame_read_register): Declare.
2509 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2510 and frame_unwind_register instead of read_memory, write_register
2511 and deprecated_write_register_bytes.
2513 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2515 * frame.h: Note that namelen can be negative.
2516 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2519 * NEWS: Mention that the d10v's `regs' command is deprecated.
2520 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2521 (d10v_print_registers_info): New function.
2522 (show_regs): Call d10v_print_registers_info.
2523 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2525 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2527 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2528 lost in the previous patch.
2530 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2532 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2533 * stack.c (print_frame_info_base): Output complete FRAME tuple
2534 for synthesized frames.
2536 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2538 * mips-nat.c (zerobuf): Delete.
2539 (fetch_inferior_registers): Alloc local zerobuf.
2540 (fetch_core_registers): Alloc local zerobuf.
2541 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2542 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2543 * thread-db.c (thread_db_store_registers): Ditto.
2544 * sh-tdep.c (sh_do_register): Ditto.
2545 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2546 * remote-sim.c (gdbsim_store_register): Ditto.
2547 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2548 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2549 * monitor.c (monitor_supply_register): Ditto.
2550 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2551 * mips-nat.c (fetch_inferior_registers): Ditto.
2552 * m68klinux-nat.c (fetch_register): Ditto.
2553 * lynx-nat.c (fetch_inferior_registers): Ditto.
2554 (fetch_inferior_registers): Ditto.
2555 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2556 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2557 (hpux_thread_store_registers): Ditto.
2558 * hppah-nat.c (fetch_register): Ditto.
2559 * hppab-nat.c (fetch_register): Ditto.
2560 * hppa-tdep.c (pa_register_look_aside): Ditto.
2561 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2562 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2564 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2566 * gdbarch.sh: Explictly specify all method levels. When a
2567 variable with an empty level, provide a non-multi-arch default.
2568 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2569 * gdbarch.h: Re-generate.
2570 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2571 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2573 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2575 * defs.h (host_pointer_to_address): Delete declaration.
2576 (address_to_host_pointer): Delete declaration.
2577 * utils.c (host_pointer_to_address): Delete function.
2578 (address_to_host_pointer): Delete function.
2579 * procfs.c (procfs_address_to_host_pointer): New function.
2580 * procfs.c (proc_set_watchpoint): Use.
2581 (procfs_can_use_hw_breakpoint): Update comments.
2582 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2583 (som_solib_add): Use.
2584 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2585 * hppa-tdep.c (unwind_command): Use.
2587 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2589 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2592 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2593 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2594 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2595 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2596 (define_symbol): Update.
2597 * symfile.c (generic_load): Remove references to nindy.
2598 * symtab.c: Remove references to nindy.
2600 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2602 * infcmd.c (print_float_info): Delete code conditional on
2604 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2605 * config/m68k/nm-apollo68b.h: Ditto.
2606 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2607 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2608 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2610 2003-02-01 Mark Kettenis <kettenis@gnu.org>
2612 * config/i386/tm-i386os9k.h: Removed.
2614 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2615 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2616 they're identical to i[3456]86-*-sysv* now.
2617 * config/i386/i386v32.mh: Removed.
2618 * config/i386/xm-i386v32.h: Removed.
2619 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2621 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2623 * config/i386/i386dgux.mh: Removed.
2624 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2626 * configure.in: Fix typo.
2627 * configure: Regenerated.
2629 2003-01-31 David Carlton <carlton@math.stanford.edu>
2631 * dwarf2read.c (dwarf2_locate_sections): Set
2632 dwarf_ranges_section.
2634 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2636 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2637 * utils.c: Update comments documenting legitimate uses of PTR.
2639 * utils.c: Re-indent.
2641 * config/djgpp/fnchange.lst: Delete nindy files.
2642 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2643 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2644 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2645 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2646 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2647 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2648 * Makefile.in (init.c): Remove nindy references.
2649 (saber_gdb): Delete rule.
2650 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2651 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2653 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2654 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2655 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2656 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2658 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2659 * saber.suppress: Delete file.
2661 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
2663 * dbxread.c (stabs_data): New static variable.
2664 (fill_symbuf): Support an in-memory buffer for stabs data.
2665 (stabs_seek): New function.
2666 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2667 (read_ofile_symtab): Use stabs_seek.
2668 (elfstab_build_psymtabs): Take an asection* instead of
2669 an offset and size. Relocate the stabs data if necessary.
2670 Save the section* for dbx_psymtab_to_symtab.
2671 * dwarf2read.c: Add section variables for each debug section.
2672 (dwarf2_locate_sections): Fill them in.
2673 (dwarf2_read_section): Take an asection* argument.
2674 Relocate the section contents if necessary.
2675 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2676 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2677 it to dwarf2_read_section.
2678 (dwarf2_build_frame_info): Update callers.
2679 * elfread.c (elf_symfile_read): Update call to
2680 elfstab_build_psymtabs.
2681 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2682 (DBX_STAB_SECTION): New macro.
2683 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2684 * symfile.c (symfile_dummy_outputs): New function.
2685 (symfile_relocate_debug_section): New function.
2686 * symfile.h (symfile_relocate_debug_section): Add prototype.
2688 2003-01-31 Richard Henderson <rth@redhat.com>
2690 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2691 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2692 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2693 * alpha-tdep.c (alpha_register_name): Add "unique".
2694 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2695 (ALPHA_UNIQUE_REGNUM): New.
2696 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2698 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2700 * README: Remove reference to Ericsson 1800 monitor.
2701 * Makefile.in (remote-es.o): Delete rule.
2702 (ALLDEPFILES): Delete remote-es.c.
2703 * remote-es.c: Delete file.
2704 * config/m68k/es1800.mt: Delete file.
2705 * config/djgpp/fnchange.lst: Update.
2706 * configure.tgt: Delete m68*-ericsson-* target.
2708 2003-01-31 Adam Fedor <fedor@gnu.org>
2710 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2711 Remove duplicate/shadowing variable of same name.
2713 2003-01-30 Jim Blandy <jimb@redhat.com>
2715 * symfile.c (find_separate_debug_file): Assert that the objfile's
2716 directory name we compute ends with a slash, and then assume that
2717 that's so everywhere we use it.
2719 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
2721 * valops.c (value_assign): Flush frame cache after stores to memory
2724 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2726 * Makefile.in (mon960-rom.o): Delete rule.
2727 * mon960-rom.c: Delete file.
2729 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2731 * d10v-tdep.c: Include "frame-unwind.h".
2732 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2734 (next_addr, uses_frame): Delete.
2735 (struct d10v_unwind_cache): Define.
2736 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2737 Use info instead of next_addr and uses_frame globals.
2738 (d10v_frame_init_saved_regs): Delete function.
2739 (d10v_init_extra_frame_info): Delete function.
2740 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2741 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2742 init_frame_pc or frame_saved_pc.
2743 (d10v_pop_frame): Delete function.
2744 (do_d10v_pop_frame): Delete function.
2745 (d10v_frame_chain): Delete function.
2746 (d10v_frame_chain_valid): Delete function.
2747 (d10v_frame_pc_unwind): New function.
2748 (d10v_frame_id_unwind): New function.
2749 (saved_regs_unwinder): New function.
2750 (d10v_frame_register_unwind): New function.
2751 (d10v_frame_pop): New function.
2752 (d10v_frame_unwind): New variable.
2753 (d10v_frame_p): New function.
2754 (d10v_frame_saved_pc): Delete function.
2755 * Makefile.in (d10v-tdep.o): Update dependencies.
2757 2003-01-30 J. Brobecker <brobecker@gnat.com>
2759 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2760 causing some regressions due to a change in the default value
2763 2003-01-29 Richard Henderson <rth@redhat.com>
2764 Elena Zannoni <ezannoni@redhat.com>
2765 Daniel Jacobowitz <drow@mvista.com>
2768 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2770 (RANGES_SECTION): New.
2771 (dwarf_ranges_buffer): New variable.
2772 (struct comp_unit_head): Add member "die".
2773 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2774 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2775 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2776 (dwarf2_locate_sections): Likewise.
2777 (dwarf2_build_psymtabs): Read .debug_ranges.
2778 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2779 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2780 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2781 Look for DW_AT_ranges and return the bounding box.
2783 2003-01-29 Brian Ford <ford@vss.fsi.com>
2785 * win32-nat.c (cygwin_pid): Removed as unused.
2786 (child_attach): Try fall back to Cygwin pid.
2788 2003-01-29 Jim Blandy <jimb@redhat.com>
2790 * objfiles.h (struct objfile): Doc fix.
2792 2003-01-29 Andrew Cagney <ac131313@redhat.com>
2794 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2795 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2796 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2797 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2798 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2799 (FRAME_SAVED_PC): Change to a function with predicate.
2800 * gdbarch.h, gdbarch.c: Re-generate.
2802 2003-01-28 Andrew Cagney <ac131313@redhat.com>
2804 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2806 * complaints.c (complain): Delete function.
2807 * complaints.h (struct deprecated_complaint): Delete definition.
2808 (complain): Delete declaration.
2810 2003-01-28 Kevin Buettner <kevinb@redhat.com>
2812 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2815 2003-01-27 Andrew Cagney <ac131313@redhat.com>
2817 * sentinel-frame.h, sentinel-frame.c: New files.
2818 * Makefile.in (frame.o): Update dependencies.
2819 (SFILES): Add sentinel-frame.c.
2820 (sentinel_frame_h): Define.
2821 (COMMON_OBS): Add sentinel-frame.o.
2822 (sentinel-frame.o): Specify dependencies.
2823 * frame.c: Include "sentinel-frame.h".
2824 (frame_register_unwind): Rewrite assuming that there is always a a
2826 (frame_register, generic_unwind_get_saved_register): Ditto.
2827 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2828 (create_sentinel_frame, unwind_to_current_frame): New functions.
2829 (get_current_frame): Rewrite using create_sentinel_frame and
2830 unwind_to_current_frame. When possible, always create a frame.
2831 (create_new_frame): Set next to the sentinel frame.
2832 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2833 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2834 ID cache when necessary.
2835 (frame_saved_regs_id_unwind): Use frame_relative_level.
2836 (deprecated_generic_get_saved_register): Use frame_relative_level,
2837 get_frame_saved_regs, get_frame_pc, get_frame_base and
2839 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2842 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2844 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2846 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2848 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2849 (maintenance_set_profile_cmd): Use error () instead of warning ().
2851 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2853 * configure.in: Check that -pg works if using --enable-profiling.
2854 Check for monstartup and _mcleanup regardless of --enable-profiling.
2855 * maint.c: Check for monstartup and _mcleanup before using them.
2856 * config.in: Regenerated.
2857 * configure: Regenerated.
2859 2003-01-24 Nick Clifton <nickc@redhat.com>
2863 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2865 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2866 (sh2e_show_regs): New.
2867 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2868 * config/sh/tm-sh.h: Added sh2e to comments.
2870 2003-01-23 Jim Blandy <jimb@redhat.com>
2872 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2873 symbols found)" message here; we haven't checked for a separate
2874 debug info file yet, so we don't know yet.
2875 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2876 we've looked everywhere. Also, there's no need to print a special
2877 message when we're loading the separate debug info file: the one
2878 symbol_file_add prints is fine.
2880 2003-01-23 Alexander Larsson <alexl@redhat.com>
2881 Jim Blandy <jimb@redhat.com>
2883 Add support for executables whose debug info has been separated
2884 out into a separate file, leaving only a link behind.
2885 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2886 and separate_debug_objfile_backlink.
2887 (put_objfile_before): New declaration.
2888 * symfile.c: #include "filenames.h".
2889 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2890 debug info in a separate file, read that, too. Save the addrs
2891 argument, so we can use it again to read the separated debug info;
2892 syms_from_objfile modifies the table we pass it.
2893 (reread_symbols): After re-reading an objfile, call
2894 reread_separate_symbols to refresh its separate debug info
2895 objfile, if it has one.
2896 (reread_separate_symbols, find_separate_debug_file,
2897 get_debug_link_info, separate_debug_file_exists): New functions.
2898 (debug_file_directory): New global var.
2899 (_initialize_symfile): Initialize debug_file_directory, and
2900 provide the new `set debug-file-directory' command to let the user
2902 * objfiles.c (free_objfile): If this objfile has its debug info in
2903 a separate objfile, free that one too. If this is itself a
2904 separate debug info objfile, clear our parent's backlink.
2905 (put_objfile_before): New function.
2906 * utils.c (gnu_debuglink_crc32): New function.
2907 * defs.h (gnu_debuglink_crc32): New declaration.
2908 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2909 * configure.in: Handle --with-separate-debug-dir config option.
2910 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2911 * acconfig.h (DEBUGDIR): New macro.
2912 * configure, aclocal.m4, config.in: Regenerated.
2914 2003-01-22 Jim Blandy <jimb@redhat.com>
2916 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2917 like the old symbol_file_add, but taking new arguments: you can
2918 now pass in either a `struct section_addr_info' list to say where
2919 each section is loaded, or a `struct section_offsets' table. Pass
2920 these new arguments through to syms_from_objfile as appropriate.
2921 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2922 with the appropriate quiescent values for the new arguments.
2924 * symfile.c: #include "gdb_assert.h".
2925 (syms_from_objfile): Add the ability to pass in a section offset
2926 table directly, as an alternative to the section_addr_info table.
2927 Document arguments better.
2928 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2929 * symfile.h (syms_from_objfile): Update declaration.
2930 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2932 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2934 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2936 Original patch by Tom Tromey <tromey@cygnus.com> and
2937 Jason Molenda <jmolenda@apple.com>.
2938 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2939 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2940 * NEWS: Mention profiling.
2941 * configure.in (--enable-gdbtk): Fix typo.
2942 (--enable-profiling): New. Set PROFILE_CFLAGS.
2943 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2945 (profiling_state): New variable.
2946 (mcleanup_wrapper): New function.
2947 (_initialize_maint): Remove NOTYET, fix call to
2948 add_setshow_boolean_cmd for "maint set profile".
2949 * configure: Regenerated.
2951 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2953 * Makefile.in (install-gdbtk): Install PNG images too.
2955 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2957 * exec.c (text_start): Delete global variable.
2958 (exec_file_attach): Make text_start local to the function.
2959 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2960 * valops.c (hand_function_call): Delete code that handles
2961 BEFORE_TEXT_END and AFTER_TEXT_END.
2962 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2963 of CALL_DUMMY_LOCATION.
2964 * gdbarch.c: Regenerate.
2965 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2966 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2967 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2968 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2969 (text_end): Delete extern declaration.
2971 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2973 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2974 * blockframe.c (backtrace_below_main): Move to "frame.c".
2975 (frame_chain_valid): Delete check for backtrace_below_main.
2976 (_initialize_blockframe): Delete initialization, move ``set
2977 backtrace-below-main'' command to "frame.c".
2978 (do_flush_frames_sfunc): Delete function.
2979 * frame.c: Include "command.h" and "gdbcmd.h".
2980 (frame_type_from_pc): New function.
2981 (create_new_frame): Use frame_type_from_pc.
2982 (legacy_get_prev_frame): New function.
2983 (get_prev_frame): Rewrite. When an old style frame, call
2984 legacy_get_prev_frame. Otherwize, unwind the PC first.
2985 (_initialize_frame): Add ``set backtrace-below-main'' command.
2986 * Makefile.in (frame.o): Update dependencies.
2988 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2990 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2991 DEPRECATED_REGISTERS_INFO.
2993 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2995 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2996 Maintainers'. Update `Various Maintainers'.
2998 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3000 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
3001 * gdbarch.sh (POP_FRAME): Change to function with predicate.
3002 Suppress actual parameters when `-'.
3003 * gdbarch.h, gdbarch.c: Regenerate.
3005 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3007 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3008 code handling dummy frames.
3010 2003-01-19 Andrew Cagney <ac131313@redhat.com>
3012 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3013 (struct frame_unwind): Add field pop.
3014 * frame.h (frame_pop): Declare.
3015 * frame.c (frame_saved_regs_pop): New function.
3016 (trad_frame_unwinder): Add frame_saved_regs_pop.
3017 (frame_pop): New function.
3018 * dummy-frame.c (dummy_frame_pop): New function.
3019 (discard_innermost_dummy): New function.
3020 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3021 (dummy_frame_unwind): Add dummy_frame_pop.
3022 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3023 * valops.c (hand_function_call): Ditto.
3024 * stack.c (return_command): Ditto.
3026 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3028 * cris-tdep.c: Fix function declaration indentation.
3029 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3030 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3031 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3032 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3033 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3034 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3036 2003-01-18 Michael Chastain <mec@shout.net>
3038 * README (Unpacking and Installation -- quick overview):
3039 Warn against ".../gdb-5.3/gdb/configure".
3041 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3043 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3044 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3045 (struct frame_unwind): Declare opaque.
3046 (dummy_frame_p): Declare function.
3047 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3048 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3049 * dummy-frame.c: Include "frame-unwind.h".
3050 (dummy_frame_p): New function.
3051 (dummy_frame_unwind): New variable.
3052 * frame.c: Include "frame-unwind.h".
3053 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3054 to use the new unwind field.
3055 (set_unwind_by_pc): Delete function.
3056 (create_new_frame, get_prev_frame): Set unwind field using
3057 frame_unwind_find_by_pc.
3058 (trad_frame_unwind, trad_frame_unwinder): New variables.
3059 * frame.h (trad_frame_unwind): Declare variable.
3060 (frame_id_unwind_ftype): Delete declaration.
3061 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3062 (struct frame_unwind): Declare opaque.
3063 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3064 register_unwind with a single unwind pointer.
3065 * frame-unwind.h, frame-unwind.c: New files.
3066 * Makefile.in (SFILES): Add frame-unwind.c.
3067 (frame_unwind_h): Define.
3068 (COMMON_OBS): Add frame-unwind.o.
3069 (frame-unwind.o): Specify dependencies.
3070 (frame.o, dummy-frame.o): Update dependencies.
3072 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3074 * ada-valprint.c: Eliminate PTR.
3075 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3076 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3077 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3078 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3079 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3080 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3081 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3083 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3085 * main.c (captured_main): Don't use PTR.
3086 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3087 * gdbtypes.c (lookup_primitive_typename): Ditto.
3088 (lookup_struct_elt_type): Ditto.
3089 * f-valprint.c (info_common_command): Ditto.
3090 (list_all_visible_commons): Ditto.
3091 * jv-typeprint.c (java_type_print_base): Ditto.
3093 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3094 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3095 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3096 i386-interix-nat.c and i386-interix-tdep.c. Rename
3097 m68klinux-nat.c and m68klinux-tdep.c. Rename
3098 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3099 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3100 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3101 * main.c (captured_main): Use xfree, not free.
3103 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3105 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3106 ID back using a parameter.
3107 * frame.c (frame_id_unwind): Update call.
3108 (frame_saved_regs_id_unwind): Update.
3109 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3110 * dummy-frame.h (struct frame_id): Add opaque declaration.
3111 (dummy_frame_id_unwind): Update declaration.
3113 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3115 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3117 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3119 * MAINTAINERS (Stephen P. Smith): Updated email address.
3121 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3124 * breakpoint.c (until_break_command): Add new argument. Use it to
3125 decide whether to stop only at the current frame or not.
3126 * breakpoint.h (until_break_command): Update prototype.
3127 * infcmd.c (until_command): Add new argument to until_break_command
3129 (advance_command): New function.
3130 (_initialize_infcmd): Update help string for 'until' command.
3131 Add new 'advance' command.
3133 2003-01-14 David Carlton <carlton@math.stanford.edu>
3135 * linespec.c (decode_line_1): Normalize comments.
3137 (locate_first_half): Ditto.
3138 (decode_compound): Ditto.
3139 (symtab_from_filename): Ditto.
3140 (decode_all_digits): Ditto.
3141 (decode_dollar): Ditto.
3142 (find_methods): Ditto.
3143 (find_toplevel_char): Ditto.
3145 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3147 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3148 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3149 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3150 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3151 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3152 * language.c, language.h, m32r-tdep.c: Update copyright.
3153 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3154 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3155 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3156 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3157 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3158 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3160 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3162 * stabsread.h (process_later, resolve_cfront_continuation):
3164 Update copyright years.
3165 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3166 Update copyright year.
3167 * dbxread.c(struct cont_elem): Obsolete.
3168 (process_later, process_now): Obsolete functions.
3169 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3170 Update copyright year.
3171 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3172 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3173 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3174 (parse_partial_symbols): Obsolete cfront support.
3176 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3178 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3179 read_cfront_baseclasses, read_cfront_member_functions,
3180 resolve_cfront_continuation,read_cfront_static_fields,
3181 copy_cfront_struct_fields): Obsolete functions.
3182 (define_symbol, read_one_struct_field): Obsolete cfront support.
3183 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3184 Update Copyright year.
3186 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3188 * stack.c (print_frame_info, print_stack_frame_base_stub,
3189 print_stack_frame_base, show_and_print_stack_frame_stub,
3190 show_and_print_stack_frame, print_only_stack_frame_stub,
3191 print_only_stack_frame): Delete functions.
3192 (print_stack_frame_stub): Call print_frame_info instead of
3193 print_frame_info_base.
3194 (print_frame_info_base): Rename to print_frame_info.
3195 (backtrace_command_1): Call print_frame_info, instead of
3196 print_frame_info_base.
3197 (current_frame_command): Call print_stack_frame, instead of
3198 print_only_stack_frame.
3199 (frame_command): Call print_stack_frame, instead of
3200 show_and_print_stack_frame.
3201 (up_command): Ditto.
3202 (down_command): Ditto.
3203 * frame.h (print_only_stack_frame): Delete prototype.
3204 * infrun.c (normal_stop): Call print_stack_frame, instead of
3205 show_and_print_stack_frame.
3206 * thread.c (info_threads_command): Call print_stack_frame, instead
3207 of print_only_stack_frame.
3209 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3211 * README (Graphical interface to GDB): Update URL. Point at
3214 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3217 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3219 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3222 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3224 * thread-db.c (attach_thread): Prototype.
3225 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3226 thread information (ti), and valid flags (th_valid, ti_valid).
3227 (attach_thread): Move target_pid_to_str call to after the thread
3228 is added to GDB's list. Initialize the cache.
3229 (thread_get_info_callback, thread_db_map_id2thr)
3230 (thread_db_get_info): New functions.
3231 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3232 (thread_db_store_registers, thread_db_thread_alive)
3233 (thread_db_get_thread_local_address): Use them.
3234 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3235 of calling error() for threads in unknown state.
3237 (clear_lwpid_callback): New function.
3238 (thread_db_resume): Use it to clear the cache.
3240 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3242 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3243 (resume_callback): Remove dead code.
3245 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3247 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3249 * gdbarch.h, gdbarch.c: Regenerate.
3250 * stack.c (frame_info): Only initialize the saved registers when
3251 FRAME_INIT_SAVED_REGS_P.
3252 * frame.c (frame_saved_regs_register_unwind): Assert
3253 FRAME_INIT_SAVED_REGS_P.
3254 (deprecated_generic_get_saved_register): Ditto.
3256 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3258 * source.c (openp): Squelch warning about "filename".
3260 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3262 * source.c (openp): If the file does not exist don't necessarily
3265 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3268 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3269 (integer_types_same_name_p): New function.
3270 (rank_one_type): Use it.
3271 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3273 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3275 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3277 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3278 * configure.in: Add --with-sysroot.
3279 * configure: Regenerated.
3280 * main.c (gdb_sysroot): New variable.
3281 (captured_main): Initialize gdb_sysroot.
3282 * defs.h (gdb_sysroot): New extern declaration.
3283 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3285 2003-01-12 Michael Chastain <mec@shout.net>
3287 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3289 2003-01-12 Michael Chastain <mec@shout.net>
3291 * top.c (print_gdb_version): Bump copyright year to 2003.
3293 2003-01-12 David Carlton <carlton@bactrian.org>
3295 * linespec.c (symtab_from_filename): Rename variable 's' to
3298 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3300 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3302 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3304 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3306 * d10v-tdep.c: Include "gdb_assert.h".
3307 (d10v_store_return_value): Rewrite to match current interface.
3308 (d10v_extract_struct_value_address): Ditto.
3309 (d10v_extract_return_value): Ditto.
3310 (d10v_gdbarch_init): Set store_restore_value,
3311 extract_struct_value_address and extract_return_value.
3313 2003-01-12 J. Brobecker <brobecker@gnat.com>
3315 * hpread.c (set_namestring): New procedure replacing the
3316 SET_NAMESTRING macro.
3317 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3318 by calls to set_namestring.
3320 2003-01-11 J. Brobecker <brobecker@gnat.com>
3322 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3323 a compilation warning.
3324 (hpread_process_one_debug_symbol): Likewise.
3326 2003-01-10 David Carlton <carlton@math.stanford.edu>
3328 * linespec.c (decode_line_1): Rename variable 's' to
3330 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3331 (decode_dollar): Ditto.
3332 (decode_variable): Ditto.
3333 (symbol_found): Ditto.
3335 2003-01-09 Michael Chastain <mec@shout.net>
3337 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3339 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3341 * win32-nat.c (set_process_privilege): New function.
3342 (child_attach): Call set_process_privilege() to enable the
3343 SE_DEBUG_NAME user privilege if available in process token.
3345 2003-01-10 J. Brobecker <brobecker@gnat.com>
3347 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3348 compilation error in the previous revision.
3350 2003-01-09 David Carlton <carlton@math.stanford.edu>
3352 * linespec.c: Update copyright.
3354 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3356 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3358 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3360 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3362 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3364 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3365 (frame_saved_regs_zalloc): Update.
3366 (frame_saved_regs_register_unwind): Update.
3367 (create_new_frame): Update.
3368 (get_prev_frame): Update.
3369 (frame_extra_info_zalloc): Update.
3370 (deprecated_get_frame_saved_regs): Update.
3371 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3372 * cris-tdep.c: Update comment.
3374 * somsolib.h: Fix function indentation.
3375 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3376 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3377 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3378 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3379 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3381 * infrun.c (follow_fork): Use ISO C definition.
3382 * expprint.c (print_subexp): Use xfree instead of free.
3383 * charset.c: Include "gdb_string.h" instead of <string.h>.
3384 (register_iconv_charsets): Use ISO C definition.
3385 (host_charset, target_charset): Ditto.
3386 * Makefile.in (charset.o): Update dependencies.
3387 (mi-cmd-env.o): Update dependencies.
3389 2003-01-08 Andrew Cagney <cagney@redhat.com>
3391 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3394 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3396 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3397 build directories. Save edited gdb output in Mbuild.log. If a
3398 build fails, remove any final GDB executable.
3400 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3402 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3403 replacing hex constants with function names and stripping leading
3404 file name directory prefixes.
3406 2003-01-08 Andrew Cagney <cagney@redhat.com>
3408 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3411 2003-01-08 David Carlton <carlton@math.stanford.edu>
3413 * linespec.c (decode_line_1): Move code into decode_variable.
3414 (decode_variable): New function.
3416 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3418 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3420 2003-01-08 Andrew Cagney <cagney@redhat.com>
3422 * cris-tdep.c (cris_frame_init_saved_regs): Use
3423 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3425 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3426 (sh64_nofp_frame_init_saved_regs): Ditto.
3427 (sh_fp_frame_init_saved_regs): Ditto.
3428 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3429 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3430 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3431 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3433 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3435 * minsyms.c (lookup_minimal_symbol): Update comment.
3436 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3437 (lookup_minimal_symbol_solib_trampoline): Likewise.
3439 2003-01-08 Andrew Cagney <cagney@redhat.com>
3441 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3442 frame_relative_level.
3444 * alpha-tdep.c: Use get_frame_extra_info.
3445 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3446 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3447 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3448 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3450 * alpha-tdep.c: Use get_next_frame.
3451 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3452 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3453 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3454 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3455 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3456 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3457 * xstormy16-tdep.c: Ditto.
3459 2003-01-07 Andrew Cagney <cagney@redhat.com>
3461 * alpha-tdep.c: Use get_frame_base.
3462 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3463 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3464 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3465 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3466 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3467 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3468 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3469 * config/sparc/tm-sparc.h: Ditto.
3471 2003-01-07 Andrew Cagney <cagney@redhat.com>
3473 * frame.c (deprecated_get_frame_context): New function.
3474 (deprecated_set_frame_context): New function.
3475 * frame.h (deprecated_get_frame_context): Declare.
3476 (deprecated_set_frame_context): Declare.
3477 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3478 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3480 2003-01-07 Andrew Cagney <cagney@redhat.com>
3482 * frame.c (deprecated_set_frame_next_hack): New function.
3483 (deprecated_set_frame_prev_hack): New function.
3484 * frame.h (deprecated_set_frame_next_hack): Declare.
3485 (deprecated_set_frame_prev_hack): Declare.
3486 * mcore-tdep.c (analyze_dummy_frame): Use
3487 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3488 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3490 2003-01-07 David Carlton <carlton@math.stanford.edu>
3492 * linespec.c (decode_line_1): Move code into decode_dollar.
3493 (decode_dollar): New function.
3495 2003-01-07 Andrew Cagney <cagney@redhat.com>
3497 * arm-tdep.c (arm_init_extra_frame_info): Use
3498 deprecated_update_frame_base_hack.
3499 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3500 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3501 (fix_frame_pointer): Ditto.
3502 (mn10300_analyze_prologue): Ditto.
3504 2003-01-07 Andrew Cagney <cagney@redhat.com>
3506 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3507 extra_info using frame_extra_info_zalloc.
3508 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3509 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3510 (sh64_init_extra_frame_info): Ditto.
3511 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3512 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3513 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3514 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3515 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3516 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3517 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3518 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3519 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3520 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3521 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3522 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3524 * mn10300-tdep.c (analyze_dummy_frame): Use
3525 deprecated_set_frame_extra_info_hack.
3526 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3528 2003-01-07 J. Brobecker <brobecker@gnat.com>
3530 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3531 class is not scText. These do not define "real" procedures.
3532 (parse_partial_symbols): Likewise.
3534 2003-01-06 Michael Snyder <msnyder@redhat.com>
3536 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3538 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3540 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3541 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3542 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3543 deprecated_frame_xmalloc_with_cleanup.
3544 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3545 deprecated_frame_xmalloc.
3546 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3547 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3549 2003-01-06 Andrew Cagney <cagney@redhat.com>
3551 * x86-64-linux-tdep.c: Include "osabi.h".
3552 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3554 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3556 2003-01-06 Andrew Cagney <cagney@redhat.com>
3558 * MAINTAINERS (Target Instruction Set Architectures): Update
3559 arm-elf. Can be built with -Werror, has been multiarched.
3561 * value.h (unpack_long): Make buffer parameter constant.
3562 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3563 * scm-lang.h (scm_parse): Ditto.
3564 * defs.h (extract_typed_address, extract_address): Ditto.
3565 (extract_long_unsigned_integer): Ditto.
3566 * inferior.h (unsigned_pointer_to_address): Ditto.
3567 (signed_pointer_to_address): Ditto.
3568 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3569 * gdbarch.h, gdbarch.c: Regenerate.
3570 * findvar.c (extract_long_unsigned_integer): Update.
3571 (extract_address): Update.
3572 (extract_typed_address): Update.
3573 (unsigned_pointer_to_address): Update.
3574 * values.c (unpack_long): Update.
3575 (unpack_double): Update.
3576 (unpack_pointer): Update.
3577 (unpack_field_as_long): Update.
3578 * d10v-tdep.c (d10v_pointer_to_address): Update.
3579 * avr-tdep.c (avr_pointer_to_address): Update.
3580 * scm-lang.c (scm_unpack): Update.
3581 * findvar.c (signed_pointer_to_address): Update.
3583 2003-01-06 Michal Ludvig <mludvig@suse.cz>
3585 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3586 since it is in i386-tdep.c.
3588 2003-01-06 J. Brobecker <brobecker@gnat.com>
3590 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3591 failure introduced in the previous change.
3593 2003-01-05 Michael Chastain <mec@shout.net>
3595 * README: Remove references to deleted remote-*.c files:
3596 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3597 remote-nrom.c, remote-os9k.c, remote-udi.c.
3599 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3601 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3602 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3603 i386_get_longjmp_target.
3605 2003-01-05 Andrew Cagney <ac131313@redhat.com>
3607 * arm-tdep.c (prologue_cache): Change to a pointer.
3608 (_initialize_arm_tdep): Allocate prologue_cache.
3609 (check_prologue_cache): Update.
3610 (save_prologue_cache): Update.
3611 (arm_gdbarch_init): Update.
3613 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3615 * stabsread.c (update_method_name_from_physname): Call complaint()
3618 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3620 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3621 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3622 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3624 * blockframe.c: Include "gdbcmd.h" and "command.h".
3625 (backtrace_below_main): New variable.
3626 (file_frame_chain_valid, func_frame_chain_valid)
3627 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3628 (generic_func_frame_chain_valid): Remove functions.
3629 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3630 (_initialize_blockframe): New function.
3631 * Makefile.in (blockframe.o): Update dependencies.
3632 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3633 comment. Call frame_chain_valid ().
3634 * frame.h: Remove old prototypes. Add prototype for
3635 frame_chain_valid and update comments to match.
3636 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3638 * gdbarch.h: Regenerated.
3639 * gdbarch.c: Regenerated.
3641 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3642 set_gdbarch_frame_chain_valid.
3643 * avr-tdep.c (avr_gdbarch_init): Likewise.
3644 * cris-tdep.c (cris_gdbarch_init): Likewise.
3645 * frv-tdep.c (frv_gdbarch_init): Likewise.
3646 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3647 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3648 (i386_nw_init_abi): Likewise.
3649 (i386_gdbarch_init): Likewise.
3650 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3652 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3653 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3654 * mips-tdep.c (mips_gdbarch_init): Likewise.
3655 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3656 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3657 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3658 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3659 * s390-tdep.c (s390_gdbarch_init): Likewise.
3660 * sh-tdep.c (sh_gdbarch_init): Likewise.
3661 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3662 * v850-tdep.c (v850_gdbarch_init): Likewise.
3663 * vax-tdep.c (vax_gdbarch_init): Likewise.
3664 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3666 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3667 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3668 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3669 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3670 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3671 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3672 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3673 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3675 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3677 * Makefile.in (acconfig_h): Remove incorrect macro.
3679 (osabi.o): Update dependencies.
3680 * configure.tgt: Set gdb_osabi based on target triplet.
3681 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3682 * configure: Regenerated.
3683 * config.in: Regenerated.
3684 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3685 (GDB_OSABI_DEFAULT): Define if not already defined.
3686 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3687 (set_osabi_string): New variables.
3688 (gdbarch_register_osabi): Add new OS ABI to
3689 gdb_osabi_available_names.
3690 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3691 (set_osabi, show_osabi): New functions.
3692 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3694 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3696 * arch-utils.c (gdbarch_info_init): Set osabi to
3697 GDB_OSABI_UNINITIALIZED.
3698 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3699 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3700 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3701 * gdbarch.c: Regenerated.
3702 * gdbarch.h: Regenerated.
3703 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3705 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3706 * osabi.h (enum gdb_osabi): Move to defs.h.
3707 (gdbarch_init_osabi): Update prototype.
3708 * defs.h (enum gdb_osabi): Moved here.
3709 * Makefile.in: Update dependencies.
3711 * alpha-tdep.h: Don't include "osabi.h".
3712 (struct gdbarch_tdep): Remove osabi member.
3713 * alpha-tdep.c: Include "osabi.h".
3714 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3715 iterate over arches. Update call to gdbarch_init_osabi.
3716 (alpha_dump_tdep): Don't dump osabi.
3717 * alpha-linux-tdep.c: Include "osabi.h".
3718 * alpha-osf1-tdep.c: Include "osabi.h".
3719 * alphafbsd-tdep.c: Include "osabi.h".
3720 * alphanbsd-tdep.c: Include "osabi.h".
3722 * arm-tdep.h: Don't include "osabi.h".
3723 (struct gdbarch_tdep): Remove osabi member.
3724 * arm-tdep.c: Include "osabi.h".
3725 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3726 iterate over arches. Update call to gdbarch_init_osabi.
3727 (arm_dump_tdep): Don't dump osabi.
3728 * arm-linux-tdep.c: Include "osabi.h".
3729 * armnbsd-tdep.c: Include "osabi.h".
3731 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3732 Update call to gdbarch_init_osabi.
3734 * i386-tdep.h: Don't include "osabi.h".
3735 (struct gdbarch_tdep): Remove osabi member.
3736 * i386-tdep.c: Include "osabi.h".
3737 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3738 iterate over arches. Update call to gdbarch_init_osabi.
3739 (i386_dump_tdep): Don't dump osabi.
3740 * i386-linux-tdep.c: Include "osabi.h".
3741 * i386-sol2-tdep.c: Include "osabi.h".
3742 * i386bsd-tdep.c: Include "osabi.h".
3743 * i386gnu-tdep.c: Include "osabi.h".
3744 * i386ly-tdep.c: Include "osabi.h".
3745 * i386nbsd-tdep.c: Include "osabi.h".
3746 * i386obsd-tdep.c: Include "osabi.h".
3748 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3749 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3750 check osabi when iterating over arches. Update call to
3752 (mips_dump_tdep): Don't dump osabi.
3754 * ns32k-tdep.h: Don't include "osabi.h".
3755 (struct gdbarch_tdep): Remove.
3756 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3757 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3758 allocate tdep. Update call to gdbarch_init_osabi.
3759 (ns32k_dump_tdep): Remove.
3760 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3761 * ns32knbsd-tdep.c: Include "osabi.h".
3763 * ppc-tdep.h: Don't include "osabi.h".
3764 (struct gdbarch_tdep): Remove osabi member.
3765 * rs6000-tdep.c: Include "osabi.h".
3766 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3767 osabi when iterating over arches. Update call to
3769 (rs6000_dump_tdep): Don't dump osabi.
3770 * ppc-linux-tdep.c: Include "osabi.h".
3771 * ppcnbsd-tdep.c: Include "osabi.h".
3773 * sh-tdep.h: Don't include "osabi.h".
3774 (struct gdbarch_tdep): Remove osabi member.
3775 * sh-tdep.c: Include "osabi.h".
3776 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3777 iterate over arches. Update call to gdbarch_init_osabi.
3778 (sh_dump_tdep): Don't dump osabi.
3779 * shnbsd-tdep.c: Include "osabi.h".
3781 * sparc-tdep.c: Include "osabi.h".
3782 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3783 iterate over arches. Update call to gdbarch_init_osabi.
3784 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3787 * vax-tdep.h: Don't include "osabi.h".
3788 (struct gdbarch_tdep): Remove.
3789 * vax-tdep.c: Include "osabi.h".
3790 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3791 iterate over arches. Don't allocate tdep. Update call
3792 to gdbarch_init_osabi.
3793 (vax_dump_tdep): Remove.
3794 (_initialize_vax_tdep): Update call to gdbarch_register.
3796 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3798 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3800 (breakpoint_re_set_one): Don't fetch the value for a disabled
3803 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3805 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3806 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3807 (COERCE_FLOAT_TO_DOUBLE): Remove.
3808 * gdbarch.c: Regenerate.
3809 * gdbarch.h: Regenerate.
3810 * Makefile.in: Remove value_h from gdbarch_h.
3811 * valops.c (coerce_float_to_double): New variable.
3812 (default_coerce_float_to_double): Remove.
3813 (standard_coerce_float_to_double): Remove.
3814 (value_arg_coerce): Use coerce_float_to_double.
3815 (_initialize_valops): Add "set coerce-float-to-double".
3816 * value.h (default_coerce_float_to_double): Remove prototype.
3817 (standard_coerce_float_to_double): Remove prototype.
3819 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3821 * mdebugread.c (parse_symbol): Likewise.
3822 * stabsread.c (define_symbol): Mark all functions as prototyped.
3824 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3825 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3826 set_gdbarch_coerce_float_to_double.
3827 * arm-tdep.c (arm_gdbarch_init): Likewise.
3828 * frv-tdep.c (frv_gdbarch_init): Likewise.
3829 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3830 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3831 * mips-tdep.c (mips_gdbarch_init): Likewise.
3832 (mips_coerce_float_to_double): Remove.
3833 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3834 (rs6000_coerce_float_to_double): Remove.
3835 * s390-tdep.c (s390_gdbarch_init): Likewise.
3836 * sh-tdep.c (sh_gdbarch_init): Likewise.
3837 (sh_coerce_float_to_double): Remove.
3838 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3839 (sparc_coerce_float_to_double): Remove.
3840 * v850-tdep.c (v850_gdbarch_init): Likewise.
3841 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3842 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3843 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3844 (hppa_coerce_float_to_double): Remove prototype.
3845 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3847 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3849 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3851 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3853 Suggested by Stewart Brown <sb24@avaya.com>:
3854 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3855 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3856 (c_type_print_varspec_suffix): Likewise.
3858 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3860 * configure.in: Don't set and AC_SUBST SUBDIRS.
3861 * configure: Regenerated.
3863 * configure.in: Remove code dealing with shared libraries.
3864 * Makefile.in: Remove HLDFLAGS and HLDENV.
3865 * configure: Regenerated.
3867 2003-01-04 Andrew Cagney <ac131313@redhat.com>
3869 * frame.c (deprecated_frame_xmalloc): New function.
3870 (deprecated_set_frame_saved_regs_hack): New function.
3871 (deprecated_set_frame_extra_info_hack): New function.
3872 * frame.h (deprecated_frame_xmalloc): Declare.
3873 (deprecated_set_frame_saved_regs_hack): Declare.
3874 (deprecated_set_frame_extra_info_hack): Declare.
3876 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3878 * configure.in: Move code that provides the --enable-gdbtk option
3879 right after the code that handles the --enable-tui option, and
3881 * configure: Regenerated.
3883 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3884 AC_CHECK_FUNCS and remove the old check for pread64.
3885 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3886 * acconfig.h (_GNU_SOURCE): Add.
3887 (HAVE_PREAD64): Remove.
3888 * configure, aclocal.m4, config.in: Regenerated.
3890 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3892 * alpha-tdep.c: Use get_frame_saved_regs.
3893 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3894 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3895 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3896 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3897 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3899 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3901 * configure.in: Remove all use of the SUBDIRS variable; add
3902 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3903 code providing the --enable-multi-ice option, and move it right in
3904 front of the code that checks whether gdbserver is supported.
3906 * configure: Regenerated.
3907 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3910 2003-01-03 Andrew Cagney <cagney@redhat.com>
3912 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3913 * avr-tdep.c, cris-tdep.c: Ditto.
3914 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3915 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3917 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3919 * configure.in: Remove --enable-netrom option.
3920 * configure: Regenerated.
3922 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3924 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3925 declaration for `struct re_pattern_buffer' instead.
3926 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3928 2003-01-03 J. Brobecker <brobecker@gnat.com>
3930 * mdebugread.c (parse_symbol): Count until the stEnd matching
3933 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3935 * configure.in: Remove --with-cpu option.
3936 subscripts. Remove evil changequotes here.
3937 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3938 * config.in, configure: Regenerated.
3940 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3941 * configure.in: Cleanup section that sources GDB and BFD configure
3942 subscripts. Remove evil changequotes here.
3943 * config.in, configure: Regenerated.
3945 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3947 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3948 frame accessor methods.
3949 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3950 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3951 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3952 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3953 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3954 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3955 * z8k-tdep.c: Ditto.
3957 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3959 * configure.in: Remove UI_OUT configuration code.
3960 * ada-lang.c: Update assuming UI_OUT is always true.
3961 * Makefile.in (UIOUT_CFLAGS): Remove.
3962 * configure: Regenerated.
3963 * TODO: Remove blurb about elimination of -DUI_OUT.
3965 * configure.in: Move code that provides the --enable-gdbcli,
3966 --enable-gdbmi options right before the code that handles the
3967 --enable-tui option. Polish a bit.
3968 * configure: Regenerated.
3970 * configure.in: Rewrite check for GNU regex and the
3971 --without-included regex option, and move it into the "Checks for
3972 library functions" section. This makes us use the system regex
3973 again by default on systems with version 2 of the GNU C library.
3974 This was apparently broken.
3975 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3976 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3977 * config.in, configure: Regenerated.
3979 * configure.in: Move code that provides the --enable-tui option
3980 before the "Checks for libraries" section. Polish the code
3981 somewhat and set need_curses to yes if we build the TUI. Rewrite
3982 code that looks for a library providing termcap functionality to
3983 match more closely what's done in the Readline library, and move
3984 it into to the "Checks for libraries" section.
3985 * configure: Regenerated.
3986 * Makefile.in (TERMCAP): Remove variable.
3987 * config/i386/go32.mh (TERMCAP): Remove variable.
3989 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3991 * MAINTAINERS: Mention gdb_mbuild.sh.
3992 * gdb_mbuild.sh: Rewrite.
3994 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3996 * configure.in: Fix typo in last change.
3997 * config.in, configure: Regenerated.
3999 2003-01-02 Andrew Cagney <ac131313@redhat.com>
4001 * valarith.c (value_binop): Delete obsolete code and comments.
4002 * configure.host: Ditto.
4003 * buildsym.h (make_blockvector): Ditto.
4004 * buildsym.c (make_blockvector): Ditto.
4005 * defs.h (enum language): Ditto.
4006 (chill_demangle): Ditto.
4007 * elfread.c (elf_symtab_read): Ditto.
4008 * dwarfread.c (CHILL_PRODUCER): Ditto.
4009 (set_cu_language): Ditto.
4010 (handle_producer): Ditto.
4011 * expprint.c (print_subexp): Ditto.
4012 * gdbtypes.c (chill_varying_type): Ditto.
4013 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4014 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4015 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4016 (chill_varying_type): Ditto.
4017 * language.h (_LANG_chill): Ditto.
4018 * language.c (binop_result_type, integral_type): Ditto.
4019 (character_type, string_type, structured_type): Ditto.
4020 (lang_bool_type, binop_type_check): Ditto.
4021 * stabsread.h (os9k_stabs): Ditto.
4022 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4023 (define_symbol, read_type, read_struct_fields): Ditto.
4024 (read_array_type, read_enum_type, read_huge_number): Ditto.
4025 (read_range_type, start_stabs): Ditto.
4026 * symfile.c (init_filename_language_table): Ditto.
4027 (add_psymbol_with_dem_name_to_list): Ditto.
4028 * symtab.c (symbol_init_language_specific): Ditto.
4029 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4030 * symtab.h (struct general_symbol_info): Ditto.
4031 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4032 * typeprint.c (typedef_print): Ditto.
4033 * utils.c (fprintf_symbol_filtered): Ditto.
4034 * valops.c (value_cast, search_struct_field, value_slice): Delete
4036 (varying_to_slice): Delete function.
4037 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4038 (varying_to_slice): Delete declaration.
4039 * MAINTAINERS: Update.
4041 2003-01-02 Mark Kettenis <kettenis@gnu.org>
4043 * configure.in: Reorganize "Checks for library functions section"
4044 a bit. Remove check for `btowc' and `isascii' functions.
4045 * configure: Regenerated.
4047 * acconfig.h (_MSE_INT_H): Remove.
4048 * configure.in: Create "Checks for header files" section, and move
4049 appropriate tests there. Don't check for objlist.h, wchar.h,
4050 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4051 misdetection fix. Also add "Checks for types", "Checks for
4052 compiler characteristics" and "Checks for library functions"
4054 * config.in, configure: Regenerated.
4056 * configure.in: Create "Checks for programs" section, and move
4057 appropriate tests there.
4059 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4061 * configure.in: Create "Checks for libraries" section, and move
4062 appropriate tests there. Cleanup check for wctype in libw. Use
4063 AC_SEARCH_LIBS to see whether we need libsocket.
4064 * configure: Regenerated.
4066 For older changes see ChangeLog-2002
4072 version-control: never