1 2003-03-31 Andrew Cagney <cagney@redhat.com>
3 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
4 * gdbarch.h, gdbarch.c: Regenerate.
5 * inferior.h (FIX_CALL_DUMMY): Delete macro.
6 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
8 * frame.h (generic_fix_call_dummy): Delete declaration.
9 * dummy-frame.h: Update comment.
10 * dummy-frame.c (generic_fix_call_dummy): Delete function.
11 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
13 * sh-tdep.c (sh_gdbarch_init): Ditto.
14 * s390-tdep.c (s390_gdbarch_init): Ditto.
15 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
16 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
17 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
18 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
19 * i386-tdep.c (i386_gdbarch_init): Ditto.
20 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
21 * frv-tdep.c (frv_gdbarch_init): Ditto.
22 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
23 * cris-tdep.c (cris_gdbarch_init): Ditto.
24 * avr-tdep.c (avr_gdbarch_init): Ditto.
25 * arm-tdep.c (arm_gdbarch_init): Ditto.
27 2003-03-31 J. Brobecker <brobecker@gnat.com>
29 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
30 (INIT_FRAME_AP): Likewise.
31 (EXTRA_FRAME_INFO): Likewise.
33 2003-03-31 Andrew Cagney <cagney@redhat.com>
35 * gdbarch.sh: Include "symfile.h".
36 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
37 * gdbarch.h, gdbarch.c: Re-generate.
38 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
39 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
40 call_dummy_address, the default is at entry_point_address.
41 * v850-tdep.c (v850_gdbarch_init): Ditto.
42 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
43 * sh-tdep.c (sh_gdbarch_init): Ditto.
44 * s390-tdep.c (s390_gdbarch_init): Ditto.
45 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
46 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
47 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
48 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
49 * i386-tdep.c (i386_gdbarch_init): Ditto.
50 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
51 * frv-tdep.c (frv_gdbarch_init): Ditto.
52 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
53 * cris-tdep.c (cris_gdbarch_init): Ditto.
54 * arm-tdep.c (arm_gdbarch_init): Ditto.
56 2003-03-31 Andrew Cagney <cagney@redhat.com>
58 * gdbarch.sh (CALL_DUMMY_P): Delete.
59 * gdbarch.h, gdbarch.c: Re-generate.
60 * inferior.h (CALL_DUMMY_P): Delete macro.
61 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
62 * vax-tdep.c (vax_gdbarch_init): Update.
63 * v850-tdep.c (v850_gdbarch_init): Update.
64 * sparc-tdep.c (sparc_gdbarch_init): Update.
65 * sh-tdep.c (sh_gdbarch_init): Update.
66 * s390-tdep.c (s390_gdbarch_init): Update.
67 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
68 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
69 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
70 * mips-tdep.c (mips_gdbarch_init): Update.
71 * mcore-tdep.c (mcore_gdbarch_init): Update.
72 * m68k-tdep.c (m68k_gdbarch_init): Update.
73 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
74 * ia64-tdep.c (ia64_gdbarch_init): Update.
75 * i386-tdep.c (i386_gdbarch_init): Update.
76 * h8300-tdep.c (h8300_gdbarch_init): Update.
77 * frv-tdep.c (frv_gdbarch_init): Update.
78 * d10v-tdep.c (d10v_gdbarch_init): Update.
79 * cris-tdep.c (cris_gdbarch_init): Update.
80 * breakpoint.c (deprecated_frame_in_dummy): Update.
81 * avr-tdep.c (avr_gdbarch_init): Update.
82 * alpha-tdep.c (alpha_gdbarch_init): Update.
83 * arm-tdep.c (arm_gdbarch_init): Update.
84 * dummy-frame.c (dummy_frame_this_id): Update comments.
85 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
86 * frame.c (legacy_get_prev_frame): Ditto.
87 * valops.c (call_function_by_hand): Delete function.
88 (hand_function_call): Rename to call_function_by_hand
90 2003-03-30 Andrew Cagney <cagney@redhat.com>
92 2002-11-10 Klee Dienes <kdienes@apple.com>
93 * value.h (struct value): Update comment.
95 2003-03-30 Andrew Cagney <cagney@redhat.com>
97 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
99 (d10v_gdbarch_init): Do not set fp_regnum.
101 * frame.c (get_frame_base): Force ID initialization.
102 (get_prev_frame): Move computation of the frame ID from here ...
103 (get_frame_id): ... to here.
104 (legacy_get_prev_frame): Mark the frame ID as valid.
105 * frame.h (struct frame_info): Add field "id_p".
107 2003-03-30 Mark Kettenis <kettenis@gnu.org>
109 * i386-tdep.c (i386_store_struct_return): Removed.
110 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
112 2003-03-30 Andrew Cagney <cagney@redhat.com>
114 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
115 * gdbarch.h, gdbarch.c: Regenerate.
116 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
117 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
118 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
119 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
120 * i386-tdep.c (i386_gdbarch_init): Ditto.
121 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
122 * cris-tdep.c (cris_gdbarch_init): Ditto.
123 * vax-tdep.c (vax_gdbarch_init): Ditto.
124 * s390-tdep.c (s390_gdbarch_init): Ditto.
125 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
126 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
127 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
128 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
129 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
130 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
131 * sparc-tdep.c (sparc_gdbarch_init): Update.
132 * sh-tdep.c (sh_gdbarch_init): Update.
133 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
134 * mips-tdep.c (mips_gdbarch_init): Update.
135 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
136 * ia64-tdep.c (ia64_gdbarch_init): Update.
137 * frv-tdep.c (frv_gdbarch_init): Update.
138 * avr-tdep.c (avr_gdbarch_init): Update.
139 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
140 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
141 instead of when push_dummy_call is not available.
143 2003-03-30 Andrew Cagney <cagney@redhat.com>
145 * infttrace.c: Include "gdbthread.h".
146 (parent_attach_all): Fix function signature.
147 (call_ptrace): Update call.
148 * Makefile.in (infttrace.o): Update dependencies.
150 2003-03-30 Andrew Cagney <cagney@redhat.com>
152 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
154 * gdbarch.h, gdbarch.c: Regenerate.
155 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
156 * x86-64-tdep.c (x86_64_init_abi): Update.
157 * v850-tdep.c (v850_gdbarch_init): Update.
158 * sparc-tdep.c (sparc_gdbarch_init): Update.
159 * sh-tdep.c (sh_gdbarch_init): Update.
160 * s390-tdep.c (s390_gdbarch_init): Update.
161 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
162 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
163 * mips-tdep.c (mips_gdbarch_init): Update.
164 * mcore-tdep.c (mcore_gdbarch_init): Update.
165 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
166 * ia64-tdep.c (ia64_gdbarch_init): Update.
167 * i386-tdep.c (i386_gdbarch_init): Update.
168 * h8300-tdep.c (h8300_gdbarch_init): Update.
169 * frv-tdep.c (frv_gdbarch_init): Update.
170 * cris-tdep.c (cris_gdbarch_init): Update.
171 * avr-tdep.c (avr_gdbarch_init): Update.
172 * arm-tdep.c (arm_gdbarch_init): Update.
173 * valops.c (hand_function_call): Update.
175 2003-03-29 Andrew Cagney <cagney@redhat.com>
177 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
178 sizeof_call_dummy_words.
179 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
181 * gdbarch.h: Regenerate.
183 2003-03-29 Andrew Cagney <cagney@redhat.com>
185 * infttrace.h: New file.
186 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
187 (hpread_get_textlow): Detect an uninitialized dn_bufp.
188 (hpread_read_doc_function_type): Detect an initialized type1.
189 (hpread_quick_traverse): Initialize mod_name_string.
190 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
191 (som_solib_get_solib_by_pc): Declare.
192 (so_lib_thread_start_addr): Declare.
193 (no_shared_libraries): Declare.
194 * somread.c (init_import_symbols): Make static. Add forward
196 * config/pa/nm-hppah.h: Include "infttrace.h" for
198 (hppa_insert_hw_watchpoint): Declare.
199 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
200 * hppah-nat.c: Include "gdb_string.h".
201 (parent_attach_all): Delete extern declaration, moved to
203 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
205 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
206 * Makefile.in (infttrace_h): Define.
207 (hpread.o): Update dependencies.
208 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
209 * hppa-hpux-tdep.c: Include "gdb_string.h".
210 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
211 * infrun.c (handle_inferior_event): Always initialize
212 stepped_after_stopped_by_watchpoint. Add default and remove
213 fallthrough in switch statement.
214 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
216 (hppa_remove_hw_watchpoint): Ditto.
218 2003-03-29 Andrew Cagney <cagney@redhat.com>
220 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
223 2003-03-29 Richard Earnshaw <rearnsha@arm.com>
225 * arm-tdep.c (arm_push_arguments): Delete.
226 (struct stack_item): New type.
227 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
228 (arm_store_struct_return): Delte.
229 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
230 arm_push_arguments or arm_store_struct_return.
232 2003-03-28 Andrew Cagney <cagney@redhat.com>
234 * Makefile.in (d10v-tdep.o): Update dependencies.
235 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
236 * d10v-tdep.c: Include "remote.h".
237 (target_resume_hook): Delete extern declaration.
238 (target_wait_loop_hook): Ditto.
239 (tdisassemble_command): Eliminate assignment in "if" conditional.
240 (d10v_ts2_register_sim_regno): Eliminate call to
241 legacy_register_sim_regno.
242 (d10v_ts3_register_sim_regno): Ditto.
244 2003-03-28 Jeff Johnston <jjohnstn@redhat.com>
246 * thread.c: Reindented.
248 * linux-proc.c: Ditto.
250 2003-03-28 Bob Rossi <bob_rossi@cox.net>
252 * MAINTAINERS (write after approval): Add myself.
254 2003-03-27 Theodore A. Roth <troth@openavr.org>
256 * objc-exp.y: Add missing semi-colons.
258 2003-03-27 Andrew Cagney <cagney@redhat.com>
260 * regcache.c (write_sp): Delete function and references.
261 * inferior.h (write_sp): Delete declaration.
262 * valops.c (hand_function_call): Replace write_sp with
264 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
265 (sparc_pop_frame): Ditto.
267 2003-03-27 Andrew Cagney <cagney@redhat.com>
269 * NEWS: Mention removal of support for hppa*-*-bsd* and
270 hppa*-*-osf* natives, and hppa*-*-pro* target.
271 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
272 * config/pa/xm-pa.h: Obsolete file.
273 * config/pa/xm-hppab.h: Obsolete file.
274 * config/pa/nm-hppab.h: Obsolete file.
275 * config/pa/tm-hppab.h: Obsolete file.
276 * config/pa/tm-hppao.h: Obsolete file.
277 * config/pa/nm-hppao.h: Obsolete file.
278 * config/pa/tm-pro.h: Obsolete file.
279 * config/pa/hppaosf.mt: Obsolete file.
280 * config/pa/hppaosf.mh: Obsolete file.
281 * config/pa/hppapro.mt: Obsolete file.
282 * config/pa/hppabsd.mt: Obsolete file.
283 * config/pa/hppabsd.mh: Obsolete file.
284 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
285 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
288 2003-03-27 Andrew Cagney <cagney@redhat.com>
290 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
291 push_arguments. Don't set push_return_address or write_sp.
292 (d10v_push_dummy_call): Replace d10v_push_arguments.
293 (d10v_push_return_address, d10v_write_sp): Delete function,
294 handled by push_dummy_call.
296 2003-03-26 Andrew Cagney <cagney@redhat.com>
298 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
299 (push_dummy_call): New pure multi-arch replacement with gdbarch,
300 regcache and dummy_addr parameters.
301 * gdbarch.h, gdbarch.c: Re-generate.
302 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
303 available; assume it will handle stack alignment and return
304 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
305 legacy_push_arguments.
306 (legacy_push_arguments): Rename default_push_arguments.
307 * value.h (legacy_push_arguments): Rename default_push_arguments.
308 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
309 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
310 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
311 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
312 * config/i386/tm-symmetry.h: Update.
313 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
314 * x86-64-tdep.c (x86_64_init_abi): Update.
315 * v850-tdep.c (v850_gdbarch_init): Update.
316 * sparc-tdep.c (sparc_gdbarch_init): Update.
317 * sh-tdep.c (sh_gdbarch_init): Update.
318 * s390-tdep.c (s390_gdbarch_init): Update.
319 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
320 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
321 * mips-tdep.c (mips_gdbarch_init): Update.
322 * mcore-tdep.c (mcore_gdbarch_init): Update.
323 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
324 * ia64-tdep.c (ia64_gdbarch_init): Update.
325 * i386-tdep.c (i386_gdbarch_init): Update.
326 * hppa-tdep.c (hppa_gdbarch_init): Update.
327 * h8300-tdep.c (h8300_gdbarch_init): Update.
328 * frv-tdep.c (frv_gdbarch_init): Update.
329 * d10v-tdep.c (d10v_gdbarch_init): Update.
330 * cris-tdep.c (cris_gdbarch_init): Update.
331 * avr-tdep.c (avr_gdbarch_init): Update.
332 * arm-tdep.c (arm_gdbarch_init): Update.
333 * arm-linux-tdep.c (arm_linux_init_abi): Update.
334 * alpha-tdep.c (alpha_gdbarch_init): Update.
336 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
338 * signals/signals.c (do_target_signal_to_host): Correct realtime
341 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
343 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
344 (struct sal_chain, map_catch_names): Remove.
345 (catch_exception_command_1): Don't call
346 handle_gnu_4_16_catch_command.
348 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
350 From Mark Dettinger <dettinge@de.ibm.com>:
351 * dwarf2cfi.c (read_2u): Increment pointer by two.
353 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
355 * signals/signals.c: Fix typos in last change.
357 2003-03-26 Daniel Jacobowitz <drow@mvista.com>
359 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
360 not already defined. Use __SIGRTMIN if available.
361 (target_signal_from_host): Remove SIGRTMIN block.
362 (do_target_signal_to_host): Remove SIGRTMIN block; check that
363 the signal is within the realtime range.
365 2003-03-25 Adam Fedor <fedor@gnu.org>
367 * Makefile.in (infrun.o): Add $(language_h)
368 * infrun.c (handle_inferior_event): Use skip_language_trampoline
369 for language specific trampolines.
370 * language.h (struct language_defn): Add skip_trampoline.
371 (skip_language_trampoline): Declare.
372 * language.c (unk_lang_trampoline, skip_language_trampoline):
374 (unknown_language_defn, auto_language_defn, local_language_defn):
375 Add ukn_lang_trampoline.
376 * ada-lang.c (ada_language_defn): Add NULL for language
377 specific skip_trampoline.
378 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
379 scm-lang.c: Likewise.
380 * objc-lang.c (objc_skip_trampoline): New function.
381 (objc_language_defn): Add objc_skip_trampoline.
383 2003-03-25 Andrew Cagney <cagney@redhat.com>
385 * frame.c (get_prev_frame): Delay validating a frame's ID -
386 non-NULL, didn't go backwards - until an attempt to unwind it to
389 2003-03-25 Andrew Cagney <cagney@redhat.com>
391 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
392 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
393 * gdbarch.h, gdbarch.c: Re-generate.
394 * config/sparc/tm-sparc.h
395 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
396 * sparc-tdep.c (sparc_gdbarch_init): Set
397 deprecated_extra_stack_alignment_needed.
398 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
399 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
400 extra_stack_alignment_needed.
401 * v850-tdep.c (v850_gdbarch_init): Ditto.
402 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
403 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
404 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
405 * cris-tdep.c (cris_gdbarch_init): Ditto.
406 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
407 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
409 2003-03-25 Andrew Cagney <cagney@redhat.com>
411 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
413 * gdbarch.h, gdbarch.c: Regenerate.
414 * d10v-tdep.c (d10v_store_struct_return): Delete function.
415 (d10v_push_arguments): Set the struct return register.
416 (d10v_gdbarch_init): Update.
417 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
418 * x86-64-tdep.c (x86_64_init_abi): Update.
419 * vax-tdep.c (vax_gdbarch_init): Update.
420 * v850-tdep.c (v850_gdbarch_init): Update.
421 * sparc-tdep.c (sparc_gdbarch_init): Update.
422 * sh-tdep.c (sh_gdbarch_init): Update.
423 * s390-tdep.c (s390_gdbarch_init): Update.
424 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
425 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
426 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
427 * mips-tdep.c (mips_gdbarch_init): Update.
428 * mcore-tdep.c (mcore_gdbarch_init): Update.
429 * m68k-tdep.c (m68k_gdbarch_init): Update.
430 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
431 * ia64-tdep.c (ia64_gdbarch_init): Update.
432 * i386-tdep.c (i386_gdbarch_init): Update.
433 * hppa-tdep.c (hppa_gdbarch_init): Update.
434 * h8300-tdep.c (h8300_gdbarch_init): Update.
435 * frv-tdep.c (frv_gdbarch_init): Update.
436 * cris-tdep.c (cris_gdbarch_init): Update.
437 * avr-tdep.c (avr_gdbarch_init): Update.
438 * arm-tdep.c (arm_gdbarch_init): Update.
439 * alpha-tdep.c (alpha_gdbarch_init): Update.
441 2003-03-25 Andrew Cagney <cagney@redhat.com>
443 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
444 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
445 CALL_DUMMY_STACK_ADJUST with a predicate variable.
446 * gdbarch.h, gdbarch.c: Regenerate.
447 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
448 call_dummy_stack_adjust_p.
449 * vax-tdep.c (vax_gdbarch_init): Ditto.
450 * v850-tdep.c (v850_gdbarch_init): Ditto.
451 * sh-tdep.c (sh_gdbarch_init): Ditto.
452 * s390-tdep.c (s390_gdbarch_init): Ditto.
453 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
454 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
455 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
456 * mips-tdep.c (mips_gdbarch_init): Ditto.
457 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
458 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
460 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
461 * i386-tdep.c (i386_gdbarch_init): Ditto.
462 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
463 * frv-tdep.c (frv_gdbarch_init): Ditto.
464 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
465 * cris-tdep.c (cris_gdbarch_init): Ditto.
466 * avr-tdep.c (avr_gdbarch_init): Ditto.
467 * arm-tdep.c (arm_gdbarch_init): Ditto.
468 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
469 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
470 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
471 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
472 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
473 call_dummy_stack_adjust_p.
474 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
475 (CALL_DUMMY_STACK_ADJUST): Delete macro.
476 * sparc-tdep.c (sparc32_push_arguments): Update.
477 * valops.c (hand_function_call): Update.
479 2003-03-25 Corinna Vinschen <vinschen@redhat.com>
481 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
482 set_gdbarch_char_signed.
484 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
487 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
489 2003-03-25 Richard Earnshaw <rearnsha@arm.com>
491 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
492 (_initialize_arm_tdep): Don't set tm_print_insn.
494 2003-03-24 Adam Fedor <fedor@gnu.org>
496 * Makefile.in (YYOBJ): Add objc-exp.tab.o
497 * objc-lang.h: Add multiple inclusion protection.
498 (start_msglist, add_msglist, end_msglist): Additional declarations.
500 2003-03-24 Richard Earnshaw <rearnsha@arm.com>
502 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
503 value was renamed to ARM_FLOAT_SOFT_FPA.
505 2003-03-23 Andrew Cagney <cagney@redhat.com>
507 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
508 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
509 * gdbarch.h, gdbarch.c: Regenerate.
510 * valops.c (hand_function_call): Update.
511 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
512 * frame.c (legacy_saved_regs_this_id): Update.
513 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
514 * dummy-frame.h: Update.
515 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
516 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
517 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
518 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
519 * config/m68k/tm-sun3.h: Update.
520 * blockframe.c (inside_main_func, frame_chain_valid): Update.
521 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
522 * x86-64-tdep.c (x86_64_init_abi): Update.
523 * vax-tdep.c (vax_gdbarch_init): Update.
524 * v850-tdep.c (v850_gdbarch_init): Update.
525 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
526 * sh-tdep.c (sh_gdbarch_init): Update.
527 * s390-tdep.c (s390_gdbarch_init): Update.
528 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
529 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
530 (frame_get_saved_regs): Update.
531 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
532 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
533 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
534 * mips-tdep.c (mips_gdbarch_init): Update.
535 * mcore-tdep.c (mcore_gdbarch_init): Update.
536 * m68k-tdep.c (m68k_gdbarch_init): Update.
537 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
538 * ia64-tdep.c (ia64_gdbarch_init): Update.
539 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
540 * i386-interix-tdep.c (i386_interix_init_abi): Update.
541 (i386_interix_back_one_frame): Update.
542 * hppa-tdep.c (hppa_gdbarch_init): Update.
543 (hppa_init_extra_frame_info): Update.
544 * h8300-tdep.c (h8300_gdbarch_init): Update.
545 * frv-tdep.c (frv_gdbarch_init): Update.
546 * cris-tdep.c (cris_gdbarch_init): Update.
547 * avr-tdep.c (avr_gdbarch_init): Update.
548 * arm-tdep.c (arm_gdbarch_init): Update.
549 * alpha-tdep.c (alpha_gdbarch_init): Update.
551 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
553 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
554 (arm_get_fp_model): Declare.
555 * arm-tdep.c (fp_model_strings): New string array.
556 (arm_fp_model, current_fp_model): New variables.
557 (arm_get_fp_model): New function.
558 (arm_set_fp): New function.
559 (set_fp_model_sfunc): New function.
560 (show_fp_model): New function.
561 (_initialize_arm_tdep): Add new command to set/show the FPU.
562 (arm_extract_return_value): Use arm_get_fp_model.
563 (arm_store_return_value): Likewise.
564 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
565 to initialize the floating-point data types.
566 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
569 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
571 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
572 the current setting of each value.
573 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
574 new_set and new_show. Use add_setshow_cmd_full and
575 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
576 commands and add new version as subcommands of "set/show arm".
578 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
580 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
581 (set_arm_command, show_arm_command): New functions.
582 (_initialize_arm_tdep): Add them.
583 (num_disassembly_options): Renamed from num_flavor_options.
584 (valid_disassembly_styles): Renamed from valid_flavors.
585 (disassembly_style): Renamed from disassembly_flavor.
586 (set_disassembly_style_sfunc): Renamed from
587 set_disassembly_flavor_sfunc.
588 (set_disassembly_style): Renamed from set_disassembly_flavor.
589 (arm_othernames): Updated.
590 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
591 command. Add "set/show arm disassembly" commands. Deprecate
592 "othernames" command.
594 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
596 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
597 (arm-tdep.o): Depend on elf_arm_h.
599 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
601 * Makefile.in (coff_internal_h): Define.
602 (arm-tdep.o): Update dependencies.
604 2003-03-22 Richard Earnshaw <rearnsha@arm.com>
606 * arm-tdep.c (prologue_cache): Delete.
607 (check_prologue_cache, save_prologue_cache): Delete.
608 (arm_scan_prologue): Don't check or update the prologue_cache.
609 (arm_gdb_arch_init): Don't initialize it.
610 (_initialize_arm_tdep): Likewise.
612 2003-03-21 Stephane Carrez <stcarrez@nerim.fr>
614 * MAINTAINERS (tui): Maintainer of tui code.
616 2003-03-21 Corinna Vinschen <vinschen@redhat.com>
618 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
619 (i386-cygwin-tdep.o): Add dependencies.
620 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
621 * i386-cygwin-tdep.c: New file.
622 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
623 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
625 2003-03-20 Andrew Cagney <cagney@redhat.com>
627 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
628 (handle_inferior_event): Remove code calling
629 DYNAMIC_TRAMPOLINE_NEXTPC.
631 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
632 already has a full path.
634 * main.c (gdb_main): Return 1.
635 (captured_main): Call error to report an invalid interpreter.
637 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
638 * alpha-osf1-tdep.c: Include "gdb_string.h".
640 2003-03-19 J. Brobecker <brobecker@gnat.com>
642 Continuing work to convert the hppa targets to multiarch partial.
644 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
645 method, now that hppa_push_dummy_frame has a conformant prototype.
646 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
647 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
648 for the switch to multiarch partial.
650 2003-03-19 Kevin Buettner <kevinb@redhat.com>
652 * mdebugread.c (parse_symbol): For stEnd, we're done counting
655 2003-03-18 Kevin Buettner <kevinb@redhat.com>
657 * mips-tdep.c (mips_register_name): Fix fencepost error involving
658 NUM_REGS bounds check.
660 2003-03-18 Kevin Buettner <kevinb@redhat.com>
662 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
663 * mips-tdep.c (gdb_assert.h): Include.
664 (mips_generic_reg_names, mips_processor_reg_names): Make static.
665 (mips_register_name): Handle integer registers explicitly. Add
667 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
668 (mips_lsi33k_reg_names): Don't list integer registers; they're
669 handled by mips_register_name() now.
670 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
671 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
672 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
673 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
674 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
676 2003-03-18 Andrew Cagney <cagney@redhat.com>
678 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
680 * gdbtypes.h (print_scalar_formatted): Update declaration.
681 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
683 2003-03-18 J. Brobecker <brobecker@gnat.com>
685 * infrun.c (observer.h): Add #include.
686 (normal_stop): Add call to observer_notify_normal_stop.
687 * Makefile.in (infrun.o): Add dependency on observer.h.
689 2003-03-18 J. Brobecker <brobecker@gnat.com>
691 Continuing work to convert the hppa targets to multiarch partial.
692 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
693 parameter. Reformat comment.
694 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
695 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
696 to match new profile.
698 2003-03-18 J. Brobecker <brobecker@gnat.com>
700 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
701 appear to be working in any case.
703 2003-03-18 J. Brobecker <brobecker@gnat.com>
705 * observer.c (observer_test_first_observer): New static variable.
706 (observer_test_second_observer): Likewise.
707 (observer_test_third_observer): Likewise.
708 (observer_test_first_notification_function): New static function.
709 (observer_test_second_notification_function): Likewise.
710 (observer_test_third_notification_function): Likewise.
712 2003-03-17 J. Brobecker <brobecker@gnat.com>
714 * hppa-tdep.c (gdb_assert.h): Add missing #include.
715 * somsolib.c (gdb_assert.h): Likewise.
716 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
717 (somsolib.o): Likewise.
719 2003-03-17 Andrew Cagney <cagney@redhat.com>
721 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
722 BFD. Simplify setting of di.endian.
724 2003-03-17 Andrew Cagney <cagney@redhat.com>
726 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
727 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
729 From Elena Zannoni <ezannoni@redhat.com>
730 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
731 vector and floating-point parameters.
732 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
734 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
736 2003-03-17 Fernando Nasser <fnasser@redhat.com>
738 * MAINTAINERS: Remove my name from several maintainership roles.
740 2003-03-17 Andrew Cagney <cagney@redhat.com>
742 Fix frame off-by-one bug.
743 * frame-unwind.h (frame_this_id_ftype): Replace
744 frame_unwind_id_ftype.
745 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
746 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
747 with "prev_register".
748 * frame-unwind.c (frame_unwind_find_by_pc): Return
749 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
751 * dummy-frame.c (cached_find_dummy_frame): Delete function.
752 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
753 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
754 (dummy_frame_unwind): Update.
755 * sentinel-frame.c (sentinel_frame_prev_register): Replace
756 sentinel_frame_register_unwind.
757 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
758 (sentinel_frame_unwinder): Update.
759 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
760 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
761 * frame.c (create_sentinel_frame): Update. Initialize
762 "prologue_cache" instead of "unwind_cache".
763 (frame_register_unwind): Call this frame's prev_register with the
764 next frame and this frame's prologue cache.
765 (get_prev_frame): Simplify. Always call prev frame's this_id with
766 this frame and prev frame's prologue cache. Document that this
767 call is shifted one to the left when compared to the
768 frame_register_unwind call.
769 (legacy_saved_regs_prev_register): Replace
770 frame_saved_regs_register_unwind.
771 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
772 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
773 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
774 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
775 (d10v_frame_unwind): Update.
776 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
777 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
778 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
779 "saved_regs" with "this_saved_regs".
781 2003-03-16 Andrew Cagney <cagney@redhat.com>
783 * frame.c (frame_pop): Don't call target_store_registers. Fix
784 problem reported by Mark Kettenis.
786 2003-03-16 Mark Kettenis <kettenis@gnu.org>
788 * i386-tdep.c (i386_register_type): Renamed from
789 i386_register_virtual_type. Adjust function signature.
790 (i386_gdbarch_init): Set register_type instead of
791 deprecated_max_register_raw_size,
792 deprecated_max_register_virtual_size and register_virtual_type.
794 2003-03-14 Andrew Cagney <cagney@redhat.com>
796 * frame.c (get_prev_frame): When a legacy frame, always call
797 legacy_get_prev_frame. Simplify unwind code using assumption that
799 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
800 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
801 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
803 2003-03-14 Andrew Cagney <cagney@redhat.com>
805 * frame.c (get_saved_register): Delete function.
806 * frame.h (get_saved_register): Delete declaration.
807 * xstormy16-tdep.c: Update comment.
808 * regcache.h: Update comments.
809 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
810 get_saved_register and extract_address, use
811 frame_read_unsigned_register.
812 (sparc_frame_saved_pc): Ditto.
813 (sparc_get_saved_register): Instead of get_saved_register, use
815 (sparc_pop_frame): Ditto.
816 * findvar.c: Update comments.
817 (value_of_register): Call frame_register instead of
819 (value_from_register): Ditto.
820 * config/sparc/tm-sparc.h: Update comment.
821 * breakpoint.c: Update comment.
823 2003-03-14 Andrew Cagney <cagney@redhat.com>
825 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
827 * gdbarch.h, gdbarch.c: Re-generate.
828 * frame.h: Update comments.
829 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
830 * x86-64-tdep.c (x86_64_init_abi): Update.
831 * sparc-tdep.c (sparc_gdbarch_init): Update.
832 * sh-tdep.c (sh_gdbarch_init): Update.
833 * mips-tdep.c (mips_gdbarch_init): Update.
834 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
835 * cris-tdep.c (cris_gdbarch_init): Update.
836 * ia64-tdep.c (ia64_gdbarch_init): Update.
837 * frame.c (frame_register): Update.
838 (get_saved_register): Update.
839 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
841 2003-03-13 Andrew Cagney <cagney@redhat.com>
843 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
844 * gdbarch.h, gdbarch.c: Regenerate.
845 * valops.c (hand_function_call): Update comment.
846 * stack.c (return_command): Update comment.
847 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
848 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
849 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
850 * x86-64-tdep.c (x86_64_init_abi): Update.
851 * vax-tdep.c (vax_gdbarch_init): Update.
852 * v850-tdep.c (v850_gdbarch_init): Update.
853 * sparc-tdep.c (sparc_gdbarch_init): Update.
854 * sh-tdep.c (sh_gdbarch_init): Update.
855 * s390-tdep.c (s390_gdbarch_init): Update.
856 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
857 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
858 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
859 * mips-tdep.c (mips_gdbarch_init): Update.
860 * mcore-tdep.c (mcore_gdbarch_init): Update.
861 * m68k-tdep.c (m68k_gdbarch_init): Update.
862 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
863 * ia64-tdep.c (ia64_gdbarch_init): Update.
864 * i386-tdep.c (i386_gdbarch_init): Update.
865 * hppa-tdep.c (hppa_gdbarch_init): Update.
866 * h8300-tdep.c (h8300_gdbarch_init): Update.
867 * frv-tdep.c (frv_gdbarch_init): Update.
868 * cris-tdep.c (cris_gdbarch_init): Update.
869 * avr-tdep.c (avr_gdbarch_init): Update.
870 * arm-tdep.c (arm_gdbarch_init): Update.
871 * alpha-tdep.c (alpha_gdbarch_init): Update.
873 2003-03-13 Andrew Cagney <cagney@redhat.com>
875 * frame.c (legacy_frame_p): New function.
876 (get_prev_frame): Use legacy_frame_p.
877 * frame.h (legacy_frame_p): Declare.
879 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
881 * MAINTAINERS (write after approval): Alphabetically
884 2003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
886 * MAINTAINERS (write after approval): Add myself.
888 2003-03-12 Andrew Cagney <cagney@redhat.com>
890 * frame.c (get_prev_frame): Rename the frame parameter to
892 (get_next_frame, legacy_get_prev_frame): Ditto.
894 2003-03-12 Andrew Cagney <cagney@redhat.com>
896 * frame.c (get_current_frame): Check target_has_registers before
897 checking target_has_stack.
898 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
899 instead of deprecated_selected_frame.
900 * findvar.c (value_of_register): Pass "frame", not
901 deprecated_selected_frame, to value_of_builtin_reg.
903 2003-03-12 Andrew Cagney <cagney@redhat.com>
905 * regcache.c (regcache_cooked_write_signed): New function.
906 (regcache_cooked_write_unsigned): New function.
907 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
908 (regcache_cooked_read_signed): Fix regnum in range assertion.
909 * regcache.h (regcache_cooked_write_signed): Declare.
910 (regcache_cooked_write_unsigned): Declare.
912 2003-03-12 Andrew Cagney <cagney@redhat.com>
914 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
915 * gdbarch.h, gdbarch.c: Re-generate.
916 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
917 * x86-64-tdep.h: Update.
918 * x86-64-tdep.c (x86_64_init_abi): Update.
919 * v850-tdep.c (v850_gdbarch_init): Update.
920 * sparc-tdep.c (sparc_gdbarch_init): Update.
921 * sh-tdep.c (sh_gdbarch_init): Update.
922 * s390-tdep.c (s390_gdbarch_init): Update.
923 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
924 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
925 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
926 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
927 * mips-tdep.c (mips_gdbarch_init): Update.
928 * mcore-tdep.c (mcore_gdbarch_init): Update.
929 * m68k-tdep.c (m68k_gdbarch_init): Update.
930 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
931 * ia64-tdep.c (ia64_gdbarch_init): Update.
932 * i386-tdep.c (i386_gdbarch_init): Update.
933 * i386-interix-tdep.c (i386_interix_init_abi): Update.
934 * hppa-tdep.c (hppa_gdbarch_init): Update.
935 * h8300-tdep.c (h8300_gdbarch_init): Update.
936 * frv-tdep.c (frv_gdbarch_init): Update.
937 * cris-tdep.c (cris_gdbarch_init): Update.
938 * avr-tdep.c (avr_gdbarch_init): Update.
939 * arm-tdep.c (arm_gdbarch_init): Update.
940 * alpha-tdep.c (alpha_gdbarch_init): Update.
941 * sh-tdep.c (sh_init_extra_frame_info): Update.
942 (sh64_init_extra_frame_info): Update.
943 * ns32knbsd-nat.c (frame_num_args): Update.
944 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
945 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
946 (xstormy16_frame_chain_valid): Update.
947 * vax-tdep.c (vax_saved_pc_after_call): Update.
948 * v850-tdep.c (v850_frame_chain): Update.
949 (v850_pop_frame): Update.
950 (v850_init_extra_frame_info): Update.
951 * sparc-tdep.c (setup_arbitrary_frame): Update.
952 * ns32k-tdep.c (umax_frame_num_args): Update.
953 * s390-tdep.c (s390_pop_frame_regular): Update.
954 * mn10300-tdep.c (mn10300_frame_chain): Update.
955 (mn10300_pop_frame_regular): Update.
956 (mn10300_init_extra_frame_info): Update.
957 * mips-tdep.c (mips_init_frame_pc_first): Update.
958 (mips_frame_chain): Update.
959 (mips_pop_frame): Update.
960 * mcore-tdep.c (mcore_frame_chain): Update.
961 (mcore_pop_frame): Update.
962 (mcore_init_extra_frame_info): Update.
963 * arch-utils.c (init_frame_pc_default): Update.
964 * m68k-tdep.c (isi_frame_num_args): Update.
965 (delta68_frame_num_args): Update.
966 (news_frame_num_args): Update.
967 * ia64-tdep.c (ia64_pop_frame_regular): Update.
968 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
969 (alpha_frame_chain): Update.
970 (alpha_pop_frame): Update.
971 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
972 (hppa_init_extra_frame_info): Update.
973 (hppa_frame_chain): Update.
974 (hppa_frame_chain_valid): Update.
975 * cris-tdep.c (cris_init_extra_frame_info): Update.
976 * avr-tdep.c (avr_init_extra_frame_info): Update.
977 * arm-tdep.c (arm_frame_chain_valid): Update.
978 (arm_init_extra_frame_info): Update.
979 (arm_pop_frame): Update.
980 * frame.c (frame_pc_unwind): Update.
981 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
982 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
983 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
984 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
985 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
986 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
988 2003-03-12 Andrew Cagney <cagney@redhat.com>
990 Eliminate the need for POP_FRAME.
991 * frame.c (do_frame_unwind_register): New function.
992 (frame_pop): When no POP_FRAME, pop the frame using register
993 unwind and a scratch regcache.
994 (frame_saved_regs_pop): Delete function.
995 (trad_frame_unwinder): Update.
996 * d10v-tdep.c (d10v_frame_pop): Delete function.
997 (d10v_frame_unwind): Update.
998 * sentinel-frame.c (sentinel_frame_pop): Delete function.
999 (sentinel_frame_unwinder): Update.
1000 * dummy-frame.c (dummy_frame_pop): Delete function.
1001 (dummy_frame_unwind): Update.
1002 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1003 (struct frame_unwind): Update.
1005 2003-03-11 Kevin Buettner <kevinb@redhat.com>
1007 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1008 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1009 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1010 Do range checks on register number obtained from debugging info.
1011 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1012 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1013 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1015 (do_fp_register_row): Fix typo which caused double type to be
1016 used when attempting to unpack a float.
1018 2003-03-11 J. Brobecker <brobecker@gnat.com>
1020 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1022 2003-03-11 Andrew Cagney <cagney@redhat.com>
1024 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1025 frame. Problem found by Corinna Vinschen.
1027 2003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1029 * doublest.c (floatformat_from_length): Accept also
1030 the real size of 'long double' type.
1032 2003-03-10 Daniel Jacobowitz <drow@mvista.com>
1034 From Klee Dienes <kdienes@apple.com>:
1035 * breakpoint.c (bpstat_copy): Copy the command lines as well
1036 as the old value, to match what is freed in bpstat_clear.
1038 2003-03-10 David Carlton <carlton@math.stanford.edu>
1040 * minsyms.c (add_minsym_to_hash_table): Replace
1041 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1042 (compare_minimal_symbols, compact_minimal_symbols)
1043 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1044 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1045 of DEPRECATED_SYMBOL_MATCHES_NAME.
1046 (lookup_minimal_symbol_solib_trampoline): Ditto.
1048 2003-03-10 Andrew Cagney <cagney@redhat.com>
1050 * regcache.h (regcache_cooked_read_ftype): Define.
1051 (regcache_save, regcache_restore): Add a cooked_read parameter.
1052 * regcache.c (regcache_save, regcache_restore): Update.
1053 (do_cooked_read): New function.
1054 (regcache_cpy): Pass do_cooked_read to regcache_save and
1057 2003-03-10 Andrew Cagney <cagney@redhat.com>
1059 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1060 * gdbarch.h, gdbarch.c: Re-generate.
1061 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1062 * x86-64-tdep.h: Update.
1063 * x86-64-tdep.c (x86_64_init_abi): Update.
1064 * v850-tdep.c (v850_gdbarch_init): Update.
1065 * sparc-tdep.c (sparc_gdbarch_init): Update.
1066 * sh-tdep.c (sh_gdbarch_init): Update.
1067 * s390-tdep.c (s390_gdbarch_init): Update.
1068 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1069 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1070 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1071 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1072 * mips-tdep.c (mips_gdbarch_init): Update.
1073 * mcore-tdep.c (mcore_gdbarch_init): Update.
1074 * m68k-tdep.c (m68k_gdbarch_init): Update.
1075 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1076 * ia64-tdep.c (ia64_gdbarch_init): Update.
1077 * i386-tdep.c (i386_gdbarch_init): Update.
1078 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1079 * hppa-tdep.c (hppa_gdbarch_init): Update.
1080 * h8300-tdep.c (h8300_gdbarch_init): Update.
1081 * frv-tdep.c (frv_gdbarch_init): Update.
1082 * cris-tdep.c (cris_gdbarch_init): Update.
1083 * avr-tdep.c (avr_gdbarch_init): Update.
1084 * arm-tdep.c (arm_gdbarch_init): Update.
1085 * alpha-tdep.c (alpha_gdbarch_init): Update.
1086 * sh-tdep.c (sh_init_extra_frame_info): Update.
1087 (sh64_init_extra_frame_info): Update.
1088 * ns32knbsd-nat.c (frame_num_args): Update.
1089 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1090 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1091 (xstormy16_frame_chain_valid): Update.
1092 * vax-tdep.c (vax_saved_pc_after_call): Update.
1093 * v850-tdep.c (v850_frame_chain): Update.
1094 (v850_pop_frame): Update.
1095 (v850_init_extra_frame_info): Update.
1096 * sparc-tdep.c (setup_arbitrary_frame): Update.
1097 * ns32k-tdep.c (umax_frame_num_args): Update.
1098 * s390-tdep.c (s390_pop_frame_regular): Update.
1099 * mn10300-tdep.c (mn10300_frame_chain): Update.
1100 (mn10300_pop_frame_regular): Update.
1101 (mn10300_init_extra_frame_info): Update.
1102 * mips-tdep.c (mips_init_frame_pc_first): Update.
1103 (mips_frame_chain): Update.
1104 (mips_pop_frame): Update.
1105 * mcore-tdep.c (mcore_frame_chain): Update.
1106 (mcore_pop_frame): Update.
1107 (mcore_init_extra_frame_info): Update.
1108 * arch-utils.c (init_frame_pc_default): Update.
1109 * m68k-tdep.c (isi_frame_num_args): Update.
1110 (delta68_frame_num_args): Update.
1111 (news_frame_num_args): Update.
1112 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1113 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1114 (alpha_frame_chain): Update.
1115 (alpha_pop_frame): Update.
1116 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1117 (hppa_init_extra_frame_info): Update.
1118 (hppa_frame_chain): Update.
1119 (hppa_frame_chain_valid): Update.
1120 * cris-tdep.c (cris_init_extra_frame_info): Update.
1121 * avr-tdep.c (avr_init_extra_frame_info): Update.
1122 * arm-tdep.c (arm_frame_chain_valid): Update.
1123 (arm_init_extra_frame_info): Update.
1124 (arm_pop_frame): Update.
1125 * frame.c (frame_pc_unwind): Update.
1126 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1127 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1128 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1129 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1130 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1131 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1133 2003-03-10 Andrew Cagney <cagney@redhat.com>
1135 * gdbarch.sh (gdbarch_unwind_pc): New method.
1136 * gdbarch.h, gdbarch.c: Regenerate.
1137 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1138 but use read_pc and FRAME_SAVED_PC as fall backs.
1139 (frame_saved_regs_pc_unwind): Delete function.
1140 (trad_frame_unwinder): Update.
1141 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1142 (struct frame_unwind): Update.
1143 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1144 (dummy_frame_unwind): Update.
1145 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1146 (sentinel_frame_unwinder): Update.
1147 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1148 (d10v_frame_unwind): Update.
1149 (d10v_unwind_pc): New function.
1150 (d10v_gdbarch_init): Set unwind_pc.
1152 2003-03-10 Andrew Cagney <cagney@redhat.com>
1154 * gdbarch.h: Re-generate.
1156 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1158 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1161 2003-03-08 Mark Kettenis <kettenis@gnu.org>
1163 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1165 2003-03-08 Andrew Cagney <cagney@redhat.com>
1167 * cli-out.c: Update copyright.
1168 (cli_out_data): Define typedef. Use instead of ui_out_data.
1170 2003-03-08 Andrew Cagney <cagney@redhat.com>
1172 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1175 2003-03-07 Andrew Cagney <cagney@redhat.com>
1177 * gdbarch.sh: Don't generate two macro definitions when an
1178 undefined macro taking no arguments.
1179 * gdbarch.h: Regenerate.
1181 2002-03-07 Michal Ludvig <mludvig@suse.cz>
1183 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1184 (x86_64_unwind_dummy_id): New functions.
1185 (x86_64_init_abi): Register these two new functions.
1187 2003-03-07 Michal Ludvig <mludvig@suse.cz>
1189 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1190 (x86_64_skip_prologue): Move prologue detection to
1192 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1194 2003-03-05 Andrew Cagney <cagney@redhat.com>
1196 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1197 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1198 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1199 to use unwind_dummy_id when a dummy frame.
1200 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1202 * gdbarch.h, gdbarch.c: Regneerate.
1204 2003-03-05 Andrew Cagney <cagney@redhat.com>
1206 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1207 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1208 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1211 2003-03-05 Andrew Cagney <cagney@redhat.com>
1213 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1214 (struct d10v_unwind_cache): Delete field "frameless". Replace
1215 "next_addr" with "sp_offset". Add "r11_offset".
1216 (d10v_frame_unwind_cache): Update.
1217 (prologue_find_regs): Update. When "mv r11, sp", save the
1218 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1219 RN was saved in r11_offset.
1221 2003-03-05 Andrew Cagney <cagney@redhat.com>
1223 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1224 cached PC value in the next frame.
1226 2003-03-05 Andrew Cagney <cagney@redhat.com>
1228 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1229 "id_unwind_cache" with "id".
1230 (frame_id_unwind): Delete declaration.
1231 * frame.c (frame_id_unwind): Delete function.
1232 (get_prev_frame): Call the frame id unwind method directly. Store
1233 the returned next frame's ID value in NEXT_FRAME. Note that there
1234 is a problem with the wrong unwind ID being called with the wrong
1237 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1239 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1241 2003-03-05 James Ingham <jingham@apple.com>
1242 Daniel Jacobowitz <drow@mvista.com>
1244 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1245 (auto_cp_abi): New variable.
1246 (current_cp_abi, num_cp_abis): Make static.
1247 (CP_ABI_MAX): Define.
1248 (cp_abis): Turn into an array.
1249 (value_virtual_fn_field): Fix formatting.
1250 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1252 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1253 (list_cp_abis, _initialize_cp_abi): New functions.
1254 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1255 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1256 switch_to_cp_abi. Update prototype for register_cp_abi.
1257 * Makefile.in (cp-abi.o): Update dependencies.
1258 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1259 instead of switch_to_cp_abi.
1260 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1262 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1264 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1266 2003-03-05 Daniel Jacobowitz <drow@mvista.com>
1268 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1269 * dwarf2loc.c: Include "regcache.h".
1270 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1272 * Makefile.in (dwarf2loc.o): Update dependencies.
1274 2003-03-04 Theodore A. Roth <troth@openavr.org>
1276 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1277 number of io registers reported by remote target is not a multiple of
1280 2003-03-04 David Carlton <carlton@math.stanford.edu>
1282 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1283 (lookup_symbol_aux_psymtabs): Update call to
1284 lookup_partial_symbol.
1285 (lookup_transparent_type, find_main_psymtab)
1286 (make_symbol_overload_list): Ditto.
1288 2003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1290 * MAINTAINERS (Write after approval): Update my email address.
1292 2003-03-03 Andrew Cagney <cagney@redhat.com>
1294 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1295 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1296 predicate. Replace MAX_REGISTER_RAW_SIZE.
1297 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1298 MAX_REGISTER_VIRTUAL_SIZE.
1299 * regcache.c (legacy_max_register_raw_size): New function.
1300 (legacy_max_register_virtual_size): New function.
1301 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1302 (MAX_REGISTER_RAW_SIZE): Define.
1303 (legacy_max_register_raw_size): Declare.
1304 (legacy_max_register_virtual_size): Declare.
1305 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1306 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1307 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1308 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1309 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1310 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1311 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1312 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1313 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1314 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1315 * vax-tdep.c (vax_gdbarch_init): Update.
1316 * v850-tdep.c (v850_gdbarch_init): Update.
1317 * sparc-tdep.c (sparc_gdbarch_init): Update.
1318 * sh-tdep.c (sh_gdbarch_init): Update.
1319 * s390-tdep.c (s390_gdbarch_init): Update.
1320 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1321 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1322 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1323 * mips-tdep.c (mips_gdbarch_init): Update.
1324 * mcore-tdep.c (mcore_gdbarch_init): Update.
1325 * m68k-tdep.c (m68k_gdbarch_init): Update.
1326 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1327 * ia64-tdep.c (ia64_gdbarch_init): Update.
1328 * i386-tdep.c (i386_gdbarch_init): Update.
1329 * hppa-tdep.c (hppa_gdbarch_init): Update.
1330 * h8300-tdep.c (h8300_gdbarch_init): Update.
1331 * frv-tdep.c (frv_gdbarch_init): Update.
1332 * cris-tdep.c (cris_gdbarch_init): Update.
1333 * avr-tdep.c (avr_gdbarch_init): Update.
1334 * arm-tdep.c (arm_gdbarch_init): Update.
1335 * alpha-tdep.c (alpha_gdbarch_init): Update.
1336 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1337 max_register_raw_size or max_register_virtual_size.
1339 2003-03-03 David Carlton <carlton@math.stanford.edu>
1341 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1342 SYMBOL_MATCHES_NAME, add comment.
1343 (SYMBOL_MATCHES_NATURAL_NAME): New.
1344 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1345 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1346 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1347 * symtab.c (lookup_partial_symbol): Use
1348 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1350 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1351 SYMBOL_MATCHES_NAME.
1354 2003-03-03 David Carlton <carlton@math.stanford.edu>
1356 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1357 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1358 by regexp matching against SYMBOL_NATURAL_NAME.
1360 2003-03-03 David Carlton <carlton@math.stanford.edu>
1362 * linespec.c (find_method): Extract code into collect_methods.
1363 (collect_methods): New.
1365 2003-03-02 Mark Kettenis <kettenis@gnu.org>
1367 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1370 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1371 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1373 2003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1375 * arch-utils.c (generic_register_byte): Fix to use the loop index
1376 and not regnum when summing the size of all registers up to regnum.
1378 2003-03-01 Andrew Cagney <cagney@redhat.com>
1380 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1381 FRAME_INIT_SAVED_REGS.
1382 * gdbarch.h, gdbarch.c: Regenerate.
1383 * stack.c (frame_info): Update.
1384 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1385 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1386 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1387 * ns32k-tdep.c (ns32k_pop_frame): Update.
1388 * mips-tdep.c (mips_pop_frame): Update.
1389 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1390 * ia64-tdep.c (ia64_frame_chain): Update.
1391 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1392 (ia64_frameless_function_invocation): Update.
1393 (ia64_init_extra_frame_info): Update.
1394 (ia64_pop_frame_regular): Update.
1395 * frame.h (struct frame_info): Update comment.
1396 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1397 * frame.c (frame_saved_regs_register_unwind): Update.
1398 (frame_saved_regs_register_unwind): Update.
1399 (deprecated_generic_get_saved_register): Update.
1400 * cris-tdep.c: Update comment.
1401 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1403 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1404 * x86-64-tdep.c (x86_64_init_abi): Update.
1405 * vax-tdep.c (vax_gdbarch_init): Update.
1406 * v850-tdep.c (v850_gdbarch_init): Update.
1407 * sparc-tdep.c (sparc_gdbarch_init): Update.
1408 * sh-tdep.c (sh_gdbarch_init): Update.
1409 * s390-tdep.c (s390_gdbarch_init): Update.
1410 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1411 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1412 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1413 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1414 * mips-tdep.c (mips_gdbarch_init): Update.
1415 * mcore-tdep.c (mcore_gdbarch_init): Update.
1416 * m68k-tdep.c (m68k_gdbarch_init): Update.
1417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1418 * ia64-tdep.c (ia64_gdbarch_init): Update.
1419 * i386-tdep.c (i386_gdbarch_init): Update.
1420 * frv-tdep.c (frv_gdbarch_init): Update.
1421 * avr-tdep.c (avr_gdbarch_init): Update.
1422 * arm-tdep.c (arm_gdbarch_init): Update.
1423 * alpha-tdep.c (alpha_gdbarch_init): Update.
1425 2003-03-01 Andrew Cagney <cagney@redhat.com>
1427 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1428 option enum and switch. When no windows, set the interpreter to
1431 2003-03-01 Andrew Cagney <cagney@redhat.com>
1433 * main.c (captured_main): Replace magic option characters with an
1436 2003-03-01 Andrew Cagney <cagney@redhat.com>
1438 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1439 INIT_EXTRA_FRAME_INFO.
1440 * gdbarch.h, gdbarch.c: Regenerate.
1441 * arm-tdep.c: Update comments.
1442 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1443 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1444 * frame.h, avr-tdep.c: Ditto.
1445 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1446 (create_new_frame, legacy_get_prev_frame): Ditto.
1447 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1448 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1449 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1450 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1451 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1452 * v850-tdep.c (v850_gdbarch_init): Ditto.
1453 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1454 * sh-tdep.c (sh_gdbarch_init): Ditto.
1455 * s390-tdep.c (s390_gdbarch_init): Ditto.
1456 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1457 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1458 * mips-tdep.c (mips_gdbarch_init): Ditto.
1459 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1460 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1461 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1462 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1463 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1464 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1465 * frv-tdep.c (frv_gdbarch_init): Ditto.
1466 * cris-tdep.c (cris_gdbarch_init): Ditto.
1467 * avr-tdep.c (avr_gdbarch_init): Ditto.
1468 * arm-tdep.c (arm_gdbarch_init): Ditto.
1469 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1470 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1472 2003-03-01 Andrew Cagney <cagney@redhat.com>
1474 * gdbarch.sh (register_type): New function with predicate.
1475 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1476 * gdbarch.h, gdbarch.c: Re-generate.
1477 * arch-utils.c (generic_register_byte): Use generic_register_size.
1478 (generic_register_size): When available, use
1479 gdbarch_register_type.
1480 * regcache.c (init_regcache_descr): When available, initialize the
1481 register type array using gdbarch_register_type. If the
1482 architecture supplies gdbarch_register_type, do not use the legacy
1484 * d10v-tdep.c (d10v_register_type): Replace
1485 d10v_register_virtual_type.
1486 (d10v_gdbarch_init): Set register_type instead of
1487 register_virtual_type.
1489 2003-03-01 Andrew Cagney <cagney@redhat.com>
1491 * Makefile.in (ax-gdb.o): Update dependencies.
1492 * ax-gdb.c: Include "regcache.h".
1493 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1494 * findvar.c (value_of_register): Ditto.
1495 * infcmd.c (default_print_registers_info): Ditto.
1497 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1499 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1500 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1502 2003-03-01 Mark Kettenis <kettenis@gnu.org>
1504 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1507 2003-02-28 Daniel Jacobowitz <drow@mvista.com>
1509 * Makefile.in (dwarf2loc.o): Update dependencies.
1510 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1511 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1512 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1513 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1514 (locexpr_tracepoint_var_ref): New function.
1515 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1517 2003-02-28 Andrew Cagney <cagney@redhat.com>
1519 * regcache.c (register_size): New function.
1520 * regcache.h (register_size): Declare
1521 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1522 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1524 2003-02-28 David Carlton <carlton@math.stanford.edu>
1526 * linespec.c (decode_compound): Extract code into find_method.
1529 2003-02-28 J. Brobecker <brobecker@gnat.com>
1531 * Makefile.in: Add rules to build and link in observer.o.
1533 2003-02-27 J. Brobecker <brobecker@gnat.com>
1535 * observer.c: Minor comments edits.
1537 2003-02-27 J. Brobecker <brobecker@gnat.com>
1539 * observer.h, observer.c: New file.
1541 2003-02-27 Andrew Cagney <cagney@redhat.com>
1543 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1545 2003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1547 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1548 (M6812_OP_STS_EXT): Likewise.
1549 (m6811_prologue): Use the above to recognize prologue.
1550 (m6812_prologue): Likewise.
1552 2003-02-27 David Carlton <carlton@math.stanford.edu>
1554 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1556 (compare_psymbols): Ditto.
1557 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1559 2003-02-27 Michael Snyder <msnyder@redhat.com>
1561 * f-lang.c (build_fortran_types): New function.
1562 (_initialize_f_language): Gdbarch-register built-in fortran types.
1563 * doublest.c (extract_floating): Fix warning text.
1565 2003-02-27 Andrew Cagney <cagney@redhat.com>
1567 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1568 predicate. Replaces PUSH_DUMMY_FRAME.
1569 * gdbarch.h, gdbarch.c: Regnerate.
1570 * valops.c (hand_function_call): Update. Call
1571 generic_push_dummy_frame directly.
1572 * vax-tdep.c (vax_gdbarch_init): Update.
1573 * sparc-tdep.c (sparc_gdbarch_init): Update.
1574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1575 * m68k-tdep.c (m68k_gdbarch_init): Update.
1576 * hppa-tdep.c (hppa_gdbarch_init): Update.
1577 * alpha-tdep.c (alpha_gdbarch_init): Update.
1578 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1579 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1580 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1581 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1582 push_dummy_frame to generic_push_dummy_frame.
1583 * v850-tdep.c (v850_gdbarch_init): Ditto.
1584 * sh-tdep.c (sh_gdbarch_init): Ditto.
1585 * s390-tdep.c (s390_gdbarch_init): Ditto.
1586 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1587 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1588 * mips-tdep.c (mips_gdbarch_init): Ditto.
1589 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1590 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1591 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1592 * i386-tdep.c (i386_gdbarch_init): Ditto.
1593 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1594 * frv-tdep.c (frv_gdbarch_init): Ditto.
1595 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1596 * cris-tdep.c (cris_gdbarch_init): Ditto.
1597 * avr-tdep.c (avr_gdbarch_init): Ditto.
1598 * arm-tdep.c (arm_gdbarch_init): Ditto.
1600 2003-02-26 Kevin Buettner <kevinb@redhat.com>
1602 * mips-tdep.c (show_mips_abi): New function.
1603 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1604 command ``show mips abi''.
1606 2003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1608 From Elena Zannoni <ezannoni@redhat.com>
1609 * dbxread.c (process_one_symbol): Only record line 0 if one or
1610 more sline entries have been seen for the function.
1612 2003-02-26 Michael Chastain <mec@shout.net>
1614 * configure: Regenerate with autoconf 000227.
1616 2003-02-26 Michael Chastain <mec@shout.net>
1619 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1620 for old libc5/glibc.
1621 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1623 2003-02-26 Kris Warkentin <kewarken@qnx.com>
1625 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1626 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1628 2003-02-26 Michael Chastain <mec@shout.net>
1630 * configure.in: New variable HAVE_UINTPTR_T.
1631 * configure, config.in: Regenerated.
1633 2003-02-26 Daniel Jacobowitz <drow@mvista.com>
1636 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1638 2003-02-25 Andrew Cagney <cagney@redhat.com>
1640 * frame.c (get_prev_frame): Add comment on check for
1641 inside_entry_func. Only check for inside_entry_file when not a
1642 dummy and not a sentinel. Check that the new frame is not inner
1645 2003-02-25 Andrew Cagney <cagney@redhat.com>
1647 * frame.c (frame_debug): New variable.
1648 (_initialize_frame): Add "set/show debug frame" command.
1649 (get_prev_frame): When frame_debug, print reason why unwind
1652 2003-02-25 Michael Chastain <mec@shout.net>
1654 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1655 to avoid uintptr_t definition problems.
1657 2003-02-25 David Carlton <carlton@math.stanford.edu>
1659 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1660 (SYMBOL_LINKAGE_NAME): Ditto.
1661 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1662 SYMBOL_LINKAGE_NAME.
1663 (struct general_symbol_info): Expand comment.
1664 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1665 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1666 (SYMBOL_MATCHES_REGEXP): Ditto.
1667 * symtab.c (symbol_natural_name): New function.
1668 * objfiles.h: Replace all uses of SYMBOL_NAME by
1669 DEPRECATED_SYMBOL_NAME.
1670 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1671 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1672 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1673 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1674 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1675 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1676 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1677 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1678 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1679 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1681 * ada-exp.y: Update copyright.
1682 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1683 * cp-valprint.c: Ditto.
1685 2003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1687 * infptrace.c (detach): Do not flag error if ptrace detach fails
1688 and errno is set to ESRCH.
1690 2003-02-24 Andrew Cagney <cagney@redhat.com>
1692 * infptrace.c (udot_info): Change type of udot_off to long. Use
1693 paddr when printing udot_off's value.
1695 2003-02-24 David Carlton <carlton@math.stanford.edu>
1697 * symtab.c (make_symbol_overload_list): Only read in partial
1698 symtabs containing a matching partial symbol.
1700 2003-02-24 David Carlton <carlton@math.stanford.edu>
1702 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1703 do the comparison, not strcmp.
1704 * symfile.c (compare_psymbols): Ditto.
1705 * defs.h: Declare strcmp_iw_ordered.
1706 * utils.c (strcmp_iw_ordered): New function.
1708 2003-02-24 Jim Blandy <jimb@redhat.com>
1710 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1711 support, shared libs): Remove my name from here, to better reflect
1714 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1716 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1717 (target_ops): Add to_have_continuable_watchpoint.
1718 * target.c (update_current_target): Add INHERIT line for
1719 to_have_continuable_watchpoint.
1720 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1721 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1722 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1723 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1725 2003-02-24 Elena Zannoni <ezannoni@redhat.com>
1727 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1730 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1732 * solib.c (solib_open): Call target defined search function after
1733 failing with solib-search-path.
1734 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1735 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
1737 2003-02-24 Kris Warkentin <kewarken@qnx.com>
1739 * MAINTAINERS: Add myself to Write After section.
1741 2003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1743 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1745 2003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1747 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1748 (m68hc11_add_reggroups): New function.
1749 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1750 (m68hc11_gdbarch_init): Install the reggroups.
1751 (_initialize_m68hc11_tdep): Initialize them.
1753 2003-02-21 James E Wilson <wilson@tuliptree.org>
1755 * MAINTAINERS: Update my email address.
1757 2003-02-21 David Carlton <carlton@math.stanford.edu>
1759 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1761 2003-02-21 Daniel Jacobowitz <drow@mvista.com>
1763 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1764 * symtab.h: Add opaque declarations of struct axs_value and
1766 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1767 (struct location_funcs): New type.
1768 (struct symbol): Add "loc" to aux_value.
1769 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1770 * dwarf2read.c: Include "dwarf2expr.h".
1771 (dwarf2_symbol_mark_computed): New function.
1772 (read_func_scope): Use it.
1773 (var_decode_location): New function.
1774 (new_symbol): Use it.
1775 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1777 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1778 (dwarf2expr_h, dwarf2loc_h): New variables.
1779 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1780 (dwarf2expr.o, dwarf2loc.o): New rules.
1781 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1782 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1784 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1785 * m2-exp.y (yylex): Likewise.
1786 * printcmd.c (address_info, print_frame_args): Likewise.
1787 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1788 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1789 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1790 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1791 * symtab.c (lookup_block_symbol): Likewise.
1793 2003-02-20 Adam Fedor <fedor@gnu.org>
1795 * symtab.h: Remove objc_specific struct
1796 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1797 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1798 Have language_objc use cplus_specific struct.
1800 2003-02-20 Tom Tromey <tromey@redhat.com>
1802 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1803 TYPE_NAME, when printing a String value. PR java/1075.
1805 2003-02-20 Adam Fedor <fedor@gnu.org>
1807 * objc-lang.h (find_methods): Remove declaration.
1808 * objc-lang.c (find_methods): Make static.
1810 2003-02-20 Christopher Faylor <cgf@redhat.com>
1812 * win32-nat.c (get_image_name): Check return value from
1814 (child_xfer_memory): Ditto.
1816 2003-02-20 Alexandre Oliva <aoliva@redhat.com>
1818 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1819 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1820 '${exec_prefix}' (in addition to the expansion thereof) as
1822 * configure: Rebuilt.
1824 2003-02-20 David Carlton <carlton@math.stanford.edu>
1826 * symtab.c (search_symbols): Revert the search_symbols part of my
1827 2002-12-23 patch. Add comment.
1829 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
1831 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1832 * dbxread.c (elfstab_build_psymtabs): Don't call
1833 install_minimal_symbols.
1834 (stabsect_build_psymtabs): Likewise.
1835 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1837 * somread.c (som_symfile_read): Call install_minimal_symbols
1838 and do_cleanups earlier.
1839 * nlmread.c (nlm_symfile_read): Likewise.
1840 * mdebugread.c (elfmdebug_build_psymtabs): Call
1841 install_minimal_symbols and make appropriate cleanups.
1843 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1845 * solib.c (reload_shared_libraries): New function.
1846 (_initialize_solib): Add callbacks for ``set solib-search-path''
1847 and ``set solib-absolute-prefix''.
1849 2003-02-20 David Carlton <carlton@math.stanford.edu>
1851 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1853 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1854 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1855 * ada-typeprint.c (ada_typedef_print): Ditto.
1856 * ax-gdb.c (gen_var_ref): Ditto.
1857 * breakpoint.c (print_one_breakpoint): Ditto.
1858 * buildsym.c (finish_block): Ditto.
1859 * c-valprint.c (c_val_print): Ditto.
1860 * expprint.c (print_subexp): Ditto.
1861 * findvar.c (locate_var_value): Ditto.
1862 * infcmd.c (jump_command): Ditto.
1863 * linespec.c (decode_line_2, decode_compound): Ditto.
1864 * maint.c (maintenance_translate_address): Ditto.
1865 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1866 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1868 * p-valprint.c (pascal_val_print): Ditto.
1869 * stabsread.c (define_symbol): Ditto.
1870 * stack.c (print_frame, frame_info, print_block_frame_locals)
1871 (print_frame_arg_vars, return_command): Ditto.
1872 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1873 * symmisc.c (print_symbol): Ditto.
1874 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1875 (compare_search_syms, print_symbol_info, print_msymbol_info)
1876 (rbreak_command): Ditto.
1877 * tracepoint.c (tracepoints_info): Ditto.
1878 * typeprint.c (typedef_print): Ditto.
1879 * valops.c (value_of_variable, hand_function_call): Ditto.
1880 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1881 * ada-typeprint.c: Update Copyright.
1882 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1883 * tracepoint.c, cli/cli-cmds.c: Ditto.
1885 2003-02-20 Kevin Buettner <kevinb@redhat.com>
1887 * frame.c (generic_unwind_get_saved_register): Make non-static.
1888 * frame.h (generic_unwind_get_saved_register): Declare.
1889 * mips-tdep.c (read_next_frame_reg): Fetch register from
1890 current regcache when frame is NULL.
1891 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1893 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1894 instead of frame_register_unwind().
1896 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1898 * remote-sim.c (gdbsim_insert_breakpoint)
1899 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1902 2003-02-20 Andrew Cagney <ac131313@redhat.com>
1904 * remote.c (_initialize_remote): Add commands "set/show remote
1905 hardware-watchpoint-limit" and "set/show remote
1906 hardware-breakpoint-limit".
1907 (remote_hw_watchpoint_limit): Initialize to -1.
1908 (remote_hw_breakpoint_limit): Ditto.
1909 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1911 2003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1913 * coff-pe-read.c: New file - support reading of minimal symbols from a
1914 portable executable using the export table.
1915 * coff-pe-read.h: New file.
1916 * coffread.c: Include coff-pe-read.h.
1917 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1918 debugging symbols found.
1919 * Makefile.in (SFILES): Add coff-pe-read.o.
1920 (coff_pe_read_h): Define.
1921 (COMMON_OBS): Add coff-pe-read.o.
1922 (coffread.o): Add coff_pe_read_h dependency.
1923 (coff-pe-read.o): New target.
1925 2003-02-19 David Carlton <carlton@math.stanford.edu>
1927 * Makefile.in (SFILES): Add block.c.
1929 (COMMON_OBS): Add block.o.
1931 (x86-64-tdep.o): Add $(block_h).
1932 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1933 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1934 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1935 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1936 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1937 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1938 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1939 * value.h: Add opaque declaration for struct block.
1940 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1941 * ada-lang.h: Ditto.
1942 * x86-64-tdep.c: #include "block.h"
1943 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1944 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1945 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1946 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1947 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1948 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1949 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1950 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1951 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1952 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1953 * symtab.c (block_function): Ditto.
1954 (contained_in): Ditto.
1955 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1956 block.h. Add opaque declaration for struct block.
1957 * symtab.h: Move block_function and contained_in declarations to
1958 block.h. Add opaque declarations for struct block, struct
1960 (struct block): Move to block.h.
1961 (struct blockvector): Ditto.
1962 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1963 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1964 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1965 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1966 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1968 * block.c: New file.
1969 * block.h: New file.
1971 2003-02-19 Theodore A. Roth <troth@openavr.org>
1973 * avr-tdep.c (avr_extract_return_value): Remove function.
1974 (avr_store_return_value): Remove function.
1975 (avr_extract_struct_value_address): Remove function.
1976 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1978 2003-02-19 Andrew Cagney <ac131313@redhat.com>
1980 * rs6000-tdep.c: Include "gdb_assert.h".
1981 (registers_e500): Add "acc" and "spefscr".
1982 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1983 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1984 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1986 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1988 2003-02-18 Keith Seitz <keiths@redhat.com>
1990 * Makefile.in: Add gdbtk-interps.c.
1992 2003-02-18 Kevin Buettner <kevinb@redhat.com>
1994 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1995 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1997 2003-02-18 Andrew Cagney <cagney@redhat.com>
1999 * symtab.h (struct objfile): Add opaque declaration.
2001 2003-02-18 Elena Zannoni <ezannoni@redhat.com>
2003 From Jim Ingham <jingham@apple.com>:
2004 * dbxread.c (process_one_symbol): Use last_function_start rather
2005 than function_start_offset to find the real beginning of the
2006 current function. The latter is just the text section offset on
2007 some systems, the former is always the real function start.
2009 2003-02-17 Andrew Cagney <cagney@redhat.com>
2011 * configure.in: Revert ${target} != ${host}.
2013 2003-02-17 Andrew Cagney <ac131313@redhat.com>
2015 * configure.in (Makefile): Use the test ${target} != ${host},
2016 instead of the absence of the "nm.h" file, to determine of the
2017 configuration non-native.
2018 * configure: Regenerate.
2020 2003-02-14 Elena Zannoni <ezannoni@redhat.com>
2022 From Brian Ford <ford@vss.fsi.com>
2024 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2025 conditionalize tui_active test.
2026 (lookup_cmd_1): Ditto.
2028 2003-02-14 Mark Kettenis <kettenis@gnu.org>
2030 * configure.in: Add check for _etext.
2031 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2033 * config.in, configure: regenerated.
2035 2003-02-14 Daniel Jacobowitz <drow@mvista.com>
2037 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2039 2003-02-14 Andrew Cagney <ac131313@redhat.com>
2041 * main.c (tui_version): Delete variable.
2042 (captured_main): When --tui, set interpreter_p to "tui" instead of
2043 enabling tui_version.
2044 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2046 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2047 * cli/cli-cmds.c (disassemble_command): Ditto.
2048 * defs.h (tui_version): Delete declaration.
2049 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2050 (tui-interp.o): Add rules.
2051 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2053 2003-02-14 Christopher Faylor <cgf@redhat.com>
2055 * win32-nat.c (register_loaded_dll): Correctly set address range for
2058 2003-02-12 Jason Molenda (jmolenda@apple.com)
2060 * symmisc.c (print_objfile_statistics): Include information about
2061 the number of psymtabs and symtabs in each object file.
2063 2003-02-13 Keith R Seitz <keiths@redhat.com>
2065 * main.h (struct captured_main_args): Add interpreter_p.
2066 * main.c (captured_main): Initialize interpreter_p from context.
2067 * gdb.c (main): Set interpreter_p argument.
2068 * Makefile.in (gdb.o): Add dependency for interps.h.
2070 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2072 * event-top.c (cli_command_loop): Delete declaration.
2073 (_initialize_event_loop): Delete function setting event_loop_hook.
2074 * event-top.h (cli_command_loop): Declare. Update copyright.
2075 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2076 * interps.c (current_interp_command_loop): When event_loop_p, call
2079 2003-02-12 Andrew Cagney <ac131313@redhat.com>
2081 * interps.h (interp_command_loop_ftype): Change return type to
2084 2003-02-12 Michal Ludvig <mludvig@suse.cz>
2086 * x86-64-tdep.c (x86_64_extract_return_value)
2087 (x86_64_store_return_value): Use regcache instead of regbuf.
2088 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2089 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2091 2003-02-11 Andrew Cagney <ac131313@redhat.com>
2093 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2094 * aclocal.m4: Regenerate.
2095 * configure: Regenerate.
2097 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2098 TCL_LD_SEARCH_FLAGS.
2100 2003-02-10 Michal Ludvig <mludvig@suse.cz>
2102 * dwarf2cfi.c: Reindented.
2104 2003-02-09 Andrew Cagney <ac131313@redhat.com>
2106 * interps.c (clear_interpreter_hooks): Convert function definition
2109 2003-02-07 David Carlton <carlton@math.stanford.edu>
2111 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2113 2003-02-07 Kevin Buettner <kevinb@redhat.com>
2115 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2116 (struct type): ...to here.
2117 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2119 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2120 (replace_type): Set length on all type variants for a given type.
2122 2003-02-07 Andrew Cagney <ac131313@redhat.com>
2124 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2126 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2128 2003-02-06 Andrew Cagney <ac131313@redhat.com>
2130 * Makefile.in (symm-nat.o): Update dependencies.
2131 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2132 (lynx-nat.o, ia64-linux-nat.): Ditto.
2133 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2134 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2135 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2137 * Makefile.in (inflow_h): Define.
2138 (procfs.o, inflow.o, procfs.o): Update dependencies.
2139 * inftarg.c (child_stop): Delete extern declaration of
2140 inferior_process_group. Include "inflow.h".
2141 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2142 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2143 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2144 (our_process_group, inferior_process_group): Extern declarations.
2146 * procfs.c: Include "gdb_assert.h".
2148 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2149 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2150 * jv-typeprint.c (java_type_print_base): Ditto.
2151 * typeprint.c (typedef_print): Eliminate STREQ.
2152 * cli/cli-script.c (define_command, define_command): Ditto.
2153 * main.c (captured_main): Ditto.
2154 * values.c (lookup_internalvar): Ditto.
2155 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2156 within `if' conditional.
2157 * linespec.c (decode_line_2): Ditto.
2158 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2159 (bfd_openw_with_cleanup): Ditto.
2161 2003-02-07 Mark Kettenis <kettenis@gnu.org>
2163 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2164 legacy_extract_return_value and store_return_value to
2165 legacy_return_value.
2167 2003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2169 * win32-nat.c (get_relocated_section_addrs): New function. Find
2170 section load addresses for symbol handling in relocated DLLs.
2171 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2173 2003-02-05 Fred Fish <fnf@intrinsity.com>
2175 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2177 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2179 (angel_RDI_info): Ditto.
2180 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2182 (threads_continue_all_with_signals): Ditto.
2184 2003-02-05 Jim Ingham <jingham@apple.com>
2185 Keith Seitz <keiths@redhat.com>
2186 Elena Zannoni <ezannoni@redhat.com>
2187 Andrew Cagney <ac131313@redhat.com>
2189 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2190 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2191 (SUBDIR_MI_OBS): Add "mi-interp.o".
2192 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2193 (SFILES): Add "interps.c".
2194 (COMMON_OBS): Add "interps.o".
2195 (interps_h, mi_main_h): Define.
2196 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2197 (mi-main.o, main.o, event-top.o): Update dependencies.
2198 * cli/cli-interp.c: New file.
2199 * interps.h, interps.c: New files.
2200 * top.c: (gdb_init): Don't install the default interpreter, handed
2202 * main.c: Include "interps.h".
2203 (interpreter_p): Note that it should malloc'ed.
2204 (captured_command_loop): Call current_interp_command_loop.
2205 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2206 xfree and xstrdup when updating interpreter_p. Install the
2207 default interpreter. Add hack to stop mi1's copyright notice
2209 * event-top.h (gdb_setup_readline): Declare.
2210 (gdb_disable_readline): Declare.
2211 * event-top.c: Include "interps.h".
2212 (display_gdb_prompt): Call current_interp_display_prompt_p.
2213 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2214 gdb_stdlog, and gdb_stdtarg.
2215 (_initialize_event_loop): Don't call gdb_setup_readline.
2216 * cli-out.c (cli_out_set_stream): New function.
2217 * cli-out.h (cli_out_set_stream): Declare.
2219 2003-02-06 Mark Kettenis <kettenis@gnu.org>
2221 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2222 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2223 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2224 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2225 config/i386/i386v42mp.mt: Removed.
2227 2003-02-05 Mark Kettenis <kettenis@gnu.org>
2229 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2232 2003-02-05 Michael Chastain <mec@shout.net>
2234 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2235 2.12.1 and earlier versions.
2237 2003-02-05 Andrew Cagney <ac131313@redhat.com>
2239 Remove orphaned hosts, targets and files.
2240 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2241 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2242 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2243 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2244 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2245 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2246 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2247 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2248 * config/sparc/tm-sp64sim.h: Delete.
2249 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2251 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2252 mips*-dec-mach3* targets.
2254 2003-02-04 Michael Chastain <mec@shout.net>
2256 * NEWS: Fix typo: sepcifying -> specifying.
2258 2003-02-04 Michael Chastain <mec@shout.net>
2260 * dwarfread.c: Add documentation on the state of dwarf-1,
2261 looking towards obsoletion.
2263 2003-02-03 Michael Chastain <mec@shout.net>
2265 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2266 gdb/testsuite/gdb.c++/pr-1023.exp.
2268 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2270 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2271 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2273 * utils.c (init_page_info): Delete reference to MPW in comments.
2274 * main.c (captured_main): Delete #ifdef MPW.
2276 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2278 * NEWS: Note that the m32r-*-elf* is obsolete.
2279 * monitor.c (monitor_expect): Obsolete reference to m32r.
2280 * configure.tgt: Mark m32r-*-elf* as obsolete.
2281 * MAINTAINERS: Mark m32k as obsolete.
2282 * m32r-rom.c: Obsolete file.
2283 * config/m32r/m32r.mt: Obsolete file.
2284 * config/m32r/tm-m32r.h: Obsolete file.
2285 * m32r-stub.c: Obsolete file.
2286 * m32r-tdep.c: Obsolete file.
2288 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2290 * NEWS: Mention that the z8k-zilog-none is obsolete.
2291 * MAINTAINERS: Mark z8k as obsolete.
2292 * configure.tgt: Obsolete the z8k-*-coff* target.
2293 * config/z8k/z8k.mt: Obsolete file.
2294 * config/z8k/tm-z8k.h: Obsolete file.
2295 * z8k-tdep.c: Obsolete file.
2297 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2299 * NEWS: Mention that the mn10200-elf is obsolete.
2300 * configure.tgt: Obsolete mn10200-*-* target.
2301 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2302 mention that the mn10200 is obsolete.
2303 * breakpoint.h: Ditto.
2304 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2305 * config/mn10200/mn10200.mt: Obsolete file.
2306 * config/mn10200/tm-mn10200.h: Obsolete file.
2307 * mn10200-tdep.c: Obsolete file.
2309 2003-02-04 Andrew Cagney <ac131313@redhat.com>
2311 * MAINTAINERS: Mark h8500 as obsolete.
2312 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2313 * findvar.c (value_from_register): Ditto.
2314 * h8500-tdep.c: Mark file as obsolete.
2315 * config/h8500/h8500.mt: Ditto.
2316 * config/h8500/tm-h8500.h: Ditto.
2317 * NEWS: Mention that h8500 is obsolete.
2319 2003-02-04 David Carlton <carlton@math.stanford.edu>
2321 * objfiles.c (allocate_objfile): Always set name. Add comment at
2323 * jv-lang.c (get_dynamics_objfile): Add comment.
2325 2003-02-04 David Carlton <carlton@math.stanford.edu>
2327 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2328 * printcmd.c (build_address_symbolic): Replace uses of
2329 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2330 SYMBOL_NAME, and asm_demangle.
2333 2003-02-04 David Carlton <carlton@math.stanford.edu>
2335 * linespec.c (decode_compound): Extract code into
2337 (lookup_prefix_sym): New function.
2339 2003-02-04 David Carlton <carlton@math.stanford.edu>
2341 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2342 FLOAT_COERCION_BADNESS.
2343 * gdbtypes.c (rank_one_type): Replace all uses of
2344 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2346 2003-02-04 Jim Blandy <jimb@redhat.com>
2348 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2349 section, let dwarf_macinfo_section point to it, not
2352 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2354 Pointed out by Anton Blanchard <anton@samba.org>.
2355 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2356 (ppc_linux_at_sigtramp_return_path): Use it.
2358 2003-02-04 Daniel Jacobowitz <drow@mvista.com>
2360 * defs.h (streq): Add prototype.
2361 * utils.c (streq): New function.
2363 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2364 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2365 * mdebugread.c (new_symbol): Likewise.
2366 * stabsread.c (define_symbol): Likewise.
2367 * coffread.c (process_coff_symbol): Likewise.
2368 * dwarfread.c (new_symbol): Likewise.
2370 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2371 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2373 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2374 SYMBOL_INIT_DEMANGLED_NAME.
2375 * objfiles.c: Include "hashtab.h".
2376 (allocate_objfile): Call htab_set_functions_ex for the
2377 demangled_names_hash.
2378 (free_objfile): Call htab_delete for the demangled_names_hash.
2379 * objfiles.h (struct htab): Add declaration.
2380 (struct objfile): Add demangled_names_hash.
2381 * symfile.c: Include "hashtab.h".
2382 (reread_symbols): Call htab_delete for the demangled_names_hash.
2383 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2384 SYMBOL_NAME in the bcache.
2385 * symtab.c: Include "hashtab.h". Update comments.
2386 (create_demangled_names_hash, symbol_set_names): New functions.
2387 (symbol_find_demangled_name): New function, broken out from
2388 symbol_init_demangled_names.
2389 (symbol_init_demangled_names): Use it.
2390 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2391 (SYMBOL_SET_NAMES): New macro.
2392 (symbol_set_names): Add prototype.
2394 2003-02-03 Jim Blandy <jimb@redhat.com>
2396 Use a single, consistent representation for an empty minimal
2397 symbol table in an objfile.
2398 * objfiles.c (terminate_minimal_symbol_table): New function.
2399 (allocate_objfile): Call it.
2400 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2401 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2403 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2404 objfile has minimal symbols, compare minimal_symbol_count to zero,
2405 instead of comparing msymbols with NULL.
2406 * objfiles.c (have_minimal_symbols): Same.
2407 * solib-sunos.c (solib_add_common_symbols): Call
2408 terminate_minimal_symbol_table.
2409 * symfile.c (reread_symbols): Same.
2411 2003-02-03 Kevin Buettner <kevinb@redhat.com>
2413 * s390-tdep.c (s390_address_class_type_flags)
2414 (s390_address_class_type_flags_to_name)
2415 (s390_address_class_name_to_type_flags): New functions.
2416 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2417 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2419 2003-02-03 Michael Snyder <msnyder@redhat.com>
2421 * arm-tdep.c: Fix spell-o in comment.
2423 2003-02-03 Michal Ludvig <mludvig@suse.cz>
2425 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2426 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2427 error messages to contain BFD filename.
2429 2003-02-02 Elena Zannoni <ezannoni@redhat.com>
2431 Fix PR gdb/742 gdb/743 gdb/877
2432 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2433 (do_mixed_source_and_assembly): Use
2434 make_cleanup_ui_out_tuple_begin_end and
2435 make_cleanup_ui_out_tuple_begin_end.
2436 (do_mixed_source_and_assembly): Ditto.
2437 * thread.c (do_captured_list_thread_ids): Ditto.
2438 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2439 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2440 ui_out_tuple_end): Delete prototypes.
2441 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2442 ui_out_list_end, ui_out_tuple_end): Delete.
2444 From Kevin Buettner <kevinb@redhat.com>:
2445 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2446 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2447 (do_cleanup_table_end): New functions.
2448 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2449 Use cleanups to invoke_ui_out_tuple_end().
2450 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2451 * cli/cli-setshow.c (cmd_show_list): Use
2452 make_cleanup_ui_out_tuple_begin_end.
2454 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2456 * frame.c (frame_unwind_register): New function.
2457 (frame_unwind_unsigned_register): Use.
2458 (frame_unwind_signed_register): Use.
2459 (frame_read_register): New function.
2460 * frame.h (frame_unwind_register): Declare.
2461 (frame_read_register): Declare.
2463 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2464 and frame_unwind_register instead of read_memory, write_register
2465 and deprecated_write_register_bytes.
2467 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2469 * frame.h: Note that namelen can be negative.
2470 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2473 * NEWS: Mention that the d10v's `regs' command is deprecated.
2474 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2475 (d10v_print_registers_info): New function.
2476 (show_regs): Call d10v_print_registers_info.
2477 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2479 2003-02-02 Mark Kettenis <kettenis@gnu.org>
2481 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2482 lost in the previous patch.
2484 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2486 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2487 * stack.c (print_frame_info_base): Output complete FRAME tuple
2488 for synthesized frames.
2490 2003-02-02 Andrew Cagney <ac131313@redhat.com>
2492 * mips-nat.c (zerobuf): Delete.
2493 (fetch_inferior_registers): Alloc local zerobuf.
2494 (fetch_core_registers): Alloc local zerobuf.
2495 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2496 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2497 * thread-db.c (thread_db_store_registers): Ditto.
2498 * sh-tdep.c (sh_do_register): Ditto.
2499 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2500 * remote-sim.c (gdbsim_store_register): Ditto.
2501 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2502 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2503 * monitor.c (monitor_supply_register): Ditto.
2504 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2505 * mips-nat.c (fetch_inferior_registers): Ditto.
2506 * m68klinux-nat.c (fetch_register): Ditto.
2507 * lynx-nat.c (fetch_inferior_registers): Ditto.
2508 (fetch_inferior_registers): Ditto.
2509 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2510 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2511 (hpux_thread_store_registers): Ditto.
2512 * hppah-nat.c (fetch_register): Ditto.
2513 * hppab-nat.c (fetch_register): Ditto.
2514 * hppa-tdep.c (pa_register_look_aside): Ditto.
2515 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2516 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2518 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2520 * gdbarch.sh: Explictly specify all method levels. When a
2521 variable with an empty level, provide a non-multi-arch default.
2522 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2523 * gdbarch.h: Re-generate.
2524 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2525 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2527 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2529 * defs.h (host_pointer_to_address): Delete declaration.
2530 (address_to_host_pointer): Delete declaration.
2531 * utils.c (host_pointer_to_address): Delete function.
2532 (address_to_host_pointer): Delete function.
2533 * procfs.c (procfs_address_to_host_pointer): New function.
2534 * procfs.c (proc_set_watchpoint): Use.
2535 (procfs_can_use_hw_breakpoint): Update comments.
2536 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2537 (som_solib_add): Use.
2538 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2539 * hppa-tdep.c (unwind_command): Use.
2541 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2543 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2546 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2547 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2548 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2549 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2550 (define_symbol): Update.
2551 * symfile.c (generic_load): Remove references to nindy.
2552 * symtab.c: Remove references to nindy.
2554 2003-02-01 Andrew Cagney <ac131313@redhat.com>
2556 * infcmd.c (print_float_info): Delete code conditional on
2558 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2559 * config/m68k/nm-apollo68b.h: Ditto.
2560 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2561 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2562 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2564 2003-02-01 Mark Kettenis <kettenis@gnu.org>
2566 * config/i386/tm-i386os9k.h: Removed.
2568 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2569 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2570 they're identical to i[3456]86-*-sysv* now.
2571 * config/i386/i386v32.mh: Removed.
2572 * config/i386/xm-i386v32.h: Removed.
2573 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2575 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2577 * config/i386/i386dgux.mh: Removed.
2578 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2580 * configure.in: Fix typo.
2581 * configure: Regenerated.
2583 2003-01-31 David Carlton <carlton@math.stanford.edu>
2585 * dwarf2read.c (dwarf2_locate_sections): Set
2586 dwarf_ranges_section.
2588 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2590 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2591 * utils.c: Update comments documenting legitimate uses of PTR.
2593 * utils.c: Re-indent.
2595 * config/djgpp/fnchange.lst: Delete nindy files.
2596 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2597 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2598 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2599 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2600 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2601 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2602 * Makefile.in (init.c): Remove nindy references.
2603 (saber_gdb): Delete rule.
2604 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2605 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2607 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2608 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2609 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2610 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2612 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2613 * saber.suppress: Delete file.
2615 2003-01-31 Daniel Jacobowitz <drow@mvista.com>
2617 * dbxread.c (stabs_data): New static variable.
2618 (fill_symbuf): Support an in-memory buffer for stabs data.
2619 (stabs_seek): New function.
2620 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2621 (read_ofile_symtab): Use stabs_seek.
2622 (elfstab_build_psymtabs): Take an asection* instead of
2623 an offset and size. Relocate the stabs data if necessary.
2624 Save the section* for dbx_psymtab_to_symtab.
2625 * dwarf2read.c: Add section variables for each debug section.
2626 (dwarf2_locate_sections): Fill them in.
2627 (dwarf2_read_section): Take an asection* argument.
2628 Relocate the section contents if necessary.
2629 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2630 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2631 it to dwarf2_read_section.
2632 (dwarf2_build_frame_info): Update callers.
2633 * elfread.c (elf_symfile_read): Update call to
2634 elfstab_build_psymtabs.
2635 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2636 (DBX_STAB_SECTION): New macro.
2637 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2638 * symfile.c (symfile_dummy_outputs): New function.
2639 (symfile_relocate_debug_section): New function.
2640 * symfile.h (symfile_relocate_debug_section): Add prototype.
2642 2003-01-31 Richard Henderson <rth@redhat.com>
2644 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2645 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2646 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2647 * alpha-tdep.c (alpha_register_name): Add "unique".
2648 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2649 (ALPHA_UNIQUE_REGNUM): New.
2650 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2652 2003-01-31 Andrew Cagney <ac131313@redhat.com>
2654 * README: Remove reference to Ericsson 1800 monitor.
2655 * Makefile.in (remote-es.o): Delete rule.
2656 (ALLDEPFILES): Delete remote-es.c.
2657 * remote-es.c: Delete file.
2658 * config/m68k/es1800.mt: Delete file.
2659 * config/djgpp/fnchange.lst: Update.
2660 * configure.tgt: Delete m68*-ericsson-* target.
2662 2003-01-31 Adam Fedor <fedor@gnu.org>
2664 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2665 Remove duplicate/shadowing variable of same name.
2667 2003-01-30 Jim Blandy <jimb@redhat.com>
2669 * symfile.c (find_separate_debug_file): Assert that the objfile's
2670 directory name we compute ends with a slash, and then assume that
2671 that's so everywhere we use it.
2673 2003-01-30 Daniel Jacobowitz <drow@mvista.com>
2675 * valops.c (value_assign): Flush frame cache after stores to memory
2678 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2680 * Makefile.in (mon960-rom.o): Delete rule.
2681 * mon960-rom.c: Delete file.
2683 2003-01-30 Andrew Cagney <ac131313@redhat.com>
2685 * d10v-tdep.c: Include "frame-unwind.h".
2686 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2688 (next_addr, uses_frame): Delete.
2689 (struct d10v_unwind_cache): Define.
2690 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2691 Use info instead of next_addr and uses_frame globals.
2692 (d10v_frame_init_saved_regs): Delete function.
2693 (d10v_init_extra_frame_info): Delete function.
2694 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2695 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2696 init_frame_pc or frame_saved_pc.
2697 (d10v_pop_frame): Delete function.
2698 (do_d10v_pop_frame): Delete function.
2699 (d10v_frame_chain): Delete function.
2700 (d10v_frame_chain_valid): Delete function.
2701 (d10v_frame_pc_unwind): New function.
2702 (d10v_frame_id_unwind): New function.
2703 (saved_regs_unwinder): New function.
2704 (d10v_frame_register_unwind): New function.
2705 (d10v_frame_pop): New function.
2706 (d10v_frame_unwind): New variable.
2707 (d10v_frame_p): New function.
2708 (d10v_frame_saved_pc): Delete function.
2709 * Makefile.in (d10v-tdep.o): Update dependencies.
2711 2003-01-30 J. Brobecker <brobecker@gnat.com>
2713 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2714 causing some regressions due to a change in the default value
2717 2003-01-29 Richard Henderson <rth@redhat.com>
2718 Elena Zannoni <ezannoni@redhat.com>
2719 Daniel Jacobowitz <drow@mvista.com>
2722 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2724 (RANGES_SECTION): New.
2725 (dwarf_ranges_buffer): New variable.
2726 (struct comp_unit_head): Add member "die".
2727 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2728 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2729 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2730 (dwarf2_locate_sections): Likewise.
2731 (dwarf2_build_psymtabs): Read .debug_ranges.
2732 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2733 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2734 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2735 Look for DW_AT_ranges and return the bounding box.
2737 2003-01-29 Brian Ford <ford@vss.fsi.com>
2739 * win32-nat.c (cygwin_pid): Removed as unused.
2740 (child_attach): Try fall back to Cygwin pid.
2742 2003-01-29 Jim Blandy <jimb@redhat.com>
2744 * objfiles.h (struct objfile): Doc fix.
2746 2003-01-29 Andrew Cagney <ac131313@redhat.com>
2748 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2749 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2750 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2751 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2752 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2753 (FRAME_SAVED_PC): Change to a function with predicate.
2754 * gdbarch.h, gdbarch.c: Re-generate.
2756 2003-01-28 Andrew Cagney <ac131313@redhat.com>
2758 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2760 * complaints.c (complain): Delete function.
2761 * complaints.h (struct deprecated_complaint): Delete definition.
2762 (complain): Delete declaration.
2764 2003-01-28 Kevin Buettner <kevinb@redhat.com>
2766 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2769 2003-01-27 Andrew Cagney <ac131313@redhat.com>
2771 * sentinel-frame.h, sentinel-frame.c: New files.
2772 * Makefile.in (frame.o): Update dependencies.
2773 (SFILES): Add sentinel-frame.c.
2774 (sentinel_frame_h): Define.
2775 (COMMON_OBS): Add sentinel-frame.o.
2776 (sentinel-frame.o): Specify dependencies.
2777 * frame.c: Include "sentinel-frame.h".
2778 (frame_register_unwind): Rewrite assuming that there is always a a
2780 (frame_register, generic_unwind_get_saved_register): Ditto.
2781 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2782 (create_sentinel_frame, unwind_to_current_frame): New functions.
2783 (get_current_frame): Rewrite using create_sentinel_frame and
2784 unwind_to_current_frame. When possible, always create a frame.
2785 (create_new_frame): Set next to the sentinel frame.
2786 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2787 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2788 ID cache when necessary.
2789 (frame_saved_regs_id_unwind): Use frame_relative_level.
2790 (deprecated_generic_get_saved_register): Use frame_relative_level,
2791 get_frame_saved_regs, get_frame_pc, get_frame_base and
2793 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2796 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2798 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2800 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2802 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2803 (maintenance_set_profile_cmd): Use error () instead of warning ().
2805 2003-01-27 Daniel Jacobowitz <drow@mvista.com>
2807 * configure.in: Check that -pg works if using --enable-profiling.
2808 Check for monstartup and _mcleanup regardless of --enable-profiling.
2809 * maint.c: Check for monstartup and _mcleanup before using them.
2810 * config.in: Regenerated.
2811 * configure: Regenerated.
2813 2003-01-24 Nick Clifton <nickc@redhat.com>
2817 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2819 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2820 (sh2e_show_regs): New.
2821 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2822 * config/sh/tm-sh.h: Added sh2e to comments.
2824 2003-01-23 Jim Blandy <jimb@redhat.com>
2826 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2827 symbols found)" message here; we haven't checked for a separate
2828 debug info file yet, so we don't know yet.
2829 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2830 we've looked everywhere. Also, there's no need to print a special
2831 message when we're loading the separate debug info file: the one
2832 symbol_file_add prints is fine.
2834 2003-01-23 Alexander Larsson <alexl@redhat.com>
2835 Jim Blandy <jimb@redhat.com>
2837 Add support for executables whose debug info has been separated
2838 out into a separate file, leaving only a link behind.
2839 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2840 and separate_debug_objfile_backlink.
2841 (put_objfile_before): New declaration.
2842 * symfile.c: #include "filenames.h".
2843 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2844 debug info in a separate file, read that, too. Save the addrs
2845 argument, so we can use it again to read the separated debug info;
2846 syms_from_objfile modifies the table we pass it.
2847 (reread_symbols): After re-reading an objfile, call
2848 reread_separate_symbols to refresh its separate debug info
2849 objfile, if it has one.
2850 (reread_separate_symbols, find_separate_debug_file,
2851 get_debug_link_info, separate_debug_file_exists): New functions.
2852 (debug_file_directory): New global var.
2853 (_initialize_symfile): Initialize debug_file_directory, and
2854 provide the new `set debug-file-directory' command to let the user
2856 * objfiles.c (free_objfile): If this objfile has its debug info in
2857 a separate objfile, free that one too. If this is itself a
2858 separate debug info objfile, clear our parent's backlink.
2859 (put_objfile_before): New function.
2860 * utils.c (gnu_debuglink_crc32): New function.
2861 * defs.h (gnu_debuglink_crc32): New declaration.
2862 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2863 * configure.in: Handle --with-separate-debug-dir config option.
2864 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2865 * acconfig.h (DEBUGDIR): New macro.
2866 * configure, aclocal.m4, config.in: Regenerated.
2868 2003-01-22 Jim Blandy <jimb@redhat.com>
2870 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2871 like the old symbol_file_add, but taking new arguments: you can
2872 now pass in either a `struct section_addr_info' list to say where
2873 each section is loaded, or a `struct section_offsets' table. Pass
2874 these new arguments through to syms_from_objfile as appropriate.
2875 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2876 with the appropriate quiescent values for the new arguments.
2878 * symfile.c: #include "gdb_assert.h".
2879 (syms_from_objfile): Add the ability to pass in a section offset
2880 table directly, as an alternative to the section_addr_info table.
2881 Document arguments better.
2882 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2883 * symfile.h (syms_from_objfile): Update declaration.
2884 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2886 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2888 2003-01-22 Daniel Jacobowitz <drow@mvista.com>
2890 Original patch by Tom Tromey <tromey@cygnus.com> and
2891 Jason Molenda <jmolenda@apple.com>.
2892 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2893 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2894 * NEWS: Mention profiling.
2895 * configure.in (--enable-gdbtk): Fix typo.
2896 (--enable-profiling): New. Set PROFILE_CFLAGS.
2897 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2899 (profiling_state): New variable.
2900 (mcleanup_wrapper): New function.
2901 (_initialize_maint): Remove NOTYET, fix call to
2902 add_setshow_boolean_cmd for "maint set profile".
2903 * configure: Regenerated.
2905 2003-01-21 Martin M. Hunt <hunt@redhat.com>
2907 * Makefile.in (install-gdbtk): Install PNG images too.
2909 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2911 * exec.c (text_start): Delete global variable.
2912 (exec_file_attach): Make text_start local to the function.
2913 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2914 * valops.c (hand_function_call): Delete code that handles
2915 BEFORE_TEXT_END and AFTER_TEXT_END.
2916 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2917 of CALL_DUMMY_LOCATION.
2918 * gdbarch.c: Regenerate.
2919 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2920 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2921 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2922 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2923 (text_end): Delete extern declaration.
2925 2003-01-21 Andrew Cagney <ac131313@redhat.com>
2927 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2928 * blockframe.c (backtrace_below_main): Move to "frame.c".
2929 (frame_chain_valid): Delete check for backtrace_below_main.
2930 (_initialize_blockframe): Delete initialization, move ``set
2931 backtrace-below-main'' command to "frame.c".
2932 (do_flush_frames_sfunc): Delete function.
2933 * frame.c: Include "command.h" and "gdbcmd.h".
2934 (frame_type_from_pc): New function.
2935 (create_new_frame): Use frame_type_from_pc.
2936 (legacy_get_prev_frame): New function.
2937 (get_prev_frame): Rewrite. When an old style frame, call
2938 legacy_get_prev_frame. Otherwize, unwind the PC first.
2939 (_initialize_frame): Add ``set backtrace-below-main'' command.
2940 * Makefile.in (frame.o): Update dependencies.
2942 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2944 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2945 DEPRECATED_REGISTERS_INFO.
2947 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2949 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2950 Maintainers'. Update `Various Maintainers'.
2952 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2954 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2955 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2956 Suppress actual parameters when `-'.
2957 * gdbarch.h, gdbarch.c: Regenerate.
2959 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2961 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2962 code handling dummy frames.
2964 2003-01-19 Andrew Cagney <ac131313@redhat.com>
2966 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2967 (struct frame_unwind): Add field pop.
2968 * frame.h (frame_pop): Declare.
2969 * frame.c (frame_saved_regs_pop): New function.
2970 (trad_frame_unwinder): Add frame_saved_regs_pop.
2971 (frame_pop): New function.
2972 * dummy-frame.c (dummy_frame_pop): New function.
2973 (discard_innermost_dummy): New function.
2974 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2975 (dummy_frame_unwind): Add dummy_frame_pop.
2976 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2977 * valops.c (hand_function_call): Ditto.
2978 * stack.c (return_command): Ditto.
2980 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2982 * cris-tdep.c: Fix function declaration indentation.
2983 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2984 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2985 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2986 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2987 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2988 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2990 2003-01-18 Michael Chastain <mec@shout.net>
2992 * README (Unpacking and Installation -- quick overview):
2993 Warn against ".../gdb-5.3/gdb/configure".
2995 2003-01-18 Andrew Cagney <ac131313@redhat.com>
2997 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2998 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2999 (struct frame_unwind): Declare opaque.
3000 (dummy_frame_p): Declare function.
3001 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3002 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3003 * dummy-frame.c: Include "frame-unwind.h".
3004 (dummy_frame_p): New function.
3005 (dummy_frame_unwind): New variable.
3006 * frame.c: Include "frame-unwind.h".
3007 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3008 to use the new unwind field.
3009 (set_unwind_by_pc): Delete function.
3010 (create_new_frame, get_prev_frame): Set unwind field using
3011 frame_unwind_find_by_pc.
3012 (trad_frame_unwind, trad_frame_unwinder): New variables.
3013 * frame.h (trad_frame_unwind): Declare variable.
3014 (frame_id_unwind_ftype): Delete declaration.
3015 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3016 (struct frame_unwind): Declare opaque.
3017 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3018 register_unwind with a single unwind pointer.
3019 * frame-unwind.h, frame-unwind.c: New files.
3020 * Makefile.in (SFILES): Add frame-unwind.c.
3021 (frame_unwind_h): Define.
3022 (COMMON_OBS): Add frame-unwind.o.
3023 (frame-unwind.o): Specify dependencies.
3024 (frame.o, dummy-frame.o): Update dependencies.
3026 2003-01-18 Andrew Cagney <ac131313@redhat.com>
3028 * ada-valprint.c: Eliminate PTR.
3029 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3030 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3031 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3032 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3033 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3034 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3035 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3037 2003-01-17 Andrew Cagney <ac131313@redhat.com>
3039 * main.c (captured_main): Don't use PTR.
3040 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3041 * gdbtypes.c (lookup_primitive_typename): Ditto.
3042 (lookup_struct_elt_type): Ditto.
3043 * f-valprint.c (info_common_command): Ditto.
3044 (list_all_visible_commons): Ditto.
3045 * jv-typeprint.c (java_type_print_base): Ditto.
3047 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3048 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3049 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3050 i386-interix-nat.c and i386-interix-tdep.c. Rename
3051 m68klinux-nat.c and m68klinux-tdep.c. Rename
3052 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3053 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3054 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3055 * main.c (captured_main): Use xfree, not free.
3057 2003-01-16 Andrew Cagney <ac131313@redhat.com>
3059 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3060 ID back using a parameter.
3061 * frame.c (frame_id_unwind): Update call.
3062 (frame_saved_regs_id_unwind): Update.
3063 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3064 * dummy-frame.h (struct frame_id): Add opaque declaration.
3065 (dummy_frame_id_unwind): Update declaration.
3067 2003-01-15 Andrew Cagney <ac131313@redhat.com>
3069 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3071 2003-01-15 Stephen P. Smith <ischis2@cox.net>
3073 * MAINTAINERS (Stephen P. Smith): Updated email address.
3075 2003-01-14 Elena Zannoni <ezannoni@redhat.com>
3078 * breakpoint.c (until_break_command): Add new argument. Use it to
3079 decide whether to stop only at the current frame or not.
3080 * breakpoint.h (until_break_command): Update prototype.
3081 * infcmd.c (until_command): Add new argument to until_break_command
3083 (advance_command): New function.
3084 (_initialize_infcmd): Update help string for 'until' command.
3085 Add new 'advance' command.
3087 2003-01-14 David Carlton <carlton@math.stanford.edu>
3089 * linespec.c (decode_line_1): Normalize comments.
3091 (locate_first_half): Ditto.
3092 (decode_compound): Ditto.
3093 (symtab_from_filename): Ditto.
3094 (decode_all_digits): Ditto.
3095 (decode_dollar): Ditto.
3096 (find_methods): Ditto.
3097 (find_toplevel_char): Ditto.
3099 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3101 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3102 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3103 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3104 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3105 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3106 * language.c, language.h, m32r-tdep.c: Update copyright.
3107 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3108 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3109 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3110 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3111 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3112 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3114 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3116 * stabsread.h (process_later, resolve_cfront_continuation):
3118 Update copyright years.
3119 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3120 Update copyright year.
3121 * dbxread.c(struct cont_elem): Obsolete.
3122 (process_later, process_now): Obsolete functions.
3123 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3124 Update copyright year.
3125 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3126 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3127 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3128 (parse_partial_symbols): Obsolete cfront support.
3130 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3132 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3133 read_cfront_baseclasses, read_cfront_member_functions,
3134 resolve_cfront_continuation,read_cfront_static_fields,
3135 copy_cfront_struct_fields): Obsolete functions.
3136 (define_symbol, read_one_struct_field): Obsolete cfront support.
3137 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3138 Update Copyright year.
3140 2003-01-13 Elena Zannoni <ezannoni@redhat.com>
3142 * stack.c (print_frame_info, print_stack_frame_base_stub,
3143 print_stack_frame_base, show_and_print_stack_frame_stub,
3144 show_and_print_stack_frame, print_only_stack_frame_stub,
3145 print_only_stack_frame): Delete functions.
3146 (print_stack_frame_stub): Call print_frame_info instead of
3147 print_frame_info_base.
3148 (print_frame_info_base): Rename to print_frame_info.
3149 (backtrace_command_1): Call print_frame_info, instead of
3150 print_frame_info_base.
3151 (current_frame_command): Call print_stack_frame, instead of
3152 print_only_stack_frame.
3153 (frame_command): Call print_stack_frame, instead of
3154 show_and_print_stack_frame.
3155 (up_command): Ditto.
3156 (down_command): Ditto.
3157 * frame.h (print_only_stack_frame): Delete prototype.
3158 * infrun.c (normal_stop): Call print_stack_frame, instead of
3159 show_and_print_stack_frame.
3160 * thread.c (info_threads_command): Call print_stack_frame, instead
3161 of print_only_stack_frame.
3163 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3165 * README (Graphical interface to GDB): Update URL. Point at
3168 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3171 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3173 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3176 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3178 * thread-db.c (attach_thread): Prototype.
3179 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3180 thread information (ti), and valid flags (th_valid, ti_valid).
3181 (attach_thread): Move target_pid_to_str call to after the thread
3182 is added to GDB's list. Initialize the cache.
3183 (thread_get_info_callback, thread_db_map_id2thr)
3184 (thread_db_get_info): New functions.
3185 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3186 (thread_db_store_registers, thread_db_thread_alive)
3187 (thread_db_get_thread_local_address): Use them.
3188 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3189 of calling error() for threads in unknown state.
3191 (clear_lwpid_callback): New function.
3192 (thread_db_resume): Use it to clear the cache.
3194 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3196 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3197 (resume_callback): Remove dead code.
3199 2003-01-13 Andrew Cagney <ac131313@redhat.com>
3201 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3203 * gdbarch.h, gdbarch.c: Regenerate.
3204 * stack.c (frame_info): Only initialize the saved registers when
3205 FRAME_INIT_SAVED_REGS_P.
3206 * frame.c (frame_saved_regs_register_unwind): Assert
3207 FRAME_INIT_SAVED_REGS_P.
3208 (deprecated_generic_get_saved_register): Ditto.
3210 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3212 * source.c (openp): Squelch warning about "filename".
3214 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3216 * source.c (openp): If the file does not exist don't necessarily
3219 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3222 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3223 (integer_types_same_name_p): New function.
3224 (rank_one_type): Use it.
3225 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3227 2003-01-13 Daniel Jacobowitz <drow@mvista.com>
3229 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3231 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3232 * configure.in: Add --with-sysroot.
3233 * configure: Regenerated.
3234 * main.c (gdb_sysroot): New variable.
3235 (captured_main): Initialize gdb_sysroot.
3236 * defs.h (gdb_sysroot): New extern declaration.
3237 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3239 2003-01-12 Michael Chastain <mec@shout.net>
3241 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3243 2003-01-12 Michael Chastain <mec@shout.net>
3245 * top.c (print_gdb_version): Bump copyright year to 2003.
3247 2003-01-12 David Carlton <carlton@bactrian.org>
3249 * linespec.c (symtab_from_filename): Rename variable 's' to
3252 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3254 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3256 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3258 2003-01-12 Andrew Cagney <ac131313@redhat.com>
3260 * d10v-tdep.c: Include "gdb_assert.h".
3261 (d10v_store_return_value): Rewrite to match current interface.
3262 (d10v_extract_struct_value_address): Ditto.
3263 (d10v_extract_return_value): Ditto.
3264 (d10v_gdbarch_init): Set store_restore_value,
3265 extract_struct_value_address and extract_return_value.
3267 2003-01-12 J. Brobecker <brobecker@gnat.com>
3269 * hpread.c (set_namestring): New procedure replacing the
3270 SET_NAMESTRING macro.
3271 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3272 by calls to set_namestring.
3274 2003-01-11 J. Brobecker <brobecker@gnat.com>
3276 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3277 a compilation warning.
3278 (hpread_process_one_debug_symbol): Likewise.
3280 2003-01-10 David Carlton <carlton@math.stanford.edu>
3282 * linespec.c (decode_line_1): Rename variable 's' to
3284 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3285 (decode_dollar): Ditto.
3286 (decode_variable): Ditto.
3287 (symbol_found): Ditto.
3289 2003-01-09 Michael Chastain <mec@shout.net>
3291 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3293 2003-01-07 Corinna Vinschen <vinschen@redhat.com>
3295 * win32-nat.c (set_process_privilege): New function.
3296 (child_attach): Call set_process_privilege() to enable the
3297 SE_DEBUG_NAME user privilege if available in process token.
3299 2003-01-10 J. Brobecker <brobecker@gnat.com>
3301 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3302 compilation error in the previous revision.
3304 2003-01-09 David Carlton <carlton@math.stanford.edu>
3306 * linespec.c: Update copyright.
3308 2003-01-09 Daniel Jacobowitz <drow@mvista.com>
3310 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3312 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3314 2003-01-09 Andrew Cagney <ac131313@redhat.com>
3316 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3318 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3319 (frame_saved_regs_zalloc): Update.
3320 (frame_saved_regs_register_unwind): Update.
3321 (create_new_frame): Update.
3322 (get_prev_frame): Update.
3323 (frame_extra_info_zalloc): Update.
3324 (deprecated_get_frame_saved_regs): Update.
3325 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3326 * cris-tdep.c: Update comment.
3328 * somsolib.h: Fix function indentation.
3329 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3330 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3331 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3332 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3333 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3335 * infrun.c (follow_fork): Use ISO C definition.
3336 * expprint.c (print_subexp): Use xfree instead of free.
3337 * charset.c: Include "gdb_string.h" instead of <string.h>.
3338 (register_iconv_charsets): Use ISO C definition.
3339 (host_charset, target_charset): Ditto.
3340 * Makefile.in (charset.o): Update dependencies.
3341 (mi-cmd-env.o): Update dependencies.
3343 2003-01-08 Andrew Cagney <cagney@redhat.com>
3345 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3348 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3350 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3351 build directories. Save edited gdb output in Mbuild.log. If a
3352 build fails, remove any final GDB executable.
3354 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3356 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3357 replacing hex constants with function names and stripping leading
3358 file name directory prefixes.
3360 2003-01-08 Andrew Cagney <cagney@redhat.com>
3362 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3365 2003-01-08 David Carlton <carlton@math.stanford.edu>
3367 * linespec.c (decode_line_1): Move code into decode_variable.
3368 (decode_variable): New function.
3370 2003-01-08 Andrew Cagney <ac131313@redhat.com>
3372 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3374 2003-01-08 Andrew Cagney <cagney@redhat.com>
3376 * cris-tdep.c (cris_frame_init_saved_regs): Use
3377 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3379 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3380 (sh64_nofp_frame_init_saved_regs): Ditto.
3381 (sh_fp_frame_init_saved_regs): Ditto.
3382 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3383 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3384 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3385 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3387 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
3389 * minsyms.c (lookup_minimal_symbol): Update comment.
3390 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3391 (lookup_minimal_symbol_solib_trampoline): Likewise.
3393 2003-01-08 Andrew Cagney <cagney@redhat.com>
3395 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3396 frame_relative_level.
3398 * alpha-tdep.c: Use get_frame_extra_info.
3399 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3400 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3401 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3402 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3404 * alpha-tdep.c: Use get_next_frame.
3405 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3406 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3407 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3408 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3409 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3410 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3411 * xstormy16-tdep.c: Ditto.
3413 2003-01-07 Andrew Cagney <cagney@redhat.com>
3415 * alpha-tdep.c: Use get_frame_base.
3416 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3417 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3418 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3419 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3420 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3421 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3422 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3423 * config/sparc/tm-sparc.h: Ditto.
3425 2003-01-07 Andrew Cagney <cagney@redhat.com>
3427 * frame.c (deprecated_get_frame_context): New function.
3428 (deprecated_set_frame_context): New function.
3429 * frame.h (deprecated_get_frame_context): Declare.
3430 (deprecated_set_frame_context): Declare.
3431 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3432 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3434 2003-01-07 Andrew Cagney <cagney@redhat.com>
3436 * frame.c (deprecated_set_frame_next_hack): New function.
3437 (deprecated_set_frame_prev_hack): New function.
3438 * frame.h (deprecated_set_frame_next_hack): Declare.
3439 (deprecated_set_frame_prev_hack): Declare.
3440 * mcore-tdep.c (analyze_dummy_frame): Use
3441 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3442 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3444 2003-01-07 David Carlton <carlton@math.stanford.edu>
3446 * linespec.c (decode_line_1): Move code into decode_dollar.
3447 (decode_dollar): New function.
3449 2003-01-07 Andrew Cagney <cagney@redhat.com>
3451 * arm-tdep.c (arm_init_extra_frame_info): Use
3452 deprecated_update_frame_base_hack.
3453 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3454 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3455 (fix_frame_pointer): Ditto.
3456 (mn10300_analyze_prologue): Ditto.
3458 2003-01-07 Andrew Cagney <cagney@redhat.com>
3460 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3461 extra_info using frame_extra_info_zalloc.
3462 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3463 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3464 (sh64_init_extra_frame_info): Ditto.
3465 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3466 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3467 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3468 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3469 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3470 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3471 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3472 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3473 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3474 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3475 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3476 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3478 * mn10300-tdep.c (analyze_dummy_frame): Use
3479 deprecated_set_frame_extra_info_hack.
3480 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3482 2003-01-07 J. Brobecker <brobecker@gnat.com>
3484 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3485 class is not scText. These do not define "real" procedures.
3486 (parse_partial_symbols): Likewise.
3488 2003-01-06 Michael Snyder <msnyder@redhat.com>
3490 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3492 2003-01-06 Andrew Cagney <ac131313@redhat.com>
3494 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3495 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3496 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3497 deprecated_frame_xmalloc_with_cleanup.
3498 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3499 deprecated_frame_xmalloc.
3500 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3501 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3503 2003-01-06 Andrew Cagney <cagney@redhat.com>
3505 * x86-64-linux-tdep.c: Include "osabi.h".
3506 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3508 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3510 2003-01-06 Andrew Cagney <cagney@redhat.com>
3512 * MAINTAINERS (Target Instruction Set Architectures): Update
3513 arm-elf. Can be built with -Werror, has been multiarched.
3515 * value.h (unpack_long): Make buffer parameter constant.
3516 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3517 * scm-lang.h (scm_parse): Ditto.
3518 * defs.h (extract_typed_address, extract_address): Ditto.
3519 (extract_long_unsigned_integer): Ditto.
3520 * inferior.h (unsigned_pointer_to_address): Ditto.
3521 (signed_pointer_to_address): Ditto.
3522 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3523 * gdbarch.h, gdbarch.c: Regenerate.
3524 * findvar.c (extract_long_unsigned_integer): Update.
3525 (extract_address): Update.
3526 (extract_typed_address): Update.
3527 (unsigned_pointer_to_address): Update.
3528 * values.c (unpack_long): Update.
3529 (unpack_double): Update.
3530 (unpack_pointer): Update.
3531 (unpack_field_as_long): Update.
3532 * d10v-tdep.c (d10v_pointer_to_address): Update.
3533 * avr-tdep.c (avr_pointer_to_address): Update.
3534 * scm-lang.c (scm_unpack): Update.
3535 * findvar.c (signed_pointer_to_address): Update.
3537 2003-01-06 Michal Ludvig <mludvig@suse.cz>
3539 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3540 since it is in i386-tdep.c.
3542 2003-01-06 J. Brobecker <brobecker@gnat.com>
3544 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3545 failure introduced in the previous change.
3547 2003-01-05 Michael Chastain <mec@shout.net>
3549 * README: Remove references to deleted remote-*.c files:
3550 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3551 remote-nrom.c, remote-os9k.c, remote-udi.c.
3553 2003-01-05 Mark Kettenis <kettenis@gnu.org>
3555 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3556 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3557 i386_get_longjmp_target.
3559 2003-01-05 Andrew Cagney <ac131313@redhat.com>
3561 * arm-tdep.c (prologue_cache): Change to a pointer.
3562 (_initialize_arm_tdep): Allocate prologue_cache.
3563 (check_prologue_cache): Update.
3564 (save_prologue_cache): Update.
3565 (arm_gdbarch_init): Update.
3567 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3569 * stabsread.c (update_method_name_from_physname): Call complaint()
3572 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3574 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3575 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3576 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3578 * blockframe.c: Include "gdbcmd.h" and "command.h".
3579 (backtrace_below_main): New variable.
3580 (file_frame_chain_valid, func_frame_chain_valid)
3581 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3582 (generic_func_frame_chain_valid): Remove functions.
3583 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3584 (_initialize_blockframe): New function.
3585 * Makefile.in (blockframe.o): Update dependencies.
3586 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3587 comment. Call frame_chain_valid ().
3588 * frame.h: Remove old prototypes. Add prototype for
3589 frame_chain_valid and update comments to match.
3590 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3592 * gdbarch.h: Regenerated.
3593 * gdbarch.c: Regenerated.
3595 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3596 set_gdbarch_frame_chain_valid.
3597 * avr-tdep.c (avr_gdbarch_init): Likewise.
3598 * cris-tdep.c (cris_gdbarch_init): Likewise.
3599 * frv-tdep.c (frv_gdbarch_init): Likewise.
3600 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3601 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3602 (i386_nw_init_abi): Likewise.
3603 (i386_gdbarch_init): Likewise.
3604 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3605 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3606 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3607 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3608 * mips-tdep.c (mips_gdbarch_init): Likewise.
3609 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3610 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3611 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3612 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3613 * s390-tdep.c (s390_gdbarch_init): Likewise.
3614 * sh-tdep.c (sh_gdbarch_init): Likewise.
3615 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3616 * v850-tdep.c (v850_gdbarch_init): Likewise.
3617 * vax-tdep.c (vax_gdbarch_init): Likewise.
3618 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3620 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3621 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3622 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3623 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3624 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3625 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3626 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3627 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3629 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
3631 * Makefile.in (acconfig_h): Remove incorrect macro.
3633 (osabi.o): Update dependencies.
3634 * configure.tgt: Set gdb_osabi based on target triplet.
3635 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3636 * configure: Regenerated.
3637 * config.in: Regenerated.
3638 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3639 (GDB_OSABI_DEFAULT): Define if not already defined.
3640 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3641 (set_osabi_string): New variables.
3642 (gdbarch_register_osabi): Add new OS ABI to
3643 gdb_osabi_available_names.
3644 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3645 (set_osabi, show_osabi): New functions.
3646 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3648 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3650 * arch-utils.c (gdbarch_info_init): Set osabi to
3651 GDB_OSABI_UNINITIALIZED.
3652 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3653 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3654 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3655 * gdbarch.c: Regenerated.
3656 * gdbarch.h: Regenerated.
3657 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3659 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3660 * osabi.h (enum gdb_osabi): Move to defs.h.
3661 (gdbarch_init_osabi): Update prototype.
3662 * defs.h (enum gdb_osabi): Moved here.
3663 * Makefile.in: Update dependencies.
3665 * alpha-tdep.h: Don't include "osabi.h".
3666 (struct gdbarch_tdep): Remove osabi member.
3667 * alpha-tdep.c: Include "osabi.h".
3668 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3669 iterate over arches. Update call to gdbarch_init_osabi.
3670 (alpha_dump_tdep): Don't dump osabi.
3671 * alpha-linux-tdep.c: Include "osabi.h".
3672 * alpha-osf1-tdep.c: Include "osabi.h".
3673 * alphafbsd-tdep.c: Include "osabi.h".
3674 * alphanbsd-tdep.c: Include "osabi.h".
3676 * arm-tdep.h: Don't include "osabi.h".
3677 (struct gdbarch_tdep): Remove osabi member.
3678 * arm-tdep.c: Include "osabi.h".
3679 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3680 iterate over arches. Update call to gdbarch_init_osabi.
3681 (arm_dump_tdep): Don't dump osabi.
3682 * arm-linux-tdep.c: Include "osabi.h".
3683 * armnbsd-tdep.c: Include "osabi.h".
3685 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3686 Update call to gdbarch_init_osabi.
3688 * i386-tdep.h: Don't include "osabi.h".
3689 (struct gdbarch_tdep): Remove osabi member.
3690 * i386-tdep.c: Include "osabi.h".
3691 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3692 iterate over arches. Update call to gdbarch_init_osabi.
3693 (i386_dump_tdep): Don't dump osabi.
3694 * i386-linux-tdep.c: Include "osabi.h".
3695 * i386-sol2-tdep.c: Include "osabi.h".
3696 * i386bsd-tdep.c: Include "osabi.h".
3697 * i386gnu-tdep.c: Include "osabi.h".
3698 * i386ly-tdep.c: Include "osabi.h".
3699 * i386nbsd-tdep.c: Include "osabi.h".
3700 * i386obsd-tdep.c: Include "osabi.h".
3702 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3703 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3704 check osabi when iterating over arches. Update call to
3706 (mips_dump_tdep): Don't dump osabi.
3708 * ns32k-tdep.h: Don't include "osabi.h".
3709 (struct gdbarch_tdep): Remove.
3710 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3711 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3712 allocate tdep. Update call to gdbarch_init_osabi.
3713 (ns32k_dump_tdep): Remove.
3714 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3715 * ns32knbsd-tdep.c: Include "osabi.h".
3717 * ppc-tdep.h: Don't include "osabi.h".
3718 (struct gdbarch_tdep): Remove osabi member.
3719 * rs6000-tdep.c: Include "osabi.h".
3720 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3721 osabi when iterating over arches. Update call to
3723 (rs6000_dump_tdep): Don't dump osabi.
3724 * ppc-linux-tdep.c: Include "osabi.h".
3725 * ppcnbsd-tdep.c: Include "osabi.h".
3727 * sh-tdep.h: Don't include "osabi.h".
3728 (struct gdbarch_tdep): Remove osabi member.
3729 * sh-tdep.c: Include "osabi.h".
3730 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3731 iterate over arches. Update call to gdbarch_init_osabi.
3732 (sh_dump_tdep): Don't dump osabi.
3733 * shnbsd-tdep.c: Include "osabi.h".
3735 * sparc-tdep.c: Include "osabi.h".
3736 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3737 iterate over arches. Update call to gdbarch_init_osabi.
3738 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3741 * vax-tdep.h: Don't include "osabi.h".
3742 (struct gdbarch_tdep): Remove.
3743 * vax-tdep.c: Include "osabi.h".
3744 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3745 iterate over arches. Don't allocate tdep. Update call
3746 to gdbarch_init_osabi.
3747 (vax_dump_tdep): Remove.
3748 (_initialize_vax_tdep): Update call to gdbarch_register.
3750 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3752 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3754 (breakpoint_re_set_one): Don't fetch the value for a disabled
3757 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3759 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3760 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3761 (COERCE_FLOAT_TO_DOUBLE): Remove.
3762 * gdbarch.c: Regenerate.
3763 * gdbarch.h: Regenerate.
3764 * Makefile.in: Remove value_h from gdbarch_h.
3765 * valops.c (coerce_float_to_double): New variable.
3766 (default_coerce_float_to_double): Remove.
3767 (standard_coerce_float_to_double): Remove.
3768 (value_arg_coerce): Use coerce_float_to_double.
3769 (_initialize_valops): Add "set coerce-float-to-double".
3770 * value.h (default_coerce_float_to_double): Remove prototype.
3771 (standard_coerce_float_to_double): Remove prototype.
3773 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3775 * mdebugread.c (parse_symbol): Likewise.
3776 * stabsread.c (define_symbol): Mark all functions as prototyped.
3778 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3779 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3780 set_gdbarch_coerce_float_to_double.
3781 * arm-tdep.c (arm_gdbarch_init): Likewise.
3782 * frv-tdep.c (frv_gdbarch_init): Likewise.
3783 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3784 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3785 * mips-tdep.c (mips_gdbarch_init): Likewise.
3786 (mips_coerce_float_to_double): Remove.
3787 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3788 (rs6000_coerce_float_to_double): Remove.
3789 * s390-tdep.c (s390_gdbarch_init): Likewise.
3790 * sh-tdep.c (sh_gdbarch_init): Likewise.
3791 (sh_coerce_float_to_double): Remove.
3792 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3793 (sparc_coerce_float_to_double): Remove.
3794 * v850-tdep.c (v850_gdbarch_init): Likewise.
3795 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3796 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3797 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3798 (hppa_coerce_float_to_double): Remove prototype.
3799 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3801 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3803 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3805 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
3807 Suggested by Stewart Brown <sb24@avaya.com>:
3808 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3809 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3810 (c_type_print_varspec_suffix): Likewise.
3812 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3814 * configure.in: Don't set and AC_SUBST SUBDIRS.
3815 * configure: Regenerated.
3817 * configure.in: Remove code dealing with shared libraries.
3818 * Makefile.in: Remove HLDFLAGS and HLDENV.
3819 * configure: Regenerated.
3821 2003-01-04 Andrew Cagney <ac131313@redhat.com>
3823 * frame.c (deprecated_frame_xmalloc): New function.
3824 (deprecated_set_frame_saved_regs_hack): New function.
3825 (deprecated_set_frame_extra_info_hack): New function.
3826 * frame.h (deprecated_frame_xmalloc): Declare.
3827 (deprecated_set_frame_saved_regs_hack): Declare.
3828 (deprecated_set_frame_extra_info_hack): Declare.
3830 2003-01-04 Mark Kettenis <kettenis@gnu.org>
3832 * configure.in: Move code that provides the --enable-gdbtk option
3833 right after the code that handles the --enable-tui option, and
3835 * configure: Regenerated.
3837 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3838 AC_CHECK_FUNCS and remove the old check for pread64.
3839 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3840 * acconfig.h (_GNU_SOURCE): Add.
3841 (HAVE_PREAD64): Remove.
3842 * configure, aclocal.m4, config.in: Regenerated.
3844 2003-01-03 Andrew Cagney <ac131313@redhat.com>
3846 * alpha-tdep.c: Use get_frame_saved_regs.
3847 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3848 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3849 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3850 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3851 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3853 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3855 * configure.in: Remove all use of the SUBDIRS variable; add
3856 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3857 code providing the --enable-multi-ice option, and move it right in
3858 front of the code that checks whether gdbserver is supported.
3860 * configure: Regenerated.
3861 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3864 2003-01-03 Andrew Cagney <cagney@redhat.com>
3866 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3867 * avr-tdep.c, cris-tdep.c: Ditto.
3868 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3869 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3871 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3873 * configure.in: Remove --enable-netrom option.
3874 * configure: Regenerated.
3876 2003-01-03 Mark Kettenis <kettenis@gnu.org>
3878 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3879 declaration for `struct re_pattern_buffer' instead.
3880 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3882 2003-01-03 J. Brobecker <brobecker@gnat.com>
3884 * mdebugread.c (parse_symbol): Count until the stEnd matching
3887 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3889 * configure.in: Remove --with-cpu option.
3890 subscripts. Remove evil changequotes here.
3891 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3892 * config.in, configure: Regenerated.
3894 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3895 * configure.in: Cleanup section that sources GDB and BFD configure
3896 subscripts. Remove evil changequotes here.
3897 * config.in, configure: Regenerated.
3899 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3901 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3902 frame accessor methods.
3903 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3904 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3905 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3906 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3907 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3908 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3909 * z8k-tdep.c: Ditto.
3911 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3913 * configure.in: Remove UI_OUT configuration code.
3914 * ada-lang.c: Update assuming UI_OUT is always true.
3915 * Makefile.in (UIOUT_CFLAGS): Remove.
3916 * configure: Regenerated.
3917 * TODO: Remove blurb about elimination of -DUI_OUT.
3919 * configure.in: Move code that provides the --enable-gdbcli,
3920 --enable-gdbmi options right before the code that handles the
3921 --enable-tui option. Polish a bit.
3922 * configure: Regenerated.
3924 * configure.in: Rewrite check for GNU regex and the
3925 --without-included regex option, and move it into the "Checks for
3926 library functions" section. This makes us use the system regex
3927 again by default on systems with version 2 of the GNU C library.
3928 This was apparently broken.
3929 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3930 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3931 * config.in, configure: Regenerated.
3933 * configure.in: Move code that provides the --enable-tui option
3934 before the "Checks for libraries" section. Polish the code
3935 somewhat and set need_curses to yes if we build the TUI. Rewrite
3936 code that looks for a library providing termcap functionality to
3937 match more closely what's done in the Readline library, and move
3938 it into to the "Checks for libraries" section.
3939 * configure: Regenerated.
3940 * Makefile.in (TERMCAP): Remove variable.
3941 * config/i386/go32.mh (TERMCAP): Remove variable.
3943 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3945 * MAINTAINERS: Mention gdb_mbuild.sh.
3946 * gdb_mbuild.sh: Rewrite.
3948 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3950 * configure.in: Fix typo in last change.
3951 * config.in, configure: Regenerated.
3953 2003-01-02 Andrew Cagney <ac131313@redhat.com>
3955 * valarith.c (value_binop): Delete obsolete code and comments.
3956 * configure.host: Ditto.
3957 * buildsym.h (make_blockvector): Ditto.
3958 * buildsym.c (make_blockvector): Ditto.
3959 * defs.h (enum language): Ditto.
3960 (chill_demangle): Ditto.
3961 * elfread.c (elf_symtab_read): Ditto.
3962 * dwarfread.c (CHILL_PRODUCER): Ditto.
3963 (set_cu_language): Ditto.
3964 (handle_producer): Ditto.
3965 * expprint.c (print_subexp): Ditto.
3966 * gdbtypes.c (chill_varying_type): Ditto.
3967 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3968 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3969 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3970 (chill_varying_type): Ditto.
3971 * language.h (_LANG_chill): Ditto.
3972 * language.c (binop_result_type, integral_type): Ditto.
3973 (character_type, string_type, structured_type): Ditto.
3974 (lang_bool_type, binop_type_check): Ditto.
3975 * stabsread.h (os9k_stabs): Ditto.
3976 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3977 (define_symbol, read_type, read_struct_fields): Ditto.
3978 (read_array_type, read_enum_type, read_huge_number): Ditto.
3979 (read_range_type, start_stabs): Ditto.
3980 * symfile.c (init_filename_language_table): Ditto.
3981 (add_psymbol_with_dem_name_to_list): Ditto.
3982 * symtab.c (symbol_init_language_specific): Ditto.
3983 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3984 * symtab.h (struct general_symbol_info): Ditto.
3985 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3986 * typeprint.c (typedef_print): Ditto.
3987 * utils.c (fprintf_symbol_filtered): Ditto.
3988 * valops.c (value_cast, search_struct_field, value_slice): Delete
3990 (varying_to_slice): Delete function.
3991 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3992 (varying_to_slice): Delete declaration.
3993 * MAINTAINERS: Update.
3995 2003-01-02 Mark Kettenis <kettenis@gnu.org>
3997 * configure.in: Reorganize "Checks for library functions section"
3998 a bit. Remove check for `btowc' and `isascii' functions.
3999 * configure: Regenerated.
4001 * acconfig.h (_MSE_INT_H): Remove.
4002 * configure.in: Create "Checks for header files" section, and move
4003 appropriate tests there. Don't check for objlist.h, wchar.h,
4004 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4005 misdetection fix. Also add "Checks for types", "Checks for
4006 compiler characteristics" and "Checks for library functions"
4008 * config.in, configure: Regenerated.
4010 * configure.in: Create "Checks for programs" section, and move
4011 appropriate tests there.
4013 2003-01-01 Mark Kettenis <kettenis@gnu.org>
4015 * configure.in: Create "Checks for libraries" section, and move
4016 appropriate tests there. Cleanup check for wctype in libw. Use
4017 AC_SEARCH_LIBS to see whether we need libsocket.
4018 * configure: Regenerated.
4020 For older changes see ChangeLog-2002
4026 version-control: never