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