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