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