]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
2003-04-01 Andrew Cagney <cagney@redhat.com>
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
73dd234f
AC
12003-04-01 Andrew Cagney <cagney@redhat.com>
2
3 * gdbarch.sh (CALL_DUMMY_BREAKPOINT_OFFSET): Default to zero.
4 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
5 * gdbarch.h, gdbarch.c: Re-generate.
6 * config/sparc/tm-sp64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
7 (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
8 * config/pa/tm-hppa64.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
9 * inferior.h (CALL_DUMMY_BREAKPOINT_OFFSET_P): Delete.
10 (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
11 * infcmd.c (run_stack_dummy): Simplify assuming
12 CALL_DUMMY_BREAKPOINT_OFFSET_P.
13 * infrun.c (handle_inferior_event): Ditto.
14 * alpha-tdep.c (alpha_gdbarch_init): Do not set
15 call_dummy_breakpoint_offset or call_dummy_breakpoint_offset_p.
16 * arm-tdep.c (arm_gdbarch_init): Ditto.
17 * avr-tdep.c (avr_gdbarch_init): Ditto.
18 * cris-tdep.c (cris_gdbarch_init): Ditto.
19 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
20 * frv-tdep.c (frv_gdbarch_init): Ditto.
21 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
22 * i386-tdep.c (i386_gdbarch_init): Ditto.
23 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
24 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
25 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
26 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
27 * mips-tdep.c (mips_gdbarch_init): Ditto.
28 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
29 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
30 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
31 * s390-tdep.c (s390_gdbarch_init): Ditto.
32 * sh-tdep.c (sh_gdbarch_init): Ditto.
33 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
34 * v850-tdep.c (v850_gdbarch_init): Ditto.
35 * vax-tdep.c (vax_gdbarch_init): Ditto.
36 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
37
97606a13
DJ
382003-04-01 Daniel Jacobowitz <drow@mvista.com>
39
40 * symfile.c (symfile_relocate_debug_section): Update call to
41 bfd_simple_get_relocated_section_contents.
42
e8ab51f7
AC
432003-03-31 Andrew Cagney <cagney@redhat.com>
44
45 * gdbarch.sh (FIX_CALL_DUMMY): Change to function with predicate.
46 * gdbarch.h, gdbarch.c: Regenerate.
47 * inferior.h (FIX_CALL_DUMMY): Delete macro.
48 * valops.c (hand_function_call): Only call FIX_CALL_DUMMY when
49 available.
50 * frame.h (generic_fix_call_dummy): Delete declaration.
51 * dummy-frame.h: Update comment.
52 * dummy-frame.c (generic_fix_call_dummy): Delete function.
53 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
54 fix_call_dummy.
55 * sh-tdep.c (sh_gdbarch_init): Ditto.
56 * s390-tdep.c (s390_gdbarch_init): Ditto.
57 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
58 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
59 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
60 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
61 * i386-tdep.c (i386_gdbarch_init): Ditto.
62 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
63 * frv-tdep.c (frv_gdbarch_init): Ditto.
64 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
65 * cris-tdep.c (cris_gdbarch_init): Ditto.
66 * avr-tdep.c (avr_gdbarch_init): Ditto.
67 * arm-tdep.c (arm_gdbarch_init): Ditto.
68
018d1b48
JB
692003-03-31 J. Brobecker <brobecker@gnat.com>
70
71 * config/pa/tm-hppa64.h (FRAME_ARGS_ADDRESS): Delete macro, not useful.
72 (INIT_FRAME_AP): Likewise.
73 (EXTRA_FRAME_INFO): Likewise.
74
e9a2674e
AC
752003-03-31 Andrew Cagney <cagney@redhat.com>
76
77 * gdbarch.sh: Include "symfile.h".
78 (CALL_DUMMY_ADDRESS): Default to entry_point_address.
79 * gdbarch.h, gdbarch.c: Re-generate.
80 * inferior.h (CALL_DUMMY_ADDRESS): Delete macro.
81 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
82 call_dummy_address, the default is at entry_point_address.
83 * v850-tdep.c (v850_gdbarch_init): Ditto.
84 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
85 * sh-tdep.c (sh_gdbarch_init): Ditto.
86 * s390-tdep.c (s390_gdbarch_init): Ditto.
87 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
88 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
89 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
90 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
91 * i386-tdep.c (i386_gdbarch_init): Ditto.
92 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
93 * frv-tdep.c (frv_gdbarch_init): Ditto.
94 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
95 * cris-tdep.c (cris_gdbarch_init): Ditto.
96 * arm-tdep.c (arm_gdbarch_init): Ditto.
97
e8a8712a
AC
982003-03-31 Andrew Cagney <cagney@redhat.com>
99
100 * gdbarch.sh (CALL_DUMMY_P): Delete.
101 * gdbarch.h, gdbarch.c: Re-generate.
102 * inferior.h (CALL_DUMMY_P): Delete macro.
103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
104 * vax-tdep.c (vax_gdbarch_init): Update.
105 * v850-tdep.c (v850_gdbarch_init): Update.
106 * sparc-tdep.c (sparc_gdbarch_init): Update.
107 * sh-tdep.c (sh_gdbarch_init): Update.
108 * s390-tdep.c (s390_gdbarch_init): Update.
109 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
110 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
111 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
112 * mips-tdep.c (mips_gdbarch_init): Update.
113 * mcore-tdep.c (mcore_gdbarch_init): Update.
114 * m68k-tdep.c (m68k_gdbarch_init): Update.
115 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
116 * ia64-tdep.c (ia64_gdbarch_init): Update.
117 * i386-tdep.c (i386_gdbarch_init): Update.
118 * h8300-tdep.c (h8300_gdbarch_init): Update.
119 * frv-tdep.c (frv_gdbarch_init): Update.
120 * d10v-tdep.c (d10v_gdbarch_init): Update.
121 * cris-tdep.c (cris_gdbarch_init): Update.
122 * breakpoint.c (deprecated_frame_in_dummy): Update.
123 * avr-tdep.c (avr_gdbarch_init): Update.
124 * alpha-tdep.c (alpha_gdbarch_init): Update.
125 * arm-tdep.c (arm_gdbarch_init): Update.
126 * dummy-frame.c (dummy_frame_this_id): Update comments.
127 * rs6000-tdep.c (rs6000_extract_struct_value_address): Ditto.
128 * frame.c (legacy_get_prev_frame): Ditto.
129 * valops.c (call_function_by_hand): Delete function.
130 (hand_function_call): Rename to call_function_by_hand
131
ed234cf8
AC
1322003-03-30 Andrew Cagney <cagney@redhat.com>
133
134 2002-11-10 Klee Dienes <kdienes@apple.com>
135 * value.h (struct value): Update comment.
136
06c77151
AC
1372003-03-30 Andrew Cagney <cagney@redhat.com>
138
6c2b5168
AC
139 * d10v-tdep.c: Replace _FP_REGNUM and FP_REGNUM with
140 D10V_FP_REGNUM.
141 (d10v_gdbarch_init): Do not set fp_regnum.
142
06c77151
AC
143 * frame.c (get_frame_base): Force ID initialization.
144 (get_prev_frame): Move computation of the frame ID from here ...
145 (get_frame_id): ... to here.
146 (legacy_get_prev_frame): Mark the frame ID as valid.
147 * frame.h (struct frame_info): Add field "id_p".
148
97a1a11c
MK
1492003-03-30 Mark Kettenis <kettenis@gnu.org>
150
151 * i386-tdep.c (i386_store_struct_return): Removed.
152 (i386_gdbarch_init): Don't set deprecated_store_struct_return.
153
6c0e89ed
AC
1542003-03-30 Andrew Cagney <cagney@redhat.com>
155
156 * gdbarch.sh (DEPRECATED_DUMMY_WRITE_SP): Replace TARGET_WRITE_SP.
157 * gdbarch.h, gdbarch.c: Regenerate.
158 * v850-tdep.c (v850_gdbarch_init): Set deprecated_dummy_write_sp.
159 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
160 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
161 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
162 * i386-tdep.c (i386_gdbarch_init): Ditto.
163 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
164 * cris-tdep.c (cris_gdbarch_init): Ditto.
165 * vax-tdep.c (vax_gdbarch_init): Ditto.
166 * s390-tdep.c (s390_gdbarch_init): Ditto.
167 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
168 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
169 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
170 * sparc-tdep.c (sparc_push_dummy_frame, sparc_pop_frame): Update.
171 * config/sparc/tm-sp64.h (DEPRECATED_DUMMY_WRITE_SP): Update.
172 * config/pa/tm-hppa.h (DEPRECATED_DUMMY_WRITE_SP): Define.
173 * sparc-tdep.c (sparc_gdbarch_init): Update.
174 * sh-tdep.c (sh_gdbarch_init): Update.
175 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
176 * mips-tdep.c (mips_gdbarch_init): Update.
177 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
178 * ia64-tdep.c (ia64_gdbarch_init): Update.
179 * frv-tdep.c (frv_gdbarch_init): Update.
180 * avr-tdep.c (avr_gdbarch_init): Update.
181 * valops.c (hand_function_call): Replace TARGET_WRITE_SP with
182 DEPRECATED_DUMMY_WRITE_SP. Call when the method is available,
183 instead of when push_dummy_call is not available.
184
f7dd6af2
AC
1852003-03-30 Andrew Cagney <cagney@redhat.com>
186
187 * infttrace.c: Include "gdbthread.h".
188 (parent_attach_all): Fix function signature.
189 (call_ptrace): Update call.
190 * Makefile.in (infttrace.o): Update dependencies.
191
28f617b3
AC
1922003-03-30 Andrew Cagney <cagney@redhat.com>
193
194 * gdbarch.sh (DEPRECATED_PUSH_RETURN_ADDRESS): Replace
195 PUSH_RETURN_ADDRESS.
196 * gdbarch.h, gdbarch.c: Regenerate.
197 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
198 * x86-64-tdep.c (x86_64_init_abi): Update.
199 * v850-tdep.c (v850_gdbarch_init): Update.
200 * sparc-tdep.c (sparc_gdbarch_init): Update.
201 * sh-tdep.c (sh_gdbarch_init): Update.
202 * s390-tdep.c (s390_gdbarch_init): Update.
203 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
204 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
205 * mips-tdep.c (mips_gdbarch_init): Update.
206 * mcore-tdep.c (mcore_gdbarch_init): Update.
207 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
208 * ia64-tdep.c (ia64_gdbarch_init): Update.
209 * i386-tdep.c (i386_gdbarch_init): Update.
210 * h8300-tdep.c (h8300_gdbarch_init): Update.
211 * frv-tdep.c (frv_gdbarch_init): Update.
212 * cris-tdep.c (cris_gdbarch_init): Update.
213 * avr-tdep.c (avr_gdbarch_init): Update.
214 * arm-tdep.c (arm_gdbarch_init): Update.
215 * valops.c (hand_function_call): Update.
216
4d628cd7
AC
2172003-03-29 Andrew Cagney <cagney@redhat.com>
218
219 * d10v-tdep.c (d10v_gdbarch_init): Do not set call_dummy_words or
220 sizeof_call_dummy_words.
221 * gdbarch.sh (CALL_DUMMY_WORDS, SIZEOF_CALL_DUMMY_WORDS): Always
222 define.
223 * gdbarch.h: Regenerate.
224
65e82032
AC
2252003-03-29 Andrew Cagney <cagney@redhat.com>
226
227 * infttrace.h: New file.
228 * hpread.c: Include "gdb_assert.h" and "somsolib.h".
229 (hpread_get_textlow): Detect an uninitialized dn_bufp.
230 (hpread_read_doc_function_type): Detect an initialized type1.
231 (hpread_quick_traverse): Initialize mod_name_string.
232 * somsolib.h: Add #ifdef SOMSOLIB_H wrapper.
233 (som_solib_get_solib_by_pc): Declare.
234 (so_lib_thread_start_addr): Declare.
235 (no_shared_libraries): Declare.
236 * somread.c (init_import_symbols): Make static. Add forward
237 declaration.
238 * config/pa/nm-hppah.h: Include "infttrace.h" for
239 parent_attach_all.
240 (hppa_insert_hw_watchpoint): Declare.
241 (hppa_can_use_hw_watchpoint, hppa_remove_hw_watchpoint): Declare.
242 * hppah-nat.c: Include "gdb_string.h".
243 (parent_attach_all): Delete extern declaration, moved to
244 "infttrace.h".
245 (hppa_can_use_hw_watchpoint): Change type of "type" parameter to
246 int.
247 (hppa_remove_hw_watchpoint, hppa_insert_hw_watchpoint): Ditto.
248 * Makefile.in (infttrace_h): Define.
249 (hpread.o): Update dependencies.
250 (hppah-nat.o, hppa-hpux-tdep.o, hppa-tdep.o): Ditto.
251 * hppa-hpux-tdep.c: Include "gdb_string.h".
252 * hppa-tdep.c (hppa_frame_saved_pc): Initialize "old_pc".
253 * infrun.c (handle_inferior_event): Always initialize
254 stepped_after_stopped_by_watchpoint. Add default and remove
255 fallthrough in switch statement.
256 * infttrace.c (hppa_can_use_hw_watchpoint): Change type of "type"
257 parameter to int.
258 (hppa_remove_hw_watchpoint): Ditto.
259
2c3bbe77
AC
2602003-03-29 Andrew Cagney <cagney@redhat.com>
261
262 * ns32k-tdep.c (ns32k_gdbarch_init): Set the call dummy breakpoint
263 offset.
264
2dd604e7
RE
2652003-03-29 Richard Earnshaw <rearnsha@arm.com>
266
267 * arm-tdep.c (arm_push_arguments): Delete.
268 (struct stack_item): New type.
269 (push_stack_item, pop_stack_item, arm_push_dummy_call): New functions.
270 (arm_store_struct_return): Delte.
271 (arm_gdbarch_init): Register arm_push_dummy_call. Don't register
272 arm_push_arguments or arm_store_struct_return.
273
e8933a55
AC
2742003-03-28 Andrew Cagney <cagney@redhat.com>
275
276 * Makefile.in (d10v-tdep.o): Update dependencies.
277 * remote.h (target_resume_hook, target_wait_loop_hook): Declare.
278 * d10v-tdep.c: Include "remote.h".
279 (target_resume_hook): Delete extern declaration.
280 (target_wait_loop_hook): Ditto.
281 (tdisassemble_command): Eliminate assignment in "if" conditional.
282 (d10v_ts2_register_sim_regno): Eliminate call to
283 legacy_register_sim_regno.
284 (d10v_ts3_register_sim_regno): Ditto.
285
6949171e
JJ
2862003-03-28 Jeff Johnston <jjohnstn@redhat.com>
287
288 * thread.c: Reindented.
289 * lin-lwp.c: Ditto.
290 * linux-proc.c: Ditto.
291
98c7071f
BR
2922003-03-28 Bob Rossi <bob_rossi@cox.net>
293
294 * MAINTAINERS (write after approval): Add myself.
295
5edc9ca6
TR
2962003-03-27 Theodore A. Roth <troth@openavr.org>
297
298 * objc-exp.y: Add missing semi-colons.
299
378bfd1b
AC
3002003-03-27 Andrew Cagney <cagney@redhat.com>
301
302 * regcache.c (write_sp): Delete function and references.
303 * inferior.h (write_sp): Delete declaration.
304 * valops.c (hand_function_call): Replace write_sp with
305 TARGET_WRITE_SP.
306 * sparc-tdep.c (sparc_push_dummy_frame): Ditto.
307 (sparc_pop_frame): Ditto.
308
56056df7
AC
3092003-03-27 Andrew Cagney <cagney@redhat.com>
310
311 * NEWS: Mention removal of support for hppa*-*-bsd* and
312 hppa*-*-osf* natives, and hppa*-*-pro* target.
313 * config/pa/xm-hppah.h: Do not include "pa/xm-pa.h".
314 * config/pa/xm-pa.h: Obsolete file.
315 * config/pa/xm-hppab.h: Obsolete file.
316 * config/pa/nm-hppab.h: Obsolete file.
317 * config/pa/tm-hppab.h: Obsolete file.
318 * config/pa/tm-hppao.h: Obsolete file.
319 * config/pa/nm-hppao.h: Obsolete file.
320 * config/pa/tm-pro.h: Obsolete file.
321 * config/pa/hppaosf.mt: Obsolete file.
322 * config/pa/hppaosf.mh: Obsolete file.
323 * config/pa/hppapro.mt: Obsolete file.
324 * config/pa/hppabsd.mt: Obsolete file.
325 * config/pa/hppabsd.mh: Obsolete file.
326 * configure.host: Disable hppa*-*-bsd* and hppa*-*-osf*.
327 * configure.tgt: Disable hppa*-*-bsd*, hppa*-*-pro* and
328 hppa*-*-osf*.
329
5873a88d
AC
3302003-03-27 Andrew Cagney <cagney@redhat.com>
331
332 * d10v-tdep.c (d10v_gdbarch_init): Set push_dummy_call instead of
333 push_arguments. Don't set push_return_address or write_sp.
334 (d10v_push_dummy_call): Replace d10v_push_arguments.
335 (d10v_push_return_address, d10v_write_sp): Delete function,
336 handled by push_dummy_call.
337
b81774d8
AC
3382003-03-26 Andrew Cagney <cagney@redhat.com>
339
340 * gdbarch.sh (DEPRECATED_PUSH_ARGUMENTS): Rename PUSH_ARGUMENTS.
341 (push_dummy_call): New pure multi-arch replacement with gdbarch,
342 regcache and dummy_addr parameters.
343 * gdbarch.h, gdbarch.c: Re-generate.
344 * valops.c (hand_function_call): Use gdbarch_push_dummy_call when
345 available; assume it will handle stack alignment and return
346 address issues. Fall back to DEPRECATED_PUSH_ARGUMENTS and
347 legacy_push_arguments.
348 (legacy_push_arguments): Rename default_push_arguments.
349 * value.h (legacy_push_arguments): Rename default_push_arguments.
350 * i386-tdep.c (i386_push_arguments): Call legacy_push_arguments.
351 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_ARGUMENTS): Update.
352 * config/sparc/tm-sp64.h (DEPRECATED_PUSH_ARGUMENTS): Update.
353 * config/pa/tm-hppa.h (DEPRECATED_PUSH_ARGUMENTS): Update.
354 * config/i386/tm-symmetry.h: Update.
355 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
356 * x86-64-tdep.c (x86_64_init_abi): Update.
357 * v850-tdep.c (v850_gdbarch_init): Update.
358 * sparc-tdep.c (sparc_gdbarch_init): Update.
359 * sh-tdep.c (sh_gdbarch_init): Update.
360 * s390-tdep.c (s390_gdbarch_init): Update.
361 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
362 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
363 * mips-tdep.c (mips_gdbarch_init): Update.
364 * mcore-tdep.c (mcore_gdbarch_init): Update.
365 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
366 * ia64-tdep.c (ia64_gdbarch_init): Update.
367 * i386-tdep.c (i386_gdbarch_init): Update.
368 * hppa-tdep.c (hppa_gdbarch_init): Update.
369 * h8300-tdep.c (h8300_gdbarch_init): Update.
370 * frv-tdep.c (frv_gdbarch_init): Update.
371 * d10v-tdep.c (d10v_gdbarch_init): Update.
372 * cris-tdep.c (cris_gdbarch_init): Update.
373 * avr-tdep.c (avr_gdbarch_init): Update.
374 * arm-tdep.c (arm_gdbarch_init): Update.
375 * arm-linux-tdep.c (arm_linux_init_abi): Update.
376 * alpha-tdep.c (alpha_gdbarch_init): Update.
377
f541410f
DJ
3782003-03-26 Daniel Jacobowitz <drow@mvista.com>
379
380 * signals/signals.c (do_target_signal_to_host): Correct realtime
381 signal range test.
382
69f567ae
DJ
3832003-03-26 Daniel Jacobowitz <drow@mvista.com>
384
385 * breakpoint.c (handle_gnu_4_16_catch_command, get_catch_sals)
386 (struct sal_chain, map_catch_names): Remove.
387 (catch_exception_command_1): Don't call
388 handle_gnu_4_16_catch_command.
389
d5d14a5a
DJ
3902003-03-26 Daniel Jacobowitz <drow@mvista.com>
391
392 From Mark Dettinger <dettinge@de.ibm.com>:
393 * dwarf2cfi.c (read_2u): Increment pointer by two.
394
bdd73e22
DJ
3952003-03-26 Daniel Jacobowitz <drow@mvista.com>
396
397 * signals/signals.c: Fix typos in last change.
398
960cb555
DJ
3992003-03-26 Daniel Jacobowitz <drow@mvista.com>
400
401 * signals/signals.c (REALTIME_LO, REALTIME_HI): Define if
402 not already defined. Use __SIGRTMIN if available.
403 (target_signal_from_host): Remove SIGRTMIN block.
404 (do_target_signal_to_host): Remove SIGRTMIN block; check that
405 the signal is within the realtime range.
406
f636b87d
AF
4072003-03-25 Adam Fedor <fedor@gnu.org>
408
409 * Makefile.in (infrun.o): Add $(language_h)
410 * infrun.c (handle_inferior_event): Use skip_language_trampoline
411 for language specific trampolines.
412 * language.h (struct language_defn): Add skip_trampoline.
413 (skip_language_trampoline): Declare.
414 * language.c (unk_lang_trampoline, skip_language_trampoline):
415 New functions.
416 (unknown_language_defn, auto_language_defn, local_language_defn):
417 Add ukn_lang_trampoline.
418 * ada-lang.c (ada_language_defn): Add NULL for language
419 specific skip_trampoline.
420 * c-lang.c, f-lang.c, jv-lang.c, m2-lang.c, p-lang.c,
421 scm-lang.c: Likewise.
422 * objc-lang.c (objc_skip_trampoline): New function.
423 (objc_language_defn): Add objc_skip_trampoline.
424
28f617b3 4252003-03-25 Andrew Cagney <cagney@redhat.com>
270c3b1d
AC
426
427 * frame.c (get_prev_frame): Delay validating a frame's ID -
428 non-NULL, didn't go backwards - until an attempt to unwind it to
429 the previous frame.
430
f933a9c5
AC
4312003-03-25 Andrew Cagney <cagney@redhat.com>
432
433 * gdbarch.sh (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Replace
434 EXTRA_STACK_ALIGNMENT_NEEDED. Default to 0 not 1.
435 * gdbarch.h, gdbarch.c: Re-generate.
436 * config/sparc/tm-sparc.h
437 (DEPRECATED_EXTRA_STACK_ALIGNMENT_NEEDED): Define.
438 * sparc-tdep.c (sparc_gdbarch_init): Set
439 deprecated_extra_stack_alignment_needed.
440 * config/pa/tm-hppa.h (EXTRA_STACK_ALIGNMENT_NEEDED): Delete.
441 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not clear
442 extra_stack_alignment_needed.
443 * v850-tdep.c (v850_gdbarch_init): Ditto.
444 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
445 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
446 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
447 * cris-tdep.c (cris_gdbarch_init): Ditto.
448 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
449 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
450
4183d812
AC
4512003-03-25 Andrew Cagney <cagney@redhat.com>
452
453 * gdbarch.sh (DEPRECATED_STORE_STRUCT_RETURN): Replace
454 STORE_STRUCT_RETURN.
455 * gdbarch.h, gdbarch.c: Regenerate.
456 * d10v-tdep.c (d10v_store_struct_return): Delete function.
457 (d10v_push_arguments): Set the struct return register.
458 (d10v_gdbarch_init): Update.
459 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
460 * x86-64-tdep.c (x86_64_init_abi): Update.
461 * vax-tdep.c (vax_gdbarch_init): Update.
462 * v850-tdep.c (v850_gdbarch_init): Update.
463 * sparc-tdep.c (sparc_gdbarch_init): Update.
464 * sh-tdep.c (sh_gdbarch_init): Update.
465 * s390-tdep.c (s390_gdbarch_init): Update.
466 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
467 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
468 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
469 * mips-tdep.c (mips_gdbarch_init): Update.
470 * mcore-tdep.c (mcore_gdbarch_init): Update.
471 * m68k-tdep.c (m68k_gdbarch_init): Update.
472 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
473 * ia64-tdep.c (ia64_gdbarch_init): Update.
474 * i386-tdep.c (i386_gdbarch_init): Update.
475 * hppa-tdep.c (hppa_gdbarch_init): Update.
476 * h8300-tdep.c (h8300_gdbarch_init): Update.
477 * frv-tdep.c (frv_gdbarch_init): Update.
478 * cris-tdep.c (cris_gdbarch_init): Update.
479 * avr-tdep.c (avr_gdbarch_init): Update.
480 * arm-tdep.c (arm_gdbarch_init): Update.
481 * alpha-tdep.c (alpha_gdbarch_init): Update.
482
1bf6d5cc
AC
4832003-03-25 Andrew Cagney <cagney@redhat.com>
484
485 * gdbarch.sh (CALL_DUMMY_STACK_ADJUST_P): Delete.
486 (DEPRECATED_CALL_DUMMY_STACK_ADJUST): Replace
487 CALL_DUMMY_STACK_ADJUST with a predicate variable.
488 * gdbarch.h, gdbarch.c: Regenerate.
489 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
490 call_dummy_stack_adjust_p.
491 * vax-tdep.c (vax_gdbarch_init): Ditto.
492 * v850-tdep.c (v850_gdbarch_init): Ditto.
493 * sh-tdep.c (sh_gdbarch_init): Ditto.
494 * s390-tdep.c (s390_gdbarch_init): Ditto.
495 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
496 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
497 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
498 * mips-tdep.c (mips_gdbarch_init): Ditto.
499 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
500 * m68k-tdep.c (m68k_gdbarch_init): Ditto.
501 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
502 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
503 * i386-tdep.c (i386_gdbarch_init): Ditto.
504 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
505 * frv-tdep.c (frv_gdbarch_init): Ditto.
506 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
507 * cris-tdep.c (cris_gdbarch_init): Ditto.
508 * avr-tdep.c (avr_gdbarch_init): Ditto.
509 * arm-tdep.c (arm_gdbarch_init): Ditto.
510 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
511 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
512 * config/sparc/tm-sparc.h (CALL_DUMMY_STACK_ADJUST): Update.
513 * config/sparc/tm-sp64.h (CALL_DUMMY_STACK_ADJUST): Update.
514 * sparc-tdep.c (sparc_gdbarch_init): Update. Do not set
515 call_dummy_stack_adjust_p.
516 * inferior.h (CALL_DUMMY_STACK_ADJUST_P): Delete macro.
517 (CALL_DUMMY_STACK_ADJUST): Delete macro.
518 * sparc-tdep.c (sparc32_push_arguments): Update.
519 * valops.c (hand_function_call): Update.
520
71c08af0
CV
5212003-03-25 Corinna Vinschen <vinschen@redhat.com>
522
523 * xstormy16-tdep.c (xstormy16_gdbarch_init): Add call to
524 set_gdbarch_char_signed.
525
30757f90
RE
5262003-03-25 Richard Earnshaw <rearnsha@arm.com>
527
528 PR cli/548
529 * arm-tdep.c (_initialize_arm_tdep): Command is "set arm disassembler".
530
03d48a7d
RE
5312003-03-25 Richard Earnshaw <rearnsha@arm.com>
532
533 * arm-tdep.c (arm_gdbarch_init): Register the disassembler function.
534 (_initialize_arm_tdep): Don't set tm_print_insn.
535
2cf6873c
AF
5362003-03-24 Adam Fedor <fedor@gnu.org>
537
538 * Makefile.in (YYOBJ): Add objc-exp.tab.o
539 * objc-lang.h: Add multiple inclusion protection.
540 (start_msglist, add_msglist, end_msglist): Additional declarations.
541
17c0759e
RE
5422003-03-24 Richard Earnshaw <rearnsha@arm.com>
543
544 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): ARM_FLOAT_SOFT enum
545 value was renamed to ARM_FLOAT_SOFT_FPA.
546
618ce49f
AC
5472003-03-23 Andrew Cagney <cagney@redhat.com>
548
549 * gdbarch.sh (DEPRECATED_FRAME_CHAIN): Replace FRAME_CHAIN.
550 (DEPRECATED_FRAME_CHAIN_VALID): Replace FRAME_CHAIN_VALID.
551 * gdbarch.h, gdbarch.c: Regenerate.
552 * valops.c (hand_function_call): Update.
553 * objfiles.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
554 * frame.c (legacy_saved_regs_this_id): Update.
555 (legacy_get_prev_frame, get_prev_frame, legacy_frame_p): Update.
556 * dummy-frame.h: Update.
557 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_CHAIN): Update.
558 * config/pa/tm-hppa.h (DEPRECATED_FRAME_CHAIN_VALID): Update.
559 * config/m68k/tm-vx68.h (DEPRECATED_FRAME_CHAIN): Update.
560 * config/m68k/tm-os68k.h (DEPRECATED_FRAME_CHAIN): Update.
561 * config/m68k/tm-sun3.h: Update.
562 * blockframe.c (inside_main_func, frame_chain_valid): Update.
563 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
564 * x86-64-tdep.c (x86_64_init_abi): Update.
565 * vax-tdep.c (vax_gdbarch_init): Update.
566 * v850-tdep.c (v850_gdbarch_init): Update.
567 * sparc-tdep.c (sparc_frame_chain, sparc_gdbarch_init): Update.
568 * sh-tdep.c (sh_gdbarch_init): Update.
569 * s390-tdep.c (s390_gdbarch_init): Update.
570 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
571 (rs6000_gdbarch_init, rs6000_frame_saved_pc): Update.
572 (frame_get_saved_regs): Update.
573 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
574 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
575 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
576 * mips-tdep.c (mips_gdbarch_init): Update.
577 * mcore-tdep.c (mcore_gdbarch_init): Update.
578 * m68k-tdep.c (m68k_gdbarch_init): Update.
579 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
580 * ia64-tdep.c (ia64_gdbarch_init): Update.
581 * i386-tdep.c (i386_frame_num_args, i386_gdbarch_init): Update.
582 * i386-interix-tdep.c (i386_interix_init_abi): Update.
583 (i386_interix_back_one_frame): Update.
584 * hppa-tdep.c (hppa_gdbarch_init): Update.
585 (hppa_init_extra_frame_info): Update.
586 * h8300-tdep.c (h8300_gdbarch_init): Update.
587 * frv-tdep.c (frv_gdbarch_init): Update.
588 * cris-tdep.c (cris_gdbarch_init): Update.
589 * avr-tdep.c (avr_gdbarch_init): Update.
590 * arm-tdep.c (arm_gdbarch_init): Update.
591 * alpha-tdep.c (alpha_gdbarch_init): Update.
592
fd50bc42
RE
5932003-03-22 Richard Earnshaw <rearnsha@arm.com>
594
595 * arm-tdep.h (arm_float_model): Add AUTO and LAST values.
596 (arm_get_fp_model): Declare.
597 * arm-tdep.c (fp_model_strings): New string array.
598 (arm_fp_model, current_fp_model): New variables.
599 (arm_get_fp_model): New function.
600 (arm_set_fp): New function.
601 (set_fp_model_sfunc): New function.
602 (show_fp_model): New function.
603 (_initialize_arm_tdep): Add new command to set/show the FPU.
604 (arm_extract_return_value): Use arm_get_fp_model.
605 (arm_store_return_value): Likewise.
606 (arm_gdbarch_init): Default fpa model is softfpa. Call arm_set_fp
607 to initialize the floating-point data types.
608 * arm-linux-tdep.c (arm_linux_init_abi): The default floating point
609 model is FPA.
610
26304000
RE
6112003-03-22 Richard Earnshaw <rearnsha@arm.com>
612
613 * arm-tdep.c (show_arm_command): Don't print out help. Instead, show
614 the current setting of each value.
615 (_initialize_arm_tdep): Delete variable new_cmd and add new vars
616 new_set and new_show. Use add_setshow_cmd_full and
617 add_setshow_boolean_cmd as appropriate. Deprecate "set/show apcs32"
618 commands and add new version as subcommands of "set/show arm".
619
afd7eef0
RE
6202003-03-22 Richard Earnshaw <rearnsha@arm.com>
621
622 * arm-tdep.c (setarmcmdlist, showarmcmdlist): New command lists.
623 (set_arm_command, show_arm_command): New functions.
624 (_initialize_arm_tdep): Add them.
625 (num_disassembly_options): Renamed from num_flavor_options.
626 (valid_disassembly_styles): Renamed from valid_flavors.
627 (disassembly_style): Renamed from disassembly_flavor.
628 (set_disassembly_style_sfunc): Renamed from
629 set_disassembly_flavor_sfunc.
630 (set_disassembly_style): Renamed from set_disassembly_flavor.
631 (arm_othernames): Updated.
632 (_initialize_arm_tdep): Deprecate "set/show disassembly-flavor"
633 command. Add "set/show arm disassembly" commands. Deprecate
634 "othernames" command.
635
299a7944
RE
6362003-03-22 Richard Earnshaw <rearnsha@arm.com>
637
638 * Makefile.in (elf_reloc_macros_h, elf_arm_h): Define.
639 (arm-tdep.o): Depend on elf_arm_h.
640
c1dac9e6
RE
6412003-03-22 Richard Earnshaw <rearnsha@arm.com>
642
643 * Makefile.in (coff_internal_h): Define.
644 (arm-tdep.o): Update dependencies.
645
2702d96c
RE
6462003-03-22 Richard Earnshaw <rearnsha@arm.com>
647
648 * arm-tdep.c (prologue_cache): Delete.
649 (check_prologue_cache, save_prologue_cache): Delete.
650 (arm_scan_prologue): Don't check or update the prologue_cache.
651 (arm_gdb_arch_init): Don't initialize it.
652 (_initialize_arm_tdep): Likewise.
653
27d5d74b
SC
6542003-03-21 Stephane Carrez <stcarrez@nerim.fr>
655
656 * MAINTAINERS (tui): Maintainer of tui code.
657
1762d96d
CV
6582003-03-21 Corinna Vinschen <vinschen@redhat.com>
659
660 * Makefile.in (ALLDEPFILES): Add i386-cygwin-tdep.c.
661 (i386-cygwin-tdep.o): Add dependencies.
662 * defs.h (enum gdb_osabi): Add GDB_OSABI_CYGWIN.
663 * i386-cygwin-tdep.c: New file.
664 * osabi.c (gdb_osabi_name): Add string for GDB_OSABI_CYGWIN.
665 * config/i386/cygwin.mt (TDEPFILES): Add i386-cygwin-tdep.o.
666
4c2e2391
AC
6672003-03-20 Andrew Cagney <cagney@redhat.com>
668
f20d38b7
AC
669 * infrun.c (DYNAMIC_TRAMPOLINE_NEXTPC): Delete macro.
670 (handle_inferior_event): Remove code calling
671 DYNAMIC_TRAMPOLINE_NEXTPC.
672
0022b738
AC
673 * Makefile.in (init.c): Don't add $(srcdir) prefix when a file
674 already has a full path.
675
864dbc90
AC
676 * main.c (gdb_main): Return 1.
677 (captured_main): Call error to report an invalid interpreter.
678
4c2e2391
AC
679 * Makefile.in (alpha-osf1-tdep.o): Update dependencies.
680 * alpha-osf1-tdep.c: Include "gdb_string.h".
681
5ef7553b
JB
6822003-03-19 J. Brobecker <brobecker@gnat.com>
683
684 Continuing work to convert the hppa targets to multiarch partial.
685
686 * hppa-tdep.c (hppa_gdbarch_init): Set the push_dummy_frame gdbarch
687 method, now that hppa_push_dummy_frame has a conformant prototype.
688 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Wrap macro
689 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
690 for the switch to multiarch partial.
691
7bde8967
KB
6922003-03-19 Kevin Buettner <kevinb@redhat.com>
693
694 * mdebugread.c (parse_symbol): For stEnd, we're done counting
695 when iss is issNull.
696
b006a9e9
KB
6972003-03-18 Kevin Buettner <kevinb@redhat.com>
698
699 * mips-tdep.c (mips_register_name): Fix fencepost error involving
700 NUM_REGS bounds check.
701
5e2e9765
KB
7022003-03-18 Kevin Buettner <kevinb@redhat.com>
703
704 * Makefile.in (mips-tdep.o): Add dependency on $(gdb_assert_h).
705 * mips-tdep.c (gdb_assert.h): Include.
706 (mips_generic_reg_names, mips_processor_reg_names): Make static.
707 (mips_register_name): Handle integer registers explicitly. Add
708 bounds checking.
709 (mips_r3041_reg_names, mips_r3051_reg_names, mips_r3081_reg_names)
710 (mips_lsi33k_reg_names): Don't list integer registers; they're
711 handled by mips_register_name() now.
712 * config/mips/tm-irix3.h (MIPS_REGISTER_NAMES): Likewise.
713 * config/mips/tm-irix6.h (MIPS_REGISTER_NAMES): Likewise.
714 * config/mips/tm-mips.h (MIPS_REGISTER_NAMES): Likewise.
715 * config/mips/tm-tx39.h (MIPS_REGISTER_NAMES): Likewise.
716 * config/mips/tm-tx39l.h (MIPS_REGISTER_NAMES): Likewise.
717
a2867626
AC
7182003-03-18 Andrew Cagney <cagney@redhat.com>
719
720 * printcmd.c (print_scalar_formatted): Change VALADDR parameter to
721 a void pointer.
722 * gdbtypes.h (print_scalar_formatted): Update declaration.
723 * expression.h (enum exp_opcode): Remove non-ISO C trailing comma.
724
06600e06
JB
7252003-03-18 J. Brobecker <brobecker@gnat.com>
726
727 * infrun.c (observer.h): Add #include.
728 (normal_stop): Add call to observer_notify_normal_stop.
729 * Makefile.in (infrun.o): Add dependency on observer.h.
730
7daf4f5b
JB
7312003-03-18 J. Brobecker <brobecker@gnat.com>
732
733 Continuing work to convert the hppa targets to multiarch partial.
734 * hppa-tdep.c (hppa_push_dummy_frame): Remove unused function
735 parameter. Reformat comment.
736 * config/pa/tm-hppa.h (hppa_push_dummy_frame): Update profile.
737 (DEPRECATED_PUSH_DUMMY_FRAME): Update call to hppa_push_dummy_frame()
738 to match new profile.
739
3371ccc0
JB
7402003-03-18 J. Brobecker <brobecker@gnat.com>
741
742 * hppa-tdep.c (hppa_push_dummy_frame): Remove hack which does not
743 appear to be working in any case.
744
4fbe891e
JB
7452003-03-18 J. Brobecker <brobecker@gnat.com>
746
747 * observer.c (observer_test_first_observer): New static variable.
748 (observer_test_second_observer): Likewise.
749 (observer_test_third_observer): Likewise.
750 (observer_test_first_notification_function): New static function.
751 (observer_test_second_notification_function): Likewise.
752 (observer_test_third_notification_function): Likewise.
753
a7ff40e7
JB
7542003-03-17 J. Brobecker <brobecker@gnat.com>
755
756 * hppa-tdep.c (gdb_assert.h): Add missing #include.
757 * somsolib.c (gdb_assert.h): Likewise.
758 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
759 (somsolib.o): Likewise.
760
26ca4152
AC
7612003-03-17 Andrew Cagney <cagney@redhat.com>
762
763 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
764 BFD. Simplify setting of di.endian.
765
0a613259
AC
7662003-03-17 Andrew Cagney <cagney@redhat.com>
767
768 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
769 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
770
771 From Elena Zannoni <ezannoni@redhat.com>
772 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
773 vector and floating-point parameters.
774 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
775 convention.
776 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
777
1132738f
FN
7782003-03-17 Fernando Nasser <fnasser@redhat.com>
779
780 * MAINTAINERS: Remove my name from several maintainership roles.
781
6dc42492
AC
7822003-03-17 Andrew Cagney <cagney@redhat.com>
783
784 Fix frame off-by-one bug.
785 * frame-unwind.h (frame_this_id_ftype): Replace
786 frame_unwind_id_ftype.
787 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
788 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
789 with "prev_register".
790 * frame-unwind.c (frame_unwind_find_by_pc): Return
791 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
792 comment.
793 * dummy-frame.c (cached_find_dummy_frame): Delete function.
794 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
795 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
796 (dummy_frame_unwind): Update.
797 * sentinel-frame.c (sentinel_frame_prev_register): Replace
798 sentinel_frame_register_unwind.
799 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
800 (sentinel_frame_unwinder): Update.
801 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
802 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
803 * frame.c (create_sentinel_frame): Update. Initialize
804 "prologue_cache" instead of "unwind_cache".
805 (frame_register_unwind): Call this frame's prev_register with the
806 next frame and this frame's prologue cache.
807 (get_prev_frame): Simplify. Always call prev frame's this_id with
808 this frame and prev frame's prologue cache. Document that this
809 call is shifted one to the left when compared to the
810 frame_register_unwind call.
811 (legacy_saved_regs_prev_register): Replace
812 frame_saved_regs_register_unwind.
813 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
814 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
815 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
816 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
817 (d10v_frame_unwind): Update.
818 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
819 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
820 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
821 "saved_regs" with "this_saved_regs".
822
efd710d6
AC
8232003-03-16 Andrew Cagney <cagney@redhat.com>
824
825 * frame.c (frame_pop): Don't call target_store_registers. Fix
826 problem reported by Mark Kettenis.
827
4e259f09
MK
8282003-03-16 Mark Kettenis <kettenis@gnu.org>
829
830 * i386-tdep.c (i386_register_type): Renamed from
831 i386_register_virtual_type. Adjust function signature.
832 (i386_gdbarch_init): Set register_type instead of
833 deprecated_max_register_raw_size,
834 deprecated_max_register_virtual_size and register_virtual_type.
835
055bb976
AC
8362003-03-14 Andrew Cagney <cagney@redhat.com>
837
838 * frame.c (get_prev_frame): When a legacy frame, always call
839 legacy_get_prev_frame. Simplify unwind code using assumption that
840 the unwinder is new.
841 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
842 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
843 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
844
ac2adee5
AC
8452003-03-14 Andrew Cagney <cagney@redhat.com>
846
847 * frame.c (get_saved_register): Delete function.
848 * frame.h (get_saved_register): Delete declaration.
849 * xstormy16-tdep.c: Update comment.
850 * regcache.h: Update comments.
851 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
852 get_saved_register and extract_address, use
853 frame_read_unsigned_register.
854 (sparc_frame_saved_pc): Ditto.
855 (sparc_get_saved_register): Instead of get_saved_register, use
856 frame_register.
857 (sparc_pop_frame): Ditto.
858 * findvar.c: Update comments.
859 (value_of_register): Call frame_register instead of
860 get_saved_register.
861 (value_from_register): Ditto.
862 * config/sparc/tm-sparc.h: Update comment.
863 * breakpoint.c: Update comment.
864
129c1cd6
AC
8652003-03-14 Andrew Cagney <cagney@redhat.com>
866
867 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
868 GET_SAVED_REGISTER.
869 * gdbarch.h, gdbarch.c: Re-generate.
870 * frame.h: Update comments.
871 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
872 * x86-64-tdep.c (x86_64_init_abi): Update.
873 * sparc-tdep.c (sparc_gdbarch_init): Update.
874 * sh-tdep.c (sh_gdbarch_init): Update.
875 * mips-tdep.c (mips_gdbarch_init): Update.
876 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
877 * cris-tdep.c (cris_gdbarch_init): Update.
878 * ia64-tdep.c (ia64_gdbarch_init): Update.
879 * frame.c (frame_register): Update.
880 (get_saved_register): Update.
881 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
882
749b82f6
AC
8832003-03-13 Andrew Cagney <cagney@redhat.com>
884
885 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
886 * gdbarch.h, gdbarch.c: Regenerate.
887 * valops.c (hand_function_call): Update comment.
888 * stack.c (return_command): Update comment.
889 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
890 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
891 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
892 * x86-64-tdep.c (x86_64_init_abi): Update.
893 * vax-tdep.c (vax_gdbarch_init): Update.
894 * v850-tdep.c (v850_gdbarch_init): Update.
895 * sparc-tdep.c (sparc_gdbarch_init): Update.
896 * sh-tdep.c (sh_gdbarch_init): Update.
897 * s390-tdep.c (s390_gdbarch_init): Update.
898 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
899 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
900 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
901 * mips-tdep.c (mips_gdbarch_init): Update.
902 * mcore-tdep.c (mcore_gdbarch_init): Update.
903 * m68k-tdep.c (m68k_gdbarch_init): Update.
904 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
905 * ia64-tdep.c (ia64_gdbarch_init): Update.
906 * i386-tdep.c (i386_gdbarch_init): Update.
907 * hppa-tdep.c (hppa_gdbarch_init): Update.
908 * h8300-tdep.c (h8300_gdbarch_init): Update.
909 * frv-tdep.c (frv_gdbarch_init): Update.
910 * cris-tdep.c (cris_gdbarch_init): Update.
911 * avr-tdep.c (avr_gdbarch_init): Update.
912 * arm-tdep.c (arm_gdbarch_init): Update.
913 * alpha-tdep.c (alpha_gdbarch_init): Update.
914
1594fa56
AC
9152003-03-13 Andrew Cagney <cagney@redhat.com>
916
917 * frame.c (legacy_frame_p): New function.
918 (get_prev_frame): Use legacy_frame_p.
919 * frame.h (legacy_frame_p): Declare.
920
7717fda3
V
9212003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
922
923 * MAINTAINERS (write after approval): Alphabetically
924 listing corrected.
925
0c67cbe9
V
9262003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
927
928 * MAINTAINERS (write after approval): Add myself.
929
03febf99
AC
9302003-03-12 Andrew Cagney <cagney@redhat.com>
931
932 * frame.c (get_prev_frame): Rename the frame parameter to
933 "this_frame".
934 (get_next_frame, legacy_get_prev_frame): Ditto.
935
0a1e1ca1
AC
9362003-03-12 Andrew Cagney <cagney@redhat.com>
937
938 * frame.c (get_current_frame): Check target_has_registers before
939 checking target_has_stack.
940 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
941 instead of deprecated_selected_frame.
942 * findvar.c (value_of_register): Pass "frame", not
943 deprecated_selected_frame, to value_of_builtin_reg.
944
a66a9c23
AC
9452003-03-12 Andrew Cagney <cagney@redhat.com>
946
947 * regcache.c (regcache_cooked_write_signed): New function.
948 (regcache_cooked_write_unsigned): New function.
949 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
950 (regcache_cooked_read_signed): Fix regnum in range assertion.
951 * regcache.h (regcache_cooked_write_signed): Declare.
952 (regcache_cooked_write_unsigned): Declare.
953
8bedc050
AC
9542003-03-12 Andrew Cagney <cagney@redhat.com>
955
956 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
957 * gdbarch.h, gdbarch.c: Re-generate.
958 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
959 * x86-64-tdep.h: Update.
960 * x86-64-tdep.c (x86_64_init_abi): Update.
961 * v850-tdep.c (v850_gdbarch_init): Update.
962 * sparc-tdep.c (sparc_gdbarch_init): Update.
963 * sh-tdep.c (sh_gdbarch_init): Update.
964 * s390-tdep.c (s390_gdbarch_init): Update.
965 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
966 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
967 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
968 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
969 * mips-tdep.c (mips_gdbarch_init): Update.
970 * mcore-tdep.c (mcore_gdbarch_init): Update.
971 * m68k-tdep.c (m68k_gdbarch_init): Update.
972 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
973 * ia64-tdep.c (ia64_gdbarch_init): Update.
974 * i386-tdep.c (i386_gdbarch_init): Update.
975 * i386-interix-tdep.c (i386_interix_init_abi): Update.
976 * hppa-tdep.c (hppa_gdbarch_init): Update.
977 * h8300-tdep.c (h8300_gdbarch_init): Update.
978 * frv-tdep.c (frv_gdbarch_init): Update.
979 * cris-tdep.c (cris_gdbarch_init): Update.
980 * avr-tdep.c (avr_gdbarch_init): Update.
981 * arm-tdep.c (arm_gdbarch_init): Update.
982 * alpha-tdep.c (alpha_gdbarch_init): Update.
983 * sh-tdep.c (sh_init_extra_frame_info): Update.
984 (sh64_init_extra_frame_info): Update.
985 * ns32knbsd-nat.c (frame_num_args): Update.
986 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
987 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
988 (xstormy16_frame_chain_valid): Update.
989 * vax-tdep.c (vax_saved_pc_after_call): Update.
990 * v850-tdep.c (v850_frame_chain): Update.
991 (v850_pop_frame): Update.
992 (v850_init_extra_frame_info): Update.
993 * sparc-tdep.c (setup_arbitrary_frame): Update.
994 * ns32k-tdep.c (umax_frame_num_args): Update.
995 * s390-tdep.c (s390_pop_frame_regular): Update.
996 * mn10300-tdep.c (mn10300_frame_chain): Update.
997 (mn10300_pop_frame_regular): Update.
998 (mn10300_init_extra_frame_info): Update.
999 * mips-tdep.c (mips_init_frame_pc_first): Update.
1000 (mips_frame_chain): Update.
1001 (mips_pop_frame): Update.
1002 * mcore-tdep.c (mcore_frame_chain): Update.
1003 (mcore_pop_frame): Update.
1004 (mcore_init_extra_frame_info): Update.
1005 * arch-utils.c (init_frame_pc_default): Update.
1006 * m68k-tdep.c (isi_frame_num_args): Update.
1007 (delta68_frame_num_args): Update.
1008 (news_frame_num_args): Update.
1009 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1010 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1011 (alpha_frame_chain): Update.
1012 (alpha_pop_frame): Update.
1013 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1014 (hppa_init_extra_frame_info): Update.
1015 (hppa_frame_chain): Update.
1016 (hppa_frame_chain_valid): Update.
1017 * cris-tdep.c (cris_init_extra_frame_info): Update.
1018 * avr-tdep.c (avr_init_extra_frame_info): Update.
1019 * arm-tdep.c (arm_frame_chain_valid): Update.
1020 (arm_init_extra_frame_info): Update.
1021 (arm_pop_frame): Update.
1022 * frame.c (frame_pc_unwind): Update.
1023 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1024 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1025 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1026 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1027 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1028 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1029
7a25a7c1
AC
10302003-03-12 Andrew Cagney <cagney@redhat.com>
1031
1032 Eliminate the need for POP_FRAME.
1033 * frame.c (do_frame_unwind_register): New function.
1034 (frame_pop): When no POP_FRAME, pop the frame using register
1035 unwind and a scratch regcache.
1036 (frame_saved_regs_pop): Delete function.
1037 (trad_frame_unwinder): Update.
1038 * d10v-tdep.c (d10v_frame_pop): Delete function.
1039 (d10v_frame_unwind): Update.
1040 * sentinel-frame.c (sentinel_frame_pop): Delete function.
1041 (sentinel_frame_unwinder): Update.
1042 * dummy-frame.c (dummy_frame_pop): Delete function.
1043 (dummy_frame_unwind): Update.
1044 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
1045 (struct frame_unwind): Update.
1046
2f38ef89
KB
10472003-03-11 Kevin Buettner <kevinb@redhat.com>
1048
1049 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
1050 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
1051 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
1052 Do range checks on register number obtained from debugging info.
1053 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
1054 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
1055 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
1056 mapping function.
1057 (do_fp_register_row): Fix typo which caused double type to be
1058 used when attempting to unpack a float.
1059
552f4abf
JB
10602003-03-11 J. Brobecker <brobecker@gnat.com>
1061
1062 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
1063
e0d2ae16
AC
10642003-03-11 Andrew Cagney <cagney@redhat.com>
1065
1066 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
1067 frame. Problem found by Corinna Vinschen.
1068
ddbfdd06
PM
10692003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
1070
1071 * doublest.c (floatformat_from_length): Accept also
1072 the real size of 'long double' type.
1073
088b2ddc 10742003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 1075
088b2ddc 1076 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
1077 * breakpoint.c (bpstat_copy): Copy the command lines as well
1078 as the old value, to match what is freed in bpstat_clear.
1079
f56f77c1
DC
10802003-03-10 David Carlton <carlton@math.stanford.edu>
1081
1082 * minsyms.c (add_minsym_to_hash_table): Replace
1083 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
1084 (compare_minimal_symbols, compact_minimal_symbols)
1085 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
1086 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
1087 of DEPRECATED_SYMBOL_MATCHES_NAME.
1088 (lookup_minimal_symbol_solib_trampoline): Ditto.
1089
5602984a
AC
10902003-03-10 Andrew Cagney <cagney@redhat.com>
1091
1092 * regcache.h (regcache_cooked_read_ftype): Define.
1093 (regcache_save, regcache_restore): Add a cooked_read parameter.
1094 * regcache.c (regcache_save, regcache_restore): Update.
1095 (do_cooked_read): New function.
1096 (regcache_cpy): Pass do_cooked_read to regcache_save and
1097 regcache_restore.
1098
8bedc050
AC
10992003-03-10 Andrew Cagney <cagney@redhat.com>
1100
1101 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
1102 * gdbarch.h, gdbarch.c: Re-generate.
1103 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1104 * x86-64-tdep.h: Update.
1105 * x86-64-tdep.c (x86_64_init_abi): Update.
1106 * v850-tdep.c (v850_gdbarch_init): Update.
1107 * sparc-tdep.c (sparc_gdbarch_init): Update.
1108 * sh-tdep.c (sh_gdbarch_init): Update.
1109 * s390-tdep.c (s390_gdbarch_init): Update.
1110 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1111 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1112 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1113 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1114 * mips-tdep.c (mips_gdbarch_init): Update.
1115 * mcore-tdep.c (mcore_gdbarch_init): Update.
1116 * m68k-tdep.c (m68k_gdbarch_init): Update.
1117 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1118 * ia64-tdep.c (ia64_gdbarch_init): Update.
1119 * i386-tdep.c (i386_gdbarch_init): Update.
1120 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1121 * hppa-tdep.c (hppa_gdbarch_init): Update.
1122 * h8300-tdep.c (h8300_gdbarch_init): Update.
1123 * frv-tdep.c (frv_gdbarch_init): Update.
1124 * cris-tdep.c (cris_gdbarch_init): Update.
1125 * avr-tdep.c (avr_gdbarch_init): Update.
1126 * arm-tdep.c (arm_gdbarch_init): Update.
1127 * alpha-tdep.c (alpha_gdbarch_init): Update.
1128 * sh-tdep.c (sh_init_extra_frame_info): Update.
1129 (sh64_init_extra_frame_info): Update.
1130 * ns32knbsd-nat.c (frame_num_args): Update.
1131 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
1132 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
1133 (xstormy16_frame_chain_valid): Update.
1134 * vax-tdep.c (vax_saved_pc_after_call): Update.
1135 * v850-tdep.c (v850_frame_chain): Update.
1136 (v850_pop_frame): Update.
1137 (v850_init_extra_frame_info): Update.
1138 * sparc-tdep.c (setup_arbitrary_frame): Update.
1139 * ns32k-tdep.c (umax_frame_num_args): Update.
1140 * s390-tdep.c (s390_pop_frame_regular): Update.
1141 * mn10300-tdep.c (mn10300_frame_chain): Update.
1142 (mn10300_pop_frame_regular): Update.
1143 (mn10300_init_extra_frame_info): Update.
1144 * mips-tdep.c (mips_init_frame_pc_first): Update.
1145 (mips_frame_chain): Update.
1146 (mips_pop_frame): Update.
1147 * mcore-tdep.c (mcore_frame_chain): Update.
1148 (mcore_pop_frame): Update.
1149 (mcore_init_extra_frame_info): Update.
1150 * arch-utils.c (init_frame_pc_default): Update.
1151 * m68k-tdep.c (isi_frame_num_args): Update.
1152 (delta68_frame_num_args): Update.
1153 (news_frame_num_args): Update.
1154 * ia64-tdep.c (ia64_pop_frame_regular): Update.
1155 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
1156 (alpha_frame_chain): Update.
1157 (alpha_pop_frame): Update.
1158 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
1159 (hppa_init_extra_frame_info): Update.
1160 (hppa_frame_chain): Update.
1161 (hppa_frame_chain_valid): Update.
1162 * cris-tdep.c (cris_init_extra_frame_info): Update.
1163 * avr-tdep.c (avr_init_extra_frame_info): Update.
1164 * arm-tdep.c (arm_frame_chain_valid): Update.
1165 (arm_init_extra_frame_info): Update.
1166 (arm_pop_frame): Update.
1167 * frame.c (frame_pc_unwind): Update.
1168 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
1169 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1170 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1171 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
1172 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
1173 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
1174
12cc2063
AC
11752003-03-10 Andrew Cagney <cagney@redhat.com>
1176
1177 * gdbarch.sh (gdbarch_unwind_pc): New method.
1178 * gdbarch.h, gdbarch.c: Regenerate.
1179 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
1180 but use read_pc and FRAME_SAVED_PC as fall backs.
1181 (frame_saved_regs_pc_unwind): Delete function.
1182 (trad_frame_unwinder): Update.
1183 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
1184 (struct frame_unwind): Update.
1185 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
1186 (dummy_frame_unwind): Update.
1187 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
1188 (sentinel_frame_unwinder): Update.
1189 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
1190 (d10v_frame_unwind): Update.
1191 (d10v_unwind_pc): New function.
1192 (d10v_gdbarch_init): Set unwind_pc.
1193
ef840a37
AC
11942003-03-10 Andrew Cagney <cagney@redhat.com>
1195
a2ce2e56
AC
1196 * gdbarch.h: Re-generate.
1197
ef840a37
AC
1198 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
1199 PC.
1200 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
1201 the PC register.
1202
08f3424b
MK
12032003-03-08 Mark Kettenis <kettenis@gnu.org>
1204
1205 * gdbarch.sh (save_dummy_frame_tos): Add comment.
1206
1248ede2
AC
12072003-03-08 Andrew Cagney <cagney@redhat.com>
1208
1209 * cli-out.c: Update copyright.
1210 (cli_out_data): Define typedef. Use instead of ui_out_data.
1211
f49bacc8
AC
12122003-03-08 Andrew Cagney <cagney@redhat.com>
1213
1214 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
1215 the result.
1216
9b05f993
AC
12172003-03-07 Andrew Cagney <cagney@redhat.com>
1218
1219 * gdbarch.sh: Don't generate two macro definitions when an
1220 undefined macro taking no arguments.
1221 * gdbarch.h: Regenerate.
1222
166f4c7b
ML
12232002-03-07 Michal Ludvig <mludvig@suse.cz>
1224
1225 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
1226 (x86_64_unwind_dummy_id): New functions.
1227 (x86_64_init_abi): Register these two new functions.
1228
6d686a84
ML
12292003-03-07 Michal Ludvig <mludvig@suse.cz>
1230
1231 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
1232 (x86_64_skip_prologue): Move prologue detection to
1233 separate function.
1234 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
1235
6314f104
AC
12362003-03-05 Andrew Cagney <cagney@redhat.com>
1237
1238 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
1239 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
1240 * frame.c (get_prev_frame): Restructure the frame ID unwind code
1241 to use unwind_dummy_id when a dummy frame.
1242 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
1243 predicate.
1244 * gdbarch.h, gdbarch.c: Regneerate.
1245
ceea5145
AC
12462003-03-05 Andrew Cagney <cagney@redhat.com>
1247
1248 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
1249 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
1250 Do not use d10v_read_sp or d10v_read_fp when obtaining register
1251 values.
1252
0d843116
AC
12532003-03-05 Andrew Cagney <cagney@redhat.com>
1254
1255 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
1256 (struct d10v_unwind_cache): Delete field "frameless". Replace
1257 "next_addr" with "sp_offset". Add "r11_offset".
1258 (d10v_frame_unwind_cache): Update.
1259 (prologue_find_regs): Update. When "mv r11, sp", save the
1260 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
1261 RN was saved in r11_offset.
1262
b2579786
AC
12632003-03-05 Andrew Cagney <cagney@redhat.com>
1264
1265 * frame.c (deprecated_update_frame_pc_hack): Also update the the
1266 cached PC value in the next frame.
1267
218e5956
AC
12682003-03-05 Andrew Cagney <cagney@redhat.com>
1269
1270 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
1271 "id_unwind_cache" with "id".
1272 (frame_id_unwind): Delete declaration.
1273 * frame.c (frame_id_unwind): Delete function.
1274 (get_prev_frame): Call the frame id unwind method directly. Store
1275 the returned next frame's ID value in NEXT_FRAME. Note that there
1276 is a problem with the wrong unwind ID being called with the wrong
1277 unwind cache.
1278
ed363b1b
DJ
12792003-03-05 Daniel Jacobowitz <drow@mvista.com>
1280
1281 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
1282
fe1f4a5e
DJ
12832003-03-05 James Ingham <jingham@apple.com>
1284 Daniel Jacobowitz <drow@mvista.com>
1285
1286 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
1287 (auto_cp_abi): New variable.
1288 (current_cp_abi, num_cp_abis): Make static.
1289 (CP_ABI_MAX): Define.
1290 (cp_abis): Turn into an array.
1291 (value_virtual_fn_field): Fix formatting.
1292 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
1293 takes a pointer.
1294 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
1295 (list_cp_abis, _initialize_cp_abi): New functions.
1296 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
1297 declarations for cp_abis, num_cp_abis, current_cp_abi, and
1298 switch_to_cp_abi. Update prototype for register_cp_abi.
1299 * Makefile.in (cp-abi.o): Update dependencies.
1300 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
1301 instead of switch_to_cp_abi.
1302 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
1303 register_cp_abi.
1304 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
1305 register_cp_abi.
1306 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
1307
e4adbba9
DJ
13082003-03-05 Daniel Jacobowitz <drow@mvista.com>
1309
1310 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
1311 * dwarf2loc.c: Include "regcache.h".
1312 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
1313 register_size.
1314 * Makefile.in (dwarf2loc.o): Update dependencies.
1315
91ccbfc1
TR
13162003-03-04 Theodore A. Roth <troth@openavr.org>
1317
1318 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
1319 number of io registers reported by remote target is not a multiple of
1320 step.
1321
3d4e8fd2
DC
13222003-03-04 David Carlton <carlton@math.stanford.edu>
1323
1324 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
1325 (lookup_symbol_aux_psymtabs): Update call to
1326 lookup_partial_symbol.
1327 (lookup_transparent_type, find_main_psymtab)
1328 (make_symbol_overload_list): Ditto.
1329
ed42d87b
KH
13302003-03-04 Kazu Hirata <kazu@cs.umass.edu>
1331
1332 * MAINTAINERS (Write after approval): Update my email address.
1333
a0ed5532
AC
13342003-03-03 Andrew Cagney <cagney@redhat.com>
1335
1336 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
1337 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
1338 predicate. Replace MAX_REGISTER_RAW_SIZE.
1339 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
1340 MAX_REGISTER_VIRTUAL_SIZE.
1341 * regcache.c (legacy_max_register_raw_size): New function.
1342 (legacy_max_register_virtual_size): New function.
1343 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
1344 (MAX_REGISTER_RAW_SIZE): Define.
1345 (legacy_max_register_raw_size): Declare.
1346 (legacy_max_register_virtual_size): Declare.
1347 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1348 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
1349 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1350 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1351 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
1352 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
1353 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1354 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1355 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
1356 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1357 * vax-tdep.c (vax_gdbarch_init): Update.
1358 * v850-tdep.c (v850_gdbarch_init): Update.
1359 * sparc-tdep.c (sparc_gdbarch_init): Update.
1360 * sh-tdep.c (sh_gdbarch_init): Update.
1361 * s390-tdep.c (s390_gdbarch_init): Update.
1362 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1363 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1364 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1365 * mips-tdep.c (mips_gdbarch_init): Update.
1366 * mcore-tdep.c (mcore_gdbarch_init): Update.
1367 * m68k-tdep.c (m68k_gdbarch_init): Update.
1368 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1369 * ia64-tdep.c (ia64_gdbarch_init): Update.
1370 * i386-tdep.c (i386_gdbarch_init): Update.
1371 * hppa-tdep.c (hppa_gdbarch_init): Update.
1372 * h8300-tdep.c (h8300_gdbarch_init): Update.
1373 * frv-tdep.c (frv_gdbarch_init): Update.
1374 * cris-tdep.c (cris_gdbarch_init): Update.
1375 * avr-tdep.c (avr_gdbarch_init): Update.
1376 * arm-tdep.c (arm_gdbarch_init): Update.
1377 * alpha-tdep.c (alpha_gdbarch_init): Update.
1378 * d10v-tdep.c (d10v_gdbarch_init): Do not set
1379 max_register_raw_size or max_register_virtual_size.
1380
8e437497
DC
13812003-03-03 David Carlton <carlton@math.stanford.edu>
1382
1383 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
1384 SYMBOL_MATCHES_NAME, add comment.
1385 (SYMBOL_MATCHES_NATURAL_NAME): New.
1386 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
1387 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
1388 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
1389 * symtab.c (lookup_partial_symbol): Use
1390 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
1391 unhelpful comment.
1392 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
1393 SYMBOL_MATCHES_NAME.
1394 Fix for PR c++/33.
1395
25120b0d
DC
13962003-03-03 David Carlton <carlton@math.stanford.edu>
1397
1398 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
1399 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
1400 by regexp matching against SYMBOL_NATURAL_NAME.
1401
78a11fb4
DC
14022003-03-03 David Carlton <carlton@math.stanford.edu>
1403
1404 * linespec.c (find_method): Extract code into collect_methods.
1405 (collect_methods): New.
1406
645dd519
MK
14072003-03-02 Mark Kettenis <kettenis@gnu.org>
1408
b4700d91
MK
1409 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
1410 get_frame_base.
1411
645dd519
MK
1412 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
1413 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1414
0aa7e1aa
SC
14152003-03-02 Stephane Carrez <stcarrez@nerim.fr>
1416
1417 * arch-utils.c (generic_register_byte): Fix to use the loop index
1418 and not regnum when summing the size of all registers up to regnum.
1419
f30ee0bc
AC
14202003-03-01 Andrew Cagney <cagney@redhat.com>
1421
1422 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
1423 FRAME_INIT_SAVED_REGS.
1424 * gdbarch.h, gdbarch.c: Regenerate.
1425 * stack.c (frame_info): Update.
1426 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
1427 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
1428 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
1429 * ns32k-tdep.c (ns32k_pop_frame): Update.
1430 * mips-tdep.c (mips_pop_frame): Update.
1431 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
1432 * ia64-tdep.c (ia64_frame_chain): Update.
1433 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
1434 (ia64_frameless_function_invocation): Update.
1435 (ia64_init_extra_frame_info): Update.
1436 (ia64_pop_frame_regular): Update.
1437 * frame.h (struct frame_info): Update comment.
1438 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
1439 * frame.c (frame_saved_regs_register_unwind): Update.
1440 (frame_saved_regs_register_unwind): Update.
1441 (deprecated_generic_get_saved_register): Update.
1442 * cris-tdep.c: Update comment.
1443 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
1444 Rename macro.
1445 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
1446 * x86-64-tdep.c (x86_64_init_abi): Update.
1447 * vax-tdep.c (vax_gdbarch_init): Update.
1448 * v850-tdep.c (v850_gdbarch_init): Update.
1449 * sparc-tdep.c (sparc_gdbarch_init): Update.
1450 * sh-tdep.c (sh_gdbarch_init): Update.
1451 * s390-tdep.c (s390_gdbarch_init): Update.
1452 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
1453 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
1454 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1455 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1456 * mips-tdep.c (mips_gdbarch_init): Update.
1457 * mcore-tdep.c (mcore_gdbarch_init): Update.
1458 * m68k-tdep.c (m68k_gdbarch_init): Update.
1459 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
1460 * ia64-tdep.c (ia64_gdbarch_init): Update.
1461 * i386-tdep.c (i386_gdbarch_init): Update.
1462 * frv-tdep.c (frv_gdbarch_init): Update.
1463 * avr-tdep.c (avr_gdbarch_init): Update.
1464 * arm-tdep.c (arm_gdbarch_init): Update.
1465 * alpha-tdep.c (alpha_gdbarch_init): Update.
1466
42fa7c0f
AC
14672003-03-01 Andrew Cagney <cagney@redhat.com>
1468
1469 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
1470 option enum and switch. When no windows, set the interpreter to
1471 INTERP_CONSOLE.
1472
49c7e338
AC
14732003-03-01 Andrew Cagney <cagney@redhat.com>
1474
1475 * main.c (captured_main): Replace magic option characters with an
1476 enum.
1477
e9582e71
AC
14782003-03-01 Andrew Cagney <cagney@redhat.com>
1479
1480 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
1481 INIT_EXTRA_FRAME_INFO.
1482 * gdbarch.h, gdbarch.c: Regenerate.
1483 * arm-tdep.c: Update comments.
1484 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
1485 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
1486 * frame.h, avr-tdep.c: Ditto.
1487 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
1488 (create_new_frame, legacy_get_prev_frame): Ditto.
1489 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1490 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
1491 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
1492 deprecated_init_extra_frame_info instead of init_extra_frame_info.
1493 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1494 * v850-tdep.c (v850_gdbarch_init): Ditto.
1495 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1496 * sh-tdep.c (sh_gdbarch_init): Ditto.
1497 * s390-tdep.c (s390_gdbarch_init): Ditto.
1498 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
1499 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1500 * mips-tdep.c (mips_gdbarch_init): Ditto.
1501 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1502 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1503 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1504 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
1505 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
1506 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1507 * frv-tdep.c (frv_gdbarch_init): Ditto.
1508 * cris-tdep.c (cris_gdbarch_init): Ditto.
1509 * avr-tdep.c (avr_gdbarch_init): Ditto.
1510 * arm-tdep.c (arm_gdbarch_init): Ditto.
1511 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1512 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1513
35cac7cf
AC
15142003-03-01 Andrew Cagney <cagney@redhat.com>
1515
1516 * gdbarch.sh (register_type): New function with predicate.
1517 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
1518 * gdbarch.h, gdbarch.c: Re-generate.
1519 * arch-utils.c (generic_register_byte): Use generic_register_size.
1520 (generic_register_size): When available, use
1521 gdbarch_register_type.
1522 * regcache.c (init_regcache_descr): When available, initialize the
1523 register type array using gdbarch_register_type. If the
1524 architecture supplies gdbarch_register_type, do not use the legacy
1525 regcache layout.
1526 * d10v-tdep.c (d10v_register_type): Replace
1527 d10v_register_virtual_type.
1528 (d10v_gdbarch_init): Set register_type instead of
1529 register_virtual_type.
1530
7b83296f
AC
15312003-03-01 Andrew Cagney <cagney@redhat.com>
1532
1533 * Makefile.in (ax-gdb.o): Update dependencies.
1534 * ax-gdb.c: Include "regcache.h".
1535 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
1536 * findvar.c (value_of_register): Ditto.
1537 * infcmd.c (default_print_registers_info): Ditto.
1538
eadc1c87
MK
15392003-03-01 Mark Kettenis <kettenis@gnu.org>
1540
1541 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
1542 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
1543
14143612
MK
15442003-03-01 Mark Kettenis <kettenis@gnu.org>
1545
1546 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
1547 of STREQ.
1548
a55cc764
DJ
15492003-02-28 Daniel Jacobowitz <drow@mvista.com>
1550
1551 * Makefile.in (dwarf2loc.o): Update dependencies.
1552 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
1553 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
1554 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
1555 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
1556 (locexpr_tracepoint_var_ref): New function.
1557 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
1558
08a617da
AC
15592003-02-28 Andrew Cagney <cagney@redhat.com>
1560
1561 * regcache.c (register_size): New function.
1562 * regcache.h (register_size): Declare
1563 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
1564 max_register_size instead of MAX_REGISTER_RAW_SIZE.
1565
4224873a
DC
15662003-02-28 David Carlton <carlton@math.stanford.edu>
1567
1568 * linespec.c (decode_compound): Extract code into find_method.
1569 (find_method): New.
1570
ccdc5d7f
JB
15712003-02-28 J. Brobecker <brobecker@gnat.com>
1572
1573 * Makefile.in: Add rules to build and link in observer.o.
1574
974e8ced
JB
15752003-02-27 J. Brobecker <brobecker@gnat.com>
1576
1577 * observer.c: Minor comments edits.
1578
7a28f973
JB
15792003-02-27 J. Brobecker <brobecker@gnat.com>
1580
1581 * observer.h, observer.c: New file.
1582
27cddce2
AC
15832003-02-27 Andrew Cagney <cagney@redhat.com>
1584
1585 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
1586
b94a41a1
SC
15872003-02-27 Stephane Carrez <stcarrez@nerim.fr>
1588
1589 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
1590 (M6812_OP_STS_EXT): Likewise.
1591 (m6811_prologue): Use the above to recognize prologue.
1592 (m6812_prologue): Likewise.
1593
c8be8951
DC
15942003-02-27 David Carlton <carlton@math.stanford.edu>
1595
1596 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
1597 SYMBOL_PRINT_NAME.
1598 (compare_psymbols): Ditto.
1599 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
1600
d05bb1fc
MS
16012003-02-27 Michael Snyder <msnyder@redhat.com>
1602
4e845cd3
MS
1603 * f-lang.c (build_fortran_types): New function.
1604 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
1605 * doublest.c (extract_floating): Fix warning text.
1606
f3824013
AC
16072003-02-27 Andrew Cagney <cagney@redhat.com>
1608
1609 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
1610 predicate. Replaces PUSH_DUMMY_FRAME.
1611 * gdbarch.h, gdbarch.c: Regnerate.
1612 * valops.c (hand_function_call): Update. Call
1613 generic_push_dummy_frame directly.
1614 * vax-tdep.c (vax_gdbarch_init): Update.
1615 * sparc-tdep.c (sparc_gdbarch_init): Update.
1616 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1617 * m68k-tdep.c (m68k_gdbarch_init): Update.
1618 * hppa-tdep.c (hppa_gdbarch_init): Update.
1619 * alpha-tdep.c (alpha_gdbarch_init): Update.
1620 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1621 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
1622 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
1623 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
1624 push_dummy_frame to generic_push_dummy_frame.
1625 * v850-tdep.c (v850_gdbarch_init): Ditto.
1626 * sh-tdep.c (sh_gdbarch_init): Ditto.
1627 * s390-tdep.c (s390_gdbarch_init): Ditto.
1628 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1629 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1630 * mips-tdep.c (mips_gdbarch_init): Ditto.
1631 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1632 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1633 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1634 * i386-tdep.c (i386_gdbarch_init): Ditto.
1635 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1636 * frv-tdep.c (frv_gdbarch_init): Ditto.
1637 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1638 * cris-tdep.c (cris_gdbarch_init): Ditto.
1639 * avr-tdep.c (avr_gdbarch_init): Ditto.
1640 * arm-tdep.c (arm_gdbarch_init): Ditto.
1641
ad188201
KB
16422003-02-26 Kevin Buettner <kevinb@redhat.com>
1643
1644 * mips-tdep.c (show_mips_abi): New function.
1645 (_initialize_mips_tdep): Use show_mips_abi() to implement the
1646 command ``show mips abi''.
1647
6b37567a
JJ
16482003-02-26 Jeff Johnston <jjohnstn@redhat.com>
1649
1650 From Elena Zannoni <ezannoni@redhat.com>
1651 * dbxread.c (process_one_symbol): Only record line 0 if one or
1652 more sline entries have been seen for the function.
1653
d3e0a5bf
MC
16542003-02-26 Michael Chastain <mec@shout.net>
1655
1656 * configure: Regenerate with autoconf 000227.
1657
18972eea
MC
16582003-02-26 Michael Chastain <mec@shout.net>
1659
1660 Close PR build/660.
1661 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
1662 for old libc5/glibc.
1663 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
1664
0bbde931
KW
16652003-02-26 Kris Warkentin <kewarken@qnx.com>
1666
1667 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
1668 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
1669
27ca5dad
MC
16702003-02-26 Michael Chastain <mec@shout.net>
1671
1672 * configure.in: New variable HAVE_UINTPTR_T.
1673 * configure, config.in: Regenerated.
1674
6f88d630
DJ
16752003-02-26 Daniel Jacobowitz <drow@mvista.com>
1676
1677 Fix PR build/1097.
1678 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
1679
b14185ce
AC
16802003-02-25 Andrew Cagney <cagney@redhat.com>
1681
1682 * frame.c (get_prev_frame): Add comment on check for
1683 inside_entry_func. Only check for inside_entry_file when not a
1684 dummy and not a sentinel. Check that the new frame is not inner
1685 to the old frame.
1686
ac2bd0a9
AC
16872003-02-25 Andrew Cagney <cagney@redhat.com>
1688
1689 * frame.c (frame_debug): New variable.
1690 (_initialize_frame): Add "set/show debug frame" command.
1691 (get_prev_frame): When frame_debug, print reason why unwind
1692 failed.
1693
b18a0fd2
MC
16942003-02-25 Michael Chastain <mec@shout.net>
1695
1696 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
1697 to avoid uintptr_t definition problems.
1698
22abf04a
DC
16992003-02-25 David Carlton <carlton@math.stanford.edu>
1700
1701 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
1702 (SYMBOL_LINKAGE_NAME): Ditto.
1703 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
1704 SYMBOL_LINKAGE_NAME.
1705 (struct general_symbol_info): Expand comment.
1706 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
1707 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
1708 (SYMBOL_MATCHES_REGEXP): Ditto.
1709 * symtab.c (symbol_natural_name): New function.
1710 * objfiles.h: Replace all uses of SYMBOL_NAME by
1711 DEPRECATED_SYMBOL_NAME.
1712 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
1713 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
1714 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
1715 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
1716 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
1717 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
1718 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
1719 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
1720 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
1721 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
1722 * ada-exp.y: Ditto.
1723 * ada-exp.y: Update copyright.
1724 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
1725 * cp-valprint.c: Ditto.
1726
1a5848f6
JJ
17272003-02-25 Jeff Johnston <jjohnstn@redhat.com>
1728
1729 * infptrace.c (detach): Do not flag error if ptrace detach fails
1730 and errno is set to ESRCH.
1731
7343d46a
AC
17322003-02-24 Andrew Cagney <cagney@redhat.com>
1733
1734 * infptrace.c (udot_info): Change type of udot_off to long. Use
1735 paddr when printing udot_off's value.
1736
49fa1dc2
DC
17372003-02-24 David Carlton <carlton@math.stanford.edu>
1738
1739 * symtab.c (make_symbol_overload_list): Only read in partial
1740 symtabs containing a matching partial symbol.
1741
0fe19209
DC
17422003-02-24 David Carlton <carlton@math.stanford.edu>
1743
1744 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1745 do the comparison, not strcmp.
1746 * symfile.c (compare_psymbols): Ditto.
1747 * defs.h: Declare strcmp_iw_ordered.
1748 * utils.c (strcmp_iw_ordered): New function.
1749
8e3ee7b5
JB
17502003-02-24 Jim Blandy <jimb@redhat.com>
1751
1752 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1753 support, shared libs): Remove my name from here, to better reflect
1754 reality.
1755
7df1a324
KW
17562003-02-24 Kris Warkentin <kewarken@qnx.com>
1757
1758 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1759 (target_ops): Add to_have_continuable_watchpoint.
1760 * target.c (update_current_target): Add INHERIT line for
1761 to_have_continuable_watchpoint.
1762 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1763 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1764 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1765 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1766
d1c76907
EZ
17672003-02-24 Elena Zannoni <ezannoni@redhat.com>
1768
1769 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1770 maintainership.
1771
2610b0bf
KW
17722003-02-24 Kris Warkentin <kewarken@qnx.com>
1773
f46169db
KW
1774 * solib.c (solib_open): Call target defined search function after
1775 failing with solib-search-path.
1776 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1777 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1778
9a3c34fe
KW
17792003-02-24 Kris Warkentin <kewarken@qnx.com>
1780
f46169db 1781 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1782
2417dd25
SC
17832003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1784
1785 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1786
b631436b
SC
17872003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1788
1789 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1790 (m68hc11_add_reggroups): New function.
1791 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1792 (m68hc11_gdbarch_init): Install the reggroups.
1793 (_initialize_m68hc11_tdep): Initialize them.
1794
0aa8c1e4
JW
17952003-02-21 James E Wilson <wilson@tuliptree.org>
1796
1797 * MAINTAINERS: Update my email address.
1798
50ceaba5
DC
17992003-02-21 David Carlton <carlton@math.stanford.edu>
1800
1801 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1802
4c2df51b
DJ
18032003-02-21 Daniel Jacobowitz <drow@mvista.com>
1804
1805 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1806 * symtab.h: Add opaque declarations of struct axs_value and
1807 struct agent_expr.
1808 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1809 (struct location_funcs): New type.
1810 (struct symbol): Add "loc" to aux_value.
1811 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1812 * dwarf2read.c: Include "dwarf2expr.h".
1813 (dwarf2_symbol_mark_computed): New function.
1814 (read_func_scope): Use it.
1815 (var_decode_location): New function.
1816 (new_symbol): Use it.
1817 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1818
1819 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1820 (dwarf2expr_h, dwarf2loc_h): New variables.
1821 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1822 (dwarf2expr.o, dwarf2loc.o): New rules.
1823 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1824 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1825 LOC_COMPUTED_ARG.
1826 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1827 * m2-exp.y (yylex): Likewise.
1828 * printcmd.c (address_info, print_frame_args): Likewise.
1829 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1830 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1831 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1832 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1833 * symtab.c (lookup_block_symbol): Likewise.
1834
5784d15e
AF
18352003-02-20 Adam Fedor <fedor@gnu.org>
1836
1837 * symtab.h: Remove objc_specific struct
1838 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1839 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1840 Have language_objc use cplus_specific struct.
1841
d4cad8db
TT
18422003-02-20 Tom Tromey <tromey@redhat.com>
1843
1844 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1845 TYPE_NAME, when printing a String value. PR java/1075.
1846
2f9a90b4
AF
18472003-02-20 Adam Fedor <fedor@gnu.org>
1848
d38074a8 1849 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1850 * objc-lang.c (find_methods): Make static.
1851
6f17862b
CF
18522003-02-20 Christopher Faylor <cgf@redhat.com>
1853
1854 * win32-nat.c (get_image_name): Check return value from
1855 ReadProcessMemory.
1856 (child_xfer_memory): Ditto.
1857
715d1656
AO
18582003-02-20 Alexandre Oliva <aoliva@redhat.com>
1859
1860 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1861 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1862 '${exec_prefix}' (in addition to the expansion thereof) as
1863 relocatable.
1864 * configure: Rebuilt.
1865
b1262a02
DC
18662003-02-20 David Carlton <carlton@math.stanford.edu>
1867
1868 * symtab.c (search_symbols): Revert the search_symbols part of my
1869 2002-12-23 patch. Add comment.
1870
7134143f
DJ
18712002-02-20 Daniel Jacobowitz <drow@mvista.com>
1872
1873 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1874 * dbxread.c (elfstab_build_psymtabs): Don't call
1875 install_minimal_symbols.
1876 (stabsect_build_psymtabs): Likewise.
1877 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1878 earlier.
1879 * somread.c (som_symfile_read): Call install_minimal_symbols
1880 and do_cleanups earlier.
1881 * nlmread.c (nlm_symfile_read): Likewise.
1882 * mdebugread.c (elfmdebug_build_psymtabs): Call
1883 install_minimal_symbols and make appropriate cleanups.
1884
cf466558
KB
18852003-02-20 Kevin Buettner <kevinb@redhat.com>
1886
1887 * solib.c (reload_shared_libraries): New function.
1888 (_initialize_solib): Add callbacks for ``set solib-search-path''
1889 and ``set solib-absolute-prefix''.
1890
de5ad195
DC
18912003-02-20 David Carlton <carlton@math.stanford.edu>
1892
1893 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1894 expand comment.
1895 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1896 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1897 * ada-typeprint.c (ada_typedef_print): Ditto.
1898 * ax-gdb.c (gen_var_ref): Ditto.
1899 * breakpoint.c (print_one_breakpoint): Ditto.
1900 * buildsym.c (finish_block): Ditto.
1901 * c-valprint.c (c_val_print): Ditto.
1902 * expprint.c (print_subexp): Ditto.
1903 * findvar.c (locate_var_value): Ditto.
1904 * infcmd.c (jump_command): Ditto.
1905 * linespec.c (decode_line_2, decode_compound): Ditto.
1906 * maint.c (maintenance_translate_address): Ditto.
1907 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1908 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1909 Ditto.
1910 * p-valprint.c (pascal_val_print): Ditto.
1911 * stabsread.c (define_symbol): Ditto.
1912 * stack.c (print_frame, frame_info, print_block_frame_locals)
1913 (print_frame_arg_vars, return_command): Ditto.
1914 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1915 * symmisc.c (print_symbol): Ditto.
1916 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1917 (compare_search_syms, print_symbol_info, print_msymbol_info)
1918 (rbreak_command): Ditto.
1919 * tracepoint.c (tracepoints_info): Ditto.
1920 * typeprint.c (typedef_print): Ditto.
1921 * valops.c (value_of_variable, hand_function_call): Ditto.
1922 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1923 * ada-typeprint.c: Update Copyright.
1924 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1925 * tracepoint.c, cli/cli-cmds.c: Ditto.
1926
f796e4be
KB
19272003-02-20 Kevin Buettner <kevinb@redhat.com>
1928
1929 * frame.c (generic_unwind_get_saved_register): Make non-static.
1930 * frame.h (generic_unwind_get_saved_register): Declare.
1931 * mips-tdep.c (read_next_frame_reg): Fetch register from
1932 current regcache when frame is NULL.
1933 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1934 that must be NULL.
1935 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1936 instead of frame_register_unwind().
1937
836cc9f4
AC
19382003-02-20 Andrew Cagney <ac131313@redhat.com>
1939
1940 * remote-sim.c (gdbsim_insert_breakpoint)
1941 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1942 code.
1943
501eef12
AC
19442003-02-20 Andrew Cagney <ac131313@redhat.com>
1945
1946 * remote.c (_initialize_remote): Add commands "set/show remote
1947 hardware-watchpoint-limit" and "set/show remote
1948 hardware-breakpoint-limit".
1949 (remote_hw_watchpoint_limit): Initialize to -1.
1950 (remote_hw_breakpoint_limit): Ditto.
1951 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1952
1b6bc7e0
CF
19532003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1954
1955 * coff-pe-read.c: New file - support reading of minimal symbols from a
1956 portable executable using the export table.
1957 * coff-pe-read.h: New file.
1958 * coffread.c: Include coff-pe-read.h.
1959 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1960 debugging symbols found.
1961 * Makefile.in (SFILES): Add coff-pe-read.o.
1962 (coff_pe_read_h): Define.
1963 (COMMON_OBS): Add coff-pe-read.o.
1964 (coffread.o): Add coff_pe_read_h dependency.
1965 (coff-pe-read.o): New target.
1966
fe898f56
DC
19672003-02-19 David Carlton <carlton@math.stanford.edu>
1968
1969 * Makefile.in (SFILES): Add block.c.
1970 (block_h): New.
1971 (COMMON_OBS): Add block.o.
1972 (block.o): New.
1973 (x86-64-tdep.o): Add $(block_h).
1974 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1975 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1976 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1977 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1978 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1979 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1980 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1981 * value.h: Add opaque declaration for struct block.
1982 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1983 * ada-lang.h: Ditto.
1984 * x86-64-tdep.c: #include "block.h"
1985 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1986 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1987 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1988 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1989 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1990 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1991 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1992 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1993 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1994 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1995 * symtab.c (block_function): Ditto.
1996 (contained_in): Ditto.
1997 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1998 block.h. Add opaque declaration for struct block.
1999 * symtab.h: Move block_function and contained_in declarations to
2000 block.h. Add opaque declarations for struct block, struct
2001 blockvector.
2002 (struct block): Move to block.h.
2003 (struct blockvector): Ditto.
2004 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
2005 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
2006 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
2007 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
2008 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
2009 Ditto.
2010 * block.c: New file.
2011 * block.h: New file.
2012
173345b5
TR
20132003-02-19 Theodore A. Roth <troth@openavr.org>
2014
2015 * avr-tdep.c (avr_extract_return_value): Remove function.
2016 (avr_store_return_value): Remove function.
2017 (avr_extract_struct_value_address): Remove function.
2018 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
2019
338ef23d
AC
20202003-02-19 Andrew Cagney <ac131313@redhat.com>
2021
2022 * rs6000-tdep.c: Include "gdb_assert.h".
2023 (registers_e500): Add "acc" and "spefscr".
2024 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
2025 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
2026 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
2027 really is "r0".
2028 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
2029
5412f5f3
KS
20302003-02-18 Keith Seitz <keiths@redhat.com>
2031
2032 * Makefile.in: Add gdbtk-interps.c.
2033
881324eb
KB
20342003-02-18 Kevin Buettner <kevinb@redhat.com>
2035
2036 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
2037 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
2038
6a2f5abf
AC
20392003-02-18 Andrew Cagney <cagney@redhat.com>
2040
2041 * symtab.h (struct objfile): Add opaque declaration.
2042
54c7009d
EZ
20432003-02-18 Elena Zannoni <ezannoni@redhat.com>
2044
2045 From Jim Ingham <jingham@apple.com>:
2046 * dbxread.c (process_one_symbol): Use last_function_start rather
2047 than function_start_offset to find the real beginning of the
2048 current function. The latter is just the text section offset on
2049 some systems, the former is always the real function start.
2050
7ee6d7eb
AC
20512003-02-17 Andrew Cagney <cagney@redhat.com>
2052
2053 * configure.in: Revert ${target} != ${host}.
2054
2846da9b
AC
20552003-02-17 Andrew Cagney <ac131313@redhat.com>
2056
2057 * configure.in (Makefile): Use the test ${target} != ${host},
2058 instead of the absence of the "nm.h" file, to determine of the
2059 configuration non-native.
2060 * configure: Regenerate.
2061
3b27aeea
EZ
20622003-02-14 Elena Zannoni <ezannoni@redhat.com>
2063
2064 From Brian Ford <ford@vss.fsi.com>
2065
2066 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
2067 conditionalize tui_active test.
2068 (lookup_cmd_1): Ditto.
2069
b0b1c2c0
MK
20702003-02-14 Mark Kettenis <kettenis@gnu.org>
2071
2072 * configure.in: Add check for _etext.
2073 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
2074 available.
2075 * config.in, configure: regenerated.
2076
8f05cde5
DJ
20772003-02-14 Daniel Jacobowitz <drow@mvista.com>
2078
2079 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
2080
021e7609
AC
20812003-02-14 Andrew Cagney <ac131313@redhat.com>
2082
2083 * main.c (tui_version): Delete variable.
2084 (captured_main): When --tui, set interpreter_p to "tui" instead of
2085 enabling tui_version.
2086 * printcmd.c (display_command) [TUI]: Test tui_active instead of
2087 tui_version.
2088 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
2089 * cli/cli-cmds.c (disassemble_command): Ditto.
2090 * defs.h (tui_version): Delete declaration.
2091 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
2092 (tui-interp.o): Add rules.
2093 (SUBDIR_TUI_OBS): Add "tui-interp.o".
2094
e325dcec
CF
20952003-02-14 Christopher Faylor <cgf@redhat.com>
2096
36ffb041 2097 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
2098 just-loaded dll.
2099
c4f90d87
JM
21002003-02-12 Jason Molenda (jmolenda@apple.com)
2101
2102 * symmisc.c (print_objfile_statistics): Include information about
2103 the number of psymtabs and symtabs in each object file.
2104
e46e5ccd
KS
21052003-02-13 Keith R Seitz <keiths@redhat.com>
2106
2107 * main.h (struct captured_main_args): Add interpreter_p.
2108 * main.c (captured_main): Initialize interpreter_p from context.
2109 * gdb.c (main): Set interpreter_p argument.
2110 * Makefile.in (gdb.o): Add dependency for interps.h.
2111
fe97fe9c
AC
21122003-02-12 Andrew Cagney <ac131313@redhat.com>
2113
2114 * event-top.c (cli_command_loop): Delete declaration.
2115 (_initialize_event_loop): Delete function setting event_loop_hook.
2116 * event-top.h (cli_command_loop): Declare. Update copyright.
2117 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
2118 * interps.c (current_interp_command_loop): When event_loop_p, call
2119 cli_command_loop.
2120
1cdac4ef
AC
21212003-02-12 Andrew Cagney <ac131313@redhat.com>
2122
2123 * interps.h (interp_command_loop_ftype): Change return type to
2124 void.
2125
48037ead
ML
21262003-02-12 Michal Ludvig <mludvig@suse.cz>
2127
2128 * x86-64-tdep.c (x86_64_extract_return_value)
2129 (x86_64_store_return_value): Use regcache instead of regbuf.
2130 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
2131 * x86-64-linux-nat.c (fill_gregset): Use regcache.
2132
033afc63
AC
21332003-02-11 Andrew Cagney <ac131313@redhat.com>
2134
2135 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
2136 * aclocal.m4: Regenerate.
2137 * configure: Regenerate.
2138
2139 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
2140 TCL_LD_SEARCH_FLAGS.
2141
40d02bca
ML
21422003-02-10 Michal Ludvig <mludvig@suse.cz>
2143
2144 * dwarf2cfi.c: Reindented.
2145
11308a41
AC
21462003-02-09 Andrew Cagney <ac131313@redhat.com>
2147
2148 * interps.c (clear_interpreter_hooks): Convert function definition
2149 to ISO C.
2150
e1c1c0f6
DC
21512003-02-07 David Carlton <carlton@math.stanford.edu>
2152
2153 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
2154
ab5d3da6
KB
21552003-02-07 Kevin Buettner <kevinb@redhat.com>
2156
2157 * gdbtypes.h (struct main_type): Move ``length'' field from here...
2158 (struct type): ...to here.
2159 (TYPE_LENGTH): Adjust to reflect different location of ``length''
2160 field.
2161 * gdbtypes.c (make_qualified_type): Set length on newly created type.
2162 (replace_type): Set length on all type variants for a given type.
2163
b8a92b82
AC
21642003-02-07 Andrew Cagney <ac131313@redhat.com>
2165
2166 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
2167 <sys/stat.h>.
2168 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
2169
5cb316ef
AC
21702003-02-06 Andrew Cagney <ac131313@redhat.com>
2171
2555fe1a
AC
2172 * Makefile.in (symm-nat.o): Update dependencies.
2173 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
2174 (lynx-nat.o, ia64-linux-nat.): Ditto.
2175 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
2176 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
2177 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
2178
44270758
AC
2179 * Makefile.in (inflow_h): Define.
2180 (procfs.o, inflow.o, procfs.o): Update dependencies.
2181 * inftarg.c (child_stop): Delete extern declaration of
2182 inferior_process_group. Include "inflow.h".
2183 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
2184 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
2185 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
2186 (our_process_group, inferior_process_group): Extern declarations.
2187
df8f7274
AC
2188 * procfs.c: Include "gdb_assert.h".
2189
5cb316ef
AC
2190 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2191 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
2192 * jv-typeprint.c (java_type_print_base): Ditto.
2193 * typeprint.c (typedef_print): Eliminate STREQ.
2194 * cli/cli-script.c (define_command, define_command): Ditto.
2195 * main.c (captured_main): Ditto.
2196 * values.c (lookup_internalvar): Ditto.
2197 * utils.c (safe_strerror, parse_escape): Eliminate assignment
2198 within `if' conditional.
2199 * linespec.c (decode_line_2): Ditto.
2200 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
2201 (bfd_openw_with_cleanup): Ditto.
2202
2a28ccea
MK
22032003-02-07 Mark Kettenis <kettenis@gnu.org>
2204
2205 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
2206 legacy_extract_return_value and store_return_value to
2207 legacy_return_value.
2208
786b8124
CF
22092003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
2210
2211 * win32-nat.c (get_relocated_section_addrs): New function. Find
2212 section load addresses for symbol handling in relocated DLLs.
2213 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
2214
b871e4ec
FF
22152003-02-05 Fred Fish <fnf@intrinsity.com>
2216
2217 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
2218 '=' and '!='.
2219 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
2220 with '&' and '=='.
2221 (angel_RDI_info): Ditto.
2222 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
2223 with '&' and '!='.
2224 (threads_continue_all_with_signals): Ditto.
2225
4389a95a
AC
22262003-02-05 Jim Ingham <jingham@apple.com>
2227 Keith Seitz <keiths@redhat.com>
2228 Elena Zannoni <ezannoni@redhat.com>
2229 Andrew Cagney <ac131313@redhat.com>
2230
2231 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
2232 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
2233 (SUBDIR_MI_OBS): Add "mi-interp.o".
2234 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
2235 (SFILES): Add "interps.c".
2236 (COMMON_OBS): Add "interps.o".
2237 (interps_h, mi_main_h): Define.
2238 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
2239 (mi-main.o, main.o, event-top.o): Update dependencies.
2240 * cli/cli-interp.c: New file.
2241 * interps.h, interps.c: New files.
2242 * top.c: (gdb_init): Don't install the default interpreter, handed
2243 by captured_main.
2244 * main.c: Include "interps.h".
2245 (interpreter_p): Note that it should malloc'ed.
2246 (captured_command_loop): Call current_interp_command_loop.
2247 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
2248 xfree and xstrdup when updating interpreter_p. Install the
2249 default interpreter. Add hack to stop mi1's copyright notice
2250 being encoded.
2251 * event-top.h (gdb_setup_readline): Declare.
2252 (gdb_disable_readline): Declare.
2253 * event-top.c: Include "interps.h".
2254 (display_gdb_prompt): Call current_interp_display_prompt_p.
2255 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
2256 gdb_stdlog, and gdb_stdtarg.
2257 (_initialize_event_loop): Don't call gdb_setup_readline.
2258 * cli-out.c (cli_out_set_stream): New function.
2259 * cli-out.h (cli_out_set_stream): Declare.
2260
ff3b5810
MK
22612003-02-06 Mark Kettenis <kettenis@gnu.org>
2262
2263 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
2264 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
2265 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
2266 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
2267 config/i386/i386v42mp.mt: Removed.
2268
5b729aa5
MK
22692003-02-05 Mark Kettenis <kettenis@gnu.org>
2270
2271 * configure.tgt (*-*-solaris*): Set gdb_osabi to
2272 GDB_OSABI_SOLARIS.
2273
8cc15142
MC
22742003-02-05 Michael Chastain <mec@shout.net>
2275
2276 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
2277 2.12.1 and earlier versions.
2278
5aa5d4b9
AC
22792003-02-05 Andrew Cagney <ac131313@redhat.com>
2280
2281 Remove orphaned hosts, targets and files.
2282 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
2283 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
2284 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
2285 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
2286 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
2287 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
2288 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
2289 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
2290 * config/sparc/tm-sp64sim.h: Delete.
2291 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
2292 hosts.
2293 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
2294 mips*-dec-mach3* targets.
2295
b68767c1
MC
22962003-02-04 Michael Chastain <mec@shout.net>
2297
2298 * NEWS: Fix typo: sepcifying -> specifying.
2299
5ae7ca1d
MC
23002003-02-04 Michael Chastain <mec@shout.net>
2301
2302 * dwarfread.c: Add documentation on the state of dwarf-1,
2303 looking towards obsoletion.
2304
d08a4280
MC
23052003-02-03 Michael Chastain <mec@shout.net>
2306
2307 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
2308 gdb/testsuite/gdb.c++/pr-1023.exp.
2309
e9be73e4
AC
23102003-02-04 Andrew Cagney <ac131313@redhat.com>
2311
2312 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
2313 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
2314
2315 * utils.c (init_page_info): Delete reference to MPW in comments.
2316 * main.c (captured_main): Delete #ifdef MPW.
2317
05d57f6f
AC
23182003-02-04 Andrew Cagney <ac131313@redhat.com>
2319
2320 * NEWS: Note that the m32r-*-elf* is obsolete.
2321 * monitor.c (monitor_expect): Obsolete reference to m32r.
2322 * configure.tgt: Mark m32r-*-elf* as obsolete.
2323 * MAINTAINERS: Mark m32k as obsolete.
2324 * m32r-rom.c: Obsolete file.
2325 * config/m32r/m32r.mt: Obsolete file.
2326 * config/m32r/tm-m32r.h: Obsolete file.
2327 * m32r-stub.c: Obsolete file.
2328 * m32r-tdep.c: Obsolete file.
2329
8b0e5691
AC
23302003-02-04 Andrew Cagney <ac131313@redhat.com>
2331
2332 * NEWS: Mention that the z8k-zilog-none is obsolete.
2333 * MAINTAINERS: Mark z8k as obsolete.
2334 * configure.tgt: Obsolete the z8k-*-coff* target.
2335 * config/z8k/z8k.mt: Obsolete file.
2336 * config/z8k/tm-z8k.h: Obsolete file.
2337 * z8k-tdep.c: Obsolete file.
2338
67f16606
AC
23392003-02-04 Andrew Cagney <ac131313@redhat.com>
2340
2341 * NEWS: Mention that the mn10200-elf is obsolete.
2342 * configure.tgt: Obsolete mn10200-*-* target.
2343 * breakpoint.c (update_breakpoints_after_exec): Update comment to
2344 mention that the mn10200 is obsolete.
2345 * breakpoint.h: Ditto.
2346 * MAINTAINERS: Mark the mn10200-elf as obsolete.
2347 * config/mn10200/mn10200.mt: Obsolete file.
2348 * config/mn10200/tm-mn10200.h: Obsolete file.
2349 * mn10200-tdep.c: Obsolete file.
2350
fd2299bd
AC
23512003-02-04 Andrew Cagney <ac131313@redhat.com>
2352
2353 * MAINTAINERS: Mark h8500 as obsolete.
2354 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
2355 * findvar.c (value_from_register): Ditto.
2356 * h8500-tdep.c: Mark file as obsolete.
2357 * config/h8500/h8500.mt: Ditto.
2358 * config/h8500/tm-h8500.h: Ditto.
2359 * NEWS: Mention that h8500 is obsolete.
2360
eb9a305d
DC
23612003-02-04 David Carlton <carlton@math.stanford.edu>
2362
2363 * objfiles.c (allocate_objfile): Always set name. Add comment at
2364 start of function.
2365 * jv-lang.c (get_dynamics_objfile): Add comment.
2366
406fc7fb
DC
23672003-02-04 David Carlton <carlton@math.stanford.edu>
2368
2369 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
2370 * printcmd.c (build_address_symbolic): Replace uses of
2371 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
2372 SYMBOL_NAME, and asm_demangle.
2373 Update copyright.
2374
93d91629
DC
23752003-02-04 David Carlton <carlton@math.stanford.edu>
2376
2377 * linespec.c (decode_compound): Extract code into
2378 lookup_prefix_sym.
2379 (lookup_prefix_sym): New function.
2380
1c5cb38e
DC
23812003-02-04 David Carlton <carlton@math.stanford.edu>
2382
2383 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
2384 FLOAT_COERCION_BADNESS.
2385 * gdbtypes.c (rank_one_type): Replace all uses of
2386 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
2387
0cf824c9
JB
23882003-02-04 Jim Blandy <jimb@redhat.com>
2389
2390 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
2391 section, let dwarf_macinfo_section point to it, not
2392 dwarf_loc_section.
2393
a2d356b0
DJ
23942003-02-04 Daniel Jacobowitz <drow@mvista.com>
2395
2396 Pointed out by Anton Blanchard <anton@samba.org>.
2397 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
2398 (ppc_linux_at_sigtramp_return_path): Use it.
2399
2de7ced7
DJ
24002003-02-04 Daniel Jacobowitz <drow@mvista.com>
2401
2402 * defs.h (streq): Add prototype.
2403 * utils.c (streq): New function.
2404
2405 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
2406 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
2407 * mdebugread.c (new_symbol): Likewise.
2408 * stabsread.c (define_symbol): Likewise.
2409 * coffread.c (process_coff_symbol): Likewise.
2410 * dwarfread.c (new_symbol): Likewise.
2411
2412 * minsyms.c (prim_record_minimal_symbol_and_info): Use
2413 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
2414 here.
2415 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
2416 SYMBOL_INIT_DEMANGLED_NAME.
2417 * objfiles.c: Include "hashtab.h".
2418 (allocate_objfile): Call htab_set_functions_ex for the
2419 demangled_names_hash.
2420 (free_objfile): Call htab_delete for the demangled_names_hash.
2421 * objfiles.h (struct htab): Add declaration.
2422 (struct objfile): Add demangled_names_hash.
2423 * symfile.c: Include "hashtab.h".
2424 (reread_symbols): Call htab_delete for the demangled_names_hash.
2425 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
2426 SYMBOL_NAME in the bcache.
2427 * symtab.c: Include "hashtab.h". Update comments.
2428 (create_demangled_names_hash, symbol_set_names): New functions.
2429 (symbol_find_demangled_name): New function, broken out from
2430 symbol_init_demangled_names.
2431 (symbol_init_demangled_names): Use it.
2432 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
2433 (SYMBOL_SET_NAMES): New macro.
2434 (symbol_set_names): Add prototype.
2435
15831452
JB
24362003-02-03 Jim Blandy <jimb@redhat.com>
2437
2438 Use a single, consistent representation for an empty minimal
2439 symbol table in an objfile.
2440 * objfiles.c (terminate_minimal_symbol_table): New function.
2441 (allocate_objfile): Call it.
2442 * objfiles.h (terminate_minimal_symbol_table): New declaration.
2443 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
2444 non-NULL.
2445 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
2446 objfile has minimal symbols, compare minimal_symbol_count to zero,
2447 instead of comparing msymbols with NULL.
2448 * objfiles.c (have_minimal_symbols): Same.
2449 * solib-sunos.c (solib_add_common_symbols): Call
2450 terminate_minimal_symbol_table.
2451 * symfile.c (reread_symbols): Same.
2452
ffc65945
KB
24532003-02-03 Kevin Buettner <kevinb@redhat.com>
2454
2455 * s390-tdep.c (s390_address_class_type_flags)
2456 (s390_address_class_type_flags_to_name)
2457 (s390_address_class_name_to_type_flags): New functions.
2458 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
2459 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
2460
f211c6d4
MS
24612003-02-03 Michael Snyder <msnyder@redhat.com>
2462
2463 * arm-tdep.c: Fix spell-o in comment.
2464
659b0389
ML
24652003-02-03 Michal Ludvig <mludvig@suse.cz>
2466
2467 * dwarf2cfi.c (pointer_encoding): Added new parameter.
2468 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
2469 error messages to contain BFD filename.
2470
3b31d625
EZ
24712003-02-02 Elena Zannoni <ezannoni@redhat.com>
2472
997b089a 2473 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
2474 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
2475 (do_mixed_source_and_assembly): Use
2476 make_cleanup_ui_out_tuple_begin_end and
2477 make_cleanup_ui_out_tuple_begin_end.
2478 (do_mixed_source_and_assembly): Ditto.
2479 * thread.c (do_captured_list_thread_ids): Ditto.
2480 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
2481 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
2482 ui_out_tuple_end): Delete prototypes.
2483 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
2484 ui_out_list_end, ui_out_tuple_end): Delete.
2485
2486 From Kevin Buettner <kevinb@redhat.com>:
2487 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
2488 * ui-out.c (make_cleanup_ui_out_table_begin_end)
2489 (do_cleanup_table_end): New functions.
2490 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
2491 Use cleanups to invoke_ui_out_tuple_end().
2492 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
2493 * cli/cli-setshow.c (cmd_show_list): Use
2494 make_cleanup_ui_out_tuple_begin_end.
2495
5b181d62
AC
24962003-02-02 Andrew Cagney <ac131313@redhat.com>
2497
2498 * frame.c (frame_unwind_register): New function.
2499 (frame_unwind_unsigned_register): Use.
2500 (frame_unwind_signed_register): Use.
2501 (frame_read_register): New function.
2502 * frame.h (frame_unwind_register): Declare.
2503 (frame_read_register): Declare.
2504
2505 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
2506 and frame_unwind_register instead of read_memory, write_register
2507 and deprecated_write_register_bytes.
2508
5f601589
AC
25092003-02-02 Andrew Cagney <ac131313@redhat.com>
2510
2511 * frame.h: Note that namelen can be negative.
2512 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
2513 NAME's length.
2514
2515 * NEWS: Mention that the d10v's `regs' command is deprecated.
2516 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
2517 (d10v_print_registers_info): New function.
2518 (show_regs): Call d10v_print_registers_info.
2519 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
2520
6a3fe0a4
MK
25212003-02-02 Mark Kettenis <kettenis@gnu.org>
2522
2523 * stack.c (print_frame_info): Restore call to annotate_frame_begin
2524 lost in the previous patch.
2525
075559bc
AC
25262003-02-01 Andrew Cagney <ac131313@redhat.com>
2527
2528 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
2529 * stack.c (print_frame_info_base): Output complete FRAME tuple
2530 for synthesized frames.
2531
6789195b
AC
25322003-02-02 Andrew Cagney <ac131313@redhat.com>
2533
2534 * mips-nat.c (zerobuf): Delete.
2535 (fetch_inferior_registers): Alloc local zerobuf.
2536 (fetch_core_registers): Alloc local zerobuf.
2537 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
2538 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
2539 * thread-db.c (thread_db_store_registers): Ditto.
2540 * sh-tdep.c (sh_do_register): Ditto.
2541 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
2542 * remote-sim.c (gdbsim_store_register): Ditto.
2543 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
2544 * remote-e7000.c (fetch_regs_from_dump): Ditto.
2545 * monitor.c (monitor_supply_register): Ditto.
2546 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
2547 * mips-nat.c (fetch_inferior_registers): Ditto.
2548 * m68klinux-nat.c (fetch_register): Ditto.
2549 * lynx-nat.c (fetch_inferior_registers): Ditto.
2550 (fetch_inferior_registers): Ditto.
2551 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
2552 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
2553 (hpux_thread_store_registers): Ditto.
2554 * hppah-nat.c (fetch_register): Ditto.
2555 * hppab-nat.c (fetch_register): Ditto.
2556 * hppa-tdep.c (pa_register_look_aside): Ditto.
2557 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
2558 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
2559
e669114a
AC
25602003-02-01 Andrew Cagney <ac131313@redhat.com>
2561
2562 * gdbarch.sh: Explictly specify all method levels. When a
2563 variable with an empty level, provide a non-multi-arch default.
2564 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
2565 * gdbarch.h: Re-generate.
2566 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
2567 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
2568
9a043c1d
AC
25692003-02-01 Andrew Cagney <ac131313@redhat.com>
2570
2571 * defs.h (host_pointer_to_address): Delete declaration.
2572 (address_to_host_pointer): Delete declaration.
2573 * utils.c (host_pointer_to_address): Delete function.
2574 (address_to_host_pointer): Delete function.
2575 * procfs.c (procfs_address_to_host_pointer): New function.
2576 * procfs.c (proc_set_watchpoint): Use.
2577 (procfs_can_use_hw_breakpoint): Update comments.
2578 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
2579 (som_solib_add): Use.
2580 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
2581 * hppa-tdep.c (unwind_command): Use.
2582
7ca9f392
AC
25832003-02-01 Andrew Cagney <ac131313@redhat.com>
2584
94bbfd30
AC
2585 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
2586 strlen d_name.
2587
7ca9f392
AC
2588 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
2589 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
2590 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
2591 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
2592 (define_symbol): Update.
2593 * symfile.c (generic_load): Remove references to nindy.
2594 * symtab.c: Remove references to nindy.
2595
31a85ea2
AC
25962003-02-01 Andrew Cagney <ac131313@redhat.com>
2597
2598 * infcmd.c (print_float_info): Delete code conditional on
2599 FLOAT_INFO.
2600 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
2601 * config/m68k/nm-apollo68b.h: Ditto.
2602 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
2603 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
2604 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
2605
f6e85fc8
MK
26062003-02-01 Mark Kettenis <kettenis@gnu.org>
2607
6015b6a0
MK
2608 * config/i386/tm-i386os9k.h: Removed.
2609
f7a30bdf
MK
2610 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
2611 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
2612 they're identical to i[3456]86-*-sysv* now.
2613 * config/i386/i386v32.mh: Removed.
2614 * config/i386/xm-i386v32.h: Removed.
2615 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
2616
28d52111
MK
2617 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
2618
4d3f6bce
MK
2619 * config/i386/i386dgux.mh: Removed.
2620 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
2621
f6e85fc8
MK
2622 * configure.in: Fix typo.
2623 * configure: Regenerated.
2624
53955967
DC
26252003-01-31 David Carlton <carlton@math.stanford.edu>
2626
2627 * dwarf2read.c (dwarf2_locate_sections): Set
2628 dwarf_ranges_section.
2629
b1364885
AC
26302003-01-31 Andrew Cagney <ac131313@redhat.com>
2631
8dbb1c65
AC
2632 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
2633 * utils.c: Update comments documenting legitimate uses of PTR.
2634
8731e58e
AC
2635 * utils.c: Re-indent.
2636
b1364885
AC
2637 * config/djgpp/fnchange.lst: Delete nindy files.
2638 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
2639 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
2640 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
2641 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
2642 * nindy-share/README, nindy-share/Onindy.c: Delete files.
2643 * nindy-tdep.c, nindy-share/Makefile: Delete files.
2644 * Makefile.in (init.c): Remove nindy references.
2645 (saber_gdb): Delete rule.
2646 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
2647 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
2648 and a68v-nat.c.
2649 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
2650 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
2651 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
2652 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
2653 nindy-share/stop.h.
2654 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
2655 * saber.suppress: Delete file.
2656
086df311
DJ
26572003-01-31 Daniel Jacobowitz <drow@mvista.com>
2658
2659 * dbxread.c (stabs_data): New static variable.
2660 (fill_symbuf): Support an in-memory buffer for stabs data.
2661 (stabs_seek): New function.
2662 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
2663 (read_ofile_symtab): Use stabs_seek.
2664 (elfstab_build_psymtabs): Take an asection* instead of
2665 an offset and size. Relocate the stabs data if necessary.
2666 Save the section* for dbx_psymtab_to_symtab.
2667 * dwarf2read.c: Add section variables for each debug section.
2668 (dwarf2_locate_sections): Fill them in.
2669 (dwarf2_read_section): Take an asection* argument.
2670 Relocate the section contents if necessary.
2671 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
2672 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
2673 it to dwarf2_read_section.
2674 (dwarf2_build_frame_info): Update callers.
2675 * elfread.c (elf_symfile_read): Update call to
2676 elfstab_build_psymtabs.
2677 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
2678 (DBX_STAB_SECTION): New macro.
2679 * stabsread.h (elfstab_build_psymtabs): Update prototype.
2680 * symfile.c (symfile_dummy_outputs): New function.
2681 (symfile_relocate_debug_section): New function.
2682 * symfile.h (symfile_relocate_debug_section): Add prototype.
2683
87d1b352
RH
26842003-01-31 Richard Henderson <rth@redhat.com>
2685
2686 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
2687 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
2688 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
2689 * alpha-tdep.c (alpha_register_name): Add "unique".
2690 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
2691 (ALPHA_UNIQUE_REGNUM): New.
2692 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
2693
c48861fb
AC
26942003-01-31 Andrew Cagney <ac131313@redhat.com>
2695
2696 * README: Remove reference to Ericsson 1800 monitor.
2697 * Makefile.in (remote-es.o): Delete rule.
2698 (ALLDEPFILES): Delete remote-es.c.
2699 * remote-es.c: Delete file.
2700 * config/m68k/es1800.mt: Delete file.
2701 * config/djgpp/fnchange.lst: Update.
2702 * configure.tgt: Delete m68*-ericsson-* target.
2703
d764a824
AF
27042003-01-31 Adam Fedor <fedor@gnu.org>
2705
2706 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
2707 Remove duplicate/shadowing variable of same name.
2708
fe36c4f4
JB
27092003-01-30 Jim Blandy <jimb@redhat.com>
2710
2711 * symfile.c (find_separate_debug_file): Assert that the objfile's
2712 directory name we compute ends with a slash, and then assume that
2713 that's so everywhere we use it.
2714
cb741690
DJ
27152003-01-30 Daniel Jacobowitz <drow@mvista.com>
2716
2717 * valops.c (value_assign): Flush frame cache after stores to memory
2718 also.
2719
96ee5227
AC
27202003-01-30 Andrew Cagney <ac131313@redhat.com>
2721
2722 * Makefile.in (mon960-rom.o): Delete rule.
2723 * mon960-rom.c: Delete file.
2724
7f6104a9
AC
27252003-01-30 Andrew Cagney <ac131313@redhat.com>
2726
2727 * d10v-tdep.c: Include "frame-unwind.h".
2728 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
2729 list.
2730 (next_addr, uses_frame): Delete.
2731 (struct d10v_unwind_cache): Define.
2732 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
2733 Use info instead of next_addr and uses_frame globals.
2734 (d10v_frame_init_saved_regs): Delete function.
2735 (d10v_init_extra_frame_info): Delete function.
2736 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
2737 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
2738 init_frame_pc or frame_saved_pc.
2739 (d10v_pop_frame): Delete function.
2740 (do_d10v_pop_frame): Delete function.
2741 (d10v_frame_chain): Delete function.
2742 (d10v_frame_chain_valid): Delete function.
2743 (d10v_frame_pc_unwind): New function.
2744 (d10v_frame_id_unwind): New function.
2745 (saved_regs_unwinder): New function.
2746 (d10v_frame_register_unwind): New function.
2747 (d10v_frame_pop): New function.
2748 (d10v_frame_unwind): New variable.
2749 (d10v_frame_p): New function.
2750 (d10v_frame_saved_pc): Delete function.
2751 * Makefile.in (d10v-tdep.o): Update dependencies.
2752
cad2e848
JB
27532003-01-30 J. Brobecker <brobecker@gnat.com>
2754
2755 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2756 causing some regressions due to a change in the default value
2757 for this macro.
2758
af34e669
DJ
27592003-01-29 Richard Henderson <rth@redhat.com>
2760 Elena Zannoni <ezannoni@redhat.com>
2761 Daniel Jacobowitz <drow@mvista.com>
2762
2763 Fix PR gdb/961.
2764 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2765 variables.
2766 (RANGES_SECTION): New.
2767 (dwarf_ranges_buffer): New variable.
2768 (struct comp_unit_head): Add member "die".
2769 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2770 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2771 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2772 (dwarf2_locate_sections): Likewise.
2773 (dwarf2_build_psymtabs): Read .debug_ranges.
2774 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2775 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2776 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2777 Look for DW_AT_ranges and return the bounding box.
2778
baa93fa6
CF
27792003-01-29 Brian Ford <ford@vss.fsi.com>
2780
2781 * win32-nat.c (cygwin_pid): Removed as unused.
2782 (child_attach): Try fall back to Cygwin pid.
2783
c63f977f
JB
27842003-01-29 Jim Blandy <jimb@redhat.com>
2785
2786 * objfiles.h (struct objfile): Doc fix.
2787
d62d1979
AC
27882003-01-29 Andrew Cagney <ac131313@redhat.com>
2789
2790 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2791 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2792 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2793 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2794 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2795 (FRAME_SAVED_PC): Change to a function with predicate.
2796 * gdbarch.h, gdbarch.c: Re-generate.
2797
1ae18a04
AC
27982003-01-28 Andrew Cagney <ac131313@redhat.com>
2799
52287340
AC
2800 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2801
1ae18a04
AC
2802 * complaints.c (complain): Delete function.
2803 * complaints.h (struct deprecated_complaint): Delete definition.
2804 (complain): Delete declaration.
2805
f2c16bd6
KB
28062003-01-28 Kevin Buettner <kevinb@redhat.com>
2807
2808 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2809 dummy frames.
2810
a94dd1fd
AC
28112003-01-27 Andrew Cagney <ac131313@redhat.com>
2812
2813 * sentinel-frame.h, sentinel-frame.c: New files.
2814 * Makefile.in (frame.o): Update dependencies.
2815 (SFILES): Add sentinel-frame.c.
2816 (sentinel_frame_h): Define.
2817 (COMMON_OBS): Add sentinel-frame.o.
2818 (sentinel-frame.o): Specify dependencies.
2819 * frame.c: Include "sentinel-frame.h".
2820 (frame_register_unwind): Rewrite assuming that there is always a a
2821 ->next frame.
2822 (frame_register, generic_unwind_get_saved_register): Ditto.
2823 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2824 (create_sentinel_frame, unwind_to_current_frame): New functions.
2825 (get_current_frame): Rewrite using create_sentinel_frame and
2826 unwind_to_current_frame. When possible, always create a frame.
2827 (create_new_frame): Set next to the sentinel frame.
2828 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2829 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2830 ID cache when necessary.
2831 (frame_saved_regs_id_unwind): Use frame_relative_level.
2832 (deprecated_generic_get_saved_register): Use frame_relative_level,
2833 get_frame_saved_regs, get_frame_pc, get_frame_base and
2834 get_next_frame.
2835 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2836 frame_register.
2837
5378adc4
DJ
28382003-01-27 Daniel Jacobowitz <drow@mvista.com>
2839
2840 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2841
51ee2ddc
DJ
28422003-01-27 Daniel Jacobowitz <drow@mvista.com>
2843
2844 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2845 (maintenance_set_profile_cmd): Use error () instead of warning ().
2846
d9feb4e7
DJ
28472003-01-27 Daniel Jacobowitz <drow@mvista.com>
2848
2849 * configure.in: Check that -pg works if using --enable-profiling.
2850 Check for monstartup and _mcleanup regardless of --enable-profiling.
2851 * maint.c: Check for monstartup and _mcleanup before using them.
2852 * config.in: Regenerated.
2853 * configure: Regenerated.
2854
2d188dd3
NC
28552003-01-24 Nick Clifton <nickc@redhat.com>
2856
2857 * Add sh2e support:
2858
2859 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2860
2861 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2862 (sh2e_show_regs): New.
2863 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2864 * config/sh/tm-sh.h: Added sh2e to comments.
2865
cb3c37b2
JB
28662003-01-23 Jim Blandy <jimb@redhat.com>
2867
2868 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2869 symbols found)" message here; we haven't checked for a separate
2870 debug info file yet, so we don't know yet.
2871 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2872 we've looked everywhere. Also, there's no need to print a special
2873 message when we're loading the separate debug info file: the one
2874 symbol_file_add prints is fine.
2875
5b5d99cf
JB
28762003-01-23 Alexander Larsson <alexl@redhat.com>
2877 Jim Blandy <jimb@redhat.com>
2878
2879 Add support for executables whose debug info has been separated
2880 out into a separate file, leaving only a link behind.
2881 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2882 and separate_debug_objfile_backlink.
2883 (put_objfile_before): New declaration.
2884 * symfile.c: #include "filenames.h".
2885 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2886 debug info in a separate file, read that, too. Save the addrs
2887 argument, so we can use it again to read the separated debug info;
2888 syms_from_objfile modifies the table we pass it.
2889 (reread_symbols): After re-reading an objfile, call
2890 reread_separate_symbols to refresh its separate debug info
2891 objfile, if it has one.
2892 (reread_separate_symbols, find_separate_debug_file,
2893 get_debug_link_info, separate_debug_file_exists): New functions.
2894 (debug_file_directory): New global var.
2895 (_initialize_symfile): Initialize debug_file_directory, and
2896 provide the new `set debug-file-directory' command to let the user
2897 change it.
2898 * objfiles.c (free_objfile): If this objfile has its debug info in
2899 a separate objfile, free that one too. If this is itself a
2900 separate debug info objfile, clear our parent's backlink.
2901 (put_objfile_before): New function.
2902 * utils.c (gnu_debuglink_crc32): New function.
2903 * defs.h (gnu_debuglink_crc32): New declaration.
2904 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2905 * configure.in: Handle --with-separate-debug-dir config option.
2906 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2907 * acconfig.h (DEBUGDIR): New macro.
2908 * configure, aclocal.m4, config.in: Regenerated.
2909
7e8580c1
JB
29102003-01-22 Jim Blandy <jimb@redhat.com>
2911
7904e09f
JB
2912 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2913 like the old symbol_file_add, but taking new arguments: you can
2914 now pass in either a `struct section_addr_info' list to say where
2915 each section is loaded, or a `struct section_offsets' table. Pass
2916 these new arguments through to syms_from_objfile as appropriate.
2917 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2918 with the appropriate quiescent values for the new arguments.
2919
7e8580c1
JB
2920 * symfile.c: #include "gdb_assert.h".
2921 (syms_from_objfile): Add the ability to pass in a section offset
2922 table directly, as an alternative to the section_addr_info table.
2923 Document arguments better.
2924 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2925 * symfile.h (syms_from_objfile): Update declaration.
2926 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2927 syms_from_objfile.
2928 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2929
d28f9cdf
DJ
29302003-01-22 Daniel Jacobowitz <drow@mvista.com>
2931
2932 Original patch by Tom Tromey <tromey@cygnus.com> and
2933 Jason Molenda <jmolenda@apple.com>.
2934 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2935 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2936 * NEWS: Mention profiling.
2937 * configure.in (--enable-gdbtk): Fix typo.
2938 (--enable-profiling): New. Set PROFILE_CFLAGS.
2939 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2940 Fill in function.
2941 (profiling_state): New variable.
2942 (mcleanup_wrapper): New function.
2943 (_initialize_maint): Remove NOTYET, fix call to
2944 add_setshow_boolean_cmd for "maint set profile".
2945 * configure: Regenerated.
2946
df21e465
MH
29472003-01-21 Martin M. Hunt <hunt@redhat.com>
2948
2949 * Makefile.in (install-gdbtk): Install PNG images too.
2950
73c1f219
AC
29512003-01-21 Andrew Cagney <ac131313@redhat.com>
2952
2953 * exec.c (text_start): Delete global variable.
2954 (exec_file_attach): Make text_start local to the function.
2955 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2956 * valops.c (hand_function_call): Delete code that handles
2957 BEFORE_TEXT_END and AFTER_TEXT_END.
2958 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2959 of CALL_DUMMY_LOCATION.
2960 * gdbarch.c: Regenerate.
2961 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2962 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2963 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2964 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2965 (text_end): Delete extern declaration.
2966
eb4f72c5
AC
29672003-01-21 Andrew Cagney <ac131313@redhat.com>
2968
2969 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2970 * blockframe.c (backtrace_below_main): Move to "frame.c".
2971 (frame_chain_valid): Delete check for backtrace_below_main.
2972 (_initialize_blockframe): Delete initialization, move ``set
2973 backtrace-below-main'' command to "frame.c".
2974 (do_flush_frames_sfunc): Delete function.
2975 * frame.c: Include "command.h" and "gdbcmd.h".
2976 (frame_type_from_pc): New function.
2977 (create_new_frame): Use frame_type_from_pc.
2978 (legacy_get_prev_frame): New function.
2979 (get_prev_frame): Rewrite. When an old style frame, call
2980 legacy_get_prev_frame. Otherwize, unwind the PC first.
2981 (_initialize_frame): Add ``set backtrace-below-main'' command.
2982 * Makefile.in (frame.o): Update dependencies.
2983
778ce8cc
AC
29842003-01-19 Andrew Cagney <ac131313@redhat.com>
2985
2986 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2987 DEPRECATED_REGISTERS_INFO.
2988
01c193c8
AC
29892003-01-19 Andrew Cagney <ac131313@redhat.com>
2990
2991 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2992 Maintainers'. Update `Various Maintainers'.
2993
dedc2a2b
AC
29942003-01-19 Andrew Cagney <ac131313@redhat.com>
2995
2996 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2997 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2998 Suppress actual parameters when `-'.
2999 * gdbarch.h, gdbarch.c: Regenerate.
3000
b7261c70
AC
30012003-01-19 Andrew Cagney <ac131313@redhat.com>
3002
3003 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
3004 code handling dummy frames.
3005
dbe9fe58
AC
30062003-01-19 Andrew Cagney <ac131313@redhat.com>
3007
3008 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
3009 (struct frame_unwind): Add field pop.
3010 * frame.h (frame_pop): Declare.
3011 * frame.c (frame_saved_regs_pop): New function.
3012 (trad_frame_unwinder): Add frame_saved_regs_pop.
3013 (frame_pop): New function.
3014 * dummy-frame.c (dummy_frame_pop): New function.
3015 (discard_innermost_dummy): New function.
3016 (generic_pop_dummy_frame): Use discard_innermost_dummy.
3017 (dummy_frame_unwind): Add dummy_frame_pop.
3018 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
3019 * valops.c (hand_function_call): Ditto.
3020 * stack.c (return_command): Ditto.
3021
570b8f7c
AC
30222003-01-18 Andrew Cagney <ac131313@redhat.com>
3023
3024 * cris-tdep.c: Fix function declaration indentation.
3025 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
3026 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
3027 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
3028 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
3029 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
3030 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
3031
30322003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
3033
3034 * README (Unpacking and Installation -- quick overview):
3035 Warn against ".../gdb-5.3/gdb/configure".
3036
494cca16
AC
30372003-01-18 Andrew Cagney <ac131313@redhat.com>
3038
3039 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
3040 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3041 (struct frame_unwind): Declare opaque.
3042 (dummy_frame_p): Declare function.
3043 * dummy-frame.c (dummy_frame_id_unwind): Make static.
3044 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
3045 * dummy-frame.c: Include "frame-unwind.h".
3046 (dummy_frame_p): New function.
3047 (dummy_frame_unwind): New variable.
3048 * frame.c: Include "frame-unwind.h".
3049 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
3050 to use the new unwind field.
3051 (set_unwind_by_pc): Delete function.
3052 (create_new_frame, get_prev_frame): Set unwind field using
3053 frame_unwind_find_by_pc.
3054 (trad_frame_unwind, trad_frame_unwinder): New variables.
3055 * frame.h (trad_frame_unwind): Declare variable.
3056 (frame_id_unwind_ftype): Delete declaration.
3057 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
3058 (struct frame_unwind): Declare opaque.
3059 (struct frame_info): Replace the fields id_unwind, pc_unwind and
3060 register_unwind with a single unwind pointer.
3061 * frame-unwind.h, frame-unwind.c: New files.
3062 * Makefile.in (SFILES): Add frame-unwind.c.
3063 (frame_unwind_h): Define.
3064 (COMMON_OBS): Add frame-unwind.o.
3065 (frame-unwind.o): Specify dependencies.
3066 (frame.o, dummy-frame.o): Update dependencies.
3067
4efb68b1
AC
30682003-01-18 Andrew Cagney <ac131313@redhat.com>
3069
3070 * ada-valprint.c: Eliminate PTR.
3071 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
3072 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
3073 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
3074 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
3075 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
3076 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
3077 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
3078
a84d24ee
AC
30792003-01-17 Andrew Cagney <ac131313@redhat.com>
3080
762f08a3
AC
3081 * main.c (captured_main): Don't use PTR.
3082 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
3083 * gdbtypes.c (lookup_primitive_typename): Ditto.
3084 (lookup_struct_elt_type): Ditto.
3085 * f-valprint.c (info_common_command): Ditto.
3086 (list_all_visible_commons): Ditto.
3087 * jv-typeprint.c (java_type_print_base): Ditto.
3088
a84d24ee
AC
3089 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
3090 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
3091 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
3092 i386-interix-nat.c and i386-interix-tdep.c. Rename
3093 m68klinux-nat.c and m68klinux-tdep.c. Rename
3094 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
3095 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
3096 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
3097 * main.c (captured_main): Use xfree, not free.
3098
c170fb60
AC
30992003-01-16 Andrew Cagney <ac131313@redhat.com>
3100
3101 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
3102 ID back using a parameter.
3103 * frame.c (frame_id_unwind): Update call.
3104 (frame_saved_regs_id_unwind): Update.
3105 * dummy-frame.c (dummy_frame_id_unwind): Update function.
3106 * dummy-frame.h (struct frame_id): Add opaque declaration.
3107 (dummy_frame_id_unwind): Update declaration.
3108
867f3898
AC
31092003-01-15 Andrew Cagney <ac131313@redhat.com>
3110
3111 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
3112
40622be8 31132003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 3114
40622be8 3115 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 3116
ae66c1fc
EZ
31172003-01-14 Elena Zannoni <ezannoni@redhat.com>
3118
997b089a 3119 Fix PR gdb/898
ae66c1fc
EZ
3120 * breakpoint.c (until_break_command): Add new argument. Use it to
3121 decide whether to stop only at the current frame or not.
3122 * breakpoint.h (until_break_command): Update prototype.
3123 * infcmd.c (until_command): Add new argument to until_break_command
3124 call.
3125 (advance_command): New function.
3126 (_initialize_infcmd): Update help string for 'until' command.
3127 Add new 'advance' command.
3128
a04257e6
DC
31292003-01-14 David Carlton <carlton@math.stanford.edu>
3130
3131 * linespec.c (decode_line_1): Normalize comments.
3132 (set_flags): Ditto.
3133 (locate_first_half): Ditto.
3134 (decode_compound): Ditto.
3135 (symtab_from_filename): Ditto.
3136 (decode_all_digits): Ditto.
3137 (decode_dollar): Ditto.
3138 (find_methods): Ditto.
3139 (find_toplevel_char): Ditto.
3140
1bac305b
AC
31412003-01-13 Andrew Cagney <ac131313@redhat.com>
3142
3143 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
3144 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
3145 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
3146 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
3147 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
3148 * language.c, language.h, m32r-tdep.c: Update copyright.
3149 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
3150 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
3151 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
3152 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
3153 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
3154 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
3155
25caa7a8
EZ
31562003-01-13 Elena Zannoni <ezannoni@redhat.com>
3157
3158 * stabsread.h (process_later, resolve_cfront_continuation):
3159 Obsolete.
3160 Update copyright years.
3161 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
3162 Update copyright year.
3163 * dbxread.c(struct cont_elem): Obsolete.
3164 (process_later, process_now): Obsolete functions.
3165 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
3166 Update copyright year.
3167 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
3168 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
3169 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
3170 (parse_partial_symbols): Obsolete cfront support.
3171 * stabsread.c
3172 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
3173 macros.
3174 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
3175 read_cfront_baseclasses, read_cfront_member_functions,
3176 resolve_cfront_continuation,read_cfront_static_fields,
3177 copy_cfront_struct_fields): Obsolete functions.
3178 (define_symbol, read_one_struct_field): Obsolete cfront support.
3179 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
3180 Update Copyright year.
3181
7789c6f5
EZ
31822003-01-13 Elena Zannoni <ezannoni@redhat.com>
3183
3184 * stack.c (print_frame_info, print_stack_frame_base_stub,
3185 print_stack_frame_base, show_and_print_stack_frame_stub,
3186 show_and_print_stack_frame, print_only_stack_frame_stub,
3187 print_only_stack_frame): Delete functions.
3188 (print_stack_frame_stub): Call print_frame_info instead of
3189 print_frame_info_base.
3190 (print_frame_info_base): Rename to print_frame_info.
3191 (backtrace_command_1): Call print_frame_info, instead of
3192 print_frame_info_base.
3193 (current_frame_command): Call print_stack_frame, instead of
3194 print_only_stack_frame.
3195 (frame_command): Call print_stack_frame, instead of
3196 show_and_print_stack_frame.
3197 (up_command): Ditto.
3198 (down_command): Ditto.
3199 * frame.h (print_only_stack_frame): Delete prototype.
3200 * infrun.c (normal_stop): Call print_stack_frame, instead of
3201 show_and_print_stack_frame.
3202 * thread.c (info_threads_command): Call print_stack_frame, instead
3203 of print_only_stack_frame.
3204
3f5a3016
AC
32052003-01-13 Andrew Cagney <ac131313@redhat.com>
3206
d99ba314
AC
3207 * README (Graphical interface to GDB): Update URL. Point at
3208 gdb/links/.
3209
3f5a3016
AC
3210 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
3211 version match.
3212
083ae935
DJ
32132003-01-13 Daniel Jacobowitz <drow@mvista.com>
3214
3215 * symtab.c (find_pc_sect_line): Don't consider end-of-function
3216 lines.
3217
5365276c
DJ
32182003-01-13 Daniel Jacobowitz <drow@mvista.com>
3219
3220 * thread-db.c (attach_thread): Prototype.
3221 (struct private_thread_info): Remove lwpid. Add thread handle (th),
3222 thread information (ti), and valid flags (th_valid, ti_valid).
3223 (attach_thread): Move target_pid_to_str call to after the thread
3224 is added to GDB's list. Initialize the cache.
3225 (thread_get_info_callback, thread_db_map_id2thr)
3226 (thread_db_get_info): New functions.
3227 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
3228 (thread_db_store_registers, thread_db_thread_alive)
3229 (thread_db_get_thread_local_address): Use them.
3230 (thread_db_pid_to_str): Likewise. Return "Missing" instead
3231 of calling error() for threads in unknown state.
3232
3233 (clear_lwpid_callback): New function.
3234 (thread_db_resume): Use it to clear the cache.
3235
9fc30b6b
DJ
32362003-01-13 Daniel Jacobowitz <drow@mvista.com>
3237
3238 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
3239 (resume_callback): Remove dead code.
3240
8f871025
AC
32412003-01-13 Andrew Cagney <ac131313@redhat.com>
3242
3243 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
3244 predicate.
3245 * gdbarch.h, gdbarch.c: Regenerate.
3246 * stack.c (frame_info): Only initialize the saved registers when
3247 FRAME_INIT_SAVED_REGS_P.
3248 * frame.c (frame_saved_regs_register_unwind): Assert
3249 FRAME_INIT_SAVED_REGS_P.
3250 (deprecated_generic_get_saved_register): Ditto.
3251
3f565f1e
DJ
32522003-01-13 Daniel Jacobowitz <drow@mvista.com>
3253
3254 * source.c (openp): Squelch warning about "filename".
3255
072b1022
DJ
32562003-01-13 Daniel Jacobowitz <drow@mvista.com>
3257
3258 * source.c (openp): If the file does not exist don't necessarily
3259 search the path.
3260
973ccf8b
DJ
32612003-01-13 Daniel Jacobowitz <drow@mvista.com>
3262
3263 Fix PR gdb/872.
3264 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
3265 (integer_types_same_name_p): New function.
3266 (rank_one_type): Use it.
3267 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
3268
030292b7
DJ
32692003-01-13 Daniel Jacobowitz <drow@mvista.com>
3270
3271 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
3272 variables.
3273 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
3274 * configure.in: Add --with-sysroot.
3275 * configure: Regenerated.
3276 * main.c (gdb_sysroot): New variable.
3277 (captured_main): Initialize gdb_sysroot.
3278 * defs.h (gdb_sysroot): New extern declaration.
3279 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
3280
afb5d334
MC
32812003-01-12 Michael Chastain <mec@shout.net>
3282
3283 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
3284
751ceeb4
MC
32852003-01-12 Michael Chastain <mec@shout.net>
3286
3287 * top.c (print_gdb_version): Bump copyright year to 2003.
3288
94cd26f8
DC
32892003-01-12 David Carlton <carlton@bactrian.org>
3290
3291 * linespec.c (symtab_from_filename): Rename variable 's' to
3292 'file_symtab'.
3293
1ce79225
AC
32942003-01-12 Andrew Cagney <ac131313@redhat.com>
3295
3296 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
3297 dummy frame.
3298 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
3299
fa1fd571
AC
33002003-01-12 Andrew Cagney <ac131313@redhat.com>
3301
3302 * d10v-tdep.c: Include "gdb_assert.h".
3303 (d10v_store_return_value): Rewrite to match current interface.
3304 (d10v_extract_struct_value_address): Ditto.
3305 (d10v_extract_return_value): Ditto.
3306 (d10v_gdbarch_init): Set store_restore_value,
3307 extract_struct_value_address and extract_return_value.
3308
68b8d23e
JB
33092003-01-12 J. Brobecker <brobecker@gnat.com>
3310
3311 * hpread.c (set_namestring): New procedure replacing the
3312 SET_NAMESTRING macro.
3313 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
3314 by calls to set_namestring.
3315
33162003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
3317
3318 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
3319 a compilation warning.
3320 (hpread_process_one_debug_symbol): Likewise.
3321
88d262ca
DC
33222003-01-10 David Carlton <carlton@math.stanford.edu>
3323
3324 * linespec.c (decode_line_1): Rename variable 's' to
3325 'file_symtab'.
3326 (decode_all_digits): Rename argument 's' to 'file_symtab'.
3327 (decode_dollar): Ditto.
3328 (decode_variable): Ditto.
3329 (symbol_found): Ditto.
3330
86669319
MC
33312003-01-09 Michael Chastain <mec@shout.net>
3332
3333 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
3334
616a9dc4
CV
33352003-01-07 Corinna Vinschen <vinschen@redhat.com>
3336
3337 * win32-nat.c (set_process_privilege): New function.
3338 (child_attach): Call set_process_privilege() to enable the
3339 SE_DEBUG_NAME user privilege if available in process token.
3340
3269bcfa
JB
33412003-01-10 J. Brobecker <brobecker@gnat.com>
3342
3343 * hpread.c (hpread_process_one_debug_symbol): Fix a small
3344 compilation error in the previous revision.
3345
2b0ee454
DC
33462003-01-09 David Carlton <carlton@math.stanford.edu>
3347
3348 * linespec.c: Update copyright.
3349
b3ba1b44
DJ
33502003-01-09 Daniel Jacobowitz <drow@mvista.com>
3351
3352 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
3353 than inferior_ptid.
3354 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
3355
4ef3f3be
AC
33562003-01-09 Andrew Cagney <ac131313@redhat.com>
3357
479ab5a0
AC
3358 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
3359 Update comments.
3360 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
3361 (frame_saved_regs_zalloc): Update.
3362 (frame_saved_regs_register_unwind): Update.
3363 (create_new_frame): Update.
3364 (get_prev_frame): Update.
3365 (frame_extra_info_zalloc): Update.
3366 (deprecated_get_frame_saved_regs): Update.
3367 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
3368 * cris-tdep.c: Update comment.
3369
bde58177
AC
3370 * somsolib.h: Fix function indentation.
3371 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
3372 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
3373 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
3374 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
3375 * somsolib.c, inftarg.c: Remove assignment in if conditional.
3376
4ef3f3be
AC
3377 * infrun.c (follow_fork): Use ISO C definition.
3378 * expprint.c (print_subexp): Use xfree instead of free.
3379 * charset.c: Include "gdb_string.h" instead of <string.h>.
3380 (register_iconv_charsets): Use ISO C definition.
3381 (host_charset, target_charset): Ditto.
3382 * Makefile.in (charset.o): Update dependencies.
3383 (mi-cmd-env.o): Update dependencies.
3384
1c615f7a
AC
33852003-01-08 Andrew Cagney <cagney@redhat.com>
3386
3387 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
3388 get_frame_base.
3389
c9a1dc08
AC
33902003-01-08 Andrew Cagney <ac131313@redhat.com>
3391
3392 * gdb_mbuild.sh: Add --keep option. When specified, keep the
3393 build directories. Save edited gdb output in Mbuild.log. If a
3394 build fails, remove any final GDB executable.
3395
dbad9d94
AC
33962003-01-08 Andrew Cagney <ac131313@redhat.com>
3397
3398 * gdb_mbuild.sh: Edit the output of `maint print architecture'
3399 replacing hex constants with function names and stripping leading
3400 file name directory prefixes.
3401
8d357cca
AC
34022003-01-08 Andrew Cagney <cagney@redhat.com>
3403
3404 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
3405 get_frame_base.
3406
bca02a8a
DC
34072003-01-08 David Carlton <carlton@math.stanford.edu>
3408
3409 * linespec.c (decode_line_1): Move code into decode_variable.
3410 (decode_variable): New function.
3411
7f8ab3a0
AC
34122003-01-08 Andrew Cagney <ac131313@redhat.com>
3413
3414 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
3415
7b5849cc
AC
34162003-01-08 Andrew Cagney <cagney@redhat.com>
3417
3418 * cris-tdep.c (cris_frame_init_saved_regs): Use
3419 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
3420 saved_regs buffer.
3421 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
3422 (sh64_nofp_frame_init_saved_regs): Ditto.
3423 (sh_fp_frame_init_saved_regs): Ditto.
3424 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
3425 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3426 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3427 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3428
72a5efb3
DJ
34292003-01-08 Daniel Jacobowitz <drow@mvista.com>
3430
3431 * minsyms.c (lookup_minimal_symbol): Update comment.
3432 (lookup_minimal_symbol_text): Update comment. Use the hash table.
3433 (lookup_minimal_symbol_solib_trampoline): Likewise.
3434
11c02a10
AC
34352003-01-08 Andrew Cagney <cagney@redhat.com>
3436
aab3ea25
AC
3437 * d10v-tdep.c (d10v_init_extra_frame_info): Use
3438 frame_relative_level.
3439
da50a4b7
AC
3440 * alpha-tdep.c: Use get_frame_extra_info.
3441 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3442 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
3443 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3444 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
3445
11c02a10
AC
3446 * alpha-tdep.c: Use get_next_frame.
3447 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3448 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3449 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
3450 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
3451 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
3452 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
3453 * xstormy16-tdep.c: Ditto.
3454
1e2330ba
AC
34552003-01-07 Andrew Cagney <cagney@redhat.com>
3456
3457 * alpha-tdep.c: Use get_frame_base.
3458 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3459 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3460 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3461 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
3462 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
3463 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3464 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
3465 * config/sparc/tm-sparc.h: Ditto.
3466
2d75187b
AC
34672003-01-07 Andrew Cagney <cagney@redhat.com>
3468
3469 * frame.c (deprecated_get_frame_context): New function.
3470 (deprecated_set_frame_context): New function.
3471 * frame.h (deprecated_get_frame_context): Declare.
3472 (deprecated_set_frame_context): Declare.
3473 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
3474 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
3475
483d36b2
AC
34762003-01-07 Andrew Cagney <cagney@redhat.com>
3477
3478 * frame.c (deprecated_set_frame_next_hack): New function.
3479 (deprecated_set_frame_prev_hack): New function.
3480 * frame.h (deprecated_set_frame_next_hack): Declare.
3481 (deprecated_set_frame_prev_hack): Declare.
3482 * mcore-tdep.c (analyze_dummy_frame): Use
3483 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
3484 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3485
14e91ac5
DC
34862003-01-07 David Carlton <carlton@math.stanford.edu>
3487
3488 * linespec.c (decode_line_1): Move code into decode_dollar.
3489 (decode_dollar): New function.
3490
b0c6b05c
AC
34912003-01-07 Andrew Cagney <cagney@redhat.com>
3492
3493 * arm-tdep.c (arm_init_extra_frame_info): Use
3494 deprecated_update_frame_base_hack.
3495 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
3496 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
3497 (fix_frame_pointer): Ditto.
3498 (mn10300_analyze_prologue): Ditto.
3499
a00a19e9
AC
35002003-01-07 Andrew Cagney <cagney@redhat.com>
3501
3502 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
3503 extra_info using frame_extra_info_zalloc.
3504 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
3505 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
3506 (sh64_init_extra_frame_info): Ditto.
3507 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
3508 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
3509 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
3510 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
3511 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
3512 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
3513 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
3514 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
3515 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
3516 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
3517 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
3518 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
3519
3520 * mn10300-tdep.c (analyze_dummy_frame): Use
3521 deprecated_set_frame_extra_info_hack.
3522 * mcore-tdep.c (analyze_dummy_frame): Ditto.
3523
1fb4c65b
JB
35242003-01-07 J. Brobecker <brobecker@gnat.com>
3525
3526 * mdebugread.c (parse_symbol): Skip stProc entries which storage
3527 class is not scText. These do not define "real" procedures.
3528 (parse_partial_symbols): Likewise.
3529
9fe7d6bf
MS
35302003-01-06 Michael Snyder <msnyder@redhat.com>
3531
3532 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
3533
f6c609c4
AC
35342003-01-06 Andrew Cagney <ac131313@redhat.com>
3535
3536 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
3537 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
3538 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
3539 deprecated_frame_xmalloc_with_cleanup.
3540 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
3541 deprecated_frame_xmalloc.
3542 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
3543 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
3544
d995ff4b
AC
35452003-01-06 Andrew Cagney <cagney@redhat.com>
3546
84dc46cb
AC
3547 * x86-64-linux-tdep.c: Include "osabi.h".
3548 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
3549
d995ff4b
AC
3550 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
3551
66140c26
AC
35522003-01-06 Andrew Cagney <cagney@redhat.com>
3553
3554 * MAINTAINERS (Target Instruction Set Architectures): Update
3555 arm-elf. Can be built with -Werror, has been multiarched.
3556
3557 * value.h (unpack_long): Make buffer parameter constant.
3558 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
3559 * scm-lang.h (scm_parse): Ditto.
3560 * defs.h (extract_typed_address, extract_address): Ditto.
3561 (extract_long_unsigned_integer): Ditto.
3562 * inferior.h (unsigned_pointer_to_address): Ditto.
3563 (signed_pointer_to_address): Ditto.
3564 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
3565 * gdbarch.h, gdbarch.c: Regenerate.
3566 * findvar.c (extract_long_unsigned_integer): Update.
3567 (extract_address): Update.
3568 (extract_typed_address): Update.
3569 (unsigned_pointer_to_address): Update.
3570 * values.c (unpack_long): Update.
3571 (unpack_double): Update.
3572 (unpack_pointer): Update.
3573 (unpack_field_as_long): Update.
3574 * d10v-tdep.c (d10v_pointer_to_address): Update.
3575 * avr-tdep.c (avr_pointer_to_address): Update.
3576 * scm-lang.c (scm_unpack): Update.
3577 * findvar.c (signed_pointer_to_address): Update.
3578
b089b3da
ML
35792003-01-06 Michal Ludvig <mludvig@suse.cz>
3580
3581 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
3582 since it is in i386-tdep.c.
3583
aff87235
JB
35842003-01-06 J. Brobecker <brobecker@gnat.com>
3585
3586 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
3587 failure introduced in the previous change.
3588
34f5e845
MC
35892003-01-05 Michael Chastain <mec@shout.net>
3590
3591 * README: Remove references to deleted remote-*.c files:
3592 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
3593 remote-nrom.c, remote-os9k.c, remote-udi.c.
3594
28bcfd30
MK
35952003-01-05 Mark Kettenis <kettenis@gnu.org>
3596
3597 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
3598 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
3599 i386_get_longjmp_target.
3600
15a5b3ee
AC
36012003-01-05 Andrew Cagney <ac131313@redhat.com>
3602
3603 * arm-tdep.c (prologue_cache): Change to a pointer.
3604 (_initialize_arm_tdep): Allocate prologue_cache.
3605 (check_prologue_cache): Update.
3606 (save_prologue_cache): Update.
3607 (arm_gdbarch_init): Update.
3608
c263362b
DJ
36092003-01-04 Daniel Jacobowitz <drow@mvista.com>
3610
3611 * stabsread.c (update_method_name_from_physname): Call complaint()
3612 instead of error.
3613
51603483
DJ
36142003-01-04 Daniel Jacobowitz <drow@mvista.com>
3615
3616 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
3617 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
3618 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
3619
3620 * blockframe.c: Include "gdbcmd.h" and "command.h".
3621 (backtrace_below_main): New variable.
3622 (file_frame_chain_valid, func_frame_chain_valid)
3623 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
3624 (generic_func_frame_chain_valid): Remove functions.
3625 (frame_chain_valid, do_flush_frames_sfunc): New functions.
3626 (_initialize_blockframe): New function.
3627 * Makefile.in (blockframe.o): Update dependencies.
3628 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
3629 comment. Call frame_chain_valid ().
3630 * frame.h: Remove old prototypes. Add prototype for
3631 frame_chain_valid and update comments to match.
3632 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
3633 Remove old comment.
3634 * gdbarch.h: Regenerated.
3635 * gdbarch.c: Regenerated.
3636
3637 * alpha-tdep.c (alpha_gdbarch_init): Don't call
3638 set_gdbarch_frame_chain_valid.
3639 * avr-tdep.c (avr_gdbarch_init): Likewise.
3640 * cris-tdep.c (cris_gdbarch_init): Likewise.
3641 * frv-tdep.c (frv_gdbarch_init): Likewise.
3642 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
3643 * i386-tdep.c (i386_svr4_init_abi): Likewise.
3644 (i386_nw_init_abi): Likewise.
3645 (i386_gdbarch_init): Likewise.
3646 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
3647 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
3648 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
3649 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
3650 * mips-tdep.c (mips_gdbarch_init): Likewise.
3651 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
3652 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
3653 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
3654 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3655 * s390-tdep.c (s390_gdbarch_init): Likewise.
3656 * sh-tdep.c (sh_gdbarch_init): Likewise.
3657 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3658 * v850-tdep.c (v850_gdbarch_init): Likewise.
3659 * vax-tdep.c (vax_gdbarch_init): Likewise.
3660 * x86-64-tdep.c (x86_64_init_abi): Likewise.
3661
3662 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
3663 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
3664 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
3665 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
3666 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
3667 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
3668 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
3669 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
3670
b00a8037
DJ
36712002-01-04 Daniel Jacobowitz <drow@mvista.com>
3672
3673 * Makefile.in (acconfig_h): Remove incorrect macro.
3674 (config_h): Define.
3675 (osabi.o): Update dependencies.
3676 * configure.tgt: Set gdb_osabi based on target triplet.
3677 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
3678 * configure: Regenerated.
3679 * config.in: Regenerated.
3680 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
3681 (GDB_OSABI_DEFAULT): Define if not already defined.
3682 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
3683 (set_osabi_string): New variables.
3684 (gdbarch_register_osabi): Add new OS ABI to
3685 gdb_osabi_available_names.
3686 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
3687 (set_osabi, show_osabi): New functions.
3688 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
3689
4be87837
DJ
36902003-01-04 Daniel Jacobowitz <drow@mvista.com>
3691
3692 * arch-utils.c (gdbarch_info_init): Set osabi to
3693 GDB_OSABI_UNINITIALIZED.
3694 * gdbarch.sh: Add osabi to struct gdbarch and to struct
3695 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
3696 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
3697 * gdbarch.c: Regenerated.
3698 * gdbarch.h: Regenerated.
3699 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
3700 there's no BFD.
3701 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
3702 * osabi.h (enum gdb_osabi): Move to defs.h.
3703 (gdbarch_init_osabi): Update prototype.
3704 * defs.h (enum gdb_osabi): Moved here.
3705 * Makefile.in: Update dependencies.
3706
3707 * alpha-tdep.h: Don't include "osabi.h".
3708 (struct gdbarch_tdep): Remove osabi member.
3709 * alpha-tdep.c: Include "osabi.h".
3710 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3711 iterate over arches. Update call to gdbarch_init_osabi.
3712 (alpha_dump_tdep): Don't dump osabi.
3713 * alpha-linux-tdep.c: Include "osabi.h".
3714 * alpha-osf1-tdep.c: Include "osabi.h".
3715 * alphafbsd-tdep.c: Include "osabi.h".
3716 * alphanbsd-tdep.c: Include "osabi.h".
3717
3718 * arm-tdep.h: Don't include "osabi.h".
3719 (struct gdbarch_tdep): Remove osabi member.
3720 * arm-tdep.c: Include "osabi.h".
3721 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3722 iterate over arches. Update call to gdbarch_init_osabi.
3723 (arm_dump_tdep): Don't dump osabi.
3724 * arm-linux-tdep.c: Include "osabi.h".
3725 * armnbsd-tdep.c: Include "osabi.h".
3726
3727 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
3728 Update call to gdbarch_init_osabi.
3729
3730 * i386-tdep.h: Don't include "osabi.h".
3731 (struct gdbarch_tdep): Remove osabi member.
3732 * i386-tdep.c: Include "osabi.h".
3733 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3734 iterate over arches. Update call to gdbarch_init_osabi.
3735 (i386_dump_tdep): Don't dump osabi.
3736 * i386-linux-tdep.c: Include "osabi.h".
3737 * i386-sol2-tdep.c: Include "osabi.h".
3738 * i386bsd-tdep.c: Include "osabi.h".
3739 * i386gnu-tdep.c: Include "osabi.h".
3740 * i386ly-tdep.c: Include "osabi.h".
3741 * i386nbsd-tdep.c: Include "osabi.h".
3742 * i386obsd-tdep.c: Include "osabi.h".
3743
3744 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3745 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3746 check osabi when iterating over arches. Update call to
3747 gdbarch_init_osabi.
3748 (mips_dump_tdep): Don't dump osabi.
3749
3750 * ns32k-tdep.h: Don't include "osabi.h".
3751 (struct gdbarch_tdep): Remove.
3752 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3753 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3754 allocate tdep. Update call to gdbarch_init_osabi.
3755 (ns32k_dump_tdep): Remove.
3756 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3757 * ns32knbsd-tdep.c: Include "osabi.h".
3758
3759 * ppc-tdep.h: Don't include "osabi.h".
3760 (struct gdbarch_tdep): Remove osabi member.
3761 * rs6000-tdep.c: Include "osabi.h".
3762 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3763 osabi when iterating over arches. Update call to
3764 gdbarch_init_osabi.
3765 (rs6000_dump_tdep): Don't dump osabi.
3766 * ppc-linux-tdep.c: Include "osabi.h".
3767 * ppcnbsd-tdep.c: Include "osabi.h".
3768
3769 * sh-tdep.h: Don't include "osabi.h".
3770 (struct gdbarch_tdep): Remove osabi member.
3771 * sh-tdep.c: Include "osabi.h".
3772 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3773 iterate over arches. Update call to gdbarch_init_osabi.
3774 (sh_dump_tdep): Don't dump osabi.
3775 * shnbsd-tdep.c: Include "osabi.h".
3776
3777 * sparc-tdep.c: Include "osabi.h".
3778 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3779 iterate over arches. Update call to gdbarch_init_osabi.
3780 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3781 tdep structure.
3782
3783 * vax-tdep.h: Don't include "osabi.h".
3784 (struct gdbarch_tdep): Remove.
3785 * vax-tdep.c: Include "osabi.h".
3786 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3787 iterate over arches. Don't allocate tdep. Update call
3788 to gdbarch_init_osabi.
3789 (vax_dump_tdep): Remove.
3790 (_initialize_vax_tdep): Update call to gdbarch_register.
3791
a881cf8e
DJ
37922003-01-04 Daniel Jacobowitz <drow@mvista.com>
3793
3794 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3795 entirely.
3796 (breakpoint_re_set_one): Don't fetch the value for a disabled
3797 watchpoint.
3798
1e698235
DJ
37992003-01-04 Daniel Jacobowitz <drow@mvista.com>
3800
3801 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3802 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3803 (COERCE_FLOAT_TO_DOUBLE): Remove.
3804 * gdbarch.c: Regenerate.
3805 * gdbarch.h: Regenerate.
3806 * Makefile.in: Remove value_h from gdbarch_h.
3807 * valops.c (coerce_float_to_double): New variable.
3808 (default_coerce_float_to_double): Remove.
3809 (standard_coerce_float_to_double): Remove.
3810 (value_arg_coerce): Use coerce_float_to_double.
3811 (_initialize_valops): Add "set coerce-float-to-double".
3812 * value.h (default_coerce_float_to_double): Remove prototype.
3813 (standard_coerce_float_to_double): Remove prototype.
3814
3815 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3816 prototyped.
3817 * mdebugread.c (parse_symbol): Likewise.
3818 * stabsread.c (define_symbol): Mark all functions as prototyped.
3819
3820 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3821 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3822 set_gdbarch_coerce_float_to_double.
3823 * arm-tdep.c (arm_gdbarch_init): Likewise.
3824 * frv-tdep.c (frv_gdbarch_init): Likewise.
3825 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3826 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3827 * mips-tdep.c (mips_gdbarch_init): Likewise.
3828 (mips_coerce_float_to_double): Remove.
3829 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3830 (rs6000_coerce_float_to_double): Remove.
3831 * s390-tdep.c (s390_gdbarch_init): Likewise.
3832 * sh-tdep.c (sh_gdbarch_init): Likewise.
3833 (sh_coerce_float_to_double): Remove.
3834 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3835 (sparc_coerce_float_to_double): Remove.
3836 * v850-tdep.c (v850_gdbarch_init): Likewise.
3837 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3838 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3839 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3840 (hppa_coerce_float_to_double): Remove prototype.
3841 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3842
f436a26a
DJ
38432003-01-04 Daniel Jacobowitz <drow@mvista.com>
3844
3845 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3846
248f8055
DJ
38472003-01-04 Daniel Jacobowitz <drow@mvista.com>
3848
3849 Suggested by Stewart Brown <sb24@avaya.com>:
3850 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3851 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3852 (c_type_print_varspec_suffix): Likewise.
3853
72cfdc76
MK
38542003-01-04 Mark Kettenis <kettenis@gnu.org>
3855
bfd260bb
MK
3856 * configure.in: Don't set and AC_SUBST SUBDIRS.
3857 * configure: Regenerated.
3858
72cfdc76
MK
3859 * configure.in: Remove code dealing with shared libraries.
3860 * Makefile.in: Remove HLDFLAGS and HLDENV.
3861 * configure: Regenerated.
3862
c8b8a898
AC
38632003-01-04 Andrew Cagney <ac131313@redhat.com>
3864
3865 * frame.c (deprecated_frame_xmalloc): New function.
3866 (deprecated_set_frame_saved_regs_hack): New function.
3867 (deprecated_set_frame_extra_info_hack): New function.
3868 * frame.h (deprecated_frame_xmalloc): Declare.
3869 (deprecated_set_frame_saved_regs_hack): Declare.
3870 (deprecated_set_frame_extra_info_hack): Declare.
3871
14abd0fb
MK
38722003-01-04 Mark Kettenis <kettenis@gnu.org>
3873
8ee53726
MK
3874 * configure.in: Move code that provides the --enable-gdbtk option
3875 right after the code that handles the --enable-tui option, and
3876 polish it somewhat.
3877 * configure: Regenerated.
3878
14abd0fb
MK
3879 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3880 AC_CHECK_FUNCS and remove the old check for pread64.
3881 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3882 * acconfig.h (_GNU_SOURCE): Add.
3883 (HAVE_PREAD64): Remove.
3884 * configure, aclocal.m4, config.in: Regenerated.
3885
b2fb4676
AC
38862003-01-03 Andrew Cagney <ac131313@redhat.com>
3887
3888 * alpha-tdep.c: Use get_frame_saved_regs.
3889 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3890 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3891 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3892 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3893 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3894
8dcde887
MK
38952003-01-03 Mark Kettenis <kettenis@gnu.org>
3896
3897 * configure.in: Remove all use of the SUBDIRS variable; add
3898 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3899 code providing the --enable-multi-ice option, and move it right in
3900 front of the code that checks whether gdbserver is supported.
3901 Polish that too.
3902 * configure: Regenerated.
3903 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3904 @SUBDIRS@.
3905
8ccd593b
AC
39062003-01-03 Andrew Cagney <cagney@redhat.com>
3907
3908 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3909 * avr-tdep.c, cris-tdep.c: Ditto.
3910 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3911 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3912
91151a06
MK
39132003-01-03 Mark Kettenis <kettenis@gnu.org>
3914
3915 * configure.in: Remove --enable-netrom option.
3916 * configure: Regenerated.
3917
8fe84d01
MK
39182003-01-03 Mark Kettenis <kettenis@gnu.org>
3919
3920 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3921 declaration for `struct re_pattern_buffer' instead.
3922 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3923
f0394be6
JB
39242003-01-03 J. Brobecker <brobecker@gnat.com>
3925
3926 * mdebugread.c (parse_symbol): Count until the stEnd matching
3927 the structure name.
3928
27e9bf90
MK
39292003-01-02 Mark Kettenis <kettenis@gnu.org>
3930
93d331ba
MK
3931 * configure.in: Remove --with-cpu option.
3932 subscripts. Remove evil changequotes here.
3933 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3934 * config.in, configure: Regenerated.
3935
27e9bf90
MK
3936 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3937 * configure.in: Cleanup section that sources GDB and BFD configure
3938 subscripts. Remove evil changequotes here.
3939 * config.in, configure: Regenerated.
3940
50abf9e5
AC
39412003-01-02 Andrew Cagney <ac131313@redhat.com>
3942
3943 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3944 frame accessor methods.
3945 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3946 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3947 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3948 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3949 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3950 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3951 * z8k-tdep.c: Ditto.
3952
287c1a40
MK
39532003-01-02 Mark Kettenis <kettenis@gnu.org>
3954
f5dbc56d
MK
3955 * configure.in: Remove UI_OUT configuration code.
3956 * ada-lang.c: Update assuming UI_OUT is always true.
3957 * Makefile.in (UIOUT_CFLAGS): Remove.
3958 * configure: Regenerated.
3959 * TODO: Remove blurb about elimination of -DUI_OUT.
3960
627af7ea
MK
3961 * configure.in: Move code that provides the --enable-gdbcli,
3962 --enable-gdbmi options right before the code that handles the
3963 --enable-tui option. Polish a bit.
3964 * configure: Regenerated.
3965
06825bd1
MK
3966 * configure.in: Rewrite check for GNU regex and the
3967 --without-included regex option, and move it into the "Checks for
3968 library functions" section. This makes us use the system regex
3969 again by default on systems with version 2 of the GNU C library.
3970 This was apparently broken.
3971 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3972 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3973 * config.in, configure: Regenerated.
3974
287c1a40
MK
3975 * configure.in: Move code that provides the --enable-tui option
3976 before the "Checks for libraries" section. Polish the code
3977 somewhat and set need_curses to yes if we build the TUI. Rewrite
3978 code that looks for a library providing termcap functionality to
3979 match more closely what's done in the Readline library, and move
3980 it into to the "Checks for libraries" section.
3981 * configure: Regenerated.
3982 * Makefile.in (TERMCAP): Remove variable.
3983 * config/i386/go32.mh (TERMCAP): Remove variable.
3984
684e56bf
AC
39852003-01-02 Andrew Cagney <ac131313@redhat.com>
3986
3987 * MAINTAINERS: Mention gdb_mbuild.sh.
3988 * gdb_mbuild.sh: Rewrite.
3989
e1ea1d75
MK
39902003-01-02 Mark Kettenis <kettenis@gnu.org>
3991
3992 * configure.in: Fix typo in last change.
3993 * config.in, configure: Regenerated.
3994
1b831c93
AC
39952003-01-02 Andrew Cagney <ac131313@redhat.com>
3996
3997 * valarith.c (value_binop): Delete obsolete code and comments.
3998 * configure.host: Ditto.
3999 * buildsym.h (make_blockvector): Ditto.
4000 * buildsym.c (make_blockvector): Ditto.
4001 * defs.h (enum language): Ditto.
4002 (chill_demangle): Ditto.
4003 * elfread.c (elf_symtab_read): Ditto.
4004 * dwarfread.c (CHILL_PRODUCER): Ditto.
4005 (set_cu_language): Ditto.
4006 (handle_producer): Ditto.
4007 * expprint.c (print_subexp): Ditto.
4008 * gdbtypes.c (chill_varying_type): Ditto.
4009 * gdbtypes.h (builtin_type_chill_bool): Ditto.
4010 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
4011 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
4012 (chill_varying_type): Ditto.
4013 * language.h (_LANG_chill): Ditto.
4014 * language.c (binop_result_type, integral_type): Ditto.
4015 (character_type, string_type, structured_type): Ditto.
4016 (lang_bool_type, binop_type_check): Ditto.
4017 * stabsread.h (os9k_stabs): Ditto.
4018 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
4019 (define_symbol, read_type, read_struct_fields): Ditto.
4020 (read_array_type, read_enum_type, read_huge_number): Ditto.
4021 (read_range_type, start_stabs): Ditto.
4022 * symfile.c (init_filename_language_table): Ditto.
4023 (add_psymbol_with_dem_name_to_list): Ditto.
4024 * symtab.c (symbol_init_language_specific): Ditto.
4025 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
4026 * symtab.h (struct general_symbol_info): Ditto.
4027 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
4028 * typeprint.c (typedef_print): Ditto.
4029 * utils.c (fprintf_symbol_filtered): Ditto.
4030 * valops.c (value_cast, search_struct_field, value_slice): Delete
4031 obsolete code.
4032 (varying_to_slice): Delete function.
4033 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
4034 (varying_to_slice): Delete declaration.
4035 * MAINTAINERS: Update.
4036
8bb2c122
MK
40372003-01-02 Mark Kettenis <kettenis@gnu.org>
4038
97bf5e38
MK
4039 * configure.in: Reorganize "Checks for library functions section"
4040 a bit. Remove check for `btowc' and `isascii' functions.
4041 * configure: Regenerated.
4042
5ee754fc
MK
4043 * acconfig.h (_MSE_INT_H): Remove.
4044 * configure.in: Create "Checks for header files" section, and move
4045 appropriate tests there. Don't check for objlist.h, wchar.h,
4046 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
4047 misdetection fix. Also add "Checks for types", "Checks for
4048 compiler characteristics" and "Checks for library functions"
4049 sections.
4050 * config.in, configure: Regenerated.
4051
8bb2c122
MK
4052 * configure.in: Create "Checks for programs" section, and move
4053 appropriate tests there.
4054
9a156167
MK
40552003-01-01 Mark Kettenis <kettenis@gnu.org>
4056
4057 * configure.in: Create "Checks for libraries" section, and move
4058 appropriate tests there. Cleanup check for wctype in libw. Use
4059 AC_SEARCH_LIBS to see whether we need libsocket.
4060 * configure: Regenerated.
4061
a80e2bcb 4062For older changes see ChangeLog-2002
c906108c
SS
4063\f
4064Local Variables:
4065mode: change-log
4066left-margin: 8
4067fill-column: 74
4068version-control: never
4069End: