]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* observer.c (observer_test_first_observer): New static variable.
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4fbe891e
JB
12003-03-18 J. Brobecker <brobecker@gnat.com>
2
3 * observer.c (observer_test_first_observer): New static variable.
4 (observer_test_second_observer): Likewise.
5 (observer_test_third_observer): Likewise.
6 (observer_test_first_notification_function): New static function.
7 (observer_test_second_notification_function): Likewise.
8 (observer_test_third_notification_function): Likewise.
9
a7ff40e7
JB
102003-03-17 J. Brobecker <brobecker@gnat.com>
11
12 * hppa-tdep.c (gdb_assert.h): Add missing #include.
13 * somsolib.c (gdb_assert.h): Likewise.
14 * Makefile.in (hppa-tdep.o): Add dependency on gdb_assert.h.
15 (somsolib.o): Likewise.
16
26ca4152
AC
172003-03-17 Andrew Cagney <cagney@redhat.com>
18
19 * disasm.c (gdb_disassembly): Set di.mach using the architecture's
20 BFD. Simplify setting of di.endian.
21
0a613259
AC
222003-03-17 Andrew Cagney <cagney@redhat.com>
23
24 * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
25 * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
26
27 From Elena Zannoni <ezannoni@redhat.com>
28 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500
29 vector and floating-point parameters.
30 (ppc_sysv_abi_use_struct_convention): Handle e500 struct return
31 convention.
32 (ppc_sysv_abi_broken_use_struct_convention): Ditto.
33
1132738f
FN
342003-03-17 Fernando Nasser <fnasser@redhat.com>
35
36 * MAINTAINERS: Remove my name from several maintainership roles.
37
6dc42492
AC
382003-03-17 Andrew Cagney <cagney@redhat.com>
39
40 Fix frame off-by-one bug.
41 * frame-unwind.h (frame_this_id_ftype): Replace
42 frame_unwind_id_ftype.
43 (frame_prev_register_ftype): Replace frame_unwind_reg_ftype.
44 (struct frame_unwind): Replace "id" with "this_id". Replace "reg"
45 with "prev_register".
46 * frame-unwind.c (frame_unwind_find_by_pc): Return
47 legacy_saved_regs_unwind instead of trad_frame_unwind. Update
48 comment.
49 * dummy-frame.c (cached_find_dummy_frame): Delete function.
50 (dummy_frame_this_id): Replace dummy_frame_id_unwind.
51 (dummy_frame_prev_register): Replace dummy_frame_register_unwind.
52 (dummy_frame_unwind): Update.
53 * sentinel-frame.c (sentinel_frame_prev_register): Replace
54 sentinel_frame_register_unwind.
55 (sentinel_frame_this_id): Replace sentinel_frame_id_unwind.
56 (sentinel_frame_unwinder): Update.
57 * frame.h (legacy_saved_regs_unwind): Replace trad_frame_unwind.
58 (struct frame_info): Rename "unwind_cache" to "prologue_cache".
59 * frame.c (create_sentinel_frame): Update. Initialize
60 "prologue_cache" instead of "unwind_cache".
61 (frame_register_unwind): Call this frame's prev_register with the
62 next frame and this frame's prologue cache.
63 (get_prev_frame): Simplify. Always call prev frame's this_id with
64 this frame and prev frame's prologue cache. Document that this
65 call is shifted one to the left when compared to the
66 frame_register_unwind call.
67 (legacy_saved_regs_prev_register): Replace
68 frame_saved_regs_register_unwind.
69 (legacy_saved_regs_this_id): Replace frame_saved_regs_id_unwind.
70 (legacy_saved_regs_unwinder): Replace trad_frame_unwinder.
71 (legacy_saved_regs_unwind): Replace trad_frame_unwind.
72 * d10v-tdep.c (d10v_frame_this_id): Replace d10v_frame_id_unwind.
73 (d10v_frame_unwind): Update.
74 (d10v_frame_prev_register): Replace d10v_frame_register_unwind.
75 (d10v_frame_unwind_cache): Replace this "fi" with "next_frame".
76 (saved_regs_unwinder): Replace this "frame" with "next_frame", and
77 "saved_regs" with "this_saved_regs".
78
efd710d6
AC
792003-03-16 Andrew Cagney <cagney@redhat.com>
80
81 * frame.c (frame_pop): Don't call target_store_registers. Fix
82 problem reported by Mark Kettenis.
83
4e259f09
MK
842003-03-16 Mark Kettenis <kettenis@gnu.org>
85
86 * i386-tdep.c (i386_register_type): Renamed from
87 i386_register_virtual_type. Adjust function signature.
88 (i386_gdbarch_init): Set register_type instead of
89 deprecated_max_register_raw_size,
90 deprecated_max_register_virtual_size and register_virtual_type.
91
055bb976
AC
922003-03-14 Andrew Cagney <cagney@redhat.com>
93
94 * frame.c (get_prev_frame): When a legacy frame, always call
95 legacy_get_prev_frame. Simplify unwind code using assumption that
96 the unwinder is new.
97 (legacy_get_prev_frame): Handle legacy sentinel frame unwind here.
98 (legacy_frame_p): When no gdbarch_unwind_dummy_id, or
99 SAVED_DUMMY_FRAME_TOS, assume a legacy frame.
100
ac2adee5
AC
1012003-03-14 Andrew Cagney <cagney@redhat.com>
102
103 * frame.c (get_saved_register): Delete function.
104 * frame.h (get_saved_register): Delete declaration.
105 * xstormy16-tdep.c: Update comment.
106 * regcache.h: Update comments.
107 * sparc-tdep.c (sparc_init_extra_frame_info): Instead of
108 get_saved_register and extract_address, use
109 frame_read_unsigned_register.
110 (sparc_frame_saved_pc): Ditto.
111 (sparc_get_saved_register): Instead of get_saved_register, use
112 frame_register.
113 (sparc_pop_frame): Ditto.
114 * findvar.c: Update comments.
115 (value_of_register): Call frame_register instead of
116 get_saved_register.
117 (value_from_register): Ditto.
118 * config/sparc/tm-sparc.h: Update comment.
119 * breakpoint.c: Update comment.
120
129c1cd6
AC
1212003-03-14 Andrew Cagney <cagney@redhat.com>
122
123 * gdbarch.sh (DEPRECATED_GET_SAVED_REGISTER): Replace
124 GET_SAVED_REGISTER.
125 * gdbarch.h, gdbarch.c: Re-generate.
126 * frame.h: Update comments.
127 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
128 * x86-64-tdep.c (x86_64_init_abi): Update.
129 * sparc-tdep.c (sparc_gdbarch_init): Update.
130 * sh-tdep.c (sh_gdbarch_init): Update.
131 * mips-tdep.c (mips_gdbarch_init): Update.
132 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
133 * cris-tdep.c (cris_gdbarch_init): Update.
134 * ia64-tdep.c (ia64_gdbarch_init): Update.
135 * frame.c (frame_register): Update.
136 (get_saved_register): Update.
137 * config/sparc/tm-sparc.h (DEPRECATED_GET_SAVED_REGISTER): Update.
138
749b82f6
AC
1392003-03-13 Andrew Cagney <cagney@redhat.com>
140
141 * gdbarch.sh (DEPRECATED_POP_FRAME): Replace POP_FRAME.
142 * gdbarch.h, gdbarch.c: Regenerate.
143 * valops.c (hand_function_call): Update comment.
144 * stack.c (return_command): Update comment.
145 * config/sparc/tm-sparc.h (DEPRECATED_POP_FRAME): Update.
146 * config/pa/tm-hppa.h (DEPRECATED_POP_FRAME): Update.
147 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
148 * x86-64-tdep.c (x86_64_init_abi): Update.
149 * vax-tdep.c (vax_gdbarch_init): Update.
150 * v850-tdep.c (v850_gdbarch_init): Update.
151 * sparc-tdep.c (sparc_gdbarch_init): Update.
152 * sh-tdep.c (sh_gdbarch_init): Update.
153 * s390-tdep.c (s390_gdbarch_init): Update.
154 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
155 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
156 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
157 * mips-tdep.c (mips_gdbarch_init): Update.
158 * mcore-tdep.c (mcore_gdbarch_init): Update.
159 * m68k-tdep.c (m68k_gdbarch_init): Update.
160 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
161 * ia64-tdep.c (ia64_gdbarch_init): Update.
162 * i386-tdep.c (i386_gdbarch_init): Update.
163 * hppa-tdep.c (hppa_gdbarch_init): Update.
164 * h8300-tdep.c (h8300_gdbarch_init): Update.
165 * frv-tdep.c (frv_gdbarch_init): Update.
166 * cris-tdep.c (cris_gdbarch_init): Update.
167 * avr-tdep.c (avr_gdbarch_init): Update.
168 * arm-tdep.c (arm_gdbarch_init): Update.
169 * alpha-tdep.c (alpha_gdbarch_init): Update.
170
1594fa56
AC
1712003-03-13 Andrew Cagney <cagney@redhat.com>
172
173 * frame.c (legacy_frame_p): New function.
174 (get_prev_frame): Use legacy_frame_p.
175 * frame.h (legacy_frame_p): Declare.
176
7717fda3
V
1772003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
178
179 * MAINTAINERS (write after approval): Alphabetically
180 listing corrected.
181
0c67cbe9
V
1822003-03-13 D. Venkatasubramanian <dvenkat@noida.hcltech.com>
183
184 * MAINTAINERS (write after approval): Add myself.
185
03febf99
AC
1862003-03-12 Andrew Cagney <cagney@redhat.com>
187
188 * frame.c (get_prev_frame): Rename the frame parameter to
189 "this_frame".
190 (get_next_frame, legacy_get_prev_frame): Ditto.
191
0a1e1ca1
AC
1922003-03-12 Andrew Cagney <cagney@redhat.com>
193
194 * frame.c (get_current_frame): Check target_has_registers before
195 checking target_has_stack.
196 * eval.c (evaluate_subexp_standard): Use get_selected_frame,
197 instead of deprecated_selected_frame.
198 * findvar.c (value_of_register): Pass "frame", not
199 deprecated_selected_frame, to value_of_builtin_reg.
200
a66a9c23
AC
2012003-03-12 Andrew Cagney <cagney@redhat.com>
202
203 * regcache.c (regcache_cooked_write_signed): New function.
204 (regcache_cooked_write_unsigned): New function.
205 (regcache_cooked_read_unsigned): Fix regnum in range assertion.
206 (regcache_cooked_read_signed): Fix regnum in range assertion.
207 * regcache.h (regcache_cooked_write_signed): Declare.
208 (regcache_cooked_write_unsigned): Declare.
209
8bedc050
AC
2102003-03-12 Andrew Cagney <cagney@redhat.com>
211
212 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
213 * gdbarch.h, gdbarch.c: Re-generate.
214 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
215 * x86-64-tdep.h: Update.
216 * x86-64-tdep.c (x86_64_init_abi): Update.
217 * v850-tdep.c (v850_gdbarch_init): Update.
218 * sparc-tdep.c (sparc_gdbarch_init): Update.
219 * sh-tdep.c (sh_gdbarch_init): Update.
220 * s390-tdep.c (s390_gdbarch_init): Update.
221 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
222 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
223 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
224 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
225 * mips-tdep.c (mips_gdbarch_init): Update.
226 * mcore-tdep.c (mcore_gdbarch_init): Update.
227 * m68k-tdep.c (m68k_gdbarch_init): Update.
228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
229 * ia64-tdep.c (ia64_gdbarch_init): Update.
230 * i386-tdep.c (i386_gdbarch_init): Update.
231 * i386-interix-tdep.c (i386_interix_init_abi): Update.
232 * hppa-tdep.c (hppa_gdbarch_init): Update.
233 * h8300-tdep.c (h8300_gdbarch_init): Update.
234 * frv-tdep.c (frv_gdbarch_init): Update.
235 * cris-tdep.c (cris_gdbarch_init): Update.
236 * avr-tdep.c (avr_gdbarch_init): Update.
237 * arm-tdep.c (arm_gdbarch_init): Update.
238 * alpha-tdep.c (alpha_gdbarch_init): Update.
239 * sh-tdep.c (sh_init_extra_frame_info): Update.
240 (sh64_init_extra_frame_info): Update.
241 * ns32knbsd-nat.c (frame_num_args): Update.
242 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
243 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
244 (xstormy16_frame_chain_valid): Update.
245 * vax-tdep.c (vax_saved_pc_after_call): Update.
246 * v850-tdep.c (v850_frame_chain): Update.
247 (v850_pop_frame): Update.
248 (v850_init_extra_frame_info): Update.
249 * sparc-tdep.c (setup_arbitrary_frame): Update.
250 * ns32k-tdep.c (umax_frame_num_args): Update.
251 * s390-tdep.c (s390_pop_frame_regular): Update.
252 * mn10300-tdep.c (mn10300_frame_chain): Update.
253 (mn10300_pop_frame_regular): Update.
254 (mn10300_init_extra_frame_info): Update.
255 * mips-tdep.c (mips_init_frame_pc_first): Update.
256 (mips_frame_chain): Update.
257 (mips_pop_frame): Update.
258 * mcore-tdep.c (mcore_frame_chain): Update.
259 (mcore_pop_frame): Update.
260 (mcore_init_extra_frame_info): Update.
261 * arch-utils.c (init_frame_pc_default): Update.
262 * m68k-tdep.c (isi_frame_num_args): Update.
263 (delta68_frame_num_args): Update.
264 (news_frame_num_args): Update.
265 * ia64-tdep.c (ia64_pop_frame_regular): Update.
266 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
267 (alpha_frame_chain): Update.
268 (alpha_pop_frame): Update.
269 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
270 (hppa_init_extra_frame_info): Update.
271 (hppa_frame_chain): Update.
272 (hppa_frame_chain_valid): Update.
273 * cris-tdep.c (cris_init_extra_frame_info): Update.
274 * avr-tdep.c (avr_init_extra_frame_info): Update.
275 * arm-tdep.c (arm_frame_chain_valid): Update.
276 (arm_init_extra_frame_info): Update.
277 (arm_pop_frame): Update.
278 * frame.c (frame_pc_unwind): Update.
279 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
280 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
281 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
282 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
283 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
284 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
285
7a25a7c1
AC
2862003-03-12 Andrew Cagney <cagney@redhat.com>
287
288 Eliminate the need for POP_FRAME.
289 * frame.c (do_frame_unwind_register): New function.
290 (frame_pop): When no POP_FRAME, pop the frame using register
291 unwind and a scratch regcache.
292 (frame_saved_regs_pop): Delete function.
293 (trad_frame_unwinder): Update.
294 * d10v-tdep.c (d10v_frame_pop): Delete function.
295 (d10v_frame_unwind): Update.
296 * sentinel-frame.c (sentinel_frame_pop): Delete function.
297 (sentinel_frame_unwinder): Update.
298 * dummy-frame.c (dummy_frame_pop): Delete function.
299 (dummy_frame_unwind): Update.
300 * frame-unwind.h (frame_unwind_pop_ftype): Delete definition.
301 (struct frame_unwind): Update.
302
2f38ef89
KB
3032003-03-11 Kevin Buettner <kevinb@redhat.com>
304
305 * mips-tdep.c (mips_ecoff_reg_to_regnum): Rename to
306 mips_dwarf_dwarf2_ecoff_reg_to_regnum().
307 (mips_dwarf_dwarf2_ecoff_reg_to_regnum, mips_stab_reg_to_regnum):
308 Do range checks on register number obtained from debugging info.
309 (mips_gdbarch_init): Call set_gdbarch_dwarf_reg_to_regnum() and
310 set_gdbarch_dwarf2_reg_to_regnum(). Adjust call of
311 set_gdbarch_ecoff_reg_to_regnum() to account for new name of
312 mapping function.
313 (do_fp_register_row): Fix typo which caused double type to be
314 used when attempting to unpack a float.
315
552f4abf
JB
3162003-03-11 J. Brobecker <brobecker@gnat.com>
317
318 * breakpoint.c (bpstat_stop_status): Fix a small memory leak.
319
e0d2ae16
AC
3202003-03-11 Andrew Cagney <cagney@redhat.com>
321
322 * frame.c (deprecated_update_frame_pc_hack): Don't assume a next
323 frame. Problem found by Corinna Vinschen.
324
ddbfdd06
PM
3252003-03-11 Pierre Muller <muller@ics.u-strasbg.fr>
326
327 * doublest.c (floatformat_from_length): Accept also
328 the real size of 'long double' type.
329
088b2ddc 3302003-03-10 Daniel Jacobowitz <drow@mvista.com>
31cc81e9 331
088b2ddc 332 From Klee Dienes <kdienes@apple.com>:
31cc81e9
DJ
333 * breakpoint.c (bpstat_copy): Copy the command lines as well
334 as the old value, to match what is freed in bpstat_clear.
335
f56f77c1
DC
3362003-03-10 David Carlton <carlton@math.stanford.edu>
337
338 * minsyms.c (add_minsym_to_hash_table): Replace
339 DEPRECATED_SYMBOL_NAME by SYMBOL_LINKAGE_NAME.
340 (compare_minimal_symbols, compact_minimal_symbols)
341 (install_minimal_symbols, find_solib_trampoline_target): Ditto.
342 (lookup_minimal_symbol_text): Use strcmp on linkage names instead
343 of DEPRECATED_SYMBOL_MATCHES_NAME.
344 (lookup_minimal_symbol_solib_trampoline): Ditto.
345
5602984a
AC
3462003-03-10 Andrew Cagney <cagney@redhat.com>
347
348 * regcache.h (regcache_cooked_read_ftype): Define.
349 (regcache_save, regcache_restore): Add a cooked_read parameter.
350 * regcache.c (regcache_save, regcache_restore): Update.
351 (do_cooked_read): New function.
352 (regcache_cpy): Pass do_cooked_read to regcache_save and
353 regcache_restore.
354
8bedc050
AC
3552003-03-10 Andrew Cagney <cagney@redhat.com>
356
357 * gdbarch.sh (DEPRECATED_FRAME_SAVED_PC): Replace FRAME_SAVED_PC.
358 * gdbarch.h, gdbarch.c: Re-generate.
359 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
360 * x86-64-tdep.h: Update.
361 * x86-64-tdep.c (x86_64_init_abi): Update.
362 * v850-tdep.c (v850_gdbarch_init): Update.
363 * sparc-tdep.c (sparc_gdbarch_init): Update.
364 * sh-tdep.c (sh_gdbarch_init): Update.
365 * s390-tdep.c (s390_gdbarch_init): Update.
366 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
367 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
368 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
369 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
370 * mips-tdep.c (mips_gdbarch_init): Update.
371 * mcore-tdep.c (mcore_gdbarch_init): Update.
372 * m68k-tdep.c (m68k_gdbarch_init): Update.
373 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
374 * ia64-tdep.c (ia64_gdbarch_init): Update.
375 * i386-tdep.c (i386_gdbarch_init): Update.
376 * i386-interix-tdep.c (i386_interix_init_abi): Update.
377 * hppa-tdep.c (hppa_gdbarch_init): Update.
378 * h8300-tdep.c (h8300_gdbarch_init): Update.
379 * frv-tdep.c (frv_gdbarch_init): Update.
380 * cris-tdep.c (cris_gdbarch_init): Update.
381 * avr-tdep.c (avr_gdbarch_init): Update.
382 * arm-tdep.c (arm_gdbarch_init): Update.
383 * alpha-tdep.c (alpha_gdbarch_init): Update.
384 * sh-tdep.c (sh_init_extra_frame_info): Update.
385 (sh64_init_extra_frame_info): Update.
386 * ns32knbsd-nat.c (frame_num_args): Update.
387 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Update.
388 * xstormy16-tdep.c (xstormy16_pop_frame): Update.
389 (xstormy16_frame_chain_valid): Update.
390 * vax-tdep.c (vax_saved_pc_after_call): Update.
391 * v850-tdep.c (v850_frame_chain): Update.
392 (v850_pop_frame): Update.
393 (v850_init_extra_frame_info): Update.
394 * sparc-tdep.c (setup_arbitrary_frame): Update.
395 * ns32k-tdep.c (umax_frame_num_args): Update.
396 * s390-tdep.c (s390_pop_frame_regular): Update.
397 * mn10300-tdep.c (mn10300_frame_chain): Update.
398 (mn10300_pop_frame_regular): Update.
399 (mn10300_init_extra_frame_info): Update.
400 * mips-tdep.c (mips_init_frame_pc_first): Update.
401 (mips_frame_chain): Update.
402 (mips_pop_frame): Update.
403 * mcore-tdep.c (mcore_frame_chain): Update.
404 (mcore_pop_frame): Update.
405 (mcore_init_extra_frame_info): Update.
406 * arch-utils.c (init_frame_pc_default): Update.
407 * m68k-tdep.c (isi_frame_num_args): Update.
408 (delta68_frame_num_args): Update.
409 (news_frame_num_args): Update.
410 * ia64-tdep.c (ia64_pop_frame_regular): Update.
411 * alpha-tdep.c (alpha_init_frame_pc_first): Update.
412 (alpha_frame_chain): Update.
413 (alpha_pop_frame): Update.
414 * hppa-tdep.c (hppa_saved_pc_after_call): Update.
415 (hppa_init_extra_frame_info): Update.
416 (hppa_frame_chain): Update.
417 (hppa_frame_chain_valid): Update.
418 * cris-tdep.c (cris_init_extra_frame_info): Update.
419 * avr-tdep.c (avr_init_extra_frame_info): Update.
420 * arm-tdep.c (arm_frame_chain_valid): Update.
421 (arm_init_extra_frame_info): Update.
422 (arm_pop_frame): Update.
423 * frame.c (frame_pc_unwind): Update.
424 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_SAVED_PC): Update.
425 (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
426 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
427 * config/pa/tm-hppa.h (DEPRECATED_FRAME_SAVED_PC): Update.
428 * config/m68k/tm-delta68.h (DEPRECATED_FRAME_SAVED_PC): Update.
429 * config/m68k/tm-linux.h (DEPRECATED_FRAME_SAVED_PC): Update.
430
12cc2063
AC
4312003-03-10 Andrew Cagney <cagney@redhat.com>
432
433 * gdbarch.sh (gdbarch_unwind_pc): New method.
434 * gdbarch.h, gdbarch.c: Regenerate.
435 * frame.c (frame_pc_unwind): Rewrite. Prefer gdbarch_unwind_pc,
436 but use read_pc and FRAME_SAVED_PC as fall backs.
437 (frame_saved_regs_pc_unwind): Delete function.
438 (trad_frame_unwinder): Update.
439 * frame-unwind.h (frame_unwind_pc_ftype): Delete declaration.
440 (struct frame_unwind): Update.
441 * dummy-frame.c (dummy_frame_pc_unwind): Delete function.
442 (dummy_frame_unwind): Update.
443 * sentinel-frame.c (sentinel_frame_pc_unwind): Delete function.
444 (sentinel_frame_unwinder): Update.
445 * d10v-tdep.c (d10v_frame_pc_unwind): Delete function.
446 (d10v_frame_unwind): Update.
447 (d10v_unwind_pc): New function.
448 (d10v_gdbarch_init): Set unwind_pc.
449
ef840a37
AC
4502003-03-10 Andrew Cagney <cagney@redhat.com>
451
a2ce2e56
AC
452 * gdbarch.h: Re-generate.
453
ef840a37
AC
454 * d10v-tdep.c (d10v_frame_register_unwind): Correctly unwind the
455 PC.
456 (d10v_frame_pop): Unwind the PC, and not the LR, when restoring
457 the PC register.
458
08f3424b
MK
4592003-03-08 Mark Kettenis <kettenis@gnu.org>
460
461 * gdbarch.sh (save_dummy_frame_tos): Add comment.
462
1248ede2
AC
4632003-03-08 Andrew Cagney <cagney@redhat.com>
464
465 * cli-out.c: Update copyright.
466 (cli_out_data): Define typedef. Use instead of ui_out_data.
467
f49bacc8
AC
4682003-03-08 Andrew Cagney <cagney@redhat.com>
469
470 * valarith.c (value_subscripted_rvalue): Copy the array's REGNO to
471 the result.
472
9b05f993
AC
4732003-03-07 Andrew Cagney <cagney@redhat.com>
474
475 * gdbarch.sh: Don't generate two macro definitions when an
476 undefined macro taking no arguments.
477 * gdbarch.h: Regenerate.
478
166f4c7b
ML
4792002-03-07 Michal Ludvig <mludvig@suse.cz>
480
481 * x86-64-tdep.c (x86_64_save_dummy_frame_tos)
482 (x86_64_unwind_dummy_id): New functions.
483 (x86_64_init_abi): Register these two new functions.
484
6d686a84
ML
4852003-03-07 Michal Ludvig <mludvig@suse.cz>
486
487 * x86-64-tdep.c (x86_64_function_has_prologue): New function.
488 (x86_64_skip_prologue): Move prologue detection to
489 separate function.
490 * x86-64-tdep.h (x86_64_function_has_prologue): New prototype.
491
6314f104
AC
4922003-03-05 Andrew Cagney <cagney@redhat.com>
493
494 * d10v-tdep.c (d10v_unwind_dummy_id): New function.
495 (d10v_gdbarch_init): Set unwind_dummy_id and save_dummy_frame_tos.
496 * frame.c (get_prev_frame): Restructure the frame ID unwind code
497 to use unwind_dummy_id when a dummy frame.
498 * gdbarch.sh (unwind_dummy_id): New multi-arch method with
499 predicate.
500 * gdbarch.h, gdbarch.c: Regneerate.
501
ceea5145
AC
5022003-03-05 Andrew Cagney <cagney@redhat.com>
503
504 * d10v-tdep.c (struct d10v_unwind_cache): Add field "base".
505 (d10v_frame_unwind_cache): Rewrite code computing the base and SP.
506 Do not use d10v_read_sp or d10v_read_fp when obtaining register
507 values.
508
0d843116
AC
5092003-03-05 Andrew Cagney <cagney@redhat.com>
510
511 * d10v-tdep.c (struct frame_extra_info): Delete unused structure.
512 (struct d10v_unwind_cache): Delete field "frameless". Replace
513 "next_addr" with "sp_offset". Add "r11_offset".
514 (d10v_frame_unwind_cache): Update.
515 (prologue_find_regs): Update. When "mv r11, sp", save the
516 "sp_offset" in "r11_offset". Recognize "st rn, @r11", note that
517 RN was saved in r11_offset.
518
b2579786
AC
5192003-03-05 Andrew Cagney <cagney@redhat.com>
520
521 * frame.c (deprecated_update_frame_pc_hack): Also update the the
522 cached PC value in the next frame.
523
218e5956
AC
5242003-03-05 Andrew Cagney <cagney@redhat.com>
525
526 * frame.h (struct frame_info): Replace "id_unwind_cache_p" and
527 "id_unwind_cache" with "id".
528 (frame_id_unwind): Delete declaration.
529 * frame.c (frame_id_unwind): Delete function.
530 (get_prev_frame): Call the frame id unwind method directly. Store
531 the returned next frame's ID value in NEXT_FRAME. Note that there
532 is a problem with the wrong unwind ID being called with the wrong
533 unwind cache.
534
ed363b1b
DJ
5352003-03-05 Daniel Jacobowitz <drow@mvista.com>
536
537 * Makefile.in (FLAGS_TO_PASS): Add LDFLAGS.
538
fe1f4a5e
DJ
5392003-03-05 James Ingham <jingham@apple.com>
540 Daniel Jacobowitz <drow@mvista.com>
541
542 * cp-abi.c: Include "command.h", "gdbcmd.h", and "ui-out.h".
543 (auto_cp_abi): New variable.
544 (current_cp_abi, num_cp_abis): Make static.
545 (CP_ABI_MAX): Define.
546 (cp_abis): Turn into an array.
547 (value_virtual_fn_field): Fix formatting.
548 (switch_to_cp_abi, register_cp_abi): Update. register_cp_abi now
549 takes a pointer.
550 (set_cp_abi_as_auto_default, set_cp_abi_cmd, show_cp_abi_cmd)
551 (list_cp_abis, _initialize_cp_abi): New functions.
552 * cp-abi.h: Add prototype for set_cp_abi_as_auto_default. Remove
553 declarations for cp_abis, num_cp_abis, current_cp_abi, and
554 switch_to_cp_abi. Update prototype for register_cp_abi.
555 * Makefile.in (cp-abi.o): Update dependencies.
556 * minsyms.c (install_minimal_symbols): Call set_cp_abi_as_auto_default
557 instead of switch_to_cp_abi.
558 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Likewise. Update call to
559 register_cp_abi.
560 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Update call to
561 register_cp_abi.
562 * hpacc-abi.c (_initialize_hpacc_abi): Likewise.
563
e4adbba9
DJ
5642003-03-05 Daniel Jacobowitz <drow@mvista.com>
565
566 * dwarf2expr.c (new_dwarf_expr_context): Add (void) to definition.
567 * dwarf2loc.c: Include "regcache.h".
568 (dwarf_expr_read_reg): Rename regnum argument to dwarf_regnum. Use
569 register_size.
570 * Makefile.in (dwarf2loc.o): Update dependencies.
571
91ccbfc1
TR
5722003-03-04 Theodore A. Roth <troth@openavr.org>
573
574 * avr-tdep.c (avr_io_reg_read_command): Fix to handle case when the
575 number of io registers reported by remote target is not a multiple of
576 step.
577
3d4e8fd2
DC
5782003-03-04 David Carlton <carlton@math.stanford.edu>
579
580 * symtab.c (lookup_partial_symbol): Add linkage_name argument.
581 (lookup_symbol_aux_psymtabs): Update call to
582 lookup_partial_symbol.
583 (lookup_transparent_type, find_main_psymtab)
584 (make_symbol_overload_list): Ditto.
585
ed42d87b
KH
5862003-03-04 Kazu Hirata <kazu@cs.umass.edu>
587
588 * MAINTAINERS (Write after approval): Update my email address.
589
a0ed5532
AC
5902003-03-03 Andrew Cagney <cagney@redhat.com>
591
592 Make MAX_REGISTER_RAW_SIZE and MAX_REGISTER_VIRTUAL_SIZE optional.
593 * gdbarch.sh (DEPRECATED_MAX_REGISTER_RAW_SIZE): Variable with
594 predicate. Replace MAX_REGISTER_RAW_SIZE.
595 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto for
596 MAX_REGISTER_VIRTUAL_SIZE.
597 * regcache.c (legacy_max_register_raw_size): New function.
598 (legacy_max_register_virtual_size): New function.
599 * defs.h (MAX_REGISTER_VIRTUAL_SIZE): Define.
600 (MAX_REGISTER_RAW_SIZE): Define.
601 (legacy_max_register_raw_size): Declare.
602 (legacy_max_register_virtual_size): Declare.
603 * config/sparc/tm-sparc.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
604 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Update.
605 * config/sparc/tm-sp64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
606 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
607 * config/pa/tm-hppa.h (DEPRECATED_MAX_REGISTER_RAW_SIZE)
608 (DEPRECATED_MAX_REGISTER_VIRTUAL_SIZE): Ditto.
609 * config/pa/tm-hppa64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
610 * config/ia64/tm-ia64.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
611 * config/i386/tm-ptx.h (DEPRECATED_MAX_REGISTER_RAW_SIZE): Ditto.
612 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
613 * vax-tdep.c (vax_gdbarch_init): Update.
614 * v850-tdep.c (v850_gdbarch_init): Update.
615 * sparc-tdep.c (sparc_gdbarch_init): Update.
616 * sh-tdep.c (sh_gdbarch_init): Update.
617 * s390-tdep.c (s390_gdbarch_init): Update.
618 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
619 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
620 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
621 * mips-tdep.c (mips_gdbarch_init): Update.
622 * mcore-tdep.c (mcore_gdbarch_init): Update.
623 * m68k-tdep.c (m68k_gdbarch_init): Update.
624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
625 * ia64-tdep.c (ia64_gdbarch_init): Update.
626 * i386-tdep.c (i386_gdbarch_init): Update.
627 * hppa-tdep.c (hppa_gdbarch_init): Update.
628 * h8300-tdep.c (h8300_gdbarch_init): Update.
629 * frv-tdep.c (frv_gdbarch_init): Update.
630 * cris-tdep.c (cris_gdbarch_init): Update.
631 * avr-tdep.c (avr_gdbarch_init): Update.
632 * arm-tdep.c (arm_gdbarch_init): Update.
633 * alpha-tdep.c (alpha_gdbarch_init): Update.
634 * d10v-tdep.c (d10v_gdbarch_init): Do not set
635 max_register_raw_size or max_register_virtual_size.
636
8e437497
DC
6372003-03-03 David Carlton <carlton@math.stanford.edu>
638
639 * symtab.h (DEPRECATED_SYMBOL_MATCHES_NAME): Rename from
640 SYMBOL_MATCHES_NAME, add comment.
641 (SYMBOL_MATCHES_NATURAL_NAME): New.
642 * minsyms.c (lookup_minimal_symbol_solib_trampoline): Replace
643 SYMBOL_MATCHES_NAME with DEPRECATED_SYMBOL_MATCHES_NAME.
644 (lookup_minimal_symbol, lookup_minimal_symbol_text): Ditto.
645 * symtab.c (lookup_partial_symbol): Use
646 SYMBOL_MATCHES_NATURAL_NAME, not SYMBOL_MATCHES_NAME. Delete
647 unhelpful comment.
648 (lookup_block_symbol): Use SYMBOL_MATCHES_NATURAL_NAME, not
649 SYMBOL_MATCHES_NAME.
650 Fix for PR c++/33.
651
25120b0d
DC
6522003-03-03 David Carlton <carlton@math.stanford.edu>
653
654 * symtab.h (SYMBOL_MATCHES_REGEXP): Delete.
655 * symtab.c (search_symbols): Replace uses of SYMBOL_MATCHES_REGEXP
656 by regexp matching against SYMBOL_NATURAL_NAME.
657
78a11fb4
DC
6582003-03-03 David Carlton <carlton@math.stanford.edu>
659
660 * linespec.c (find_method): Extract code into collect_methods.
661 (collect_methods): New.
662
645dd519
MK
6632003-03-02 Mark Kettenis <kettenis@gnu.org>
664
b4700d91
MK
665 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Use get_next_frame and
666 get_frame_base.
667
645dd519
MK
668 * i386-tdep.c (i386_pe_skip_trampoline_code): Replace usage of
669 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
670
0aa7e1aa
SC
6712003-03-02 Stephane Carrez <stcarrez@nerim.fr>
672
673 * arch-utils.c (generic_register_byte): Fix to use the loop index
674 and not regnum when summing the size of all registers up to regnum.
675
f30ee0bc
AC
6762003-03-01 Andrew Cagney <cagney@redhat.com>
677
678 * gdbarch.sh (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename
679 FRAME_INIT_SAVED_REGS.
680 * gdbarch.h, gdbarch.c: Regenerate.
681 * stack.c (frame_info): Update.
682 * sh-tdep.c (sh_find_callers_reg, sh64_get_saved_pr): Update.
683 (sh_init_extra_frame_info, sh64_init_extra_frame_info): Update.
684 (sh64_get_saved_register, sh_pop_frame, sh64_pop_frame): Update.
685 * ns32k-tdep.c (ns32k_pop_frame): Update.
686 * mips-tdep.c (mips_pop_frame): Update.
687 * m68hc11-tdep.c (m68hc11_pop_frame): Update.
688 * ia64-tdep.c (ia64_frame_chain): Update.
689 (ia64_frame_saved_pc, ia64_get_saved_register): Update.
690 (ia64_frameless_function_invocation): Update.
691 (ia64_init_extra_frame_info): Update.
692 (ia64_pop_frame_regular): Update.
693 * frame.h (struct frame_info): Update comment.
694 (DEPRECATED_FRAME_INIT_SAVED_REGS): Rename macro.
695 * frame.c (frame_saved_regs_register_unwind): Update.
696 (frame_saved_regs_register_unwind): Update.
697 (deprecated_generic_get_saved_register): Update.
698 * cris-tdep.c: Update comment.
699 * config/sparc/tm-sparc.h (DEPRECATED_FRAME_INIT_SAVED_REGS):
700 Rename macro.
701 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
702 * x86-64-tdep.c (x86_64_init_abi): Update.
703 * vax-tdep.c (vax_gdbarch_init): Update.
704 * v850-tdep.c (v850_gdbarch_init): Update.
705 * sparc-tdep.c (sparc_gdbarch_init): Update.
706 * sh-tdep.c (sh_gdbarch_init): Update.
707 * s390-tdep.c (s390_gdbarch_init): Update.
708 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
709 * ppc-linux-tdep.c (ppc_linux_init_abi): Update.
710 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
711 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
712 * mips-tdep.c (mips_gdbarch_init): Update.
713 * mcore-tdep.c (mcore_gdbarch_init): Update.
714 * m68k-tdep.c (m68k_gdbarch_init): Update.
715 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
716 * ia64-tdep.c (ia64_gdbarch_init): Update.
717 * i386-tdep.c (i386_gdbarch_init): Update.
718 * frv-tdep.c (frv_gdbarch_init): Update.
719 * avr-tdep.c (avr_gdbarch_init): Update.
720 * arm-tdep.c (arm_gdbarch_init): Update.
721 * alpha-tdep.c (alpha_gdbarch_init): Update.
722
42fa7c0f
AC
7232003-03-01 Andrew Cagney <cagney@redhat.com>
724
725 * main.c (captured_main): Add OPT_WINDOWS and OPT_NOWINDOWS to
726 option enum and switch. When no windows, set the interpreter to
727 INTERP_CONSOLE.
728
49c7e338
AC
7292003-03-01 Andrew Cagney <cagney@redhat.com>
730
731 * main.c (captured_main): Replace magic option characters with an
732 enum.
733
e9582e71
AC
7342003-03-01 Andrew Cagney <cagney@redhat.com>
735
736 * gdbarch.sh (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename
737 INIT_EXTRA_FRAME_INFO.
738 * gdbarch.h, gdbarch.c: Regenerate.
739 * arm-tdep.c: Update comments.
740 * sh-tdep.c, mcore-tdep.c, m68hc11-tdep.c: Ditto.
741 * i386-interix-tdep.c, hppa-tdep.c, h8300-tdep.c: Ditto.
742 * frame.h, avr-tdep.c: Ditto.
743 * frame.c (get_prev_frame): DEPRECATED_INIT_EXTRA_FRAME_INFO.
744 (create_new_frame, legacy_get_prev_frame): Ditto.
745 * config/sparc/tm-sparc.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
746 * config/pa/tm-hppa.h (DEPRECATED_INIT_EXTRA_FRAME_INFO): Rename.
747 * xstormy16-tdep.c (xstormy16_gdbarch_init): Initialize
748 deprecated_init_extra_frame_info instead of init_extra_frame_info.
749 * x86-64-tdep.c (x86_64_init_abi): Ditto.
750 * v850-tdep.c (v850_gdbarch_init): Ditto.
751 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
752 * sh-tdep.c (sh_gdbarch_init): Ditto.
753 * s390-tdep.c (s390_gdbarch_init): Ditto.
754 * ppc-linux-tdep.c (ppc_linux_init_abi): Ditto.
755 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
756 * mips-tdep.c (mips_gdbarch_init): Ditto.
757 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
758 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
759 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
760 * i386-interix-tdep.c (i386_interix_init_abi): Ditto.
761 * hppa-tdep.c (hppa_gdbarch_init): Ditto.
762 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
763 * frv-tdep.c (frv_gdbarch_init): Ditto.
764 * cris-tdep.c (cris_gdbarch_init): Ditto.
765 * avr-tdep.c (avr_gdbarch_init): Ditto.
766 * arm-tdep.c (arm_gdbarch_init): Ditto.
767 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
768 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
769
35cac7cf
AC
7702003-03-01 Andrew Cagney <cagney@redhat.com>
771
772 * gdbarch.sh (register_type): New function with predicate.
773 (REGISTER_VIRTUAL_TYPE): Change to function with predicate.
774 * gdbarch.h, gdbarch.c: Re-generate.
775 * arch-utils.c (generic_register_byte): Use generic_register_size.
776 (generic_register_size): When available, use
777 gdbarch_register_type.
778 * regcache.c (init_regcache_descr): When available, initialize the
779 register type array using gdbarch_register_type. If the
780 architecture supplies gdbarch_register_type, do not use the legacy
781 regcache layout.
782 * d10v-tdep.c (d10v_register_type): Replace
783 d10v_register_virtual_type.
784 (d10v_gdbarch_init): Set register_type instead of
785 register_virtual_type.
786
7b83296f
AC
7872003-03-01 Andrew Cagney <cagney@redhat.com>
788
789 * Makefile.in (ax-gdb.o): Update dependencies.
790 * ax-gdb.c: Include "regcache.h".
791 (gen_expr): Use register_type instead of REGISTER_VIRTUAL_TYPE.
792 * findvar.c (value_of_register): Ditto.
793 * infcmd.c (default_print_registers_info): Ditto.
794
eadc1c87
MK
7952003-03-01 Mark Kettenis <kettenis@gnu.org>
796
797 * i386-linux-tdep.c (find_minsym_and_objfile): Replace usage of
798 DEPRECATED_SYMBOL_NAME with SYMBOL_LINKAGE_NAME.
799
14143612
MK
8002003-03-01 Mark Kettenis <kettenis@gnu.org>
801
802 * i386-linux-tdep.c (find_minsym_and_objfile): Use strcmp instead
803 of STREQ.
804
a55cc764
DJ
8052003-02-28 Daniel Jacobowitz <drow@mvista.com>
806
807 * Makefile.in (dwarf2loc.o): Update dependencies.
808 * ax-gdb.c (gen_var_ref): Handle LOC_COMPUTED and LOC_COMPUTED_ARG.
809 * dwarf2expr.c (read_uleb128, read_sleb128): Make non-static.
810 * dwarf2expr.h (read_uleb128, read_sleb128): Add prototypes.
811 * dwarf2loc.c: Include "ax.h" and "ax-gdb.h".
812 (locexpr_tracepoint_var_ref): New function.
813 (dwarf2_locexpr_funcs): Add locexpr_tracepoint_var_ref.
814
08a617da
AC
8152003-02-28 Andrew Cagney <cagney@redhat.com>
816
817 * regcache.c (register_size): New function.
818 * regcache.h (register_size): Declare
819 * d10v-tdep.c: Use register_size instead of REGISTER_RAW_SIZE, use
820 max_register_size instead of MAX_REGISTER_RAW_SIZE.
821
4224873a
DC
8222003-02-28 David Carlton <carlton@math.stanford.edu>
823
824 * linespec.c (decode_compound): Extract code into find_method.
825 (find_method): New.
826
ccdc5d7f
JB
8272003-02-28 J. Brobecker <brobecker@gnat.com>
828
829 * Makefile.in: Add rules to build and link in observer.o.
830
974e8ced
JB
8312003-02-27 J. Brobecker <brobecker@gnat.com>
832
833 * observer.c: Minor comments edits.
834
7a28f973
JB
8352003-02-27 J. Brobecker <brobecker@gnat.com>
836
837 * observer.h, observer.c: New file.
838
27cddce2
AC
8392003-02-27 Andrew Cagney <cagney@redhat.com>
840
841 * arm-tdep.c (gdb_print_insn_arm): Rename _bfd to just bfd.
842
b94a41a1
SC
8432003-02-27 Stephane Carrez <stcarrez@nerim.fr>
844
845 * m68hc11-tdep.c (M6811_OP_LDX_EXT, M6811_OP_STS_EXT): New defines.
846 (M6812_OP_STS_EXT): Likewise.
847 (m6811_prologue): Use the above to recognize prologue.
848 (m6812_prologue): Likewise.
849
c8be8951
DC
8502003-02-27 David Carlton <carlton@math.stanford.edu>
851
852 * symfile.c (compare_symbols): Use SYMBOL_NATURAL_NAME, not
853 SYMBOL_PRINT_NAME.
854 (compare_psymbols): Ditto.
855 * symtab.c (lookup_partial_symbol, lookup_block_symbol): Ditto.
856
d05bb1fc
MS
8572003-02-27 Michael Snyder <msnyder@redhat.com>
858
4e845cd3
MS
859 * f-lang.c (build_fortran_types): New function.
860 (_initialize_f_language): Gdbarch-register built-in fortran types.
d05bb1fc
MS
861 * doublest.c (extract_floating): Fix warning text.
862
f3824013
AC
8632003-02-27 Andrew Cagney <cagney@redhat.com>
864
865 * gdbarch.sh (DEPRECATED_PUSH_DUMMY_FRAME): Procedure with
866 predicate. Replaces PUSH_DUMMY_FRAME.
867 * gdbarch.h, gdbarch.c: Regnerate.
868 * valops.c (hand_function_call): Update. Call
869 generic_push_dummy_frame directly.
870 * vax-tdep.c (vax_gdbarch_init): Update.
871 * sparc-tdep.c (sparc_gdbarch_init): Update.
872 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
873 * m68k-tdep.c (m68k_gdbarch_init): Update.
874 * hppa-tdep.c (hppa_gdbarch_init): Update.
875 * alpha-tdep.c (alpha_gdbarch_init): Update.
876 * config/sparc/tm-sparc.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
877 * config/pa/tm-hppa.h (DEPRECATED_PUSH_DUMMY_FRAME): Update.
878 * inferior.h (PUSH_DUMMY_FRAME): Delete definition.
879 * xstormy16-tdep.c (xstormy16_gdbarch_init): Don't set
880 push_dummy_frame to generic_push_dummy_frame.
881 * v850-tdep.c (v850_gdbarch_init): Ditto.
882 * sh-tdep.c (sh_gdbarch_init): Ditto.
883 * s390-tdep.c (s390_gdbarch_init): Ditto.
884 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
885 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
886 * mips-tdep.c (mips_gdbarch_init): Ditto.
887 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
888 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
889 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
890 * i386-tdep.c (i386_gdbarch_init): Ditto.
891 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
892 * frv-tdep.c (frv_gdbarch_init): Ditto.
893 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
894 * cris-tdep.c (cris_gdbarch_init): Ditto.
895 * avr-tdep.c (avr_gdbarch_init): Ditto.
896 * arm-tdep.c (arm_gdbarch_init): Ditto.
897
ad188201
KB
8982003-02-26 Kevin Buettner <kevinb@redhat.com>
899
900 * mips-tdep.c (show_mips_abi): New function.
901 (_initialize_mips_tdep): Use show_mips_abi() to implement the
902 command ``show mips abi''.
903
6b37567a
JJ
9042003-02-26 Jeff Johnston <jjohnstn@redhat.com>
905
906 From Elena Zannoni <ezannoni@redhat.com>
907 * dbxread.c (process_one_symbol): Only record line 0 if one or
908 more sline entries have been seen for the function.
909
d3e0a5bf
MC
9102003-02-26 Michael Chastain <mec@shout.net>
911
912 * configure: Regenerate with autoconf 000227.
913
18972eea
MC
9142003-02-26 Michael Chastain <mec@shout.net>
915
916 Close PR build/660.
917 * PROBLEMS (i[3456]86-*-linux*): Note explicit error message
918 for old libc5/glibc.
919 * gdb_thread_db.h: Die if not HAVE_UINTPTR_T.
920
0bbde931
KW
9212003-02-26 Kris Warkentin <kewarken@qnx.com>
922
923 * defs.h (gdb_osabi): Add GDB_OSABI_QNXNTO.
924 * osabi.c (gdb_osabi_names): Add "QNX Neutrino".
925
27ca5dad
MC
9262003-02-26 Michael Chastain <mec@shout.net>
927
928 * configure.in: New variable HAVE_UINTPTR_T.
929 * configure, config.in: Regenerated.
930
6f88d630
DJ
9312003-02-26 Daniel Jacobowitz <drow@mvista.com>
932
933 Fix PR build/1097.
934 * utils.c (gdb_realpath): Move closing brace outwards one #endif.
935
b14185ce
AC
9362003-02-25 Andrew Cagney <cagney@redhat.com>
937
938 * frame.c (get_prev_frame): Add comment on check for
939 inside_entry_func. Only check for inside_entry_file when not a
940 dummy and not a sentinel. Check that the new frame is not inner
941 to the old frame.
942
ac2bd0a9
AC
9432003-02-25 Andrew Cagney <cagney@redhat.com>
944
945 * frame.c (frame_debug): New variable.
946 (_initialize_frame): Add "set/show debug frame" command.
947 (get_prev_frame): When frame_debug, print reason why unwind
948 failed.
949
b18a0fd2
MC
9502003-02-25 Michael Chastain <mec@shout.net>
951
952 * PROBLEMS (i[3456]86-*-linux*): Require glibc 2.1.3 or later
953 to avoid uintptr_t definition problems.
954
22abf04a
DC
9552003-02-25 David Carlton <carlton@math.stanford.edu>
956
957 * symtab.h (SYMBOL_NATURAL_NAME): New macro.
958 (SYMBOL_LINKAGE_NAME): Ditto.
959 (SYMBOL_PRINT_NAME): Use SYMBOL_NATURAL_NAME and
960 SYMBOL_LINKAGE_NAME.
961 (struct general_symbol_info): Expand comment.
962 (DEPRECATED_SYMBOL_NAME): Rename from SYMBOL_NAME.
963 (SYMBOL_MATCHES_NAME): Use DEPRECATED_SYMBOL_NAME.
964 (SYMBOL_MATCHES_REGEXP): Ditto.
965 * symtab.c (symbol_natural_name): New function.
966 * objfiles.h: Replace all uses of SYMBOL_NAME by
967 DEPRECATED_SYMBOL_NAME.
968 * xcoffread.c, valops.c, typeprint.c, tracepoint.c: Ditto.
969 * symtab.c, symmisc.c, symfile.c, stack.c, stabsread.c: Ditto.
970 * somsolib.c, sol-thread.c, rs6000-tdep.c, p-valprint.c: Ditto.
971 * printcmd.c, objfiles.c, objc-lang.c, mipsread.c: Ditto.
972 * minsyms.c, mdebugread.c, linespec.c, jv-lang.c: Ditto.
973 * i386-tdep.c, i386-linux-tdep.c, hpread.c, hppa-tdep.c: Ditto.
974 * gnu-v2-abi.c, f-valprint.c, findvar.c, expprint.c: Ditto.
975 * dwarfread.c, dwarf2read.c, dbxread.c, c-valprint.c: Ditto.
976 * cp-valprint.c, coffread.c, buildsym.c, breakpoint.c: Ditto.
977 * blockframe.c, ax-gdb.c, arm-linux-tdep.c, ada-lang.c: Ditto.
978 * ada-exp.y: Ditto.
979 * ada-exp.y: Update copyright.
980 * sol-thread.c, mipsread.c, jv-lang.c, f-valprint.c: Ditto.
981 * cp-valprint.c: Ditto.
982
1a5848f6
JJ
9832003-02-25 Jeff Johnston <jjohnstn@redhat.com>
984
985 * infptrace.c (detach): Do not flag error if ptrace detach fails
986 and errno is set to ESRCH.
987
7343d46a
AC
9882003-02-24 Andrew Cagney <cagney@redhat.com>
989
990 * infptrace.c (udot_info): Change type of udot_off to long. Use
991 paddr when printing udot_off's value.
992
49fa1dc2
DC
9932003-02-24 David Carlton <carlton@math.stanford.edu>
994
995 * symtab.c (make_symbol_overload_list): Only read in partial
996 symtabs containing a matching partial symbol.
997
0fe19209
DC
9982003-02-24 David Carlton <carlton@math.stanford.edu>
999
1000 * symtab.c (lookup_partial_symbol): Use strcmp_iw_ordered to
1001 do the comparison, not strcmp.
1002 * symfile.c (compare_psymbols): Ditto.
1003 * defs.h: Declare strcmp_iw_ordered.
1004 * utils.c (strcmp_iw_ordered): New function.
1005
8e3ee7b5
JB
10062003-02-24 Jim Blandy <jimb@redhat.com>
1007
1008 * MAINTAINERS (GNU/Linux/x86, linespec, breakpoints, Scheme
1009 support, shared libs): Remove my name from here, to better reflect
1010 reality.
1011
7df1a324
KW
10122003-02-24 Kris Warkentin <kewarken@qnx.com>
1013
1014 * target.h: (HAVE_CONTINUABLE_WATCHPOINT): Define.
1015 (target_ops): Add to_have_continuable_watchpoint.
1016 * target.c (update_current_target): Add INHERIT line for
1017 to_have_continuable_watchpoint.
1018 * infrun.c: Remove HAVE_CONTINUABLE_WATCHPOINT defines.
1019 * config/i386/nm-i386.h, config/i386/nm-i386sco5.h,
1020 config/i386/nm-i386sol2.h, config/s390/nm-linux.h,
1021 config/sparc/nm-sun4sol2.h: HAVE_CONTINUABLE_WATCHPOINT defined as 1.
1022
d1c76907
EZ
10232003-02-24 Elena Zannoni <ezannoni@redhat.com>
1024
1025 * MAINTAINERS (Core): Drop main.c and top.c. Clarify event loop
1026 maintainership.
1027
2610b0bf
KW
10282003-02-24 Kris Warkentin <kewarken@qnx.com>
1029
f46169db
KW
1030 * solib.c (solib_open): Call target defined search function after
1031 failing with solib-search-path.
1032 * solist.h (target_so_ops): Add find_and_open_solib function hook and
1033 create define TARGET_SO_FIND_AND_OPEN_SOLIB.
2610b0bf 1034
9a3c34fe
KW
10352003-02-24 Kris Warkentin <kewarken@qnx.com>
1036
f46169db 1037 * MAINTAINERS: Add myself to Write After section.
9a3c34fe 1038
2417dd25
SC
10392003-02-23 Stephane Carrez <stcarrez@nerim.fr>
1040
1041 * m68hc11-tdep.c (m68hc11_gdbarch_init): long double is 64-bit wide.
1042
b631436b
SC
10432003-02-22 Stephane Carrez <stcarrez@nerim.fr>
1044
1045 * m68hc11-tdep.c (m68hc11_init_reggroups): New function.
1046 (m68hc11_add_reggroups): New function.
1047 (m68hc11_register_reggroup_p): New to register hard/soft reggroups.
1048 (m68hc11_gdbarch_init): Install the reggroups.
1049 (_initialize_m68hc11_tdep): Initialize them.
1050
0aa8c1e4
JW
10512003-02-21 James E Wilson <wilson@tuliptree.org>
1052
1053 * MAINTAINERS: Update my email address.
1054
50ceaba5
DC
10552003-02-21 David Carlton <carlton@math.stanford.edu>
1056
1057 * arm-tdep.c (arm_gdbarch_init): Add break after default label.
1058
4c2df51b
DJ
10592003-02-21 Daniel Jacobowitz <drow@mvista.com>
1060
1061 Based on a patch from Daniel Berlin (dberlin@dberlin.org).
1062 * symtab.h: Add opaque declarations of struct axs_value and
1063 struct agent_expr.
1064 (enum address_class): Add LOC_COMPUTED and LOC_COMPUTED_ARG.
1065 (struct location_funcs): New type.
1066 (struct symbol): Add "loc" to aux_value.
1067 (SYMBOL_LOCATION_BATON, SYMBOL_LOCATION_FUNCS): New macros.
1068 * dwarf2read.c: Include "dwarf2expr.h".
1069 (dwarf2_symbol_mark_computed): New function.
1070 (read_func_scope): Use it.
1071 (var_decode_location): New function.
1072 (new_symbol): Use it.
1073 * dwarf2expr.c, dwarf2expr.h, dwarf2loc.c, dwarf2loc.h: New files.
1074
1075 * Makefile.in (SFILES): Add dwarf2loc.c and dwarf2expr.c.
1076 (dwarf2expr_h, dwarf2loc_h): New variables.
1077 (COMMON_OBS): Add dwarf2expr.o and dwarf2loc.o.
1078 (dwarf2expr.o, dwarf2loc.o): New rules.
1079 (dwarf2read.o): Add $(dwarf2expr_h) and $(dwarf2loc_h).
1080 * buildsym.c (finish_block): Handle LOC_COMPUTED and
1081 LOC_COMPUTED_ARG.
1082 * findvar.c (symbol_read_needs_frame, read_var_value): Likewise.
1083 * m2-exp.y (yylex): Likewise.
1084 * printcmd.c (address_info, print_frame_args): Likewise.
1085 * stack.c (print_block_frame_locals, print_frame_arg_vars): Likewise.
1086 * symmisc.c (print_symbol, print_partial_symbols): Likewise.
1087 * ada-lang.c (ada_resolve_subexp, symtab_for_sym)
1088 (ada_add_block_symbols, fill_in_ada_prototype): Likewise.
1089 * symtab.c (lookup_block_symbol): Likewise.
1090
5784d15e
AF
10912003-02-20 Adam Fedor <fedor@gnu.org>
1092
1093 * symtab.h: Remove objc_specific struct
1094 (SYMBOL_OBJC_DEMANGLED_NAME): Remove.
1095 * symtab.c (symbol_init_language_specific, symbol_demangled_name):
1096 Have language_objc use cplus_specific struct.
1097
d4cad8db
TT
10982003-02-20 Tom Tromey <tromey@redhat.com>
1099
1100 * jv-valprint.c (java_value_print): Look at TYPE_TAG_NAME, not
1101 TYPE_NAME, when printing a String value. PR java/1075.
1102
2f9a90b4
AF
11032003-02-20 Adam Fedor <fedor@gnu.org>
1104
d38074a8 1105 * objc-lang.h (find_methods): Remove declaration.
2f9a90b4
AF
1106 * objc-lang.c (find_methods): Make static.
1107
6f17862b
CF
11082003-02-20 Christopher Faylor <cgf@redhat.com>
1109
1110 * win32-nat.c (get_image_name): Check return value from
1111 ReadProcessMemory.
1112 (child_xfer_memory): Ditto.
1113
715d1656
AO
11142003-02-20 Alexandre Oliva <aoliva@redhat.com>
1115
1116 * configure.in (TARGET_SYSTEM_ROOT): Set default to
1117 ${exec_prefix}/${target_alias}/sys-root. Match explicit
1118 '${exec_prefix}' (in addition to the expansion thereof) as
1119 relocatable.
1120 * configure: Rebuilt.
1121
b1262a02
DC
11222003-02-20 David Carlton <carlton@math.stanford.edu>
1123
1124 * symtab.c (search_symbols): Revert the search_symbols part of my
1125 2002-12-23 patch. Add comment.
1126
7134143f
DJ
11272002-02-20 Daniel Jacobowitz <drow@mvista.com>
1128
1129 * coffread.c (coff_symfile_read): Clean up minimal symbols earlier.
1130 * dbxread.c (elfstab_build_psymtabs): Don't call
1131 install_minimal_symbols.
1132 (stabsect_build_psymtabs): Likewise.
1133 * elfread.c (elf_symfile_read): Call install_minimal_symbols
1134 earlier.
1135 * somread.c (som_symfile_read): Call install_minimal_symbols
1136 and do_cleanups earlier.
1137 * nlmread.c (nlm_symfile_read): Likewise.
1138 * mdebugread.c (elfmdebug_build_psymtabs): Call
1139 install_minimal_symbols and make appropriate cleanups.
1140
cf466558
KB
11412003-02-20 Kevin Buettner <kevinb@redhat.com>
1142
1143 * solib.c (reload_shared_libraries): New function.
1144 (_initialize_solib): Add callbacks for ``set solib-search-path''
1145 and ``set solib-absolute-prefix''.
1146
de5ad195
DC
11472003-02-20 David Carlton <carlton@math.stanford.edu>
1148
1149 * symtab.h (SYMBOL_PRINT_NAME): Rename from SYMBOL_SOURCE_NAME;
1150 expand comment.
1151 * ada-lang.c (user_select_syms, ada_finish_decode_line_1): Replace
1152 SYMBOL_PRINT_NAME with SYMBOL_SOURCE_NAME.
1153 * ada-typeprint.c (ada_typedef_print): Ditto.
1154 * ax-gdb.c (gen_var_ref): Ditto.
1155 * breakpoint.c (print_one_breakpoint): Ditto.
1156 * buildsym.c (finish_block): Ditto.
1157 * c-valprint.c (c_val_print): Ditto.
1158 * expprint.c (print_subexp): Ditto.
1159 * findvar.c (locate_var_value): Ditto.
1160 * infcmd.c (jump_command): Ditto.
1161 * linespec.c (decode_line_2, decode_compound): Ditto.
1162 * maint.c (maintenance_translate_address): Ditto.
1163 * objc-lang.c (compare_selectors, compare_classes): Ditto.
1164 * printcmd.c (build_address_symbolic, sym_info, print_frame_args):
1165 Ditto.
1166 * p-valprint.c (pascal_val_print): Ditto.
1167 * stabsread.c (define_symbol): Ditto.
1168 * stack.c (print_frame, frame_info, print_block_frame_locals)
1169 (print_frame_arg_vars, return_command): Ditto.
1170 * symfile.c (compare_symbols, compare_psymbols): Ditto.
1171 * symmisc.c (print_symbol): Ditto.
1172 * symtab.c (lookup_partial_symbol, lookup_block_symbol)
1173 (compare_search_syms, print_symbol_info, print_msymbol_info)
1174 (rbreak_command): Ditto.
1175 * tracepoint.c (tracepoints_info): Ditto.
1176 * typeprint.c (typedef_print): Ditto.
1177 * valops.c (value_of_variable, hand_function_call): Ditto.
1178 * cli/cli-cmds.c (edit_command, list_command): Ditto.
1179 * ada-typeprint.c: Update Copyright.
1180 * infcmd.c, objc-lang.c, p-valprint.c, symmisc.c: Ditto.
1181 * tracepoint.c, cli/cli-cmds.c: Ditto.
1182
f796e4be
KB
11832003-02-20 Kevin Buettner <kevinb@redhat.com>
1184
1185 * frame.c (generic_unwind_get_saved_register): Make non-static.
1186 * frame.h (generic_unwind_get_saved_register): Declare.
1187 * mips-tdep.c (read_next_frame_reg): Fetch register from
1188 current regcache when frame is NULL.
1189 (mips_init_extra_frame_info): Pass NULL explicitly for parameter
1190 that must be NULL.
1191 (mips_get_saved_register): Call generic_unwind_get_saved_register()
1192 instead of frame_register_unwind().
1193
836cc9f4
AC
11942003-02-20 Andrew Cagney <ac131313@redhat.com>
1195
1196 * remote-sim.c (gdbsim_insert_breakpoint)
1197 (gdbsim_remove_breakpoint): Delete #ifdef SIM_HAS_BREAKPOINTS
1198 code.
1199
501eef12
AC
12002003-02-20 Andrew Cagney <ac131313@redhat.com>
1201
1202 * remote.c (_initialize_remote): Add commands "set/show remote
1203 hardware-watchpoint-limit" and "set/show remote
1204 hardware-breakpoint-limit".
1205 (remote_hw_watchpoint_limit): Initialize to -1.
1206 (remote_hw_breakpoint_limit): Ditto.
1207 (remote_check_watch_resources): Treat a limit of -1 as unlimited.
1208
1b6bc7e0
CF
12092003-02-19 Raoul Gough <RaoulGough@yahoo.co.uk>
1210
1211 * coff-pe-read.c: New file - support reading of minimal symbols from a
1212 portable executable using the export table.
1213 * coff-pe-read.h: New file.
1214 * coffread.c: Include coff-pe-read.h.
1215 (coff_symtab_read): Call read_pe_exported_syms iff no recognized
1216 debugging symbols found.
1217 * Makefile.in (SFILES): Add coff-pe-read.o.
1218 (coff_pe_read_h): Define.
1219 (COMMON_OBS): Add coff-pe-read.o.
1220 (coffread.o): Add coff_pe_read_h dependency.
1221 (coff-pe-read.o): New target.
1222
fe898f56
DC
12232003-02-19 David Carlton <carlton@math.stanford.edu>
1224
1225 * Makefile.in (SFILES): Add block.c.
1226 (block_h): New.
1227 (COMMON_OBS): Add block.o.
1228 (block.o): New.
1229 (x86-64-tdep.o): Add $(block_h).
1230 (values.o, valops.o, tracepoint.o, symtab.o, symmisc.o, symfile.o)
1231 (stack.o, printcmd.o, p-exp.tab.o, parse.o, objfiles.o)
1232 (objc-exp.tab.o, objc-lang.o, nlmread.o, mips-tdep.o, mdebugread.o)
1233 (m2-exp.tab.o, linespec.o, jv-lang.o, jv-exp.tab.o, infcmd.o)
1234 (f-valprint.o, findvar.o, f-exp.tab.o, expprint.o, coffread.o)
1235 (c-exp.tab.o, buildsym.o, breakpoint.o, blockframe.o, ax-gdb.o)
1236 (alpha-tdep.o, ada-lang.o, ada-exp.tab.o, mi-cmd-stack.o): Ditto.
1237 * value.h: Add opaque declaration for struct block.
1238 * parser-defs.h, objc-lang.h, buildsym.h, breakpoint.h: Ditto.
1239 * ada-lang.h: Ditto.
1240 * x86-64-tdep.c: #include "block.h"
1241 * values.c, valops.c, tracepoint.c, symtab.c, symmisc.c: Ditto.
1242 * symfile.c, stack.c, printcmd.c, p-exp.y, parse.c: Ditto.
1243 * objfiles.c, objc-exp.y, objc-lang.c, nlmread.c: Ditto.
1244 * mips-tdep.c, mdebugread.c, m2-exp.y, linespec.c: Ditto.
1245 * jv-lang.c, jv-exp.y, infcmd.c, f-valprint.c: Ditto.
1246 * findvar.c, f-exp.y, expprint.c, coffread.c, c-exp.y: Ditto.
1247 * buildsym.c, breakpoint.c, blockframe.c, ax-gdb.c: Ditto.
1248 * alpha-tdep.c, ada-lang.c, ada-exp.y: Ditto.
1249 * blockframe.c (blockvector_for_pc_sect): Move to "block.c".
1250 (blockvector_for_pc, block_for_pc_sect, block_for_pc): Ditto.
1251 * symtab.c (block_function): Ditto.
1252 (contained_in): Ditto.
1253 * frame.h: Move block_for_pc and block_for_pc_sect declarations to
1254 block.h. Add opaque declaration for struct block.
1255 * symtab.h: Move block_function and contained_in declarations to
1256 block.h. Add opaque declarations for struct block, struct
1257 blockvector.
1258 (struct block): Move to block.h.
1259 (struct blockvector): Ditto.
1260 (BLOCK_START, BLOCK_END, BLOCK_FUNCTION, BLOCK_SUPERBLOCK)
1261 (BLOCK_GCC_COMPILED, BLOCK_HASHTABLE, BLOCK_NSYMS, BLOCK_SYM)
1262 (BLOCK_BUCKETS, BLOCK_BUCKET, BLOCK_HASHTABLE_SIZE)
1263 (ALL_BLOCK_SYMBOLS, BLOCK_SHOULD_SORT, BLOCKVECTOR_NBLOCKS)
1264 (BLOCKVECTOR_BLOCK, GLOBAL_BLOCK, STATIC_BLOCK, FIRST_LOCAL_BLOCK):
1265 Ditto.
1266 * block.c: New file.
1267 * block.h: New file.
1268
173345b5
TR
12692003-02-19 Theodore A. Roth <troth@openavr.org>
1270
1271 * avr-tdep.c (avr_extract_return_value): Remove function.
1272 (avr_store_return_value): Remove function.
1273 (avr_extract_struct_value_address): Remove function.
1274 (avr_gdbarch_init): Remove set_gdbarch_deprecated_*() calls.
1275
338ef23d
AC
12762003-02-19 Andrew Cagney <ac131313@redhat.com>
1277
1278 * rs6000-tdep.c: Include "gdb_assert.h".
1279 (registers_e500): Add "acc" and "spefscr".
1280 (PPC_GPRS_PSEUDO_REGS): Remove trailing comma.
1281 (rs6000_gdbarch_init): Update initialization of ppc_gp0_regnum,
1282 ppc_gplast_regnum, sp_regnum and fp_regnum. Check that gp0_regnum
1283 really is "r0".
1284 (registers_e500): Mark the "acc" as a 64 bit (from Jim Willson).
1285
5412f5f3
KS
12862003-02-18 Keith Seitz <keiths@redhat.com>
1287
1288 * Makefile.in: Add gdbtk-interps.c.
1289
881324eb
KB
12902003-02-18 Kevin Buettner <kevinb@redhat.com>
1291
1292 * sparc-tdep.c (sparc_frame_chain): Adjust return value.
1293 * config/sparc/tm-sparc.h (init_frame_pc_noop): Declare.
1294
6a2f5abf
AC
12952003-02-18 Andrew Cagney <cagney@redhat.com>
1296
1297 * symtab.h (struct objfile): Add opaque declaration.
1298
54c7009d
EZ
12992003-02-18 Elena Zannoni <ezannoni@redhat.com>
1300
1301 From Jim Ingham <jingham@apple.com>:
1302 * dbxread.c (process_one_symbol): Use last_function_start rather
1303 than function_start_offset to find the real beginning of the
1304 current function. The latter is just the text section offset on
1305 some systems, the former is always the real function start.
1306
7ee6d7eb
AC
13072003-02-17 Andrew Cagney <cagney@redhat.com>
1308
1309 * configure.in: Revert ${target} != ${host}.
1310
2846da9b
AC
13112003-02-17 Andrew Cagney <ac131313@redhat.com>
1312
1313 * configure.in (Makefile): Use the test ${target} != ${host},
1314 instead of the absence of the "nm.h" file, to determine of the
1315 configuration non-native.
1316 * configure: Regenerate.
1317
3b27aeea
EZ
13182003-02-14 Elena Zannoni <ezannoni@redhat.com>
1319
1320 From Brian Ford <ford@vss.fsi.com>
1321
1322 * cli/cli-decode.c (lookup_cmd_composition) [TUI]: Properly
1323 conditionalize tui_active test.
1324 (lookup_cmd_1): Ditto.
1325
b0b1c2c0
MK
13262003-02-14 Mark Kettenis <kettenis@gnu.org>
1327
1328 * configure.in: Add check for _etext.
1329 * maint.c (maintenance_set_profile_cmd): Use etext if _etext isn't
1330 available.
1331 * config.in, configure: regenerated.
1332
8f05cde5
DJ
13332003-02-14 Daniel Jacobowitz <drow@mvista.com>
1334
1335 * dwarf2read.c (dwarf2_get_pc_bounds): Offset addresses by base.
1336
021e7609
AC
13372003-02-14 Andrew Cagney <ac131313@redhat.com>
1338
1339 * main.c (tui_version): Delete variable.
1340 (captured_main): When --tui, set interpreter_p to "tui" instead of
1341 enabling tui_version.
1342 * printcmd.c (display_command) [TUI]: Test tui_active instead of
1343 tui_version.
1344 * cli/cli-decode.c (lookup_cmd_composition): Ditto.
1345 * cli/cli-cmds.c (disassemble_command): Ditto.
1346 * defs.h (tui_version): Delete declaration.
1347 * Makefile.in (SUBDIR_TUI_SRCS): Add "tui/tui-interp.c".
1348 (tui-interp.o): Add rules.
1349 (SUBDIR_TUI_OBS): Add "tui-interp.o".
1350
e325dcec
CF
13512003-02-14 Christopher Faylor <cgf@redhat.com>
1352
36ffb041 1353 * win32-nat.c (register_loaded_dll): Correctly set address range for
e325dcec
CF
1354 just-loaded dll.
1355
c4f90d87
JM
13562003-02-12 Jason Molenda (jmolenda@apple.com)
1357
1358 * symmisc.c (print_objfile_statistics): Include information about
1359 the number of psymtabs and symtabs in each object file.
1360
e46e5ccd
KS
13612003-02-13 Keith R Seitz <keiths@redhat.com>
1362
1363 * main.h (struct captured_main_args): Add interpreter_p.
1364 * main.c (captured_main): Initialize interpreter_p from context.
1365 * gdb.c (main): Set interpreter_p argument.
1366 * Makefile.in (gdb.o): Add dependency for interps.h.
1367
fe97fe9c
AC
13682003-02-12 Andrew Cagney <ac131313@redhat.com>
1369
1370 * event-top.c (cli_command_loop): Delete declaration.
1371 (_initialize_event_loop): Delete function setting event_loop_hook.
1372 * event-top.h (cli_command_loop): Declare. Update copyright.
1373 (EVENT_TOP_H): Define. Wrap header in #ifdef EVENT_TOP_H.
1374 * interps.c (current_interp_command_loop): When event_loop_p, call
1375 cli_command_loop.
1376
1cdac4ef
AC
13772003-02-12 Andrew Cagney <ac131313@redhat.com>
1378
1379 * interps.h (interp_command_loop_ftype): Change return type to
1380 void.
1381
48037ead
ML
13822003-02-12 Michal Ludvig <mludvig@suse.cz>
1383
1384 * x86-64-tdep.c (x86_64_extract_return_value)
1385 (x86_64_store_return_value): Use regcache instead of regbuf.
1386 (x86_64_gdbarch_init): Change related set_gdbarch_* functions.
1387 * x86-64-linux-nat.c (fill_gregset): Use regcache.
1388
033afc63
AC
13892003-02-11 Andrew Cagney <ac131313@redhat.com>
1390
1391 * acinclude.m4 (no_tcl): SUBST TCL_CC_SEARCH_FLAGS.
1392 * aclocal.m4: Regenerate.
1393 * configure: Regenerate.
1394
1395 * Makefile.in (TCL): Use TCL_CC_SEARCH_FLAGS instead of
1396 TCL_LD_SEARCH_FLAGS.
1397
40d02bca
ML
13982003-02-10 Michal Ludvig <mludvig@suse.cz>
1399
1400 * dwarf2cfi.c: Reindented.
1401
11308a41
AC
14022003-02-09 Andrew Cagney <ac131313@redhat.com>
1403
1404 * interps.c (clear_interpreter_hooks): Convert function definition
1405 to ISO C.
1406
e1c1c0f6
DC
14072003-02-07 David Carlton <carlton@math.stanford.edu>
1408
1409 * gdb_mbuild.sh: Delete extra shift after parsing '-f'.
1410
ab5d3da6
KB
14112003-02-07 Kevin Buettner <kevinb@redhat.com>
1412
1413 * gdbtypes.h (struct main_type): Move ``length'' field from here...
1414 (struct type): ...to here.
1415 (TYPE_LENGTH): Adjust to reflect different location of ``length''
1416 field.
1417 * gdbtypes.c (make_qualified_type): Set length on newly created type.
1418 (replace_type): Set length on all type variants for a given type.
1419
b8a92b82
AC
14202003-02-07 Andrew Cagney <ac131313@redhat.com>
1421
1422 * sol-thread.c, hpux-thread.c: Include "gdb_stat.h" instead of
1423 <sys/stat.h>.
1424 * Makefile.in (sol-thread.o, hpux-thread.o): Update dependencies.
1425
5cb316ef
AC
14262003-02-06 Andrew Cagney <ac131313@redhat.com>
1427
2555fe1a
AC
1428 * Makefile.in (symm-nat.o): Update dependencies.
1429 (sparc-nat.o, procfs.o, proc-api.o, ppc-linux-nat.o): Ditto.
1430 (lynx-nat.o, ia64-linux-nat.): Ditto.
1431 * symm-nat.c, sparc-nat.c, procfs.c, proc-api.c: Include
1432 "gdb_wait.h" instead of <wait.h> or <sys/wait.h>.
1433 * ppc-linux-nat.c, lynx-nat.c, ia64-linux-nat.c: Ditto.
1434
44270758
AC
1435 * Makefile.in (inflow_h): Define.
1436 (procfs.o, inflow.o, procfs.o): Update dependencies.
1437 * inftarg.c (child_stop): Delete extern declaration of
1438 inferior_process_group. Include "inflow.h".
1439 * procfs.c (procfs_stop): Ditto. Include "inflow.h".
1440 * inflow.c (PROCESS_GROUP_TYPE): Move definitions from here ...
1441 * inflow.h (PROCESS_GROUP_TYPE): ... to here. New file.
1442 (our_process_group, inferior_process_group): Extern declarations.
1443
df8f7274
AC
1444 * procfs.c: Include "gdb_assert.h".
1445
5cb316ef
AC
1446 * linux-proc.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1447 * cp-valprint.c (cp_print_value_fields): Eliminate STREQN.
1448 * jv-typeprint.c (java_type_print_base): Ditto.
1449 * typeprint.c (typedef_print): Eliminate STREQ.
1450 * cli/cli-script.c (define_command, define_command): Ditto.
1451 * main.c (captured_main): Ditto.
1452 * values.c (lookup_internalvar): Ditto.
1453 * utils.c (safe_strerror, parse_escape): Eliminate assignment
1454 within `if' conditional.
1455 * linespec.c (decode_line_2): Ditto.
1456 * cli/cli-dump.c (bfd_openr_with_cleanup): Ditto.
1457 (bfd_openw_with_cleanup): Ditto.
1458
2a28ccea
MK
14592003-02-07 Mark Kettenis <kettenis@gnu.org>
1460
1461 * x86-64-tdep.c (x86_64_init_abi): Set extract_return_value to
1462 legacy_extract_return_value and store_return_value to
1463 legacy_return_value.
1464
786b8124
CF
14652003-02-06 Raoul Gough <RaoulGough@yahoo.co.uk>
1466
1467 * win32-nat.c (get_relocated_section_addrs): New function. Find
1468 section load addresses for symbol handling in relocated DLLs.
1469 (solib_symbols_add): Open a bfd and call get_relocated_section_addrs.
1470
b871e4ec
FF
14712003-02-05 Fred Fish <fnf@intrinsity.com>
1472
1473 * remote-e7000.c (e7000_drain_command): Fix precedence problem with
1474 '=' and '!='.
1475 * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
1476 with '&' and '=='.
1477 (angel_RDI_info): Ditto.
1478 * infttrace.c (threads_continue_all_but_one): Fix precedence problem
1479 with '&' and '!='.
1480 (threads_continue_all_with_signals): Ditto.
1481
4389a95a
AC
14822003-02-05 Jim Ingham <jingham@apple.com>
1483 Keith Seitz <keiths@redhat.com>
1484 Elena Zannoni <ezannoni@redhat.com>
1485 Andrew Cagney <ac131313@redhat.com>
1486
1487 * Makefile.in (SUBDIR_CLI_OBS): Add "cli-interp.o".
1488 (SUBDIR_CLI_SRCS): Add "cli/cli-interp.c".
1489 (SUBDIR_MI_OBS): Add "mi-interp.o".
1490 (SUBDIR_MI_SRCS): Add "mi/mi-interp.c".
1491 (SFILES): Add "interps.c".
1492 (COMMON_OBS): Add "interps.o".
1493 (interps_h, mi_main_h): Define.
1494 (interps.o, cli-interp.o, mi-interp.o): Add dependencies.
1495 (mi-main.o, main.o, event-top.o): Update dependencies.
1496 * cli/cli-interp.c: New file.
1497 * interps.h, interps.c: New files.
1498 * top.c: (gdb_init): Don't install the default interpreter, handed
1499 by captured_main.
1500 * main.c: Include "interps.h".
1501 (interpreter_p): Note that it should malloc'ed.
1502 (captured_command_loop): Call current_interp_command_loop.
1503 (captured_main): Initialize interpreter_p to INTERP_CONSOLE. Use
1504 xfree and xstrdup when updating interpreter_p. Install the
1505 default interpreter. Add hack to stop mi1's copyright notice
1506 being encoded.
1507 * event-top.h (gdb_setup_readline): Declare.
1508 (gdb_disable_readline): Declare.
1509 * event-top.c: Include "interps.h".
1510 (display_gdb_prompt): Call current_interp_display_prompt_p.
1511 (gdb_setup_readline): Initialize gdb_stdout, gdb_stderr,
1512 gdb_stdlog, and gdb_stdtarg.
1513 (_initialize_event_loop): Don't call gdb_setup_readline.
1514 * cli-out.c (cli_out_set_stream): New function.
1515 * cli-out.h (cli_out_set_stream): Declare.
1516
ff3b5810
MK
15172003-02-06 Mark Kettenis <kettenis@gnu.org>
1518
1519 * configure.tgt (i[3456]86-*-sysv4.2*, i[3456]86-*-sysv4*,
1520 i[3456]86-*-sysv5*, i[3456]86-*-sco3.2v5*): Remove. These are all
1521 handled fine by i[3456]86-*sco* and i[3456]86-sysv*.
1522 * config/i386/i386sco5.mt, config/i386/i386v4.mt,
1523 config/i386/i386v42mp.mt: Removed.
1524
5b729aa5
MK
15252003-02-05 Mark Kettenis <kettenis@gnu.org>
1526
1527 * configure.tgt (*-*-solaris*): Set gdb_osabi to
1528 GDB_OSABI_SOLARIS.
1529
8cc15142
MC
15302003-02-05 Michael Chastain <mec@shout.net>
1531
1532 * PROBLEMS (i[3456]86-*-linux*): Warn about binutils
1533 2.12.1 and earlier versions.
1534
5aa5d4b9
AC
15352003-02-05 Andrew Cagney <ac131313@redhat.com>
1536
1537 Remove orphaned hosts, targets and files.
1538 * config/i386/gdbserve.mt, config/m68k/nm-apollo68b.h: Delete.
1539 * config/m68k/nm-hp300bsd.h, config/m68k/tm-apollo68b.h: Delete.
1540 * config/m68k/tm-es1800.h, config/m68k/tm-hp300bsd.h: Delete.
1541 * config/m68k/tm-mac.h, config/m68k/xm-apollo68b.h: Delete.
1542 * config/pa/hpux1020.mt, config/pa/hpux11.mt: Delete.
1543 * config/pa/hpux11w.mt, config/powerpc/gdbserve.mt: Delete.
1544 * config/powerpc/ppcle-eabi.mt, config/powerpc/ppcle-sim.mt: Delete.
1545 * config/powerpc/tm-ppc-sim.h, config/sparc/sp64sim.mt: Delete.
1546 * config/sparc/tm-sp64sim.h: Delete.
1547 * configure.host: Delete strongarm-*-*, xscale-*-*, and arm*-*-*
1548 hosts.
1549 * configure.tgt: Delete i[3456]86-*-sco3.2v4*, and
1550 mips*-dec-mach3* targets.
1551
b68767c1
MC
15522003-02-04 Michael Chastain <mec@shout.net>
1553
1554 * NEWS: Fix typo: sepcifying -> specifying.
1555
5ae7ca1d
MC
15562003-02-04 Michael Chastain <mec@shout.net>
1557
1558 * dwarfread.c: Add documentation on the state of dwarf-1,
1559 looking towards obsoletion.
1560
d08a4280
MC
15612003-02-03 Michael Chastain <mec@shout.net>
1562
1563 * config/djgpp/fnchange.lst: Add gdb/testsuite/gdb.c++/pr-1023.cc,
1564 gdb/testsuite/gdb.c++/pr-1023.exp.
1565
e9be73e4
AC
15662003-02-04 Andrew Cagney <ac131313@redhat.com>
1567
1568 * values.c: Delete code conditional on IS_TRAPPED_INTERNALVAR.
1569 * TODO: Delete reference to IS_TRAPPED_INTERNALVAR.
1570
1571 * utils.c (init_page_info): Delete reference to MPW in comments.
1572 * main.c (captured_main): Delete #ifdef MPW.
1573
05d57f6f
AC
15742003-02-04 Andrew Cagney <ac131313@redhat.com>
1575
1576 * NEWS: Note that the m32r-*-elf* is obsolete.
1577 * monitor.c (monitor_expect): Obsolete reference to m32r.
1578 * configure.tgt: Mark m32r-*-elf* as obsolete.
1579 * MAINTAINERS: Mark m32k as obsolete.
1580 * m32r-rom.c: Obsolete file.
1581 * config/m32r/m32r.mt: Obsolete file.
1582 * config/m32r/tm-m32r.h: Obsolete file.
1583 * m32r-stub.c: Obsolete file.
1584 * m32r-tdep.c: Obsolete file.
1585
8b0e5691
AC
15862003-02-04 Andrew Cagney <ac131313@redhat.com>
1587
1588 * NEWS: Mention that the z8k-zilog-none is obsolete.
1589 * MAINTAINERS: Mark z8k as obsolete.
1590 * configure.tgt: Obsolete the z8k-*-coff* target.
1591 * config/z8k/z8k.mt: Obsolete file.
1592 * config/z8k/tm-z8k.h: Obsolete file.
1593 * z8k-tdep.c: Obsolete file.
1594
67f16606
AC
15952003-02-04 Andrew Cagney <ac131313@redhat.com>
1596
1597 * NEWS: Mention that the mn10200-elf is obsolete.
1598 * configure.tgt: Obsolete mn10200-*-* target.
1599 * breakpoint.c (update_breakpoints_after_exec): Update comment to
1600 mention that the mn10200 is obsolete.
1601 * breakpoint.h: Ditto.
1602 * MAINTAINERS: Mark the mn10200-elf as obsolete.
1603 * config/mn10200/mn10200.mt: Obsolete file.
1604 * config/mn10200/tm-mn10200.h: Obsolete file.
1605 * mn10200-tdep.c: Obsolete file.
1606
fd2299bd
AC
16072003-02-04 Andrew Cagney <ac131313@redhat.com>
1608
1609 * MAINTAINERS: Mark h8500 as obsolete.
1610 * configure.tgt (h8500-*-*): Mark h8500 code as obsolete.
1611 * findvar.c (value_from_register): Ditto.
1612 * h8500-tdep.c: Mark file as obsolete.
1613 * config/h8500/h8500.mt: Ditto.
1614 * config/h8500/tm-h8500.h: Ditto.
1615 * NEWS: Mention that h8500 is obsolete.
1616
eb9a305d
DC
16172003-02-04 David Carlton <carlton@math.stanford.edu>
1618
1619 * objfiles.c (allocate_objfile): Always set name. Add comment at
1620 start of function.
1621 * jv-lang.c (get_dynamics_objfile): Add comment.
1622
406fc7fb
DC
16232003-02-04 David Carlton <carlton@math.stanford.edu>
1624
1625 * symtab.h (SYMBOL_LINKAGE_NAME): Delete.
1626 * printcmd.c (build_address_symbolic): Replace uses of
1627 SYMBOL_LINKAGE_NAME by equivalent uses of SYMBOL_SOURCE_NAME,
1628 SYMBOL_NAME, and asm_demangle.
1629 Update copyright.
1630
93d91629
DC
16312003-02-04 David Carlton <carlton@math.stanford.edu>
1632
1633 * linespec.c (decode_compound): Extract code into
1634 lookup_prefix_sym.
1635 (lookup_prefix_sym): New function.
1636
1c5cb38e
DC
16372003-02-04 David Carlton <carlton@math.stanford.edu>
1638
1639 * gdbtypes.h: Delete INTEGER_COERCION_BADNESS,
1640 FLOAT_COERCION_BADNESS.
1641 * gdbtypes.c (rank_one_type): Replace all uses of
1642 INTEGER_COERCION_BADNESS by INTEGER_CONVERSION_BADNESS.
1643
0cf824c9
JB
16442003-02-04 Jim Blandy <jimb@redhat.com>
1645
1646 * dwarf2read.c (dwarf2_locate_sections): When we find a macro info
1647 section, let dwarf_macinfo_section point to it, not
1648 dwarf_loc_section.
1649
a2d356b0
DJ
16502003-02-04 Daniel Jacobowitz <drow@mvista.com>
1651
1652 Pointed out by Anton Blanchard <anton@samba.org>.
1653 * ppc-linux-tdep.c (insn_is_sigreturn): New function.
1654 (ppc_linux_at_sigtramp_return_path): Use it.
1655
2de7ced7
DJ
16562003-02-04 Daniel Jacobowitz <drow@mvista.com>
1657
1658 * defs.h (streq): Add prototype.
1659 * utils.c (streq): New function.
1660
1661 * dwarf2read.c (new_symbol): Use SYMBOL_SET_NAMES instead of
1662 SYMBOL_NAME and SYMBOL_INIT_DEMANGLED_NAME.
1663 * mdebugread.c (new_symbol): Likewise.
1664 * stabsread.c (define_symbol): Likewise.
1665 * coffread.c (process_coff_symbol): Likewise.
1666 * dwarfread.c (new_symbol): Likewise.
1667
1668 * minsyms.c (prim_record_minimal_symbol_and_info): Use
1669 SYMBOL_SET_NAMES instead of setting SYMBOL_NAME. Set the language
1670 here.
1671 (install_minimal_symbols): Don't set SYMBOL_LANGUAGE or call
1672 SYMBOL_INIT_DEMANGLED_NAME.
1673 * objfiles.c: Include "hashtab.h".
1674 (allocate_objfile): Call htab_set_functions_ex for the
1675 demangled_names_hash.
1676 (free_objfile): Call htab_delete for the demangled_names_hash.
1677 * objfiles.h (struct htab): Add declaration.
1678 (struct objfile): Add demangled_names_hash.
1679 * symfile.c: Include "hashtab.h".
1680 (reread_symbols): Call htab_delete for the demangled_names_hash.
1681 (add_psymbol_to_list): Use SYMBOL_SET_NAMES instead of putting
1682 SYMBOL_NAME in the bcache.
1683 * symtab.c: Include "hashtab.h". Update comments.
1684 (create_demangled_names_hash, symbol_set_names): New functions.
1685 (symbol_find_demangled_name): New function, broken out from
1686 symbol_init_demangled_names.
1687 (symbol_init_demangled_names): Use it.
1688 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME): Add missing parentheses.
1689 (SYMBOL_SET_NAMES): New macro.
1690 (symbol_set_names): Add prototype.
1691
15831452
JB
16922003-02-03 Jim Blandy <jimb@redhat.com>
1693
1694 Use a single, consistent representation for an empty minimal
1695 symbol table in an objfile.
1696 * objfiles.c (terminate_minimal_symbol_table): New function.
1697 (allocate_objfile): Call it.
1698 * objfiles.h (terminate_minimal_symbol_table): New declaration.
1699 (ALL_MSYMBOLS): No need to test whether (objfile)->msymbols is
1700 non-NULL.
1701 * minsyms.c (lookup_minimal_symbol_by_pc_section): To see whether
1702 objfile has minimal symbols, compare minimal_symbol_count to zero,
1703 instead of comparing msymbols with NULL.
1704 * objfiles.c (have_minimal_symbols): Same.
1705 * solib-sunos.c (solib_add_common_symbols): Call
1706 terminate_minimal_symbol_table.
1707 * symfile.c (reread_symbols): Same.
1708
ffc65945
KB
17092003-02-03 Kevin Buettner <kevinb@redhat.com>
1710
1711 * s390-tdep.c (s390_address_class_type_flags)
1712 (s390_address_class_type_flags_to_name)
1713 (s390_address_class_name_to_type_flags): New functions.
1714 (s390_gdbarch_init): Define ADDRESS_CLASS_TYPE_FLAGS_TO_NAME,
1715 ADDRESS_CLASS_NAME_TO_TYPE_FLAGS, and ADDRESS_CLASS_TYPE_FLAGS.
1716
f211c6d4
MS
17172003-02-03 Michael Snyder <msnyder@redhat.com>
1718
1719 * arm-tdep.c: Fix spell-o in comment.
1720
659b0389
ML
17212003-02-03 Michal Ludvig <mludvig@suse.cz>
1722
1723 * dwarf2cfi.c (pointer_encoding): Added new parameter.
1724 * dwarf2cfi.c, dwarf2read.c: Changed all warnings and
1725 error messages to contain BFD filename.
1726
3b31d625
EZ
17272003-02-02 Elena Zannoni <ezannoni@redhat.com>
1728
997b089a 1729 Fix PR gdb/742 gdb/743 gdb/877
3b31d625
EZ
1730 * disasm.c (dump_insns): Use make_cleanup_ui_out_tuple_begin_end.
1731 (do_mixed_source_and_assembly): Use
1732 make_cleanup_ui_out_tuple_begin_end and
1733 make_cleanup_ui_out_tuple_begin_end.
1734 (do_mixed_source_and_assembly): Ditto.
1735 * thread.c (do_captured_list_thread_ids): Ditto.
1736 * ui-out.h (ui_out_table_begin, ui_out_list_begin,
1737 ui_out_tuple_begin, ui_out_table_end, ui_out_list_end,
1738 ui_out_tuple_end): Delete prototypes.
1739 * ui-out.c (ui_out_list_begin, ui_out_tuple_begin,
1740 ui_out_list_end, ui_out_tuple_end): Delete.
1741
1742 From Kevin Buettner <kevinb@redhat.com>:
1743 * ui-out.h (make_cleanup_ui_out_table_begin_end): New function.
1744 * ui-out.c (make_cleanup_ui_out_table_begin_end)
1745 (do_cleanup_table_end): New functions.
1746 * breakpoint.c (print_it_typical, print_one_breakpoint, mention):
1747 Use cleanups to invoke_ui_out_tuple_end().
1748 (breakpoint_1): Use cleanup to invoke ui_out_table_end().
1749 * cli/cli-setshow.c (cmd_show_list): Use
1750 make_cleanup_ui_out_tuple_begin_end.
1751
5b181d62
AC
17522003-02-02 Andrew Cagney <ac131313@redhat.com>
1753
1754 * frame.c (frame_unwind_register): New function.
1755 (frame_unwind_unsigned_register): Use.
1756 (frame_unwind_signed_register): Use.
1757 (frame_read_register): New function.
1758 * frame.h (frame_unwind_register): Declare.
1759 (frame_read_register): Declare.
1760
1761 * d10v-tdep.c (d10v_frame_pop): Rewrite. Use regcache_cooked_write
1762 and frame_unwind_register instead of read_memory, write_register
1763 and deprecated_write_register_bytes.
1764
5f601589
AC
17652003-02-02 Andrew Cagney <ac131313@redhat.com>
1766
1767 * frame.h: Note that namelen can be negative.
1768 * frame.c (frame_map_name_to_regnum): When LEN is negative, use
1769 NAME's length.
1770
1771 * NEWS: Mention that the d10v's `regs' command is deprecated.
1772 * d10v-tdep.c (d10v_gdbarch_init): Set print_registers_info.
1773 (d10v_print_registers_info): New function.
1774 (show_regs): Call d10v_print_registers_info.
1775 (_initialize_d10v_tdep): Mark "show regs" command as deprecated.
1776
6a3fe0a4
MK
17772003-02-02 Mark Kettenis <kettenis@gnu.org>
1778
1779 * stack.c (print_frame_info): Restore call to annotate_frame_begin
1780 lost in the previous patch.
1781
075559bc
AC
17822003-02-01 Andrew Cagney <ac131313@redhat.com>
1783
1784 From 2002-11-09 Jason Molenda (jason-cl@molenda.com)
1785 * stack.c (print_frame_info_base): Output complete FRAME tuple
1786 for synthesized frames.
1787
6789195b
AC
17882003-02-02 Andrew Cagney <ac131313@redhat.com>
1789
1790 * mips-nat.c (zerobuf): Delete.
1791 (fetch_inferior_registers): Alloc local zerobuf.
1792 (fetch_core_registers): Alloc local zerobuf.
1793 * d10v-tdep.c (show_regs): Don't allocate a dynamic array using
1794 MAX_REGISTER_RAW_SIZE or MAX_REGISTER_VIRTUAL_SIZE.
1795 * thread-db.c (thread_db_store_registers): Ditto.
1796 * sh-tdep.c (sh_do_register): Ditto.
1797 * rom68k-rom.c (rom68k_supply_one_register): Ditto.
1798 * remote-sim.c (gdbsim_store_register): Ditto.
1799 * remote-mips.c (mips_wait, mips_fetch_registers): Ditto.
1800 * remote-e7000.c (fetch_regs_from_dump): Ditto.
1801 * monitor.c (monitor_supply_register): Ditto.
1802 * mipsv4-nat.c (supply_gregset, supply_fpregset): Ditto.
1803 * mips-nat.c (fetch_inferior_registers): Ditto.
1804 * m68klinux-nat.c (fetch_register): Ditto.
1805 * lynx-nat.c (fetch_inferior_registers): Ditto.
1806 (fetch_inferior_registers): Ditto.
1807 * irix4-nat.c (supply_gregset, supply_fpregset): Ditto.
1808 * hpux-thread.c (hpux_thread_fetch_registers): Ditto.
1809 (hpux_thread_store_registers): Ditto.
1810 * hppah-nat.c (fetch_register): Ditto.
1811 * hppab-nat.c (fetch_register): Ditto.
1812 * hppa-tdep.c (pa_register_look_aside): Ditto.
1813 (pa_print_fp_reg, pa_strcat_fp_reg): Ditto.
1814 * dve3900-rom.c (fetch_bitmapped_register): Ditto.
1815
e669114a
AC
18162003-02-01 Andrew Cagney <ac131313@redhat.com>
1817
1818 * gdbarch.sh: Explictly specify all method levels. When a
1819 variable with an empty level, provide a non-multi-arch default.
1820 (BELIEVE_PCC_PROMOTION_TYPE): Set level to empty.
1821 * gdbarch.h: Re-generate.
1822 * stabsread.c (BELIEVE_PCC_PROMOTION_TYPE): Delete. Always defined.
1823 * config/m68k/tm-sun3.h (BELIEVE_PCC_PROMOTION_TYPE): Define as 1
1824
9a043c1d
AC
18252003-02-01 Andrew Cagney <ac131313@redhat.com>
1826
1827 * defs.h (host_pointer_to_address): Delete declaration.
1828 (address_to_host_pointer): Delete declaration.
1829 * utils.c (host_pointer_to_address): Delete function.
1830 (address_to_host_pointer): Delete function.
1831 * procfs.c (procfs_address_to_host_pointer): New function.
1832 * procfs.c (proc_set_watchpoint): Use.
1833 (procfs_can_use_hw_breakpoint): Update comments.
1834 * somsolib.c (hpux_address_to_host_pointer_hack): New function.
1835 (som_solib_add): Use.
1836 * hppa-tdep.c (hppa_pointer_to_address_hack): New function.
1837 * hppa-tdep.c (unwind_command): Use.
1838
7ca9f392
AC
18392003-02-01 Andrew Cagney <ac131313@redhat.com>
1840
94bbfd30
AC
1841 * gdb_dirent.h: Mark up valid uses of <dirent.h>, d_namelen and
1842 strlen d_name.
1843
7ca9f392
AC
1844 * main.c (captured_main): Delete #ifdef ADDITIONAL_OPTIONS,
1845 ADDITIONAL_OPTION_CASES, and ADDITIONAL_OPTION_HANDLER code.
1846 (print_gdb_help): Delete #ifdef ADDITIONAL_OPTION_HELP code.
1847 * stabsread.c (DBX_PARM_SYMBOL_CLASS): Delete macro.
1848 (define_symbol): Update.
1849 * symfile.c (generic_load): Remove references to nindy.
1850 * symtab.c: Remove references to nindy.
1851
31a85ea2
AC
18522003-02-01 Andrew Cagney <ac131313@redhat.com>
1853
1854 * infcmd.c (print_float_info): Delete code conditional on
1855 FLOAT_INFO.
1856 * config/nm-lynx.h: Delete #undef FLOAT_INFO. Update copyright.
1857 * config/m68k/nm-apollo68b.h: Ditto.
1858 * config/i386/tm-ptx.h (FLOAT_INFO): Delete. Update copyright.
1859 * config/ns32k/nm-nbsd.h (FLOAT_INFO): Ditto.
1860 * config/i386/tm-symmetry.h (FLOAT_INFO): Ditto.
1861
f6e85fc8
MK
18622003-02-01 Mark Kettenis <kettenis@gnu.org>
1863
6015b6a0
MK
1864 * config/i386/tm-i386os9k.h: Removed.
1865
f7a30bdf
MK
1866 * configure.host (i[3456]86-*-isc*): Set gdb_host to i386v.
1867 Remove i[3456]86-*-sysv3.2* and i[3456]86-*-sysv32* entries since
1868 they're identical to i[3456]86-*-sysv* now.
1869 * config/i386/i386v32.mh: Removed.
1870 * config/i386/xm-i386v32.h: Removed.
1871 * config/i386/xm-i386sco.h (U_FPSTATE): Remove macro.
1872
28d52111
MK
1873 * config/i386/i386mk.mt, config/i386/i386mk.mh: Removed.
1874
4d3f6bce
MK
1875 * config/i386/i386dgux.mh: Removed.
1876 * configure.host (i[3456]86-*-dgux): Set gdb_host to i386v4.
1877
f6e85fc8
MK
1878 * configure.in: Fix typo.
1879 * configure: Regenerated.
1880
53955967
DC
18812003-01-31 David Carlton <carlton@math.stanford.edu>
1882
1883 * dwarf2read.c (dwarf2_locate_sections): Set
1884 dwarf_ranges_section.
1885
b1364885
AC
18862003-01-31 Andrew Cagney <ac131313@redhat.com>
1887
8dbb1c65
AC
1888 * objc-exp.y, c-exp.y, f-exp.y: Remove PTR casts.
1889 * utils.c: Update comments documenting legitimate uses of PTR.
1890
8731e58e
AC
1891 * utils.c: Re-indent.
1892
b1364885
AC
1893 * config/djgpp/fnchange.lst: Delete nindy files.
1894 * nindy-share/ttyflush.c, nindy-share/stop.h: Delete files.
1895 * nindy-share/nindy.c, nindy-share/env.h: Delete files.
1896 * nindy-share/coff.h, nindy-share/block_io.h: Delete files.
1897 * nindy-share/b.out.h, nindy-share/VERSION: Delete files.
1898 * nindy-share/README, nindy-share/Onindy.c: Delete files.
1899 * nindy-tdep.c, nindy-share/Makefile: Delete files.
1900 * Makefile.in (init.c): Remove nindy references.
1901 (saber_gdb): Delete rule.
1902 (ALLDEPFILES): Delete hp300ux-nat.c, nindy-tdep.c,
1903 nindy-share/Onindy.c, nindy-share/nindy.c, nindy-share/ttyflush.c,
1904 and a68v-nat.c.
1905 (hp300ux-nat.o, a68v-nat.o, ptx4-nat.o): Delete rules.
1906 (Onindy.o, nindy.o, ttyflush.o, nindy-tdep.o): Delete rules.
1907 (HFILES_NO_SRCDIR): Delete nindy-share/b.out.h,
1908 nindy-share/block_io.h, nindy-share/coff.h, nindy-share/env.h, and
1909 nindy-share/stop.h.
1910 * hp300ux-nat.c, a68v-nat.c, ptx4-nat.c: Delete files.
1911 * saber.suppress: Delete file.
1912
086df311
DJ
19132003-01-31 Daniel Jacobowitz <drow@mvista.com>
1914
1915 * dbxread.c (stabs_data): New static variable.
1916 (fill_symbuf): Support an in-memory buffer for stabs data.
1917 (stabs_seek): New function.
1918 (dbx_psymtab_to_symtab): Relocate the stabs data if necessary.
1919 (read_ofile_symtab): Use stabs_seek.
1920 (elfstab_build_psymtabs): Take an asection* instead of
1921 an offset and size. Relocate the stabs data if necessary.
1922 Save the section* for dbx_psymtab_to_symtab.
1923 * dwarf2read.c: Add section variables for each debug section.
1924 (dwarf2_locate_sections): Fill them in.
1925 (dwarf2_read_section): Take an asection* argument.
1926 Relocate the section contents if necessary.
1927 (dwarf2_build_psymtabs, dwarf2_build_psymtabs_easy): Update callers.
1928 * dwarf2cfi.c (parse_frame_info): Take a section argument and pass
1929 it to dwarf2_read_section.
1930 (dwarf2_build_frame_info): Update callers.
1931 * elfread.c (elf_symfile_read): Update call to
1932 elfstab_build_psymtabs.
1933 * gdb-stabs.h (struct dbx_symfile_info): Add stab_section.
1934 (DBX_STAB_SECTION): New macro.
1935 * stabsread.h (elfstab_build_psymtabs): Update prototype.
1936 * symfile.c (symfile_dummy_outputs): New function.
1937 (symfile_relocate_debug_section): New function.
1938 * symfile.h (symfile_relocate_debug_section): Add prototype.
1939
87d1b352
RH
19402003-01-31 Richard Henderson <rth@redhat.com>
1941
1942 * alpha-nat.c (REGISTER_PTRACE_ADDR): Merge into ...
1943 (register_addr): ... here. Support ALPHA_UNIQUE_REGNUM.
1944 (fetch_elf_core_registers): Support ALPHA_UNIQUE_REGNUM.
1945 * alpha-tdep.c (alpha_register_name): Add "unique".
1946 * alpha-tdep.h (ALPHA_NUM_REGS): Increment.
1947 (ALPHA_UNIQUE_REGNUM): New.
1948 * config/alpha/nm-linux.h (ALPHA_UNIQUE_PTRACE_ADDR): New.
1949
c48861fb
AC
19502003-01-31 Andrew Cagney <ac131313@redhat.com>
1951
1952 * README: Remove reference to Ericsson 1800 monitor.
1953 * Makefile.in (remote-es.o): Delete rule.
1954 (ALLDEPFILES): Delete remote-es.c.
1955 * remote-es.c: Delete file.
1956 * config/m68k/es1800.mt: Delete file.
1957 * config/djgpp/fnchange.lst: Update.
1958 * configure.tgt: Delete m68*-ericsson-* target.
1959
d764a824
AF
19602003-01-31 Adam Fedor <fedor@gnu.org>
1961
1962 * infrun.c (handle_inferior_event): Rename 'tmp' to real_stop_pc.
1963 Remove duplicate/shadowing variable of same name.
1964
fe36c4f4
JB
19652003-01-30 Jim Blandy <jimb@redhat.com>
1966
1967 * symfile.c (find_separate_debug_file): Assert that the objfile's
1968 directory name we compute ends with a slash, and then assume that
1969 that's so everywhere we use it.
1970
cb741690
DJ
19712003-01-30 Daniel Jacobowitz <drow@mvista.com>
1972
1973 * valops.c (value_assign): Flush frame cache after stores to memory
1974 also.
1975
96ee5227
AC
19762003-01-30 Andrew Cagney <ac131313@redhat.com>
1977
1978 * Makefile.in (mon960-rom.o): Delete rule.
1979 * mon960-rom.c: Delete file.
1980
7f6104a9
AC
19812003-01-30 Andrew Cagney <ac131313@redhat.com>
1982
1983 * d10v-tdep.c: Include "frame-unwind.h".
1984 (d10v_gdbarch_init): Append d10v_frame_p to the unwind predicate
1985 list.
1986 (next_addr, uses_frame): Delete.
1987 (struct d10v_unwind_cache): Define.
1988 (prologue_find_regs): Add struct d10v_unwind_cache info parameter.
1989 Use info instead of next_addr and uses_frame globals.
1990 (d10v_frame_init_saved_regs): Delete function.
1991 (d10v_init_extra_frame_info): Delete function.
1992 (d10v_gdbarch_init): Do not initialize init_extra_frame_info,
1993 frame_init_saved_regs or pop_frame, frame_chain, frame_chain_valid,
1994 init_frame_pc or frame_saved_pc.
1995 (d10v_pop_frame): Delete function.
1996 (do_d10v_pop_frame): Delete function.
1997 (d10v_frame_chain): Delete function.
1998 (d10v_frame_chain_valid): Delete function.
1999 (d10v_frame_pc_unwind): New function.
2000 (d10v_frame_id_unwind): New function.
2001 (saved_regs_unwinder): New function.
2002 (d10v_frame_register_unwind): New function.
2003 (d10v_frame_pop): New function.
2004 (d10v_frame_unwind): New variable.
2005 (d10v_frame_p): New function.
2006 (d10v_frame_saved_pc): Delete function.
2007 * Makefile.in (d10v-tdep.o): Update dependencies.
2008
cad2e848
JB
20092003-01-30 J. Brobecker <brobecker@gnat.com>
2010
2011 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Remove #undef
2012 causing some regressions due to a change in the default value
2013 for this macro.
2014
af34e669
DJ
20152003-01-29 Richard Henderson <rth@redhat.com>
2016 Elena Zannoni <ezannoni@redhat.com>
2017 Daniel Jacobowitz <drow@mvista.com>
2018
2019 Fix PR gdb/961.
2020 * dwarf2read.c (dwarf_ranges_offset, dwarf_ranges_size): New
2021 variables.
2022 (RANGES_SECTION): New.
2023 (dwarf_ranges_buffer): New variable.
2024 (struct comp_unit_head): Add member "die".
2025 (struct dwarf2_pinfo): Add dwarf_ranges_buffer, dwarf_ranges_size.
2026 (DWARF_RANGES_BUFFER, DWARF_RANGES_SIZE): New.
2027 (dwarf2_has_info): Init dwarf_ranges_offset and dwarf_ranges_size.
2028 (dwarf2_locate_sections): Likewise.
2029 (dwarf2_build_psymtabs): Read .debug_ranges.
2030 (dwarf2_build_psymtabs_hard): Swap dwarf_ranges out.
2031 (psymtab_to_symtab_1): Swap dwarf_ranges in. Set cu_header.die.
2032 (dwarf2_get_pc_bounds): New cu_header argument; adjust all callers.
2033 Look for DW_AT_ranges and return the bounding box.
2034
baa93fa6
CF
20352003-01-29 Brian Ford <ford@vss.fsi.com>
2036
2037 * win32-nat.c (cygwin_pid): Removed as unused.
2038 (child_attach): Try fall back to Cygwin pid.
2039
c63f977f
JB
20402003-01-29 Jim Blandy <jimb@redhat.com>
2041
2042 * objfiles.h (struct objfile): Doc fix.
2043
d62d1979
AC
20442003-01-29 Andrew Cagney <ac131313@redhat.com>
2045
2046 * frame.c (frame_saved_regs_id_unwind): Assert FRAME_CHAIN_P.
2047 (legacy_get_prev_frame): Assert FRAME_CHAIN_P.
2048 (get_prev_frame): When FRAME_CHAIN_P, call legacy_get_prev_frame.
2049 (frame_saved_regs_pc_unwind): Assert FRAME_SAVED_PC_P.
2050 * gdbarch.sh (FRAME_CHAIN): Change to a function with predicate.
2051 (FRAME_SAVED_PC): Change to a function with predicate.
2052 * gdbarch.h, gdbarch.c: Re-generate.
2053
1ae18a04
AC
20542003-01-28 Andrew Cagney <ac131313@redhat.com>
2055
52287340
AC
2056 * hppah-nat.c (child_pid_to_exec_file): Don't use boolean.
2057
1ae18a04
AC
2058 * complaints.c (complain): Delete function.
2059 * complaints.h (struct deprecated_complaint): Delete definition.
2060 (complain): Delete declaration.
2061
f2c16bd6
KB
20622003-01-28 Kevin Buettner <kevinb@redhat.com>
2063
2064 * mips-tdep.c (mips_init_extra_frame_info): Return early for
2065 dummy frames.
2066
a94dd1fd
AC
20672003-01-27 Andrew Cagney <ac131313@redhat.com>
2068
2069 * sentinel-frame.h, sentinel-frame.c: New files.
2070 * Makefile.in (frame.o): Update dependencies.
2071 (SFILES): Add sentinel-frame.c.
2072 (sentinel_frame_h): Define.
2073 (COMMON_OBS): Add sentinel-frame.o.
2074 (sentinel-frame.o): Specify dependencies.
2075 * frame.c: Include "sentinel-frame.h".
2076 (frame_register_unwind): Rewrite assuming that there is always a a
2077 ->next frame.
2078 (frame_register, generic_unwind_get_saved_register): Ditto.
2079 (frame_read_unsigned_register, frame_read_signed_register): Ditto.
2080 (create_sentinel_frame, unwind_to_current_frame): New functions.
2081 (get_current_frame): Rewrite using create_sentinel_frame and
2082 unwind_to_current_frame. When possible, always create a frame.
2083 (create_new_frame): Set next to the sentinel frame.
2084 (get_next_frame): Rewrite. Don't go below the level 0 frame.
2085 (deprecated_update_frame_pc_hack): Update the next frame's PC and
2086 ID cache when necessary.
2087 (frame_saved_regs_id_unwind): Use frame_relative_level.
2088 (deprecated_generic_get_saved_register): Use frame_relative_level,
2089 get_frame_saved_regs, get_frame_pc, get_frame_base and
2090 get_next_frame.
2091 (frame_saved_regs_register_unwind): Use get_frame_saved_regs and
2092 frame_register.
2093
5378adc4
DJ
20942003-01-27 Daniel Jacobowitz <drow@mvista.com>
2095
2096 * gdb_indent.sh: Add -T bfd and -T asection to the indent arguments.
2097
51ee2ddc
DJ
20982003-01-27 Daniel Jacobowitz <drow@mvista.com>
2099
2100 * maint.c [! (HAVE_MONSTARTUP && HAVE__MCLEANUP)]
2101 (maintenance_set_profile_cmd): Use error () instead of warning ().
2102
d9feb4e7
DJ
21032003-01-27 Daniel Jacobowitz <drow@mvista.com>
2104
2105 * configure.in: Check that -pg works if using --enable-profiling.
2106 Check for monstartup and _mcleanup regardless of --enable-profiling.
2107 * maint.c: Check for monstartup and _mcleanup before using them.
2108 * config.in: Regenerated.
2109 * configure: Regenerated.
2110
2d188dd3
NC
21112003-01-24 Nick Clifton <nickc@redhat.com>
2112
2113 * Add sh2e support:
2114
2115 2002-04-02 Elena Zannoni <ezannoni@redhat.com>
2116
2117 * gdb/sh-tdep.c (sh_sh2e_register_name): New.
2118 (sh2e_show_regs): New.
2119 (sh_gdbarch_init): Handle bfd_mach_sh2e.
2120 * config/sh/tm-sh.h: Added sh2e to comments.
2121
cb3c37b2
JB
21222003-01-23 Jim Blandy <jimb@redhat.com>
2123
2124 * symfile.c (syms_from_objfile): Don't print the "(no debugging
2125 symbols found)" message here; we haven't checked for a separate
2126 debug info file yet, so we don't know yet.
2127 (symbol_file_add_with_addrs_or_offsets): Print it here, after
2128 we've looked everywhere. Also, there's no need to print a special
2129 message when we're loading the separate debug info file: the one
2130 symbol_file_add prints is fine.
2131
5b5d99cf
JB
21322003-01-23 Alexander Larsson <alexl@redhat.com>
2133 Jim Blandy <jimb@redhat.com>
2134
2135 Add support for executables whose debug info has been separated
2136 out into a separate file, leaving only a link behind.
2137 * objfiles.h (struct objfile): New fields: separate_debug_objfile
2138 and separate_debug_objfile_backlink.
2139 (put_objfile_before): New declaration.
2140 * symfile.c: #include "filenames.h".
2141 (symbol_file_add_with_addrs_or_offsets): If this objfile has its
2142 debug info in a separate file, read that, too. Save the addrs
2143 argument, so we can use it again to read the separated debug info;
2144 syms_from_objfile modifies the table we pass it.
2145 (reread_symbols): After re-reading an objfile, call
2146 reread_separate_symbols to refresh its separate debug info
2147 objfile, if it has one.
2148 (reread_separate_symbols, find_separate_debug_file,
2149 get_debug_link_info, separate_debug_file_exists): New functions.
2150 (debug_file_directory): New global var.
2151 (_initialize_symfile): Initialize debug_file_directory, and
2152 provide the new `set debug-file-directory' command to let the user
2153 change it.
2154 * objfiles.c (free_objfile): If this objfile has its debug info in
2155 a separate objfile, free that one too. If this is itself a
2156 separate debug info objfile, clear our parent's backlink.
2157 (put_objfile_before): New function.
2158 * utils.c (gnu_debuglink_crc32): New function.
2159 * defs.h (gnu_debuglink_crc32): New declaration.
2160 * Makefile.in (symfile.o): Note dependency on "filenames.h".
2161 * configure.in: Handle --with-separate-debug-dir config option.
2162 * acinclude.m4 (AC_DEFINE_DIR): New macro.
2163 * acconfig.h (DEBUGDIR): New macro.
2164 * configure, aclocal.m4, config.in: Regenerated.
2165
7e8580c1
JB
21662003-01-22 Jim Blandy <jimb@redhat.com>
2167
7904e09f
JB
2168 * symfile.c (symbol_file_add_with_addrs_or_offsets): New function,
2169 like the old symbol_file_add, but taking new arguments: you can
2170 now pass in either a `struct section_addr_info' list to say where
2171 each section is loaded, or a `struct section_offsets' table. Pass
2172 these new arguments through to syms_from_objfile as appropriate.
2173 (symbol_file_add): Just call symbol_file_add_with_addrs_or_offsets,
2174 with the appropriate quiescent values for the new arguments.
2175
7e8580c1
JB
2176 * symfile.c: #include "gdb_assert.h".
2177 (syms_from_objfile): Add the ability to pass in a section offset
2178 table directly, as an alternative to the section_addr_info table.
2179 Document arguments better.
2180 (symbol_file_add): Pass extra arguments to syms_from_objfile.
2181 * symfile.h (syms_from_objfile): Update declaration.
2182 * rs6000-nat.c (objfile_symbol_add): Pass new arguments to
2183 syms_from_objfile.
2184 * Makefile.in (symfile.o): List dependency on $(gdb_assert_h).
2185
d28f9cdf
DJ
21862003-01-22 Daniel Jacobowitz <drow@mvista.com>
2187
2188 Original patch by Tom Tromey <tromey@cygnus.com> and
2189 Jason Molenda <jmolenda@apple.com>.
2190 * Makefile.in (PROFILE_CFLAGS): Substitute from configure.
2191 (INTERNAL_LDFLAGS): Don't include PROFILE_CFLAGS.
2192 * NEWS: Mention profiling.
2193 * configure.in (--enable-gdbtk): Fix typo.
2194 (--enable-profiling): New. Set PROFILE_CFLAGS.
2195 * maint.c (maintenance_set_profile_cmd): Remove NOTYET.
2196 Fill in function.
2197 (profiling_state): New variable.
2198 (mcleanup_wrapper): New function.
2199 (_initialize_maint): Remove NOTYET, fix call to
2200 add_setshow_boolean_cmd for "maint set profile".
2201 * configure: Regenerated.
2202
df21e465
MH
22032003-01-21 Martin M. Hunt <hunt@redhat.com>
2204
2205 * Makefile.in (install-gdbtk): Install PNG images too.
2206
73c1f219
AC
22072003-01-21 Andrew Cagney <ac131313@redhat.com>
2208
2209 * exec.c (text_start): Delete global variable.
2210 (exec_file_attach): Make text_start local to the function.
2211 * inferior.h (BEFORE_TEXT_END, AFTER_TEXT_END): Delete macros.
2212 * valops.c (hand_function_call): Delete code that handles
2213 BEFORE_TEXT_END and AFTER_TEXT_END.
2214 * gdbarch.sh (CALL_DUMMY_LENGTH): Test call_dummy_length instead
2215 of CALL_DUMMY_LOCATION.
2216 * gdbarch.c: Regenerate.
2217 * inferior.h (deprecated_pc_in_call_dummy_before_text_end)
2218 (deprecated_pc_in_call_dummy_after_text_end): Delete declaration.
2219 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2220 (deprecated_pc_in_call_dummy_after_text_end): Delete functions.
2221 (text_end): Delete extern declaration.
2222
eb4f72c5
AC
22232003-01-21 Andrew Cagney <ac131313@redhat.com>
2224
2225 * frame.h (FRAME_OBSTACK_ZALLOC): Define.
2226 * blockframe.c (backtrace_below_main): Move to "frame.c".
2227 (frame_chain_valid): Delete check for backtrace_below_main.
2228 (_initialize_blockframe): Delete initialization, move ``set
2229 backtrace-below-main'' command to "frame.c".
2230 (do_flush_frames_sfunc): Delete function.
2231 * frame.c: Include "command.h" and "gdbcmd.h".
2232 (frame_type_from_pc): New function.
2233 (create_new_frame): Use frame_type_from_pc.
2234 (legacy_get_prev_frame): New function.
2235 (get_prev_frame): Rewrite. When an old style frame, call
2236 legacy_get_prev_frame. Otherwize, unwind the PC first.
2237 (_initialize_frame): Add ``set backtrace-below-main'' command.
2238 * Makefile.in (frame.o): Update dependencies.
2239
778ce8cc
AC
22402003-01-19 Andrew Cagney <ac131313@redhat.com>
2241
2242 * config/pa/tm-hppa.h (DEPRECATED_DO_REGISTERS_INFO): Rename
2243 DEPRECATED_REGISTERS_INFO.
2244
01c193c8
AC
22452003-01-19 Andrew Cagney <ac131313@redhat.com>
2246
2247 * MAINTAINERS: Replace `Blanket Write Privs' with `Global
2248 Maintainers'. Update `Various Maintainers'.
2249
dedc2a2b
AC
22502003-01-19 Andrew Cagney <ac131313@redhat.com>
2251
2252 * frame.c (frame_saved_regs_pop): Assert POP_FRAME_P.
2253 * gdbarch.sh (POP_FRAME): Change to function with predicate.
2254 Suppress actual parameters when `-'.
2255 * gdbarch.h, gdbarch.c: Regenerate.
2256
b7261c70
AC
22572003-01-19 Andrew Cagney <ac131313@redhat.com>
2258
2259 * d10v-tdep.c (d10v_frame_saved_pc, d10v_frame_chain): Restore
2260 code handling dummy frames.
2261
dbe9fe58
AC
22622003-01-19 Andrew Cagney <ac131313@redhat.com>
2263
2264 * frame-unwind.h (frame_unwind_pop_ftype): Declare.
2265 (struct frame_unwind): Add field pop.
2266 * frame.h (frame_pop): Declare.
2267 * frame.c (frame_saved_regs_pop): New function.
2268 (trad_frame_unwinder): Add frame_saved_regs_pop.
2269 (frame_pop): New function.
2270 * dummy-frame.c (dummy_frame_pop): New function.
2271 (discard_innermost_dummy): New function.
2272 (generic_pop_dummy_frame): Use discard_innermost_dummy.
2273 (dummy_frame_unwind): Add dummy_frame_pop.
2274 * infrun.c (normal_stop): Call frame_pop instead of POP_FRAME.
2275 * valops.c (hand_function_call): Ditto.
2276 * stack.c (return_command): Ditto.
2277
570b8f7c
AC
22782003-01-18 Andrew Cagney <ac131313@redhat.com>
2279
2280 * cris-tdep.c: Fix function declaration indentation.
2281 * dwarfread.c, gdbcore.h, gdbtypes.h, i386v-nat.c: Ditto.
2282 * mips-tdep.c, monitor.h, parse.c, proc-utils.h: Ditto.
2283 * rs6000-nat.c, ser-go32.c, somread.c, stabsread.c: Ditto.
2284 * symfile.h, symtab.h, target.c, target.h, value.h: Ditto.
2285 * xcoffread.c, config/pa/tm-hppa.h: Ditto.
2286 * config/sparc/tm-sp64.h, config/sparc/tm-sparc.h: Ditto.
2287
22882003-01-18 Michael Chastain <mec@shout.net>
eaec4d85
MC
2289
2290 * README (Unpacking and Installation -- quick overview):
2291 Warn against ".../gdb-5.3/gdb/configure".
2292
494cca16
AC
22932003-01-18 Andrew Cagney <ac131313@redhat.com>
2294
2295 * dummy-frame.h (dummy_frame_id_unwind): Delete declaration.
2296 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2297 (struct frame_unwind): Declare opaque.
2298 (dummy_frame_p): Declare function.
2299 * dummy-frame.c (dummy_frame_id_unwind): Make static.
2300 (dummy_frame_pc_unwind, dummy_frame_register_unwind): Ditto.
2301 * dummy-frame.c: Include "frame-unwind.h".
2302 (dummy_frame_p): New function.
2303 (dummy_frame_unwind): New variable.
2304 * frame.c: Include "frame-unwind.h".
2305 (frame_pc_unwind, frame_id_unwind, frame_register_unwind): Update
2306 to use the new unwind field.
2307 (set_unwind_by_pc): Delete function.
2308 (create_new_frame, get_prev_frame): Set unwind field using
2309 frame_unwind_find_by_pc.
2310 (trad_frame_unwind, trad_frame_unwinder): New variables.
2311 * frame.h (trad_frame_unwind): Declare variable.
2312 (frame_id_unwind_ftype): Delete declaration.
2313 (frame_pc_unwind_ftype, frame_register_unwind_ftype): Ditto.
2314 (struct frame_unwind): Declare opaque.
2315 (struct frame_info): Replace the fields id_unwind, pc_unwind and
2316 register_unwind with a single unwind pointer.
2317 * frame-unwind.h, frame-unwind.c: New files.
2318 * Makefile.in (SFILES): Add frame-unwind.c.
2319 (frame_unwind_h): Define.
2320 (COMMON_OBS): Add frame-unwind.o.
2321 (frame-unwind.o): Specify dependencies.
2322 (frame.o, dummy-frame.o): Update dependencies.
2323
4efb68b1
AC
23242003-01-18 Andrew Cagney <ac131313@redhat.com>
2325
2326 * ada-valprint.c: Eliminate PTR.
2327 * breakpoint.c, corelow.c, cris-tdep.c, dbxread.c: Ditto.
2328 * defs.h, dve3900-rom.c, dwarf2read.c, dwarfread.c: Ditto.
2329 * exec.c, hppa-tdep.c, hpread.c, infcmd.c, mdebugread.c: Ditto.
2330 * objfiles.c, objfiles.h, ocd.c, remote-es.c: Ditto.
2331 * remote-mips.c, remote-sds.c, remote-vx.c: Ditto.
2332 * solib-svr4.c, solib.c, stack.c, symfile.c, symfile.h: Ditto.
2333 * symmisc.c, v850ice.c, xcoffread.c, cli/cli-script.c: Ditto.
2334
a84d24ee
AC
23352003-01-17 Andrew Cagney <ac131313@redhat.com>
2336
762f08a3
AC
2337 * main.c (captured_main): Don't use PTR.
2338 * cp-valprint.c (cp_print_class_method): Replace STREQ with strcmp.
2339 * gdbtypes.c (lookup_primitive_typename): Ditto.
2340 (lookup_struct_elt_type): Ditto.
2341 * f-valprint.c (info_common_command): Ditto.
2342 (list_all_visible_commons): Ditto.
2343 * jv-typeprint.c (java_type_print_base): Ditto.
2344
a84d24ee
AC
2345 * config/djgpp/fnchange.lst: Rename mi1-var-block.exp,
2346 mi1-var-child.exp, mi1-var-cmd.exp and mi1-var-display.exp.
2347 Rename opcodes/iq2000-desc.c and opcodes/iq2000-dis.c. Rename
2348 i386-interix-nat.c and i386-interix-tdep.c. Rename
2349 m68klinux-nat.c and m68klinux-tdep.c. Rename
2350 config/mips/tm-linux.h and config/mips/tm-linux64.h. Rename
2351 bfd/po/.cvsignore and opcodes/po/.cvsignore. Rename
2352 gdb/objc-exp.tab.c and gdb/ada-exp.tab.c
2353 * main.c (captured_main): Use xfree, not free.
2354
c170fb60
AC
23552003-01-16 Andrew Cagney <ac131313@redhat.com>
2356
2357 * frame.h (frame_id_unwind_ftype): Change type so that the frame's
2358 ID back using a parameter.
2359 * frame.c (frame_id_unwind): Update call.
2360 (frame_saved_regs_id_unwind): Update.
2361 * dummy-frame.c (dummy_frame_id_unwind): Update function.
2362 * dummy-frame.h (struct frame_id): Add opaque declaration.
2363 (dummy_frame_id_unwind): Update declaration.
2364
867f3898
AC
23652003-01-15 Andrew Cagney <ac131313@redhat.com>
2366
2367 * sparc-tdep.c: Delete reference to PRINT_REGISTER_HOOK.
2368
40622be8 23692003-01-15 Stephen P. Smith <ischis2@cox.net>
de3a8c23 2370
40622be8 2371 * MAINTAINERS (Stephen P. Smith): Updated email address.
de3a8c23 2372
ae66c1fc
EZ
23732003-01-14 Elena Zannoni <ezannoni@redhat.com>
2374
997b089a 2375 Fix PR gdb/898
ae66c1fc
EZ
2376 * breakpoint.c (until_break_command): Add new argument. Use it to
2377 decide whether to stop only at the current frame or not.
2378 * breakpoint.h (until_break_command): Update prototype.
2379 * infcmd.c (until_command): Add new argument to until_break_command
2380 call.
2381 (advance_command): New function.
2382 (_initialize_infcmd): Update help string for 'until' command.
2383 Add new 'advance' command.
2384
a04257e6
DC
23852003-01-14 David Carlton <carlton@math.stanford.edu>
2386
2387 * linespec.c (decode_line_1): Normalize comments.
2388 (set_flags): Ditto.
2389 (locate_first_half): Ditto.
2390 (decode_compound): Ditto.
2391 (symtab_from_filename): Ditto.
2392 (decode_all_digits): Ditto.
2393 (decode_dollar): Ditto.
2394 (find_methods): Ditto.
2395 (find_toplevel_char): Ditto.
2396
1bac305b
AC
23972003-01-13 Andrew Cagney <ac131313@redhat.com>
2398
2399 * ax-gdb.c, c-valprint.c, charset.c, corefile.c: Update copyright.
2400 * demangle.c, disasm.c, dwarf2cfi.c, dwarfread.c: Update copyright.
2401 * elfread.c, eval.c, expprint.c, expression.h: Update copyright.
2402 * f-typeprint.c, findvar.c, gcore.c, gdb_mbuild.sh: Update copyright.
2403 * gdbtypes.h, gnu-v2-abi.c, inferior.h, inftarg.c: Update copyright.
2404 * language.c, language.h, m32r-tdep.c: Update copyright.
2405 * mn10200-tdep.c, scm-lang.c, scm-lang.h: Update copyright.
2406 * somsolib.c, somsolib.h, symfile.c, symtab.h: Update copyright.
2407 * thread-db.c, typeprint.c, utils.c, valarith.c: Update copyright.
2408 * values.c, win32-nat.c, x86-64-linux-nat.c: Update copyright.
2409 * x86-64-linux-tdep.c, z8k-tdep.c: Update copyright.
2410 * cli/cli-decode.h, config/h8500/tm-h8500.h: Update copyright.
2411
25caa7a8
EZ
24122003-01-13 Elena Zannoni <ezannoni@redhat.com>
2413
2414 * stabsread.h (process_later, resolve_cfront_continuation):
2415 Obsolete.
2416 Update copyright years.
2417 * buildsym.c (start_subfile): Obsolete comment pertinent to Cfront.
2418 Update copyright year.
2419 * dbxread.c(struct cont_elem): Obsolete.
2420 (process_later, process_now): Obsolete functions.
2421 (read_dbx_symtab, read_ofile_symtab): Obsolete cfront support.
2422 Update copyright year.
2423 * gdbtypes.c (INIT_EXTRA, ADD_EXTRA): Obsolete macros.
2424 (add_name, add_mangled_type, cfront_mangle_name): Obsolete functions.
2425 * mdebugread.c (parse_type): Obsolete comment pertinent to Cfront.
2426 (parse_partial_symbols): Obsolete cfront support.
2427 * stabsread.c
2428 (CFRONT_VISIBILITY_PRIVATE,CFRONT_VISIBILITY_PUBLIC): Obsolete
2429 macros.
2430 (get_substring, get_cfront_method_physname, msg_unknown_complaint,
2431 read_cfront_baseclasses, read_cfront_member_functions,
2432 resolve_cfront_continuation,read_cfront_static_fields,
2433 copy_cfront_struct_fields): Obsolete functions.
2434 (define_symbol, read_one_struct_field): Obsolete cfront support.
2435 * xcoffread.c (scan_xcoff_symtab): Obsolete CFront support.
2436 Update Copyright year.
2437
7789c6f5
EZ
24382003-01-13 Elena Zannoni <ezannoni@redhat.com>
2439
2440 * stack.c (print_frame_info, print_stack_frame_base_stub,
2441 print_stack_frame_base, show_and_print_stack_frame_stub,
2442 show_and_print_stack_frame, print_only_stack_frame_stub,
2443 print_only_stack_frame): Delete functions.
2444 (print_stack_frame_stub): Call print_frame_info instead of
2445 print_frame_info_base.
2446 (print_frame_info_base): Rename to print_frame_info.
2447 (backtrace_command_1): Call print_frame_info, instead of
2448 print_frame_info_base.
2449 (current_frame_command): Call print_stack_frame, instead of
2450 print_only_stack_frame.
2451 (frame_command): Call print_stack_frame, instead of
2452 show_and_print_stack_frame.
2453 (up_command): Ditto.
2454 (down_command): Ditto.
2455 * frame.h (print_only_stack_frame): Delete prototype.
2456 * infrun.c (normal_stop): Call print_stack_frame, instead of
2457 show_and_print_stack_frame.
2458 * thread.c (info_threads_command): Call print_stack_frame, instead
2459 of print_only_stack_frame.
2460
3f5a3016
AC
24612003-01-13 Andrew Cagney <ac131313@redhat.com>
2462
d99ba314
AC
2463 * README (Graphical interface to GDB): Update URL. Point at
2464 gdb/links/.
2465
3f5a3016
AC
2466 * gdb_indent.sh: Update to version 2.2.9. Warn when not exact
2467 version match.
2468
083ae935
DJ
24692003-01-13 Daniel Jacobowitz <drow@mvista.com>
2470
2471 * symtab.c (find_pc_sect_line): Don't consider end-of-function
2472 lines.
2473
5365276c
DJ
24742003-01-13 Daniel Jacobowitz <drow@mvista.com>
2475
2476 * thread-db.c (attach_thread): Prototype.
2477 (struct private_thread_info): Remove lwpid. Add thread handle (th),
2478 thread information (ti), and valid flags (th_valid, ti_valid).
2479 (attach_thread): Move target_pid_to_str call to after the thread
2480 is added to GDB's list. Initialize the cache.
2481 (thread_get_info_callback, thread_db_map_id2thr)
2482 (thread_db_get_info): New functions.
2483 (thread_from_lwp, lwp_from_thread, thread_db_fetch_registers)
2484 (thread_db_store_registers, thread_db_thread_alive)
2485 (thread_db_get_thread_local_address): Use them.
2486 (thread_db_pid_to_str): Likewise. Return "Missing" instead
2487 of calling error() for threads in unknown state.
2488
2489 (clear_lwpid_callback): New function.
2490 (thread_db_resume): Use it to clear the cache.
2491
9fc30b6b
DJ
24922003-01-13 Daniel Jacobowitz <drow@mvista.com>
2493
2494 * lin-lwp.c (struct private_thread_info, find_lwp_callback): Remove.
2495 (resume_callback): Remove dead code.
2496
8f871025
AC
24972003-01-13 Andrew Cagney <ac131313@redhat.com>
2498
2499 * gdbarch.sh (FRAME_INIT_SAVED_REGS): Change to function with
2500 predicate.
2501 * gdbarch.h, gdbarch.c: Regenerate.
2502 * stack.c (frame_info): Only initialize the saved registers when
2503 FRAME_INIT_SAVED_REGS_P.
2504 * frame.c (frame_saved_regs_register_unwind): Assert
2505 FRAME_INIT_SAVED_REGS_P.
2506 (deprecated_generic_get_saved_register): Ditto.
2507
3f565f1e
DJ
25082003-01-13 Daniel Jacobowitz <drow@mvista.com>
2509
2510 * source.c (openp): Squelch warning about "filename".
2511
072b1022
DJ
25122003-01-13 Daniel Jacobowitz <drow@mvista.com>
2513
2514 * source.c (openp): If the file does not exist don't necessarily
2515 search the path.
2516
973ccf8b
DJ
25172003-01-13 Daniel Jacobowitz <drow@mvista.com>
2518
2519 Fix PR gdb/872.
2520 * gdbtypes.c (init_type): Mark "char" as TYPE_FLAG_NOSIGN.
2521 (integer_types_same_name_p): New function.
2522 (rank_one_type): Use it.
2523 * stabsread.c (read_range_type): Mark "char" as TYPE_FLAG_NOSIGN.
2524
030292b7
DJ
25252003-01-13 Daniel Jacobowitz <drow@mvista.com>
2526
2527 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): New
2528 variables.
2529 (main.o): Custom rule which uses $(TARGET_SYSTEM_ROOT_DEFINE).
2530 * configure.in: Add --with-sysroot.
2531 * configure: Regenerated.
2532 * main.c (gdb_sysroot): New variable.
2533 (captured_main): Initialize gdb_sysroot.
2534 * defs.h (gdb_sysroot): New extern declaration.
2535 * solib.c (_initialize_solib): Initialize solib_absolute_prefix.
2536
afb5d334
MC
25372003-01-12 Michael Chastain <mec@shout.net>
2538
2539 * config/djgpp/fnchange.lst: add gdb/ChangeLog-2002.
2540
751ceeb4
MC
25412003-01-12 Michael Chastain <mec@shout.net>
2542
2543 * top.c (print_gdb_version): Bump copyright year to 2003.
2544
94cd26f8
DC
25452003-01-12 David Carlton <carlton@bactrian.org>
2546
2547 * linespec.c (symtab_from_filename): Rename variable 's' to
2548 'file_symtab'.
2549
1ce79225
AC
25502003-01-12 Andrew Cagney <ac131313@redhat.com>
2551
2552 * d10v-tdep.c (d10v_init_extra_frame_info): Remove checks for a
2553 dummy frame.
2554 (d10v_frame_saved_pc, d10v_frame_chain): Ditto.
2555
fa1fd571
AC
25562003-01-12 Andrew Cagney <ac131313@redhat.com>
2557
2558 * d10v-tdep.c: Include "gdb_assert.h".
2559 (d10v_store_return_value): Rewrite to match current interface.
2560 (d10v_extract_struct_value_address): Ditto.
2561 (d10v_extract_return_value): Ditto.
2562 (d10v_gdbarch_init): Set store_restore_value,
2563 extract_struct_value_address and extract_return_value.
2564
68b8d23e
JB
25652003-01-12 J. Brobecker <brobecker@gnat.com>
2566
2567 * hpread.c (set_namestring): New procedure replacing the
2568 SET_NAMESTRING macro.
2569 (hpread_build_psymtabs): Replace calls to SET_NAMESTRING
2570 by calls to set_namestring.
2571
25722003-01-11 J. Brobecker <brobecker@gnat.com>
1fb309ea
JB
2573
2574 * hpread.c (SET_NAMESTRING): Remove an incorrect cast to fix
2575 a compilation warning.
2576 (hpread_process_one_debug_symbol): Likewise.
2577
88d262ca
DC
25782003-01-10 David Carlton <carlton@math.stanford.edu>
2579
2580 * linespec.c (decode_line_1): Rename variable 's' to
2581 'file_symtab'.
2582 (decode_all_digits): Rename argument 's' to 'file_symtab'.
2583 (decode_dollar): Ditto.
2584 (decode_variable): Ditto.
2585 (symbol_found): Ditto.
2586
86669319
MC
25872003-01-09 Michael Chastain <mec@shout.net>
2588
2589 * config/djgpp/fnchange.lst: update file list for testsuite/gdb.c++.
2590
616a9dc4
CV
25912003-01-07 Corinna Vinschen <vinschen@redhat.com>
2592
2593 * win32-nat.c (set_process_privilege): New function.
2594 (child_attach): Call set_process_privilege() to enable the
2595 SE_DEBUG_NAME user privilege if available in process token.
2596
3269bcfa
JB
25972003-01-10 J. Brobecker <brobecker@gnat.com>
2598
2599 * hpread.c (hpread_process_one_debug_symbol): Fix a small
2600 compilation error in the previous revision.
2601
2b0ee454
DC
26022003-01-09 David Carlton <carlton@math.stanford.edu>
2603
2604 * linespec.c: Update copyright.
2605
b3ba1b44
DJ
26062003-01-09 Daniel Jacobowitz <drow@mvista.com>
2607
2608 * lin-lwp.c (child_wait): Ignore exit statuses for processes other
2609 than inferior_ptid.
2610 (lin_lwp_wait): Ignore exit statuses for unknown LWPs.
2611
4ef3f3be
AC
26122003-01-09 Andrew Cagney <ac131313@redhat.com>
2613
479ab5a0
AC
2614 * frame.h (frame_obstack_zalloc): Replace frame_obstack_alloc.
2615 Update comments.
2616 * frame.c (frame_obstack_zalloc): Replace frame_obstack_alloc.
2617 (frame_saved_regs_zalloc): Update.
2618 (frame_saved_regs_register_unwind): Update.
2619 (create_new_frame): Update.
2620 (get_prev_frame): Update.
2621 (frame_extra_info_zalloc): Update.
2622 (deprecated_get_frame_saved_regs): Update.
2623 * dwarf2cfi.c (cfi_init_extra_frame_info): Update.
2624 * cris-tdep.c: Update comment.
2625
bde58177
AC
2626 * somsolib.h: Fix function indentation.
2627 * disasm.c, buildsym.c, buildsym.h: Eliminate PTR.
2628 * gnu-v2-abi.c, f-typeprint.c, x86-64-linux-tdep.c: Eliminate STREQ.
2629 * demangle.c, ax-gdb.c, c-valprint.c: Eliminate STREQ.
2630 * alpha-osf1-tdep.c, corefile.c: Eliminate STREQ.
2631 * somsolib.c, inftarg.c: Remove assignment in if conditional.
2632
4ef3f3be
AC
2633 * infrun.c (follow_fork): Use ISO C definition.
2634 * expprint.c (print_subexp): Use xfree instead of free.
2635 * charset.c: Include "gdb_string.h" instead of <string.h>.
2636 (register_iconv_charsets): Use ISO C definition.
2637 (host_charset, target_charset): Ditto.
2638 * Makefile.in (charset.o): Update dependencies.
2639 (mi-cmd-env.o): Update dependencies.
2640
1c615f7a
AC
26412003-01-08 Andrew Cagney <cagney@redhat.com>
2642
2643 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
2644 get_frame_base.
2645
c9a1dc08
AC
26462003-01-08 Andrew Cagney <ac131313@redhat.com>
2647
2648 * gdb_mbuild.sh: Add --keep option. When specified, keep the
2649 build directories. Save edited gdb output in Mbuild.log. If a
2650 build fails, remove any final GDB executable.
2651
dbad9d94
AC
26522003-01-08 Andrew Cagney <ac131313@redhat.com>
2653
2654 * gdb_mbuild.sh: Edit the output of `maint print architecture'
2655 replacing hex constants with function names and stripping leading
2656 file name directory prefixes.
2657
8d357cca
AC
26582003-01-08 Andrew Cagney <cagney@redhat.com>
2659
2660 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
2661 get_frame_base.
2662
bca02a8a
DC
26632003-01-08 David Carlton <carlton@math.stanford.edu>
2664
2665 * linespec.c (decode_line_1): Move code into decode_variable.
2666 (decode_variable): New function.
2667
7f8ab3a0
AC
26682003-01-08 Andrew Cagney <ac131313@redhat.com>
2669
2670 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
2671
7b5849cc
AC
26722003-01-08 Andrew Cagney <cagney@redhat.com>
2673
2674 * cris-tdep.c (cris_frame_init_saved_regs): Use
2675 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
2676 saved_regs buffer.
2677 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
2678 (sh64_nofp_frame_init_saved_regs): Ditto.
2679 (sh_fp_frame_init_saved_regs): Ditto.
2680 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
2681 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2682 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2683 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2684
72a5efb3
DJ
26852003-01-08 Daniel Jacobowitz <drow@mvista.com>
2686
2687 * minsyms.c (lookup_minimal_symbol): Update comment.
2688 (lookup_minimal_symbol_text): Update comment. Use the hash table.
2689 (lookup_minimal_symbol_solib_trampoline): Likewise.
2690
11c02a10
AC
26912003-01-08 Andrew Cagney <cagney@redhat.com>
2692
aab3ea25
AC
2693 * d10v-tdep.c (d10v_init_extra_frame_info): Use
2694 frame_relative_level.
2695
da50a4b7
AC
2696 * alpha-tdep.c: Use get_frame_extra_info.
2697 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2698 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
2699 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2700 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
2701
11c02a10
AC
2702 * alpha-tdep.c: Use get_next_frame.
2703 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2704 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
2705 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
2706 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
2707 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
2708 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
2709 * xstormy16-tdep.c: Ditto.
2710
1e2330ba
AC
27112003-01-07 Andrew Cagney <cagney@redhat.com>
2712
2713 * alpha-tdep.c: Use get_frame_base.
2714 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
2715 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
2716 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
2717 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
2718 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
2719 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
2720 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
2721 * config/sparc/tm-sparc.h: Ditto.
2722
2d75187b
AC
27232003-01-07 Andrew Cagney <cagney@redhat.com>
2724
2725 * frame.c (deprecated_get_frame_context): New function.
2726 (deprecated_set_frame_context): New function.
2727 * frame.h (deprecated_get_frame_context): Declare.
2728 (deprecated_set_frame_context): Declare.
2729 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
2730 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
2731
483d36b2
AC
27322003-01-07 Andrew Cagney <cagney@redhat.com>
2733
2734 * frame.c (deprecated_set_frame_next_hack): New function.
2735 (deprecated_set_frame_prev_hack): New function.
2736 * frame.h (deprecated_set_frame_next_hack): Declare.
2737 (deprecated_set_frame_prev_hack): Declare.
2738 * mcore-tdep.c (analyze_dummy_frame): Use
2739 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
2740 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2741
14e91ac5
DC
27422003-01-07 David Carlton <carlton@math.stanford.edu>
2743
2744 * linespec.c (decode_line_1): Move code into decode_dollar.
2745 (decode_dollar): New function.
2746
b0c6b05c
AC
27472003-01-07 Andrew Cagney <cagney@redhat.com>
2748
2749 * arm-tdep.c (arm_init_extra_frame_info): Use
2750 deprecated_update_frame_base_hack.
2751 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
2752 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
2753 (fix_frame_pointer): Ditto.
2754 (mn10300_analyze_prologue): Ditto.
2755
a00a19e9
AC
27562003-01-07 Andrew Cagney <cagney@redhat.com>
2757
2758 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
2759 extra_info using frame_extra_info_zalloc.
2760 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
2761 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
2762 (sh64_init_extra_frame_info): Ditto.
2763 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
2764 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
2765 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
2766 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
2767 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
2768 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
2769 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
2770 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
2771 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
2772 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
2773 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
2774 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
2775
2776 * mn10300-tdep.c (analyze_dummy_frame): Use
2777 deprecated_set_frame_extra_info_hack.
2778 * mcore-tdep.c (analyze_dummy_frame): Ditto.
2779
1fb4c65b
JB
27802003-01-07 J. Brobecker <brobecker@gnat.com>
2781
2782 * mdebugread.c (parse_symbol): Skip stProc entries which storage
2783 class is not scText. These do not define "real" procedures.
2784 (parse_partial_symbols): Likewise.
2785
9fe7d6bf
MS
27862003-01-06 Michael Snyder <msnyder@redhat.com>
2787
2788 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
2789
f6c609c4
AC
27902003-01-06 Andrew Cagney <ac131313@redhat.com>
2791
2792 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
2793 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
2794 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
2795 deprecated_frame_xmalloc_with_cleanup.
2796 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
2797 deprecated_frame_xmalloc.
2798 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
2799 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
2800
d995ff4b
AC
28012003-01-06 Andrew Cagney <cagney@redhat.com>
2802
84dc46cb
AC
2803 * x86-64-linux-tdep.c: Include "osabi.h".
2804 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
2805
d995ff4b
AC
2806 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
2807
66140c26
AC
28082003-01-06 Andrew Cagney <cagney@redhat.com>
2809
2810 * MAINTAINERS (Target Instruction Set Architectures): Update
2811 arm-elf. Can be built with -Werror, has been multiarched.
2812
2813 * value.h (unpack_long): Make buffer parameter constant.
2814 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
2815 * scm-lang.h (scm_parse): Ditto.
2816 * defs.h (extract_typed_address, extract_address): Ditto.
2817 (extract_long_unsigned_integer): Ditto.
2818 * inferior.h (unsigned_pointer_to_address): Ditto.
2819 (signed_pointer_to_address): Ditto.
2820 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
2821 * gdbarch.h, gdbarch.c: Regenerate.
2822 * findvar.c (extract_long_unsigned_integer): Update.
2823 (extract_address): Update.
2824 (extract_typed_address): Update.
2825 (unsigned_pointer_to_address): Update.
2826 * values.c (unpack_long): Update.
2827 (unpack_double): Update.
2828 (unpack_pointer): Update.
2829 (unpack_field_as_long): Update.
2830 * d10v-tdep.c (d10v_pointer_to_address): Update.
2831 * avr-tdep.c (avr_pointer_to_address): Update.
2832 * scm-lang.c (scm_unpack): Update.
2833 * findvar.c (signed_pointer_to_address): Update.
2834
b089b3da
ML
28352003-01-06 Michal Ludvig <mludvig@suse.cz>
2836
2837 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
2838 since it is in i386-tdep.c.
2839
aff87235
JB
28402003-01-06 J. Brobecker <brobecker@gnat.com>
2841
2842 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
2843 failure introduced in the previous change.
2844
34f5e845
MC
28452003-01-05 Michael Chastain <mec@shout.net>
2846
2847 * README: Remove references to deleted remote-*.c files:
2848 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
2849 remote-nrom.c, remote-os9k.c, remote-udi.c.
2850
28bcfd30
MK
28512003-01-05 Mark Kettenis <kettenis@gnu.org>
2852
2853 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
2854 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
2855 i386_get_longjmp_target.
2856
15a5b3ee
AC
28572003-01-05 Andrew Cagney <ac131313@redhat.com>
2858
2859 * arm-tdep.c (prologue_cache): Change to a pointer.
2860 (_initialize_arm_tdep): Allocate prologue_cache.
2861 (check_prologue_cache): Update.
2862 (save_prologue_cache): Update.
2863 (arm_gdbarch_init): Update.
2864
c263362b
DJ
28652003-01-04 Daniel Jacobowitz <drow@mvista.com>
2866
2867 * stabsread.c (update_method_name_from_physname): Call complaint()
2868 instead of error.
2869
51603483
DJ
28702003-01-04 Daniel Jacobowitz <drow@mvista.com>
2871
2872 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
2873 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
2874 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
2875
2876 * blockframe.c: Include "gdbcmd.h" and "command.h".
2877 (backtrace_below_main): New variable.
2878 (file_frame_chain_valid, func_frame_chain_valid)
2879 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
2880 (generic_func_frame_chain_valid): Remove functions.
2881 (frame_chain_valid, do_flush_frames_sfunc): New functions.
2882 (_initialize_blockframe): New function.
2883 * Makefile.in (blockframe.o): Update dependencies.
2884 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
2885 comment. Call frame_chain_valid ().
2886 * frame.h: Remove old prototypes. Add prototype for
2887 frame_chain_valid and update comments to match.
2888 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
2889 Remove old comment.
2890 * gdbarch.h: Regenerated.
2891 * gdbarch.c: Regenerated.
2892
2893 * alpha-tdep.c (alpha_gdbarch_init): Don't call
2894 set_gdbarch_frame_chain_valid.
2895 * avr-tdep.c (avr_gdbarch_init): Likewise.
2896 * cris-tdep.c (cris_gdbarch_init): Likewise.
2897 * frv-tdep.c (frv_gdbarch_init): Likewise.
2898 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
2899 * i386-tdep.c (i386_svr4_init_abi): Likewise.
2900 (i386_nw_init_abi): Likewise.
2901 (i386_gdbarch_init): Likewise.
2902 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
2903 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2904 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
2905 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
2906 * mips-tdep.c (mips_gdbarch_init): Likewise.
2907 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
2908 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
2909 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
2910 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2911 * s390-tdep.c (s390_gdbarch_init): Likewise.
2912 * sh-tdep.c (sh_gdbarch_init): Likewise.
2913 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
2914 * v850-tdep.c (v850_gdbarch_init): Likewise.
2915 * vax-tdep.c (vax_gdbarch_init): Likewise.
2916 * x86-64-tdep.c (x86_64_init_abi): Likewise.
2917
2918 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
2919 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
2920 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
2921 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
2922 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
2923 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
2924 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
2925 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
2926
b00a8037
DJ
29272002-01-04 Daniel Jacobowitz <drow@mvista.com>
2928
2929 * Makefile.in (acconfig_h): Remove incorrect macro.
2930 (config_h): Define.
2931 (osabi.o): Update dependencies.
2932 * configure.tgt: Set gdb_osabi based on target triplet.
2933 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
2934 * configure: Regenerated.
2935 * config.in: Regenerated.
2936 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
2937 (GDB_OSABI_DEFAULT): Define if not already defined.
2938 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
2939 (set_osabi_string): New variables.
2940 (gdbarch_register_osabi): Add new OS ABI to
2941 gdb_osabi_available_names.
2942 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
2943 (set_osabi, show_osabi): New functions.
2944 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
2945
4be87837
DJ
29462003-01-04 Daniel Jacobowitz <drow@mvista.com>
2947
2948 * arch-utils.c (gdbarch_info_init): Set osabi to
2949 GDB_OSABI_UNINITIALIZED.
2950 * gdbarch.sh: Add osabi to struct gdbarch and to struct
2951 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
2952 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
2953 * gdbarch.c: Regenerated.
2954 * gdbarch.h: Regenerated.
2955 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
2956 there's no BFD.
2957 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
2958 * osabi.h (enum gdb_osabi): Move to defs.h.
2959 (gdbarch_init_osabi): Update prototype.
2960 * defs.h (enum gdb_osabi): Moved here.
2961 * Makefile.in: Update dependencies.
2962
2963 * alpha-tdep.h: Don't include "osabi.h".
2964 (struct gdbarch_tdep): Remove osabi member.
2965 * alpha-tdep.c: Include "osabi.h".
2966 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2967 iterate over arches. Update call to gdbarch_init_osabi.
2968 (alpha_dump_tdep): Don't dump osabi.
2969 * alpha-linux-tdep.c: Include "osabi.h".
2970 * alpha-osf1-tdep.c: Include "osabi.h".
2971 * alphafbsd-tdep.c: Include "osabi.h".
2972 * alphanbsd-tdep.c: Include "osabi.h".
2973
2974 * arm-tdep.h: Don't include "osabi.h".
2975 (struct gdbarch_tdep): Remove osabi member.
2976 * arm-tdep.c: Include "osabi.h".
2977 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2978 iterate over arches. Update call to gdbarch_init_osabi.
2979 (arm_dump_tdep): Don't dump osabi.
2980 * arm-linux-tdep.c: Include "osabi.h".
2981 * armnbsd-tdep.c: Include "osabi.h".
2982
2983 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
2984 Update call to gdbarch_init_osabi.
2985
2986 * i386-tdep.h: Don't include "osabi.h".
2987 (struct gdbarch_tdep): Remove osabi member.
2988 * i386-tdep.c: Include "osabi.h".
2989 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
2990 iterate over arches. Update call to gdbarch_init_osabi.
2991 (i386_dump_tdep): Don't dump osabi.
2992 * i386-linux-tdep.c: Include "osabi.h".
2993 * i386-sol2-tdep.c: Include "osabi.h".
2994 * i386bsd-tdep.c: Include "osabi.h".
2995 * i386gnu-tdep.c: Include "osabi.h".
2996 * i386ly-tdep.c: Include "osabi.h".
2997 * i386nbsd-tdep.c: Include "osabi.h".
2998 * i386obsd-tdep.c: Include "osabi.h".
2999
3000 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
3001 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3002 check osabi when iterating over arches. Update call to
3003 gdbarch_init_osabi.
3004 (mips_dump_tdep): Don't dump osabi.
3005
3006 * ns32k-tdep.h: Don't include "osabi.h".
3007 (struct gdbarch_tdep): Remove.
3008 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
3009 gdbarch_lookup_osabi. Don't iterate over arches. Don't
3010 allocate tdep. Update call to gdbarch_init_osabi.
3011 (ns32k_dump_tdep): Remove.
3012 (_initialize_ns32k_tdep): Update call to gdbarch_register.
3013 * ns32knbsd-tdep.c: Include "osabi.h".
3014
3015 * ppc-tdep.h: Don't include "osabi.h".
3016 (struct gdbarch_tdep): Remove osabi member.
3017 * rs6000-tdep.c: Include "osabi.h".
3018 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
3019 osabi when iterating over arches. Update call to
3020 gdbarch_init_osabi.
3021 (rs6000_dump_tdep): Don't dump osabi.
3022 * ppc-linux-tdep.c: Include "osabi.h".
3023 * ppcnbsd-tdep.c: Include "osabi.h".
3024
3025 * sh-tdep.h: Don't include "osabi.h".
3026 (struct gdbarch_tdep): Remove osabi member.
3027 * sh-tdep.c: Include "osabi.h".
3028 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3029 iterate over arches. Update call to gdbarch_init_osabi.
3030 (sh_dump_tdep): Don't dump osabi.
3031 * shnbsd-tdep.c: Include "osabi.h".
3032
3033 * sparc-tdep.c: Include "osabi.h".
3034 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3035 iterate over arches. Update call to gdbarch_init_osabi.
3036 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
3037 tdep structure.
3038
3039 * vax-tdep.h: Don't include "osabi.h".
3040 (struct gdbarch_tdep): Remove.
3041 * vax-tdep.c: Include "osabi.h".
3042 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
3043 iterate over arches. Don't allocate tdep. Update call
3044 to gdbarch_init_osabi.
3045 (vax_dump_tdep): Remove.
3046 (_initialize_vax_tdep): Update call to gdbarch_register.
3047
a881cf8e
DJ
30482003-01-04 Daniel Jacobowitz <drow@mvista.com>
3049
3050 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
3051 entirely.
3052 (breakpoint_re_set_one): Don't fetch the value for a disabled
3053 watchpoint.
3054
1e698235
DJ
30552003-01-04 Daniel Jacobowitz <drow@mvista.com>
3056
3057 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
3058 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
3059 (COERCE_FLOAT_TO_DOUBLE): Remove.
3060 * gdbarch.c: Regenerate.
3061 * gdbarch.h: Regenerate.
3062 * Makefile.in: Remove value_h from gdbarch_h.
3063 * valops.c (coerce_float_to_double): New variable.
3064 (default_coerce_float_to_double): Remove.
3065 (standard_coerce_float_to_double): Remove.
3066 (value_arg_coerce): Use coerce_float_to_double.
3067 (_initialize_valops): Add "set coerce-float-to-double".
3068 * value.h (default_coerce_float_to_double): Remove prototype.
3069 (standard_coerce_float_to_double): Remove prototype.
3070
3071 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
3072 prototyped.
3073 * mdebugread.c (parse_symbol): Likewise.
3074 * stabsread.c (define_symbol): Mark all functions as prototyped.
3075
3076 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
3077 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
3078 set_gdbarch_coerce_float_to_double.
3079 * arm-tdep.c (arm_gdbarch_init): Likewise.
3080 * frv-tdep.c (frv_gdbarch_init): Likewise.
3081 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
3082 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
3083 * mips-tdep.c (mips_gdbarch_init): Likewise.
3084 (mips_coerce_float_to_double): Remove.
3085 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
3086 (rs6000_coerce_float_to_double): Remove.
3087 * s390-tdep.c (s390_gdbarch_init): Likewise.
3088 * sh-tdep.c (sh_gdbarch_init): Likewise.
3089 (sh_coerce_float_to_double): Remove.
3090 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
3091 (sparc_coerce_float_to_double): Remove.
3092 * v850-tdep.c (v850_gdbarch_init): Likewise.
3093 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
3094 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3095 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
3096 (hppa_coerce_float_to_double): Remove prototype.
3097 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
3098
f436a26a
DJ
30992003-01-04 Daniel Jacobowitz <drow@mvista.com>
3100
3101 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
3102
248f8055
DJ
31032003-01-04 Daniel Jacobowitz <drow@mvista.com>
3104
3105 Suggested by Stewart Brown <sb24@avaya.com>:
3106 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
3107 in recursive calls. Handle TYPE_CODE_TYPEDEF.
3108 (c_type_print_varspec_suffix): Likewise.
3109
72cfdc76
MK
31102003-01-04 Mark Kettenis <kettenis@gnu.org>
3111
bfd260bb
MK
3112 * configure.in: Don't set and AC_SUBST SUBDIRS.
3113 * configure: Regenerated.
3114
72cfdc76
MK
3115 * configure.in: Remove code dealing with shared libraries.
3116 * Makefile.in: Remove HLDFLAGS and HLDENV.
3117 * configure: Regenerated.
3118
c8b8a898
AC
31192003-01-04 Andrew Cagney <ac131313@redhat.com>
3120
3121 * frame.c (deprecated_frame_xmalloc): New function.
3122 (deprecated_set_frame_saved_regs_hack): New function.
3123 (deprecated_set_frame_extra_info_hack): New function.
3124 * frame.h (deprecated_frame_xmalloc): Declare.
3125 (deprecated_set_frame_saved_regs_hack): Declare.
3126 (deprecated_set_frame_extra_info_hack): Declare.
3127
14abd0fb
MK
31282003-01-04 Mark Kettenis <kettenis@gnu.org>
3129
8ee53726
MK
3130 * configure.in: Move code that provides the --enable-gdbtk option
3131 right after the code that handles the --enable-tui option, and
3132 polish it somewhat.
3133 * configure: Regenerated.
3134
14abd0fb
MK
3135 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
3136 AC_CHECK_FUNCS and remove the old check for pread64.
3137 * acinclude.m4 (AC_GNU_SOURCE): New macro.
3138 * acconfig.h (_GNU_SOURCE): Add.
3139 (HAVE_PREAD64): Remove.
3140 * configure, aclocal.m4, config.in: Regenerated.
3141
b2fb4676
AC
31422003-01-03 Andrew Cagney <ac131313@redhat.com>
3143
3144 * alpha-tdep.c: Use get_frame_saved_regs.
3145 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3146 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
3147 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
3148 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
3149 * vax-tdep.c, xstormy16-tdep.c: Ditto.
3150
8dcde887
MK
31512003-01-03 Mark Kettenis <kettenis@gnu.org>
3152
3153 * configure.in: Remove all use of the SUBDIRS variable; add
3154 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
3155 code providing the --enable-multi-ice option, and move it right in
3156 front of the code that checks whether gdbserver is supported.
3157 Polish that too.
3158 * configure: Regenerated.
3159 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
3160 @SUBDIRS@.
3161
8ccd593b
AC
31622003-01-03 Andrew Cagney <cagney@redhat.com>
3163
3164 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
3165 * avr-tdep.c, cris-tdep.c: Ditto.
3166 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
3167 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3168
91151a06
MK
31692003-01-03 Mark Kettenis <kettenis@gnu.org>
3170
3171 * configure.in: Remove --enable-netrom option.
3172 * configure: Regenerated.
3173
8fe84d01
MK
31742003-01-03 Mark Kettenis <kettenis@gnu.org>
3175
3176 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
3177 declaration for `struct re_pattern_buffer' instead.
3178 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
3179
f0394be6
JB
31802003-01-03 J. Brobecker <brobecker@gnat.com>
3181
3182 * mdebugread.c (parse_symbol): Count until the stEnd matching
3183 the structure name.
3184
27e9bf90
MK
31852003-01-02 Mark Kettenis <kettenis@gnu.org>
3186
93d331ba
MK
3187 * configure.in: Remove --with-cpu option.
3188 subscripts. Remove evil changequotes here.
3189 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
3190 * config.in, configure: Regenerated.
3191
27e9bf90
MK
3192 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
3193 * configure.in: Cleanup section that sources GDB and BFD configure
3194 subscripts. Remove evil changequotes here.
3195 * config.in, configure: Regenerated.
3196
50abf9e5
AC
31972003-01-02 Andrew Cagney <ac131313@redhat.com>
3198
3199 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
3200 frame accessor methods.
3201 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
3202 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
3203 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
3204 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
3205 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
3206 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
3207 * z8k-tdep.c: Ditto.
3208
287c1a40
MK
32092003-01-02 Mark Kettenis <kettenis@gnu.org>
3210
f5dbc56d
MK
3211 * configure.in: Remove UI_OUT configuration code.
3212 * ada-lang.c: Update assuming UI_OUT is always true.
3213 * Makefile.in (UIOUT_CFLAGS): Remove.
3214 * configure: Regenerated.
3215 * TODO: Remove blurb about elimination of -DUI_OUT.
3216
627af7ea
MK
3217 * configure.in: Move code that provides the --enable-gdbcli,
3218 --enable-gdbmi options right before the code that handles the
3219 --enable-tui option. Polish a bit.
3220 * configure: Regenerated.
3221
06825bd1
MK
3222 * configure.in: Rewrite check for GNU regex and the
3223 --without-included regex option, and move it into the "Checks for
3224 library functions" section. This makes us use the system regex
3225 again by default on systems with version 2 of the GNU C library.
3226 This was apparently broken.
3227 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
3228 * acconfig.h (USE_INCLUDED_REGEX): Remove.
3229 * config.in, configure: Regenerated.
3230
287c1a40
MK
3231 * configure.in: Move code that provides the --enable-tui option
3232 before the "Checks for libraries" section. Polish the code
3233 somewhat and set need_curses to yes if we build the TUI. Rewrite
3234 code that looks for a library providing termcap functionality to
3235 match more closely what's done in the Readline library, and move
3236 it into to the "Checks for libraries" section.
3237 * configure: Regenerated.
3238 * Makefile.in (TERMCAP): Remove variable.
3239 * config/i386/go32.mh (TERMCAP): Remove variable.
3240
684e56bf
AC
32412003-01-02 Andrew Cagney <ac131313@redhat.com>
3242
3243 * MAINTAINERS: Mention gdb_mbuild.sh.
3244 * gdb_mbuild.sh: Rewrite.
3245
e1ea1d75
MK
32462003-01-02 Mark Kettenis <kettenis@gnu.org>
3247
3248 * configure.in: Fix typo in last change.
3249 * config.in, configure: Regenerated.
3250
1b831c93
AC
32512003-01-02 Andrew Cagney <ac131313@redhat.com>
3252
3253 * valarith.c (value_binop): Delete obsolete code and comments.
3254 * configure.host: Ditto.
3255 * buildsym.h (make_blockvector): Ditto.
3256 * buildsym.c (make_blockvector): Ditto.
3257 * defs.h (enum language): Ditto.
3258 (chill_demangle): Ditto.
3259 * elfread.c (elf_symtab_read): Ditto.
3260 * dwarfread.c (CHILL_PRODUCER): Ditto.
3261 (set_cu_language): Ditto.
3262 (handle_producer): Ditto.
3263 * expprint.c (print_subexp): Ditto.
3264 * gdbtypes.c (chill_varying_type): Ditto.
3265 * gdbtypes.h (builtin_type_chill_bool): Ditto.
3266 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
3267 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
3268 (chill_varying_type): Ditto.
3269 * language.h (_LANG_chill): Ditto.
3270 * language.c (binop_result_type, integral_type): Ditto.
3271 (character_type, string_type, structured_type): Ditto.
3272 (lang_bool_type, binop_type_check): Ditto.
3273 * stabsread.h (os9k_stabs): Ditto.
3274 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
3275 (define_symbol, read_type, read_struct_fields): Ditto.
3276 (read_array_type, read_enum_type, read_huge_number): Ditto.
3277 (read_range_type, start_stabs): Ditto.
3278 * symfile.c (init_filename_language_table): Ditto.
3279 (add_psymbol_with_dem_name_to_list): Ditto.
3280 * symtab.c (symbol_init_language_specific): Ditto.
3281 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
3282 * symtab.h (struct general_symbol_info): Ditto.
3283 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
3284 * typeprint.c (typedef_print): Ditto.
3285 * utils.c (fprintf_symbol_filtered): Ditto.
3286 * valops.c (value_cast, search_struct_field, value_slice): Delete
3287 obsolete code.
3288 (varying_to_slice): Delete function.
3289 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
3290 (varying_to_slice): Delete declaration.
3291 * MAINTAINERS: Update.
3292
8bb2c122
MK
32932003-01-02 Mark Kettenis <kettenis@gnu.org>
3294
97bf5e38
MK
3295 * configure.in: Reorganize "Checks for library functions section"
3296 a bit. Remove check for `btowc' and `isascii' functions.
3297 * configure: Regenerated.
3298
5ee754fc
MK
3299 * acconfig.h (_MSE_INT_H): Remove.
3300 * configure.in: Create "Checks for header files" section, and move
3301 appropriate tests there. Don't check for objlist.h, wchar.h,
3302 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
3303 misdetection fix. Also add "Checks for types", "Checks for
3304 compiler characteristics" and "Checks for library functions"
3305 sections.
3306 * config.in, configure: Regenerated.
3307
8bb2c122
MK
3308 * configure.in: Create "Checks for programs" section, and move
3309 appropriate tests there.
3310
9a156167
MK
33112003-01-01 Mark Kettenis <kettenis@gnu.org>
3312
3313 * configure.in: Create "Checks for libraries" section, and move
3314 appropriate tests there. Cleanup check for wctype in libw. Use
3315 AC_SEARCH_LIBS to see whether we need libsocket.
3316 * configure: Regenerated.
3317
a80e2bcb 3318For older changes see ChangeLog-2002
c906108c
SS
3319\f
3320Local Variables:
3321mode: change-log
3322left-margin: 8
3323fill-column: 74
3324version-control: never
3325End: