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