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