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