2003-01-08 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-08 Andrew Cagney <ac131313@redhat.com>
2
3 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
4
5 2003-01-08 Andrew Cagney <cagney@redhat.com>
6
7 * cris-tdep.c (cris_frame_init_saved_regs): Use
8 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
9 saved_regs buffer.
10 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
11 (sh64_nofp_frame_init_saved_regs): Ditto.
12 (sh_fp_frame_init_saved_regs): Ditto.
13 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
14 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
15 * mcore-tdep.c (analyze_dummy_frame): Ditto.
16 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
17
18 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
19
20 * minsyms.c (lookup_minimal_symbol): Update comment.
21 (lookup_minimal_symbol_text): Update comment. Use the hash table.
22 (lookup_minimal_symbol_solib_trampoline): Likewise.
23
24 2003-01-08 Andrew Cagney <cagney@redhat.com>
25
26 * d10v-tdep.c (d10v_init_extra_frame_info): Use
27 frame_relative_level.
28
29 * alpha-tdep.c: Use get_frame_extra_info.
30 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
31 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
32 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
33 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
34
35 * alpha-tdep.c: Use get_next_frame.
36 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
37 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
38 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
39 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
40 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
41 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
42 * xstormy16-tdep.c: Ditto.
43
44 2003-01-07 Andrew Cagney <cagney@redhat.com>
45
46 * alpha-tdep.c: Use get_frame_base.
47 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
48 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
49 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
50 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
51 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
52 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
53 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
54 * config/sparc/tm-sparc.h: Ditto.
55
56 2003-01-07 Andrew Cagney <cagney@redhat.com>
57
58 * frame.c (deprecated_get_frame_context): New function.
59 (deprecated_set_frame_context): New function.
60 * frame.h (deprecated_get_frame_context): Declare.
61 (deprecated_set_frame_context): Declare.
62 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
63 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
64
65 2003-01-07 Andrew Cagney <cagney@redhat.com>
66
67 * frame.c (deprecated_set_frame_next_hack): New function.
68 (deprecated_set_frame_prev_hack): New function.
69 * frame.h (deprecated_set_frame_next_hack): Declare.
70 (deprecated_set_frame_prev_hack): Declare.
71 * mcore-tdep.c (analyze_dummy_frame): Use
72 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
73 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
74
75 2003-01-07 David Carlton <carlton@math.stanford.edu>
76
77 * linespec.c (decode_line_1): Move code into decode_dollar.
78 (decode_dollar): New function.
79
80 2003-01-07 Andrew Cagney <cagney@redhat.com>
81
82 * arm-tdep.c (arm_init_extra_frame_info): Use
83 deprecated_update_frame_base_hack.
84 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
85 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
86 (fix_frame_pointer): Ditto.
87 (mn10300_analyze_prologue): Ditto.
88
89 2003-01-07 Andrew Cagney <cagney@redhat.com>
90
91 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
92 extra_info using frame_extra_info_zalloc.
93 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
94 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
95 (sh64_init_extra_frame_info): Ditto.
96 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
97 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
98 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
99 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
100 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
101 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
102 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
103 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
104 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
105 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
106 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
107 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
108
109 * mn10300-tdep.c (analyze_dummy_frame): Use
110 deprecated_set_frame_extra_info_hack.
111 * mcore-tdep.c (analyze_dummy_frame): Ditto.
112
113 2003-01-07 J. Brobecker <brobecker@gnat.com>
114
115 * mdebugread.c (parse_symbol): Skip stProc entries which storage
116 class is not scText. These do not define "real" procedures.
117 (parse_partial_symbols): Likewise.
118
119 2003-01-06 Michael Snyder <msnyder@redhat.com>
120
121 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
122
123 2003-01-06 Andrew Cagney <ac131313@redhat.com>
124
125 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
126 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
127 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
128 deprecated_frame_xmalloc_with_cleanup.
129 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
130 deprecated_frame_xmalloc.
131 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
132 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
133
134 2003-01-06 Andrew Cagney <cagney@redhat.com>
135
136 * x86-64-linux-tdep.c: Include "osabi.h".
137 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
138
139 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
140
141 2003-01-06 Andrew Cagney <cagney@redhat.com>
142
143 * MAINTAINERS (Target Instruction Set Architectures): Update
144 arm-elf. Can be built with -Werror, has been multiarched.
145
146 * value.h (unpack_long): Make buffer parameter constant.
147 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
148 * scm-lang.h (scm_parse): Ditto.
149 * defs.h (extract_typed_address, extract_address): Ditto.
150 (extract_long_unsigned_integer): Ditto.
151 * inferior.h (unsigned_pointer_to_address): Ditto.
152 (signed_pointer_to_address): Ditto.
153 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
154 * gdbarch.h, gdbarch.c: Regenerate.
155 * findvar.c (extract_long_unsigned_integer): Update.
156 (extract_address): Update.
157 (extract_typed_address): Update.
158 (unsigned_pointer_to_address): Update.
159 * values.c (unpack_long): Update.
160 (unpack_double): Update.
161 (unpack_pointer): Update.
162 (unpack_field_as_long): Update.
163 * d10v-tdep.c (d10v_pointer_to_address): Update.
164 * avr-tdep.c (avr_pointer_to_address): Update.
165 * scm-lang.c (scm_unpack): Update.
166 * findvar.c (signed_pointer_to_address): Update.
167
168 2003-01-06 Michal Ludvig <mludvig@suse.cz>
169
170 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
171 since it is in i386-tdep.c.
172
173 2003-01-06 J. Brobecker <brobecker@gnat.com>
174
175 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
176 failure introduced in the previous change.
177
178 2003-01-05 Michael Chastain <mec@shout.net>
179
180 * README: Remove references to deleted remote-*.c files:
181 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
182 remote-nrom.c, remote-os9k.c, remote-udi.c.
183
184 2003-01-05 Mark Kettenis <kettenis@gnu.org>
185
186 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
187 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
188 i386_get_longjmp_target.
189
190 2003-01-05 Andrew Cagney <ac131313@redhat.com>
191
192 * arm-tdep.c (prologue_cache): Change to a pointer.
193 (_initialize_arm_tdep): Allocate prologue_cache.
194 (check_prologue_cache): Update.
195 (save_prologue_cache): Update.
196 (arm_gdbarch_init): Update.
197
198 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
199
200 * stabsread.c (update_method_name_from_physname): Call complaint()
201 instead of error.
202
203 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
204
205 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
206 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
207 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
208
209 * blockframe.c: Include "gdbcmd.h" and "command.h".
210 (backtrace_below_main): New variable.
211 (file_frame_chain_valid, func_frame_chain_valid)
212 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
213 (generic_func_frame_chain_valid): Remove functions.
214 (frame_chain_valid, do_flush_frames_sfunc): New functions.
215 (_initialize_blockframe): New function.
216 * Makefile.in (blockframe.o): Update dependencies.
217 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
218 comment. Call frame_chain_valid ().
219 * frame.h: Remove old prototypes. Add prototype for
220 frame_chain_valid and update comments to match.
221 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
222 Remove old comment.
223 * gdbarch.h: Regenerated.
224 * gdbarch.c: Regenerated.
225
226 * alpha-tdep.c (alpha_gdbarch_init): Don't call
227 set_gdbarch_frame_chain_valid.
228 * avr-tdep.c (avr_gdbarch_init): Likewise.
229 * cris-tdep.c (cris_gdbarch_init): Likewise.
230 * frv-tdep.c (frv_gdbarch_init): Likewise.
231 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
232 * i386-tdep.c (i386_svr4_init_abi): Likewise.
233 (i386_nw_init_abi): Likewise.
234 (i386_gdbarch_init): Likewise.
235 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
236 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
237 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
238 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
239 * mips-tdep.c (mips_gdbarch_init): Likewise.
240 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
241 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
242 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
243 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
244 * s390-tdep.c (s390_gdbarch_init): Likewise.
245 * sh-tdep.c (sh_gdbarch_init): Likewise.
246 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
247 * v850-tdep.c (v850_gdbarch_init): Likewise.
248 * vax-tdep.c (vax_gdbarch_init): Likewise.
249 * x86-64-tdep.c (x86_64_init_abi): Likewise.
250
251 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
252 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
253 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
254 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
255 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
256 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
257 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
258 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
259
260 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
261
262 * Makefile.in (acconfig_h): Remove incorrect macro.
263 (config_h): Define.
264 (osabi.o): Update dependencies.
265 * configure.tgt: Set gdb_osabi based on target triplet.
266 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
267 * configure: Regenerated.
268 * config.in: Regenerated.
269 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
270 (GDB_OSABI_DEFAULT): Define if not already defined.
271 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
272 (set_osabi_string): New variables.
273 (gdbarch_register_osabi): Add new OS ABI to
274 gdb_osabi_available_names.
275 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
276 (set_osabi, show_osabi): New functions.
277 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
278
279 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
280
281 * arch-utils.c (gdbarch_info_init): Set osabi to
282 GDB_OSABI_UNINITIALIZED.
283 * gdbarch.sh: Add osabi to struct gdbarch and to struct
284 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
285 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
286 * gdbarch.c: Regenerated.
287 * gdbarch.h: Regenerated.
288 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
289 there's no BFD.
290 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
291 * osabi.h (enum gdb_osabi): Move to defs.h.
292 (gdbarch_init_osabi): Update prototype.
293 * defs.h (enum gdb_osabi): Moved here.
294 * Makefile.in: Update dependencies.
295
296 * alpha-tdep.h: Don't include "osabi.h".
297 (struct gdbarch_tdep): Remove osabi member.
298 * alpha-tdep.c: Include "osabi.h".
299 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
300 iterate over arches. Update call to gdbarch_init_osabi.
301 (alpha_dump_tdep): Don't dump osabi.
302 * alpha-linux-tdep.c: Include "osabi.h".
303 * alpha-osf1-tdep.c: Include "osabi.h".
304 * alphafbsd-tdep.c: Include "osabi.h".
305 * alphanbsd-tdep.c: Include "osabi.h".
306
307 * arm-tdep.h: Don't include "osabi.h".
308 (struct gdbarch_tdep): Remove osabi member.
309 * arm-tdep.c: Include "osabi.h".
310 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
311 iterate over arches. Update call to gdbarch_init_osabi.
312 (arm_dump_tdep): Don't dump osabi.
313 * arm-linux-tdep.c: Include "osabi.h".
314 * armnbsd-tdep.c: Include "osabi.h".
315
316 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
317 Update call to gdbarch_init_osabi.
318
319 * i386-tdep.h: Don't include "osabi.h".
320 (struct gdbarch_tdep): Remove osabi member.
321 * i386-tdep.c: Include "osabi.h".
322 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
323 iterate over arches. Update call to gdbarch_init_osabi.
324 (i386_dump_tdep): Don't dump osabi.
325 * i386-linux-tdep.c: Include "osabi.h".
326 * i386-sol2-tdep.c: Include "osabi.h".
327 * i386bsd-tdep.c: Include "osabi.h".
328 * i386gnu-tdep.c: Include "osabi.h".
329 * i386ly-tdep.c: Include "osabi.h".
330 * i386nbsd-tdep.c: Include "osabi.h".
331 * i386obsd-tdep.c: Include "osabi.h".
332
333 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
334 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
335 check osabi when iterating over arches. Update call to
336 gdbarch_init_osabi.
337 (mips_dump_tdep): Don't dump osabi.
338
339 * ns32k-tdep.h: Don't include "osabi.h".
340 (struct gdbarch_tdep): Remove.
341 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
342 gdbarch_lookup_osabi. Don't iterate over arches. Don't
343 allocate tdep. Update call to gdbarch_init_osabi.
344 (ns32k_dump_tdep): Remove.
345 (_initialize_ns32k_tdep): Update call to gdbarch_register.
346 * ns32knbsd-tdep.c: Include "osabi.h".
347
348 * ppc-tdep.h: Don't include "osabi.h".
349 (struct gdbarch_tdep): Remove osabi member.
350 * rs6000-tdep.c: Include "osabi.h".
351 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
352 osabi when iterating over arches. Update call to
353 gdbarch_init_osabi.
354 (rs6000_dump_tdep): Don't dump osabi.
355 * ppc-linux-tdep.c: Include "osabi.h".
356 * ppcnbsd-tdep.c: Include "osabi.h".
357
358 * sh-tdep.h: Don't include "osabi.h".
359 (struct gdbarch_tdep): Remove osabi member.
360 * sh-tdep.c: Include "osabi.h".
361 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
362 iterate over arches. Update call to gdbarch_init_osabi.
363 (sh_dump_tdep): Don't dump osabi.
364 * shnbsd-tdep.c: Include "osabi.h".
365
366 * sparc-tdep.c: Include "osabi.h".
367 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
368 iterate over arches. Update call to gdbarch_init_osabi.
369 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
370 tdep structure.
371
372 * vax-tdep.h: Don't include "osabi.h".
373 (struct gdbarch_tdep): Remove.
374 * vax-tdep.c: Include "osabi.h".
375 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
376 iterate over arches. Don't allocate tdep. Update call
377 to gdbarch_init_osabi.
378 (vax_dump_tdep): Remove.
379 (_initialize_vax_tdep): Update call to gdbarch_register.
380
381 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
382
383 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
384 entirely.
385 (breakpoint_re_set_one): Don't fetch the value for a disabled
386 watchpoint.
387
388 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
389
390 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
391 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
392 (COERCE_FLOAT_TO_DOUBLE): Remove.
393 * gdbarch.c: Regenerate.
394 * gdbarch.h: Regenerate.
395 * Makefile.in: Remove value_h from gdbarch_h.
396 * valops.c (coerce_float_to_double): New variable.
397 (default_coerce_float_to_double): Remove.
398 (standard_coerce_float_to_double): Remove.
399 (value_arg_coerce): Use coerce_float_to_double.
400 (_initialize_valops): Add "set coerce-float-to-double".
401 * value.h (default_coerce_float_to_double): Remove prototype.
402 (standard_coerce_float_to_double): Remove prototype.
403
404 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
405 prototyped.
406 * mdebugread.c (parse_symbol): Likewise.
407 * stabsread.c (define_symbol): Mark all functions as prototyped.
408
409 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
410 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
411 set_gdbarch_coerce_float_to_double.
412 * arm-tdep.c (arm_gdbarch_init): Likewise.
413 * frv-tdep.c (frv_gdbarch_init): Likewise.
414 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
415 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
416 * mips-tdep.c (mips_gdbarch_init): Likewise.
417 (mips_coerce_float_to_double): Remove.
418 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
419 (rs6000_coerce_float_to_double): Remove.
420 * s390-tdep.c (s390_gdbarch_init): Likewise.
421 * sh-tdep.c (sh_gdbarch_init): Likewise.
422 (sh_coerce_float_to_double): Remove.
423 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
424 (sparc_coerce_float_to_double): Remove.
425 * v850-tdep.c (v850_gdbarch_init): Likewise.
426 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
427 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
428 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
429 (hppa_coerce_float_to_double): Remove prototype.
430 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
431
432 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
433
434 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
435
436 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
437
438 Suggested by Stewart Brown <sb24@avaya.com>:
439 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
440 in recursive calls. Handle TYPE_CODE_TYPEDEF.
441 (c_type_print_varspec_suffix): Likewise.
442
443 2003-01-04 Mark Kettenis <kettenis@gnu.org>
444
445 * configure.in: Don't set and AC_SUBST SUBDIRS.
446 * configure: Regenerated.
447
448 * configure.in: Remove code dealing with shared libraries.
449 * Makefile.in: Remove HLDFLAGS and HLDENV.
450 * configure: Regenerated.
451
452 2003-01-04 Andrew Cagney <ac131313@redhat.com>
453
454 * frame.c (deprecated_frame_xmalloc): New function.
455 (deprecated_set_frame_saved_regs_hack): New function.
456 (deprecated_set_frame_extra_info_hack): New function.
457 * frame.h (deprecated_frame_xmalloc): Declare.
458 (deprecated_set_frame_saved_regs_hack): Declare.
459 (deprecated_set_frame_extra_info_hack): Declare.
460
461 2003-01-04 Mark Kettenis <kettenis@gnu.org>
462
463 * configure.in: Move code that provides the --enable-gdbtk option
464 right after the code that handles the --enable-tui option, and
465 polish it somewhat.
466 * configure: Regenerated.
467
468 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
469 AC_CHECK_FUNCS and remove the old check for pread64.
470 * acinclude.m4 (AC_GNU_SOURCE): New macro.
471 * acconfig.h (_GNU_SOURCE): Add.
472 (HAVE_PREAD64): Remove.
473 * configure, aclocal.m4, config.in: Regenerated.
474
475 2003-01-03 Andrew Cagney <ac131313@redhat.com>
476
477 * alpha-tdep.c: Use get_frame_saved_regs.
478 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
479 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
480 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
481 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
482 * vax-tdep.c, xstormy16-tdep.c: Ditto.
483
484 2003-01-03 Mark Kettenis <kettenis@gnu.org>
485
486 * configure.in: Remove all use of the SUBDIRS variable; add
487 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
488 code providing the --enable-multi-ice option, and move it right in
489 front of the code that checks whether gdbserver is supported.
490 Polish that too.
491 * configure: Regenerated.
492 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
493 @SUBDIRS@.
494
495 2003-01-03 Andrew Cagney <cagney@redhat.com>
496
497 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
498 * avr-tdep.c, cris-tdep.c: Ditto.
499 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
500 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
501
502 2003-01-03 Mark Kettenis <kettenis@gnu.org>
503
504 * configure.in: Remove --enable-netrom option.
505 * configure: Regenerated.
506
507 2003-01-03 Mark Kettenis <kettenis@gnu.org>
508
509 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
510 declaration for `struct re_pattern_buffer' instead.
511 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
512
513 2003-01-03 J. Brobecker <brobecker@gnat.com>
514
515 * mdebugread.c (parse_symbol): Count until the stEnd matching
516 the structure name.
517
518 2003-01-02 Mark Kettenis <kettenis@gnu.org>
519
520 * configure.in: Remove --with-cpu option.
521 subscripts. Remove evil changequotes here.
522 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
523 * config.in, configure: Regenerated.
524
525 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
526 * configure.in: Cleanup section that sources GDB and BFD configure
527 subscripts. Remove evil changequotes here.
528 * config.in, configure: Regenerated.
529
530 2003-01-02 Andrew Cagney <ac131313@redhat.com>
531
532 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
533 frame accessor methods.
534 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
535 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
536 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
537 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
538 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
539 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
540 * z8k-tdep.c: Ditto.
541
542 2003-01-02 Mark Kettenis <kettenis@gnu.org>
543
544 * configure.in: Remove UI_OUT configuration code.
545 * ada-lang.c: Update assuming UI_OUT is always true.
546 * Makefile.in (UIOUT_CFLAGS): Remove.
547 * configure: Regenerated.
548 * TODO: Remove blurb about elimination of -DUI_OUT.
549
550 * configure.in: Move code that provides the --enable-gdbcli,
551 --enable-gdbmi options right before the code that handles the
552 --enable-tui option. Polish a bit.
553 * configure: Regenerated.
554
555 * configure.in: Rewrite check for GNU regex and the
556 --without-included regex option, and move it into the "Checks for
557 library functions" section. This makes us use the system regex
558 again by default on systems with version 2 of the GNU C library.
559 This was apparently broken.
560 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
561 * acconfig.h (USE_INCLUDED_REGEX): Remove.
562 * config.in, configure: Regenerated.
563
564 * configure.in: Move code that provides the --enable-tui option
565 before the "Checks for libraries" section. Polish the code
566 somewhat and set need_curses to yes if we build the TUI. Rewrite
567 code that looks for a library providing termcap functionality to
568 match more closely what's done in the Readline library, and move
569 it into to the "Checks for libraries" section.
570 * configure: Regenerated.
571 * Makefile.in (TERMCAP): Remove variable.
572 * config/i386/go32.mh (TERMCAP): Remove variable.
573
574 2003-01-02 Andrew Cagney <ac131313@redhat.com>
575
576 * MAINTAINERS: Mention gdb_mbuild.sh.
577 * gdb_mbuild.sh: Rewrite.
578
579 2003-01-02 Mark Kettenis <kettenis@gnu.org>
580
581 * configure.in: Fix typo in last change.
582 * config.in, configure: Regenerated.
583
584 2003-01-02 Andrew Cagney <ac131313@redhat.com>
585
586 * valarith.c (value_binop): Delete obsolete code and comments.
587 * configure.host: Ditto.
588 * buildsym.h (make_blockvector): Ditto.
589 * buildsym.c (make_blockvector): Ditto.
590 * defs.h (enum language): Ditto.
591 (chill_demangle): Ditto.
592 * elfread.c (elf_symtab_read): Ditto.
593 * dwarfread.c (CHILL_PRODUCER): Ditto.
594 (set_cu_language): Ditto.
595 (handle_producer): Ditto.
596 * expprint.c (print_subexp): Ditto.
597 * gdbtypes.c (chill_varying_type): Ditto.
598 * gdbtypes.h (builtin_type_chill_bool): Ditto.
599 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
600 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
601 (chill_varying_type): Ditto.
602 * language.h (_LANG_chill): Ditto.
603 * language.c (binop_result_type, integral_type): Ditto.
604 (character_type, string_type, structured_type): Ditto.
605 (lang_bool_type, binop_type_check): Ditto.
606 * stabsread.h (os9k_stabs): Ditto.
607 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
608 (define_symbol, read_type, read_struct_fields): Ditto.
609 (read_array_type, read_enum_type, read_huge_number): Ditto.
610 (read_range_type, start_stabs): Ditto.
611 * symfile.c (init_filename_language_table): Ditto.
612 (add_psymbol_with_dem_name_to_list): Ditto.
613 * symtab.c (symbol_init_language_specific): Ditto.
614 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
615 * symtab.h (struct general_symbol_info): Ditto.
616 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
617 * typeprint.c (typedef_print): Ditto.
618 * utils.c (fprintf_symbol_filtered): Ditto.
619 * valops.c (value_cast, search_struct_field, value_slice): Delete
620 obsolete code.
621 (varying_to_slice): Delete function.
622 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
623 (varying_to_slice): Delete declaration.
624 * MAINTAINERS: Update.
625
626 2003-01-02 Mark Kettenis <kettenis@gnu.org>
627
628 * configure.in: Reorganize "Checks for library functions section"
629 a bit. Remove check for `btowc' and `isascii' functions.
630 * configure: Regenerated.
631
632 * acconfig.h (_MSE_INT_H): Remove.
633 * configure.in: Create "Checks for header files" section, and move
634 appropriate tests there. Don't check for objlist.h, wchar.h,
635 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
636 misdetection fix. Also add "Checks for types", "Checks for
637 compiler characteristics" and "Checks for library functions"
638 sections.
639 * config.in, configure: Regenerated.
640
641 * configure.in: Create "Checks for programs" section, and move
642 appropriate tests there.
643
644 2003-01-01 Mark Kettenis <kettenis@gnu.org>
645
646 * configure.in: Create "Checks for libraries" section, and move
647 appropriate tests there. Cleanup check for wctype in libw. Use
648 AC_SEARCH_LIBS to see whether we need libsocket.
649 * configure: Regenerated.
650
651 2002-12-31 Mark Kettenis <kettenis@gnu.org>
652
653 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
654 * config.in, configure: Regenerated.
655
656 2002-12-31 Mark Kettenis <kettenis@gnu.org>
657
658 * gdb_dirent.h: Cleanup and update code to match the example in
659 the Autoconf manual.
660 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
661 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
662 * configure: Regenerated.
663
664 2002-12-30 Adam Fedor <fedor@gnu.org>
665
666 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
667 (yylex): Initialize c to avoid uninitialized warning.
668
669 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
670
671 * doc/fdl.texi: Revert the last change.
672
673 2002-12-29 Mark Kettenis <kettenis@gnu.org>
674
675 * tracepoint.c (ISATTY): Removed.
676
677 2002-12-26 J. Brobecker <brobecker@gnat.com>
678
679 Continuing work to convert the hppa targets to multiarch partil.
680
681 * hppa-tdep.c: Add some missing forward declarations.
682 (frameless_function_invocation): Prefix the function name
683 by "hppa_" to avoid polluting the namespace. Update all calls
684 to use the new function name.
685 (saved_pc_after_call): Ditto.
686 (init_extra_frame_info): Ditto.
687 (frame_chain): Ditto.
688 (push_dummy_frame): Ditto.
689 (target_read_pc): Ditto.
690 (target_write_pc): Ditto.
691 (in_solib_call_trampoline): Ditto.
692 (in_solib_return_trampoline): Ditto.
693 (skip_trampoline_code): Ditto.
694 (hppa_read_fp): New function, renamed from target_read_fp.
695 (hppa_target_read_fp): New function, using hppa_read_fp.
696 This function conforms to the function profile for the
697 READ_FP gdbarch method.
698 (hppa_extract_struct_value_address): New function, extracted
699 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
700 macro.
701 (hppa_frame_num_args): New function.
702 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
703
704 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
705 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
706 for the switch to multiarch partial.
707 Update some of the macros definitions to match some changes
708 described above in the name of the function they are calling.
709 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
710 not be straightforward to convert. Do now wrap it inside
711 "#if !... #endif" to remember that this macro has still not
712 been taken care of.
713 (FIX_CALL_DUMMY): Likewise.
714
715 2002-12-26 J. Brobecker <brobecker@gnat.com>
716
717 Continuing work to convert the hppa targets to multiarch partial.
718
719 * hppa-tdep.c (hppa_register_raw_size): New function replacing
720 the body of macro REGISTER_RAW_SIZE.
721 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
722 config/pa/tm-hppah.h. These functions will be used to initialize
723 the gdbarch structure.
724 (hppa_hpux_pc_in_sigtramp): New function.
725 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
726 (hppa_hpux_frame_base_before_sigtramp): New function.
727 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
728 Add gdbcore.h #include.
729 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
730 of this gdbarch-eligible macro to a call to the new associated
731 function.
732 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
733 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
734 into a call to the new associated function.
735 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
736 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
737 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
738
739 2002-12-24 David Carlton <carlton@math.stanford.edu>
740
741 * config/sparc/tm-sparc.h: Delete duplicate definition of
742 DEPRECATED_PC_IN_CALL_DUMMY.
743
744 2002-12-24 Kevin Buettner <kevinb@redhat.com>
745
746 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
747 $(gdb_assert_h).
748 * configure.tgt: Recognize mips64*-*-linux*.
749 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
750 (supply_32_bit_reg): New function.
751 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
752 (fill_gregset): Use regcache_collect() instead of
753 deprecated_registers[].
754 (register_addr): Change name to mips_linux_register_addr().
755 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
756 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
757 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
758 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
759 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
760 (MIPS64_LINUX_JB_PC): New defines.
761 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
762 (mips64_elf_fpregset_t): New typedefs.
763 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
764 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
765 (mips64_linux_register_addr, set_mips_linux_register_addr)
766 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
767 (init_register_addr_data)
768 New functions.
769 (fetch_core_registers): Add support for core file formats with 64-bit
770 registers.
771 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
772 (register_addr_data): New static global variable.
773 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
774 gdbarch_register_osabi() for each MIPS machine.
775 * config/mips/linux64.mt: New file.
776 * config/mips/tm-linux64.h: New file.
777
778 2002-12-23 Adam Fedor <fedor@gnu.org>
779
780 * maint.c (maintenance_demangle): Add switch to demangle
781 ObjC language symbols as well.
782
783 2002-12-23 Adam Fedor <fedor@gnu.org>
784
785 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
786 last argument from complaint function call.
787
788 2002-12-23 Kevin Buettner <kevinb@redhat.com>
789
790 * exec.c (print_section_info): Add FIXME comments regarding format
791 string choices.
792
793 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
794
795 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
796 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
797
798 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
799
800 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
801
802 2002-12-23 David Carlton <carlton@math.stanford.edu>
803
804 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
805 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
806 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
807 information associated to a minsym, not lookup_symbol.
808
809 2002-12-21 Mark Kettenis <kettenis@gnu.org>
810
811 * x86-64-tdep.h (x86_64_init_abi): New prototype.
812 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
813 (x86_64_init_abi): Make non-static. Set number of pseudo
814 registers to 0.
815 (x86_64_gdbarch_init): Remove function.
816 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
817 Remove code dealing with dissambly.
818 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
819 (_initialize_x86_64_linux_tdep): New function.
820 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
821 i386-tdep.o.
822
823 2002-12-14 Mark Kettenis <kettenis@gnu.org>
824
825 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
826 (struct gdb_osabi_handler): Remove member `arch'. Add member
827 `arch_info'.
828 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
829 construct a `struct bfd_arch_info' and store it in the `struct
830 gdb_osabi_handler' that is created.
831 (gdbarch_init_osabi): Check for compatibility based on machine
832 type and architecture.
833 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
834 comment.
835 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
836 second argument in call to gdbarch_register_osabi.
837 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
838 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
839 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
840 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
841 * arm-tdep.c (_initialize_arm_tdep): Likewise.
842 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
843 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
844 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
845 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
846 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
847 * i386-tdep.c (_initialize_i386_tdep): Likewise.
848 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
849 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
850 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
851 _initialize_i386bsd_tdep and updated likewise.
852 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
853 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
854 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
855 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
856 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
857 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
858 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
859 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
860 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
861 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
862
863 2002-12-20 Kevin Buettner <kevinb@redhat.com>
864
865 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
866 DT_MIPS_RLD_MAP case for 64-bit targets.
867
868 2002-12-20 Kevin Buettner <kevinb@redhat.com>
869
870 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
871 ``temp_saved_regs'', not the pointer or other storage contiguous
872 to this pointer.
873
874 2002-12-20 Kevin Buettner <kevinb@redhat.com>
875
876 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
877 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
878 (mips_linux_get_longjmp_target): Delete declarations.
879 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
880 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
881 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
882 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
883 (mips_linux_get_longjmp_target)
884 (mips_linux_svr4_fetch_link_map_offsets): Make static.
885 (mips_linux_init_abi): New function.
886 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
887
888 2002-12-19 Keith Seitz <keiths@redhat.com>
889
890 patch committed by Elena Zannoni <ezannoni@redhat.com>
891 * thread.c (do_captured_list_thread_ids): Call prune_threads and
892 target_find_new_threads. Fix for PR mi/669.
893
894 2002-12-19 David Carlton <carlton@math.stanford.edu>
895
896 * linespec.c (decode_line_1): Move code into decode_all_digits.
897 (decode_all_digits): New function.
898
899 2002-12-19 Kevin Buettner <kevinb@redhat.com>
900
901 * exec.c (print_section_info): Select a format string to use with
902 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
903
904 2002-12-18 Andrew Cagney <ac131313@redhat.com>
905
906 * frame.c (deprecated_update_current_frame_pc_hack): Replace
907 deprecated_update_current_frame_pc_hack.
908 (deprecated_update_frame_base_hack): New function.
909 * frame.h (deprecated_update_frame_pc_hack): Replace
910 (deprecated_update_frame_base_hack): Declare.
911 * infrun.c (normal_stop): Update.
912
913 2002-12-18 Andrew Cagney <ac131313@redhat.com>
914
915 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
916 frame_extra_info_zalloc.
917 (rs6000_frame_args_address): Use get_frame_extra_info.
918 (frame_get_saved_regs): Use get_frame_saved_regs.
919 (frame_initial_stack_address): Use get_frame_saved_regs and
920 get_frame_extra_info.
921 (frame_initial_stack_address): Use get_frame_extra_info.
922
923 2002-12-17 Kevin Buettner <kevinb@redhat.com>
924
925 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
926 array size.
927 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
928 checks for r3900_regnames[].
929
930 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
931
932 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
933 All uses changed
934 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
935
936 2002-12-17 David Carlton <carlton@math.stanford.edu>
937
938 * symtab.c (lookup_partial_symbol): Don't search past the end of
939 the partial symbols.
940
941 2002-12-17 Andrew Cagney <ac131313@redhat.com>
942
943 * stack.c (frame_info): Use get_frame_saved_regs.
944 * breakpoint.c (until_break_command): Use get_frame_pc.
945
946 2002-12-16 Kevin Buettner <kevinb@redhat.com>
947
948 * buildsym.c (block_end_complaint, anon_block_end_complaint)
949 (innerblock_complaint, innerblock_anon_complaint)
950 (blockvector_complaint): Delete deprecated complaint structs.
951 (finish_block, make_blockvector, end_symtab): Replace calls
952 to complain() with calls to complaint().
953 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
954 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
955 (unexpected_type_complaint, bad_sclass_complaint)
956 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
957 Delete deprecated complaint structs.
958 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
959 Replace calls to complain() with calls to complaint().
960 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
961 (unknown_symtype_complaint, unknown_symchar_complaint)
962 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
963 (lbrac_mismatch_complaint, repeated_header_complaint)
964 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
965 Delete deprecated complaint structs.
966 (unknown_symtype_complaint, lbrac_mismatch_complaint)
967 (repeated_header_complaint)
968 (function_outside_compiliation_unit_complaint): New functions.
969 (add_old_header_file, find_corresponding_bincl_psymtab)
970 (set_namestring, find_stab_function_addr, read_dbx_symtab)
971 (process_one_symbol): Replace calls to complain() with, possibly
972 indirect, calls to complaint().
973 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
974 (unknown_attribute_form, unknown_attribute_length)
975 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
976 (const_ignored, botched_modified_type, op_deref2, op_deref4)
977 (basereg_not_handled, dup_user_type_allocation)
978 (dup_user_type_definition, missing_tag, bad_array_element_type)
979 (subscript_data_items, unhandled_array_subscript_format)
980 (unknown_array_subscript_format, not_row_major)
981 (missing_at_name): Delete deprecated complaint structs.
982 (bad_die_ref_complaint, unknown_attribute_form_complaint)
983 (dup_user_type_definition_complaint)
984 (bad_array_element_type_complaint): New functions.
985 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
986 (decode_subscript_data_item, dwarf_read_array_type)
987 (read_tag_string_type, read_subroutine_type, read_func_scope)
988 (locval, scan_partial_symbols, decode_modified_type)
989 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
990 (attribute_size): Replace calls to complain() with, possibly
991 indirect, calls to complaint().
992 * elfread.c (section_info_complaint, section_info_dup_complaint)
993 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
994 Delete deprecated complaint structs.
995 (elf_symtab_read, elfstab_offset_sections): Replace calls to
996 complain() with calls to complaint().
997 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
998 struct.
999 (stub_noname_complaint): New function.
1000 (check_typedef, add_mangled_type): Replace calls to complain()
1001 with calls to complaint().
1002 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1003 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1004 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1005 (hpread_array_complaint, hpread_type_lookup_complaint)
1006 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1007 (hpread_unhandled_common_complaint)
1008 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1009 struct definitions and declarations.
1010 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1011 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1012 Replace calls to complain() with, possibly indirect, calls to
1013 complaint().
1014 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1015 Likewise.
1016 * mdebugread.c (bad_file_number_complaint, index_complaint)
1017 (aux_index_complaint, block_index_complaint)
1018 (unknown_ext_complaint, unknown_sym_complaint)
1019 (unknown_st_complaint, block_overflow_complaint)
1020 (basic_type_complaint, unknown_type_qual_complaint)
1021 (array_index_type_complaint, bad_tag_guess_complaint)
1022 (block_member_complaint, stEnd_complaint)
1023 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1024 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1025 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1026 (bad_continued_complaint, bad_rfd_entry_complaint)
1027 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1028 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1029 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1030 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1031 complaint structs.
1032 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1033 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1034 (unexpected_type_code_complaint)
1035 (function_outside_compilation_unit_complaint): New functions.
1036 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1037 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1038 Replace calls to complain() with, possibly indirect calls to
1039 complaint().
1040 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1041 Delete deprecated complaint structs.
1042 (lookup__objc_class, lookup_child_selector): Replace complain()
1043 with complaint().
1044 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1045 struct.
1046 (vx_lookup_symbol): Replace complain() with complaint().
1047 * stabsread.c (invalid_cpp_abbrev_complaint)
1048 (invalid_cpp_type_complaint, member_fn_complaint)
1049 (const_vol_complaint, error_type_complaint)
1050 (invalid_member_complaint, range_type_base_complaint)
1051 (reg_value_complaint, vtbl_notfound_complaint)
1052 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1053 (unresolved_sym_chain_complaint, stabs_general_complaint)
1054 (lrs_general_complaint, multiply_defined_struct): Delete
1055 deprecated complaint structs.
1056 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1057 (stabs_general_complaint, lrs_general_complaint)
1058 (msg_unknown_complaint): New functions.
1059 (dbx_lookup_type, read_cfront_baseclasses)
1060 (read_cfront_member_functions, resolve_symbol_reference)
1061 (define_symbol, resolve_live_range, add_live_range, read_type)
1062 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1063 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1064 (read_cfront_static_fields, attach_fields_to_type)
1065 (complain_about_struct_wipeout, read_range_type)
1066 (common_block_start, common_block_end, cleanup_undefined_types)
1067 (scan_file_globals): Replace complain() with complaint().
1068 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1069 Delete deprecated complaint struct declarations.
1070 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1071 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1072 (bf_not_found_complaint, ef_complaint, eb_complaint)
1073 (function_outside_compilation_unit_complaint): New functions.
1074 (record_include_begin, record_include_end, enter_line_range)
1075 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1076 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1077 complain() with complaint().
1078
1079 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1080
1081 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1082 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1083 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1084 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1085 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1086 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1087 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1088 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1089 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1090 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1091 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1092 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1093 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1094 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1095 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1096 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1097 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1098 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1099 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1100 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1101 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1102 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1103 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1104 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1105 * config/m88k/xm-dgux.h: Delete.
1106 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1107 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1108 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1109 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1110 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1111 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1112 * ch-valprint.c: Delete.
1113
1114 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1115
1116 * infrun.c (handle_inferior_event): Rearrange code to resume if
1117 no catchpoint triggers for an event.
1118
1119 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1122 and TARGET_WAITKIND_VFORKED cases.
1123
1124 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * infrun.c (handle_inferior_event): Assume that catchpoints
1127 are not affected by DECR_PC_AFTER_BREAK.
1128
1129 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * target.c (update_current_target): Don't inherit DONT_USE.
1132 * target.h (struct target_ops): Remove DONT_USE.
1133 (target_next): Remove macro.
1134
1135 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1136
1137 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1138
1139 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1140
1141 * arm-tdep.c (convert_from_extended): New argument to hold the
1142 type of floating point result we want to convert to. Make input
1143 argument const. Fix all callers.
1144 (convert_to_extended): Similarly.
1145 (arm_extract_return_value): Now takes a regcache argument. Change
1146 code to use regcache accessor functions. Correctly extract
1147 smaller-than-word results on big-endian machines.
1148 (arm_store_return_value): Now takes a regcache argument. Change
1149 code to use regcache accessor functions. Correctly zero/sign extend
1150 smaller than word results before storing into r0.
1151 (arm_gdbarch_init): Register new-style extract_return_value and
1152 store_return_value functions.
1153
1154 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1155
1156 * thread-db.c (thread_from_lwp): Uniquify error msg.
1157 (lwp_from_thread): Ditto.
1158 (check_event): Ditto.
1159 (find_new_threads_callback): Ditto.
1160 (thread_db_pid_to_str): Ditto.
1161
1162 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1163
1164 * frame.h (get_frame_saved_regs): Declare.
1165 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1166 pointer.
1167 * frame.c (get_frame_saved_regs): New function.
1168 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1169
1170 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1171
1172 * frame.c (deprecated_update_current_frame_pc_hack): New
1173 function.
1174 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1175 * infrun.c (normal_stop): Use said function instead of directly
1176 modifying the frame's PC.
1177
1178 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1179
1180 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1181
1182 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1183
1184 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1185 config/mips/tm-irix6.h (NUM_REGS): Delete.
1186 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1187 (temp_saved_regs): Declare as a pointer rather than an array.
1188 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1189 that ``temp_saved_regs'' has storage allocated to it and that
1190 it's the correct size.
1191
1192 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1193
1194 * defs.h (init_last_source_visited): New prototype.
1195 (add_path): Ditto.
1196 * source.c (add_path): New function that adds to a specified path.
1197 (mod_path): Change to call add_path.
1198 (init_last_source_visited): New function to allow interfaces to
1199 initialize static variable: last_source_visited. Part of fix
1200 for PR gdb/741.
1201 * Makefile.in: Add support for mi/mi-cmd-env.c.
1202
1203 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1204
1205 * frame.h (frame_id_unwind): Declare.
1206 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1207 id_unwind_cache.
1208 (frame_id_unwind_ftype): Declare.
1209 * frame.c (frame_id_unwind): New function.
1210 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1211 (create_new_frame, get_prev_frame): Pass id_unwind to
1212 set_unwind_by_pc.
1213 (frame_saved_regs_id_unwind): New function.
1214 (frame_saved_regs_id_unwind): New function.
1215 * dummy-frame.c (dummy_frame_id_unwind): New function.
1216 (struct dummy_frame): Add field id.
1217 (generic_push_dummy_frame): Initialize `id'.
1218 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1219
1220 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1221
1222 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1223 pass that to set_momentary_breakpoint. Move comments to where they
1224 belong.
1225 * frame.h (set_current_frame): Delete declaration.
1226 * frame.c (set_current_frame): Delete function.
1227
1228 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1229
1230 * frame.c (frame_extra_info_zalloc): New function.
1231 * frame.h (frame_extra_info_zalloc): Declare.
1232
1233 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1234
1235 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1236 in the previous prototype change to set_momentary_breakpoint.
1237
1238 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1239
1240 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1241 and saw_child_exec.
1242 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1243 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1244 (stop_stepping): Remove outdated check for child vfork events.
1245
1246 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1247
1248 * GDB 5.3 released from gdb_5_3-branch.
1249
1250 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1251
1252 * corelow.c (init_core_ops): Delete references to to_require_attach
1253 and to_require_detach.
1254 * exec.c (init_exec_ops): Likewise.
1255 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1256 hppa_require_detach directly.
1257 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1258 * inftarg.c (child_detach): Remove.
1259 (child_detach_from_process): Rename to child_detach, remove
1260 after_fork argument.
1261 (child_attach): Remove.
1262 (child_attach_to_process): Rename to child_attach, remove after_fork
1263 argument.
1264 (init_child_ops): Delete references to to_require_attach
1265 and to_require_detach.
1266 * infttrace.c (hppa_require_attach): Update comment.
1267 * target.c (cleanup_target, update_current_target)
1268 (init_dummy_target, setup_target_debug): Delete references to
1269 to_require_attach and to_require_detach.
1270 (find_default_require_detach, find_default_require_attach)
1271 (debug_to_require_attach, debug_to_require_detach): Remove
1272 functions.
1273 * target.h (struct target_ops): Remove to_require_attach
1274 and to_require_detach.
1275 (target_require_attach, target_require_detach): Delete macros.
1276 (find_default_require_detach, find_default_require_attach): Delete
1277 prototypes.
1278 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1279
1280 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1281
1282 * frame.c (get_frame_extra_info): New function.
1283 * frame.h (get_frame_extra_info): Declare.
1284
1285 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1286
1287 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1288 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1289 with `struct frame_id'.
1290 (set_longjmp_resume_breakpoint): Ditto.
1291 * infrun.c (handle_inferior_event): Update.
1292 * breakpoint.c (watch_command_1, until_break_command): Update.
1293 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1294 (handle_inferior_event, step_over_function): Update.
1295 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1296 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1297 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1298 * infcmd.c (finish_command, run_stack_dummy): Update.
1299
1300 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1301
1302 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1303 (dwarf2_non_const_array_bound_ignored)
1304 (dwarf2_missing_line_number_section)
1305 (dwarf2_statement_list_fits_in_line_number_section)
1306 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1307 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1308 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1309 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1310 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1311 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1312 (dwarf2_missing_member_fn_type_complaint)
1313 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1314 (dwarf2_const_value_length_mismatch)
1315 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1316 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1317 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1318 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1319 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1320 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1321 complaints using deprecated struct..
1322 (dwarf2_non_const_array_bound_ignored_complaint)
1323 (dwarf2_complex_location_expr_complaint)
1324 (dwarf2_unsupported_at_frame_base_complaint)
1325 (dwarf2_const_value_length_mismatch_complaint)
1326 (dwarf2_macros_too_long_complaint)
1327 (dwarf2_macro_malformed_definition_complaint)
1328 (dwarf2_invalid_attrib_class_complaint): New functions.
1329 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1330 (read_structure_scope, read_array_type, read_common_block)
1331 (read_tag_pointer_type, read_base_type, read_partial_die)
1332 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1333 (new_symbol, dwarf2_const_value, read_type_die)
1334 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1335 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1336 complain() with, possibly indirect, calls to complaint().
1337
1338 2002-12-11 Andrew Cagney <cagney@redhat.com>
1339
1340 * frame.c (deprecated_get_frame_saved_regs): Rename
1341 get_frame_saved_regs.
1342 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1343 * sparc-tdep.c: Update.
1344 * hppa-tdep.c: Update.
1345 * h8500-tdep.c: Update.
1346
1347 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1348
1349 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1350 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1351 ``char *'' for return and parameter types.
1352 * gdbarch.h, gdbarch.c: Regenerate.
1353 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1354 return type from ``char *'' to ``const char *''.
1355 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1356 const.
1357
1358 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1359
1360 * i386-tdep.c: Include "dummy-frame.h".
1361 (i386_frame_chain, i386_frame_saved_pc): Replace
1362 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1363 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1364
1365 2002-12-10 Andrew Cagney <cagney@redhat.com>
1366
1367 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1368 Change to a function with predicate.
1369 * gdbarch.h, gdbarch.c: Re-generate.
1370 * frame.c (get_prev_frame): Update. Test
1371 DEPRECATED_INIT_FRAME_PC_P.
1372 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1373 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1374 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1375 * alpha-tdep.c (alpha_gdbarch_init): Update.
1376 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1377 * mips-tdep.c (mips_gdbarch_init): Update.
1378 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1379 * arm-tdep.c: Update comments.
1380 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1381 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1382 * frv-tdep.c (frv_gdbarch_init): Ditto.
1383 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1384 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1385 * s390-tdep.c (s390_gdbarch_init): Ditto.
1386 * v850-tdep.c (v850_gdbarch_init): Ditto.
1387 * vax-tdep.c (vax_gdbarch_init): Ditto.
1388 * sh-tdep.c (sh_gdbarch_init): Ditto.
1389 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1390 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1391 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1392 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1393 * i386-tdep.c (i386_gdbarch_init): Ditto.
1394 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1395 * cris-tdep.c (cris_gdbarch_init): Ditto.
1396 * avr-tdep.c (avr_gdbarch_init): Ditto.
1397 * arm-tdep.c (arm_gdbarch_init): Ditto.
1398 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1399 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1400
1401 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1402
1403 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1404 CHILD_FOLLOW_FORK.
1405 * hppah-nat.c (saved_vfork_pid): Add.
1406 (child_post_follow_vfork): Remove.
1407 (child_follow_fork): New function.
1408 (child_wait): Call detach_breakpoints after receiving the child vfork.
1409 Call child_resume directly instead of going through resume ().
1410 Make sure we have the exec before reporting the vfork.
1411 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1412 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1413 (follow_fork): New function. Call target_follow_fork.
1414 (follow_inferior_reset_breakpoints): New function broken out from
1415 old follow_inferior_fork.
1416 (resume): Remove hack to follow exec after vfork.
1417 * inftarg.c (child_post_follow_vfork): Remove.
1418 (child_follow_fork): New function.
1419 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1420 * target.c (cleanup_target): Replace to_post_follow_vfork with
1421 to_follow_fork.
1422 (update_current_target): Likewise.
1423 (setup_target_debug): Likewise.
1424 (debug_to_post_follow_vfork): Remove.
1425 (debug_to_follow_fork): New function.
1426 * target.h (struct target_ops): Replace to_post_folow_vfork with
1427 to_follow_fork.
1428 (child_post_follow_vfork): Remove prototype.
1429 (child_follow_fork): Add prototype.
1430 (target_post_follow_vfork): Remove macro.
1431 (target_follow_fork): Add macro.
1432
1433 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1434
1435 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1436 (child_post_follow_vfork): Cancel pending exec event if we follow
1437 the parent.
1438 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1439 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1440 event at the following wait call if necessary.
1441 * infrun.c (follow_vfork): Don't follow_exec here.
1442 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1443 case about HP/UX 10.20. Remove code pushed down to
1444 hppah-nat.c:child_wait.
1445 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1446 vfork_in_flight is set.
1447
1448 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1449
1450 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1451 for the parent's fork event.
1452 * infrun.c (handle_inferior_event): Only expect one fork event.
1453 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1454 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1455
1456 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1457
1458 * PROBLEMS: Delete reference to PR gdb/725.
1459
1460 * MAINTAINERS (gdb.c++): Add David Carlton.
1461
1462 2002-12-09 David Carlton <carlton@math.stanford.edu>
1463
1464 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1465 * cli/cli-cmds.c: Ditto.
1466
1467 2002-12-09 Andrew Cagney <cagney@redhat.com>
1468
1469 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1470 function address in <>.
1471 * gdbarch.c: Re-generate.
1472
1473 2002-12-09 David Carlton <carlton@math.stanford.edu>
1474
1475 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1476
1477 2002-12-09 David Carlton <carlton@math.stanford.edu>
1478
1479 * linespec.c (symtab_from_filename): New function.
1480 (decode_line_1): Move code into symtab_from_filename.
1481
1482 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1483
1484 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1485
1486 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1487
1488 * f-valprint.c (info_common_command): Use get_frame_pc.
1489 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1490 * ax-gdb.c (agent_command): Ditto.
1491 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1492 (rs6000_pop_frame): Ditto.
1493 (rs6000_frameless_function_invocation): Ditto.
1494 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1495 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1496 * macroscope.c (default_macro_scope): Ditto.
1497 * stack.c (print_frame_info_base): Ditto.
1498 (print_frame, frame_info, print_frame_label_vars): Ditto.
1499 (return_command, func_command, get_frame_language): Ditto.
1500 * infcmd.c (finish_command): Ditto.
1501 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1502 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1503 (break_at_finish_at_depth_command_1): Ditto.
1504 (break_at_finish_command_1): Ditto.
1505 (until_break_command, get_catch_sals): Ditto.
1506 * blockframe.c (func_frame_chain_valid): Ditto.
1507 (frameless_look_for_prologue): Ditto.
1508 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1509
1510 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1511
1512 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1513 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1514
1515 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1516
1517 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1518 to pure functions.
1519 * gdbarch.h, gdbarch.c: Re-generate.
1520 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1521 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1522
1523 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1524 declaration to a function returning a CORE_ADDR.
1525 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1526 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1527 (init_frame_pc_default): Ditto.
1528 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1529 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1530 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1531 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1532 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1533 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1534
1535 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1536 to init_frame_pc_noop.
1537 (i386_interix_init_frame_pc): Delete function.
1538 * z8k-tdep.c (init_frame_pc): Delete function.
1539 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1540 (INIT_FRAME_PC_FIRST): Ditto.
1541 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1542 (INIT_FRAME_PC_FIRST): Ditto.
1543 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1544 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1545 init_frame_pc_noop.
1546 (INIT_FRAME_PC_FIRST): Convert to an expression.
1547 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1548
1549 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1550
1551 * blockframe.c: Use get_frame_base instead of directly accessing
1552 the `struct frame_info' member frame.
1553 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1554 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1555
1556 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1557
1558 * Makefile.in (readline_h): Define.
1559 (completer.o): Depend on readline_h.
1560 (corelow.o): Ditto.
1561 (event-top.o): Ditto.
1562 (exec.o): Ditto.
1563 (solib.o): Ditto.
1564 (source.o): Ditto.
1565 (symfile.o): Ditto.
1566 (symmisc.o): Ditto.
1567 (top.o): Ditto.
1568 (tracepoint.o): Ditto.
1569 (utils.o): Ditto.
1570 (cli-dump.o): Ditto.
1571 (tui-hooks.o): Ditto.
1572 (tuiWin.o): Ditto.
1573
1574 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1575
1576 More cleanup from import of readline 4.3.
1577 * completer.h (complete_line, readline_line_completion_function):
1578 Update prototypes.
1579 (line_completion_function): Removed, not used outside of completer.c.
1580 * completer.c (readline_line_completion_function,
1581 complete_function, line_completion_function): Use const for first
1582 parameter.
1583 (line_completion_function): Make static.
1584 (filename_completer): filename_completion_function is now called
1585 rl_filename_completion_function
1586 * corelow.c: Include <readline/readline.h>.
1587 * exec.c: Ditto.
1588 * solib.c: Ditto.
1589 * source.c: Ditto.
1590 * symfile.c: Ditto.
1591 * symmisc.c: Ditto.
1592 * top.c (init_main): No need to coerce
1593 readline_line_completion_function anymore.
1594 * cli/cli-dump.c: Include <readline/readline.h>.
1595
1596 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1597
1598 * stack.c (frame_info): Use get_prev_frame.
1599 * blockframe.c (frame_address_in_block): Ditto.
1600 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1601 (rs6000_frameless_function_invocation): Ditto.
1602 (rs6000_frame_saved_pc): Ditto.
1603 (rs6000_frame_chain): Ditto.
1604 * arch-utils.c (init_frame_pc_default): Ditto.
1605
1606 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1607
1608 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1609 Delete redundant definition.
1610
1611 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1612
1613 Import of readline 4.3:
1614 * cli/cli-cmds.c: Include readline/tilde.h.
1615 * cli/cli-setshow.c: Ditto.
1616 * defs.h: Don't declare tilde_expand anymore, since readline
1617 exports it.
1618
1619 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1620
1621 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1622 -Werror on this file.
1623
1624 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1625
1626 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1627 the format name.
1628 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1629 * gdbarch.c: Regenerate.
1630
1631 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1632
1633 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1634 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1635 provide a default value.
1636 * gdbarch.h, gdbarch.c: Regenerate.
1637 * frame.c (get_prev_frame): Update. Check
1638 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1639 * s390-tdep.c (s390_gdbarch_init): Update.
1640 * mips-tdep.c (mips_gdbarch_init): Update.
1641 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1642 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1643 * alpha-tdep.c (alpha_gdbarch_init): Update.
1644
1645 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1646
1647 * ia64-linux-nat.c: Include gdb_string.h.
1648 * alpha-nat.c: Ditto.
1649 * ppc-linux-nat.c: Ditto.
1650 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1651 Update dependencies.
1652
1653 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1654
1655 * gdbthread.h: Include "frame.h".
1656 (struct thread_info): Replace step_frame_address with
1657 step_frame_id.
1658 * inferior.h: Include "frame.h".
1659 (step_frame_id): Replace external variable step_frame_address.
1660 * gdbthread.h (save_infrun_state): Replace step_frame_address
1661 parameter with step_frame_id parameter.
1662 (load_infrun_state): Ditto.
1663 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1664 * infcmd.c (step_frame_id, step_1, step_once): Update.
1665 * thread.c (load_infrun_state, save_infrun_state): Update.
1666 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1667 (handle_inferior_event, step_over_function): Update.
1668 (normal_stop, context_switch, restore_inferior_status): Update.
1669 (struct inferior_status): Replace step_frame_address with
1670 step_frame_id.
1671
1672 2002-12-05 David Carlton <carlton@math.stanford.edu>
1673
1674 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1675 DW_TAG_member as well as a declaration as being a C++ static data
1676 member.
1677 (read_structure_scope): Combine tests for DW_TAG_member and
1678 DW_TAG_variable.
1679
1680 2002-12-05 David Carlton <carlton@math.stanford.edu>
1681
1682 * linespec.c (decode_compound): New function.
1683 (decode_line_1): Move code into decode_compound.
1684
1685 2002-12-05 David Carlton <carlton@math.stanford.edu>
1686
1687 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1688 argument.
1689 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1690 the static block. See PR gdb/804.
1691
1692 2002-12-05 David Carlton <carlton@math.stanford.edu>
1693
1694 * symtab.c (lookup_symbol_aux_block): New function.
1695 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1696
1697 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1698
1699 * gdbarch.sh: Dump the predicate function and macro values.
1700 (read): Print error on standard error.
1701 * gdbarch.c: Regenerate.
1702
1703 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1704
1705 * Makefile.in (mips_tdep_h): Define.
1706 (mips-tdep.o): Add mips_tdep_h to dependency list.
1707 * mips-tdep.h: New file.
1708 * mips-tdep.c (mips-tdep.h): Include.
1709 (enum mips_abi): Move to mips-tdep.h.
1710 (mips_abi): New function.
1711
1712 2002-12-04 David Carlton <carlton@math.stanford.edu>
1713
1714 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1715
1716 2002-12-04 David Carlton <carlton@math.stanford.edu>
1717
1718 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1719 function.
1720 (lookup_symbol_aux_minsyms): New function.
1721
1722 2002-12-04 J. Brobecker <brobecker@gnat.com>
1723
1724 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1725
1726 2002-12-04 J. Brobecker <brobecker@gnat.com>
1727
1728 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1729 which is an obsolete macro name.
1730
1731 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1732
1733 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1734 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1735
1736 2002-12-03 H.J. Lu (hjl@gnu.org)
1737
1738 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1739 (create_breakpoints): Make sure the addr_string field is not
1740 NULL.
1741
1742 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1743
1744 * sparc-nat.c (fetch_inferior_registers)
1745 (store_inferior_registers): Add comment on problem of LWP vs
1746 threads.
1747
1748 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1749 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1750 (lin_lwp_store_registers): Remove.
1751 (init_lin_lwp_ops): Use fetch_inferior_registers
1752 and store_inferior_registers directly.
1753 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1754 (store_inferior_registers): Likewise.
1755 Fix PR gdb/725.
1756
1757 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1758
1759 * frame.h (get_frame_id): Convert to a function.
1760 (null_frame_id, frame_id_p): Declare.
1761 (frame_id_eq, frame_id_inner): Declare.
1762 (frame_id_build): New function.
1763 * frame.c (get_frame_id): Update. Use null_frame_id.
1764 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1765 frame_id_inner.
1766 (null_frame_id, frame_id_p): Define.
1767 (frame_id_eq, frame_id_inner): Define.
1768 (frame_id_build): New function.
1769 * varobj.c (varobj_create): Update.
1770 (varobj_update): Update.
1771 * valops.c (value_assign): Update.
1772 (new_root_variable): Update.
1773 * infrun.c (save_inferior_status): Update.
1774 * breakpoint.c (watch_command_1): Update.
1775
1776 2002-12-03 J. Brobecker <brobecker@gnat.com>
1777
1778 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1779 (SNAP2): Likewise.
1780
1781 2002-12-03 Andrew Cagney <cagney@redhat.com>
1782
1783 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1784 patch.
1785
1786 * PROBLEMS: Mention PR gdb/725.
1787
1788 2002-12-03 Andreas Schwab <schwab@suse.de>
1789
1790 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1791
1792 2002-12-02 Adam Fedor <fedor@gnu.org>
1793 Klee Dienes <kdienes@apple.com>
1794
1795 * objc-lang.c (objc_printstr): Add width arg to match
1796 printstr prototype.
1797 (compare_selectors): Add 'const' to arg types.
1798 (compare_classes): Likewise.
1799 (find_imps): Cast msym pointer to avoid compiler warning.
1800 (print_object_command): Validate the address before
1801 passing it to the print routine.
1802 (find_objc_msgcall_submethod): Change function argument to
1803 return an int.
1804 * objc-lang.h: Add 'extern' to all function declarations.
1805 (value_nsstring): Add declaration.
1806
1807 2002-12-02 J. Brobecker <brobecker@gnat.com>
1808
1809 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1810 Fixes a build failure on HP/UX.
1811
1812 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1813 failure on HP/UX.
1814 (hpread_has_name): Advance declaration to avoid a compilation warning.
1815 (pst_syms_count): Add missing variable type. By change, the compiler
1816 was defaulting to int, which seems a good choice. Fixes a compilation
1817 warning.
1818 (pst_syms_size): Likewise.
1819
1820 2002-12-02 J. Brobecker <brobecker@gnat.com>
1821
1822 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1823 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1824 later to set the proper gdbarch methods depending on the osabi.
1825 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1826
1827 2002-12-02 J. Brobecker <brobecker@gnat.com>
1828
1829 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1830 * osabi.c (gdb_osabi_name): Add strings images for the two new
1831 enum values.
1832 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1833
1834 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1835
1836 * MAINTAINERS (Java): Global maintainers are responible for Java.
1837 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1838 part Java maintainers.
1839
1840 2002-12-02 J. Brobecker <brobecker@gnat.com>
1841
1842 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1843 Fixes a compilation failure on AiX.
1844
1845 2002-12-02 J. Brobecker <brobecker@gnat.com>
1846
1847 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1848 why aix-thread.o is not listed.
1849
1850 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1851
1852 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1853 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1854 * gdbarch.h, gdbarch.c: Re-generate.
1855 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1856 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1857 * config/pa/tm-hppa.h, frame.h: Update.
1858 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1859 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1860 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1861 * cris-tdep.c, alpha-tdep.c: Update.
1862 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1863 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1864 (get_prev_frame): Ditto.
1865
1866 2002-11-30 Andrew Cagney <cagney@redhat.com>
1867
1868 * exec.c (xfer_memory): Replace boolean with int.
1869 * p-exp.y: Use 0 instead of false.
1870 * corelow.c (gdb_check_format): Change return type to int from
1871 boolean.
1872 * utils.c: Don't include <curses.h> or <term.h> first.
1873
1874 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1875
1876 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1877 (m68hc11_register_byte): Remove.
1878 (m68hc11_gdbarch_init): Don't set the above.
1879
1880 2002-11-29 Andrew Cagney <cagney@redhat.com>
1881
1882 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1883 by calling get_selected_frame.
1884 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1885 set_current_frame, create_new_frame, select_frame and
1886 get_current_frame.
1887 * remote-e7000.c (e7000_start_remote): Ditto.
1888 * remote-mips.c (common_open): Ditto
1889 * remote-rdp.c (remote_rdp_open): Ditto.
1890
1891 2002-11-29 Andreas Schwab <schwab@suse.de>
1892
1893 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1894 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1895 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1896 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1897 read_memory_unsigned_integer instead of read_memory_integer when
1898 dealing with addresses and instruction opcodes.
1899 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1900 (m68k_linux_frame_saved_pc): Likewise.
1901
1902 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1903
1904 * stack.c (selected_frame, select_frame): Move from here ...
1905 * frame.c (selected_frame, select_frame): ... to here. Include
1906 "language.h".
1907 * Makefile.in (frame.o): Update dependencies.
1908 * frame.c (get_selected_frame): New function.
1909 * frame.h (get_selected_frame): Declare.
1910 (deprecated_selected_frame): Rename selected_frame.
1911 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1912 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1913 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1914 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1915 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1916 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1917 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1918 * z8k-tdep.c, cli/cli-cmds.c: Update.
1919
1920 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1921
1922 * frame.h (get_selected_block): Add comments.
1923
1924 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1925
1926 * frame.c (pc_notcurrent): New function.
1927 (find_frame_sal): New function.
1928 * frame.h (find_frame_sal): Declare.
1929 (struct symtab_and_line): Add opaque declaration.
1930 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1931 find_pc_line.
1932 (frame_info): Ditto.
1933 * ada-lang.c (find_printable_frame): Ditto.
1934
1935 2002-11-28 J. Brobecker <brobecker@gnat.com>
1936
1937 * configure.in: Check that the pthdebug library is recent enough
1938 before enabling thread support on native AiX.
1939 * configure: Regenerate.
1940
1941 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1942 from the list of object files as it is now appended by configure
1943 if thread support is enabled.
1944 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1945 if thread support is enabled.
1946
1947 2002-11-28 Andrew Cagney <cagney@redhat.com>
1948
1949 * stack.c (get_selected_block): In-line get_current_block.
1950 * frame.h (get_current_block): Delete declaration.
1951 * blockframe.c (get_current_block): Delete function.
1952
1953 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1954
1955 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1956 USE_GENERIC_DUMMY_FRAMES.
1957 * gdbarch.h, gdbarch.c: Regenerate.
1958 * valops.c, frame.c: Update.
1959 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1960 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1961 * config/pa/tm-hppa.h, blockframe.c: Update.
1962 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1963 * m68k-tdep.c, alpha-tdep.c: Ditto.
1964
1965 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1966 * mips-tdep.c: Ditto.
1967
1968 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1969
1970 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1971 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1972 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1973 * gdbarch.c, gdbarch.h: Re-generate.
1974 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1975 (CALL_DUMMY_LOCATION): Delete macro definition.
1976 (PC_IN_CALL_DUMMY): Delete macro definitions.
1977
1978 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1979 default is already generic_pc_in_call_dummy.
1980 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1981 * v850-tdep.c (v850_gdbarch_init): Ditto.
1982 * sh-tdep.c (sh_gdbarch_init): Ditto.
1983 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1984 * mips-tdep.c (mips_gdbarch_init): Ditto.
1985 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1986 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1987 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1988 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1989 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1990 * avr-tdep.c (avr_gdbarch_init): Ditto.
1991
1992 * arm-tdep.c (arm_gdbarch_init): Do not set
1993 use_generic_dummy_frames, default is already 1.
1994 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1995 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1996 * v850-tdep.c (v850_gdbarch_init): Ditto.
1997 * sh-tdep.c (sh_gdbarch_init): Ditto.
1998 * s390-tdep.c (s390_gdbarch_init): Ditto.
1999 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2000 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2001 * mips-tdep.c (mips_gdbarch_init): Ditto.
2002 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2003 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2004 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2005 * i386-tdep.c (i386_gdbarch_init): Ditto.
2006 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2007 * frv-tdep.c (frv_gdbarch_init): Ditto.
2008 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2009 * cris-tdep.c (cris_gdbarch_init): Ditto.
2010 * avr-tdep.c (avr_gdbarch_init): Ditto.
2011
2012 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2013 call_dummy_location, default is already AT_ENTRY_POINT.
2014 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2015 * v850-tdep.c (v850_gdbarch_init): Ditto.
2016 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2017 * sh-tdep.c (sh_gdbarch_init): Ditto.
2018 * s390-tdep.c (s390_gdbarch_init): Ditto.
2019 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2020 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2021 * mips-tdep.c (mips_gdbarch_init): Ditto.
2022 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2023 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2024 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2025 * i386-tdep.c (i386_gdbarch_init): Ditto.
2026 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2027 * frv-tdep.c (frv_gdbarch_init): Ditto.
2028 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2029 * cris-tdep.c (cris_gdbarch_init): Ditto.
2030 * avr-tdep.c (avr_gdbarch_init): Ditto.
2031 * arm-tdep.c (arm_gdbarch_init): Ditto.
2032 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2033
2034 2002-11-28 Andrew Cagney <cagney@redhat.com>
2035
2036 * frame.h: Update comments on set_current_frame, create_new_frame,
2037 flush_cached_frames, reinit_frame_cache, select_frame and
2038 selected_frame.
2039
2040 2002-11-27 Andrew Cagney <cagney@redhat.com>
2041
2042 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2043 deprecated pc_in_call_dummy function.
2044 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2045 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2046 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2047 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2048 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2049
2050 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2051
2052 * Makefile.in: Remove Tix dependencies.
2053 * acinclude.m4: Ditto.
2054 * aclocal.m4: Ditto.
2055 * configure.in: Ditto.
2056 * configure: Regenerated.
2057
2058 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2059
2060 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2061 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2062 * gdbarch.c: Re-generate.
2063
2064 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2065
2066 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2067 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2068 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2069 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2070 pc_in_call_dummy_at_entry_point.
2071 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2072 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2073 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2074 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2075 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2076 pc_in_call_dummy_on_stack.
2077 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2078 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2079 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2080 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2081 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2082
2083 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2084
2085 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2086 pc_in_call_dummy_before_text_end
2087 (deprecated_pc_in_call_dummy_after_text_end): Rename
2088 pc_in_call_dummy_after_text_end.
2089 (deprecated_pc_in_call_dummy_on_stack): Rename
2090 pc_in_call_dummy_on_stack.
2091 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2092 pc_in_call_dummy_at_entry_point.
2093 * m68k-tdep.c (m68k_gdbarch_init): Update.
2094 * s390-tdep.c (s390_gdbarch_init): Update.
2095 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2096 * vax-tdep.c (vax_gdbarch_init): Update.
2097 * sparc-tdep.c (sparc_gdbarch_init): Update.
2098 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2099 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2100 * i386-tdep.c (i386_gdbarch_init): Update.
2101 * frv-tdep.c (frv_gdbarch_init): Update.
2102 * cris-tdep.c (cris_gdbarch_init): Update.
2103 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2104 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2105 (deprecated_pc_in_call_dummy_after_text_end)
2106 (deprecated_pc_in_call_dummy_on_stack)
2107 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2108 * alpha-tdep.c (alpha_gdbarch_init): Update.
2109
2110 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2111
2112 * acconfig.h (HAVE_PREAD64): Add.
2113 * configure.in: Check for pread64.
2114 * config.in: Regenerated.
2115 * configure: Regenerated.
2116 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2117 * linux-proc.c (linux_proc_xfer_memory): New function.
2118 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2119
2120 2002-11-25 David Carlton <carlton@math.stanford.edu>
2121
2122 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2123 pdi's with no name.
2124
2125 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2126
2127 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2128 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2129
2130 2002-11-25 Jim Blandy <jimb@redhat.com>
2131
2132 * symfile.c (init_objfile_sect_indices): New function.
2133 (default_symfile_offsets): Move the section-index-initializing
2134 stuff into init_objfile_sect_indices, and call that.
2135
2136 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2137 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2138
2139 * symfile.c (syms_from_objfile): Adjust indentation.
2140
2141 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2142 || info_verbose isn't true.
2143
2144 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2145
2146 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2147 default to get_frame_base.
2148 * gdbarch.h, gdbarch.c: Regenerate.
2149 * arch-utils.c (default_frame_address): Delete function.
2150 * arch-utils.h (default_frame_address): Delete declaration
2151
2152 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2153
2154 * varobj.c (find_frame_addr_in_frame_chain):
2155 Use get_frame_base instead of FRAME_FP,
2156 obvious fix.
2157
2158 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2159
2160 * frame.h (FRAME_FP): Delete macro.
2161 (get_frame_base): New function declaration.
2162 * frame.c (get_frame_base): New function.
2163 (get_frame_id): Use ->frame.
2164 (frame_find_by_id): Rewrite to use get_frame_id.
2165 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2166 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2167 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2168 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2169 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2170 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2171 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2172
2173 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2174
2175 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2176
2177 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2178
2179 * frame.c (set_unwind_by_pc): Revert change below, use
2180 PC_IN_CALL_DUMMY.
2181 (get_prev_frame): Ditto.
2182
2183 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2184
2185 * dummy-frame.c (pc_in_dummy_frame): New function.
2186 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2187 (find_dummy_frame): Update comment.
2188 (generic_pop_current_frame): Use get_frame_type.
2189 * dummy-frame.h (pc_in_dummy_frame): Declare.
2190 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2191 (create_new_frame): Use pc_in_dummy_frame.
2192 (get_prev_frame): Use pc_in_dummy_frame.
2193 (frame_saved_regs_register_unwind): Use get_prev_frame.
2194 (deprecated_generic_get_saved_register): Use get_prev_frame.
2195
2196 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2197
2198 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2199 from here ...
2200 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2201 (varobj_create): Note that frame ID should be used.
2202 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2203
2204 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2205
2206 * breakpoint.c: Include "gdb_assert.h".
2207 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2208 not being used.
2209 * Makefile.in (breakpoint.o): Update dependencies.
2210 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2211 deprecated_frame_in_dummy.
2212 * stack.c (print_frame_info_base): Ditto.
2213 (frame_info): Ditto.
2214 (print_frame_info_base): Ditto. Delete dead code.
2215
2216 2002-11-23 Andreas Schwab <schwab@suse.de>
2217
2218 * Makefile.in (m68k_tdep_h): Define.
2219 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2220 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2221 * m68k-tdep.c: Move register number enum ...
2222 * m68k-tdep.h: ... to this new file and rename the constants from
2223 E_* to M68K_*. All uses changed.
2224 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2225 * abug-rom.c: Include "m68k-tdep.h". Use
2226 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2227 * cpu32bug-rom.c: Likewise.
2228 * dbug-rom.c: Likewise.
2229 * m68k-tdep.c: Likewise.
2230 * m68klinux-nat.c: Likewise.
2231 * remote-est.c: Likewise.
2232 * rom68k-rom.c: Likewise.
2233 * config/m68k/tm-linux.h: Likewise.
2234
2235 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2236
2237 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2238 dummy frame initialization code.
2239 * mips-tdep.c (mips_gdbarch_init): Ditto.
2240
2241 2002-11-22 Christopher Faylor <cgf@redhat.com>
2242
2243 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2244 attach will hang.
2245
2246 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2247
2248 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2249 to default_frame_address.
2250 * gdbarch.h, gdbarch.c: Re-generate.
2251
2252 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2253 or frame_locals_address to default_frame_address.
2254 * m68k-tdep.c (m68k_gdbarch_init): Update.
2255 * i386-tdep.c (i386_gdbarch_init): Update.
2256 * frv-tdep.c (frv_gdbarch_init): Update.
2257 * sh-tdep.c (sh_gdbarch_init): Update.
2258 * v850-tdep.c (v850_gdbarch_init): Update.
2259 * sparc-tdep.c (sparc_gdbarch_init): Update.
2260 * mips-tdep.c (mips_gdbarch_init): Update.
2261 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2262 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2263 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2264
2265 * cris-tdep.c (cris_frame_args_address): Delete function.
2266 (cris_frame_locals_address): Delete function.
2267 (cris_gdbarch_init): Do not set frame_args_address or
2268 frame_locals_address.
2269
2270 2002-11-22 Michael Snyder <msnyder@redhat.com>
2271
2272 * thread-db.c (thread_db_load): Tell the user what's going on
2273 if dlopen fails on libthread_db.
2274
2275 2002-11-23 Andreas Schwab <schwab@suse.de>
2276
2277 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2278 invariant return values.
2279
2280 2002-11-22 Andreas Schwab <schwab@suse.de>
2281
2282 * valops.c (value_slice): Move declaration of `offset' to avoid
2283 warning.
2284
2285 2002-11-22 Christopher Faylor <cgf@redhat.com>
2286
2287 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2288 (struct so_stuff): Add end_addr field.
2289 (register_loaded_dll): Calculate and store end address of loaded dll.
2290 (solib_address): New function.
2291 (child_solib_loaded_library_pathname): Pass carefully constructed
2292 section info to safe_symbol_file_add rather than ignoring it.
2293 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2294 DLL is loaded.
2295 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2296 (child_create_inferior): Fix a compiler warning.
2297 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2298 (solib_address): Declare new function.
2299
2300 2002-11-22 Andreas Schwab <schwab@suse.de>
2301
2302 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2303 and FPS registers.
2304
2305 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2306
2307 * maint.c (_initialize_maint_cmds): Fix typo. From
2308 Francesco Potorti` <pot@gnu.org>.
2309
2310 2002-11-21 Andrew Cagney <cagney@redhat.com>
2311
2312 * mips-tdep.c (mips_dump_tdep): Delete references to
2313 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2314 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2315 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2316 * printcmd.c (build_address_symbolic): Delete calls to
2317 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2318 (address_info): Ditto.
2319 Fix PR gdb/773.
2320
2321 2002-11-19 Klee Dienes <kdienes@apple.com>
2322 Adam Fedor <fedor@gnu.org>
2323
2324 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2325 the ability to explicitly specify the quote characters and word
2326 break characters; if NULL is specified for either, use the old
2327 behavior of using the characters used by the completer.
2328 (skip_chars): New function. Convenience wrapper around
2329 skip_quoted_chars to provide the original skip_chars behavior.
2330 * completer.h (skip_quoted_chars): Add prototype.
2331
2332 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2333
2334 Problems reported by Paul Eggert.
2335 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2336
2337 2002-11-19 Andreas Schwab <schwab@suse.de>
2338
2339 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2340 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2341 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2342 (m68k_linux_frame_saved_pc): Move to ...
2343 * m68klinux-tdep.c: ... here. New file.
2344 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2345 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2346
2347 2002-11-19 Adam Fedor <fedor@gnu.org>
2348
2349 * objc-exp.y: Revert to old skip_quoted usage.
2350
2351 2002-11-19 Adam Fedor <fedor@gnu.org>
2352
2353 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2354 (objc_lang_h): Define.
2355 (YYFILES): Add objc-exp.tab.c.
2356 (local-maintainer-clean): Remove objc-exp.tab.c.
2357 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2358
2359 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2360
2361 * p-exp.y (typecast rule): Add automatic dereference of
2362 pascal classes if needed.
2363 (THIS): Set current_type.
2364 Automatically dereference pascal classes.
2365 (typebase rule): Add ^typebase recognition.
2366
2367 2002-11-18 Adam Fedor <fedor@gnu.org>
2368
2369 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2370 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2371 (op_name): Handle OP_OBJC_SELF.
2372 * Makefile.in (expprint.o): Add additional depends.
2373
2374 2002-11-18 Adam Fedor <fedor@gnu.org>
2375
2376 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2377 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2378 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2379 * objc-exp.y: Likewise.
2380
2381 2002-11-18 Adam Fedor <fedor@gnu.org>
2382
2383 * gdb/parser-defs.h: (struct objc_class_str): New structure
2384 for parsing ObjC classes.
2385
2386 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2387
2388 * stack.c (frame_relative_level): Copy function from here ...
2389 * frame.c (frame_relative_level): ...to here.
2390
2391 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2392
2393 * frame.h (enum frame_type): Define.
2394 (get_frame_type): Declare.
2395 (struct frame_info): Add field `type'. Delete field
2396 signal_handler_caller.
2397 (deprecated_set_frame_signal_handler_caller): Declare.
2398 * frame.c (get_frame_type): New function.
2399 (deprecated_set_frame_type): New function.
2400 (create_new_frame): Set the frame's type.
2401 (get_prev_frame): Similar.
2402 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2403 * s390-tdep.c: Ditto.
2404 * m68klinux-nat.c: Ditto.
2405 * ns32k-tdep.c: Ditto.
2406 * x86-64-linux-tdep.c: Ditto.
2407 * vax-tdep.c: Ditto.
2408 * rs6000-tdep.c: Ditto.
2409 * ppc-linux-tdep.c: Ditto.
2410 * i386-interix-tdep.c: Ditto.
2411 * mips-tdep.c: Ditto.
2412 * m68k-tdep.c: Ditto.
2413 * hppa-tdep.c: Ditto.
2414 * ia64-tdep.c: Ditto.
2415 * cris-tdep.c: Ditto.
2416 * arm-tdep.c: Ditto.
2417 * alpha-tdep.c: Ditto.
2418 * i386-tdep.c: Ditto.
2419 * stack.c: Ditto.
2420 * ada-lang.c: Ditto.
2421 * blockframe.c: Update.
2422 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2423 deprecated_set_frame_type instead of signal_handler_caller.
2424 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2425 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2426 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2427
2428 2002-11-18 Klee Dienes <kdienes@apple.com>
2429
2430 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2431
2432 2002-11-18 Klee Dienes <kdienes@apple.com>
2433
2434 * buildsym.c (pop_context): Add comment.
2435
2436 2002-11-18 Klee Dienes <kdienes@apple.com>
2437
2438 * buildsym.h (pop_context): Convert to function, defined in
2439 buildsym.c.
2440 * buildsym.c: Include gdb_assert.h.
2441 (pop_context): Implement as C function. Add check for stack
2442 underflow.
2443 * dbxread.c (process_one_symbol): Complain and stop processing
2444 that symbol if we are already at the top of the context stack for
2445 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2446 when processing N_RBRAC.
2447
2448 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2449
2450 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2451 define.
2452 (struct target_waitstatus): Add opaque definition.
2453 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2454 * exec.c (init_exec_ops): Likewise.
2455 * fork-child.c (clone_and_follow_inferior): Remove.
2456 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2457 * inferior.h (clone_and_follow_inferior): Remove prototype.
2458 * infrun.c (follow_fork_mode_both): Remove.
2459 (follow_fork_mode_kind_names): Remove commented out "both".
2460 (follow_inferior_fork): Remove follow_fork_mode_both support.
2461 * inftarg.c (child_clone_and_follow_inferior): Remove.
2462 (child_post_follow_inferior_by_clone): Remove.
2463 (init_child_ops): Don't set to_clone_and_follow_inferior
2464 or to_post_follow_inferior_by_clone.
2465 * target.c (default_clone_and_follow_inferior): Remove.
2466 (cleanup_target): Don't set to_clone_and_follow_inferior
2467 or to_post_follow_inferior_by_clone.
2468 (find_default_clone_and_follow_inferior): Remove.
2469 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2470 (debug_to_clone_and_follow_inferior): Remove.
2471 (debug_to_post_follow_inferior_by_clone): Remove.
2472 (setup_target_debug): Don't set to_clone_and_follow_inferior
2473 or to_post_follow_inferior_by_clone.
2474 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2475 and to_post_follow_inferior_by_clone.
2476 (child_clone_and_follow_inferior): Remove prototype.
2477 (child_post_follow_inferior_by_clone): Remove prototype.
2478 (target_clone_and_follow_inferior): Remove macro.
2479 (target_post_follow_inferior_by_clone): Remove macro.
2480 (find_default_clone_and_follow_inferior): Remove prototype.
2481
2482 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2483
2484 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2485 inferior_has_vforked, and inferior_has_execd instead of
2486 target_has_forked, target_has_vforked, and target_has_execd.
2487 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2488 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2489 (CHILD_WAIT): Define.
2490 (child_wait): Add prototype.
2491 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2492 Add prototype.
2493 (hpux_has_vforked): Likewise, from child_has_vforked.
2494 (hpux_has_execd): Likewise, from child_has_execd.
2495 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2496 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2497 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2498 and hpux_has_syscall_event instead of the target hooks.
2499 * infrun.c (inferior_has_forked, inferior_has_vforked)
2500 (inferior_has_execd): New functions.
2501 * inftarg.c (not_same_real_pid): Remove.
2502 (child_wait): Remove references to not_same_real_pid,
2503 target_has_forked, target_has_vforked, target_has_execd,
2504 and target_has_syscall_event.
2505 (child_has_forked, child_has_vforked, child_has_execd)
2506 (child_has_syscall_event): Remove.
2507 (init_child_ops): Remove references to child_has_forked,
2508 child_has_vforked, child_has_execd, and child_has_syscall_event.
2509 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2510 (hpux_has_vforked): Likewise, from child_has_vforked.
2511 (hpux_has_execd): Likewise, from child_has_execd.
2512 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2513 * target.c (cleanup_target): Remove references to
2514 to_has_forked, to_has_vforked, to_has_execd, and
2515 to_has_syscall_event.
2516 (update_current_target): Likewise.
2517 (setup_target_debug): Likewise.
2518 (debug_to_has_forked): Remove.
2519 (debug_to_has_vforked): Remove.
2520 (debug_to_has_execd): Remove.
2521 (debug_to_has_syscall_event): Remove.
2522 * target.h (struct target_ops): Remove to_has_forked.
2523 to_has_vforked, to_has_execd, and to_has_syscall_event.
2524 (child_has_forked, child_has_vforked, child_has_execd)
2525 (child_has_syscall_event): Remove prototypes.
2526 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2527 prototypes.
2528 (target_has_forked, target_has_vforked, target_has_execd)
2529 (target_has_syscall_event): Remove macros.
2530
2531 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2532
2533 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2534 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2535 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2536 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2537 * target.c (cleanup_target): Remove reference to
2538 to_can_follow_vfork_prior_to_exec.
2539 (update_current_target): Likewise.
2540 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2541 (setup_target_debug): Remove reference to
2542 to_can_follow_vfork_prior_to_exec.
2543 * target.h (struct target_ops): Remove
2544 to_can_follow_vfork_prior_to_exec.
2545 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2546 (target_can_follow_vfork_prior_to_exec): Remove definition.
2547 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2548 define.
2549 * infrun.c (follow_vfork_when_exec): Remove.
2550 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2551 (follow_exec): Likewise.
2552 (handle_inferior_event): Likewise.
2553 (keep_going): Likewise.
2554
2555 2002-11-15 Andrew Cagney <cagney@redhat.com>
2556
2557 * frame.c (generic_unwind_get_saved_register): Make static.
2558 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2559 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2560 defaults to generic_unwind_get_saved_register.
2561 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2562 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2563 * frv-tdep.c (frv_gdbarch_init): Ditto.
2564 * i386-tdep.c (i386_gdbarch_init): Ditto.
2565 * s390-tdep.c (s390_gdbarch_init): Ditto.
2566 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2567 * v850-tdep.c (v850_gdbarch_init): Ditto.
2568 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2569 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2570 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2571
2572 2002-11-15 Andrew Cagney <cagney@redhat.com>
2573
2574 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2575 i386-tdep.c.
2576
2577 2002-11-15 Andrew Cagney <cagney@redhat.com>
2578
2579 * frame.h (sigtramp_saved_pc): Delete declaration.
2580 * blockframe.c (sigtramp_saved_pc): Delete function.
2581 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2582 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2583 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2584 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2585
2586 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2587
2588 * frame.c (frame_pc_unwind): New function.
2589 (frame_saved_regs_pc_unwind): New function.
2590 (frame_register_unwind): Pass unwind_cache instead of
2591 register_unwind_cache.
2592 (set_unwind_by_pc): Add unwind_pc parameter, set.
2593 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2594 (get_prev_frame): Ditto.
2595 * frame.h (frame_pc_unwind_ftype): Declare.
2596 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2597 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2598 (frame_pc_unwind): Declare.
2599 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2600 (struct dummy_frame): Add comment mentioning that values are for
2601 previous frame.
2602 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2603 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2604 (generic_file_frame_chain_valid): Ditto.
2605 * stack.c (frame_info): Ditto.
2606
2607 2002-11-15 David Carlton <carlton@math.stanford.edu>
2608
2609 * linespec.c (locate_first_half): New function.
2610 (decode_line_1): Move code into locate_first_half.
2611
2612 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2613
2614 * complaints.h: Add comment explaining how to eliminate a
2615 deprecated_complain call.
2616 * complaints.h: Fix spelling errors.
2617
2618 2002-11-15 David Carlton <carlton@math.stanford.edu>
2619
2620 * printcmd.c: Remove #include "disasm.h".
2621
2622 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2623
2624 * frame.h: Move the most relevant interface functions to the start
2625 of the file.
2626
2627 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2628
2629 * regcache.h (deprecated_registers): Rename registers.
2630 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2631 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2632 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2633 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2634 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2635 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2636 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2637 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2638 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2639 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2640 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2641 * v850ice.c: Update.
2642
2643 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2644
2645 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2646 NULL buffer.
2647
2648 2002-11-13 Andrew Cagney <cagney@redhat.com>
2649
2650 * regcache.h (deprecated_read_register_bytes): Rename
2651 read_register_bytes.
2652 (deprecated_write_register_bytes): Rename write_register_bytes.
2653 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2654 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2655 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2656 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2657 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2658 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2659 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2660 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2661 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2662 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2663 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2664 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2665 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2666 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2667
2668 2002-11-13 Jim Blandy <jimb@redhat.com>
2669
2670 * findvar.c (read_var_value): Doc fix.
2671
2672 2002-11-13 Andrew Cagney <cagney@redhat.com>
2673
2674 * regcache.c (struct regcache): Replace passthough_p with
2675 readonly_p.
2676 (regcache_xmalloc): Initialize readonly_p.
2677 (build_regcache): Initialize readonly_p.
2678 (regcache_save): New function.
2679 (regcache_restore): New function.
2680 (regcache_cpy): Re-implement using regcache_save and
2681 regcache_restore.
2682 (regcache_raw_read): Update.
2683 (regcache_cooked_read): When a read-only cache, checked for cached
2684 pseudo register values.
2685 (regcache_raw_write): Assert that the cache is not read-only.
2686 Remove code handling a non-passthrough cache.
2687 * regcache.h (regcache_save): Declare.
2688 (regcache_restore): Declare.
2689
2690 2002-11-13 Andrew Cagney <cagney@redhat.com>
2691
2692 * regcache.c (struct regcache_descr): Add fields
2693 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2694 (init_legacy_regcache_descr): Compute the size of a cooked
2695 register cache and then assign that to sizeof_raw_registers. Set
2696 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2697 (init_legacy_regcache_descr): Ditto.
2698
2699 2002-11-13 Andrew Cagney <cagney@redhat.com>
2700
2701 * regcache.c (register_buffer): Move to near start of file, update
2702 description.
2703 (regcache_raw_read): Use.
2704 (regcache_raw_write): Use.
2705 (struct regcache): Rename raw_registers to registers and
2706 raw_register_valid_p to register_valid_p.
2707 (regcache_xmalloc): Update.
2708 (regcache_xfree): Update.
2709 (register_buffer): Update.
2710 (regcache_cpy): Update.
2711 (regcache_cpy_no_passthrough): Update.
2712 (regcache_valid_p): Update.
2713 (deprecated_grub_regcache_for_registers): Update.
2714 (deprecated_grub_regcache_for_register_valid): Update.
2715 (set_register_cached): Update.
2716 (regcache_raw_write): Update.
2717
2718 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2719
2720 * p-exp.y (name_not_typename): Use copy_name to
2721 set current_type variable for fields of THIS.
2722
2723 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2724
2725 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2726 * monitor.c (init_base_monitor_ops): Likewise.
2727 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2728 * remote-array.c (init_array_ops): Likewise.
2729 * remote-e7000.c (init_e7000_ops): Likewise.
2730 * remote-es.c (init_es1800_ops): Likewise.
2731 (init_es1800_child_ops): Likewise.
2732 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2733 * remote-sim.c (init_gdbsim_ops): Likewise.
2734 * remote-st.c (init_st2000_ops): Likewise.
2735 * sol-thread.c (init_sol_core_ops): Likewise.
2736 (init_sol_thread_ops): Likewise.
2737 * v850ice.c (init_850ice_ops): Likewise.
2738 * win32-nat.c (init_child_ops): Likewise.
2739 * wince.c (init_child_ops): Likewise.
2740
2741 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2742
2743 * utils.c (gdb_realpath): Make rp a constant pointer.
2744
2745 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2746
2747 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2748 a constant buffer; cannonicalize_file_name(); realpath() with a
2749 pathconf() defined buffer, xstrdup().
2750
2751 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2752
2753 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2754 to hang2.C; hang3.c to hang3.C.
2755
2756 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2757
2758 * findvar.c (read_var_value): Reenable TLS code.
2759
2760 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2761 Jim Blandy <jimb@redhat.com>
2762
2763 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2764 * target.c (update_current_target): Add
2765 to_get_thread_local_address.
2766 * target.h (to_get_thread_local_address): Export.
2767 (target_get_thread_local_address): Define.
2768 (target_get_thread_local_address_p): Define.
2769 * thread-db.c: Include solib-svr4.h.
2770 (td_thr_tls_get_addr_p): Define.
2771 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2772 (thread_db_get_thread_local_address): New function.
2773 (init_thread_db_ops): Initialize to_get_thread_local_address.
2774 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2775 * configure: Regenerate.
2776 * config.in: Regenerate.
2777
2778 2002-11-11 David Carlton <carlton@math.stanford.edu>
2779
2780 * linespec.c (set_flags): New function.
2781 (decode_line_1): Move code into set_flags.
2782
2783 2002-11-11 David Carlton <carlton@math.stanford.edu>
2784
2785 * linespec.c (decode_line_1): Move chunks of code to separate
2786 functions.
2787 (initialize_defaults): New function.
2788 (decode_indirect): New function.
2789
2790 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2791
2792 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2793 instead of void_code_ptr.
2794 (sigtramp_saved_pc): Ditto.
2795
2796 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2797 i386_fp_regnum_p.
2798
2799 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2800
2801 * gdbtypes.h (struct main_type): Move artificial flag out of
2802 loc. New member of ``struct field'' named static_kind. Reduce
2803 overloaded meaning of bitsize.
2804 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2805 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2806 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2807
2808 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2809 new fields.
2810 (template_to_fixed_record_type, template_to_static_fixed_type)
2811 (to_record_with_fixed_variant_part): Likewise.
2812 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2813 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2814 * dwarfread.c (struct_type, enum_type): Likewise.
2815 * hpread.c (hpread_read_enum_type)
2816 (hpread_read_function_type, hpread_read_doc_function_type)
2817 (hpread_read_struct_type): Likewise.
2818 * mdebugread.c (parse_symbol): Likewise.
2819
2820 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2821
2822 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2823 * stack.c (print_frame_info_base): Update.
2824 (print_frame_info_base, frame_info): Update.
2825 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2826 (sparc_frame_saved_pc): Update.
2827 * ada-lang.c (find_printable_frame): Update.
2828 * breakpoint.c (deprecated_frame_in_dummy): Update.
2829
2830 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2831
2832 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2833 defined.
2834 (regmap): Extend to cover all registers.
2835 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2836 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2837 definitions.
2838 (fetch_register, sore_register): Simplify.
2839 (old_fetch_inferior_registers, old_store_inferior_registers):
2840 Remove functions.
2841 (cannot_fetch_register, cannot_store_register): Change
2842 implementation to use regmap array to decide which registers
2843 cannot be fetched/stored. This removes $orig_eax from the
2844 registers that cannot be fetched/stored.
2845 (fetch_inferior_registers): Call fetch_register directly instead
2846 of calling old_fetch_inferior_registers.
2847 (store_inferior_registers): Call store_register directly instead
2848 of calling old_store_inferior_registers.
2849 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2850 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2851 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2852
2853 2002-11-09 Klee Dienes <kdienes@apple.com>
2854
2855 * i387-tdep.c (i387_supply_register): When called with NULL as a
2856 buffer, mark the register as not provided (to mirror the behavior
2857 of supply_register).
2858 (i387_supply_fxsave): Ditto.
2859 (i387_supply_fsave): Ditto (inherits the behavior from
2860 i387_supply_register).
2861
2862 2002-11-09 Klee Dienes <kdienes@apple.com>
2863
2864 * blockframe.c (sigtramp_saved_pc): Use
2865 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2866 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2867 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2868
2869 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2870
2871 * frame.c (get_prev_frame): Test prev_p to identify a previously
2872 unwound frame. Initialize prev_p.
2873 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2874 comment.
2875
2876 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2877
2878 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2879 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2880 more comments. Zap dead code.
2881
2882 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2883
2884 * infcmd.c (print_vector_info, print_float_info): Move code that
2885 checks whether the target has any registers and whether there is a
2886 selected frame up, such that it is also used if a target provides
2887 multi-arch definitions of these functions.
2888
2889 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2890
2891 * Makefile.in (DESTDIR): Define.
2892 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2893 prefix.
2894
2895 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2896 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2897
2898 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2899
2900 * i386-linux-tdep.c: Include "reggroups.h".
2901 (i386_linux_register_reggroup_p): New function.
2902 (i386_linux_init_abi): Set register_reggroup_p to
2903 i386_linux_register_reggroup_p.
2904 * i386-tdep.h (i386_register_reggroup_p): Declare.
2905 * i386-tdep.c: Include "reggroups.h".
2906 (i386_init_reggroups): New function.
2907 (i386_add_reggroups): New function.
2908 (i386_register_reggroup_p): New function.
2909 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2910 (_initialize_i386_tdep): Call i386_init_reggroups.
2911 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2912 specific reggroups.
2913
2914 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2915
2916 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2917 request that's available in *BSD.
2918
2919 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2920
2921 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2922 FDOFF_REGNUM.
2923
2924 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2925
2926 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2927 * dummy-frame.c (find_dummy_frame): Rename
2928 generic_find_dummy_frame, make static. Return the dummy frame
2929 instead of the regcache.
2930 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2931 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2932 (dummy_frame_register_unwind): Rename
2933 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2934 * dummy-frame.h (dummy_frame_register_unwind): Rename
2935 generic_call_dummy_register_unwind.
2936
2937 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2938
2939 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2940 except the inclusion of "i386/tm-i386.h", to...
2941 * config/i386/nm-i386v42mp.h: ...here.
2942 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2943
2944 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2945
2946 * Makefile.in (frame.o): Update dependencies.
2947 * blockframe.c (current_frame, frame_obstack_alloc)
2948 (frame_saved_regs_zalloc, get_current_frame)
2949 (set_current_frame, create_new_frame)
2950 (set_unwind_by_pc, get_next_frame)
2951 (flush_cached_frames, reinit_frame_cache)
2952 (frame_saved_regs_register_unwind)
2953 (deprecated_generic_get_saved_register)
2954 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2955 (_initialize_blockframe): Move frame code from here...
2956 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2957 "annotate.h" and "dummy-frame.h".
2958 (_initialize_frame): New function.
2959
2960 2002-11-08 Jim Blandy <jimb@redhat.com>
2961
2962 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2963 when we finish a function a context.
2964 * buildsym.h (outermost_context_p): New macro.
2965 (Bug analyzed by David Edelsohn.)
2966
2967 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2968
2969 * blockframe.c: Include "dummy-frame.h".
2970 (struct dummy_frame, dummy_frame_stack)
2971 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2972 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2973 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2974 (generic_save_call_dummy_addr, generic_pop_current_frame)
2975 (generic_pop_dummy_frame, generic_fix_call_dummy)
2976 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2977 dummy frame code from here...
2978 * dummy-frame.c: ...to here. New file.
2979 * dummy-frame.h: New file.
2980 (generic_call_dummy_register_unwind): Declare.
2981 (generic_find_dummy_frame): Declare.
2982 * Makefile.in (SFILES): Add dummy-frame.c.
2983 (dummy-frame.o): Specify dependencies.
2984 (dummy_frame_h): Define.
2985 (COMMON_OBS): Add dummy-frame.o.
2986 (blockframe.o): Update dependencies.
2987
2988 2002-11-08 Jim Blandy <jimb@redhat.com>
2989
2990 * dwarf2read.c (read_func_scope): Restore local_symbols and
2991 param_symbols after we finish the function context. (Based on a
2992 patch from David Edelsohn.)
2993
2994 2002-11-08 David Carlton <carlton@math.stanford.edu>
2995
2996 * linespec.c (symbol_found): New function.
2997 (minsym_found): New function.
2998 (decode_line_1): Separate out some code into separate functions.
2999
3000 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3001
3002 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3003 the benefit of the interix target.
3004 * i386-tdep.h (i386_frameless_signal_p): Declare.
3005
3006 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3007
3008 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3009 declaration that snuck in from change below.
3010
3011 2002-11-06 Andrew Cagney <cagney@redhat.com>
3012
3013 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3014 all callers.
3015 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3016 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3017 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3018 (i386_mxcsr_regnum_p): new function. Use instead of
3019 MXCSR_REGNUM_P.
3020 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3021 (i386_sse_regnum_p): Declare.
3022 (i386_mxcsr_regnum_p): Declare.
3023 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3024 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3025 (IS_FP_REGNUM): Update definition.
3026 (IS_FPU_CTRL_REGNUM): Update definition..
3027 (IS_SSE_REGNUM): Update definition..
3028 * i386v-nat.c (register_u_addr): Update.
3029 * go32-nat.c (fetch_register): Update.
3030 (store_register): Update.
3031
3032 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3033
3034 Preparation work to convert the hppa targets to multiarch partial.
3035
3036 * hppa-tdep.c: Add new functions replacing macro bodies from
3037 config/pa/tm-hppa.h. These function will be used to initialize
3038 the gdbarch structure. Import some comments from tm-hppa.h,
3039 and place them where appropriate, to avoid loosing them when
3040 we cleanup this file.
3041 (hppa_reg_struct_has_addr): New function.
3042 (hppa_inner_than): New function.
3043 (hppa_stack_align): New function.
3044 (hppa_pc_requires_run_before_use): New function.
3045 (hppa_instruction_nullified): New function.
3046 (hppa_register_byte): New function.
3047 (hppa_register_virtual_type): New function.
3048 (hppa_store_struct_return): New function.
3049 (hppa_cannot_store_register): New function.
3050 (hppa_frame_args_address): New function.
3051 (hppa_frame_locals_address): New function.
3052 (hppa_smash_text_address): New function.
3053 (hppa_coerce_float_to_double): New function. Requires the inclusion
3054 of "language.h".
3055
3056 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3057
3058 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3059 gdbarch-eligible macro to a call to the new associated function
3060 created in hppa-tdep.c.
3061 (INNER_THAN): Likewise.
3062 (STACK_ALIGN): Likewise.
3063 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3064 (INSTRUCTION_NULLIFIED): Likewise.
3065 (REGISTER_BYTE): Likewise.
3066 (REGISTER_VIRTUAL_TYPE): Likewise.
3067 (STORE_STRUCT_RETURN): Likewise.
3068 (CANNOT_STORE_REGISTER): Likewise.
3069 (FRAME_ARGS_ADDRESS): Likewise.
3070 (FRAME_LOCALS_ADDRESS): Likewise.
3071 (SMASH_TEXT_ADDRESS): Likewise.
3072 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3073 (ABOUT_TO_RETURN): Delete, as no longer used.
3074
3075 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3076
3077 * printcmd.c (disassemble_command): Remove obsolete function.
3078 (_initialize_printcmd): Do not create disassemble command here.
3079 * cli/cli-cmds.c (disassemble_command): New function. Implements
3080 disassemble command.
3081 (init_cli_cmds): Create disassemble command here instead.
3082
3083 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3084
3085 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3086
3087 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3088
3089 * regcache.h (regcache_cooked_read_using_offset_hack)
3090 (regcache_cooked_write_using_offset_hack): Delete declarations.
3091 (register_changed): Delete declaration.
3092 * regcache.c (regcache_cooked_read_using_offset_hack)
3093 (regcache_cooked_write_using_offset_hack): Delete functions.
3094 (cooked_xfer_using_offset_hack): Delete function.
3095 (register_changed): Delete function.
3096
3097 2002-11-07 Jim Blandy <jimb@redhat.com>
3098
3099 * macroscope.c: #include "complaints.h".
3100 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3101 but not in the macro table.
3102 * Makefile.in (macroscope.o): Record dependency.
3103
3104 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3105
3106 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3107
3108 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3109
3110 * regcache.c (deprecated_registers_fetched): Update.
3111 * regcache.h (deprecated_registers_fetched): Rename
3112 registers_fetched.
3113 * remote-vxsparc.c (vx_read_register): Update.
3114 * remote-vxmips.c (vx_read_register): Update.
3115 * remote-vx68.c (vx_read_register): Update.
3116 * irix5-nat.c (fetch_core_registers): Update.
3117 * mipsm3-nat.c (fetch_inferior_registers): Update.
3118 * sun3-nat.c (fetch_inferior_registers): Update.
3119 * symm-nat.c (fetch_inferior_registers): Update.
3120 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3121 (fetch_core_registers): Update.
3122 (fetch_kcore_registers): Update.
3123 * mips-nat.c (fetch_inferior_registers): Update.
3124 * corelow.c (get_core_registers): Update.
3125 * a68v-nat.c (fetch_inferior_registers): Update.
3126
3127 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3128
3129 Put in place the framework necessary for multiarching the hppa targets.
3130 * hppa-tdep.c (hppa_gdbarch_init): New function.
3131 (hppa_dump_tdep): New function.
3132 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3133 tdep structure dumper.
3134 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3135 until the multi-arching conversion has partially been completed.
3136
3137 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3138
3139 * valops.c (value_assign): Merge lval_register case into
3140 lval_reg_frame_relative. Use frame_register and
3141 regcache_cooked_write instead of get_saved_register and
3142 write_register_bytes. After flushing the register cache, try to
3143 re-select the selected frame.
3144
3145 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3146
3147 * regcache.h (deprecated_register_valid): Rename register_valid.
3148 * regcache.c: Update.
3149 * ia64-aix-nat.c: Update.
3150 * i386gnu-nat.c: Update.
3151 * alpha-nat.c: Update.
3152 * sparc-nat.c: Update.
3153 * lynx-nat.c: Update.
3154 * remote-mips.c: Update.
3155
3156 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3157
3158 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3159 to end of file, to be more consistent with the pratice followed
3160 by other targets.
3161
3162 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3163
3164 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3165 (print_float_info): Print registers in float_reggroup.
3166 (print_vector_info): Print registers in vector_reggroup.
3167 (default_print_registers_info): When all, print registers in
3168 all_reggroup. Otherwize, print registers in general_reggroup.
3169 (registers_info): Rewrite. Add support for register groups.
3170 Eliminate a goto.
3171
3172 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3173
3174 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3175 ages.
3176 (symtab_symbol_info): Remove eons old ifdeffed out code.
3177 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3178 command.
3179
3180 2002-11-06 Theodore A. Roth <troth@openavr.org>
3181
3182 * c-exp.y: Add missing semi-colons.
3183 * f-exp.y: Add missing semi-colons.
3184 * m2-exp.y: Add missing semi-colons.
3185 * p-exp.y: Add missing semi-colons.
3186 Add empty action to start rule to avoid a type clash error when
3187 building with bison >= 1.50.
3188
3189 2002-11-06 Jim Blandy <jimb@redhat.com>
3190
3191 * macrotab.h (struct macro_source_file): Doc fix.
3192
3193 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3194
3195 * varobj.c (child_exists, cplus_number_of_children): Change
3196 STREQ macro references to strcmp.
3197 (cplus_name_of_child): Change code to handle the fact that
3198 fields are not necessarily contiguous with regards to their
3199 access control. This is a fix for PR gdb/792.
3200
3201 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3202
3203 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3204 * gdbarch.h, gdbarch.c: Regnerate.
3205 * frame.h (frame_register): Declare.
3206 * frame.c (frame_register): New function.
3207 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3208 GET_SAVED_REGISTER, otherwize call
3209 generic_unwind_get_saved_register.
3210 (frame_register_read): Use frame_register instead of
3211 get_saved_register.
3212
3213 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3214
3215 From Jim Ingham <jingham@apple.com>:
3216 * event-top.c (gdb_disable_readline): New function.
3217 (_initialize_event_loop): Move comment.
3218
3219 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3220
3221 * event-loop.c (start_event_loop): Add comment.
3222 Update copyright.
3223
3224 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3225
3226 * infcmd.c (default_print_registers_info): Do not call
3227 PRINT_REGISTER_HOOK.
3228
3229 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3230
3231 * sparc-tdep.c (sparc_print_register_hook): Make static.
3232 (sparc_print_registers_info): New function.
3233 (sparc_do_registers_info): New function.
3234 (sparclet_print_registers_info): New function.
3235 (sparclet_do_registers_info): New function.
3236 (do_sparc_print_registers_info): New function.
3237 (sparc_print_registers): New static function, clone of infcmd.c's
3238 default_print_registers_info.
3239 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3240 (sparclet_do_registers_info): Declare.
3241 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3242 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3243 Re-define.
3244 (sparc_do_registers_info): Declare.
3245 (PRINT_REGISTER_HOOK): Delete macro.
3246 (sparc_print_register_hook): Delete declaration.
3247
3248 2002-11-05 David Carlton <carlton@math.stanford.edu>
3249
3250 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3251 functions.
3252 (lookup_symbol_aux_local): New function.
3253 (lookup_symbol_aux_symtabs): New function.
3254 (lookup_symbol_aux_psymtabs): New function.
3255
3256 2002-11-05 David Carlton <carlton@math.stanford.edu>
3257
3258 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3259 previous values of 'objfile' and 'block'.
3260
3261 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3262
3263 * values.c (value_change_enclosing_type): Set
3264 enclosing_type field correctly also for the case where
3265 more memory needs to be allocated.
3266
3267 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3268
3269 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3270 of puts_filtered.
3271
3272 * i387-tdep.c (i387_print_float_info): Replace calls to
3273 register_read and deprecated_read_register_gen with calls to
3274 frame_register_read, and make the necessary adjustments to the
3275 surrounding code.
3276
3277 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3278
3279 * gdbarch.sh (register_reggroup_p): Allow default value.
3280 * gdbarch.h, gdbarch.c: Regenerate.
3281
3282 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3283
3284 * regcache.h: Add coment indicating replacements for deprecated
3285 functions.
3286
3287 2002-11-02 Andrew Cagney <cagney@redhat.com>
3288
3289 * reggroups.h, reggroups.c: New files.
3290 * regcache.c: Include "reggroups.h".
3291 (enum regcache_dump_what): Add `regcache_dump_groups'.
3292 (regcache_dump): Contract size of the "Type" column. When
3293 specified, dump the register's groups.
3294 (maintenance_print_register_groups): New function.
3295 (_initialize_regcache): Add command `maint print register-groups'.
3296 * Makefile.in (COMMON_OBS): Add reggroups.o
3297 (SFILES): Add reggroups.c.
3298 (reggroups_h): Define.
3299 (regcache.o, gdbarch.o): Update dependencies.
3300 (reggroups.o): Specify dependencies.
3301 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3302 Add opaque declaration for `struct reggroup' in generated .h file.
3303 Include "reggroups.h" in generated .c file.
3304 gdbarch.h, gdbarch.c: Re-generate.
3305
3306 2002-11-02 Andrew Cagney <cagney@redhat.com>
3307
3308 * regcache.h (deprecated_read_register_gen): Rename
3309 read_register_gen.
3310 (deprecated_write_register_gen): Rename write_register_gen.
3311 * i387-tdep.c: Update.
3312 * x86-64-linux-nat.c: Update
3313 * wince.c: Update.
3314 * thread-db.c: Update.
3315 * win32-nat.c: Update.
3316 * mips-tdep.c: Update.
3317 * d10v-tdep.c: Update.
3318 * cris-tdep.c: Update.
3319 * remote-sim.c: Update.
3320 * remote-rdi.c: Update.
3321 * remote-rdp.c: Update.
3322 * frame.c: Update.
3323 * target.c: Update.
3324 * blockframe.c: Update.
3325 * x86-64-tdep.c: Update.
3326 * xstormy16-tdep.c: Update.
3327 * sh-tdep.c: Update.
3328 * s390-tdep.c: Update.
3329 * rs6000-tdep.c: Update.
3330 * sparc-tdep.c: Update.
3331 * i386-tdep.c: Update.
3332 * dwarf2cfi.c: Update.
3333 * regcache.c: Update.
3334
3335 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3336
3337 New interix-specific files:
3338 * config/i386/nm-interix.h: New file.
3339 * config/i386/interix.mh: New file.
3340 * config/i386/interix.mt: New file.
3341 * i386-interix-nat.c: New file.
3342 * i386-interix-tdep.c: New file.
3343
3344 2002-11-01 Andrew Cagney <cagney@redhat.com>
3345
3346 * frame.h (deprecated_generic_get_saved_register): Rename
3347 generic_get_saved_register.
3348 * blockframe.c (deprecated_generic_get_saved_register): Update.
3349 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3350 (xstormy16_frame_saved_register): Update.
3351 * sh-tdep.c (sh_gdbarch_init): Update.
3352 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3353 * ia64-tdep.c (ia64_get_saved_register): Update.
3354 * cris-tdep.c (cris_gdbarch_init): Update.
3355 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3356 * arm-tdep.c (arm_gdbarch_init): Update.
3357
3358 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3359
3360 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3361
3362 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3363
3364 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3365 trampolines in sigaction.
3366
3367 2002-10-31 Andrew Cagney <cagney@redhat.com>
3368
3369 * h8300-tdep.c: Include "gdb_assert.h".
3370 (h8300_print_register): Add gdbarch, file and frame parameters.
3371 Use frame_read_unsigned_register to read the register's value.
3372 Use fprintf_filtered to display output.
3373 (h8300_print_registers_info): Replace h8300_do_registers_info.
3374 (h8300_gdbarch_init): Set print_registers_info.
3375
3376 2002-10-31 Andrew Cagney <cagney@redhat.com>
3377
3378 * frame.c (frame_read_unsigned_register): New function.
3379 (frame_read_signed_register): New function.
3380 * frame.h (frame_read_unsigned_register): Declare.
3381 (frame_read_signed_register): Declare.
3382
3383 2002-10-31 Andrew Cagney <cagney@redhat.com>
3384
3385 * h8500-tdep.c (h8500_print_registers_info): New static function,
3386 clone of infcmd.c's default_print_registers_info.
3387 (h8500_do_registers_info): New funtion.
3388 (h8500_print_register_hook): Rename print_register_hook, make
3389 static.
3390
3391 * config/h8500/tm-h8500.h: Update copyright.
3392 (DEPRECATED_DO_REGISTERS_INFO): Define.
3393 (h8500_do_registers_info: Declare.
3394 (PRINT_REGISTER_HOOK): Delete macro.
3395 (print_register_hook): Delete function.
3396
3397 2002-10-31 Andrew Cagney <cagney@redhat.com>
3398
3399 * z8k-tdep.c (z8k_print_register_hook): Make static.
3400 (z8k_print_registers_info): New static function, clone of
3401 infcmd.c's default_print_registers_info.
3402 (z8k_do_registers_info): New function. Wrap
3403 z8k_print_registers_info.
3404 * config/z8k/tm-z8k.h: Update copyright.
3405 (PRINT_REGISTER_HOOK): Delete macro.
3406 (z8k_print_register_hook): Delete declaration.
3407 (DEPRECATED_DO_REGISTERS_INFO): Define.
3408 (z8k_do_registers_info): Declare.
3409
3410 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3411
3412 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3413 as this is already provided by value.h, and was actually causing
3414 a compilation error because of a conflict in parameter type
3415 declaration due to a missing const keyword.
3416 (low_text_segment_addres): Fix a compilation warning.
3417
3418 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3419
3420 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3421 registers without a name.
3422 (mips_linux_cannot_store_register): Don't store registers without
3423 a name.
3424
3425 2002-10-28 David Carlton <carlton@math.stanford.edu>
3426
3427 * symtab.c (find_addr_symbol): Delete. (It was already commented
3428 out.)
3429 * symtab.h: Delete prototype for find_addr_symbol.
3430
3431 2002-10-26 Andrew Cagney <cagney@redhat.com>
3432
3433 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3434 DO_REGISTERS_INFO.
3435 gdbarch.h, gdbarch.c: Re-generate.
3436 * infcmd.c (default_print_registers_info): Update reference.
3437 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3438 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3439 * sh-tdep.c (sh_gdbarch_init): Ditto.
3440 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3441 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3442
3443 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3444
3445 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3446 cfi_init_extra_frame_info.
3447 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3448 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3449
3450 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3451 target where necessary. Add more comments and remove the ones
3452 that don't provide any useful information.
3453
3454 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3455 deprecated_read_register_dummy with
3456 frame_unwind_unsigned_register.
3457
3458 * i386-tdep.c (i386_extract_struct_value_address): Use
3459 regcache_raw_read_unsigned instead of
3460 regcache_cooked_read_unsigned since we know that the register
3461 we're reading isn't a pseudo register. Rename variable 'val' into
3462 the more descriptive 'addr'.
3463
3464 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3465 (x86_64_push_return_address): Add comment.
3466 (x86_64_pop_frame): Make static.
3467 (examine_argument): Clarify comment.
3468 (x86_64_skip_prologue): Make prolog_expact variable static.
3469
3470 * dwarf2cfi.c: Fix some formatting problems.
3471 (context_cpy, read_encoded_pointer): Clarify comments.
3472
3473 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3474 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3475 i386 target back into x86_64_gdbarch_init. Add some comments and
3476 remove meaningless ones.
3477
3478 2002-10-25 Andrew Cagney <cagney@redhat.com>
3479
3480 * complaints.h (struct deprecated_complaint): Rename `struct
3481 complaint'.
3482 * complaints.c (complain): Update.
3483 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3484 incorrect comment indicating that "symfile.h" was being included
3485 for the `struct complaint' definition.
3486 * remote-vx.c: Update.
3487 * objc-lang.c: Update.
3488 * xcoffread.c: Update.
3489 * hpread.c: Update.
3490 * mdebugread.c: Update.
3491 * stabsread.c: Update.
3492 * dwarf2read.c: Update.
3493 * dwarfread.c: Update.
3494 * elfread.c: Update.
3495 * coffread.c: Update.
3496 * stabsread.h: Update.
3497 * dbxread.c: Update.
3498 * buildsym.c: Update.
3499 * gdbtypes.c: Update.
3500 * macrotab.c: Update.
3501
3502 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3503
3504 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3505 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3506 (x86_64_init_abi): ...new function.
3507
3508 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3509 * i386v-nat.c: Include "i386-tdep.h".
3510
3511 2002-10-25 Andrew Cagney <cagney@redhat.com>
3512
3513 * gdbtypes.c (address_space_name_to_int): Update.
3514 (address_space_int_to_name): Update.
3515 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3516 multi-arch predicate.
3517 (address_class_name_to_type_flags): Ditto.
3518 * gdbarch.h, gdbarch.c: Re-generate.
3519
3520 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3521
3522 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3523
3524 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3525
3526 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3527
3528 * symtab.h (INIT_SAL): Delete macro.
3529 (init_sal): Export.
3530 * symtab.c (init_sal): New function.
3531
3532 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3533 to init_sal function call.
3534 (find_sal_from_funcs_and_line): Ditto.
3535 (all_sals_for_line): Ditto.
3536 * breakpoint.c (create_internal_breakpoint): Ditto.
3537 (create_fork_vfork_event_catchpoint): Ditto.
3538 (create_exec_event_catchpoint): Ditto.
3539 (parse_breakpoint_sals): Ditto.
3540 (watch_command_1): Ditto.
3541 (handle_gnu_4_16_catch_command): Ditto.
3542 (clear_command): Ditto.
3543 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3544 * infcmd.c (run_stack_dummy): Ditto.
3545 * infrun.c (process_event_stop_test): Ditto.
3546 (check_sigtramp2): Ditto.
3547 (step_over_function): Ditto.
3548 * linespec.c (decode_line_2): Ditto.
3549 (decode_line_1): Ditto.
3550 * source.c (line_info): Ditto.
3551 * symtab.c (find_pc_sect_line): Ditto.
3552
3553 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3554
3555 * dwarf2cfi.c (struct context)
3556 (struct context_reg): Moved to dwarf2cfi.h
3557 (context_alloc, frame_state_alloc, context_cpy):
3558 Made extern instead of static, removed prototypes.
3559 * dwarf2cfi.h (struct context)
3560 (struct context_reg): New, moved from dwarf2cfi.c
3561 (context_alloc, frame_state_alloc, context_cpy):
3562 New prototypes.
3563 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3564 Changed from static to extern.
3565 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3566 (LINUX_SIGCONTEXT_FP_OFFSET)
3567 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3568 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3569 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3570 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3571 set_gdbarch_*() calls now use x86-64 specific functions
3572 instead of DWARF2 CFI ones.
3573 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3574 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3575 (x86_64_init_extra_frame_info): New prototypes.
3576
3577 2002-10-23 David Carlton <carlton@math.stanford.edu>
3578
3579 * linespec.c: #include "parser-defs.h".
3580 Delete prototype for find_template_name_end.
3581 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3582
3583 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3584
3585 * NEWS: add recent mi fixes.
3586 * varobj.c (struct varobj): Add new "updated" flag.
3587 (new_variable): Default "updated" flag to 0.
3588 (varobj_set_value): Set "updated" flag to 1 if value
3589 changes.
3590 (varobj_update): Check varobj "updated" flag before
3591 comparing old and refreshed values. Fix for
3592 PR gdb/702.
3593
3594 2002-10-23 David Carlton <carlton@math.stanford.edu>
3595
3596 * parse.c (parse_exp_1): Use BLOCK_START.
3597 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3598 SYMBOL_BLOCK_VALUE.
3599 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3600
3601 2002-10-23 David Carlton <carlton@math.stanford.edu>
3602
3603 * symtab.c: Delete cplusplus_hint.
3604 Delete prototype for find_template_name_end.
3605
3606 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3607
3608 * symtab.h: Update comment.
3609
3610 2002-10-23 Michael Snyder <msnyder@redhat.com>
3611
3612 * printcmd.c (address_info): Restore quotes in output.
3613 * valops.c (value_of_local): Restore quotes in error message.
3614
3615 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3616
3617 * symtab.c (symbol_demangled_name): New function.
3618 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3619 turning most of it into a function.
3620 (symbol_demangled_name): Export.
3621
3622 2002-10-23 Michael Snyder <msnyder@redhat.com>
3623
3624 * valops.c (value_of_local): Restore quotes in error message.
3625
3626 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3627
3628 * symtab.c (symbol_init_language_specific): New function.
3629 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3630 turning most of it into a function.
3631 (symbol_init_language_specific): Export.
3632
3633 2002-10-23 David Carlton <carlton@math.stanford.edu>
3634
3635 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3636 (dwarf_attr_name): Ditto.
3637 (dwarf_type_encoding_name): Ditto.
3638 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3639 (process_die): Handle DW_TAG_namespace,
3640 DW_TAG_imported_declaration, DW_TAG_imported_module.
3641 (read_namespace): New function.
3642
3643 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3644
3645 * configure.in: Define NEW_PROC_API on Interix too.
3646 * configure: Regenerate.
3647
3648 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3649
3650 * configure: Regenerate using the proper version of autoconf.
3651
3652 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3653
3654 * findvar.c (read_var_value): Temporarily disable TLS code, until
3655 complete TLS support is added.
3656
3657 2002-10-21 Jim Blandy <jimb@redhat.com>
3658 Elena Zannoni <ezannoni@redhat.com>
3659
3660 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3661 for thread local storage locations.
3662 (struct symbol): Add objfile field.
3663 (SYMBOL_OBJFILE): Define.
3664 * dwarf2read.c (is_thread_local): New static variable.
3665 (new_symbol): If variable is in thread local fill in address class
3666 and objfile appropriately.
3667 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3668 stack operation.
3669 * printcmd.c (address_info): Print the information for thread
3670 local storage variable.
3671 * findvar.c (read_var_value): In case of thread local variable,
3672 defer to the target vector code to compute address.
3673
3674 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3675
3676 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3677 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3678
3679 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3680
3681 * symtab.h (address_class): Rename
3682 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3683 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3684 * printcmd.c (address_info): Ditto.
3685 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3686
3687 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3688
3689 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3690 DBREG_DRX macro to acces debug registers.
3691
3692 * Makefile.in (i386obsd-tdep.o): New target.
3693
3694 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3695 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3696
3697 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3698 * config/i386/obsd.mt: New file.
3699 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3700 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3701 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3702 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3703 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3704 * i386obsd-tdep.c: New file.
3705
3706 2002-10-19 Adam Fedor <fedor@gnu.org>
3707
3708 * objc-exp.y (name_not_typename): Fix invalid comment.
3709
3710 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3711
3712 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3713 to allocate partial syms and macro byte caches.
3714
3715 2002-10-18 David Carlton <carlton@math.stanford.edu>
3716
3717 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3718
3719 2002-10-18 Adam Fedor <fedor@gnu.org>
3720
3721 * stabsread.c (find_name_end): New function.
3722 (define_symbol): Use it.
3723
3724 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3725
3726 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3727 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3728 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3729 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3730
3731 2002-10-17 David Carlton <carlton@math.stanford.edu>
3732
3733 * symfile.h: Add opaque declaration for struct obstack.
3734 Declare obsavestring to take a const char *.
3735 * symfile.c (obsavestring): Make first argument a const char *.
3736
3737 2002-10-16 Adam Fedor <fedor@gnu.org>
3738
3739 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3740 names when matching breakpoints in current file.
3741
3742 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3743
3744 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3745 (read_tag_pointer_type): Add address class support.
3746 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3747 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3748 New methods.
3749 * gdbarch.h, gdbarch.c: Regenerate.
3750 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3751 (make_type_with_address_space, recursive_type_dump): Add address
3752 class support.
3753 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3754 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3755 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3756
3757 2002-10-16 Klee Dienes <kdienes@apple.com>
3758
3759 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3760 to get the last character of a char[] buffer, not
3761 name[sizeof(vptr_name)-1].
3762
3763 2002-10-14 Adam Fedor <fedor@gnu.org>
3764
3765 * symtab.h: New objc_specific struct.
3766 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3767 (SYMBOL_DEMANGLED_NAME): Likewise.
3768
3769 2002-10-14 Adam Fedor <fedor@gnu.org>
3770
3771 * symfile.c (init_filename_language_table): Add ObjC file extension.
3772
3773 2002-10-14 Adam Fedor <fedor@gnu.org>
3774
3775 * utils.c (puts_filtered_tabular): New function.
3776 (fprintf_symbol_filtered): Get ObjC demangled name.
3777 * defs.h (puts_filtered_tabular): Declared.
3778
3779 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3780
3781 * c-lang.h (c_type_print_varspec_prefix): Delete.
3782 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3783 ``need_post_space'' parameter. Adjust all callers.
3784
3785 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3786
3787 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3788 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3789 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3790 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3791
3792 2002-10-13 Adam Fedor <fedor@gnu.org>
3793
3794 * source.c (print_source_lines): Update comments.
3795
3796 2002-10-13 Adam Fedor <fedor@gnu.org>
3797
3798 * valops.c (value_of_local): New function.
3799 (value_of_this): Use it.
3800 * value.h (value_of_local): Declared.
3801
3802 2002-10-13 Adam Fedor <fedor@gnu.org>
3803
3804 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3805 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3806
3807 2002-10-12 Adam Fedor <fedor@gnu.org>
3808
3809 * language.c (binop_result_type): Add language_objc to case.
3810 (integral_type): Likewise.
3811 (character_type): Likewise.
3812 (string_type): Likewise.
3813 (boolean_type): Likewise.
3814 (structured_type): Likewise.
3815 (binop_type_check): Likewise.
3816
3817 2002-10-11 Adam Fedor <fedor@gnu.org>
3818
3819 * printcmd.c (address_info): Print 'self' for ObjC.
3820
3821 2002-10-11 Adam Fedor <fedor@gnu.org>
3822
3823 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3824 OP_SELF.
3825
3826 2002-10-11 Adam Fedor <fedor@gnu.org>
3827
3828 * language.h (CAST_IS_CONVERSION): Add language_objc.
3829
3830 2002-10-11 Adam Fedor <fedor@gnu.org>
3831
3832 * defs.h (enum language): Add language_objc.
3833
3834 2002-10-11 Klee Dienes <kdienes@apple.com>
3835
3836 * corefile.c (read_memory_typed_address): New function.
3837 * gdbcore.h (read_memory_typed_address): Add prototype.
3838 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3839 to read a value destined for a CORE_ADDR, not read_memory_integer.
3840 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3841 (f77_get_dynamic_lowerbound): Ditto.
3842
3843 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3844
3845 * utils.c (string_to_core_addr): After turning string into
3846 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3847 which will do necessary sign-extension, etc.
3848
3849 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3850
3851 * c-exp.y (THIS): Delete token and grammar rule.
3852 (yylex): Don't return THIS.
3853 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3854 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3855 * demangle.c (cplus_markers): Update comment. Put '$'
3856 first. Remove CPLUS_MARKER.
3857 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3858 * jv-exp.y (THIS): Delete token and grammar rule.
3859 (yylex): Don't return THIS.
3860 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3861 * objc-exp.y (THIS): Delete token and grammar rule.
3862 (yylex): Don't return THIS.
3863 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3864 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3865 (read_member_functions): Likewise for opname.
3866 (read_tilde_fields): Use is_cplus_marker.
3867
3868 * defs.h (CPLUS_MARKER): Don't define.
3869 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3870 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3871 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3872 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3873 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3874
3875 * config/i386/tm-i386v4.h: Delete file.
3876 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3877 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3878 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3879 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3880 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3881 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3882 * config/i386/i386v4.mt (TM_FILE): Likewise.
3883 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3884
3885 2002-10-10 Marko Mlinar <markom@opencores.org>
3886
3887 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3888 accidentially not commited 2002-10-09
3889 * gdbarch.h, gdbarch.c: Re-generate.
3890
3891 2002-10-09 Marko Mlinar <markom@opencores.org>
3892
3893 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3894 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3895 * gdbarch.h, gdbarch.c: Re-generate.
3896
3897 2002-10-08 Petr Sorfa <petrs@caldera.com>
3898
3899 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3900
3901 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3902 so we can work on more than one compilation unit at a time. This
3903 helps prepare GDB to handle inter-CU die references.
3904 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3905 the code to be defined before struct comp_unit_head.
3906 (comp_unit_head): Added new members - offset, cu_head,
3907 begin_die, next and dwarf2_abbrevs.
3908 (dwarf2_abbrevs): Removed single static var; now member of
3909 struct comp_unit_head.
3910 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3911 members.
3912 (psymtab_to_symtab_1): Changed to work with the new
3913 struct comp_unit_head.
3914 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3915 constructs the dwarf2_abbrevs[] inside the cu_header.
3916 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3917 dwarf2_abbrev table to clean up.
3918 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3919 handling of dwarf2_abbrevs inside the cu_header.
3920 (read_partial_die): Now supports the call to the new
3921 dwarf2_lookup_abbrev.
3922 (read_full_die): Now supports the call to the new
3923 dwarf2_lookup_abbrev.
3924
3925 2002-10-06 Christopher Faylor <cgf@redhat.com>
3926
3927 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3928 insure that shell variables, such as "transformed_name" are propagated
3929 to later shell statements in rule.
3930
3931 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3932
3933 * config/i386/nm-i386sco.h: Add protection against
3934 multiple-inclusion. Include "i386/nm-i386v.h".
3935 (REGISTER_U_ADDR): Remove define.
3936 (i386_register_u_addr): Remove prototype.
3937
3938 2002-10-04 Michael Snyder <msnyder@redhat.com>
3939
3940 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3941 before treating it as a single-step event.
3942
3943 2002-10-03 Adam Fedor <fedor@gnu.org>
3944
3945 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3946 (objc_demangle): Remove assignment in if statements, Replace
3947 free with xfree.
3948 (add_msglist): Likewise.
3949 (end_msglist): Likewise.
3950 (complare_selectors): Likewise.
3951 (selectors_info): Likewise.
3952 (compare_classes): Likewise.
3953 (classes_info): Likewise.
3954 (print_object_command): Likewise.
3955 (find_objc_msgcall_submethod): Replace PTR with void *.
3956 * objc-lang.h: Remove check for __STDC__.
3957
3958 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3959
3960 * ui-out.h (ui_out_field_fmt_int): New prototype.
3961 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3962 of field width and alignment.
3963 * stack.c (print_frame_info_base): When printing frame level, use
3964 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3965 PR gdb/192
3966
3967 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3968
3969 * MAINTAINERS: Add self to Write After Approval list.
3970
3971 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3972
3973 * infcmd.c (interrupt_target_command_wrapper): Delete.
3974 (interrupt_target_command): Make non static.
3975 (nofp_registers_info): Make static.
3976 * stack.c (return_command_wrapper): Delete.
3977 (return_command): Make non static.
3978
3979 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3980
3981 * event-top.c (gdb_setup_readline): New function. Code moved from
3982 _initialize_event_loop().
3983 (_initialize_event_loop): Call gdb_setup_readline().
3984
3985 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3986
3987 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3988 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3989 * gdbarch.h, gdbarch.c: Re-generate.
3990
3991 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3992
3993 Fix PR gdb/778
3994 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3995 before recursing.
3996 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3997 of fill_in_vptr_fieldno.
3998
3999 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4000
4001 * inferior.h (registers_info, stepi_command, nexti_command,
4002 continue_command, interrupt_target_command): Export from infcmd.c.
4003 * frame.h (args_info, selected_frame_level_changed_hook,
4004 return_command): Export from stack.c.
4005 * v850ice.c (stepi_command, nexti_command, continue_command): use
4006 prototypes from inferior.h.
4007 * tracepoint.c (registers_info, args_info, locals_info): Use
4008 prototypes from frame.h and inferior.h.
4009 * Makefile.in (mi-main.o): Add dependency on frame.h.
4010
4011 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4012
4013 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4014 value in register 3 adjusted by ppc_gp0_regnum.
4015
4016 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4017
4018 2002-10-02 Marko Mlinar <markom@opencores.org>
4019
4020 * MAINTAINERS: Add myself to the Write After Approval list.
4021
4022 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4023
4024 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4025 of the section for the N64 ABI, fixed.
4026
4027 * config/mips/tm-irix6.h: Include solib.h.
4028
4029 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4030
4031 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4032 GNU operators.
4033
4034 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4035
4036 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4037 and that "mi0" syntax has been removed.
4038
4039 2002-09-30 David Carlton <carlton@math.stanford.edu>
4040
4041 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4042 * ppc-sysv-tdep.c: #include "gdb_string.h".
4043 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4044 pacify GCC.
4045
4046 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4047
4048 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4049 "vrsave"'s register number.
4050
4051 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4052
4053 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4054 use frame_unwind_signed_register to obtain the PC.
4055 (mips_frame_chain): Handle a generic dummy frame.
4056 (mips_init_extra_frame_info): When a generic dummy frame, don't
4057 re-compute the frame base.
4058 (mips_pop_frame): Handle generic dummy frames.
4059 (mips_gdbarch_init): When generic dummy frames, set
4060 use_generic_dummy_frames, push_dummy_frame to
4061 generic_push_dummy_frame, pc_in_call_dummy to
4062 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4063 generic_save_dummy_frame_tos.
4064
4065 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4066
4067 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4068 against TOP when TOP was explictly set.
4069 (generic_push_dummy_frame): Set TOP to zero.
4070
4071 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4072
4073 * event-loop.c (start_event_loop): Rename variable 'result' to
4074 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4075
4076 2002-09-30 Keith Seitz <keiths@redhat.com>
4077
4078 * gdb-events.sh (selected_thread_changed): New event.
4079 * gdb-events.c: Regenerated.
4080 * gdb-events.h: Regenerated.
4081
4082 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4083
4084 * MAINTAINERS: Add self to Write After Approval list.
4085
4086 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4087
4088 * disasm.c: New file.
4089 * disasm.h: New file.
4090 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4091 (compare_lines): Ditto.
4092 (dump_insns): Ditto.
4093 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4094 argument.
4095 (do_assembly_only): Ditto.
4096 (do_disassembly): Renamed to gdb_disassembly and moved to
4097 disasm.c. Sdded uiout argument.
4098 * Makefile.in: Add new files. Reorder SFILES list. Update
4099 dependencies. Include libgdb.a later in the insight executable.
4100
4101 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4102
4103 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4104 bfd/elf64-alpha-fbsd.c.
4105
4106 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4107
4108 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4109 i386gnu-tdep.c.
4110
4111 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4112
4113 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4114 __FUNCTION__.
4115 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4116 function name.
4117 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4118 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4119 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4120 (S_msg_sig_post_reply): Ditto.
4121
4122 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4123
4124 * sh-tdep.c (sh_use_struct_convention): Use definition according
4125 to ABI.
4126 (sh_push_arguments): Store in register with correct endianess.
4127 (sh_default_store_return_value): Ditto.
4128 (sh_gdbarch_init): Set sizeof long double to 8.
4129
4130 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4131
4132 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4133 Fix some whitespace problems.
4134
4135 2002-09-27 David Carlton <carlton@math.stanford.edu>
4136
4137 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4138 (mcore-tdep.o): Ditto.
4139 (ns32k-tdep.o): Ditto.
4140 (ns32knbsd-tdep.o): Ditto.
4141 (sh3-rom.o): Ditto.
4142 (vax-tdep.o): Ditto.
4143 * cris-tdep.c: #include "gdb_string.h"
4144 * mcore-tdep.c: Ditto.
4145 * ns32k-tdep.c: Ditto.
4146 * ns32knbsd-tdep.c: Ditto.
4147 * sh3-rom.c: Ditto.
4148 * vax-tdep.c: Ditto.
4149
4150 2002-09-27 David Carlton <carlton@math.stanford.edu>
4151
4152 * config/djgpp/fnchange.lst: Add entries for
4153 gdb/testsuite/gdb.c++/m-static files.
4154
4155 2002-09-27 Jim Wilson <wilson@redhat.com>
4156
4157 * MAINTAINERS: Add myself to the Write After Approval list.
4158
4159 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4160
4161 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4162
4163
4164 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4165
4166 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4167 frame.
4168
4169 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4170
4171 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4172 (rs6000_struct_return_address): Delete variable.
4173 (rs6000_store_struct_return): Update.
4174 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4175 deprecated_extract_struct_value_address.
4176 (rs6000_frame_align): New function.
4177 (rs6000_gdbarch_init): Set frame_align.
4178
4179 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4180
4181 From Grace Sainsbury <graces@redhat.com>:
4182 * Makefile.in (gdbtk-main.o): New target.
4183 (gdb.o): New target.
4184 (main_h): Define.
4185 (main.o): Update dependencies.
4186 (gdb$(EXEEXT)): Add gdb.o.
4187 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4188 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4189 (SUBDIR_GDBTK_CLEAN): Set.
4190 (install-gdbtk): Install the insight binary.
4191 (uninstall-gdbtk): New target.
4192 (all-gdbtk, clean-gdbtk): New rule.
4193 * top.c (use_windows): Default to zero.
4194 * main.c: Include "main.h".
4195 (main): Delete.
4196 (struct captured_main_args): Delete.
4197 (gdb_main): New function.
4198 * main.h: New file.
4199 * gdb.c: New File.
4200
4201 2002-09-25 Andrew Cagney <cagney@redhat.com>
4202
4203 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4204 (frame_map_regnum_to_name): New function.
4205 (frame_map_name_to_regnum): New function.
4206 * frame.h (frame_map_name_to_regnum): Declare.
4207 (frame_map_regnum_to_name): Declare.
4208 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4209 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4210 * parse.c: Do not include "builtin-regs.h".
4211 (target_map_name_to_register): Delete function.
4212 (write_dollar_variable): Use frame_map_name_to_regnum.
4213 * parser-defs.h (target_map_name_to_register): Delete declaration.
4214 * expprint.c: Include "frame.h".
4215 (print_subexp): Use frame_map_regnum_to_name.
4216 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4217 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4218
4219 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4220
4221 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4222 wasn't saved, and the next innermost frame is a dummy, return the
4223 dummy frame's link register.
4224
4225 2002-09-24 Jim Blandy <jimb@redhat.com>
4226
4227 Fix from Paul Breed:
4228 * main.c (captured_main): Add a `break' after the case for 'b'.
4229
4230 2002-09-24 Keith Seitz <keiths@redhat.com>
4231
4232 * varobj.c (c_type_of_child): Use get_target_type instead
4233 of TYPE_TARGET_TYPE.
4234
4235 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4236
4237 * source.c (get_current_or_default_source_symtab_and_line): Remove
4238 function.
4239 (set_default_source_symtab_and_line): New function. Attempts to
4240 determine a source file to list lines from if one is not currently
4241 defined.
4242 (get_current_source_symtab_and_line): Initialize sal.pc and
4243 sal.end fields.
4244 (set_current_source_symtab_and_line): Mark argument as const.
4245 * source.h: Update declarations and comments.
4246 * linespec.c (decode_line_1): Replace call to removed routine above.
4247 * stack.c (print_frame_info_base): Ditto.
4248 * cli/cli-cmds.c (edit_command): Ditto.
4249 (list_command): Ditto.
4250
4251 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4252
4253 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4254 sal.pc and sal.end fields.
4255 (get_current_or_default_source_symtab_and_line): Ditto.
4256 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4257 so we do not cause a new source symtab to be searched for (reverting an
4258 unintentional change from the 2002-09-20 patch).
4259 * scm-lang.c (scm_unpac): Ditto.
4260
4261 2002-09-21 Andrew Cagney <cagney@redhat.com>
4262
4263 * complaints.c (symfile_explanations): Remove new-line from
4264 ``isolated_message''.
4265 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4266 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4267
4268 2002-09-20 Nick Clifton <nickc@redhat.com>
4269
4270 * NEWS: Announce that V850EA ISA is no longer supported.
4271 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4272
4273 2002-09-20 David Carlton <carlton@math.stanford.edu>
4274
4275 * Makefile.in (c-lang.o): Correct dependencies.
4276 (utils.o): Gather dependencies.
4277 (charset.o): Move.
4278 * c-lang.c: #include "gdb_string.h"
4279
4280 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4281
4282 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4283 * cli/cli-cmds.c (list_command): New function. Implements the new
4284 cli edit command.
4285 (_init_cli_cmds): Add new command definition.
4286 * gdb.1: Document edit command.
4287 * doc/gdb.texinfo: Document edit command.
4288
4289 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4290
4291 * source.c: Make global variables current_source_symtab and
4292 current_source_line static.
4293 (list_command): Moved to cli/cli-cmds.c.
4294 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4295 (get_first_line_listed): New accessor function.
4296 (get_lines_to_list): New accessor function.
4297 (get_current_source_symtab_and_line): New function. Retrieves the
4298 position in the source code that we consider current.
4299 (get_current_or_default_source_symtab_and_line): New function.
4300 Like the above but attempts to determine a default position if one
4301 is not currently defined.
4302 (set_current_source_symtab_and_line): New function. Sets the source
4303 code position considered current and returns the previously set one.
4304 (clear_current_source_symtab_and_line): Reset stored information about
4305 a current source line.
4306 (_initialize_source): Remove registration for the "list" command and
4307 its alias.
4308 * source.h: Add declarations for the new functions above.
4309 * symtab.h: Remove declarations for the global variables mentioned
4310 above.
4311 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4312 obtain current source line.
4313 * linespec.c (decode_line_1): Ditto.
4314 * macroscope.c (default_macro_scope): Ditto.
4315 * scm-lang.c (scm_unpac): Ditto.
4316 * stack.c (print_frame_info_base): Ditto.
4317 * symfile.c (clear_symtab_users): Ditto.
4318 * symtab.c (decode_line_spec): Ditto.
4319 * cli/cli-cmds.c (list_command): Moved here from source.c.
4320 (ambiguous_line_spec): Moved here from source.c.
4321 (_init_cli_cmds): Add definition for "list" and its alias.
4322 * Makefile.in: Update dependencies.
4323
4324 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4325
4326 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4327 with what gcc thinks is correct.
4328
4329 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4330
4331 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4332 multiple register push instruction.
4333
4334 2002-09-19 Jim Blandy <jimb@redhat.com>
4335
4336 Add support for distinct host and target character sets.
4337 * charset.c, charset.h: New files.
4338 * c-exp.y: #include "charset.h".
4339 (yylex): Convert character and string literals to the target
4340 character set, before returning them as the semantic value of the
4341 token.
4342 * c-lang.c: #include "charset.h".
4343 (c_emit_char): Use charset-specific methods to recognize
4344 characters with backslash escape forms, to decide which characters
4345 to print literally and which to print using numeric escape
4346 sequences, and to convert target characters to host characters
4347 before printing.
4348 * utils.c: #include "charset.h".
4349 (no_control_char_error): New function.
4350 (parse_escape): Use charset-specific methods to recognize
4351 backslash escapes, parse `control character' notation, and convert
4352 characters from the host character set to the target character set.
4353 * configure.in: Set the default host character set.
4354 Check where to find iconv, and what its argument types might be.
4355 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4356 * Makefile.in (SFILES): List charset.c.
4357 (COMMON_OBS): List charset.o.
4358 (charset.o): New rule.
4359 (charset_h): New header dependency variable.
4360 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4361 (LIBICONV): New variable, set by configure.
4362 (CLIBS): Include $(LIBICONV) here.
4363 * aclocal.m4, config.in, configure: Regenerated.
4364
4365 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4366
4367 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4368 bison 1.35 warning.
4369
4370 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4371
4372 * gdb_mbuild.sh: New file.
4373
4374 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4375
4376 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4377
4378 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4379
4380 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4381 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4382 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4383 valops.c, value.h: Revert previous change.
4384
4385 2002-09-18 Michael Snyder <msnyder@redhat.com>
4386
4387 Preliminary support for Objective-C:
4388 * defs.h (language_objc): New enum value.
4389 (puts_filtered_tabular): Declaration only, exported from utils.c.
4390 (skip_quoted): Delete, declared in completer.h.
4391 * c-exp.y: Include completer.h.
4392 * p-exp.y: Ditto.
4393 * jv-exp.y: Ditto.
4394 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4395 New operator enum values.
4396 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4397 * language.c (binop_result_type): Handle language_objc case.
4398 (integral_type, character_type, string_type, boolean_type,
4399 structured_type, binop_type_check): Ditto.
4400 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4401 (struct objc_specific): Add to general_symbol_info.
4402 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4403 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4404 * parser-defs.h (struct objc_class_str): New struct type.
4405 (start_msglist, end_msglist, add_msglist): Declaration only,
4406 exported from objc-lang.c.
4407 * value.h (value_of_local, value_nsstring,
4408 call_function_by_hand_expecting_type): Exported from valops.c.
4409 * valops.c (find_function_addr): Export.
4410 (call_function_by_hand_expecting_type): New function.
4411 (value_of_local): New function.
4412 * symfile.c (init_filename_language_table): Add ".m" extension
4413 for Objective-C.
4414 * utils.c (puts_filtered_tabular): New function.
4415 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4416 (set/show demangle): Extend help-string to refer to ObjC.
4417 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4418 * stabsread.c (symbol_reference_defined): Objective-C symbols
4419 may contain colons: make allowances when scanning stabs strings
4420 for colons.
4421 (objc_find_colon): New function.
4422 * printcmd.c (address_info): If language == objc then print
4423 "self" instead of "this".
4424 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4425 OP_NSSTRING, and OP_SELF.
4426 (prefixify_subexp): Ditto.
4427 * source.c (print_source_lines): Mention objc in comment.
4428 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4429 method names.
4430
4431 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4432
4433 * complaints.h: Update copyright.
4434 (struct complaints): Declare.
4435 (struct complaint): Make `message' constant.
4436 (internal_complaint): Declare.
4437 (complaint): Declare.
4438 (complaint_root): Delete declaration.
4439 (symfile_complaints): Delete declaration.
4440 (struct complaints): Add opaque declaration.
4441 (clear_complaints): Add a complaints parameter.
4442 * complaints.c: Update copyright.
4443 (enum complaint_series): Define.
4444 (complaint_root): Delete.
4445 (struct complaints): Define.
4446 (complaint_sentinel, symfile_complaint_book): New variables.
4447 (symfile_explanations, symfile_complaints): New variables.
4448 New variables.
4449 (get_complaints): New function.
4450 (vcomplaint): New function.
4451 (complaint): New function.
4452 (internal_complaint): New function.
4453 (complain): Call vcomplain with symfile_complaint.
4454 (clear_complaints): Rewrite.
4455 (_initialize_complaints): Use add_setshow_command.
4456 * Makefile.in (complaints.o): Update dependencies.
4457 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4458 to call to clear_complaints.
4459 (new_symfile_objfile, reread_symbols): Ditto.
4460 (oldsyms_complaint): Delete.
4461 (empty_symtab_complaint, unknown_option_complaint): Delete.
4462 (free_named_symtabs): Use complaint instead of complain.
4463
4464 2002-09-18 Michael Snyder <msnyder@redhat.com>
4465
4466 Contributed by Apple Computer, Inc. Merged with current sources
4467 by Adam Fedor <fedor@doc.com> [cagney].
4468
4469 * objc-lang.c: First clean-up round: comments, indentation.
4470 * objc-lang.h: Ditto.
4471 * objc-lang.y: Ditto.
4472
4473 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4474
4475 * maint.c (maintenance_internal_error): Print the parameter as the
4476 error message.
4477 (maintenance_internal_warning): New function.
4478 (_initialize_maint_cmds): Add command `maint internal-warning'.
4479
4480 * defs.h (internal_warning, internal_vwarning): Declare.
4481 * utils.c (struct internal_problem): Define.
4482 (internal_vproblem): New function.
4483 (internal_warning): New function.
4484 (internal_vwarning): New function.
4485 (internal_warning_problem, internal_error_problem): New variables.
4486 (internal_verror): Just call internal_vproblem.
4487
4488 2002-09-18 Michael Snyder <msnyder@redhat.com>
4489
4490 * objc-lang.c: New file, support for Objective-C.
4491 Preliminary check-in, not yet integrated into gdb.
4492 * objc-lang.h: New file.
4493 * objc-exp.y: New file.
4494
4495 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4496
4497 * infrun.c (signal_stop_update): Convert definition to ISO C.
4498 (signal_print_update): Ditto.
4499 (signal_pass_update): Ditto.
4500 * inflow.c (terminal_save_ours): Ditto.
4501
4502 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4503 comments.
4504
4505 * config/djgpp/fnchange.lst: Handle name clashes between
4506 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4507 bfd/coff-tic80.c.
4508
4509 * i386-linux-tdep.h: Fix tipo.
4510
4511 2002-09-18 Adam Fedor <fedor@gnu.org>
4512
4513 * MAINTAINERS: Add myself to the Write After Approval list.
4514
4515 2002-09-18 Jim Blandy <jimb@redhat.com>
4516
4517 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4518 texthigh and textlow to reader-specific structs caused
4519 objfile_relocate to miss them. This is fixable, but the work that
4520 the change was supposed to prepare GDB for never got done anyway.
4521
4522 2002-09-18 David Carlton <carlton@math.stanford.edu>
4523
4524 * MAINTAINERS: Alphabetize Write After Approval list.
4525
4526 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4527
4528 Fix PR gdb/709
4529 * values.c (value_static_field): Call read_var_value.
4530
4531 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4532
4533 * valops.c (hand_function_call): Align the initial stack pointer
4534 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4535 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4536 return value.
4537 * mips-tdep.c (mips_frame_align): New function.
4538 (mips_gdbarch_init): Set frame_align.
4539 * gdbarch.sh (FRAME_ALIGN): New method.
4540 * gdbarch.h, gdbarch.c: Re-generate.
4541
4542 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4543
4544 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4545 registers.
4546
4547 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4548
4549 * NEWS: Mention that MIPS $fp behavior changed.
4550 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4551 reference to FP_REGNUM.
4552 (mipsnbsd_cannot_store_register): Ditto.
4553 * mips-linux-nat.c: Update copyright.
4554 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4555 (mips_linux_cannot_store_register): Ditto.
4556 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4557 * config/mips/tm-mips.h: Update copyright.
4558 (FP_REGNUM): Delete macro.
4559 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4560 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4561 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4562 (mips_r3041_reg_names, mips_r3051_reg_names)
4563 (mips_r3081_reg_names): Replace "fp" with "".
4564 Fix PR gdb/480.
4565
4566 2002-09-17 Theodore A. Roth <troth@verinet.com>
4567
4568 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4569 generic_read_register_dummy() (PR gdb/703).
4570 (avr_push_return_address): #if 0 out unused vars.
4571 (avr_gdbarch_init): Enable use of avr_push_return_address().
4572
4573 2002-09-17 Michael Snyder <msnyder@redhat.com>
4574
4575 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4576 RTE will take care of it.
4577
4578 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4579
4580 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4581 invalid, return SP_REGNUM.
4582
4583 2002-09-17 Michael Snyder <msnyder@redhat.com>
4584
4585 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4586 point registers without sign extension.
4587
4588 2002-09-17 Andrew Cagney <cagney@redhat.com>
4589
4590 * blockframe.c (deprecated_read_register_dummy): Rename
4591 generic_read_register_dummy.
4592 * frame.c (frame_unwind_signed_register): New function.
4593 (frame_unwind_unsigned_register): New function.
4594 * frame.h (frame_unwind_signed_register): Declare.
4595 (frame_unwind_unsigned_register): Declare.
4596 (deprecated_read_register_dummy): Rename
4597 generic_read_register_dummy.
4598
4599 * h8300-tdep.c (h8300_frame_chain): Update.
4600 (h8300_frame_saved_pc): Update.
4601 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4602 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4603 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4604 (s390_frame_chain): Update.
4605 * v850-tdep.c (v850_find_callers_reg): Update.
4606 (v850_frame_saved_pc): Update.
4607 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4608 (m32r_find_callers_reg): Update.
4609 (m32r_frame_saved_pc): Update.
4610 * sh-tdep.c (sh_find_callers_reg): Update.
4611 (sh64_get_saved_pr): Update.
4612 (sh_init_extra_frame_info): Update.
4613 (sh_init_extra_frame_info): Update.
4614 (sh64_init_extra_frame_info): Update.
4615 (sh64_init_extra_frame_info): Update.
4616 * mcore-tdep.c (mcore_find_callers_reg): Update.
4617 (mcore_frame_saved_pc): Update.
4618 (mcore_init_extra_frame_info): Update.
4619 * i386-tdep.c (i386_frame_saved_pc): Update.
4620 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4621 (ia64_init_extra_frame_info): Update.
4622 (ia64_init_extra_frame_info): Update.
4623 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4624 * cris-tdep.c (cris_init_extra_frame_info): Update.
4625 * avr-tdep.c (avr_frame_chain): Update.
4626 (avr_init_extra_frame_info): Update.
4627 (avr_frame_saved_pc): Update.
4628 * arm-tdep.c (arm_find_callers_reg): Update.
4629 (arm_init_extra_frame_info): Update.
4630 (arm_frame_saved_pc): Update.
4631
4632 2002-09-17 Tom Tromey <tromey@redhat.com>
4633
4634 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4635 is "'".
4636
4637 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4638
4639 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4640 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4641 NEXT_PROLOGUE_INSN.
4642 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4643 NEXT_PROLOGUE_INSN.
4644
4645 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4646
4647 * osfsolib.c: Remove file, replaced by solib-osf.c.
4648 * Makefile.in: Remove compilation rules for osfsolib.c.
4649
4650 2002-09-16 David Carlton <carlton@math.stanford.edu>
4651
4652 * cp-valprint.c (cp_print_class_method): Correct args to
4653 check_stub_method_group.
4654
4655 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4656
4657 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4658 `set architecture'. Unify naming convention of functions.
4659 (h8300_skip_prologue): Improve prologue analysis.
4660 (h8300_push_arguments): Rewritten to more closely match GCC's
4661 bizarre argument-passing behavior, along with the comment describing
4662 said behavior.
4663 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4664 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4665 sim, remote-e7000.c, remote-hms.c and remote.c
4666
4667 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4668
4669 * i386-tdep.c (gdb_print_insn_i386): Removed.
4670 (i386_print_insn): New function.
4671 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4672 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4673 tm_print_insn_info.
4674
4675 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4676
4677 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4678 zero.
4679
4680 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4681
4682 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4683 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4684 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4685
4686 2002-09-13 Christopher Faylor <cgf@redhat.com>
4687
4688 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4689
4690 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4691
4692 * gdbtypes.c (check_stub_method): Make static.
4693 (check_stub_method_group): New function.
4694 * gdbtypes.h: Update prototypes.
4695 * cp-support.c: New file.
4696 * cp-support.h: New file.
4697
4698 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4699 (update_method_name_from_physname): New function.
4700 (read_member_functions): Correct method names for operators
4701 and v3 constructors/destructors. Separate v2 constructors and
4702 destructors.
4703 * Makefile.in (stabsread.o): Update dependencies.
4704 (SFILES): Add cp-support.c.
4705 (COMMON_OBS): Add cp-support.o.
4706 (cp_support_h, cp-support.o): Add.
4707
4708 * cp-valprint.c (cp_print_class_method): Call
4709 check_stub_method_group instead of check_stub_method. Remove
4710 extraneous QUITs.
4711 * p-valprint.c (pascal_object_print_class_method): Likewise.
4712 * valops.c (search_struct_method): Likewise.
4713 (find_method_list, value_struct_elt_for_reference): Likewise.
4714
4715 2002-09-13 Andrew Cagney <cagney@redhat.com>
4716
4717 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4718 * gdbarch.h, gdbarch.c: Regenerate.
4719
4720 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4721
4722 * frame.c (find_saved_register): Delete function.
4723 * frame.h (find_saved_register): Delete declaration.
4724 Fix PR gdb/631.
4725
4726 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4727
4728 * mips-tdep.c (read_next_frame_reg): Re-hack using
4729 frame_register_unwind.
4730
4731 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4732
4733 * mips-tdep.c (mips_get_saved_register): Re-hack using
4734 frame_register_unwind.
4735
4736 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4737
4738 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4739 vector. Will be useful for Interix.
4740 * gdbarch.h, gdbarch.c: Regenerate.
4741
4742 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4743 name of the malloc function by NAME_OF_MALLOC.
4744
4745 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4746
4747 * value.h (find_function_in_inferior): Add const keyword to
4748 one of the parameters. Allows us to invoke this function with
4749 a const char *.
4750 * valops.c (find_function_in_inferior): Likewise.
4751
4752 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4753
4754 * exec.c (xfer_memory): Fix compilation warning with old versions
4755 of GCC.
4756 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4757
4758 2002-09-12 David Carlton <carlton@math.stanford.edu>
4759
4760 * symtab.h: Run through gdb_indent.h.
4761 Add 2002 to Copyright year list.
4762
4763 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4764
4765 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4766 mach constants.
4767 * MAINTAINERS: Add myself to write after approval list.
4768
4769 2002-09-11 J. Brobecker <brobecker@gnat.com>
4770
4771 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4772
4773 2002-09-11 J. Brobecker <brobecker@gnat.com>
4774
4775 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4776 Interix.
4777
4778 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4779
4780 * procfs.c (do_detach): Clear current signal, not just fault.
4781 Corrects problem with breakpoint trap signal leaking to detached
4782 process on Tru64.
4783
4784 2002-09-10 Michael Snyder <msnyder@redhat.com>
4785
4786 * buildsym.c (finish_block): Protect against null pointer.
4787
4788 2002-09-10 Andrew Cagney <cagney@redhat.com>
4789
4790 * infcmd.c (default_print_registers_info): Send all output to
4791 ``file'' instead of ``gdb_stdout''.
4792
4793 2002-09-10 Michael Snyder <msnyder@redhat.com>
4794
4795 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4796 LONGEST, and use signed register read (addresses are sign-
4797 extended for mips).
4798
4799 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4800
4801 * event-loop.c (gdb_do_one_event): Make public.
4802 * event-loop.h (gdb_do_one_event): Declare.
4803
4804 2002-09-10 Jeff Law <law@redhat.com>
4805
4806 * infttrace.c (child_resume): Simplify and rework to avoid
4807 TT_PROC_CONTINUE.
4808
4809 2002-09-09 Fred Fish <fnf@intrinsity.com>
4810
4811 * printcmd.c (print_scalar_formatted): "len" is the number of
4812 target bytes, NOT the number of target bits.
4813
4814 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4815
4816 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4817 * top.c (init_main): Set rl_terminal_name.
4818
4819 2002-09-08 Aidan Skinner <aidan@velvet.net>
4820
4821 * ada-lang.c (ada_array_bound, ada_type_match,
4822 _initialize_ada_language): Fix K&R definitions.
4823 * ada-tasks.c (get_current_task): Fix K&R definitions.
4824 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4825
4826 2002-09-07 Christopher Faylor <cgf@redhat.com>
4827
4828 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4829 Add XP.
4830
4831 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4832
4833 * i386-tdep.c (i386_register_virtual_type,
4834 i386_register_convertible, i386_register_convert_to_virtual,
4835 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4836 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4837 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4838 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4839 Don't set push_arguments twice.
4840
4841 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4842 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4843 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4844 sigtramp_end to NULL.
4845 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4846 defines.
4847 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4848
4849 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4850 whitespace.
4851
4852 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4853 * gdbarch.h, gdbarch.c: Re-generate.
4854 * blockframe.c (find_pc_sect_partial_function): Convert to use
4855 SIGTRAMP_START_P predicate.
4856
4857 2002-09-05 Michael Snyder <msnyder@redhat.com>
4858
4859 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4860 generic_dummy_frame method and old method. Also distinguish
4861 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4862 (arm_extract_return_value): Use new regcache method.
4863
4864 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4865 adjustment that doesn't conform to the ABI.
4866 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4867 saved regcache, not from current regcache.
4868
4869 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4870
4871 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4872 * README: Update.
4873
4874 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4875
4876 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4877 if arm_apcs_32 is false.
4878
4879 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4880
4881 GDB 5.3 branch created.
4882
4883 2002-09-03 Theodore A. Roth <troth@verinet.com>
4884
4885 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4886 generic_unwind_get_saved_register.
4887
4888 2002-09-03 David Carlton <carlton@math.stanford.edu>
4889
4890 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4891 argument (PR gdb/653). Update call to smash_to_method_type.
4892 (read_structure_scope): Update call to dwarf2_add_member_fn.
4893
4894 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4895
4896 * x86-64-linux-tdep.c: Include gdb_string.h
4897 * x86-64-linux-nat.c: Ditto.
4898
4899 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4900
4901 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4902 when YYDEBUG is set to 1.
4903 * c-exp.y: Likewise.
4904 * f-exp.y: Likewise.
4905 * jv-exp.y: Likewise.
4906 * m2-exp.y: Likewise.
4907 * p-exp.y: Likewise.
4908
4909 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4910
4911 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4912 dependency list.
4913 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4914 solib_svr4_fetch_link_map_offsets to
4915 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4916 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4917 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4918 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4919 solib-svr4.o, and solib-legacy.o.
4920 * config/i386/tm-nbsd.h: Include solib.h.
4921
4922 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4923
4924 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4925 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4926 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4927 comment noting that this needs its own target configuration.
4928 * config/i386/nbsd.mt: New file.
4929 * config/i386/nbsdaout.mt: Remove.
4930 * config/i386/nbsdelf.mt: Ditto.
4931 * config/i386/tm-nbsdaout.h: Ditto.
4932
4933 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4934
4935 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4936 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4937 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4938 tdep->sigtramp_end.
4939 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4940 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4941 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4942
4943 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4944
4945 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4946 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4947 * i386-tdep.h (i386bsd_init_abi): New prototype.
4948 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4949 function declaration.
4950 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4951 for NetBSD-a.out or NetBSD-ELF.
4952 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4953 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4954 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4955 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4956 and nbsd-tdep.h.
4957 (i386nbsd_pc_in_sigtramp): New function.
4958 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4959 i386nbsd_pc_in_sigtramp.
4960 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4961 and i386nbsdelf_init_abi OS ABI handlers.
4962 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4963 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4964
4965 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4966
4967 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4968 registers if the target really has them.
4969
4970 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4971
4972 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4973 than nbsd-tdep.h.
4974
4975 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4976
4977 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4978 list.
4979 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4980 (alphanbsd_skip_sigtramp_frame): New functions.
4981 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4982 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4983 to alphanbsd_sigcontext_addr.
4984
4985 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4986
4987 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4988 list.
4989 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4990 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4991 nbsd_pc_in_sigtramp.
4992 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4993 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4994 * nbsd-tdep.c: Include gdb_string.h.
4995 (nbsd_pc_in_sigtramp): New function.
4996 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4997 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4998 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4999 ppcnbsd_pc_in_sigtramp.
5000 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5001 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5002 shnbsd_pc_in_sigtramp.
5003 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5004 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5005 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5006
5007 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5008
5009 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5010 watchpoints to NULL.
5011 (insert_breakpoints): set val field of watchpoints if NULL.
5012
5013
5014 2002-08-29 Jim Blandy <jimb@redhat.com>
5015
5016 * symtab.c (lookup_symbol_aux): In the cases where we find a
5017 minimal symbol of an appropriate name and use its address to
5018 select a symtab to read and search, use `name' (as passed to us)
5019 as the demangled name when searching the symtab's global and
5020 static blocks, not the minsym's name.
5021
5022 2002-08-29 Keith Seitz <keiths@redhat.com>
5023
5024 * stack.c (print_frame_info_base): Always set current_source_symtab
5025 and current_source_line.
5026
5027 2002-08-29 Donn Terry <donnte@microsoft.com>
5028
5029 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5030
5031 2002-08-28 Keith Seitz <keiths@redhat.com>
5032
5033 * stack.c (select_frame): Add FIXME concerning selected-frame
5034 events.
5035 (select_frame_command): Send selected-frame-level-changed
5036 event notification, but only if the level actually changed.
5037 (up_silently_base): Add selected-frame-level-changed event
5038 notification.
5039 (down_silently_base): Likewise.
5040
5041 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5042
5043 * Makefile.in: Update dependencies for all gdb/*.c files.
5044
5045 2002-08-27 Tom Tromey <tromey@redhat.com>
5046
5047 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5048 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5049 Update dependencies.
5050 * i387-tdep.c: Include gdb_string.h.
5051 * osabi.c: Likewise.
5052 * i386-linux-nat.c: Likewise.
5053 * lin-lwp.c: Likewise.
5054 * ax-gdb.c: Likewise.
5055 * signals/signals.c: Likewise.
5056 * jv-valprint.c: Likewise.
5057 * p-lang.c: Likewise.
5058 * c-valprint.c: Likewise.
5059 * cp-abi.c: Likewise.
5060
5061 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5062
5063 * cli/cli-script.h (copy_command_lines): Export.
5064 * breakpoint.c: Include cli/cli-script.h.
5065 * Makefile.in (breakpoint.o): Update dependencies.
5066
5067 2002-08-26 Michael Snyder <msnyder@redhat.com>
5068
5069 * breakpoint.c (insert_breakpoints): Protect all references
5070 to 'process_warning'. Shorten long lines.
5071
5072 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5073
5074 * cli/cli-script.c (copy_command_lines): New function.
5075 * defs.h (copy_command_lines): Export.
5076 * testsuite/gdb.base/commands.exp: New tests for commands
5077 attached to a temporary breakpoint, and for commands that
5078 delete the breakpoint they are attached to.
5079
5080 2002-08-26 Michael Snyder <msnyder@redhat.com>
5081
5082 * breakpoint.c (bpstat_stop_status): Instead of copying the
5083 pointer to the breakpoint commands struct, make a new copy
5084 of the struct and point to that.
5085 (bpstat_clear): Free the commands struct.
5086 (bpstat_clear_actions): Free the commands struct.
5087 (bpstat_do_actions): Free the command actions. Also execute
5088 the local cleanups, instead of deleting them.
5089 (delete_breakpoint): Leave the commands field of the bpstat
5090 chain alone -- it will be freed later.
5091
5092 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5093
5094 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5095 deleted in 2002-08-20 commit. This function is still used by
5096 ppc-linux-nat.c.
5097
5098 2002-08-26 Keith Seitz <keiths@redhat.com>
5099
5100 * gdb-events.sh: Add selected-frame-level-changed event.
5101 * gdb-events.c: Regenerated.
5102 * gdb-events.h: Regenerated.
5103
5104 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5105
5106 Fix PR gdb/393:
5107 * inflow.c (terminal_save_ours): New function to save terminal
5108 settings.
5109 * inferior.h (terminal_save_ours): Declare.
5110 * target.c (debug_to_terminal_save_ours): New function.
5111 (cleanup_target): Defaults to_terminal_save_ours.
5112 (update_current_target): Inherit to_terminal_save_ours.
5113 (setup_target_debug): Set to_terminal_save_ours.
5114 * target.h (target_terminal_save_ours): New to save terminal settings.
5115 (target_ops): New member to_terminal_save_ours.
5116 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5117 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5118 * inftarg.c (init_child_ops): Likewise.
5119 * m3-nat.c (init_m3_ops): Likewise.
5120 * procfs.c (init_procfs_ops): Likewise.
5121 * wince.c (init_child_ops): Likewise.
5122 * win32-nat.c (init_child_ops): Likewise.
5123 * sol-thread.c (init_sol_thread_ops): Likewise.
5124
5125 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5126
5127 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5128 use regcache_* functions.
5129 (i386_gdbarch_init): Set store_return_value instead of
5130 deprecated_store_return_value.
5131
5132 * regcache.c (regcache_raw_write_signed,
5133 regcache_raw_write_unsigned): New functions.
5134 * regcache.h (regcache_raw_write_signed,
5135 regcache_raw_write_unsigned): New prototypes.
5136
5137 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5138
5139 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5140 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5141 source file dependencies. Cleanup corresponding generator rules.
5142
5143 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5144
5145 * regcache.h (register_offset_hack): Declare.
5146 (regcache_cooked_read_using_offset_hack): Declare.
5147 (regcache_cooked_write_using_offset_hack): Declare.
5148
5149 * regcache.c (register_offset_hack): New function.
5150 (regcache_cooked_read_using_offset_hack): New function.
5151 (regcache_cooked_write_using_offset_hack): New function.
5152 (regcache_dump): Check that the registers, according to their
5153 offset, are packed hard against each other.
5154 (cooked_xfer_using_offset_hack): New function.
5155
5156 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5157
5158 * regcache.c (struct regcache_descr): Add field register_type.
5159 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5160 in as a parameter
5161 (init_regcache_descr): Initialize register_type. Pass the descr
5162 to init_legacy_regcache_descr. Use register_type instead of
5163 REGISTER_VIRTUAL_TYPE.
5164 (register_type): New function.
5165 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5166 * regcache.h (register_type): Declare.
5167
5168 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5169
5170 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5171 instead of deprecated_store_return_value. Fix fallout from
5172 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5173
5174 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5175
5176 * regcache.c (max_register_size): New function.
5177 (init_legacy_regcache_descr): Ensure that max_register_size is
5178 large enough for REGISTER_VIRTUAL_SIZE.
5179 * regcache.h (max_register_size): Declare.
5180
5181 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5182
5183 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5184 store_return_value.
5185 (e500_extract_return_value): Change type of valbuf pointer to
5186 void.
5187
5188 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5189
5190 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5191 workaround.
5192
5193 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5194 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5195 long long) to prevent compiler warning on 64-bit systems.
5196
5197 2002-08-23 Andrew Cagney <cagney@redhat.com>
5198
5199 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5200 (DEPRECATED_STORE_RETURN_VALUE): New method.
5201 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5202 * gdbarch.h, gdbarch.c: Re-generate.
5203
5204 * values.c (set_return_value): Pass current_regcache to
5205 STORE_RETURN_VALUE.
5206 * arch-utils.h (legacy_store_return_value): Declare.
5207 * arch-utils.c (legacy_store_return_value): New function.
5208 (legacy_extract_return_value): Update parameters.
5209
5210 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5211 STORE_RETURN_VALUE.
5212 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5213 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5214 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5215 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5216 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5217 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5218 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5219 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5220 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5221 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5222
5223 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5224 * i386-tdep.c (i386_extract_return_value): Update.
5225 * arch-utils.c (legacy_extract_return_value): Update.
5226 * frv-tdep.c (frv_gdbarch_init): Update.
5227 * cris-tdep.c (cris_gdbarch_init): Update.
5228 * d10v-tdep.c (d10v_gdbarch_init): Update.
5229 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5230 * m68k-tdep.c (m68k_gdbarch_init): Update.
5231 * mcore-tdep.c (mcore_gdbarch_init): Update.
5232 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5233 * s390-tdep.c (s390_gdbarch_init): Update.
5234 * sparc-tdep.c (sparc_gdbarch_init): Update.
5235 * sh-tdep.c (sh_gdbarch_init): Update.
5236 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5237 * v850-tdep.c (v850_gdbarch_init): Update.
5238 * avr-tdep.c (avr_gdbarch_init): Update.
5239 * ia64-tdep.c (ia64_gdbarch_init): Update.
5240 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5241 * vax-tdep.c (vax_gdbarch_init): Update.
5242 * alpha-tdep.c (alpha_gdbarch_init): Update.
5243 * arm-tdep.c (arm_gdbarch_init): Update.
5244 * mips-tdep.c (mips_gdbarch_init): Update.
5245 * i386-tdep.c (i386_gdbarch_init): Update.
5246
5247 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5248
5249 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5250 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5251
5252 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5253
5254 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5255 problems.
5256
5257 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5258
5259 * infrun.c (handle_inferior_event): Move a comment outside of a
5260 function call, in order to avoid indent reformatting this part
5261 of the code in an unreadable way.
5262
5263 2002-08-23 Grace Sainsbury <graces@redhat.com>
5264
5265 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5266 when breakpoints fail. Move general breakpoint error messages to
5267 insert_breakpoints.
5268 * breakpoint.c (insert_breakpoints): Change warnings when
5269 breakpoints are nto inserted to specify the type. Remove call to
5270 memory_error when hardware breakpoints can't be inserted. Remove
5271 multiple calls to warning so all messages are sent to the user at
5272 once.
5273 (delete_breakpoints): Make insert error messsages more explicit.
5274
5275 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5276
5277 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5278 gdbserver/ChangeLog.
5279
5280 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5281
5282 * i386-tdep.c: Include "objfiles.h".
5283 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5284 skip_trampoline_code.
5285 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5286 (CPLUS_MARKER): Define to '.'.
5287
5288 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5289 member.
5290 (linux_corefile_thread_callback): Increase args->num_notes.
5291 (linux_make_note_section): Initialize thread_args.num_notes, and
5292 use it to determine whether notes for any threads were created.
5293
5294 2002-08-23 Donn Terry <donnte@microsoft.com>
5295
5296 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5297 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5298 and PCUNKILL.
5299 (write_with_trace): Conditionalize out the switch branch handling
5300 PCSHOLD if the corresponding macro is not defined. Likewise for
5301 PRSABORT and PRSTOP.
5302 This change will be needed by the Interix port.
5303
5304 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5305
5306 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5307 write_register wherever possible instead of manipulating the
5308 register bytes directly.
5309 Assign VALUE_CONTENTS to a variable and use that.
5310 The GPR numbers are now dependent on the architecture.
5311
5312 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5313
5314 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5315 ev_offset fields.
5316 (skip_prologue): Add support for BookE/e500 instructions.
5317 (e500_extract_return_value): New function.
5318 (frame_get_saved_regs): Add support for saving ev registers and
5319 pseudo gpr's.
5320 (e500_store_return_value): New function.
5321 (rs6000_gdbarch_init): Move up default intializations of
5322 deprecated_extract_return_value and store_return_value. Overwrite
5323 init of store_return_value with e500 specific version.
5324 Set extract_return_value for e500.
5325
5326 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5327
5328 * blockframe.c (generic_call_dummy_register_unwind): Use
5329 regcache_cooked_read to catch cases in which the variable is
5330 stored in a pseudo register.
5331
5332 2002-08-22 Andrew Cagney <cagney@redhat.com>
5333
5334 * NEWS: Mention that the i960 has been made obsolete.
5335 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5336 i960-tdep.c
5337 (remote-nrom.o): Obsolete target.
5338 (remote-nindy.o, i960-tdep.o): Ditto.
5339 * remote-nrom.c: Make file obsolete.
5340 * remote-nindy.c, remote-vx960.c: Ditto.
5341 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5342 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5343 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5344 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5345 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5346 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5347 i960-*-vxworks* obsolete.
5348 * MAINTAINERS: Note that the i960 is obsolete.
5349
5350 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5351
5352 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5353 detach to allow reinitialization.
5354
5355 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5356
5357 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5358 attempt).
5359
5360 2002-08-22 Jim Blandy <jimb@redhat.com>
5361
5362 * coffread.c (coff_symfile_read): Don't try to read the line
5363 number table from disk if the image file doesn't have a symbol
5364 table; we'll never actually look at the info anyway, and Windows
5365 ships DLL's with bogus file offsets for the line number data.
5366
5367 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5368
5369 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5370 an e500 executable.
5371
5372 2002-08-21 Michael Snyder <msnyder@redhat.com>
5373
5374 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5375 (MSYMBOL_SIZE): Replace macro with function.
5376 (DEFAULT_MIPS_TYPE): Delete unused macro.
5377 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5378 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5379
5380 2002-08-21 Jim Blandy <jimb@redhat.com>
5381
5382 * valops.c (value_cast): Simplify and correct logic for doing a
5383 static cast from a pointer to a base class to a pointer to a
5384 derived class.
5385
5386 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5387
5388 * infcmd.c (default_print_registers_info): Replace
5389 do_registers_info.
5390 (registers_info): Use gdbarch_print_registers_info instead of
5391 DO_REGISTERS_INFO.
5392 * inferior.h (default_print_registers_info): Replace
5393 do_registers_info.
5394 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5395 (DO_REGISTERS_INFO): Change to a predicate function.
5396 * gdbarch.h, gdbarch.c: Regenerate.
5397
5398 2002-08-21 Keith Seitz <keiths@redhat.com>
5399
5400 * gdb-events.sh: Add target-changed event.
5401 * gdb-events.c: Regenerated.
5402 * gdb-events.c: Regenerated.
5403 * valops.c (value_assign): Add target-changed event notification
5404 to inlval_register, lval_memory, and lval_reg_frame_relative.
5405
5406 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5407
5408 * NEWS: Add an entry regarding the improvement of the next/step
5409 operation on Alpha Tru64 multi-processor machines.
5410
5411 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5412
5413 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5414 directores.
5415 * Makefile.in: Update all _h macro definitions.
5416 * Makefile.in (install-gdbtk): Move to install section.
5417 (rdi-share/libangsd.a): Move to end of file.
5418
5419 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5420
5421 * frame.c (frame_register_unwind): When a register, set addrp to
5422 the register's byte.
5423
5424 2002-08-20 Michael Snyder <msnyder@redhat.com>
5425
5426 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5427 used locally, so move them from the target machine header to here.
5428 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5429 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5430 Make static.
5431 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5432
5433 2002-08-20 Andrew Cagney <cagney@redhat.com>
5434
5435 * NEWS: Mention that the Apollo line was made obsolete.
5436 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5437 m68*-hp-hpux* obsolete.
5438 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5439 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5440 * buildsym.c (make_blockvector): Make static.
5441 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5442 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5443 (ALLDEPFILES): Remove dstread.c.
5444 (dstread.o): Obsolete make rule.
5445 * dstread.c: Makefile obsolete.
5446 * dst.h: Ditto.
5447 * config/m68k/hp300hpux.mt: Ditto.
5448 * config/m68k/hp300hpux.mh: Ditto.
5449 * config/m68k/hp300bsd.mt: Ditto.
5450 * config/m68k/hp300bsd.mh: Ditto.
5451 * config/m68k/apollo68b.mt: Ditto.
5452 * config/m68k/apollo68v.mh: Ditto.
5453 * config/m68k/apollo68b.mh: Ditto.
5454
5455 2002-08-20 Michael Snyder <msnyder@redhat.com>
5456
5457 * mips-tdep.c (mips_in_return_stub): Make static.
5458 (mips_gdbarch_init): Set in_solib_return_trampoline.
5459 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5460
5461 2002-08-20 Michael Snyder <msnyder@redhat.com>
5462
5463 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5464 * gdbarch.c, gdbarch.h: Regenerate.
5465 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5466 Add.
5467 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5468
5469 2002-08-20 Michael Snyder <msnyder@redhat.com>
5470
5471 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5472 (mips_gdbarch_init): Set skip_trampoline_code,
5473 in_solib_call_trampoline.
5474 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5475 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5476
5477 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5478
5479 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5480
5481 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5482 vector type for ev registers.
5483 (e500_pseudo_register_read): New function.
5484 (e500_pseudo_register_write): New function.
5485 (e500_dwarf2_reg_to_regnum): New function.
5486 (PPC_UISA_NOFP_SPRS): New macro.
5487 (PPC_EV_REGS): New macro.
5488 (PPC_GPRS_PSEUDO_REGS): New macro.
5489 (registers_e500): New register set for e500.
5490 (variants): Add e500 variant.
5491 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5492 before setting architectural dependent variations. Initialize ev
5493 registers numbers. Add case for e500 architecture. Set the
5494 number of pseudo registers.
5495
5496 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5497
5498 * rs6000-tdep.c: Clean up comments.
5499
5500 2002-08-20 Andrew Cagney <cagney@redhat.com>
5501
5502 * h8300-tdep.c: Re-indent file.
5503
5504 2002-08-20 Jim Blandy <jimb@redhat.com>
5505
5506 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5507 default for this.
5508
5509 2002-08-20 Keith Seitz <keiths@redhat.com>
5510
5511 * breakpoints.c (watch_command_1): Use internal breakpoint
5512 when setting a watchpoint_scope breakpoint.
5513
5514 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5515
5516 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5517 (build_builtin_type_vec64i): Ditto.
5518 (build_builtin_type_vec128): Ditto.
5519 (build_builtin_type_vec128i): Ditto.
5520
5521 2002-08-19 Michael Snyder <msnyder@redhat.com>
5522
5523 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5524 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5525 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5526 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5527 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5528 CALL_DUMMY_ADDRESS): Delete.
5529 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5530 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5531 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5532 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5533 push_return_address.
5534 (mips_register_raw_size, mips_eabi_use_struct_convention,
5535 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5536 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5537 mips_init_extra_frame_info, mips_eabi_push_arguments,
5538 mips_n32n64_push_arguments, mips_push_return_address,
5539 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5540 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5541
5542 2002-08-19 Michael Snyder <msnyder@redhat.com>
5543
5544 * mips-tdep.c (mips_frame_num_args): New function.
5545 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5546 frame_saved_pc, frame_args_address, frame_locals_address,
5547 frame_num_args, and frame_args_skip.
5548 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5549 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5550 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5551 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5552
5553 2002-08-20 Michael Snyder <msnyder@redhat.com>
5554
5555 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5556 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5557 * mips-tdep.c (mips_store_struct_return): New function.
5558 (mips_extract_struct_value_address): New function.
5559 (mips_gdbarch_init): Set store_struct_return and
5560 extract_struct_value_address.
5561
5562 2002-08-20 David Carlton <carlton@math.stanford.edu>
5563
5564 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5565 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5566 (read_file_scope): Check that line_header is nonzero before
5567 decoding macro information.
5568
5569 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5570
5571 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5572 flag the general-purpose registers as floating-point on targets
5573 that don't support the floating-point registers.
5574
5575 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5576
5577 * rs6000-tdep.c (altivec_register_p): Delete.
5578 (rs6000_do_altivec_registers): Delete.
5579 (rs6000_altivec_registers_info): Delete.
5580 (rs6000_do_registers_info): Delete.
5581 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5582 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5583
5584 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5585
5586 * infcmd.c (do_registers_info): Print vector registers in hex
5587 format only.
5588 (print_vector_info): Check that printing registers
5589 makes sense.
5590 (print_float_info): Ditto.
5591
5592 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5593
5594 * mips-tdep.c (mips_gdbarch_init): Update.
5595 (mips_o32_extract_return_value): Rewrite.
5596 (mips_o32_store_return_value): Rewrite.
5597 (mips_o32_xfer_return_value): New function.
5598 (mips_xfer_register): Tweak debug print message. Allow for
5599 buf_offset when dumping the value transfered.
5600
5601 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5602
5603 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5604 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5605 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5606 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5607 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5608
5609 2002-08-14 Michael Snyder <msnyder@redhat.com>
5610
5611 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5612
5613 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5614
5615 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5616 register.
5617 (P): New macro to define a register as a pseudo register.
5618 (R, R4, R8, R16, FR32, R64, R0): Updated.
5619 (struct variant): Add new fields for number of pseudo registers
5620 and number of total registers.
5621 (tot_num_registers): New macro replacing....
5622 (num_registers): ...deleted macro.
5623 (num_registers): New function.
5624 (num_pseudo_registers): New function.
5625 (variants): Update all variants to intialize new fields correctly.
5626 Postpone initialization of number of pseudo regs and real regs.
5627 (init_variants): New function.
5628 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5629 registers offsets.
5630
5631 2002-08-19 David Carlton <carlton@math.stanford.edu>
5632
5633 * valops.c (search_struct_field): Change error message to treat
5634 return value of 0 from value_static_field as meaning that field is
5635 optimized out.
5636 (value_struct_elt_for_reference): Ditto.
5637 * values.c (value_static_field): Treat an unresolved location the
5638 same as a nonexistent symbol. Fix PR gdb/635.
5639 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5640 enclosed. Fix PR gdb/574.
5641 * MAINTAINERS: Add self to Write After Approval list.
5642
5643 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5644
5645 * mips-tdep.c (mips_xfer_register): New function.
5646 (mips_n32n64_extract_return_value): Rewrite.
5647 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5648 instead of deprecated_extract_return_value.
5649
5650 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5651
5652 * rs6000-tdep.c (TDEP): Delete macro.
5653 (branch_dest): Replace use of TDEP macro with its body.
5654 (rs6000_pop_frame): Ditto.
5655 (rs6000_push_arguments): Ditto.
5656 (rs6000_skip_trampoline_code): Ditto.
5657 (rs6000_frame_saved_pc): Ditto.
5658 (rs6000_frame_chain): Ditto.
5659 (rs6000_register_name): Ditto.
5660 (rs6000_register_byte): Ditto.
5661 (rs6000_register_raw_size): Ditto.
5662 (rs6000_register_virtual_type): Ditto.
5663 (rs6000_register_convertible): Ditto.
5664 (rs6000_convert_from_func_ptr_addr): Ditto.
5665
5666 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5667
5668 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5669 conditionally.
5670 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5671 MIPS_LINUX_JB_ELEMENT_SIZE.
5672 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5673 for MAX_REGISTER_RAW_SIZE arrays.
5674 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5675 MIPS_LINUX_JB_ELEMENT_SIZE.
5676
5677 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5678
5679 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5680
5681 2002-08-19 Aidan Skinner <aidan@velvet.net>
5682
5683 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5684 ada-valprint.c ada-tasks.c.
5685 (YYFILES): Add ada-exp.y.
5686 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5687 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5688 (ada-exp.tab.o): New target.
5689
5690 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5691
5692 * regcache.c (regcache_xfer_part): New function.
5693 (regcache_raw_read_part): New function.
5694 (regcache_raw_write_part): New function.
5695 (regcache_cooked_read_part): New function.
5696 (regcache_cooked_write_part): New function.
5697 * regcache.h (regcache_raw_read_part): Declare.
5698 (regcache_raw_write_part): Declare.
5699 (regcache_cooked_read_part): Declare.
5700 (regcache_cooked_write_part): Declare.
5701
5702 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5703
5704 * remote.c (remote_open_1): Add async_p.
5705 (remote_async_open_1): Delete.
5706 (open_remote_target): Delete.
5707 (remote_open, extended_remote_open): Update calls to remote_open_1.
5708 (remote_async_open, extended_remote_async_open): Call
5709 remote_open_1 instead of remote_async_open_1.
5710
5711 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5712
5713 * blockframe.c: Fix a few coding standard violations.
5714
5715 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5716
5717 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5718 here from ...
5719 * config/i386/tm-i386sco5.h: ... here. File removed.
5720 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5721
5722 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5723 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5724 (TM_FILE): Set to tm-i386.h.
5725 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5726 * config/i386/tm-i386v.h: Remove file.
5727 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5728 instead of "i386/tm-i386v.h".
5729 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5730 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5731 "i386/tm-i386v.h".
5732 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5733 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5734 "i386/tm-i386.h".
5735
5736 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5737
5738 * config/i386/nm-i386v.h: Add protection against
5739 multiple-inclusion.
5740 (i386_register_u_addr): Remove prototype.
5741 (register_u_addr): New prototype.
5742 (REGISTER_U_ADDR): Redefine accordingly.
5743 * i386v-nat.c: Improve several comments.
5744 (i386_register_u_addr): Change signature and rename to
5745 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5746 ubase variable.
5747
5748 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5749
5750 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5751 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5752 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5753 deprecated_extract_return_value.
5754 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5755 rename mips_o32o64_push_arguments.
5756 (mips_gdbarch_init): Update.
5757 (mips_extract_return_value): Delete.
5758 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5759 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5760 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5761 (mips_n32n64_extract_return_value): Clone
5762 mips_extract_return_value.
5763 (mips_store_return_value): Delete.
5764 (mips_o32_store_return_value): Clone mips_store_return_value.
5765 (mips_o64_store_return_value): Clone mips_store_return_value.
5766 (mips_eabi_store_return_value): Clone mips_store_return_value.
5767 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5768
5769 2002-08-18 Aidan Skinner <aidan@velvet.net>
5770
5771 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5772 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5773
5774 2002-08-18 Aidan Skinner <aidan@velvet.net>
5775
5776 * ada-lang.c: Run through gdb_indent.sh.
5777 * ada-lang.h: Run through gdb_indent.sh.
5778 * ada-tasks.c: Run through gdb_indent.sh.
5779 * ada-typeprint.c: Run through gdb_indent.sh.
5780 * ada-valprint.c: Run through gdb_indent.sh.
5781
5782 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5783
5784 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5785 ABI.
5786
5787 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5788
5789 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5790
5791 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5792 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5793
5794 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5795 write_register_gen instead of write_register_bytes.
5796
5797 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5798 i[3456]-*-osf1mk* configurations have been made obsolete.
5799 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5800 i[3456]86-*-osf1mk* hosts obsolete.
5801 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5802 targets obsolete.
5803 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5804 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5805 config/i386/i386m3.mt, config/i386/nm-m3.h,
5806 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5807 config/i386/i386mk.mh, config/i386/i386mk.mt,
5808 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5809 obsolete.
5810 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5811 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5812 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5813
5814 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5815
5816 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5817 (hppa_value_returned_from_stack): Declare.
5818 (hppa_extract_return_value): Declare.
5819 * config/pa/hppa.mt: New file.
5820 * configure.tgt: Recognize hppa*-*-*.
5821 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5822
5823 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5824
5825 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5826 comment.
5827
5828 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5829
5830 * top.c (gdb_rl_operate_and_get_next): Make sure
5831 operate-and-get-next functions correctly even when the history
5832 list is completely filled.
5833
5834 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5835
5836 * MAINTAINERS (Target Instruction Set Architectures): Rename
5837 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5838 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5839 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5840 already listed under Host/Native.
5841
5842 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5843 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5844 mips*-*-*.
5845
5846 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5847
5848 * config/ia64/ia64.mt: New file.
5849 * config/alpha/alpha.mt: New file.
5850 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5851 ia64-linux-gnu. Mention that ia64-elf is broken.
5852 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5853
5854 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5855
5856 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5857 generic_func_frame_valid instead of func_frame_valid.
5858
5859 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5860
5861 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5862 procfs appears to be broken when debugging on multi-processor
5863 machines. So enable software single stepping in order to avoid
5864 using the procfs interface to do next/step operations, using
5865 internal breakpoints instead.
5866
5867 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5868 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5869 make this pc address equal to the value it would have if the
5870 system stepping capability was used. Also set a new flag used
5871 to ensure that we don't readjust the PC one more time later.
5872
5873 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5874 address by DECR_PC_AFTER_BREAK when software single step is
5875 in use for this architecture, as this has already been taken
5876 care of in handle_inferior_event().
5877
5878 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5879
5880 * infrun.c (handle_inferior_event): Minor reformatting, to make
5881 a rather long condition expression easier to read.
5882
5883 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5884
5885 * Makefile.in (gdbtk.o): Move to end of file.
5886 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5887 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5888 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5889 (gdbtk-wrapper.o, gdbres.o): Ditto.
5890
5891 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5892
5893 * Makefile.in (copying.o): Separate out compile rule.
5894 (hpux-thread.o, procfs.o, signals.o): Ditto.
5895 (v850ice.o, z8k-tdep.o): Ditto.
5896 (tui-file.o): Move to TUI section.
5897 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5898 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5899
5900 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5901
5902 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5903 skip_trampoline_code, for better namespace-proofing.
5904
5905 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5906
5907 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5908
5909 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5910
5911 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5912
5913 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5914 signal, check whether we hit a breakpoint before checking for a
5915 single step breakpoint. Otherwise, GDB fails to notice that a
5916 breakpoint has been hit when stepping onto a breakpoint.
5917
5918 2002-08-16 Keith Seitz <keiths@redhat.com>
5919
5920 * gdb-events.sh (clear_gdb_event_hooks): New function.
5921 * gdb-events.c: Regenerate.
5922 * gdb-events.h: Regenerate.
5923
5924 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5925
5926 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5927 not_a_sw_breakpoint.
5928 * breakpoint.h (bpstat_stop_status): Add parameter names.
5929
5930 2002-08-16 Grace Sainsbury <graces@redhat.com>
5931
5932 * remote.c (remote_insert_hw_breakpoint)
5933 (remote_remove_hw_breakpoint): Fix calculation of length field
5934 for Z-packet.
5935
5936 2002-08-15 Michael Snyder <msnyder@redhat.com>
5937
5938 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5939 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5940 (supply_fpregset): Ditto.
5941
5942 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5943 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5944 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5945 (TARGET_READ_SP): Delete.
5946 (DO_REGISTERS_INFO): Delete.
5947 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5948 Delete.
5949 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5950 from macros to functions.
5951
5952 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5953 (mips_register_convertible, mips_register_convert_to_virtual,
5954 mips_register_convert_to_raw): Make static.
5955 (mips_read_sp): New function.
5956 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5957 (mips_do_registers_info): Make static.
5958 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5959 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5960 (mips_register_convert_from_type, mips_register_convert_to_type):
5961 New functions.
5962 (mips_gdbarch_init): Set up function_start_offset,
5963 register_virtual_size, pc_in_sigtramp.
5964
5965 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5966
5967 * infcmd.c (vector_info): New function.
5968 (_initialize_infcmd): Add command "info vector".
5969 (print_vector_info): New function.
5970
5971 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5972 * gdbarch.h, gdbarch.c: Regenerate.
5973
5974 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5975
5976 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5977 ``print_all''. Only print vector registers when ``print_all''.
5978
5979 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5980
5981 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5982 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5983
5984 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5985 Add `args' parameter.
5986 * gdbarch.h, gdbarch.c: Regenerate.
5987
5988 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5989
5990 * infcmd.c (float_info): Call print_float_info.
5991 (print_float_info): New function. By default, print the
5992 floating-point registers.
5993
5994 * arch-utils.h (default_print_float_info): Delete declaration.
5995 * arch-utils.c (default_print_float_info): Delete function.
5996
5997 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5998
5999 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6000 out define.
6001
6002 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6003 FRAME.
6004
6005 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6006 * configure.host: Make i[3456]86-*-aix host obsolete.
6007 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6008 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6009 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6010 config/i386/xm-i386aix.h: Make files obsolete.
6011 * i386aix-nat.c: Make file obsolete.
6012 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6013 (i386aix-nat.o): Make target obsolete.
6014
6015 * config/i386/nm-gnu.h: Removed.
6016 * config/i386/nm-i386gnu.h: New file.
6017 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6018 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6019 Moved here from ...
6020 * config/i386/tm-i386gnu.h: ... here. Removed.
6021 * config/i386/xm-i386gnu.h: Removed.
6022 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6023 (NAT_FILE): Set to nm-i386gnu.h.
6024 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6025 * i386-tdep.c: New file.
6026 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6027 (i386gnu-tdep.o): Specify dependencies.
6028
6029 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6030
6031 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6032 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6033 Adjust a few comments to reflect reality a bit closer.
6034 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6035 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6036 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6037 target_insert_watchpoint, target_remove_watchpoint):
6038 Move defines to ...
6039 * config/i386/nm-i386sco5.h: ... here.
6040 (kernel_u_size): Add prototype. Improve a few comments and add
6041 protection against multiple inclusion.
6042
6043 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6044 out define.
6045
6046 * uw-thread.c (SP_ARG0): Define if not already defined.
6047 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6048
6049 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6050
6051 * config/i386/tm-i386.h: Don't include "regcache.h".
6052
6053 * i387-tdep.h (i387_print_float_info): New prototype.
6054 * i387-tdep.c (print_i387_value, print_i387_ext,
6055 print_i387_status_word, print_i387_control_word): Add `struct
6056 ui_file *' argument and use it for output.
6057 (i387_print_float_info): Renamed from i387_float_info. Add
6058 `struct gdbarch *' and `struct ui_file *' arguments and use the
6059 latter for output.
6060 * i386-tdep.c: Include "i387-tdep.h".
6061 (i386_gdbarch_init): Set print_float_info.
6062 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6063 (FLOAT_INFO): Remove define.
6064
6065 2002-08-13 Michael Snyder <msnyder@redhat.com>
6066
6067 * mips-tdep.c (mips_push_arguments): Rename to
6068 mips_eabi_push_arguments, and tune for EABI.
6069 (MIPS_REGS_HAVE_HOME_P): Delete.
6070 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6071 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6072 Delete references to mips_regs_have_home_p.
6073
6074 2002-08-14 Keith Seitz <keiths@redhat.com>
6075
6076 * Makefile.in (install-gdbtk): Create insight plugin directory.
6077 Install plugins.tcl file.
6078
6079 2002-08-14 Keith Seitz <keiths@redhat.com>
6080
6081 * configure.in: Move SUBDIRS to near top of the file so that
6082 --enable options may add things to it.
6083 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6084 * configure: Regenerate.
6085
6086 2002-08-13 Michael Snyder <msnyder@redhat.com>
6087
6088 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6089 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6090 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6091
6092 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6093
6094 * vax-tdep.c (vax_get_saved_register): Delete function.
6095 (vax_gdbarch_init): Update.
6096 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6097 (ns32k_gdbarch_init): Update.
6098 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6099 (alpha_gdbarch_init): Update.
6100
6101 2002-08-13 Andrew Cagney <cagney@redhat.com>
6102
6103 * regcache.c (init_regcache_descr): Overallocate the
6104 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6105 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6106 nr_raw_registers.
6107 (set_register_cached): Add range checking assertions. Use
6108 current_regcache.
6109
6110 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6111
6112 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6113 numbers for MMX registers.
6114
6115 2002-08-13 Andrew Cagney <cagney@redhat.com>
6116
6117 * i386-tdep.c (i386_gdbarch_init): Use
6118 generic_unwind_get_saved_register.
6119
6120 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6121
6122 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6123 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6124 target vector.
6125 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6126 Delete. Add comment regarding this now-deleted target method.
6127
6128 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6129
6130 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6131 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6132 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6133 real PC and the page number (if it's within the memory bank window).
6134 (m68hc11_pseudo_register_write): Likewise when saving.
6135 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6136 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6137 (m68hc11_register_raw_size): And use 32-bit for it.
6138 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6139 16K memory bank is used by the prog; also use the virtual pc.
6140
6141 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6142
6143 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6144 (m68hc11_gdbarch_init): Install it in gdbarch.
6145 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6146 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6147 (MSYMBOL_SIZE): New for documentation.
6148 (insn_return_kind): Enum to specify how a function returns.
6149 (frame_extra_info): Cleanup and record the return mode.
6150 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6151 register in address computation.
6152 (m68hc11_get_return_insn): New to obtain the return instruction used
6153 by the function.
6154 (m68hc11_frame_init_saved_regs): Take into account the return
6155 instruction used by the function for far and interrupt functions.
6156 (m68hc11_init_extra_frame_info): Take into account page register.
6157 (m68hc11_frame_args_address): Adjust according to the return mode.
6158 (show_regs): Print page register only when it's used.
6159
6160 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6161
6162 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6163 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6164 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6165 registers.
6166 (m68hc11_register_raw_size): Likewise.
6167
6168 2002-08-13 Andrew Cagney <cagney@redhat.com>
6169
6170 * i386-tdep.c (i386_register_name): Handle mmx registers.
6171 (mmx_regnum_p): New function.
6172 (i386_mmx_names): New array.
6173 (mmx_num_regs): New variable.
6174 (i386_pseudo_register_read): New function.
6175 (i386_pseudo_register_write): New function.
6176 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6177
6178 * regcache.c (regcache_raw_read_unsigned): New function.
6179 (regcache_raw_read_signed): New function.
6180 * regcache.h (regcache_raw_read_unsigned): Declare.
6181 (regcache_raw_read_signed): Declare.
6182
6183 2002-08-13 Andrew Cagney <cagney@redhat.com>
6184
6185 * regcache.c (regcache_raw_read_as_address): Delete function.
6186 (regcache_cooked_read_signed): New function.
6187 (regcache_cooked_read_unsigned): New function.
6188 * regcache.h (regcache_cooked_read_signed): Declare.
6189 (regcache_cooked_read_unsigned): Declare.
6190 (regcache_raw_read_as_address): Delete declaration.
6191
6192 * blockframe.c (generic_read_register_dummy): Use
6193 regcache_cooked_read_unsigned.
6194 * i386-tdep.c (i386_extract_struct_value_address): Use
6195 regcache_cooked_read_unsigned.
6196
6197 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6198
6199 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6200 double sizes according to ELF ABI flags.
6201 (gdbarch_tdep): Record elf_flags.
6202
6203 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6204
6205 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6206 (m6812_prolog): They can appear in 68HC12 function prologue.
6207 (m68hc11_frame_chain): Cleanup.
6208
6209 2002-08-12 Andrew Cagney <cagney@redhat.com>
6210
6211 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6212 declarations.
6213 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6214 (i386_linux_register_raw_size): Delete function.
6215 (i386_linux_init_abi): Update.
6216 * i386-tdep.c (i386_register_raw_size): Delete function.
6217 (i386_register_byte): Delete function.
6218 (i386_gdbarch_init): Update.
6219 (i386_register_size): Delete array.
6220 (i386_register_offset): Delete array.
6221
6222 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6223 (REGISTER_RAW_SIZE): Delete macro.
6224 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6225 (REGISTER_BYTE): Delete macro.
6226
6227 2002-08-11 Aidan Skinner <aidan@velvet.net>
6228
6229 * ada-lang.c (ada_lookup_partial_symbol)
6230 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6231 prototype names so that grep ^func works properly.
6232
6233 * ada-lang.c (ada_array_element_type)
6234 (ada_lookup_partial_symbol): Fix typos in parameter list.
6235
6236 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6237 Fix prototype names so that grep ^func works properly.
6238
6239 2002-08-10 Andrew Cagney <cagney@redhat.com>
6240 Elena Zannoni <ezannoni@redhat.com>
6241 Martin M. Hunt <hunt@redhat.com>
6242
6243 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6244 (build_builtin_type_vec128i): Set the vector bit.
6245 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6246 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6247 (build_builtin_type_vec64): New function.
6248 (build_builtin_type_vec64i): New function.
6249 (build_gdbtypes): Initialize builtin_type_vec64 and
6250 builtin_type_vec64i.
6251
6252 2002-08-09 Andrew Cagney <cagney@redhat.com>
6253
6254 * regcache.c (regcache_dump): Compare the register offset
6255 with REGISTER_BYTE.
6256 * arch-utils.c (generic_register_byte): New function.
6257 * arch-utils.h (generic_register_byte): Declare.
6258 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6259 * gdbarch.h, gdbarch.c: Regenerate.
6260
6261 2002-08-09 Andrew Cagney <cagney@redhat.com>
6262
6263 * regcache.c: Include "gdbcmd.h"
6264 (_initialize_regcache): Add commands "maintenance print
6265 registers", "maintenance print raw-registers" and "maintenance
6266 print cooked-registers".
6267 (enum regcache_dump_what): Define.
6268 (dump_endian_bytes): New function.
6269 (regcache_dump): New function.
6270 (regcache_print): New function.
6271 (maintenance_print_registers): New function.
6272 (maintenance_print_raw_registers): New function.
6273 (maintenance_print_cooked_registers): New function.
6274 * Makefile.in (regcache.o): Update dependencies.
6275
6276 2002-08-09 Michael Snyder <msnyder@redhat.com>
6277
6278 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6279 (mips_push_arguments): Correct some comments. Use paddr_nz
6280 for printing addresses in debug output. Replace static
6281 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6282 (mips_n32n64_push_arguments): New function, cloned from
6283 mips_push_arguments and tuned for the n32/n64 ABI.
6284 (mips_push_register): Buffer needs dynamic allocation.
6285 (mips_print_register): Ditto.
6286 (do_gp_register_row): Ditto.
6287 (mips_store_return_value): Ditto.
6288 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6289
6290 2002-08-09 Don Howard <dhoward@redhat.com>
6291
6292 * memattr.c (mem_info_command): Print special case of upper bound
6293 as max CORE_ADDR + 1.
6294
6295 2002-08-08 Michael Snyder <msnyder@redhat.com>
6296
6297 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6298 returns structs by ref if they're too big to fit in two registers.
6299
6300 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6301
6302 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6303 saved regs value.
6304 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6305 mips_find_saved_regs().
6306 (mips_pop_frame): Likewise.
6307
6308 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6309
6310 * blockframe.c (frame_saved_regs_register_unwind): Revise
6311 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6312 frames are in use.
6313
6314 2002-08-09 Grace Sainsbury <graces@redhat.com>
6315
6316 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6317 T-packets; the 'a' is not taken as a register number.
6318 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6319 (remote_stopped_data_address): New functions; add to target
6320 vector.
6321 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6322 prototypes to match other implementations of this
6323 function. replace integer argument with pointer -- the length
6324 field in the Z-packet is the length of what is pointed to or 1 if
6325 pointer is null. Add to target vector.
6326 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6327 target vector.
6328
6329 From Mark Salter:
6330 * remote.c (remote_wait): Add support to extract optional
6331 watchpoint information from T-packet. Ignore unrecognized
6332 optional info in T-packet.
6333 (remote_async_wait): Ditto.
6334
6335 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6336
6337 * cli/cli-dump.c: Change fopen modes to use binary open modes
6338 as defined in include/fopen-bin.h throughout.
6339
6340 2002-08-08 Michael Snyder <msnyder@redhat.com>
6341
6342 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6343
6344 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6345
6346 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6347 assertion failure by returning early after a warning.
6348
6349 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6350
6351 * mips-tdep.c (mips_find_saved_regs): Make static.
6352 (mips_frame_init_saved_regs): New function.
6353 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6354 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6355 (mips_find_saved_regs): Delete declaration.
6356
6357 2002-08-08 Grace Sainsbury <graces@redhat.com>
6358
6359 * remote.c (remote_wait, remote_async_wait): Change
6360 thread_num from int to ULONGEST.
6361 (unpack_varlen_hex): Change result parameter from
6362 int * to ULONGEST *.
6363
6364 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6365
6366 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6367 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6368 powerpc*-*-*.
6369 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6370
6371 2002-08-08 Andrew Cagney <cagney@redhat.com>
6372
6373 * gcore.c (override_derive_stack_segment): Delete variable.
6374 (preempt_derive_stack_segment): Delete function.
6375 (derive_stack_segment): Delete function.
6376 (default_derive_stack_segment): Renamed to derive_stack_segment.
6377 (override_derive_heap_segment): Delete variable.
6378 (preempt_derive_heap_segment): Delete function.
6379 (derive_heap_segment): Delete function.
6380 (default_derive_heap_segment): Rename to derive_heap_segment.
6381
6382 2002-08-06 Michael Snyder <msnyder@redhat.com>
6383
6384 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6385 * mips-tdep.c (mips_EABI_use_struct_convention,
6386 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6387 New functions. (mips_use_struct_convention): Delete.
6388 (mips_gdbarch_init): set use_gdbarch_convention.
6389
6390 2002-08-06 Michael Snyder <msnyder@redhat.com>
6391
6392 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6393 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6394 mips_o32_reg_struct_has_addr): New functions.
6395 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6396
6397 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6398
6399 * regcache.c (pseudo_register): Delete function.
6400 (fetch_register): Delete function.
6401 (store_register): Delete function.
6402 (regcache_raw_read, legacy_read_register_gen): Use
6403 target_fetch_registers instead of fetch_register.
6404 (legacy_write_register_gen, regcache_raw_write): Use
6405 target_store_register instead of store_register.
6406 (write_register_bytes): Ditto.
6407
6408 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6409 (STORE_PSEUDO_REGISTER): Delete.
6410 * gdbarch.h, gdbarch.c: Regenerate.
6411
6412 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6413
6414 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6415 write dump file binary.
6416
6417 2002-08-05 Michael Snyder <msnyder@redhat.com>
6418
6419 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6420 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6421 (mips_gdbarch_init): Set N32 target to be mips64.
6422
6423 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6424
6425 * frame.c (find_saved_register): Break out of loop once saved
6426 register address is found. Don't mention sparc in loop comment
6427 anymore.
6428
6429 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6430
6431 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6432 mips_default_saved_regsize to 8.
6433
6434 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6435
6436 * gcore.c: Do not include <sys/procfs.h>.
6437 * Makefile.in (gcore.o): Update dependencies.
6438
6439 2002-08-06 Andrew Cagney <cagney@redhat.com>
6440
6441 * configure.tgt: Make arc-*-* obsolete.
6442 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6443 * MAINTAINERS: Make arc-elf obsolete.
6444 * arc-tdep.c: Make file obsolete.
6445 * config/arc/arc.mt: Ditto.
6446 * config/arc/tm-arc.h: Ditto.
6447
6448 2002-08-05 Theodore A. Roth <troth@verinet.com>
6449
6450 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6451
6452 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6453
6454 * mcore-tdep.c (mcore_gdbarch_init): Use
6455 generic_unwind_get_saved_register instead of
6456 generic_get_saved_register.
6457 * v850-tdep.c (v850_gdbarch_init): Ditto.
6458 * frv-tdep.c (frv_gdbarch_init): Ditto.
6459 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6460 * s390-tdep.c (s390_gdbarch_init): Ditto.
6461 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6462 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6463 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6464
6465 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6466
6467 * objfiles.h: Add missing #include "symfile.h"
6468
6469 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6470
6471 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6472
6473 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6474 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6475 of FIELD_BITSIZE.
6476
6477 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6478
6479 * NEWS: Cleanup and nitpick.
6480
6481 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6482
6483 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6484
6485 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6486
6487 * Makefile.in (gdbtk-bp.o): Update dependencies.
6488 (gdbtk-register.o): Ditto.
6489 (gdbtk-varobj.o): Ditto.
6490
6491 2002-08-03 Andrew Cagney <cagney@redhat.com>
6492
6493 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6494 m68hc11_fetch_pseudo_register.
6495 (m68hc11_pseudo_register_write): Replace
6496 m68hc11_store_pseudo_register.
6497 (m68hc11_gdbarch_init): Update.
6498
6499 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6500
6501 * gdbarch.sh: Include "gdb_string.h".
6502 * gdbarch.c: Regenerate.
6503
6504 * regcache.c: Include "gdb_string.h".
6505 * ax-general.c: Ditto.
6506 * varobj.c: Ditto.
6507 * std-regs.c: Ditto.
6508 * fbsd-proc.c: Ditto.
6509 * thread.c: Ditto.
6510
6511 * Makefile.in (regcache.o): Update dependencies.
6512 (thread.o, gdbarch.o): Ditto.
6513 (ax-general.o, gdbarch.o): Ditto.
6514 (varobj.o, std-regs.o): Ditto.
6515 (fbsd-proc.o): Specify dependencies.
6516
6517 2002-08-02 Andrew Cagney <cagney@redhat.com>
6518
6519 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6520 regnum.
6521 (regcache_cooked_write): Ditto.
6522
6523 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6524
6525 * regcache.c (regcache_cooked_read): New function.
6526 (regcache_cooked_write): New function.
6527 (read_register_gen): Rewrite using regcache_cooked_read.
6528 (write_register_gen): Rewrite using regcache_cooked_write.
6529
6530 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6531 Declare.
6532
6533 2002-08-02 Andrew Cagney <cagney@redhat.com>
6534
6535 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6536 Replace the architecture methods register_read and register_write.
6537 * gdbarch.h, gdbarch.c: Regenerate.
6538 * regcache.c (init_regcache_descr): Update.
6539 (read_register_gen): Update.
6540 (write_register_gen): Update.
6541 (supply_register): Update comment.
6542
6543 * sh-tdep.c (sh_gdbarch_init): Update.
6544 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6545 `regcache' and `gdbarch' parameters. Make `buffer' a void
6546 pointer. Update code.
6547 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6548 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6549 void pointer. Update code.
6550 (sh64_register_write): Delete.
6551 (sh4_register_read): Delete.
6552 (sh64_register_read): Delete.
6553 (sh4_register_write): Delete.
6554 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6555 void pointer, `to' parameter a void pointer.
6556 (sh_sh64_register_convert_to_raw): Ditto.
6557
6558 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6559
6560 * mips-tdep.c (mips_register_virtual_type): Use architecture
6561 invariant return values.
6562
6563 2002-08-01 Andrew Cagney <cagney@redhat.com>
6564
6565 * linux-proc.c: Include "gdb_string.h".
6566 * Makefile.in (linux-proc.o): Update dependency list.
6567
6568 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6569
6570 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6571 comment.
6572
6573 2002-08-01 Grace Sainsbury <graces@redhat.com>
6574
6575 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6576 to_insert_watchpoint, to_remove_watchpoint,
6577 to_stopped_by_watchpoint, to_stopped_data_address,
6578 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6579 target vecctor. Define their corresponding macros so they call
6580 them.
6581
6582 * target.c: Add default and debug versions of for
6583 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6584 to_insert_watchpoint, to_remove_watchpoint,
6585 to_stopped_by_watchpoint, to_stopped_data_address,
6586 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6587
6588 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6589
6590 * mips-tdep.c (mips_register_virtual_type): New function.
6591 (mips_gdbarch_init): Register mips_register_virtual_type()
6592 with gdbarch machinery.
6593 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6594 this file instead of tm-bigmips.h.
6595 (MIPS_REGSIZE): Delete this macro.
6596 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6597 multiarch version in mips-tdep.c will be found.
6598
6599 2002-08-01 Andrew Cagney <cagney@redhat.com>
6600
6601 * NEWS: Menion that CHILL has been made obsolete.
6602
6603 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6604 * stabsread.c (read_range_type): Ditto.
6605 * gdbtypes.h: Ditto.
6606 * language.c (binop_type_check): Ditto.
6607 (binop_result_type): Ditto.
6608 (integral_type): Ditto.
6609 (character_type): Ditto.
6610 (string_type): Ditto.
6611 (boolean_type): Ditto.
6612 (structured_type): Ditto.
6613 (lang_bool_type): Ditto.
6614 (binop_type_check): Ditto.
6615 * language.h (_LANG_chill): Ditto.
6616 * dwarfread.c (set_cu_language): Ditto.
6617 * dwarfread.c (CHILL_PRODUCER): Ditto.
6618 * dwarfread.c (handle_producer): Ditto.
6619 * expression.h (enum exp_opcode): Ditto.
6620 * eval.c: Ditto for comments.
6621 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6622 * expprint.c (print_subexp): Ditto.
6623 (print_subexp): Ditto.
6624 * valops.c (value_cast): Ditto.
6625 (search_struct_field): Ditto.
6626 * value.h (COERCE_VARYING_ARRAY): Ditto.
6627 * symfile.c (init_filename_language_table): Ditto.
6628 (add_psymbol_with_dem_name_to_list): Ditto.
6629 * valarith.c (value_binop): Ditto.
6630 (value_neg): Ditto.
6631 * valops.c (value_slice): Ditto.
6632 * symtab.h (union language_specific): Ditto.
6633 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6634 (SYMBOL_DEMANGLED_NAME): Ditto.
6635 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6636 * defs.h (enum language): Ditto.
6637 * symtab.c (got_symtab): Ditto.
6638 * utils.c (fprintf_symbol_filtered): Ditto.
6639
6640 * ch-typeprint.c: Make file obsolete.
6641 * ch-valprint.c: Make file obsolete.
6642 * ch-lang.h: Make file obsolete.
6643 * ch-exp.c: Make file obsolete.
6644 * ch-lang.c: Make file obsolete.
6645
6646 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6647 CHILL_LIB.
6648 (TARGET_FLAGS_TO_PASS): Ditto.
6649 (CHILLFLAGS): Obsolete.
6650 (CHILL): Obsolete.
6651 (CHILL_FOR_TARGET): Obsolete.
6652 (CHILL_LIB): Obsolete.
6653 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6654 ch-valprint.c.
6655 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6656 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6657 ch-lang.o.
6658 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6659 targets.
6660
6661 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6662
6663 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6664 This does not change anything at the moment, but will be helpful
6665 later when full Ada support is integrated.
6666
6667 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6668
6669 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6670 help message.
6671
6672 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6673
6674 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6675 and save it in a local variable. Use variable in later test.
6676
6677 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6678
6679 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6680 test. (Thanks to Daniel Jacobowitz.)
6681
6682 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6683
6684 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6685 (mips_abi_strings): Add "n64".
6686 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6687
6688 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6689
6690 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6691 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6692
6693 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6694
6695 * utils.c (host_pointer_to_address, address_to_host_pointer):
6696 Use gdb_assert() instead of explicit call to internal_error().
6697
6698 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6699
6700 * Makefile.in (rs6000-nat.o): Update dependencies.
6701
6702 From Nicholas Duffek:
6703 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6704 (aix-thread.o): New rule.
6705 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6706 * config/powerpc/aix432.mh: New file.
6707
6708 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6709
6710 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6711 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6712 (fetch_core_registers, ppc_linux_supply_gregset)
6713 (ppc_linux_supply_fpregset): New functions.
6714 (ppc_linux_regset_core_fns): New.
6715 (_initialize_ppc_linux_tdep): Call add_core_fns.
6716 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6717 and ppc_linux_supply_gregset.
6718 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6719 (supply_fpregset): Call ppc_linux_supply_fpregset.
6720 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6721 corelow.o.
6722 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6723
6724 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6725
6726 * symtab.c (lookup_symbol): Demangle before lowercasing.
6727
6728 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6729
6730 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6731 declaration.
6732 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6733 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6734 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6735 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6736 "gdb_string.h".
6737 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6738 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6739 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6740 (avr-tdep.o, mon960-rom.o): Ditto.
6741 (aout_stabs_gnu_h): Define.
6742 (symtab_h): Remove $(gdb_obstack_h).
6743
6744 2002-07-30 Jim Blandy <jimb@redhat.com>
6745
6746 Patch from David Carlton <carlton@math.stanford.edu>:
6747 * gdbinit.in: Move the `dir' commands that add GDB's own source
6748 directory to the search path to the end, so that the `gdb' source
6749 directory will be searched first.
6750
6751 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6752
6753 * gdb_obstack.h: New file.
6754 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6755 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6756 * objfiles.h: Include "gdb_obstack.h".
6757 * Makefile.in (gdb_obstack_h): Define.
6758 (symtab_h): Add $(gdb_obstack_h).
6759 (objfiles_h): Add $(gdb_obstack_h).
6760
6761 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6762 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6763 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6764 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6765 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6766 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6767 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6768 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6769
6770 * Makefile.in (bcache.o): Update dependencies.
6771 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6772 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6773 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6774 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6775 (stabsread.o, symfile.o, symmisc.o): Ditto.
6776 (symtab.o, typeprint.o, macroexp.o): Ditto.
6777 (macrotab.o, mdebugread.o): Ditto.
6778 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6779 (coff_ecoff_h, aout_aout64_h): Define.
6780 (aout_stabs_gnu_h, libaout_h): Define.
6781
6782 2002-07-29 Andrew Cagney <cagney@redhat.com>
6783
6784 * regcache.c (struct regcache_descr): Rename nr_registers to
6785 nr_cooked_registers. Revise comments describing the structure
6786 member fields.
6787 (init_regcache_descr): Update.
6788 (init_legacy_regcache_descr): Update.
6789 (read_register_gen, write_register_gen): When a cooked register in
6790 the raw register range, directly access the value from the raw
6791 register cache.
6792
6793 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6794
6795 * z8k-tdep.c: Do not include "obstack.h".
6796 * h8300-tdep.c, h8500-tdep.c: Ditto.
6797 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6798 * valprint.c, v850-tdep.c: Ditto.
6799 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6800 * mn10200-tdep.c: Ditto.
6801
6802 * Makefile.in (z8k-tdep.o): Update dependencies.
6803 (m68hc11-tdep.o, valprint.o): Ditto.
6804 (v850-tdep.o, d10v-tdep.o): Ditto.
6805 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6806 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6807 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6808 (sh_opc_h, gdb_sim_sh_h): Define.
6809 (elf_sh_h, elf_bfd_h): Define.
6810 (opcode_m68hc11_h): Define.
6811 (OPCODES_SRC, OPCODES_DIR): define.
6812 (OPCODES): Use $(OPCODES_DIR).
6813 (gdb_sim_d10v_h): Rename sim_d10v_h.
6814 (gdb_sim_arm_h): Rename sim_arm_h.
6815
6816 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6817
6818 * utils.c (host_pointer_to_address, address_to_host_pointer):
6819 Change internal_error() message to indicate function responsible
6820 for the error.
6821
6822 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6823
6824 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6825 calls to local_hex_string_custom().
6826
6827 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6828
6829 * irix5-nat.c: Move IRIX shared library support from here...
6830 * solib-irix.c: ...to here. Revised substantially to work with
6831 generic solib framework.
6832
6833 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6834 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6835 * mips-irix-tdep.c: New file.
6836
6837 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6838 (mips-irix-tdep.o, solib-irix.o): New rules.
6839 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6840 solib-irix.o.
6841 * config/mips/irix6.mt (TDEPFILES): Likewise.
6842 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6843
6844 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6845
6846 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6847 disabled (via ``#if 0'') includes.
6848
6849 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6850
6851 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6852 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6853 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6854 Add support for the fpscr register.
6855 * rs6000-nat.c (regmap, fetch_inferior_registers)
6856 (store_inferior_registers, fetch_core_registers): Likewise.
6857
6858 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6859
6860 * rs6000-nat.c (language.h): Include.
6861 (special_regs): Delete this array.
6862 (regmap): New function.
6863 (fetch_register, store_register): Use regmap() to map gdb
6864 register numbers to ptrace register numbers. Also, use
6865 outputs from regmap() to make decisions regarding type of
6866 ptrace() call to make. In particular, don't compare against
6867 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6868 (fetch_inferior_registers, store_inferior_registers): Where
6869 possible, obtain register numbers from tdep struct. Don't
6870 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6871 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6872 (LAST_UISA_SP_REGNUM): Delete.
6873
6874 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6875
6876 * rs6000-nat.c (ppc-tdep.h): Include.
6877 (fetch_registers, store_register, fetch_core_registers): Don't
6878 access registers[] directly. Instead, use supply_register() or
6879 regcache_collect() as appropriate.
6880 (find_toc_address): Format hex address with local_hex_string().
6881
6882 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6883
6884 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6885 bfd/elf32-frv.c.
6886
6887 2002-07-24 Tom Tromey <tromey@redhat.com>
6888
6889 * jv-exp.y: Marked all strings with _().
6890 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6891 internal_error.
6892 (MethodInvocation, CastExpression, parse_number, yyerror,
6893 java_type_from_name, push_expression_name, yylex): Typo fixes.
6894
6895 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6896
6897 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6898 (tee_file_flush, tee_file_write, tee_file_fputs)
6899 (tee_file_isatty): New.
6900 * ui-file.h (tee_file_new): Add prototype.
6901
6902 2002-07-24 Aidan Skinner <aidan@velvet.net>
6903
6904 * ada-lang.c: Change k&r style function definitions to prototyped
6905 form.
6906 * ada-typeprint.c: Change k&r style function definitions to prototyped
6907 form.
6908 * ada-valprint.c: Change k&r style function definitions to prototyped
6909 form.
6910
6911 2002-07-24 Andrew Cagney <cagney@redhat.com>
6912
6913 * README: Remove reference to remote-bug.
6914 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6915 remote-bug.c.
6916 (m88k-nat.o): Delete rule.
6917 (m88k-tdep.o): Delete rule.
6918 (remote-bug.o): Delete rule.
6919 * MAINTAINERS: Mark as obsolete.
6920 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6921 * m88k-tdep.c: Make file obsolete.
6922 * config/m88k/m88k.mh: Ditto.
6923 * config/m88k/delta88v4.mh: Ditto.
6924 * config/m88k/delta88v4.mt: Ditto.
6925 * config/m88k/delta88.mt: Ditto.
6926 * config/m88k/delta88.mh: Ditto.
6927 * remote-bug.c: Ditto.
6928 * config/m88k/tm-delta88.h: Ditto.
6929 * config/m88k/nm-delta88v4.h: Ditto.
6930 * config/m88k/xm-delta88.h: Ditto.
6931 * config/m88k/xm-dgux.h: Ditto.
6932 * config/m88k/tm-m88k.h: Ditto.
6933 * config/m88k/nm-m88k.h: Ditto.
6934 * config/m88k/tm-delta88v4.h: Ditto.
6935 * m88k-nat.c: Ditto.
6936 * cxux-nat.c: Ditto.
6937 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6938 and m88*-*-* obsolete.
6939 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6940 m88*-*-* obsolete.
6941
6942 2002-07-24 Andrew Cagney <cagney@redhat.com>
6943
6944 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6945 constant. Same for local pointer variables.
6946 (extract_signed_integer): Ditto.
6947 * defs.h (extract_unsigned_integer): Update.
6948 (extract_signed_integer): Update.
6949
6950 2002-07-24 Andrew Cagney <cagney@redhat.com>
6951
6952 * regcache.c (regcache_raw_write): Change buf parameter to a
6953 constant void pointer.
6954 (regcache_raw_read): Change buf parameter to a void pointer.
6955 (legacy_write_register_gen): Change myaddr parameter a constant
6956 void pointer.
6957 (supply_register): Change val parameter to a const void pointer.
6958 * regcache.h (regcache_raw_write): Update declaration.
6959 (regcache_raw_read): Update declaration.
6960 (supply_register): Update declaration.
6961
6962 2002-07-24 Tom Tromey <tromey@redhat.com>
6963
6964 * defs.h (gdb_readline_wrapper): Declare.
6965 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6966 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6967 * top.c (gdb_readline_wrapper): New function.
6968 (command_line_input): Use it.
6969
6970 2002-07-24 Andrew Cagney <cagney@redhat.com>
6971
6972 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6973 regcache_read and regcache_write.
6974 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6975 * regcache.c: Update.
6976 * sh-tdep.c (sh64_push_arguments): Update comment.
6977 (sh_pseudo_register_read): Update.
6978 (sh_pseudo_register_write): Update.
6979 (sh4_register_read): Update.
6980 (sh4_register_write): Update.
6981 (sh64_pseudo_register_read): Update.
6982 (sh64_pseudo_register_write): Update.
6983 (sh64_register_read): Update.
6984 (sh64_register_write): Update.
6985 * i386-tdep.c (i386_extract_return_value): Update.
6986 (i386_extract_struct_value_address): Update.
6987 (i386_extract_return_value): Update.
6988 * blockframe.c (generic_read_register_dummy): Update.
6989 (generic_call_dummy_register_unwind): Update
6990 * infrun.c (write_inferior_status_register): Update.
6991
6992 2002-07-23 Jim Blandy <jimb@redhat.com>
6993
6994 * parser-defs.h (expression_context_pc): Make this extern.
6995 (Thanks to Michael Snyder.)
6996
6997 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6998
6999 GDB 5.2.1 released from 5.2 branch.
7000 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7001 * README: Update to mention 5.2.1.
7002
7003 2002-07-23 Mark Salter <msalter@redhat.com>
7004
7005 * remote.c (remote_read_bytes): Fix check for error.
7006
7007 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7008
7009 * aix-thread.c (language.h): Include.
7010 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7011 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7012 Print newlines at end of debug messages.
7013 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7014 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7015
7016 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7017
7018 * aix-thread.c (ppc-tdep.h): Include.
7019 (special_register_p): New function.
7020 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7021 (store_regs_user_thread): Use register number information from
7022 gdbarch_tdep struct instead of hardcoded offsets relative to
7023 FIRST_UISA_SP_REGNUM.
7024 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7025 special_register_p() instead of using FPLAST_REGNUM and
7026 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7027 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7028 will be MQ's register number.
7029
7030 2002-07-22 Michael Snyder <msnyder@redhat.com>
7031
7032 * aix-thread.c (ops): Rename to aix_thread_ops.
7033 (base_ops): Rename to base_target.
7034 (ops_attach): Rename to aix_thread_attach.
7035 (ops_detach): Rename to aix_thread_detach.
7036 (ops_resume): Rename to aix_thread_detach.
7037 (ops_wait): Rename to aix_thread_wait.
7038 (ops_kill): Rename to aix_thread_kill.
7039 (init_ops): Rename to init_aix_thread_ops.
7040 (ops_fetch_register): Rename to aix_thread_fetch_register.
7041 (ops_store_register): Rename to aix_thread_store_register.
7042 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7043 (ops_thread_alive): Rename to aix_thread_thread_alive.
7044 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7045 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7046 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7047 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7048 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7049 (store_regs_lib): Rename to store_regs_user_thread.
7050 (store_regs_kern): Rename to store_regs_kernel_thread.
7051
7052 2002-07-22 Michael Snyder <msnyder@redhat.com>
7053
7054 * aix-thread.c (ops_prepare_to_store): Eliminate.
7055 (init_ops): Don't initialize ops.prepare_to_store.
7056 (store_regs_kern): Pre-fetch register buffers from child,
7057 because some registers may not be in the cache. Copy
7058 regs from register cache only if they are cached.
7059 (store_regs_lib): Copy regs from register cache only
7060 if they are cached.
7061 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7062 fill_gprs64): Ditto.
7063
7064 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7065
7066 * aix-thread.c (gdb_assert.h): Include.
7067 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7068 register sizes (from register cache) match size of buffer holding
7069 register data.
7070 (fill_sprs32): Change parameter types to match those in the ptrace()
7071 buffer.
7072 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7073 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7074
7075 2002-07-22 Michael Snyder <msnyder@redhat.com>
7076
7077 * aix-thread.c (supply_sprs64): Cosmetic change.
7078 (supply_sprs32): Cosmetic change.
7079 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7080 (fill_sprs64): Use regcache_collect instead of read_register.
7081 (store_regs_lib): Use regcache_collect instead of
7082 read_register. Use fill_sprs32 instead of fill_sprs64,
7083 if debugging a 32-bit architecture.
7084 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7085 out of the register cache, instead of passing a pointer into
7086 the register cache directly to ptrace. Use regcache_collect
7087 insteaad of read_register.
7088 (ops_prepare_to_store): Use target_read_registers instead
7089 of read_register_bytes.
7090
7091 2002-07-20 Aidan Skinner <aidan@velvet.net>
7092
7093 * MAINTAINERS: Add self under write after approval.
7094
7095 2002-07-20 Aidan Skinner <aidan@velvet.net>
7096
7097 * ada-tasks.c: Change k&r style function definitions to prototyped
7098 form.
7099
7100 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7101
7102 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7103 * x86-64-tdep.c: Include "objfiles.h".
7104 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7105 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7106
7107 2002-07-17 Michal Ludvig <michal@suse.cz>
7108
7109 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7110 (update_context): Initialise cfa variable.
7111
7112 2002-07-17 Michael Snyder <msnyder@redhat.com>
7113
7114 * aix-thread.c: Shorten some long lines.
7115 Bring comments into line with code spec.
7116
7117 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7118
7119 * infrun.c: Re-indent using gdb_indent.sh.
7120
7121 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7122
7123 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7124 Leave the indentation temporarily untouched, to minimize the diffs.
7125
7126 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7127
7128 * stabsread.c: Make os9k sections of the code obsolete,
7129 for real this time.
7130 * stabsread.h: Make os9k sections of the code obsolete.
7131
7132 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7133
7134 * linux-low.c (regsets_store_inferior_registers): Add free()
7135 at the end of a loop to prevent memory leak.
7136 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7137 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7138 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7139 line a comment.
7140 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7141
7142 2002-07-17 Jim Blandy <jimb@redhat.com>
7143
7144 * macrocmd.c (info_macro_command): Remove newline from error
7145 message.
7146
7147 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7148
7149 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7150 (sh_gdbarch_init): Use it for sh-dsp.
7151
7152 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7153
7154 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7155 64-bit DWARF2 format.
7156
7157 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7158
7159 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7160 <sys/proc.h> when not available.
7161
7162 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7163
7164 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7165 * stabsread.c: Make os9k sections of the code obsolete.
7166 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7167 * config/i386/i386os9k.mt: Make file obsolete.
7168 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7169 (COMMON_OBS): Remove os9kread.o
7170 (SFILES): Remove os9kread.c.
7171 (os9kread.o, remote-os9k.o): Make target obsolete.
7172 * remote-os9k.c: Make file obsolete.
7173 * os9kread.c: Make file obsolete.
7174 * Makefile.in
7175
7176 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7177
7178 * NEWS: Mention that the FR30 has been made obsolete.
7179 * fr30-tdep.c: Make file obsolete.
7180 * config/fr30/tm-fr30.h: Ditto.
7181 * config/fr30/fr30.mt: Ditto.
7182 * configure.tgt: Make fr30-*-elf obsolete.
7183 * MAINTAINERS: Make fr30-elf obsolete.
7184
7185 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7186
7187 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7188 found is not inside a section.
7189
7190 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7191
7192 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7193 strerror().
7194 (pdc_realloc): Use xrealloc() instead of realloc().
7195
7196 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7197
7198 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7199 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7200 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7201 macros.
7202
7203 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7204
7205 * aix-thread.c (ptrace_check): Eliminate goto.
7206 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7207 problem.
7208
7209 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7210
7211 * aix-thread.c (gdbcmd.h): Include.
7212 (DEBUG, DBG, DBG2, dbg): Eliminate.
7213 (debug_aix_thread): New static global.
7214 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7215 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7216 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7217 invocations to DBG and DBG2 macros to test against
7218 ``debug_aix_thread'' and call fprintf_unfiltered().
7219 (_initialize_aix_thread): Add new command "set debug aix-thread".
7220
7221 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7222
7223 From Gerhard Tonn <TON@de.ibm.com>:
7224 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7225 instead of supply_register.
7226
7227 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7228
7229 * dwarf2cfi.c: Include "gdb_assert.h".
7230 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7231 non-NULL.
7232 (update_context): Do not use __func__. Add missing ``break''.
7233 (update_context): Do not use __func__.
7234
7235 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7236
7237 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7238 and its setting. Set gdbarch instruction printing functions
7239 directly. For non-rs6000 case use new function
7240 gdb_print_insn_powerpc.
7241 (gdb_print_insn_powerpc): New function.
7242
7243 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7244
7245 * NEWS: Mention that the d30v has been marked obsolete.
7246 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7247 * configure.tgt: Mark d30v-*-* as obsolete.
7248 * d30v-tdep.c: Mark file as obsolete.
7249 * config/d30v/d30v.mt: Ditto.
7250 * config/d30v/tm-d30v.h: Ditto.
7251
7252 2002-07-13 Aidan Skinner <aidan@velvet.net>
7253
7254 * ada-tasks.c (add_task_entry): replace calls to
7255 malloc() with xmalloc
7256 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7257
7258 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7259 ada_finish_decode_line_1, all_sals_for_line
7260 ada_breakpoint_rewrite): replace calls to free() with xfree()
7261
7262 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7263
7264 From Nicholas Duffek (with minor changes by Martin Hunt,
7265 Louis Hamilton, and Kevin Buettner):
7266 * aix-thread.c: New file.
7267
7268 2002-07-12 Petr Sorfa <petrs@caldera.com>
7269
7270 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7271 complaint for invalid attribute class or form.
7272 (read_func_scope): DW_AT_frame_base
7273 better handling of DW_AT_block*.
7274 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7275 better handling of DW_AT_block*.
7276 (read_common_block): DW_AT_location
7277 better handling of DW_AT_block*.
7278 (read_partial_die): DW_AT_location better handling
7279 of DW_AT_block*.
7280 (new_symbol): DW_AT_external better handling of
7281 DW_AT_block*. Proper initialization of variable
7282 "addr".
7283 (attr_form_is_block): New function that returns true
7284 if the attribute's form is of DW_FORM_block*.
7285
7286 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7287
7288 * valops.c (find_method_list): Remove comment about
7289 removed STATIC_MEMFUNCP argument.
7290 (value_find_oload_method_list): Likewise.
7291
7292 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7293
7294 From Nicholas Duffek:
7295 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7296 target_new_objfile_hook.
7297
7298 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7299
7300 From Nicholas Duffek:
7301 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7302 csect.
7303
7304 2002-07-12 Andrew Cagney <cagney@redhat.com>
7305
7306 * MAINTAINERS: Mention --enable-sim-build-warnings.
7307 (m68hc11-elf): Disable sim build warnings.
7308 (m32r-elf): Mark as broken obsolete candidate.
7309 (x86_64-linux-gnu): Mark as buildable with -Werror.
7310 (arm-elf): Change -w to ``,'' which enables warnings but not
7311 -Werror.
7312
7313 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7314
7315 * bcache.h: Update copyright.
7316 (struct bstring, struct bcache): Move definition to "bcache.c".
7317 Replaced by opaque declaration.
7318 (bcache_xfree): Replace free_bcache.
7319 (bcache_xmalloc, bcache_memory_used): Declare.
7320
7321 * bcache.c: Update copyright.
7322 (struct bstring, struct bcache): Moved to here from "bcache.h".
7323 Update comments.
7324 (bcache_xmalloc, bcache_memory_used): New functions.
7325 (bcache_xfree): Replace function free_bcache.
7326
7327 * Makefile.in (objfiles.o): Add $(bcache_h).
7328 (objfiles_h): Remove $(bcache_h).
7329 (symfile.o): Add $(bcache_h).
7330
7331 * symmisc.c: Update copyright.
7332 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7333 (print_objfile_statistics): Use bcache_memory_used.
7334
7335 * symfile.c: Include "bcache.h".
7336 (reread_symbols): Use bcache_xfree.
7337 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7338 (add_psymbol_to_list): Pass psymbol_cache by value.
7339 (add_psymbol_with_dem_name_to_list): Ditto.
7340
7341 * objfiles.h: Update copyright.
7342 (struct bcache): Declare opaque. Do not include "bcache.h".
7343 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7344 bcache'' pointers.
7345 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7346
7347 * objfiles.c: Include "bcache.h". Update copyright.
7348 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7349 macro_cache.
7350 (free_objfile): Use bcache_xfree.
7351
7352 2002-07-11 Grace Sainsbury <graces@redhat.com>
7353
7354 * monitor.c (monitor_fetch_register): Make name a constant.
7355 (monitor_store_register): Same.
7356
7357 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7358
7359 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7360 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7361 (finish_block) For non-function blocks, hash the symbol table. For
7362 function blocks, mark the symbol table as unhashed.
7363 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7364 (msymbol_hash_iw): Likewise.
7365 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7366 value.
7367 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7368 (lookup_minimal_symbol): Likewise for both.
7369 * symtab.h (struct block): Add `hashtable' flag. Comment the
7370 hashtable.
7371 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7372 (ALL_BLOCK_SYMBOLS): Update.
7373 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7374 (struct symbol): Add `hash_next' pointer.
7375 * symtab.c (lookup_block_symbol): Search using the hash table when
7376 possible.
7377 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7378 (search_symbols, find_addr_symbol): Likewise.
7379
7380 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7381 (read_dst_symtab): Likewise.
7382 * jv-lang.c (get_java_class_symtab): Likewise.
7383 * mdebugread.c: Include "gdb_assert.h".
7384 (shrink_block): Assert that the block being modified is not hashed.
7385 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7386 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7387 symbols.
7388 (dump_symtab): Recognize hashed blocks.
7389 * printcmd.c (print_frame_args): Assert that function blocks do not
7390 have hashed symbol tables.
7391 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7392 (fill_in_ada_prototype, debug_print_block): Likewise.
7393 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7394
7395 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7396
7397 * stack.c (print_frame): Use result of frame_address_in_block()
7398 instead of fi->pc when evaluating symbols.
7399 (backtrace_command_1): Ditto.
7400
7401 2002-07-11 Andrew Cagney <cagney@redhat.com>
7402
7403 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7404 Make static.
7405
7406 * arm-tdep.c (arm_register_name): Make return type constant.
7407
7408 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7409
7410 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7411 prototype.
7412 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7413 * s390-tdep.c (s390_fp_regnum): Ditto.
7414 (s390_read_fp): Ditto.
7415 (s390_pop_frame): Ditto.
7416 (_initialize_s390_tdep): Ditto.
7417 * remote.c (get_remote_state): Ditto.
7418 * procfs.c (mappingflags): Ditto.
7419 * memattr.c (_initialize_mem): Ditto.
7420 * mcore-tdep.c (mcore_pop_frame): Ditto.
7421 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7422 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7423 * language.c (set_case_str): Ditto.
7424 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7425 * frv-tdep.c (new_variant): Ditto.
7426 (frv_stopped_data_address): Ditto.
7427 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7428 (context_alloc): Ditto.
7429 (frame_state_alloc): Ditto.
7430 (unwind_tmp_obstack_init): Ditto.
7431 (unwind_tmp_obstack_free): Ditto.
7432 (cfi_read_fp): Ditto.
7433 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7434 (cris_pop_frame): Ditto.
7435 * c-lang.c (scanning_macro_expansion): Ditto.
7436 (finished_macro_expansion): Ditto.
7437 (c_preprocess_and_parse): Ditto.
7438 * gdbarch.sh: Ditto.
7439 * gdbarch.h, gdbarch.c: Regenerate.
7440 * config/mn10200/tm-mn10200.h: Adjust indentation.
7441 * target.c: Adjust indentation.
7442 * symtab.h: Adjust indentation.
7443 * stabsread.h: Adjust indentation.
7444 * remote-es.c: Adjust indentation.
7445 * os9kread.c: Adjust indentation.
7446
7447 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7448
7449 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7450 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7451
7452 2002-07-10 Grace Sainsbury <graces@redhat.com>
7453
7454 * NEWS: Mention m68k, mcore multi-arching.
7455 * MAINTAINERS: Change status of m68k, mcore to reflect
7456 multi-arching.
7457
7458 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7459
7460 * valops.c (find_overload_match): Free oload_syms.
7461
7462 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7463
7464 Define HAVE_SYS_PROC_H if sys/proc.h exists
7465 * configure.in: Add check for sys/proc.h
7466 * config.in: Regenerate.
7467 * configure: Regenerate.
7468
7469 2002-07-09 Grace Sainsbury <graces@redhat.com>
7470
7471 * config/m68k/tm-m68k.h: Remove macros wrapped in
7472 #if !GDB_MULTI_ARCH.
7473
7474 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7475
7476 * config.in, configure: Regenerate.
7477
7478 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7479
7480 * dwarf2cfi.c: Include "gcore.h".
7481 (execute_stack_op): Fix implementation of the
7482 DW_OP_deref and DW_OP_deref_size operators by letting do their
7483 lookup in the target.
7484
7485 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7486
7487 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7488 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7489 tdep->sc_sp_offset.
7490
7491 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7492
7493 Fix PR gdb/595, gdb/602
7494 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7495 Don't call value_cast, just read the vtable pointer; update comments
7496 to match.
7497
7498 2002-07-05 Grace Sainsbury <graces@redhat.com>
7499
7500 * config/mcore/tm-mcore.h: Remove file.
7501 * config/mcore/mcore.mt: Remove definition of TM_FILE
7502 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7503
7504 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7505
7506 * i386bsd-tdep.c: Include "gdb_string.h".
7507
7508 2002-07-04 Grace Sainsbury <graces@redhat.com>
7509
7510 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7511 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7512 mcore-tdep.
7513 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7514 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7515 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7516 (RETVAL_REGNUM): Move macros from tm-mcore.h
7517 (mcore_reg_struct_has_addr): New function.
7518 (mcore_gdbarch_init): Added initializations for the macros removed
7519 from tm-mcore.h.
7520
7521 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7522
7523 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7524 traditonal string branding within the ELF header.
7525
7526 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7527
7528 * symtab.c (remove_params): New function.
7529 (make_symbol_overload_list): Use it instead of cplus_demangle.
7530 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7531
7532 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7533
7534 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7535
7536 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7537 New variables.
7538 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7539 and tdep->sigtramp_end.
7540 * i386obsd-nat.c: New file.
7541 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7542
7543 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7544 Don't call get_current_frame().
7545
7546 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7547
7548 * i386-nat.c (child_post_startup_inferior): New function
7549 calling i386_cleanup_dregs if
7550 I386_USE_GENERIC_WATCHPOINTS is defined.
7551 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7552 conditional to acknowledge that i386-nat.c has its
7553 own child_post_startup_inferior function.
7554
7555 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7556
7557 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7558 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7559 instead of MAX_REGISTER_RAW_SIZE.
7560 (i386_extract_return_value, i386_extract_struct_value_address):
7561 Convert to use regcache.
7562 (i386_gdbarch_init): Set max_register_raw_size and
7563 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7564 Set extract_return_value and extract_struct_value_address instead
7565 of their deprecated variants.
7566
7567 Convert i386 target to generic dummy frames.
7568 * i386-tdep.c: Include "symfile.h".
7569 (i386_frameless_signal_p): Consider a function to be frameless if
7570 the pc points at the first instruction of the function.
7571 (i386_frame_chain): Handle (generic) call dummies.
7572 (i386_frame_saved_pc): Likewise.
7573 (i386_frame_init_saved_regs): Remove code dealing with call
7574 dummies on the stack.
7575 (i386_push_dummy_frame): Removed.
7576 (i386_call_dummy_words): Removed.
7577 (i386_fix_call_dummy): Removed.
7578 (i386_push_return_address): New function.
7579 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7580 parameter, and don't call get_current_frame.
7581 (i386_pop_frame): New function.
7582 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7583 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7584 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7585 call_dummy_length to 0, set call_dummy_words to NULL, set
7586 sizeof_call_dummy_words to 0, set fix_call_dummy to
7587 generic_fix_call_dummy, set pc_in_call_dummy to
7588 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7589 generic_push_dummy_frame, set push_return_address to
7590 i386_push_return_address and set frame_chain_valid to
7591 generic_file_frame_chain_valid.
7592
7593 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7594
7595 * gdbarch.sh (struct regcache): Add opaque declaration.
7596 (EXTRACT_RETURN_VALUE): New architecture method.
7597 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7598 * gdbarch.h, gdbarch.c: Regenerate.
7599 * arch-utils.c (legacy_extract_return_value): New function.
7600 * arch-utils.h (legacy_extract_return_value): Declare.
7601 * values.c (value_being_returned): Re-enable code handling
7602 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7603 deprecated_grub_regcache_for_registers call to block handling
7604 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7605 (EXTRACT_RETURN_VALUE): Do not define.
7606
7607 2002-07-03 Grace Sainsbury <graces@redhat.com>
7608
7609 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7610 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7611 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7612 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7613 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7614 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7615 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7616 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7617 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7618 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7619 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7620 argument so the function fits the prototype in the architecture
7621 vector.
7622 (mcore_pop_frame): Remove argument so the function fits the
7623 prototype. Use get_current_frame instead of the argument.
7624 (mcore_push_arguments): Change type of struct_return so the
7625 function can be used in the architecture vector.
7626 (mcore_store_struct_return): Add.
7627 (mcore_frame_init_saved_regs): Add.
7628 (mcore_gdbarch_init): Add function calls to replace the macros
7629 removed from tm-mcore.h
7630
7631 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7632
7633 * infcmd.c (print_return_value): Remove compatibility code calling
7634 deprecated_grub_regcache_for_registers.
7635
7636 * values.c: Include "regcache.h".
7637 (value_being_returned): Update. Use
7638 deprecated_grub_regcache_for_registers to extract the register
7639 buffer address.
7640 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7641 ``struct regcache''.
7642 * Makefile.in (values.o): Add dependency on $(regcache_h).
7643
7644 * inferior.h (run_stack_dummy): Change type of second parameter to
7645 a ``struct regcache''.
7646 * valops.c (hand_function_call): Change type of retbuf to ``struct
7647 regcache''. Allocate using regcache_xmalloc, clean using
7648 make_cleanup_regcache_xfree.
7649 * infcmd.c (run_stack_dummy): Update. Use
7650 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7651
7652 * regcache.c (do_regcache_xfree): New function.
7653 (make_cleanup_regcache_xfree): New function.
7654 * regcache.h (make_cleanup_regcache_xfree): Declare.
7655
7656 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7657
7658 * event-top.c (command_line_handler): Don't read past
7659 beginning of buffer.
7660
7661 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7662
7663 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7664 struct frame_id.
7665 (varobj_create): Store frame_id for root.
7666 (varobj_gen_name): Use xasprintf.
7667 (varobj_update): Save and restore frame using get_frame_id() and
7668 frame_find_by_id().
7669 (create_child): Use xasprintf.
7670 (new_root_variable): Initialize frame_id.
7671 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7672 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7673 to prevent memory leak.
7674
7675 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7676
7677 * valops.c (hand_function_call): Move declaration of retbuf to
7678 start of function, allocate using malloc, add a cleanup but before
7679 the inf_status cleanup, cleanup the buffer. Rename local variable
7680 old_chain to inf_status_cleanup.
7681
7682 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7683
7684 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7685
7686 * cli/cli-decode.c (cmd_func_p): New function.
7687 (cmd_func): New function.
7688
7689 * command.h: Add cmd_func() and cmd_func_p().
7690
7691 2002-07-03 Grace Sainsbury <graces@redhat.com>
7692
7693 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7694 (REGISTER_SIZE): Remove.
7695 (MAX_REGISTER_RAW_SIZE): Remove.
7696 (REGISTER_VIRTUAL_TYPE): Remove.
7697 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7698 (REGISTER_NAME): Remove.
7699 (USE_GENERIC_DUMMY_FRAMES): Remove.
7700 (CALL_DUMMY): Remove.
7701 (CALL_DUMMY_START_OFFSET): Remove.
7702 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7703 (CALL_DUMMY_LOCATION): Remove.
7704 (FIX_CALL_DUMMY): Remove.
7705 (CALL_DUMMY_ADDRESS): Remove.
7706 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7707 (SAVE_DUMMY_FRAME_TOS): Remove.
7708 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7709 (mcore_register_virtual_type): New function.
7710 (mcore_register_byte): New function.
7711 (mcore_register_size): New function.
7712 (mcore_register_name): New function.
7713 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7714 macros removed from tm-mcore.h.
7715 (mcore_dump_tdep): Add.
7716 (_initialize_mcore_tdep): Add gdbarch_register call.
7717
7718 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7719
7720 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7721 frameless_look_for_prologue, such that we actually call this
7722 function.
7723
7724 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7725
7726 * frame.h (frame_address_in_block): New function.
7727
7728 * blockframe.c (frame_address_in_block): New function extracted
7729 from get_frame_block().
7730 (get_frame_block): Use frame_address_in_block().
7731 (block_innermost_frame): Use frame_address_in_block() to match
7732 the frame pc address against the block boundaries rather than
7733 the frame pc directly. This prevents a failure when a frame pc
7734 is actually a return-address pointing immediately after the end
7735 of the given block.
7736
7737 2002-07-02 Grace Sainsbury <graces@redhat.com>
7738
7739 * MAINTAINERS: Add self under write after approval.
7740
7741 2002-07-02 Grace Sainsbury <graces@redhat.com>
7742
7743 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7744 used in architecture vector. The default is
7745 m68k_local_breakpoint_from_pc.
7746 (m68k_local_breakpoint_from_pc): Add.
7747 (enum): Add register numbers from tm-m68k.h.
7748 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7749 vector.
7750 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7751 GDB_MULTI_ARCH_PARTIAL.
7752 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7753 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7754 m68k-tdep.c.
7755 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7756 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7757 to enum in m68k-tdep.c
7758
7759 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7760
7761 * solib-osf.c (open_map): Compute the list of shared libraries
7762 loaded by the inferior, rather than the list of libraries loaded
7763 by GDB itself. Otherwise, GDB ends up reading the symbols from
7764 the wrong shared libraries...
7765
7766 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7767
7768 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7769 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7770 macros.
7771 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7772 Remove functions.
7773 (FRAMELESS_SIGNAL): Remove function.
7774 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7775 i386_linux_saved_pc_after_call): Removed.
7776 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7777 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7778 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7779
7780 * i386-tdep.c (i386_frameless_signal_p): New function.
7781 (i386_frame_chain): Deal with frameless signals.
7782 (i386_sigtramp_saved_sp): New function.
7783 (i386_frame_saved_pc): Deal with frameless signals.
7784 (i386_saved_pc_after_call): Make sure the correct value is
7785 returned just after entry into a sigtramp.
7786 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7787 i386fbsd4_sc_sp_offset): New variables.
7788 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7789 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7790 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7791 similiar to what we already did for sc_pc_offset.
7792 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7793 tdep->sc_sp_offset.
7794
7795 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7796
7797 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7798
7799 * config/i386/tm-x86-64linux.h: New.
7800 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7801 definitions.
7802 * config/i386/nm-x86-64.h: Rename to ...
7803 * config/i386/nm-x86-64linux.h: ... this one.
7804 * config/i386/x86-64linux.mh: Reflect the above change.
7805
7806 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7807
7808 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7809 with sigcontext_addr. Add sc_sp_offset.
7810 (i386bsd_sigtramp_saved_pc): Remove prototype.
7811 (i386bsd_sicontext_addr): Add prototype.
7812 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7813 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7814 (i386_svr4_sigtramp_saved_pc): Removed.
7815 (i386_svr4_sigcontext_addr): New function.
7816 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7817 Initialize tdep->sigcontext_addr instead. Initialize
7818 tdep->sc_pc_offset and tdep->sc_sp_offset.
7819 (i386_gdbarch_init): Likewise.
7820 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7821 any more.
7822 (i386bsd_sigtramp_saved_pc): Remove function.
7823 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7824 Initialize tdep->sigcontext_addr instead. Initialize
7825 tdep->sc_pc_offset.
7826 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7827 of tdep->sigtramp_saved_pc.
7828 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7829 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7830 instead.
7831
7832 * i386-tdep.c (i386_frameless_function_invocation,
7833 i386_frame_num_args, i386_frame_init_saved_regs,
7834 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7835 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7836 i386_extract_return_value, i386_store_return_value,
7837 i386_extract_struct_value_address, i386_register_virtual_type,
7838 i386_register_convertible, i386_register_convert_to_virtual,
7839 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7840 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7841 static.
7842
7843 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7844
7845 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7846
7847 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7848 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7849 this macro. Include "value.h".
7850
7851 2002-06-30 Aidan Skinner <aidan@velvet.net>
7852
7853 * ada-exp.tab.c: remove as it's a generated file
7854 * ada-lex.c: remove as it's a generated file
7855
7856 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7857
7858 * config/i386/tm-i386.h (struct frame_info, struct
7859 frame_saved_regs, struct value, struct type): Remove forward
7860 declarations.
7861
7862 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7863 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7864 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7865 (FILL_FPXREGSET): Define.
7866
7867 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7868
7869 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7870 i[3456]86-*-netbsd* case.
7871 * config/i386/tm-obsd.h: Removed.
7872 * config/i386/obsd.mt: Removed.
7873 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7874 core-aout.o.
7875 (MH_CFLAGS): Add -DYYDEBUG=0.
7876
7877 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7878 i386nbsd_sc_pc_offset on OpenBSD too.
7879
7880 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7881 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7882 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7883 define.
7884 * i386bsd-tdep.c: Include "arch-utils.h".
7885 (i386bsd_aout_in_solib_call_trampoline): New function.
7886 (i386bsd_init_abi): Set in_solib_call_trampoline to
7887 i386bsd_aout_in_solib_call_trampoline.
7888 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7889 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7890
7891 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7892
7893 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7894 (struct obstack, struct bcache): Add opaque declarations.
7895 * Makefile.in (macrotab_h): Update
7896
7897 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7898
7899 * blockframe.c (generic_find_dummy_frame): Change return type to
7900 ``struct regcache''.
7901 (struct dummy_frame): Replace field ``registers'' with regcache, a
7902 struct regcache object.
7903 (generic_find_dummy_frame): Update.
7904 (generic_push_dummy_frame): Update. Use regcache_xfree,
7905 regcache_xmalloc and regcache_cpy.
7906 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7907 regcache_xfree.
7908 (deprecated_generic_find_dummy_frame): Update.
7909 (generic_read_register_dummy): Update. Use
7910 regcache_read_as_address.
7911 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7912 (generic_get_saved_register): Update. Use regcache_read.
7913
7914 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7915
7916 * Makefile.in (objfiles_h): Add $(bcache_h).
7917 * objfiles.h: Include "bcache.h".
7918
7919 * Makefile.in (symtab_h): Remove $(bcache_h).
7920 * symtab.h: Do not include "bcache.h".
7921
7922 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7923
7924 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7925 generic_func_frame_chain_valid.
7926
7927 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7928
7929 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7930 * config/i386/tm-fbsd.h: Likewise.
7931
7932 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7933
7934 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7935 generic_unwind_get_saved_register.
7936
7937 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7938
7939 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7940 * regcache.c (supply_register): Add missing argument to
7941 register_buffer call.
7942
7943 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7944
7945 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7946 Solaris /bin/grep does not not like it. From Peter Schauer.
7947
7948 2002-06-26 Tom Tromey <tromey@redhat.com>
7949
7950 * command.h (add_setshow_cmd): Declare.
7951 (add_setshow_cmd_full): Declare.
7952 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7953 returns void. Use add_setshow_cmd_full.
7954 (add_setshow_cmd_full): New function.
7955 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7956 (add_setshow_boolean_cmd): Likewise.
7957
7958 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7959
7960 * config/vax/tm-vax.h: Protect from multiple inclusion.
7961 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7962 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7963 * config/vax/tm-vaxbsd.h: ...here. New file.
7964 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7965
7966 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7967
7968 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7969 (BELIEVE_PCC_PROMOTION): Remove.
7970 (AP_REGNUM): Move to...
7971 * config/vax/nm-vax.h: ...here.
7972 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7973 (vax_breakpoint_from_pc): New function.
7974 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7975 and gdbarch_believe_pcc_promotion.
7976
7977 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7978
7979 * Makefile.in (vax_tdep_h): Define.
7980 (vax-tdep.o): Use $(vax_tdep_h).
7981 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7982 (vax_dump_tdep): New function.
7983 (_initialize_vax_tdep): Register vax_dump_tdep.
7984 * vax-tdep.h: Include osabi.h.
7985 (struct gdbarch_tdep): New.
7986
7987 2002-06-26 Andrew Cagney <cagney@redhat.com>
7988
7989 * frame.h (deprecated_generic_find_dummy_frame): Rename
7990 generic_find_dummy_frame.
7991 * blockframe.c (generic_find_dummy_frame): Make static.
7992 (deprecated_generic_find_dummy_frame): New function.
7993 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7994 generic_find_dummy_frame with deprecated_find_dummy_frame.
7995 (sh64_nofp_frame_init_saved_regs): Ditto.
7996 (sh_fp_frame_init_saved_regs): Ditto.
7997 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7998 (s390_frame_chain): Ditto.
7999 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8000
8001 2002-06-26 Grace Sainsbury <graces@redhat.com>
8002
8003 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8004 gdbarch vector are at the top.
8005 (NUM_REGS): Remove.
8006 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8007 (FRAME_ARGS_ADDRESS): Remove.
8008 (FRAME_LOCALS_ADDRESS): Remove.
8009 (FRAME_NUM_ARGS): Remove.
8010 (FRAME_ARGS_SKIP): Remove.
8011 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8012 (m68k_gdbarch_init): Add gdbarch initializations for macros
8013 undefined in tm-m68k.h
8014
8015 2002-06-26 Grace Sainsbury <graces@redhat.com>
8016
8017 * monitor.h: Add the function regname to monitor_ops
8018 structure. This way NUM_REGS does not have to be a constant.
8019 * monitor.c (monitor_fetch_register): Added support for regname
8020 function. The function is called if the array regnames is NULL.
8021 (monitor_store_register): Same.
8022 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8023 regnames array.
8024 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8025 cpu32bug_cmds.regname to point to new function.
8026 * abug-rom.c (abug_regname): Same as above.
8027 (init_abug_cmds): Same.
8028 * dbug-rom.c (dbug_regname): Same as above.
8029 (init_dbug_cmds): Same.
8030 * remote-est.c (est_regname): Same.
8031 (init_est_cmds): Same.
8032 * rom68k-rom.c (rom68k_regname): Same.
8033 (init_rom68k_cmds): Same.
8034
8035 2002-06-25 Tom Tromey <tromey@redhat.com>
8036
8037 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8038
8039 2002-06-25 Andrew Cagney <cagney@redhat.com>
8040
8041 * infrun.c (stop_registers): Change variable's type to ``struct
8042 regcache'''.
8043 (xmalloc_inferior_status): Delete function.
8044 (free_inferior_status): Delete function.
8045 (normal_stop): Use regcache_cpy.
8046 (struct inferior_status): Change type of fields ``stop_registers''
8047 and ``registers'' to ``struct regcache''.
8048 (write_inferior_status_register): Use regcache_write.
8049 (save_inferior_status): Instead of calling
8050 xmalloc_inferior_status, allocate the inf_status buffer directly.
8051 Use regcache_dup_no_passthrough and regcache_dup to save the
8052 buffers.
8053 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8054 Replace the stop_registers regcache instead of overriding it. Use
8055 regcache_xfree. Instead of calling free_inferior_status, xfree
8056 the buffer directly.
8057 (discard_inferior_status): Use regcache_xfree. Instead of calling
8058 free_inferior_status, xfree the buffer directly.
8059 (build_infrun): Use regcache_xmalloc.
8060 (_initialize_infrun): Delete redundant call to build_infrun.
8061
8062 * Makefile.in (infcmd.o): Add $(regcache_h).
8063
8064 * infcmd.c: Include "regcache.h".
8065 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8066 obtain the address of `stop_registers' register buffer.
8067 (print_return_value): Ditto.
8068
8069 * inferior.h (struct regcache): Add opaque declaration.
8070 (stop_registers): Change variable's declared type to ``struct
8071 regcache''.
8072
8073 2002-06-24 Tom Tromey <tromey@redhat.com>
8074
8075 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8076 * target.c (initialize_targets): Fixed typo in
8077 trust-readonly-sections `show' documentation.
8078
8079 * main.c: Marked all strings with _().
8080
8081 2002-06-24 Don Howard <dhoward@redhat.com>
8082
8083 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8084 that means max CORE_ADDR+1.
8085 (lookup_mem_region): Ditto.
8086 (mem_info_command): Ditto.
8087
8088 2002-06-24 Grace Sainsbury <graces@redhat.com>
8089
8090 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8091 (REGISTER_BYTES_OK): Remove.
8092 (REGISTER_BYTES): Remove.
8093 (STORE_STRUCT_RETURN): Remove.
8094 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8095 (STORE_RETURN_VALUE): Remove.
8096 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8097 (FRAME_CHAIN): Remove.
8098 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8099 (FRAME_SAVED_PC): Remove.
8100 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8101 (m68k_store_struct_return): Add.
8102 (m68k_deprecated_extract_return_value): Add.
8103 (m68k_deprecated_extract_struct_value_address): Add.
8104 (m68k_store_return_value): Add.
8105 (m68k_frame_chain): Add.
8106 (m68k_frameless_function_invocation): Add.
8107 (m68k_frame_saved_pc): Add.
8108 (m68k_gdbarch_init): added set_gdbarch calls for new
8109 functions and deleted macros.
8110
8111 2002-06-23 Tom Tromey <tromey@redhat.com>
8112
8113 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8114 (ALLDEPFILES): Likewise.
8115 (udiheaders): Removed.
8116 (udip2soc.o): Likewise.
8117 (udi2go32.o): Likewise.
8118 (udr.o): Likewise.
8119 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8120
8121 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8122
8123 * infrun.c (_initialize_infrun): Delete unnecessary call to
8124 build_infrun.
8125
8126 * regcache.h: Update comments describing the regcache_cpy family
8127 of functions.
8128 (regcache_save, regcache_restore): Delete declaration.
8129 (regcache_save_no_passthrough): Delete declaration.
8130 (regcache_restore_no_passthrough): Delete declaration.
8131 * regcache.c (regcache_save): Delete function.
8132 (regcache_save_no_passthrough): Delete function.
8133 (regcache_restore): Delete function.
8134 (regcache_restore_no_passthrough): Delete function.
8135
8136 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8137
8138 * config/m68k/tm-m68k.h: Fix typo.
8139 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8140 (m68k_frame_init_saved_regs): Declare.
8141
8142 2002-06-21 Jim Blandy <jimb@redhat.com>
8143
8144 Remove some vestiges of Harris 88k support.
8145 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8146 register numbering quirk.
8147 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8148 odd symbols occurring in Harris 88k ELF targets.
8149
8150 2002-06-21 Tom Tromey <tromey@redhat.com>
8151
8152 * gdb_locale.h: New file.
8153 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8154 (defs_h): Added gdb_locale.h.
8155 * configure, config.in: Rebuilt.
8156 * configure.in (PACKAGE): Define.
8157 * defs.h: Include gdb_locale.h.
8158 * main.c (captured_main): Call setlocale, bindtextdomain,
8159 textdomain.
8160
8161 2002-06-21 Dave Brolley <brolley@redhat.com>
8162
8163 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8164 * config/frv/frv.mt: New file.
8165 * config/frv/tm-frv.h: New file.
8166 * configure.tgt: Support frv-*-*.
8167 * Makefile.in (frv-tdep.o): New target.
8168 * frv-tdep.c: New file.
8169 * NEWS: Mention frv.
8170
8171 2002-06-21 Dave Brolley <brolley@redhat.com>
8172
8173 * MAINTAINERS: Add self to "Write After Approval" list.
8174
8175 2002-06-21 Grace Sainsbury <graces@redhat.com>
8176
8177 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8178 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8179 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8180 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8181 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8182
8183 * m68k-tdep.c: Include arch-utils.h
8184 (m68k_register_raw_size): Add.
8185 (m68k_register_virtual_size): Add.
8186 (m68k_register_virtual_type): Add.
8187 (m68k_register_name): Add.
8188 (m68k_stack_align): Add.
8189 (m68k_register_byte): Add.
8190 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8191 tm-m68k.h.
8192
8193 2002-06-21 Grace Sainsbury <graces@redhat.com>
8194
8195 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8196 m68k_find_saved_regs.
8197 (m68k_pop_frame): Removed saved_regs structure, and replaced
8198 references to it with frame->saved_regs.
8199 (m68k_gdbarch_init): Added function calls to initialize the
8200 gdbarch structure.
8201 (m68k_fix_call_dummy): Add.
8202 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8203 (CALL_DUMMY): Remove.
8204 (CALL_DUMMY_LENGTH): Remove.
8205 (CALL_DUMMY_START_OFFSET): Remove.
8206 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8207 (FIX_CALL_DUMMY): Remove.
8208 (PUSH_DUMMY_FRAME): Remove.
8209 (POP_FRAME): Remove.
8210
8211 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8212
8213 * parse.c (parse_fprintf): New function used to avoid calls to
8214 fprintf in bison parser generated debug code.
8215 * parser-defs.h: Declaration of new parse_fprintf function.
8216 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8217 Set YYDEBUG to 1 by default.
8218 Set YYFPRINTF as parse_fprintf.
8219
8220 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8221
8222 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8223 encoding anymore.
8224 (pointer_encoding, enum ptr_encoding): New.
8225 (execute_cfa_program): Take care about pointer encoding.
8226 (dwarf2_build_frame_info): Only call parse_frame_info for
8227 .debug_frame and .eh_frame.
8228 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8229 fixed augmentation handling, added relative addressing,
8230 ignore duplicate FDEs. Added comments.
8231 * dwarf2cfi.c: Reindented.
8232
8233 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8234
8235 * event-top.c (command_handler): Don't use space_at_cmd_start
8236 unless there is sbrk() on the host. Assign time and space data
8237 to union fields of the appropriate length.
8238
8239 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8240
8241 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8242 x86_64_register_name. Return type changed to 'const char *'.
8243 (x86_64_register_name2nr): Rename to x86_64_register_number.
8244 (x86_64_gdbarch_init): Update to reflect the change.
8245 * x86-64-tdep.h: Ditto.
8246 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8247 (supply_fpregset): Ditto.
8248
8249 2002-06-19 Andrew Cagney <cagney@redhat.com>
8250
8251 * regcache.h: Update copyright.
8252 (struct regcache, struct gdbarch): Add opaque declarations.
8253 (current_regcache): Declare global variable.
8254 (regcache_read, regcache_write): Add gdbarch parameter.
8255 (regcache_save, regcache_save_no_passthrough)
8256 (regcache_restore, regcache_restore_no_passthrough)
8257 (regcache_dup, regcache_dup_no_passthrough)
8258 (regcache_cpy, regcache_cpy_no_passthrough)
8259 (deprecated_grub_regcache_for_registers)
8260 (deprecated_grub_regcache_for_register_valid)
8261 (regcache_valid_p): Add function declarations.
8262
8263 * regcache.c: Update copyright.
8264 (regcache_descr_handle): New global variable.
8265 (struct regcache_descr): Define.
8266 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8267 (regcache_descr, xfree_regcache_descr): New functions.
8268 (struct regcache): Define.
8269 (regcache_xmalloc, regcache_xfree): New functions.
8270 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8271 (regcache_dup, regcache_dup_no_passthrough): New functions.
8272 (regcache_valid_p, regcache_read_as_address): New functions.
8273 (deprecated_grub_regcache_for_registers): New function.
8274 (deprecated_grub_regcache_for_register_valid): New function.
8275 (current_regcache): New global variable.
8276 (register_buffer): Add regcache parameter. Update calls.
8277 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8278 (read_register_gen, write_register_gen): Update register_buffer
8279 call. Test for legacy_p instead of gdbarch_register_read_p or
8280 gdbarch_register_write_p.
8281 (regcache_collect): Update register_buffer call.
8282 (build_regcache): Rewrite. Use deprecated grub functions.
8283 (regcache_save, regcache_save_no_passthrough): New functions.
8284 (regcache_restore, regcache_restore_no_passthrough): New
8285 functions.
8286 (_initialize_regcache): Create the regcache_data_handle. Swap
8287 current_regcache global variable.
8288
8289 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8290 parameter to regcache_read and regcache_write calls.
8291 (sh4_register_read): Ditto.
8292 (sh64_pseudo_register_read): Ditto.
8293 (sh64_register_read): Ditto.
8294 (sh_pseudo_register_write): Ditto.
8295 (sh4_register_write): Ditto.
8296 (sh64_pseudo_register_write): Ditto.
8297 (sh64_register_write): Ditto.
8298
8299 * defs.h (XCALLOC): Define.
8300
8301 2002-06-19 Grace Sainsbury <graces@redhat.com>
8302
8303 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8304 * m68k-tdep.c (m68k_gdbarch_init): Added.
8305 (m68k_dump_tdep): Added.
8306
8307 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8308
8309 * ada-lang.c (fill_in_ada_prototype): Update comment.
8310
8311 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8312
8313 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8314 MIPS_ABI_LAST.
8315 (mips_abi_string, mips_abi_strings): New.
8316 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8317 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8318 tdep->mips_abi_string. Honor mips_abi_string. Default to
8319 O32 if no ABI is found.
8320 (mips_dump_tdep): Use mips_abi_strings.
8321 (mips_abi_update): New function.
8322 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8323 ``set mips abi'' and ``show mips abi''. Check the size of
8324 mips_abi_strings.
8325
8326 2002-06-19 Andrew Cagney <cagney@redhat.com>
8327
8328 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8329 constant.
8330
8331 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8332
8333 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8334 current frame using only the first stack size adjustment. All
8335 subsequent size adjustments are not considered to be part of
8336 the "static" part of the current frame.
8337 Compute the address of the saved registers relative to the
8338 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8339 in use in this frame.
8340
8341 2002-06-18 Don Howard <dhoward@redhat.com>
8342
8343 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8344 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8345 suggesting this solution.
8346
8347 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8348
8349 * config/romp/xm-rtbsd.h: Delete file.
8350 * config/romp/rtbsd.mh: Delete file.
8351
8352 2002-06-18 Keith Seitz <keiths@redhat.com>
8353
8354 * breakpoint.c (condition_command): Post breakpoint_modify
8355 when a condition is added to an existing breakpoint.
8356 (commands_command): Likewise for commands.
8357 (set_ignore_count): Likewise for ignore counts.
8358 If no tty, do not simply return, still need to send event
8359 notification.
8360 (ignore_command): Only print a newline if the command came
8361 from a tty.
8362 Don't call breakpoints_changed, since this is now properly
8363 handled by set_ignore_count.
8364
8365 2002-06-18 Andrew Cagney <cagney@redhat.com>
8366
8367 * MAINTAINERS: Note that cris-elf target can be compiled with
8368 -Werror.
8369 * cris-tdep.c (cris_register_name): Make return type constant.
8370 (cris_breakpoint_from_pc): Ditto.
8371
8372 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8373
8374 * frame.h (struct frame_info): Change type of context to
8375 'struct context'.
8376
8377 2002-06-17 Andrew Cagney <cagney@redhat.com>
8378
8379 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8380 pointer.
8381 * gdbarch.h, gdbarch.c: Regenerate.
8382 * config/mips/tm-mips.h (mips_register_name): Update.
8383 * i386-tdep.h (i386_register_name): Update.
8384 * mips-tdep.c (mips_register_name): Update
8385 * alpha-tdep.c (alpha_register_name): Update.
8386 * arch-utils.c (legacy_register_name): Update.
8387 * arch-utils.h (legacy_register_name): Update.
8388 * avr-tdep.c (avr_register_name): Update.
8389 * ia64-tdep.c (ia64_register_name): Update.
8390 * i386-tdep.c (i386_register_name): Update.
8391 * sparc-tdep.c (sparc32_register_name): Update.
8392 (sparc64_register_name): Update.
8393 (sparclite_register_name): Update.
8394 (sparclet_register_name): Update.
8395 * sh-tdep.c (sh_generic_register_name): Update.
8396 (sh_sh_register_name): Update.
8397 (sh_sh3_register_name): Update.
8398 (sh_sh3e_register_name): Update.
8399 (sh_sh_dsp_register_name): Update.
8400 (sh_sh3_dsp_register_name): Update.
8401 (sh_sh4_register_name): Update.
8402 (sh_sh64_register_name): Update.
8403 * s390-tdep.c (s390_register_name): Update.
8404 * rs6000-tdep.c (rs6000_register_name): Update.
8405 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8406 (ns32k_register_name_32382): Update.
8407 * d10v-tdep.c (d10v_ts2_register_name): Update.
8408 (d10v_ts3_register_name): Update.
8409 * xstormy16-tdep.c (xstormy16_register_name): Update.
8410 * vax-tdep.c (vax_register_name): Update.
8411 * v850-tdep.c (v850_register_name): Update.
8412 * m68hc11-tdep.c (m68hc11_register_name): Update.
8413 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8414 (am33_register_name): Update.
8415
8416 2002-06-17 Grace Sainsbury <graces@redhat.com>
8417
8418 * m68k-tdep.c: Reindented.
8419
8420 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8421
8422 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8423 list of predefined types.
8424
8425 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8426
8427 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8428 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8429 REGISTER_CONVERT_TO_RAW): Remove defines.
8430 (i386_register_virtual_type, i386_register_convertible,
8431 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8432 Remove prototypes.
8433 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8434 macros mentioned above.
8435
8436 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8437 (i386lynx_saved_pc_after_call): Remove prototype.
8438 * i386ly-tdep.c: Include "i386-tdep.h".
8439 (i386lynx_saved_pc_after_call): Make static. Use
8440 read_memory_nobpt instead of read_memory. Use
8441 read_memory_unsigned_integer instead of read_memory_integer.
8442 (i386lynx_init_abi): New function.
8443 (i386lynx_coff_osabi_sniffer): New function.
8444 (_initialize_i386bsd_tdep): New function.
8445
8446 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8447 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8448 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8449 (i386_fix_call_dummy): Remove prototype.
8450 * i386-tdep.c (i386_call_dummy_words): New variable.
8451 (i386_gdbarch_init): Adjust for removal of the
8452 macros mentioned above.
8453
8454 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8455
8456 * command.h (add_setshow_auto_boolean_cmd): Replace
8457 add_set_auto_boolean_cmd.
8458 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8459 add_set_auto_boolean_cmd.
8460 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8461 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8462 mask-address'' command.
8463 (show_mask_address): Add cmd parameter.
8464 * remote.c (add_packet_config_cmd): Update. Change type of
8465 set_func and show_func to cmd_sfunc_ftype.
8466 (_initialize_remote): Update `set remote Z-packet'
8467 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8468 (show_remote_protocol_e_packet_cmd): Ditto.
8469 (show_remote_protocol_E_packet_cmd): Ditto.
8470 (show_remote_protocol_P_packet_cmd): Ditto.
8471 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8472 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8473 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8474 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8475 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8476 (show_remote_protocol_Z_packet_cmd): Ditto.
8477 (show_remote_protocol_binary_download_cmd): Ditto.
8478 (show_remote_cmd): Pass NULL to all of above.
8479
8480 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8481
8482 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8483 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8484 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8485 POP_FRAME): Remove defines.
8486 (i386_push_arguments, i386_store_struct_return,
8487 i386_extract_return_value, i386_store_return_value,
8488 i386_extract_struct_value_address, i386_push_dummy_frame,
8489 i386_pop_frame): Renove prototypes.
8490 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8491 macros mentioned above.
8492
8493 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8494
8495 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8496 add_set_boolean_cmd.
8497 (add_setshow_cmd): New function.
8498 * command.h (add_setshow_boolean_cmd): Replace
8499 add_set_boolean_cmd.
8500 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8501 and ``set rdiromatzero''.
8502 * maint.c (_initialize_maint_cmds): Update commented out code.
8503 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8504 * target.c (initialize_targets): Update `set
8505 trust-readonly-sections'.
8506 * remote.c (_initialize_remote): Update `set remotebreak'.
8507
8508 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8509
8510 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8511 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8512 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8513 fit into multi-arch framework.
8514 (i386_breakpoint_from_pc): New function.
8515 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8516 above.
8517
8518 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8519 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8520 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8521 (i386_frameless_function_invocation, i386_frame_num_args,
8522 i386_frame_init_saved_regs): Remove prototypes.
8523 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8524 macros mentioned above.
8525
8526 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8527
8528 * cli/cli-decode.c (set_cmd_cfunc): Update.
8529 (set_cmd_sfunc): Update.
8530 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8531 (set_cmd_sfunc, set_cmd_cfunc): Update.
8532 * cli/cli-decode.h: Update.
8533
8534 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8535
8536 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8537 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8538
8539 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8540
8541 * defs.h (auto_boolean): Declare enum.
8542 * command.h (cmd_auto_boolean): Delete enum.
8543 * mips-tdep.c (mask_address_var): Update.
8544 (mips_mask_address_p): Update.
8545 (show_mask_address): Update.
8546 * remote.c (struct packet_config): Update.
8547 (update_packet_config): Update.
8548 (show_packet_config_cmd): Update.
8549 (packet_ok): Update.
8550 (add_packet_config_cmd): Update.
8551 (_initialize_remote):
8552 * command.h: Update.
8553 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8554 (do_setshow_command): Update.
8555 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8556 * cli/cli-decode.h: Update.
8557
8558 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8559
8560 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8561 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8562 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8563 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8564 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8565 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8566
8567 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8568 list of DJGPP COFF targets.
8569
8570 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8571 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8572 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8573 (FP0_REGNUM): Remove define.
8574 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8575 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8576 (i386_register_virtual_size): Remove protoype.
8577 * i386-tdep.c (i386_register_virtual_size): Removed.
8578 (i386_extract_return_value, i386_store_return_value): Use
8579 FP0_REGNUM instead of NUM_FREGS to determine whether the
8580 floating-point registers are available.
8581 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8582 Adjust for removal of macros mentioned above.
8583
8584 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8585
8586 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8587 comments.
8588 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8589 Remove prototypes.
8590 (supply_gregset, fill_gregset): Remove use of register keyword and
8591 remove declaration for regmap. Use I386_NUM_GREGS instead of
8592 NUM_REGS and NUM_FREGS.
8593 (FPREGSET_FSAVE_OFFSET): Remove.
8594 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8595 NUM_FREGS to determine whether the floating-point registers are
8596 available.
8597
8598 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8599 gnu_store_registers): Replace usage of NUM_GREGS with
8600 I386_NUM_GREGS.
8601
8602 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8603 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8604 usage of NUM_GREGS with I386_NUM_GREGS.
8605
8606 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8607
8608 * i386bsd-nat.c: Include "i386-tdep.h".
8609 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8610 I386_NUM_GREGS.
8611
8612 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8613 and associated comment. They no longer make any sense, since we
8614 don't use this file anymore on Linux.
8615
8616 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8617 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8618 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8619 elements in these arrays.
8620 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8621 MAX_NUM_REGS.
8622
8623 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8624
8625 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8626 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8627
8628 2002-06-14 Andrew Cagney <cagney@redhat.com>
8629
8630 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8631 EXTRACT_RETURN_VALUE.
8632 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8633 EXTRACT_STRUCT_VALUE_ADDRESS.
8634 * gdbarch.h, gdbarch.c: Regenerate.
8635
8636 * values.c (value_being_returned): Handle
8637 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8638 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8639
8640 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8641 * arm-tdep.c (arm_gdbarch_init): Update.
8642 * avr-tdep.c (avr_gdbarch_init): Update.
8643 * cris-tdep.c (cris_gdbarch_init): Update.
8644 * d10v-tdep.c (d10v_gdbarch_init): Update.
8645 * ia64-tdep.c (ia64_gdbarch_init): Update.
8646 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8647 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8648 * s390-tdep.c (s390_gdbarch_init): Update.
8649 * sh-tdep.c (sh_gdbarch_init): Update.
8650 * s390-tdep.c (s390_gdbarch_init): Update.
8651 * sparc-tdep.c (sparc_gdbarch_init): Update.
8652 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8653 * v850-tdep.c (v850_gdbarch_init): Update.
8654 * vax-tdep.c (vax_gdbarch_init): Update.
8655 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8656 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8657
8658 * config/arc/tm-arc.h: Update.
8659 * config/d30v/tm-d30v.h: Update.
8660 * config/fr30/tm-fr30.h: Update.
8661 * config/h8300/tm-h8300.h: Update.
8662 * config/h8500/tm-h8500.h: Update.
8663 * config/i386/tm-i386.h: Update.
8664 * config/i386/tm-ptx.h: Update.
8665 * config/i386/tm-symmetry.h: Update.
8666 * config/i960/tm-i960.h: Update.
8667 * config/m32r/tm-m32r.h: Update.
8668 * config/m68k/tm-delta68.h: Update.
8669 * config/m68k/tm-linux.h: Update.
8670 * config/m68k/tm-m68k.h: Update.
8671 * config/m88k/tm-m88k.h: Update.
8672 * config/mcore/tm-mcore.h: Update.
8673 * config/mips/tm-mips.h: Update.
8674 * config/mn10200/tm-mn10200.h: Update.
8675 * config/pa/tm-hppa.h: Update.
8676 * config/pa/tm-hppa64.h: Update.
8677 * config/sparc/tm-sp64.h: Update.
8678 * config/sparc/tm-sparc.h: Update.
8679 * config/sparc/tm-sparclet.h: Update.
8680 * config/z8k/tm-z8k.h: Update.
8681
8682 2002-06-14 Andrew Cagney <cagney@redhat.com>
8683
8684 * Makefile.in (i386_linux_tdep_h): Define.
8685 (i386_tdep_h, i387_tdep_h): Define.
8686 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8687 $(i386_tdep_h) and $(i387_tdep_h).
8688 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8689
8690 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8691
8692 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8693 Already covered by the default.
8694
8695 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8696 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8697 (i386_gdbarch_init): Initialize long_double_format and long_double
8698 bit.
8699
8700 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8701 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8702 Move these to ...
8703 * config/i386/i386sol2.mh: ... here.
8704 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8705 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8706 (SIGCONTEXT_PC_OFFSET): Remove define.
8707 (IN_SIGTRAMP): Remove define.
8708 * i386-sol2-tdep.c: New file.
8709
8710 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8711 * config/i386/tm-i386nw.h: Removed.
8712
8713 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8714 USE_STRUCT_CONVENTION): Remove defines.
8715 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8716 (get_longjmp_target): Remove prototype.
8717 (IN_SIGTRAMP): Remove define.
8718 (i386bsd_in_sigtramp): Remove prototype.
8719 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8720 function. Update comment accordingly
8721 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8722 (FRAME_SAVED_PC): Remove define.
8723 (i386bsd_frame_saved_pc): Remove prototype.
8724 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8725 GET_LONGJMP_TARGET): Remove defines.
8726 (get_longjmp_target): Remove prototype.
8727 (IN_SIGTRAMP): Remove define.
8728 (i386bsd_in_sigtramp): Remove prototype.
8729 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8730 function. Update comment accordingly
8731 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8732 (FRAME_SAVED_PC): Remove define.
8733 (i386bsd_frame_saved_pc): Remove prototype.
8734 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8735 Remove prototype.
8736 (USE_STRUCT_CONVENTION): Remove prototype.
8737 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8738 declaration.
8739 (_initialize_i386bsd_nat): Revise logic to determine some
8740 constants at compile time when compiling a native GDB. Warn if
8741 things don't match up with what we expect.
8742 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8743 Remove variables.
8744 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8745 to use date stored in `struct gdbarch_tdep'.
8746 (i386bsd_sigcontext_offset): Remove varaible.
8747 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8748 stored in `struct gdbarch_tdep'.
8749 (i386bsd_frame_saved_pc): Make static.
8750 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8751 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8752 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8753 i386fbsd4_sc_pc_offset): New variables.
8754 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8755 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8756 functions.
8757 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8758 functions.
8759 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8760 Modify the value of i386fbsd_sigtramp_start and
8761 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8762 i386fbsd_sigtramp_end.
8763 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8764 function.
8765
8766 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8767 define to i386-linux-tdep.h.
8768 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8769 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8770 defines.
8771 (i386_linux_register_name, i386_linux_register_byte,
8772 i386_linux_register_raw_size): Remove prototypes.
8773 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8774 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8775 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8776 TARGET_WRITE_PC): Remove defines.
8777 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8778 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8779 i386_linux_write_pc): Remove prototypes.
8780 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8781 (get_longjmp_target): Remove prototype.
8782 * i386-linux-tdep.h: New file.
8783 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8784 * i386-linux-tdep.c: Include "i386-tdep.h" and
8785 "i386-linux-tdep.h".
8786 (i386_linux_register_name, i386_linux_register_byte,
8787 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8788 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8789 Make static.
8790 (i386_linux_init_abi): New function.
8791 (_initialize_i386_linux_tdep): New function.
8792
8793 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8794 (i386_saved_pc_after_call): Remove prototype.
8795 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8796 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8797 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8798 (i386_register_name, i386_stab_reg_to_regnum,
8799 i386_dwarf_reg_to_regnum): Remove prototypes.
8800 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8801 SIZEOF_SSE_REGS): Remove defines.
8802 (REGISTER_BYTES): Remove define.
8803 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8804 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8805 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8806 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8807 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8808 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8809 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8810 (get_longjmp_target): Remove prototype.
8811 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8812 (sigtramp_saved_pc): Remove define.
8813 (i386v4_sigtramp_saved_pc): Remove prototype.
8814 * config/i386/tm-go32.h (FRAME_CHAIN,
8815 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8816 (i386go32_frame_saved_pc): Remove prototype.
8817 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8818 (get_longjmp_target): Remove prototype.
8819 * i386-tdep.h: Include "osabi.h".
8820 (enum i386_abi): Removed.
8821 (enum struct_return): New enum.
8822 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8823 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8824 sc_pc_offset members.
8825 (i386_gdbarch_register_os_abi): Remove prototype.
8826 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8827 I386_SSE_NUM_REGS): New defines.
8828 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8829 I386_SSE_SIZEOF_REGS): New defines.
8830 (i386_register_name, i386_register_byte, i386_register_raw_size):
8831 New prototypes.
8832 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8833 (i386bsd_sigtramp_saved_pc): New prototype.
8834 * i386-tdep.c: Don't include "elf-bfd.h".
8835 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8836 i386_frame_chain, i386_saved_pc_after_call): Make static.
8837 (i386_frame_saved_pc): Rewrite to call architecture dependent
8838 function to deal with signal handlers. Make static.
8839 (i386go32_frame_saved_pc): Removed.
8840 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8841 Removed.
8842 (i386_get_longjmp_target): New function.
8843 (default_struct_convention, pcc_struct_convention,
8844 reg_struct_convention, valid_conventions, struct_convention): New
8845 variables.
8846 (i386_use_struct_convention): New function.
8847 (i386v4_sigtramp_saved_pc): Renamed to
8848 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8849 (i386_pc_in_sigtramp): New function.
8850 (i386_abi_names): Removed.
8851 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8852 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8853 Removed.
8854 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8855 i386_gdbarch_register_os_abi): Removed.
8856 (struct i386_abi_handler): Removed.
8857 (i386_abi_handler_list): Removed.
8858 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8859 functions.
8860 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8861 i386_nw_init_abi): New functions.
8862 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8863 Use set_gdbarch_xxx() calls instead of relying on macros for a
8864 number of calls.
8865 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8866 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8867 Register the various architecture variants defined in this file.
8868
8869 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8870
8871 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8872 (struct main_type): Remove arg_types member. Update comments for
8873 struct field.
8874 (TYPE_ARG_TYPES): Remove.
8875 (TYPE_FN_FIELD_ARGS): Update.
8876 (smash_to_method_type): Update prototype.
8877
8878 * c-typeprint.c (cp_type_print_method_args): Take method type
8879 instead of argument list. Use new argument layout. Simplify.
8880 (c_type_print_args): Use new argument layout. Simplify.
8881 (c_type_print_base): Update call to cp_type_print_method_args.
8882 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8883 argument; use die->type instead. Update call to
8884 smash_to_method_type.
8885 (read_structure_scope): Update call to dwarf2_add_member_fn.
8886 * gdbtypes.c (allocate_stub_method): Update comment.
8887 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8888 Use new argument layout.
8889 (check_stub_method): Use new argument layout. Don't count
8890 void as an argument.
8891 (print_arg_types): Update comments. Use new argument layout.
8892 (recursive_dump_type): Don't print arg_types member.
8893 * hpread.c (hpread_read_struct_type): Use new argument layout.
8894 (fixup_class_method_type): Likewise.
8895 (hpread_type_lookup): Likewise.
8896 * stabsread.c (read_type): Update calls to read_args and
8897 smash_to_method_type.
8898 (read_args): Use new argument layout. Simplify.
8899 * valops.c (typecmp): Use new argument layout. Update parameters
8900 and comments. Simplify.
8901 (hand_function_call): Use new argument layout.
8902 (search_struct_method): Update call to typecmp.
8903 (find_overload_match): Use new argument layout.
8904
8905 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8906
8907 * NEWS: Mention multithreaded debug support for gdbserver.
8908
8909 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8910
8911 * MAINTAINERS: Mention NEWS.
8912
8913 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8914
8915 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8916 (struct mips_objfile_private, compare_pdr_entries): New.
8917 (non_heuristic_proc_desc): Read the ".pdr" section if it
8918 is present.
8919
8920 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8921
8922 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8923 (arm_debug): New static variable.
8924 (_initialize_arm_tdep): Add ``set debug arm'' command.
8925
8926 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8927
8928 * Makefile.in (sim_arm_h): Define.
8929 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8930 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8931 (arm_register_sim_regno): New function, map an internal REGNUM
8932 onto a simulator register number.
8933 (arm_gdbarch_init): Set register_sim_regno.
8934
8935 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8936
8937 * MAINTAINERS: Add self.
8938
8939 2002-06-11 Jim Blandy <jimb@redhat.com>
8940
8941 * source.c (source_info): Mention whether the symtab has
8942 information about preprocessor macros.
8943
8944 Call the command `info macro', not `show macro'.
8945 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8946 Fix error message.
8947 (_initialize_macrocmd): Register `info_macro_command' in
8948 `infolist', not `showlist'.
8949
8950 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8951
8952 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8953 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8954 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8955 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8956 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8957 unconditionally.
8958 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8959 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8960 (_initialize_mips_tdep): Remove dead code.
8961 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8962 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8963 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8964 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8965 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8966 MIPS_LAST_FP_ARG_REGNUM): Remove.
8967
8968 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8969
8970 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8971 (unwind_tmp_obstack_free, parse_frame_info)
8972 (update_context, cfi_read_fp, cfi_write_fp)
8973 (cfi_frame_chain, cfi_init_extra_frame_info)
8974 (cfi_virtual_frame_pointer): Use the above function.
8975 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8976
8977 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8978
8979 * v850-tdep.c (v850_type_is_scalar): New function.
8980 (v850_use_struct_convention): Match current gcc implementation
8981 as close as possible.
8982 (v850_push_arguments): Fix stack_offset handling. Don't write
8983 struct_addr into register. This is done by v850_store_struct_return.
8984 (v850_extract_return_value): Care for structs.
8985 (v850_store_return_value): Ditto.
8986 (v850_store_struct_return): Actually write address.
8987
8988 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8989
8990 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8991 without debug information too.
8992
8993 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8994
8995 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8996 Make multi-arch pure.
8997 * gdbarch.h, gdbarch.c: Re-generate.
8998 * arm-tdep.c (arm_print_float_info): Update.
8999 * arch-utils.h (default_print_float_info): Update.
9000 * arch-utils.c (default_print_float_info): Update.
9001 * infcmd.c (float_info): Update call.
9002
9003 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9004
9005 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9006 the front of the initialize list.
9007
9008 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9009
9010 * infrun.c (struct inferior_status): Replace fields
9011 selected_frame_address and selected_level with field
9012 selected_frame_id.
9013 (save_inferior_status): Update. Use get_frame_id.
9014 (struct restore_selected_frame_args): Delete.
9015 (restore_selected_frame): Update. Use frame_find_by_id.
9016 (restore_inferior_status): Update.
9017
9018 * breakpoint.h (struct breakpoint): Change type of
9019 watchpoint_frame to frame_id.
9020 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9021 call to get_current_frame.
9022 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9023 get_current_frame.
9024 (watchpoint_check): Use frame_find_by_id.
9025
9026 * frame.h (record_selected_frame): Delete declaration.
9027 * stack.c (record_selected_frame): Delete function.
9028
9029 * frame.h (struct frame_id): Define.
9030 (get_frame_id): Declare.
9031 (frame_find_by_id): Declare.
9032 * frame.c (frame_find_by_id): New function.
9033 (get_frame_id): New function.
9034
9035 2002-06-10 Andrey Volkov <avolkov@transas.com>
9036
9037 * ser-e7kpc.c: Fix duplicated define and call of
9038 _initialize_ser_e7000pc
9039
9040 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9041
9042 * signals/signals.c (target_signal_from_host): Fix #ifdef
9043 SIGRTMIN case.
9044 (do_target_signal_to_host): Likewise.
9045
9046 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9047
9048 * mips-tdep.c (mips_find_abi_section): New function.
9049 (mips_gdbarch_init): Call it.
9050
9051 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9052
9053 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9054 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9055 after Andrew's 2002-06-08 gdbarch change.
9056
9057 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9058
9059 * i386-linux-nat.c (suppy_gregset): Don't supply
9060 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9061 register cache.
9062 (fill_gregset): Don't fetch it under the same circumstances.
9063
9064 2002-06-09 Andrew Cagney <cagney@redhat.com>
9065
9066 * Makefile.in (callback_h): Define.
9067 (remote_sim_h): Update path to remote-sim.h.
9068 (remote-rdp.o): Add $(callback_h).
9069 (remote-sim.o): Use $(callback_h).
9070 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9071 * remote-rdp.c: Include "gdb/callback.h".
9072
9073 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9074
9075 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9076 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9077
9078 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9079
9080 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9081 * rdi-share/serpardr.c: Ditto.
9082 * rdi-share/unixcomm.c: Ditto.
9083 * rdi-share/serdrv.c: Ditto.
9084 * rdi-share/hostchan.h: Ditto.
9085 * rdi-share/hostchan.c: Ditto.
9086 * rdi-share/host.h: Ditto.
9087 * rdi-share/devsw.c: Ditto.
9088
9089 * objfiles.h: Change type of obj_private to void pointer.
9090 * pa64solib.c: Update copyright. Don't include "assert.h", use
9091 strcmp instead of STREQ, use LONGEST, do not use PTR
9092 * somsolib.c: Ditto.
9093
9094 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9095 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9096 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9097
9098 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9099
9100 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9101 (default_get_saved_register): Delete function.
9102 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9103 generic_unwind_get_saved_register.
9104 * gdbarch.h, gdbarch.c: Re-generate.
9105
9106 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9107
9108 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9109 generic_func_frame_chain_valid.
9110 * gdbarch.h, gdbarch.c: Re-generate.
9111 * blockframe.c (generic_func_frame_chain_valid): Only check
9112 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9113 passing FP to PC_IN_CALL_DUMMY.
9114 Fix PR gdb/360.
9115
9116 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9117
9118 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9119 (register_gdbarch_data): Initialize init_p.
9120 (gdbarch_data): Initialize data pointer using the init function.
9121 (init_gdbarch_data): Delete function.
9122 (gdbarch_update_p): Update.
9123 (initialize_non_multiarch): Update.
9124 (struct gdbarch): Add field initialized_p.
9125 * gdbarch.h, gdbarch.c: Re-generate.
9126
9127 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9128
9129 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9130 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9131 better do the things actually here.
9132 * x86-64-tdep.c (x86_64_register_name2nr): New.
9133 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9134 (x86_64_gdbarch_init): Respect the above change.
9135 * x86-64-tdep.h (x86_64_register_name2nr)
9136 (x86_64_register_nr2name): Add prototypes.
9137 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9138
9139 2002-06-06 Michael Snyder <msnyder@redhat.com>
9140
9141 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9142 Delete extra braces and re-indent.
9143 (d10v_store_return_value): Char return values
9144 must be shifted over by one byte in R0.
9145 (d10v_extract_return_value): Delete extra braces, re-indent.
9146
9147 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9148
9149 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9150 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9151 (d10v_integer_to_address): Rewrite.
9152 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9153 the d10v specific functions which take care of converting to the
9154 correct space.
9155
9156 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9157
9158 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9159 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9160
9161 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9162
9163 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9164 includes.
9165 * config/tm-linux.h: Ditto.
9166 * config/alpha/tm-alphalinux.h: Ditto.
9167 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9168 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9169 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9170 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9171 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9172 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9173 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9174 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9175 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9176 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9177 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9178 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9179 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9180 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9181 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9182 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9183 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9184 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9185 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9186 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9187 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9188 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9189 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9190 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9191 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9192 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9193 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9194 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9195 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9196 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9197 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9198 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9199 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9200 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9201 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9202 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9203 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9204
9205 2002-05-04 Aidan Skinner <aidan@velvet.net>
9206
9207 * ada-exp.tab.c: New file
9208 * ada-exp.y: New file
9209 * ada-lang.c: New file
9210 * ada-lang.h: New file
9211 * ada-lex.c: New file
9212 * ada-lex.l: New file
9213 * ada-tasks.c: New file
9214 * ada-typeprint.c: New file
9215 * ada-valprint.c: New file
9216
9217 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9218
9219 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9220 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9221
9222 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9223
9224 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9225 insetead of ppc-linux-tdep.o.
9226 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9227 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9228
9229 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9230
9231 2002-05-07 Christian Groessler <chris@groessler.org>
9232 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9233 bit register contents for little endian hosts.
9234
9235 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9236
9237 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9238 any maintainer.
9239
9240 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9241
9242 * gdbarch.h: Regenerate.
9243
9244 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9245
9246 * MAINTAINERS: Add everyone to write-after-approval list.
9247
9248 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9249
9250 * stack.c (frame_info): Use frame_register_unwind instead of
9251 saved_regs. Mention when the SP is on the stack or in a register.
9252
9253 * frame.h (frame_register_unwind_ftype): Define. Document.
9254 (struct frame_info): Add field register_unwind and
9255 register_unwind_cache.
9256 (frame_register_unwind): Declare.
9257 (generic_unwind_get_saved_register): Declare.
9258
9259 * frame.c (frame_register_unwind): New function.
9260 (generic_unwind_get_saved_register): New function.
9261
9262 * blockframe.c (generic_call_dummy_register_unwind): New function.
9263 (frame_saved_regs_register_unwind): New function.
9264 (set_unwind_by_pc): New function.
9265 (create_new_frame): New function.
9266 (get_prev_frame): New function.
9267
9268 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9269
9270 * a29k-share/: Delete directory.
9271 * remote-vx29k.c: Delete file.
9272
9273 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9274
9275 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9276 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9277
9278 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9279
9280 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9281 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9282 (sparc64nbsd-nat.o)
9283 (sparcnbsd-nat.o)
9284 (sparcnbsd-tdep.o): New dependency lists.
9285 * NEWS: Note new UltraSPARC NetBSD native configuration.
9286 * configure.host (sparc64-*-netbsd*): New host.
9287 * configure.tgt (sparc-*-netbsdelf*)
9288 (sparc-*-netbsd*): Set gdb_target to nbsd.
9289 (sparc64-*-netbsd*): New target.
9290 * sparc64nbsd-nat.c: New file.
9291 * sparcnbsd-nat.c: New file.
9292 * sparcnbsd-tdep.c: New file.
9293 * sparcnbsd-tdep.h: New file.
9294 * config/sparc/nbsd.mt: New file.
9295 * config/sparc/nbsd64.mh: New file.
9296 * config/sparc/nbsd64.mt: New file.
9297 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9298 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9299 (HOST_IPC): Remove.
9300 * config/sparc/nbsdaout.mt: Remove.
9301 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9302 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9303 (HOST_IPC): Remove.
9304 * config/sparc/nbsdelf.mt: Remove.
9305 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9306 sparc-nat.c compatiblity defines.
9307 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9308 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9309 * config/sparc/tm-nbsd64.h: New file.
9310 * config/sparc/tm-nbsdaout.h: Remove.
9311 * config/sparc/xm-nbsd.h: Remove.
9312
9313 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9314
9315 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9316 * sparc-tdep.c: Include osabi.h.
9317 (gdbarch_tdep): Add osabi member.
9318 (_initialize_sparc_tdep): Use gdbarch_register.
9319 (sparc_gdbarch_init): Use generic OS ABI framework.
9320 (sparc_dump_tdep): New function.
9321
9322 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9323
9324 * corefile.c (do_captured_read_memory_integer): Return non-zero
9325 result.
9326 (safe_read_memory_integer): Copy result of memory read when
9327 status is non-zero. Also, add comments.
9328
9329 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9330
9331 * Makefile.in (ppc_tdep_h): Define.
9332 (ppc-linux-nat.o)
9333 (ppc-linux-tdep.o)
9334 (rs6000-tdep.o): Use $(ppc_tdep_h).
9335 (ppc-sysv-tdep.o)
9336 (ppcnbsd-nat.o)
9337 (ppcnbsd-tdep.o): New dependency lists.
9338 * ppc-tdep.h: Use generic OS ABI framework.
9339 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9340 (ppc_linux_init_abi): New functions.
9341 (ppc_sysv_abi_broken_use_struct_convention)
9342 (ppc_sysv_abi_use_struct_convention)
9343 (ppc_sysv_abi_push_arguments): Move to...
9344 * ppc-sysv-tdep.c: ...here.
9345 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9346 * rs6000-tdep.c (process_note_abi_tag_sections)
9347 (get_elfosabi): Remove.
9348 (rs6000_gdbarch_init): Use generic OS ABI framework.
9349 (rs6000_dump_tdep): New function.
9350 (_initialize_rs6000_tdep): Use gdbarch_register.
9351 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9352 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9353 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9354 of ppc-linux-tdep.o.
9355 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9356 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9357 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9358 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9359 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9360 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9361
9362 2002-05-29 Jim Blandy <jimb@redhat.com>
9363
9364 * macroscope.c (default_macro_scope): Put `void' in empty argument
9365 list.
9366
9367 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9368
9369 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9370 * arch-utils.c: Include "sim-regno.h".
9371 * gdbarch.sh: Don't include "sim-regno.h".
9372 * gdbarch.h, gdbarch.c: Regenerate.
9373 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9374 here.
9375 * arch-utils.h (legacy_register_sim_regno): To here.
9376 * remote-sim.c (legacy_register_sim_regno): Move function from
9377 here.
9378 * arch-utils.c (legacy_register_sim_regno): To here.
9379
9380 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9381
9382 * sim-regno.h: New file.
9383 * Makefile.in (sim_regno_h): Define.
9384 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9385 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9386 (legacy_register_sim_regno): New function.
9387 (one2one_register_sim_regno): New function.
9388 (gdbsim_fetch_register): Rewrite.
9389 (gdbsim_store_register): Only store a register when
9390 REGISTER_SIM_REGNO is valid.
9391 * d10v-tdep.c: Include "sim-regno.h".
9392 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9393 (d10v_ts3_register_sim_regno): Ditto.
9394 * gdbarch.sh: Include "sim-regno.h".
9395 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9396 * gdbarch.h, gdbarch.c: Regenerate.
9397 * arch-utils.h (default_register_sim_regno): Delete declaration.
9398 * arch-utils.c (default_register_sim_regno): Delete function.
9399
9400 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9401
9402 * ppcnbsd-nat.c: Rewrite.
9403 * ppcnbsd-tdep.c: New file.
9404 * ppcnbsd-tdep.h: New file.
9405 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9406 solib.o, and solib-svr4.o.
9407 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9408 nbsd-tdep.o, and corelow.o.
9409
9410 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9411
9412 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9413 `tr' and `sed'. Mention that `broken' targets are not expected to
9414 build.
9415
9416 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9417
9418 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9419 Let PC point right after the prologue before looking up symbols.
9420
9421 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9422
9423 * i386-tdep.c (i386_register_virtual_type): Return
9424 builtin_type_vec128i for SSE registers.
9425
9426 * gdbtypes.h (builtin_type_vec128i): Declare.
9427
9428 * gdbtypes.c (build_builtin_type_vec128i): New function.
9429 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9430 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9431 (build_gdbtypes): Initialize new builtin vector types.
9432 (_initialize_gdbtypes): Register new vector types with gdbarch.
9433
9434 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9435
9436 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9437 since it has been multi-arch'd.
9438 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9439 Move Alpha and VAX multi-arch news entries to same section
9440 as other multi-arch news.
9441
9442 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9443
9444 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9445 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9446 static. Rename some register numbers to put them in ns32k-tdep
9447 private namespace.
9448 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9449 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9450 functions.
9451 (_initialize_ns32k_tdep): Use gdbarch_register.
9452 * ns32k-tdep.h: New file.
9453 * ns32knbsd-tdep.c: New file.
9454 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9455 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9456 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9457 REGISTER_BYTES, REGISTER_BYTE): Remove.
9458 * config/ns32k/tm-ns32k.h: New file.
9459 * config/ns32k/tm-umax.h: Remove.
9460
9461 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9464 ns32k_store_struct_return, ns32k_extract_return_value,
9465 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9466 functions.
9467 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9468 ns32k_saved_pc_after_call.
9469 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9470 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9471 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9472 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9473 ns32k_extract_struct_value_address.
9474
9475 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9476
9477 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9478 ns32k_fix_call_dummy): New.
9479 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9480 ns32k_call_dummy_words.
9481 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9482 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9483 CALL_DUMMY_NARGS): Remove.
9484 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9485
9486 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9487
9488 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9489 ns32k_frame_saved_pc, ns32k_frame_args_address,
9490 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9491 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9492 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9493 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9494 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9495 (BREAKPOINT): Remove..
9496 (FRAME_CHAIN): Define as ns32k_frame_chain.
9497 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9498 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9499 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9500 (FRAME_FIND_SAVED_REGS): Remove.
9501 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9502 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9503 (POP_FRAME): Define as ns32k_pop_frame.
9504
9505 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9506
9507 * ns32k-tdep.c (ns32k_register_byte_32082,
9508 ns32k_register_byte_32382, ns32k_register_raw_size,
9509 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9510 functions.
9511 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9512 ns32k_register_byte_32382.
9513 * config/ns32k/tm-umax.h: Update copyright years.
9514 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9515 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9516 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9517 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9518 (ns32k_get_enter_addr): Fix prototype.
9519
9520 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9521
9522 * ns32k-tdep.c: Update copyright years.
9523 (ns32k_register_name_32082): New function.
9524 (ns32k_register_name_32382): Ditto.
9525 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9526 (REGISTER_NAME): Define as ns32k_register_name_32382.
9527 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9528 (REGISTER_NAME): Define as ns32k_register_name_32082.
9529
9530 2002-05-24 Jim Blandy <jimb@redhat.com>
9531
9532 * dwarf2read.c (free_line_header): Use xfree, not free.
9533
9534 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9535
9536 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9537 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9538
9539 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9540
9541 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9542
9543 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9544
9545 From Ross Alexander at NEC Europe:
9546 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9547
9548 2002-05-23 Michael Snyder <msnyder@redhat.com>
9549
9550 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9551 for input, rather than parse_and_eval_address.
9552
9553 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9554
9555 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9556 * Makefile.in (sim_d10v_h): Update definition.
9557
9558 2002-05-24 Andrew Cagney <cagney@redhat.com>
9559
9560 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9561 change `2002-05-22 Michael Snyder' below.
9562 (d10v_push_arguments): Ditto.
9563 (d10v_extract_return_value): Ditto.
9564
9565 2002-05-23 Jim Blandy <jimb@redhat.com>
9566
9567 * macrotab.c (check_for_redefinition): Don't complain if the new
9568 definition is the same as the previous one. Take more arguments
9569 to allow the comparison.
9570 (macro_define_object, macro_define_function): Pass more arguments
9571 to check_for_redefinition.
9572
9573 2002-05-22 Michael Snyder <msnyder@redhat.com>
9574
9575 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9576 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9577 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9578 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9579 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9580 Add a temp variable to save a call (and a memory read).
9581 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9582 if possible (so that PC_IN_CALL_DUMMY will work).
9583
9584 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9585
9586 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9587
9588 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9589
9590 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9591 fde->cie_ptr.
9592 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9593 (dwarf2_build_frame_info): Add offset to fde->initial_location
9594 so that frames of shared libraries are mapped correctly.
9595 (execute_stack_op): Change type of 'result' from ULONGEST to
9596 CORE_ADDR.
9597
9598 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9599
9600 * config/alpha/tm-nbsd.h: Include solib.h.
9601
9602 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9603
9604 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9605 assumptions about the host's byte order.
9606
9607 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9610 to dependency list.
9611 * alphanbsd-tdep.c: Include solib-svr4.h.
9612 * shnbsd-tdep.c: Ditto.
9613
9614 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9615
9616 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9617 nbsd-tdep.h to dependency list.
9618 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9619 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9620 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9621 nbsdaout.mh and nbsdelf.mh consistently.
9622 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9623 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9624 nbsdaout.mt and nbsdelf.mh consistently.
9625 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9626 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9627 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9628 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9629 a.out shared library stuff from here...
9630 * config/nm-nbsdaout.h: ...to here.
9631 * config/tm-nbsd.h: Remove.
9632 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9633 * config/arm/nbsd.mh: Remove.
9634 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9635 nbsd-tdep.o.
9636 * config/arm/nbsdaout.mh: New file.
9637 * config/arm/nbsdelf.mh: New file.
9638 * config/arm/nm-nbsdaout.h: New file.
9639 * config/i386/nbsd.mh: Remove.
9640 * config/i386/nbsd.mt: Remove.
9641 * config/i386/nbsdaout.mh: New file.
9642 * config/i386/nbsdaout.mt: New file.
9643 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9644 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9645 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9646 i386_register_u_addr): Remove.
9647 * config/i386/nm-nbsdaout.h: New file.
9648 * config/i386/nm-nbsdelf.h: Remove.
9649 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9650 (USE_STRUCT_CONVENTION): Remove.
9651 * config/i386/tm-nbsdaout.h: New file.
9652 * config/i386/tm-nbsdelf.h: Remove.
9653 * config/m68k/nbsd.mh: Remove.
9654 * config/m68k/nbsd.mt: Remove.
9655 * config/m68k/nbsdaout.mh: New file.
9656 * config/m68k/nbsdaout.mt: New file.
9657 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9658 * config/m68k/nm-nbsdaout.h: New file.
9659 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9660 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9661 * config/ns32k/nbsd.mh: Remove.
9662 * config/ns32k/nbsd.mt: Remove.
9663 * config/ns32k/nbsdaout.mh: New file.
9664 * config/ns32k/nbsdaout.mt: New file.
9665 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9666 * config/ns32k/nm-nbsdaout.h: New file.
9667 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9668 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9669 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9670 (SVR4_SHARED_LIBS): Remove.
9671 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9672 * config/sparc/nbsd.mh: Remove.
9673 * config/sparc/nbsd.mt: Remove.
9674 * config/sparc/nbsdaout.mh: New file.
9675 * config/sparc/nbsdaout.mt: New file.
9676 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9677 * config/sparc/nbsdelf.mt: New file.
9678 * config/sparc/nm-nbsdaout.h: New file.
9679 * config/sparc/nm-nbsdelf.h: Remove.
9680 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9681 * config/sparc/tm-nbsdaout.h: New file.
9682
9683 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9684
9685 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9686 mipsnbsd-tdep.c
9687 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9688
9689 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9690
9691 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9692 shnbsd-nat.c.
9693 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9694
9695 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9696
9697 * NEWS: Note new MIPS NetBSD native configuration.
9698 * configure.host (mips*-*-netbsd*): New host.
9699 * configure.tgt (mips*-*-netbsd*): New target.
9700 * mipsnbsd-nat.c: New file.
9701 * mipsnbsd-tdep.c: New file.
9702 * mipsnbsd-tdep.h: New file.
9703 * config/mips/nbsd.mh: New file.
9704 * config/mips/nbsd.mt: New file.
9705 * config/mips/nm-nbsd.h: New file.
9706 * config/mips/tm-nbsd.h: New file.
9707
9708 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9709
9710 * Makefile.in (SFILES): Add osabi.c.
9711 (COMMON_OBS): Add osabi.o.
9712 (osabi.o): New dependency list.
9713 * osabi.c: New file.
9714 * osabi.h: New file.
9715 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9716
9717 * Makefile.in (alpha_tdep_h): Define and use instead of
9718 alpha-tdep.h.
9719 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9720 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9721 Remove.
9722 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9723 * alpha-tdep.h: Include osabi.h.
9724 (alpha_abi): Remove.
9725 (gdbarch_tdep): Use generic OS ABI framework.
9726 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9727 gdbarch_register_osabi.
9728 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9729 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9730 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9731
9732 * Makefile.in (sh_tdep_h): Add osabi.h.
9733 * sh-tdep.h (sh_osabi): Remove.
9734 (gdbarch_tdep): Use generic OS ABI framework.
9735 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9736 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9737 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9738 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9739
9740 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9741 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9742 gdbarch_register_osabi.
9743 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9744 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9745 (get_elfosabi): Rename to...
9746 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9747 ABI framework support routines.
9748 (arm_gdbarch_init): Use generic OS ABI framework.
9749 (arm_dump_tdep): Likewise.
9750 (_initialize_arm_tdep): Likewise.
9751 * arm-tdep.h: Include osabi.h.
9752 (arm_abi): Remove.
9753 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9754 osabi member.
9755 (arm_gdbarch_register_os_abi): Remove prototype.
9756 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9757 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9758
9759 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9760 * mips-tdep.c: Include osabi.h.
9761 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9762 OS ABI framework.
9763
9764 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9765
9766 * h8300-tdep.c: Fix formatting.
9767
9768 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9769
9770 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9771 printing vector registers.
9772
9773 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9774
9775 From Fernando Nasser:
9776 * remote.c (remote_async_open_1): Re-throw the exception when the
9777 connection fails.
9778 (remote_cisco_open): Ditto.
9779 (remote_open_1): Ditto.
9780
9781 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9782
9783 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9784 (remote_start_remote): Add uiout parameter. Pass through to
9785 remote_start_remote_dummy.
9786 (remote_open_1): Use catch_exception instead of catch_errors.
9787 (remote_async_open_1): Ditto.
9788 (remote_cisco_open): Ditto.
9789
9790 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9791
9792 * remote.c (remote_start_remote): Replace PTR with void pointer.
9793 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9794 static.
9795
9796 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9797
9798 * gdb_indent.sh: Allow the script to be run in the sim directory.
9799
9800 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9801
9802 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9803 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9804
9805 * corelow.c (core_open): Only call set_gdbarch_from_file if
9806 exec_bfd is NULL.
9807
9808 2002-05-17 Andrey Volkov <avolkov@transas.com>
9809
9810 * h8300-tdep.c: Add support of EXR register
9811 * config/h8300/tm-h8300.h: Ditto.
9812
9813 2002-05-17 Andrey Volkov <avolkov@transas.com>
9814
9815 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9816
9817 2002-05-17 Andrey Volkov <avolkov@transas.com>
9818
9819 * h8300-tdep.c: Change literal regnums to REGNO.
9820
9821 2002-05-17 Jim Blandy <jimb@redhat.com>
9822
9823 * NEWS: Note addition of macro support.
9824
9825 Expand preprocessor macros in C expressions.
9826 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9827 (scan_macro_expansion, scanning_macro_expansion,
9828 finished_macro_expansion): New function declarations.
9829 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9830 variable declarations.
9831 * parser-defs.h (expression_context_pc): New declaration.
9832 * parse.c (expression_context_pc): New variable.
9833 (parse_exp_1): Set expression_context_pc, as well as
9834 expression_context_block.
9835 * c-exp.y (yylex): If we're not already reading the result of a
9836 macro expansion, try to macro-expand the next token. When we're
9837 done scanning a macro expansion, switch back to the mainline text.
9838 Commas and `if's in a macro's expansion don't terminate the input.
9839 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9840 (macro_original_text, macro_expanded_text,
9841 expression_macro_lookup_func, expression_macro_lookup_baton): New
9842 variables.
9843 (scan_macro_expansion, scanning_macro_expansion,
9844 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9845 c_preprocess_and_parse): New functions.
9846 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9847 c_preprocess_and_parse, instead of c_parse.
9848 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9849 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9850
9851 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9852
9853 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9854 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9855 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9856
9857 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9858
9859 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9860
9861 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9862
9863 * Makefile.in (sh_tdep_h): Define and use.
9864 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9865 register enum): Move to...
9866 * * sh-tdep.h: ...here.
9867 * sh-tdep.c: Include sh-tdep.h.
9868 * sh3-rom.c: Likewise.
9869 * shnbsd-tdep.c: Likewise.
9870
9871 2002-05-16 Michael Snyder <msnyder@redhat.com>
9872
9873 * arm-tdep.c: Spelling fix in comment.
9874
9875 2002-05-16 Jim Blandy <jimb@redhat.com>
9876
9877 Add commands for manually expanding macros and showing their
9878 definitions.
9879 * macrocmd.c, macroscope.c, macroscope.h: New files.
9880 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9881 (macroscope_h): New variable.
9882 (HFILES_NO_SRCDIR): Add macroscope.h.
9883 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9884 (macroscope.o, macrocmd.o): New rules.
9885
9886 Teach the Dwarf 2 reader to read macro information.
9887 * dwarf2read.c: #include "macrotab.h".
9888 (dwarf_macinfo_buffer): New variable.
9889 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9890 dwarf_macinfo_size.
9891 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9892 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9893 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9894 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9895 dwarf2_macro_spaces_in_definition): New complaints.
9896 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9897 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9898 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9899 the partial symbol table.
9900 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9901 from what's recorded in the partial symbol table.
9902 (read_file_scope): If the compilation unit has a
9903 `DW_AT_macro_info' attribute, read its macro information.
9904 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9905
9906 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9907
9908 Fix PR gdb/546
9909 * ser-tcp.c: Don't include <netinet/udp.h>.
9910
9911 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9912
9913 * MAINTAINERS: Update my email address.
9914
9915 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9916
9917 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9918 include file of the same name.
9919
9920 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9921
9922 * configure.tgt: Mark v850 as multi-arched.
9923 * config/v850/tm-v850.h: Remove file.
9924 * config/v850/v850.mt: Eliminate TM_FILE.
9925
9926 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9927
9928 * v850-tdep.c: Full multi-arch.
9929 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9930 Define GDB_MULTI_ARCH to 2.
9931
9932 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9933
9934 * p-exp.y (current_type): New static variable.
9935 Carries the type of the expression at the position that is parsed.
9936 (push_current_type, pop_current_type): Two new functions. Used
9937 to store/restore current_type in expression on specific tokens.
9938 (search_field): New static variable. Set to one after parsing a point
9939 as at that point only a FIELDNAME token should be searched.
9940 (FIELDNAME): New token. After a point only a token belonging to
9941 current_type type definition is allowed.
9942 (all over token rules): reset and change current_type according
9943 to rules.
9944 (exp '[' rule): insert implicit array index field if
9945 exp is a pascal string type.
9946
9947 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9948
9949 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9950 frame info. Use frame_info's saved_regs instead of matching member
9951 in extra_frame_info throughout.
9952 (v850_frame_init_saved_regs): New function.
9953 (v850_init_extra_frame_info): Move most functionality into
9954 v850_frame_init_saved_regs().
9955 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9956 (v850_frame_find_saved_regs): Remove declaration.
9957 (FRAME_FIND_SAVED_REGS): Remove definition.
9958 (v850_frame_init_saved_regs): Add declaration.
9959 (FRAME_INIT_SAVED_REGS): Add definition.
9960
9961 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9962
9963 * v850-tdep.c: Begin multi-arch'ing v850.
9964 (v850_target_architecture_hook): Remove function.
9965 (v850_gdbarch_init): New function. Add code previously in
9966 v850_target_architecture_hook().
9967 (_initialize_v850_tdep): Don't set target_architecture_hook.
9968 Call register_gdbarch_init() instead.
9969
9970 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9971
9972 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9973 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9974 (fixup_class_method_type): Likewise.
9975
9976 2002-05-15 Jim Blandy <jimb@redhat.com>
9977
9978 Add macro structures to GDB's symbol tables. Nobody puts anything
9979 in them yet.
9980 * symtab.h (struct symtab): New member: `macro_table'.
9981 * buildsym.h (pending_macros): New global variable.
9982 * buildsym.c: #include "macrotab.h".
9983 (buildsym_init): Initialize `pending_macros'.
9984 (end_symtab): If we found macro information while reading a CU's
9985 debugging info, do build a symtab structure for it. Make the
9986 symtab point to the macro information, and clear the
9987 `pending_macros' pointer which held it while we were reading the
9988 debug info.
9989 (really_free_pendings): Free any pending macro table.
9990 * objfiles.h (struct objfile): New member: `macro_cache'.
9991 * objfiles.c (allocate_objfile): Set allocate and free functions
9992 for the macro cache's objstack.
9993 (free_objfile): Empty the macro cache's obstack.
9994 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9995 set new allocate and free functions for it.
9996 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9997 free functions for the macro cache's objstack. (Why is this
9998 function building its own objfile?)
9999 * symmisc.c (print_objfile_statistics): Print statistics on the
10000 macro bcache.
10001 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10002
10003 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10004
10005 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10006 (REGISTER_U_ADDR): Delete definition.
10007 (arm_register_u_addr): Delete declaration.
10008
10009 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10010
10011 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10012 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10013
10014 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10015
10016 * regcache.c (register_valid): Revise comments refering to "Not
10017 available" and "unavailable".
10018 * frame.c (frame_register_read): Ditto.
10019 * findvar.c (value_of_register): Ditto.
10020
10021 2002-05-15 Andrew Cagney <cagney@redhat.com>
10022
10023 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10024 (remote-sim.o): Update dependencies.
10025 (d10v-tdep.o): Specify dependencies.
10026 (sim_d10v_h): Define.
10027
10028 2002-05-14 Jim Blandy <jimb@redhat.com>
10029
10030 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10031 * macrotab.c (macro_lookup_inclusion, find_definition,
10032 new_macro_table): Same.
10033
10034 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10035 not `! strcmp ()'. This is a dubious improvement.
10036 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10037
10038 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10039 although it's not necessary, to avoid a warning.
10040
10041 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10042
10043 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10044 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10045 TYPE_INSTANCE_FLAGS.
10046 (struct main_type): New.
10047 (struct type): Move most members to struct main_type. Change
10048 cv_type and as_type to new type_chain member. Add instance_flags.
10049 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10050 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10051 (finish_cv_type): Remove prototype.
10052 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10053 Set TYPE_CHAIN.
10054 (alloc_type_instance): New function.
10055 (smash_type): New function.
10056 (make_pointer_type, make_reference_type, make_function_type)
10057 (smash_to_member_type, smash_to_method_type): Call smash_type.
10058 (make_qualified_type): New function.
10059 (make_type_with_address_space): Call make_qualified_type.
10060 (make_cv_type): Likewise.
10061 (finish_cv_type): Remove unnecessary function.
10062 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10063 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10064 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10065 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10066 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10067 * hpread.c (hpread_read_struct_type): Likewise.
10068 * stabsread.c (read_struct_type): Likewise.
10069
10070 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10071
10072 * configure.tgt: Add a catch all sh* target, for cases like
10073 sh[2,3,4]-elf and sh-hms.
10074
10075 2002-05-14 Keith Seitz <keiths@redhat.com>
10076
10077 * event-loop.c (create_file_handler): Don't do anything but
10078 update data when we are given a fd which we are already
10079 monitoring.
10080
10081 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10082
10083 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10084 (update_context): Use __func__ in warnings.
10085
10086 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10087
10088 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10089 and tcp_close to net_open and net_close.
10090 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10091 using UDP if requested. Don't try to disable Nagle on UDP
10092 sockets.
10093 * remote.c (remote_serial_open): New function. Warn about UDP.
10094 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10095
10096 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10097
10098 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10099
10100 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10101
10102 * configure.tgt: Remove sh-hms target.
10103 * MAINTAINERS: Don't list sh-hms as a separate target.
10104
10105 2002-05-13 Jim Blandy <jimb@redhat.com>
10106
10107 Add first preprocessor macro-expansion files.
10108 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10109 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10110 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10111 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10112 (COMMON_OBS): Add macrotab.o, macroexp.o.
10113 (macroexp.o, macrotab.o): New rules.
10114
10115 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10116
10117 * config/m88k/tm-m88k.h: Update copyright.
10118 (m88k_target_write_pc): Declare
10119 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10120 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10121 (SHIFT_INST_REGS): Update definition.
10122 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10123 using old definition of TARGET_WRITE_PC.
10124 * regcache.c (generic_target_write_pc): Delete code handling
10125 NNPC_REGNUM.
10126 * gdbarch.sh (NNPC_REGNUM): Delete.
10127 * gdbarch.h, gdbarch.c: Regenerate.
10128
10129 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10130
10131 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10132 builtin reg number.
10133
10134 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10135
10136 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10137 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10138 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10139 access macros.
10140 * c-typeprint.c (cp_type_print_method_args): Likewise.
10141 (c_type_print_args): Likewise.
10142 * d10v-tdep.c (d10v_push_arguments): Likewise.
10143 (d10v_extract_return_value): Likewise.
10144 * expprint.c (print_subexp): Likewise.
10145 * gdbtypes.c (lookup_primitive_typename): Likewise.
10146 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10147 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10148 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10149 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10150 (TYPE_VECTOR): Likewise.
10151 * hpread.c (hpread_read_struct_type)
10152 (fix_static_member_physnames, fixup_class_method_type)
10153 (hpread_type_lookup): Likewise.
10154 * mdebugread.c (parse_symbol, parse_type): Likewise.
10155 * p-lang.c (is_pascal_string_type): Likewise.
10156 * valops.c (hand_function_call): Likewise.
10157 * x86-64-tdep.c (classify_argument): Likewise.
10158
10159 * hpread.c (hpread_read_function_type)
10160 (hpread_read_doc_function_type): Call replace_type.
10161 * dstread.c (create_new_type): Delete.
10162 (decode_dst_structure, process_dst_function): Call alloc_type.
10163 Use type access macros.
10164
10165 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10166
10167 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10168 the're not supported by the current architecture.
10169 (i387_fill_fxsave): Likewise.
10170
10171 2002-05-12 Fred Fish <fnf@redhat.com>
10172
10173 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10174 sect_index_xxx members to index the first slot in section_offsets
10175 if all of the section_offsets are zero.
10176
10177 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10178
10179 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10180 checked in with last change.
10181
10182 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10183
10184 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10185 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10186 config.sub.
10187
10188 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10189
10190 * Makefile.in: Update dependencies.
10191
10192 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10193
10194 * language.c (local_hex_string_custom): Simplify. Do not depend
10195 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10196
10197 * memattr.c (mem_info_command): Replace calls to
10198 longest_local_hex_string and longest_local_hex_string_custom.
10199 * buildsym.c (make_blockvector): Ditto.
10200 * solib.c (info_sharedlibrary_command): Ditto.
10201 * tracepoint.c (tracepoints_info): Ditto.
10202 * symtab.c (print_msymbol_info): Ditto.
10203
10204 * language.c (local_hex_string): Delete.
10205 (local_hex_string_custom): Delete.
10206 (longest_local_hex_string): Rename to local_hex_string.
10207 (longest_local_hex_string_custom): Rename to
10208 local_hex_string_custom.
10209 * language.h (local_hex_string): Change parameter type to LONGEST.
10210 (local_hex_string_custom): Ditto.
10211 (longest_local_hex_string): Delete declaration.
10212 (longest_local_hex_string_custom): Ditto.
10213
10214 * solib.c: Update copyright.
10215 * memattr.c: Update copyright.
10216
10217 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10218
10219 * arch-utils.h (legacy_register_to_value): Declare.
10220 (legacy_value_to_register): Declare.
10221 (legacy_convert_register_p): Declare.
10222 * arch-utils.c (legacy_register_to_value): New function.
10223 (legacy_value_to_register): New function.
10224 (legacy_convert_register_p): New function.
10225
10226 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10227 (VALUE_TO_REGISTER): Define.
10228 (CONVERT_REGISTER_P): Define.
10229 * gdbarch.h, gdbarch.c: Regenerate.
10230
10231 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10232 VALUE_TO_REGISTER.
10233 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10234 CONVERT_REGISTER_P.
10235
10236 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10237 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10238
10239 * Makefile.in: Update dependencies for valops.c.
10240 * valops.c: Include "gdb_assert.h".
10241 (typecmp): Skip THIS parameter to methods.
10242 (find_method_list): Remove static_memfuncp argument,
10243 update callers. Check for stub methods.
10244 (find_value_oload_method_list): Don't set *static_memfuncp.
10245 (find_overload_match): Don't check for stub methods. Assert
10246 that methods are not stubbed. Handle static methods.
10247 (value_find_oload_method_list): Remove static_memfuncp argument.
10248 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10249 to the argument list for static stub methods.
10250 * value.h (value_find_oload_method_list): Update prototype.
10251
10252 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10253
10254 * arch-utils.h (generic_register_size): Declare.
10255 (generic_register_raw_size, generic_register_virtual_size): Delete
10256 declarations.
10257 * arch-utils.c (generic_register_raw_size): Delete.
10258 (generic_register_size): New function.
10259 (generic_register_virtual_size): Delete.
10260
10261 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10262 default generic_register_size.
10263 * gdbarch.h, gdbarch.c: Re-generate.
10264
10265 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10266 register_virtual_size.
10267 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10268 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10269
10270 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10271
10272 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10273 * gdbarch.h, gdbarch.c: Regenerate.
10274 * gnu-v3-abi.c: Update copyright.
10275 (vtable_address_point_offset): Update.
10276 (gnuv3_rtti_type): Update.
10277 (gnuv3_baseclass_offset): Update.
10278 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10279 (init_fetch_link_map_offsets): Update.
10280 * remote.c (get_remote_state): Update.
10281
10282 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10283
10284 * TODO: Remove value_headof/value_from_vtable_info comment.
10285 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10286 * values.c (value_headof, value_from_vtable_info): Delete.
10287 * value.h (value_from_vtable_info): Delete prototype.
10288
10289 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10290
10291 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10292 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10293 $(gdb_regex_h).
10294 (gdb_assert_h): Define.
10295 (gdb_wait_h): Define.
10296 (gdb_regex_h): Define.
10297
10298 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10299
10300 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10301 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10302
10303 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10304
10305 * nbsd-tdep.c: Fix comment.
10306
10307 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10308
10309 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10310 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10311 (nbsd-tdep.o): New dependency list.
10312 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10313 nbsd-tdep.h.
10314 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10315 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10316 * nbsd-tdep.c: New file.
10317 * nbsd-tdep.h: New file.
10318 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10319 nbsd-tdep.h.
10320 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10321 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10322 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10323 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10324
10325 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10326
10327 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10328 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10329 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10330 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10331 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10332 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10333
10334 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10335
10336 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10337 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10338 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10339 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10340 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10341 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10342 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10343
10344 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10345
10346 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10347 fetch_elfcore_registers to...
10348 * i386nbsd-tdep.c: ...here.
10349 (i386nbsd_use_struct_convention): Rename to...
10350 (i386nbsd_aout_use_struct_convention): ...this.
10351 (i386nbsd_supply_reg): New function.
10352 (i386nbsd_fill_reg): New function.
10353 (fetch_core_registers): Use i386nbsd_supply_reg.
10354 (fetch_elfcore_registers): Likewise.
10355 (_initialize_i386nbsd_tdep): New function.
10356 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10357 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10358 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10359 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10360 (i386nbsd_aout_use_struct_convention): ...this.
10361
10362 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10363
10364 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10365 (store_inferior_registers): Use shnbsd_fill_reg.
10366 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10367 sh_nbsd_supply_register): Collapse into...
10368 (shnbsd_supply_reg): ...this.
10369 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10370 (shnbsd_fill_reg): ...this.
10371 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10372 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10373 (fetch_core_registers): Use shnbsd_supply_reg.
10374 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10375 (sh_nbsd_core_fns): Rename to...
10376 (shnbsd_core_fns): ...this.
10377 (sh_nbsd_elfcore_fns): Rename to...
10378 (shnbsd_elfcore_fns): ...this.
10379 (sh_nbsd_init_abi): Rename to...
10380 (shnbsd_init_abi): ...this.
10381 (_initialize_sh_nbsd_tdep): Rename to...
10382 (_initialize_shnbsd_tdep): ...this.
10383 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10384 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10385 sh_nbsd_fill_register): Remove prototypes.
10386 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10387
10388 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10389
10390 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10391 (i387-nat.o): Delete dependency list.
10392 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10393 (x86-64-linux-nat.o): Likewise.
10394 * i387-nat.c: Delete file, moving contents to...
10395 * i387-tdep.c: ...here.
10396 * i387-nat.h: Rename...
10397 * i387-tdep.h: ...to this.
10398 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10399 * i386-linux-nat.c: Likewise.
10400 * i386bsd-nat.c: Likewise.
10401 * i386gnu-nat.c: Likewise.
10402 * i386nbsd-nat.c: Likewise.
10403 * i386v4-nat.c: Likewise.
10404 * x86-64-linux-nat.c: Likewise.
10405 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10406 * config/i386/go32.mh (NATDEPFILES): Likewise.
10407 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10408 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10409 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10410 * config/i386/linux.mh (NATDEPFILES): Likewise.
10411 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10412 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10413 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10414 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10415
10416 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10417
10418 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10419 (alphanbsd-nat.o): Remove dependency list.
10420 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10421 * alphanbsd-nat.c: Delete. Contents moved to...
10422 * alphanbsd-tdep.c: ...here.
10423 (_initialize_alphanbsd_tdep): Register core functions.
10424 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10425
10426 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10427
10428 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10429 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10430 (alphanbsd-nat.o): Likewise.
10431 (alphabsd-tdep.o): New dependency list.
10432 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10433 (fill_gregset): Use alphabsd_fill_reg.
10434 (supply_fpregset): Use alphabsd_supply_fpreg.
10435 (fill_fpregset): Use alphabsd_fill_fpreg.
10436 (fetch_inferior_registers): Use struct reg and struct fpreg
10437 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10438 and alphabsd_supply_fpreg.
10439 (store_inferior_registers): Use struct reg and struct fpreg
10440 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10441 and alphabsd_fill_fpreg.
10442 * alphabsd-tdep.c: New file.
10443 * alphabsd-tdep.h: New file.
10444 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10445 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10446 alphabsd_supply_fpreg.
10447 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10448 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10449
10450 2002-05-11 Eric Christopher <echristo@redhat.com>
10451
10452 * mips-tdep.c (mips_double_register_type): Fix thinko.
10453 (mips_single_register_type): Ditto.
10454 * MAINTAINERS: Add self.
10455
10456 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10457
10458 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10459 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10460 right thing on architectures with different endianness and/or
10461 integer sizes.
10462
10463 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10464
10465 From Christian Limpach <chris@Pin.LU>
10466 * configure.in: Change sed expression which comments out
10467 NATDEPFILES to also comment out continuation lines.
10468 * configure: Regenerate.
10469
10470 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10471
10472 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10473 big patch.
10474
10475 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10476
10477 * sh-tdep.c: Include correct file.
10478
10479 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10480
10481 New support for sh64-elf (sh5) target.
10482
10483 * configure.tgt: For sh64-elf target, default to sh-elf.
10484
10485 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10486 (struct gdbarch_tdep): Add new fields for new registers and ABI
10487 info.
10488
10489 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10490 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10491 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10492 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10493 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10494 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10495 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10496 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10497 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10498 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10499 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10500 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10501 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10502 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10503 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10504 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10505 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10506 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10507 sign_extend, sh64_nofp_frame_init_saved_regs,
10508 sh64_init_extra_frame_info, sh64_get_saved_register,
10509 sh64_extract_struct_value_address, sh64_pop_frame,
10510 sh64_push_arguments, sh64_extract_return_value,
10511 sh64_store_return_value, sh64_show_media_regs,
10512 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10513 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10514 sh_sh64_register_virtual_type,
10515 sh_sh64_register_convert_to_virtual,
10516 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10517 sh64_register_read, sh64_pseudo_register_write,
10518 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10519 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10520 sh64_do_pseudo_register, sh_compact_do_registers_info,
10521 sh64_do_registers_info, sh_gdbarch_init): New functions.
10522
10523 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10524
10525 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10526
10527 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10528
10529 * linespec.c (decode_line_1): Check for a double quote after
10530 a filename correctly.
10531
10532 2002-05-10 Jim Blandy <jimb@redhat.com>
10533
10534 Properly track the size of the current objfile's .debug_line section.
10535 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10536 (DWARF_LINE_SIZE): New macro.
10537 (dwarf2_build_psymtabs_hard): Record the line section's size in
10538 the partial symbol table.
10539 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10540 symbol table.
10541
10542 2002-05-10 Petr Sorfa <petrs@caldera.com>
10543
10544 * ia64-tdep.c: Handle breakpoints on L instruction type
10545 in MLX instruction bundle by moving the breakpoint to
10546 the third slot (X instruction type) as L holds only data.
10547
10548 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10549
10550 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10551 (process_one_symbol): Complain about discarding local symbols
10552 due to a misplaced N_LBRAC entry.
10553
10554 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10555
10556 From Daniel Berlin <dan@cgsoftware.com>
10557 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10558 decrease the depth we are at, in the case of templates.
10559
10560 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10561
10562 * mips-tdep.c (mips_float_register_type): New function.
10563 (mips_double_register_type): New function.
10564 (mips_print_register): Use them.
10565 (do_fp_register_row): Likewise.
10566
10567 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10568
10569 * signals/signals.c (signals): Remove conditional compilation around
10570 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10571 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10572
10573 2002-05-09 Michael Snyder <msnyder@redhat.com>
10574
10575 * remote-rdp.c (remote_rdp_can_run): Remove.
10576
10577 2002-05-09 Tom Tromey <tromey@redhat.com>
10578
10579 * jv-valprint.c (java_val_print): Handle `char' as a special case
10580 of TYPE_CODE_INT.
10581
10582 2002-05-09 Michael Snyder <msnyder@redhat.com>
10583
10584 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10585 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10586 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10587 str r(0123),[sp,#nn].
10588 (arm_skip_prologue): Ditto. Also make disassembly
10589 order-independent by placing it in a loop.
10590
10591 2002-05-06 Michael Snyder <msnyder@redhat.com>
10592
10593 * stabsread.c (read_type): Add recognition for new attribute:
10594 "@V;" means that an array type is actually a vector.
10595 This is analogous to the vector flag that's been added to dwarf2.
10596
10597 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10598
10599 * i386-tdep.h (i386_abi): New enum.
10600 (struct gdbarch_tdep): Replace os_ident member with abi.
10601 (i386_gdbarch_register_os_abi): New prototype.
10602 * i386-tdep.c (i386_abi_names): New array.
10603 (process_note_abi_tag_sections): Removed.
10604 (process_note_sections): New function.
10605 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10606 (struct i386_abi_handler): New struct.
10607 (i386_abi_handler_list): New variable.
10608 (i386_gdbarch_register_os_abi): New function.
10609 (i386_gdbarch_init): Adapt for the changes given above.
10610
10611 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10612
10613 * gregset.h: Say "GNU/Linux".
10614
10615 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10616
10617 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10618 (build_gdbtypes): Build builtin_type_v2_float.
10619 (_initialize_gdbtypes): Register new builtin type.
10620
10621 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10622
10623 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10624 (clear_gdbarch_swap): New function.
10625 (initialize_non_multiarch): Call.
10626 (gdbarch_update_p): Before calling init(), swap out and clear the
10627 existing architecture.
10628 * gdbarch.c: Regenerate.
10629
10630 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10631
10632 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10633 alphanbsd-tdep.c.
10634
10635 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10636
10637 * sh-nbsd-nat.c: Rename to...
10638 * shnbsd-nat.c: ...this.
10639 * sh-nbsd-tdep.c: Rename to...
10640 * shnbsd-tdep.c: ...this.
10641 * sh-nbsd-tdep.h: Rename to...
10642 * shnbsd-tdep.h: ...this.
10643 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10644 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10645
10646 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10647
10648 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10649 concatenation for command help messages.
10650
10651 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10652
10653 * NEWS: Note new sh*-*-netbsdelf* configuration.
10654 * configure.host: Set gdb_host_cpu to sh for all sh*.
10655 (sh*-*-netbsdelf*): New host.
10656 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10657 (sh*-*-netbsdelf*): New target.
10658 * sh-nbsd-nat.c: New file.
10659 * sh-nbsd-tdep.c: New file.
10660 * sh-nbsd-tdep.h: New file.
10661 * config/sh/nbsd.mh: New file.
10662 * config/sh/nbsd.mt: New file.
10663 * config/sh/nm-nbsd.h: New file.
10664 * config/sh/tm-nbsd.h: New file.
10665
10666 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10667
10668 * sh-tdep.c (sh_osabi_names): Declare.
10669 (process_note_abi_tag_sections): New function.
10670 (get_elfosabi): Ditto.
10671 (sh_gdbarch_register_os_abi): Ditto.
10672 (sh_dump_tdep): Ditto.
10673 _initialize_sh_tdep): Use gdbarch_register to register
10674 sh_gdbarch_init and sh_dump_tdep.
10675 * config/sh/tm-sh.h (sh_osabi): Declare.
10676 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10677
10678 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10679
10680 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10681 (thumb_scan_prologue): Ditto.
10682 (arm_find_callers_reg): Ditto.
10683 (arm_frame_chain): Ditto.
10684 (arm_init_extra_frame_info): Ditto.
10685 (arm_frame_saved_pc): Ditto.
10686 (arm_pop_frame): Ditto.
10687 (arm_push_return_address): New function.
10688 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10689 call_dummy_location, call_dummy_breakpoint_offset_p,
10690 call_dummy_breakpoint_offset, call_dummy_p,
10691 call_dummy_stack_adjust_p, call_dummy_words,
10692 sizeof_call_dummy_words, call_dummy_start_offset,
10693 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10694 call_dummy_address, push_return_address and push_dummy_frame for
10695 generic dummy frames.
10696
10697 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10698
10699 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10700 size computation for alloca.
10701 (sh_fp_frame_init_saved_regs): Likewise.
10702
10703 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10704
10705 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10706 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10707 * arm-tdep.c (arm_store_return_value): Use them.
10708 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10709 * remote-rdp.c (remote_rdp_fetch_register): Use
10710 ARM_MAX_REGISTER_RAW_SIZE.
10711 (remote_rdp_store_register): Likewise.
10712
10713 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10714
10715 * dwarf2cfi.c: Code cleanup, removed unused variables,
10716 added default labels to switch {} statements.
10717 * x86-64-tdep.c: Ditto.
10718 * x86-64-linux-nat.c: Ditto.
10719
10720 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10721
10722 * solib.h: Protect against multiple inclusion.
10723
10724 2002-05-06 Jim Blandy <jimb@redhat.com>
10725
10726 Add first preprocessor macro-expansion files.
10727 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10728 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10729 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10730 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10731 (COMMON_OBS): Add macrotab.o, macroexp.o.
10732 (macroexp.o, macrotab.o): New rules.
10733
10734 Separate the job of reading the line number info statement program
10735 header (...expialidocious) out into its own function.
10736 * dwarf2read.c (struct line_head, struct filenames, struct
10737 directories): Replace with...
10738 (struct line_header): New structure, containing the full
10739 contents of the statement program header, including the
10740 include directory and file name tables.
10741 (read_file_scope): If we have line number info, instead of just
10742 calling dwarf_decode_lines to do all the work, call
10743 dwarf_decode_line_header first to get a `struct line_header'
10744 containing the data in the statement program header, and then
10745 pass that to dwarf_decode_lines, which will pick up where that
10746 left off. Be sure to clean up the `struct line_header' object.
10747 (dwarf_decode_line_header, free_line_header, add_include_dir,
10748 add_file_name): New functions.
10749 (dwarf_decode_lines): Move all the code to read the statement
10750 program header into dwarf_decode_line_header. Take the line
10751 header it built as the first argument, instead of the offset to
10752 the compilation unit's line number info. Use the new `struct
10753 line_header' type instead of the old structures. No need to do
10754 cleanups here now, since we don't allocate anything.
10755 (dwarf2_statement_list_fits_in_line_number_section,
10756 dwarf2_line_header_too_long): New complaints.
10757
10758 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10759
10760 * gdbtypes.c (init_vector_type): New function.
10761 (build_builtin_type_vec128): Simplify the representation of SIMD
10762 registers.
10763 (build_gdbtypes): Initialize new builtin vector types.
10764 (_initialize_gdbtypes): Register new vector types with gdbarch.
10765 (builtin_type_v4_float, builtin_type_v4_int32,
10766 builtin_type_v8_int16, builtin_type_v16_int8,
10767 builtin_type_v2_int32, builtin_type_v4_int16,
10768 builtin_type_v8_int8): New (renamed) SIMD types.
10769
10770 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10771
10772 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10773 (i387_fill_fxsave): Likewise.
10774
10775 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10776
10777 * alpha-tdep.c (alpha_extract_return_value): Don't use
10778 non-constant array size in prototype.
10779
10780 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10781
10782 From Brian Taylor <briant at model dot com>:
10783 * ui-out.c (ui_out_field_core_addr): Use the function
10784 longest_local_hex_string_custom'to format addresses > 32 bits
10785 wide.
10786
10787 * ui-out.c (ui_out_field_core_addr): Update comment.
10788
10789 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10790
10791 * stack.c (select_and_print_frame): Make static. Delete the
10792 parameter `level'.
10793 (func_command): Update call.
10794 (select_frame_command): Delete code computing the frame level.
10795 * frame.h (select_and_print_frame): Delete declaration.
10796
10797 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10798
10799 * sparc-tdep.c (sparc_get_saved_register): Comment why
10800 get_prev_frame call is safe.
10801
10802 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10803
10804 * frame.h (select_frame): Delete level parameter.
10805 * stack.c (select_frame): Update. Use frame_relative_level to
10806 obtain the frame's level.
10807 (select_and_print_frame): Update call.
10808 (select_frame_command): Ditto.
10809 (up_silently_base): Ditto.
10810 (down_silently_base): Ditto.
10811 * ocd.c (ocd_start_remote): Ditto.
10812 * remote-rdp.c (remote_rdp_open): Ditto.
10813 * remote-mips.c (mips_initialize): Ditto.
10814 (common_open): Ditto.
10815 * remote-e7000.c (e7000_start_remote): Ditto.
10816 * m3-nat.c (select_thread): Ditto.
10817 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10818 (child_get_current_exception_event): Ditto.
10819 * varobj.c (varobj_create): Ditto.
10820 (varobj_update): Ditto.
10821 (c_value_of_root): Ditto.
10822 * tracepoint.c (finish_tfind_command): Ditto.
10823 * corelow.c (core_open): Ditto.
10824 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10825 * thread.c (info_threads_command): Ditto.
10826 (switch_to_thread): Ditto.
10827 * infrun.c (normal_stop): Ditto.
10828 (restore_selected_frame): Ditto.
10829 (restore_inferior_status): Ditto.
10830 * breakpoint.c (insert_breakpoints): Ditto.
10831 (watchpoint_check): Ditto.
10832 (bpstat_stop_status): Ditto.
10833 (do_enable_breakpoint): Ditto.
10834 * blockframe.c (flush_cached_frames): Ditto.
10835 (reinit_frame_cache): Ditto.
10836
10837 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10838
10839 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10840 maintainer.
10841
10842 2002-05-04 Jim Blandy <jimb@redhat.com>
10843
10844 * gdbtypes.c (replace_type): Doc fix.
10845
10846 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10847
10848 * valprint.c (strcat_longest): Delete commented out function.
10849 Update copyright.
10850
10851 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10852
10853 * MAINTAINERS: Mark a29k as deleted.
10854 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10855 Move new configurations to the top.
10856 * configure.tgt: Remove a29k.
10857 * config/a29k/tm-vx29k.h: Delete.
10858 * config/a29k/vx29k.mt: Delete.
10859 * config/a29k/tm-a29k.h: Delete.
10860 * config/a29k/a29k-udi.mt: Delete.
10861 * config/a29k/a29k.mt: Delete.
10862 * a29k-tdep.c: Delete.
10863 * remote-udi.c: Delete.
10864 * remote-mm.c: Delete.
10865 * remote-eb.c: Delete.
10866 * remote-adapt.c: Delete.
10867 * Makefile.in: Remove obsolete code.
10868 * config/s390/s390x.mt: Ditto.
10869 * config/s390/s390.mt: Ditto.
10870 * config/sparc/sparclynx.mh: Ditto.
10871 * config/sparc/linux.mh: Ditto.
10872 * config/pa/hppaosf.mh: Ditto.
10873 * config/pa/hppabsd.mh: Ditto.
10874 * config/ns32k/nbsd.mt: Ditto.
10875 * config/mips/vr5000.mt: Ditto.
10876 * config/m68k/sun3os4.mh: Ditto.
10877 * config/m68k/nbsd.mt: Ditto.
10878 * config/m68k/m68klynx.mh: Ditto.
10879 * config/m32r/m32r.mt: Ditto.
10880 * config/i386/x86-64linux.mt: Ditto.
10881 * config/i386/nbsdelf.mt: Ditto.
10882 * config/i386/nbsd.mt: Ditto.
10883 * config/i386/i386lynx.mh: Ditto.
10884
10885 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10886
10887 * target.c (debug_print_register): New function. Handle oversize
10888 registers.
10889 (debug_to_fetch_registers): Call.
10890 (debug_to_store_registers): Call.
10891
10892 2002-05-03 Jim Blandy <jimb@redhat.com>
10893
10894 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10895 (read_type): Doc fix.
10896 * gdbtypes.c (replace_type): Doc fix.
10897
10898 * stabsread.c (multiply_defined_struct): New complaint.
10899 (read_struct_type): If the type we were passed isn't empty, or
10900 incomplete, don't read the new struct type into it; complain,
10901 and return the original type unchanged. Take a new `type_code'
10902 argument, which is the type code for the new type.
10903 (read_type): Rather than storing the type's type code here, pass
10904 it as an argument to read_struct_type, and let that take care of
10905 storing it. That way, we don't overwrite the original type code,
10906 so read_struct_type can use it to decide whether we're overwriting
10907 something we shouldn't.
10908 (complain_about_struct_wipeout): New function.
10909
10910 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10911
10912 * gdbarch.sh: Assert that gdbarch is non-NULL.
10913 * gdbarch.c: Regenerate.
10914
10915 2002-05-03 Jason Merrill <jason@redhat.com>
10916
10917 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10918 and return NULL.
10919
10920 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10921
10922 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10923 (x86_64_dwarf2gdb_regno_map_length),
10924 (x86_64_dwarf2_reg_to_regnum): Added.
10925 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10926 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10927 (_initialize_x86_64_tdep): Synced with the change above.
10928 (x86_64_skip_prologue): Reformulated message.
10929
10930 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10931
10932 * f-exp.y: Also use new prev_lexptr variable
10933 to improve error reporting. Based on Michael Snyder
10934 2002-04-24 dated patch to c-exp.y.
10935 * jv-exp.y: Likewise.
10936 * m2-exp.y: Likewise.
10937
10938 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10939
10940 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10941 we are dealing with vectors.
10942
10943 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10944
10945 * config/m68k/tm-nbsd.h: Obvious fix,
10946 correct machine name.
10947
10948 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10949
10950 * p-typeprint.c (pascal_type_print_base): Add support
10951 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10952
10953 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10954
10955 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10956 for fondamental pascal 'char' type.
10957
10958 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10959
10960 * p-lang.h (is_pascal_string_type): Declaration changed,
10961 new sixth argument of type char ** added.
10962 * p-lang.c (is_pascal_string_type): Implementation
10963 changed. Args length_pos, length_size, string_pos, char_size
10964 can now be NULL. New argument arrayname set to the field
10965 name of the char array. Return value set to char array
10966 field index plus one.
10967 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10968 is_pascal_string_type function.
10969
10970 2002-05-02 Andrew Cagney <cagney@redhat.com>
10971
10972 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10973 <cagney@redhat.com> change.
10974 * gdbarch.c: Regenerate.
10975
10976 2002-05-02 Andrew Cagney <cagney@redhat.com>
10977
10978 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10979 before probing for a new one. Detect errorenous gdbarch_init
10980 functions.
10981 * gdbarch.c: Regenerate.
10982
10983 2002-05-01 Andrew Cagney <cagney@redhat.com>
10984
10985 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10986 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10987 * config/v850/tm-v850.h: Ditto. Update copyright.
10988
10989 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10990
10991 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10992 current_gdbarch.
10993
10994 2002-04-30 Michael Snyder <msnyder@redhat.com>
10995
10996 * arm-tdep.c: Whitespace clean-ups.
10997 (arm_skip_prologue): Fix thinko; two lines
10998 should have been removed as part of 4/24 change.
10999
11000 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11001
11002 * rs6000-tdep.c: Added comment describing how fpscr register
11003 numbers were chosen.
11004
11005 2002-04-30 Michael Snyder <msnyder@redhat.com>
11006
11007 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11008
11009 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11010
11011 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11012 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11013 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11014
11015 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11016
11017 From Louis Hamilton <hamilton@redhat.com>:
11018 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11019 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11020 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11021 not bfd-private xcoff data, to determine wordsize.
11022 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11023
11024 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11025
11026 GDB 5.2 released from 5.2 branch.
11027
11028 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11029
11030 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11031 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11032 (x86_64_register_info_table): Added comments with register numbers.
11033
11034 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11035
11036 * rs6000-tdep.c (rs6000_extract_return_value,
11037 rs6000_store_return_value): Handle returning vectors.
11038 (rs6000_gdbarch_init): Use
11039 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11040 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11041 New function.
11042 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11043 vectors.
11044 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11045 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11046
11047 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11048
11049 * hpread.c (hpread_psymtab_to_symtab_1,
11050 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11051 with fprintf_unfiltered (gdb_stderr,...).
11052
11053 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11054
11055 * remote-array.c (printf_monitor, write_monitor,
11056 array_insert_breakpoint, array_remove_breakpoint ):
11057 Replace fprintf (stderr,...
11058 with fprintf_unfiltered (gdb_stderr,....
11059 * remote-es.c: Likewise.
11060 * remote-os9k.c: Likewise.
11061 * remote-st.c: Likewise.
11062
11063 2002-04-28 Andreas Schwab <schwab@suse.de>
11064
11065 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11066 linux-proc.o and gcore.o.
11067
11068 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11069
11070 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11071 code without frame pointers.
11072
11073 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11074
11075 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11076 ON_STACK is needed.
11077
11078 2002-04-26 Ben Elliston <bje@redhat.com>
11079
11080 * target.c (do_xfer_memory): Correct reference to the new option
11081 "trust-readonly-sections".
11082
11083 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11084
11085 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11086 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11087 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11088 vectors.
11089 (read_array_type): Record the fact that this array type is really a
11090 vector (i.e. are passed in by value).
11091
11092 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11093
11094 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11095 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11096 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11097 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11098 * alpha-linux-tdep.c: Include frame.h.
11099 (alpha_linux_sigcontext_addr): New function.
11100 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11101 alpha_linux_sigcontext_addr.
11102 * alpha-osf1-tdep.c: Include gdbcore.h.
11103 (alpha_osf1_sigcontext_addr): New function.
11104 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11105 alpha_osf1_sigcontext_addr.
11106 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11107 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11108
11109 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11110
11111 * stack.c (selected_frame_level):
11112 (select_frame): Do not set selected_frame_level.
11113 * frame.h (selected_frame_level): Delete declaration.
11114
11115 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11116
11117 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11118 convert_from_func_ptr-addr when AIX / PowerOpen.
11119
11120 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11121
11122 * valops.c (hand_function_call): Call
11123 generic_save_call_dummy_addr.
11124 * frame.h (generic_save_call_dummy_addr): Declare.
11125 * blockframe.c (struct dummy_frame): Add fields call_lo and
11126 call_hi.
11127 (generic_find_dummy_frame): Check for PC in range call_lo to
11128 call_hi instead of entry_point_address.
11129 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11130 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11131 (generic_save_call_dummy_addr): New function.
11132
11133 2002-04-24 David S. Miller <davem@redhat.com>
11134
11135 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11136 sparc_skip_prologue.
11137 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11138 information to find prologue when possible.
11139 (sparc_prologue_frameless_p): Call examine_prologue directly.
11140 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11141 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11142 second argument.
11143 (SKIP_PROLOGUE): Likewise.
11144
11145 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11146
11147 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11148 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11149 indicate that the condition it was testing is always true.
11150 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11151 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11152 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11153
11154 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11155
11156 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11157 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11158 tdep->jb_pc and tdep->jb_elt_size.
11159 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11160 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11161 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11162 * alpha-nat.c (get_longjmp_target): Remove.
11163 (JB_ELEMENT_SIZE): Ditto.
11164 (JB_PC): Ditto.
11165 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11166 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11167 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11168 to alpha_get_longjmp_target.
11169 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11170 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11171 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11172
11173 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11174
11175 * README: Update to GDB 5.2.
11176
11177 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11178
11179 * gdbarch.sh (LC_ALL): Set to `c'.
11180
11181 2002-04-25 Theodore A. Roth <troth@verinet.com>
11182
11183 * avr-tdep.c: Ran through gdb_indent.sh.
11184
11185 2002-04-25 Theodore A. Roth <troth@verinet.com>
11186
11187 * MAINTAINERS: Add myself as AVR maintainer.
11188 * NEWS: Note new target avr.
11189
11190 2002-04-25 Theodore A. Roth <troth@verinet.com>
11191
11192 * Makefile.in: Add support for AVR target.
11193 * configure.tgt: Add support for AVR target.
11194 * avr-tdep.c: New file
11195 * config/avr/avr.mt: New file.
11196
11197 2002-04-25 Theodore A. Roth <troth@verinet.com>
11198
11199 * MAINTAINERS: Add myself to write-after-approval.
11200
11201 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11202
11203 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11204 with fprintf_unfiltered (gdb_stderr,....
11205
11206 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11207
11208 Fix PR gdb/508.
11209 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11210
11211 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 * p-exp.y: Also use new prev_lexptr variable
11214 to improve error reporting. Based on Michael Snyder
11215 2002-04-24 dated patch to c-exp.y.
11216
11217 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11218
11219 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11220 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11221 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11222 to 0.
11223 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11224 and struct value.
11225 (FUNCTION_START_OFFSET): Remove.
11226 (BREAKPOINT): Ditto.
11227
11228 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11229
11230 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11231 * NEWS: Ditto.
11232
11233 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11234
11235 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11236 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11237 alpha_linux_pc_in_sigtramp.
11238 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11239 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11240 alpha_osf1_pc_in_sigtramp.
11241 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11242 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11243 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11244 alphafbsd_pc_in_sigtramp.
11245 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11246 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11247 alphanbsd_pc_in_sigtramp.
11248 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11249 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11250
11251 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11252
11253 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11254
11255 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11256
11257 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11258 alphanbsd-tdep.c.
11259 (alphanbsd-nat.o): New dependency list.
11260 (alphanbsd-tdep.o): Ditto.
11261 * NEWS: Note new native NetBSD/alpha configuration.
11262 * alphanbsd-nat.c: New file.
11263 * alphanbsd-tdep.c: Ditto.
11264 * configure.host (alpha*-*-netbsd*): New host.
11265 * configure.tgt (alpha*-*-netbsd*): New target.
11266 * config/alpha/nbsd.mh: New file.
11267 * config/alpha/nbsd.mt: Ditto.
11268 * config/alpha/nm-nbsd.h: Ditto.
11269 * config/alpha/tm-nbsd.h: Ditto.
11270
11271 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11272
11273 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11274 (alpha-osf1-tdep.o): New dependency list.
11275 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11276 and skip_sigtramp_frame members.
11277 * alpha-linux-tdep.c: Include gdbcore.h.
11278 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11279 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11280 * alpha-osf1-tdep.c: New file.
11281 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11282 alpha-osf1-dep.c.
11283 (alpha_frame_past_sigtramp_frame): New function.
11284 (alpha_dynamic_sigtramp_offset): Ditto.
11285 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11286 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11287 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11288 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11289 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11290 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11291 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11292 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11293 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11294 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11295 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11296 to find_solib_trampoline_target.
11297 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11298 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11299 (SKIP_TRAMPOLINE_CODE): Remove.
11300 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11301 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11302 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11303 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11304 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11305 (PROC_SIGTRAMP_MAGIC): Ditto.
11306 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11307 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11308 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11309 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11310 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11311
11312 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11313
11314 * NEWS: Note that Alpha targets are now multi-arch.
11315
11316 2002-04-24 Michael Snyder <msnyder@redhat.com>
11317
11318 * parser-defs.h (prev_lexptr): New external variable.
11319 * parse.c (parse_exp_1): Set prev_lexptr to null before
11320 calling the language-specific parser.
11321 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11322 (yyerror): Use prev_lexptr in error reporting.
11323
11324 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11325
11326 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11327 * gregset.h: If FILL_FPXREGSET is defined, provide
11328 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11329 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11330 is defined, call fill_fpxregset.
11331
11332 2002-04-24 Roland McGrath <roland@frob.com>
11333
11334 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11335 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11336 (supply_gregset, supply_fpregset): New functions.
11337
11338 * gnu-nat.c (gnu_find_memory_regions): New function.
11339 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11340 (gnu_xfer_memory): Add a cast.
11341
11342 2002-04-24 Michael Snyder <msnyder@redhat.com>
11343
11344 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11345 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11346 of argument regs ("str r(0123), [r11, #-nn"]).
11347 (arm_skip_prologue): Better handling for frameless functions.
11348 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11349 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11350
11351 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11352
11353 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11354 NUM_PSEUDO_REGS can be used.
11355
11356 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11357
11358 * arch-utils.h: Update copyright.
11359
11360 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11361 * gdbarch.h, gdbarch.c: Re-generate.
11362
11363 * inferior.h (IN_SIGTRAMP): Delete definition.
11364 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11365 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11366
11367 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11368 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11369 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11370 (find_proc_framesize): Ditto.
11371 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11372 (alpha_init_extra_frame_info): Ditto.
11373 * infrun.c (handle_inferior_event): Ditto.
11374 (handle_inferior_event): Ditto.
11375 (check_sigtramp2): Ditto.
11376 * blockframe.c (create_new_frame): Ditto.
11377 (get_prev_frame): Ditto.
11378 * ppc-linux-tdep.c: Update comments.
11379 * i386-linux-tdep.c: Update comments.
11380 * breakpoint.c (bpstat_what): Update comment.
11381
11382 2002-04-24 David S. Miller <davem@redhat.com>
11383
11384 * i960-tdep.c (register_in_window_p): New function.
11385 (i960_find_saved_register): Use it instead of
11386 REGISTER_IN_WINDOW_P.
11387 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11388
11389 * symtab.h (find_stab_function_addr): Kill extern.
11390 * minsyms.c (find_stab_function_addr): Remove from here...
11391 * dbxread.c: ... to here, and mark it static.
11392
11393 2002-04-20 David S. Miller <davem@redhat.com>
11394
11395 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11396 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11397
11398 2002-04-21 David S. Miller <davem@redhat.com>
11399
11400 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11401 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11402 (vx_write_register): Likewise.
11403
11404 2002-04-23 J. Brobecker <brobecker@gnat.com>
11405
11406 * source.c (is_regular_file): New function.
11407 (openp): Check wether file to open is a regular file
11408 to avoid opening directories.
11409
11410 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11411
11412 * findvar.c (extract_signed_integer): Cast printf argument
11413 to suppress format warning.
11414 (extract_unsigned_integer): Likewise.
11415 * infcmd.c (registers_info): Likewise.
11416 * top.c (get_prompt_1): Likewise.
11417 * valops.c (value_assign): Likewise.
11418 * valprint.c (print_decimal): Likewise.
11419
11420 2002-04-22 H.J. Lu (hjl@gnu.org)
11421
11422 * c-exp.y (typebase): Support
11423
11424 [long|long long|short] [signed|unsigned] [int|]
11425
11426 and
11427
11428 signed [long|long long|short] int
11429
11430 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11431
11432 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11433 and vax-tdep.h.
11434 * vax-tdep.h: New file.
11435 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11436 Make several routines static.
11437 (vax_get_saved_register): New function.
11438 (vax_gdbarch_init): New function.
11439 (_initialize_vax_tdep): Register vax_gdbarch_init.
11440 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11441 Remove macros now under the control of gdbarch.
11442
11443 2002-04-22 Michael Snyder <msnyder@redhat.com>
11444
11445 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11446 Some whitespace and coding standards tweaks.
11447
11448 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11449
11450 * vax-tdep.c: Include regcache.h.
11451 (vax_call_dummy_words): New.
11452 (sizeof_vax_call_dummy_words): New.
11453 (vax_fix_call_dummy): New function.
11454 (vax_saved_pc_after_call): Ditto.
11455 * config/vax/tm-vax.h: Don't include regcache.h.
11456 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11457 (CALL_DUMMY): Remove.
11458 (CALL_DUMMY_WORDS): Define.
11459 (SIZEOF_CALL_DUMMY_WORDS): Define.
11460 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11461
11462 2002-04-18 Michael Snyder <msnyder@redhat.com>
11463
11464 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11465
11466 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11467
11468 * vax-tdep.c (vax_frame_chain): New function.
11469 (vax_push_dummy_frame): Ditto.
11470 (vax_pop_frame): Ditto.
11471 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11472 (FRAMELESS_FUNCTION_INVOCATION): Use
11473 generic_frameless_function_invocation_not.
11474 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11475 (POP_FRAME): Use vax_pop_frame.
11476
11477 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11478
11479 * vax-tdep.c (vax_store_struct_return): New function.
11480 (vax_extract_return_value): Ditto.
11481 (vax_store_return_value): Ditto.
11482 (vax_extract_struct_value_address): Ditto.
11483 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11484 vax_store_struct_return.
11485 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11486 (STORE_RETURN_VALUE): Use vax_store_return_value.
11487 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11488
11489 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11490
11491 * vax-tdep.c (vax_frame_saved_pc): New function.
11492 (vax_frame_args_address_correct): Ditto.
11493 (vax_frame_args_address): Ditto.
11494 (vax_frame_locals_address): Ditto.
11495 (vax_frame_num_args): Move code to be in proximity to
11496 other frame-related functions.
11497 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11498 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11499 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11500 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11501 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11502
11503 2002-04-22 H.J. Lu (hjl@gnu.org)
11504
11505 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11506 includedir.
11507
11508 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11509
11510 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11511 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11512 (FRAME_INIT_SAVED_REGS): New macro.
11513
11514 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11515
11516 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11517
11518 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11519
11520 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11521 where needed.
11522 (fetch_osf_core_registers): Likewise.
11523 (supply_gregset): Likewise.
11524
11525 2002-04-22 J. Brobecker <brobecker@gnat.com>
11526
11527 * symfile.h (get_section_index): Define.
11528 * symfile.c (get_section_index): New function.
11529 * mdebugread.c (SC_IS_SBSS): New macro.
11530 (SC_IS_BSS): Return true for the scBss storage class only, as
11531 the scSBss storage class refers to the .sbss section.
11532 (parse_partial_symbols): Discard the symbols which associated
11533 section does not exist.
11534 Make sure to use the .sbss section index for symbols which
11535 storage class is scBss, rather than using the .bss section index.
11536
11537 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11538
11539 * vax-tdep.c: Update copyright years.
11540 (vax_register_name): New function.
11541 (vax_register_byte): Ditto.
11542 (vax_register_raw_size): Ditto.
11543 (vax_register_virtual_size): Ditto.
11544 (vax_register_virtual_type): Ditto.
11545 * config/vax/tm-vax.h: Update copyright years.
11546 (REGISTER_NAMES): Remove.
11547 (REGISTER_NAME): Define.
11548 (REGISTER_BYTE): Use vax_register_byte.
11549 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11550 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11551 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11552
11553 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11554
11555 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11556 declaration
11557 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11558
11559 2002-04-21 David S. Miller <davem@redhat.com>
11560
11561 * arch-utils.c (generic_prologue_frameless_p): Kill
11562 SKIP_PROLOGUE_FRAMELESS_P code.
11563 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11564 references.
11565 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11566 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11567 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11568 references.
11569 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11570 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11571 (sparc_gdbarch_init): Pass it to
11572 set_gdbarch_prologue_frameless_p.
11573
11574 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11575
11576 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11577 (alphabsd-nat.o): New dependency list.
11578
11579 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11580
11581 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11582 alphafbsd-tdep.c.
11583 (alpha-linux-tdep.o): New dependency list.
11584 (alphafbsd-tdep.o): Likewise.
11585
11586 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11587
11588 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11589 to here...
11590 * alpha-tdep.c: ...from here.
11591 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11592
11593 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11594
11595 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11596 prototype from here...
11597 * alpha-tdep.h: ...to here.
11598
11599 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11600
11601 * frame.h (selected_frame_level): Document as deprecated.
11602 (frame_relative_level): Declare.
11603 * stack.c (frame_relative_level): New function.
11604 (selected_frame_level): Document as deprecated.
11605 (select_frame): Do not set the selected_frame_level.
11606
11607 * stack.c (frame_info, record_selected_frame): Update.
11608 (frame_command, current_frame_command): Update.
11609 (up_silently_base, up_command, down_silently_base): Update.
11610 (down_command): Update.
11611 * inflow.c (kill_command): Update.
11612 * tracepoint.c (finish_tfind_command): Update.
11613 * corelow.c (core_open): Update.
11614 * thread.c (info_threads_command): Update.
11615 (do_captured_thread_select): Update.
11616 * infcmd.c (finish_command): Update.
11617 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11618
11619 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11620
11621 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11622
11623 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11624
11625 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11626 type const.
11627
11628 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11629
11630 * alphafbsd-tdep.c: Update copyright years. Include
11631 alpha-tdep.h.
11632 (alphafbsd_use_struct_convention): Make static.
11633 (alphafbsd_init_abi): New function.
11634 (_initialize_alphafbsd_tdep): New function.
11635 * config/alpha/tm-fbsd.h: Update copyright years.
11636 (USE_STRUCT_CONVENTION): Remove.
11637
11638 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11639
11640 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11641 an Alpha ABI variant.
11642 (alpha_abi_handler_list): Declare.
11643 (alpha_gdbarch_register_os_abi): New function.
11644 (alpha_gdbarch_init): Give registered ABI variant handlers a
11645 chance to tweak the gdbarch once we have set up defaults.
11646 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11647
11648 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11649
11650 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11651 to standard_coerce_float_to_double.
11652 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11653
11654 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11655
11656 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11657 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11658 from gdbarch_tdep rather than a constant.
11659 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11660 the default text address for all Alpha Unix ABIs.
11661 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11662 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11663
11664 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11665
11666 * alpha-tdep.h: New file. Includes several Alpha target constants
11667 taken from...
11668 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11669 let gdbarch deal with.
11670 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11671 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11672 to dependency list.
11673 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11674 Alpha target register names.
11675 * alphabsd-nat.c: Likewise.
11676 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11677 Alpha target register names. Make serveral routines static.
11678 (alpha_get_saved_register): New function.
11679 (alpha_abi_names): New.
11680 (process_note_abi_tag_sections): New function.
11681 (get_elfosabi): New function.
11682 (alpha_gdbarch_init): New function.
11683 (alpha_dump_tdep): New function.
11684 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11685
11686 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11687
11688 * frame.c (find_saved_register): Delete #ifdef
11689 HAVE_REGISTER_WINDOWS code.
11690 * config/sparc/tm-sparc.h: Update comments.
11691 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11692
11693 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11694
11695 * i960-tdep.c (i960_find_saved_register): New function.
11696 (i960_get_saved_register): New function.
11697 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11698 (i960_get_saved_register): Declare.
11699 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11700
11701 2002-04-20 David S. Miller <davem@redhat.com>
11702
11703 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11704
11705 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11706
11707 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11708 instead of NUM_PSEUDO_REGS.
11709
11710 2002-04-20 David S. Miller <davem@redhat.com>
11711
11712 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11713 GDB_MULTI_ARCH_PARTIAL
11714 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11715 define, let tm-sp64.h do it.
11716
11717 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11718
11719 * frame.c (find_saved_register): Avoid a NULL pointer
11720 dereference and actually walk the frame list.
11721
11722 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11723
11724 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11725 sorted in most most-recent-used order. Document.
11726 * gdbarch.h, gdbarch.c: Regenerate.
11727
11728 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11729
11730 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11731 instead of ->prev.
11732 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11733 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11734 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11735 instead of ->prev.
11736
11737 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11738
11739 Fix PR gdb/471.
11740 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11741 (build_builtin_type_vec128): Ditto.
11742 (append_composite_type_field): Fix calculation of type length in
11743 union case.
11744
11745 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11746
11747 * config/djgpp/README: Update.
11748
11749 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11750 compiler warnings.
11751
11752 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11753
11754 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11755 (alpha_setup_arbitrary_frame): ...to this.
11756 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11757 for alpha_setup_arbitrary_frame.
11758
11759 2002-04-18 Andrew Cagney <cagney@redhat.com>
11760
11761 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11762 * gdbarch.h, gdbarch.c: Regenerate.
11763
11764 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11765 * target.h (memory_breakpoint_from_pc): Update declaration.
11766 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11767
11768 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11769 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11770 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11771 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11772 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11773 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11774 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11775 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11776 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11777 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11778 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11779 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11780
11781 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11782 const pointer.
11783 * monitor.c (monitor_insert_breakpoint): Ditto.
11784 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11785
11786 * config/mcore/tm-mcore.h: Update copyright.
11787 * mem-break.c: Ditto.
11788 * xstormy16-tdep.c: Ditto.
11789
11790 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11791
11792 * p-exp.y: Add precedence rule for '^' token.
11793 This removes the shift/reduce conflicts.
11794 Remove the comment concerning these shift/reduce conflicts.
11795
11796 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11797
11798 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11799 (registers_powerpc_nofp): New register set for processors
11800 without floating point unit.
11801
11802 2002-04-18 David S. Miller <davem@redhat.com>
11803
11804 * MAINTAINERS: Add myself to write-after-approval.
11805
11806 2002-04-17 Michael Snyder <msnyder@redhat.com>
11807
11808 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11809
11810 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11811
11812 * rs6000-tdep.c (frame_initial_stack_address): Use
11813 frame_register_read to read the alloca_reg.
11814
11815 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11816
11817 * frame.c (find_saved_register): Find saved registers in the next
11818 not prev frame.
11819 Fix PR gdb/365.
11820
11821 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11822
11823 * gdbarch.sh (LANG): Set to ``c''.
11824
11825 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11826
11827 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11828
11829 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11830
11831 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11832 Update copyright.
11833
11834 * hpread.c (hpread_get_lntt): Add declaration.
11835 Also fix PR gdb/391.
11836
11837 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11838
11839 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11840 * aclocal.m4, configure: Re-generate.
11841 Fix PR gdb/391.
11842
11843 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11844
11845 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11846 instead of tm_print_insn.
11847
11848 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11849
11850 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11851
11852 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11853
11854 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11855 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11856 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11857
11858 2002-04-12 Don Howard <dhoward@redhat.com>
11859
11860 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11861 max_user_call_depth.
11862 (init_cmd_lists): Initialize the new value;
11863 * cli/cli-script.c (execute_user_command): Limit the call depth of
11864 user defined commands. This avoids a core-dump when user commands
11865 are infinitly recursive.
11866
11867 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11868
11869 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11870 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11871 from tdep struct instead of DEFAULT_LR_SAVE.
11872 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11873 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11874 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11875
11876 2002-04-12 Michael Snyder <msnyder@redhat.com>
11877
11878 * Remote.c: Spelling fix.
11879 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11880 If no symbol found for "sbrk", try "_sbrk".
11881 (make_output_phdrs): Use bfd_section_name.
11882 (gcore_copy_callback): Use bfd_section_name.
11883 * eval.c: Indentation fix-ups.
11884 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11885 in case it gets applied to an address that is already
11886 in the instruction space.
11887 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11888 * symfile.c: Fix indentation, long lines.
11889 * source.c: White space fix-up.
11890
11891 2002-04-12 Andrew Cagney <cagney@redhat.com>
11892
11893 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11894 * frame.c (frame_register_read): New function. Return non-zero on
11895 success.
11896 (read_relative_register_raw_bytes_for_frame): Delete.
11897 (read_relative_register_raw_bytes): Delete.
11898 * frame.h (frame_register_read): Declare.
11899 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11900 * sh-tdep.c: Ditto.
11901 * infcmd.c (do_registers_info): Ditto.
11902 * hppa-tdep.c: Ditto.
11903 * rs6000-tdep.c: Ditto.
11904 * h8500-tdep.c: Ditto.
11905 * mips-tdep.c: Ditto.
11906 * h8300-tdep.c: Ditto.
11907 * z8k-tdep.c: Ditto.
11908
11909 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11910
11911 From Jimi X <jimix@watson.ibm.com>:
11912 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11913 64-bit SysV ABI.
11914
11915 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11916
11917 From Jimi X <jimix@watson.ibm.com>:
11918 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11919 bfd info.
11920
11921 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11922
11923 From Jimi X <jimix@watson.ibm.com>:
11924 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11925 register sets for these processor variants.
11926
11927 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11928
11929 * regformats/reg-ppc.dat: Support FPSCR.
11930
11931 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11932
11933 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11934 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11935 Add fpscr as an invalid/unfetchable register.
11936 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11937 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11938 (fill_fpregset): Add support for register fpscr.
11939 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11940 (fill_gregset): Account for the fact that register ``mq'' might
11941 not exist.
11942 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11943 (registers_power): Add fpscr to register set at slot 71.
11944 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11945 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11946
11947 2002-04-11 Michael Snyder <msnyder@redhat.com>
11948
11949 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11950 * configure: Regenerate.
11951 * config.in: Regenerate.
11952 * acconfig.h: Add define for _SYSCALL32.
11953 * core-sol2.c: Remove #define _SYSCALL32.
11954 * solib-legacy.c: Remove #define _SYSCALL32.
11955
11956 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11957
11958 * stack.c (select_frame): Cleanup internal error message, do not
11959 use %p.
11960
11961 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11962
11963 * stack.c (select_frame): Check that selected_frame and the
11964 specified level are as expected.
11965 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11966 Update copyright.
11967 * frame.h (struct frame_info): Add field `level'. Update
11968 copyright.
11969 Work-in-progress PR gdb/464.
11970
11971 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11972
11973 * maint.c (maint_print_section_info): Rename print_section_info.
11974 (print_bfd_section_info, print_objfile_section_info): Update.
11975 * inferior.h (struct gdbarch): Add opaque declaration.
11976 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11977 * gdbarch.h: Regenerate.
11978
11979 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11980
11981 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11982 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11983 (kernel_u_size): Added.
11984 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11985 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11986
11987 2002-04-04 Jim Ingham <jingham@apple.com>
11988
11989 * valarith.c (find_size_for_pointer_math): New function, either returns
11990 the size for a pointer's target, returns 1 for void *, or errors for
11991 incomplete types.
11992 (value_add, value_sub): use find_size_for_pointer_math.
11993
11994 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11995
11996 * linux-low.c (linux_look_up_symbols): New hook.
11997 (linux_target_ops): Add linux_look_up_symbols.
11998 * remote-utils.c (decode_address): New function.
11999 (look_up_one_symbol): New function.
12000 * server.c (handle_query): Call target look_up_symbols hook.
12001 * server.h (look_up_one_symbol): Add prototype.
12002 * target.h (struct target_ops): Add look_up_symbols hook.
12003
12004 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12005
12006 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12007 override FP_REGNUM with frame->fp. Update copyright.
12008 * parse.c (num_std_regs, std_regs): Delete.
12009 (target_map_name_to_register): Do not search std_regs. Update
12010 function description.
12011 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12012 declarations. Update copyright.
12013 Fix PR gdb/251.
12014
12015 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12016
12017 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12018 after the last symbol in a block.
12019
12020 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12021
12022 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12023 is non zero as a found symbol.
12024
12025 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12026
12027 * findvar.c: Include "builtin-regs.h".
12028 (value_of_register): Call value_of_builtin_reg when applicable.
12029 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12030 (target_map_name_to_register): Call
12031 builtin_reg_map_name_to_regnum.
12032 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12033 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12034 (builtin_regs_h): Define.
12035 (builtin-regs.o): New target.
12036 (findvar.o): Add $(builtin_regs_h).
12037 * builtin-regs.c, builtin-regs.h: New files.
12038 * std-regs.c: New file.
12039 Partial fix for PR gdb/251.
12040
12041 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12042
12043 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12044 it's no longer required.
12045
12046 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12047
12048 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12049
12050 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12051
12052 From Jimi X <jimix@watson.ibm.com>:
12053 * rs6000-tdep.c (rs6000_software_single_step): Use
12054 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12055 and size. Use target_insert_breakpoint() and
12056 target_remove_breakpoint() to insert and remove breakpoints
12057 instead of explicit memory reads and writes.
12058
12059 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12060
12061 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12062 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12063 ELF_OBJECT_FORMAT ifdef.
12064
12065 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12066
12067 From Jimi X <jimix@watson.ibm.com>:
12068 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12069
12070 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12071
12072 From Jimi X <jimix@watson.ibm.com>:
12073 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12074 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12075
12076 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12077
12078 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12079 s/asprintf/xasprintf/.
12080 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12081
12082 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12083
12084 I believe Jeff Law denies responsability for this one:
12085 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12086 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12087 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12088 Work-around for PR gdb/366.
12089
12090 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12091
12092 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12093 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12094 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12095
12096 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12097
12098 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12099 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12100 information.
12101
12102 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12103
12104 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12105 maintainer.
12106
12107 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12108
12109 * README (Reporting Bugs in GDB): Document the bug web page as the
12110 prefered way of submitting bugs.
12111 Fix PR gdb/402.
12112
12113 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12114
12115 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12116 -1. Update comment.
12117 * gdbarch.h, gdbarch.c: Re-generate.
12118
12119 2002-04-07 Andreas Schwab <schwab@suse.de>
12120
12121 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12122 buffer to regcache_collect.
12123
12124 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12125
12126 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12127 * gdbarch.c, gdbarch.h: Re-generate.
12128
12129 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12130
12131 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12132 declaration. Fix -Werror.
12133
12134 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12135
12136 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12137 * gdbarch.c: Regenerate.
12138
12139 2002-04-05 Michael Snyder <msnyder@redhat.com>
12140
12141 * breakpoint.c (clear_command): Rewrite middle section to
12142 combine two loops with identical control conditions.
12143 Add a cleanup to eliminate a memory leak.
12144 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12145
12146 2002-04-05 H.J. Lu (hjl@gnu.org)
12147
12148 * solib-svr4.c (bkpt_names): Add "__start".
12149
12150 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12151
12152 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12153 as test for 64 bit target.
12154
12155 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12156
12157 * h8500-tdep.c (h8500_write_fp): Delete function.
12158 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12159 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12160 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12161 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12162 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12163 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12164 (s390_write_fp):
12165 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12166 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12167 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12168 (d10v_write_fp): Delete function.
12169 * inferior.h (write_fp, generic_target_write_fp): Delete
12170 declarations.
12171 * regcache.c (generic_target_write_fp): Delete function.
12172 (write_fp): Delete function.
12173 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12174 * gdbarch.h, gdbarch.c: Regenerate.
12175 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12176 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12177 (sparc64_write_fp): Delete declaration.
12178 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12179 (h8500_write_fp): Delete declaration.
12180
12181 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12182
12183 * sparc-tdep.c (sparc64_write_fp): Delete.
12184 (sparc_push_dummy_frame): Replace write_fp call with code to store
12185 the FP directly.
12186 (sparc_gdbarch_init): Do not initialize write_fp.
12187
12188 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12189
12190 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12191 clause.
12192
12193 2002-03-29 Jim Blandy <jimb@redhat.com>
12194
12195 * stack.c (get_selected_block): Add new argument `addr_in_block',
12196 used to return the exact code address we used to select the block,
12197 not just the block.
12198 * blockframe.c (get_frame_block, get_current_block): Same.
12199 * frame.h (get_frame_block, get_current_block,
12200 get_selected_block): Update declarations.
12201 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12202 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12203
12204 2002-04-05 Michael Snyder <msnyder@redhat.com>
12205
12206 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12207 warning message.
12208
12209 2002-04-05 J. Brobecker <brobecker@gnat.com>
12210
12211 * utils.c (xfullpath): New function.
12212 * defs.h (xfullpath): Add declaration.
12213 * source.c (openp): Use xfullpath in place of gdb_realpath to
12214 avoid resolving the basename part of filenames when the
12215 associated file is a symbolic link. This fixes a potential
12216 inconsistency between the filenames known to GDB and the
12217 filenames it prints in the annotations.
12218 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12219 to be able to match a filename with either the real filename, or
12220 the name of any symbolic link to this file.
12221 (lookup_partial_symtab): Ditto.
12222
12223 2002-04-04 Michael Snyder <msnyder@redhat.com>
12224
12225 * breakpoint.c: Add support for hardware breakpoints in overlays.
12226 (overlay_events_enabled): New state variable.
12227 (insert_breakpoints): Use overlay_events_enabled to decide
12228 whether to attempt to set a breakpoint at the overlay load addr.
12229 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12230 (remove_breakpoint): Use overlay_events_enabled to decide
12231 whether breakpoints need to be removed from overlay load addr.
12232 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12233 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12234 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12235 disable_overlay_breakpoints): Update overlay_events_enabled.
12236
12237 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12238
12239 * dwarf2read.c (struct function_range): New.
12240 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12241 (check_cu_functions): New.
12242 (read_file_scope): Initialize global function lists.
12243 Call dwarf_decode_line after processing children.
12244 (read_func_scope): Add to global function list.
12245 (dwarf_decode_lines): Call check_cu_functions everywhere
12246 record_line is called. Call record_line with a linenumber
12247 of 0 to mark sequence ends.
12248
12249 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12250
12251 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12252 change sync with glibc.
12253
12254 2002-04-03 Jim Blandy <jimb@redhat.com>
12255
12256 * configure.in: Call AC_C_INLINE.
12257 * configure: Regenerated.
12258
12259 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12262 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12263
12264 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12265
12266 * NEWS: Mention gcore support on FreeBSD/i386.
12267
12268 * fbsd-proc.c: New file.
12269 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12270 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12271
12272 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12273 while statement.
12274
12275 2002-03-29 Jim Blandy <jimb@redhat.com>
12276
12277 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12278 unescaped newlines in string literals, but newer ones don't. So
12279 escape them.
12280
12281 2002-03-26 Michael Snyder <msnyder@redhat.com>
12282 Andrew Cagney <cagney@redhat.com>
12283
12284 * cli/cli-dump.c: New file. Dump memory to file,
12285 restore file to memory.
12286 * cli/cli-dump.h: New file.
12287 * Makefile.in: Add rules, dependencies for cli-dump.o.
12288 * NEWS: Mention new commands.
12289
12290 2002-03-28 Michael Snyder <msnyder@redhat.com>
12291
12292 * symfile.c (symbol_file_add): Move test for null symbols to later.
12293
12294 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12295
12296 From veksler at il.ibm.com:
12297 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12298 the xstrduped original path.
12299 Fix PR gdb/417.
12300
12301 2002-03-27 Michael Snyder <msnyder@redhat.com>
12302
12303 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12304 * infcmd.c (_initialize_infcmd): Ditto.
12305 * language.c (_initialize_language): Ditto.
12306 * symfile.c (_initialize_symfile): Ditto.
12307 * top.c (_init_main): Ditto.
12308 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12309
12310 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12311
12312 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12313 vector registers handling.
12314 (skip_prologue): Handle new AltiVec instructions. Fill in new
12315 fields of frame data.
12316 (frame_get_saved_regs): Fill in information for AltiVec registers.
12317
12318 2002-03-27 Jim Blandy <jimb@redhat.com>
12319
12320 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12321 a function; leave this macro here to invoke that function.
12322 (symbol_init_mangled_name): Declaration for that function.
12323 * symtab.c (symbol_init_mangled_name): New function.
12324
12325 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12326
12327 * valarith.c: Replace strerror with safe_strerror.
12328 * tracepoint.c: Ditto.
12329 * lin-lwp.c: Ditto.
12330 * go32-nat.c: Ditto.
12331 * inflow.c: Ditto.
12332 * gnu-nat.c: Ditto.
12333
12334 2002-03-27 Andreas Schwab <schwab@suse.de>
12335
12336 * event-top.c (command_line_handler): Remove useless if.
12337
12338 2002-03-27 Andreas Jaeger <aj@suse.de>
12339
12340 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12341 comment.
12342
12343 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12344
12345 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12346 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12347 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12348 (x86_64_linux_dr_get_status, supply_gregset),
12349 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12350 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12351 (x86_64_register_info_table): Add.
12352 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12353 (x86_64_register_raw_size, x86_64_register_virtual_type),
12354 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12355 general x86_64_register_info_table.
12356 (i386_gdbarch_init): gdbarch_register_bytes is now set
12357 dynamicaly during initialization.
12358 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12359 * gdbserver/linux-x86-64-low.c: Ditto.
12360
12361 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12362
12363 * gdbserver/server.c (main): Call target_signal_to_host_p
12364 and target_signal_to_host on signals received from the remote.
12365 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12366 target_signal_from_host on signals sent to the remote.
12367 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12368 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12369
12370 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12371
12372 * signals/signals.c: Include "server.h" in gdbserver build.
12373 (target_signal_from_name): Don't use STREQ.
12374 (_initialize_signals): Likewise. Don't include function in
12375 gdbserver build.
12376
12377 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12378
12379 * signals.c: Moved to...
12380 * signals/signals.c: Here.
12381 * Makefile (signals.o): Update.
12382
12383 2002-03-26 Jeff Law (law@redhat.com)
12384
12385 * somread.c (som_symtab_read): Remove some commented out code and
12386 updated related comments. Do not set the minimal symbol table to
12387 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12388 in a dynamic executable.
12389 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12390 where we are unable to find the minimal symbol for the given
12391 PC value.
12392
12393 2002-03-25 Jeff Law (law@redhat.com)
12394
12395 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12396
12397 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12398
12399 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12400
12401 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12402
12403 * command.h: Update copyright.
12404 (struct cmd_list_element): Replace definition with opaque
12405 declaration.
12406 (enum cmd_types): Document that it will eventually be moved to
12407 cli/cli-decode.h
12408 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12409 (MALLOCED_REPLACEMENT): Delete macro.
12410 * Makefile.in (cli_decode_h): Add $(command_h).
12411 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12412 * top.c: Include "cli/cli-decode.h".
12413 * completer.c: Include "cli/cli-decode.h".
12414 * maint.c: Include "cli/cli-decode.h".
12415 * cli/cli-decode.h: Include "command.h".
12416 (enum command_class): Delete.
12417 (enum cmd_types): Comment out.
12418 (enum cmd_auto_boolean): Delete.
12419 (enum var_types): Delete.
12420
12421 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12422
12423 * cli/cli-decode.c: Include "gdb_assert.h".
12424 (add_set_or_show_cmd): New static function.
12425 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12426 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12427 all fields, such as func, from the set command.
12428
12429 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12430
12431 * MAINTAINERS (sh-elf): Change warning flag to -w.
12432
12433 2002-03-23 Andrew Cagney <cagney@redhat.com>
12434
12435 * defs.h (error): Add printf format attribute.
12436 * thread-db.c (thread_from_lwp): Fix error format string.
12437 * stack.c (parse_frame_specification): Ditto.
12438 * cli/cli-decode.c (undef_cmd_error): Ditto.
12439 * scm-lang.c (scm_lookup_name): Ditto.
12440 * tracepoint.c (trace_error): Ditto.
12441 * remote-utils.c (usage): Ditto.
12442 * remote.c (compare_sections_command): Ditto.
12443 Fix PR gdb/328.
12444
12445 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12446
12447 * gdbtypes.c (append_composite_type_field): New function.
12448 (init_composite_type): New function.
12449 * gdbtypes.h (append_composite_type_field): Declare.
12450 (init_composite_type): Ditto.
12451
12452 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12453
12454 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12455 function.
12456 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12457 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12458 structure returning convention for SYSV ABI case, but not
12459 for GNU/Linux, FreeBSD, or NetBSD.
12460
12461 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12462
12463 * symtab.h (lookup_block_symbol): Add mangled_name argument
12464 to prototype.
12465
12466 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12467 with new mangled_name argument.
12468 * linespec.c (decode_line_1): Likewise.
12469 * valops (value_of_this): Likewise.
12470 * symtab.c (lookup_transparent_type): Likewise.
12471 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12472 (lookup_symbol): If we are given a mangled name, pass it down
12473 to lookup_symbol_aux.
12474 (lookup_block_symbol): If we are given a mangled name to check
12475 against, only return symbols which match it.
12476
12477 2002-03-22 Christopher Faylor <cgf@redhat.com>
12478
12479 * win32-nat.c (child_create_inferior): Check for proper shell to use
12480 here, in case the user changes it on the fly.
12481 (_initialize_inftarg): Remove shell path considerations.
12482
12483 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12484
12485 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12486 for gdbarch_max_register_raw_size and max_register_virtual_size.
12487 Adjust copyright year.
12488
12489 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12490
12491 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12492 in a function to cover the entire beginning of the function
12493 as well if it does not already.
12494
12495 2002-03-21 Tom Rix <trix@redhat.com>
12496
12497 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12498 (rs6000_ptrace64): Renamed from ptrace64.
12499
12500 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12501
12502 * gdbserver/remote-utils.c (remote_open): Don't call
12503 getprotobyname, we're all using TCP here so just use
12504 IPPROTO_TCP.
12505 * gdbserver/gdbreplay.c (remote_open): Ditto.
12506
12507 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12508
12509 * regcache.c (_initialize_regcache): No need to call
12510 build_regcache() at this time; it gets called whenever
12511 the gdbarch changes.
12512
12513 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12514
12515 * sparc-nat.c: Include sys/param.h where possible.
12516
12517 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12518
12519 Fix PR gdb/422.
12520 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12521 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12522 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12523 complex types.
12524 * stabsread.c (rs6000_builtin_type): Likewise.
12525 (read_sun_floating_type): Likewise.
12526
12527 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12528
12529 * stabsread.c (read_member_functions): Remove skip code for duplicate
12530 constructor/destructor methods. Use standard parsing for these
12531 methods and just do not chain them to the list of methods after
12532 parsing.
12533
12534 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12535
12536 * coffread.c: Remove redundant static declarations. Replace
12537 occurrences of `PTR' with `void *'.
12538 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12539 * top.h (quit_cover): Likewise.
12540 * defs.h (catch_errors): Likewise.
12541
12542 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12543
12544 * defs.h (XMALLOC): Define.
12545 * gdb-events.sh (XMALLOC): Delete macro.
12546 * gdb-events.c, gdb-events.h: Regenerate.
12547 * gdbarch.sh (XMALLOC): Delete macro.
12548 * gdbarch.c: Regenerate.
12549 * serial.c (XMALLOC): Delete macro.
12550 * ui-file.c (XMALLOC): Ditto.
12551 * ser-unix.h (XMALLOC): Ditto.
12552 * sh-tdep.c (XMALLOC): Ditto.
12553 * ui-out.c (XMALLOC): Ditto.
12554 * utils.c (XMALLOC): Ditto.
12555 * i386-tdep.c (XMALLOC): Ditto.
12556 * gdb-events.c (XMALLOC): Ditto.
12557 * d10v-tdep.c (XMALLOC): Ditto.
12558 * cli-out.c (XMALLOC): Ditto.
12559
12560 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12561 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12562 * ui-file.c, ui-out.c: Ditto.
12563
12564 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12565
12566 * command.h (struct cmd_list_element): Add field context.
12567 (set_cmd_context, get_cmd_context): Declare.
12568 * cli/cli-decode.h: Ditto.
12569 * cli/cli-decode.c (get_cmd_context): New function.
12570 (set_cmd_context): New function.
12571 (add_cmd): Initialize context.
12572 Part of fixing PR gdb/145 and PR gdb/146.
12573
12574 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12575
12576 * cli/cli-decode.c (cmd_type): New function.
12577 * command.h (cmd_type): Declare.
12578 * infrun.c (set_schedlock_func): Call function cmd_type.
12579 * kod.c (kod_set_os): Call cmd_type.
12580 * cris-tdep.c (cris_version_update): Use function cmd_type.
12581 (cris_mode_update, cris_abi_update): Ditto.
12582
12583 * command.h: (execute_cmd_post_hook): Declare.
12584 (execute_cmd_pre_hook): Declare.
12585 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12586 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12587 functions. Execute pre/post hook while ensuring that afterwords
12588 hook_in is cleared.
12589 * top.c (execute_command): Use execute_cmd_post_hook, and
12590 execute_cmd_pre_hook to execute pre/post commands.
12591 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12592 hook_stop_stub.
12593 (hook_stop_stub): Call execute_cmd_pre_hook.
12594
12595 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12596
12597 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12598 set'' and this leads to a core dump. Move xstrdup of
12599 operating_system to after check that it is not NULL.
12600
12601 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12602
12603 * kod.c (kod_set_os): Remove unnecessary check that
12604 ``command->type'' is set_cmd.
12605
12606 * valprint.c (set_input_radix): Use input_radix.
12607 (set_output_radix): Use output_radix.
12608 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12609 isn't reverted.
12610
12611 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12612
12613 * value.h (struct value): Delete field ``substring_addr''. Change
12614 aligner fields to force_doublest_align, force_longest_align,
12615 force_core_addr_align and force_pointer_aligh.
12616
12617 * value.h (struct value): Fix typo in above change.
12618
12619 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12620
12621 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12622 to fix internal_error from ``maintenance print architecture''.
12623
12624 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12625
12626 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12627 for gcc versions after gcc-2.8.1.
12628
12629 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12630
12631 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12632 for method resolution. Restore adjustment of ``this'' pointer after
12633 calling value_struct_elt, which was accidentally removed during the
12634 HP merge.
12635
12636 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12637
12638 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12639 value_of_register.
12640 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12641 get_saved_register.
12642 * value.h (value_of_register): Update.
12643
12644 2002-03-14 Richard Henderson <rth@redhat.com>
12645
12646 * configure.in: Detect declaration for canonicalize_file_name.
12647 * utils.c (canonicalize_file_name): Declare, if needed.
12648 (gdb_realpath): Prefer realpath if available and usable.
12649 * config.in, configure: Rebuild.
12650
12651 2002-03-14 Richard Henderson <rth@redhat.com>
12652
12653 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12654 a constant array bound.
12655
12656 * MAINTAINERS: Add myself to write-after-approval.
12657
12658 2002-03-14 Michael Snyder <msnyder@redhat.com>
12659
12660 * symfile.c (syms_from_objfile): Return immediately if no syms.
12661 (symbol_file_add): Return immediately if no syms.
12662 (find_sym_fns): Return immediately if no syms.
12663
12664 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12665
12666 * gdbserver/remote-util.c (remote_open): Print remote-side's
12667 IP address when remote debugging over the network.
12668
12669 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12670
12671 * config/sparc/fbsd.mh: Fix copyright.
12672 * config/sparc/fbsd.mt: Likewise.
12673
12674 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12675
12676 * MAINTAINERS: Fix typo in name of gdb warnings option.
12677 (x86-64): Fix formating so that this can be parsed by awk.
12678
12679 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12680
12681 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12682 * defs.h: Include "gdb/signals.h".
12683 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12684
12685 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12686
12687 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12688 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12689 from x86-64-tdep.h
12690
12691 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12692 Don Howard <dhoward@redhat.com>
12693
12694 * mips-tdep.c (ST0_FR): Define.
12695 (mips2_fp_compat): New function, temporarily disabled.
12696 (mips_read_fp_register_single): New function.
12697 (mips_read_fp_register_double): New function.
12698 (mips_print_register): Use them.
12699 (do_fp_register_row): Likewise.
12700
12701 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12702
12703 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12704 approval''.
12705
12706 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12707
12708 * stabsread.c (read_member_functions): Fix is_stub test for
12709 static member functions, improve comment.
12710
12711 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12712
12713 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12714 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12715 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12716 commands that set boolean values.
12717 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12718 (arm_rdi_resume): Always initialize PC.
12719 (arm_rdi_open): Don't use rslt as a boolean.
12720 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12721 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12722 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12723 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12724
12725 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12726
12727 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12728 * configure: Rebuilt.
12729
12730 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12731
12732 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12733 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12734
12735 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12736
12737 * cli/cli-decode.c (set_cmd_completer): New function.
12738 * command.h (set_cmd_completer): Declare.
12739 * cli/cli-decode.h (set_cmd_completer): Ditto.
12740
12741 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12742 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12743 * win32-nat.c (_initialize_inftarg): Ditto.
12744 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12745 * proc-api.c (_initialize_proc_api): Ditto.
12746 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12747 * source.c (_initialize_source): Ditto.
12748 * exec.c (_initialize_exec): Ditto.
12749 * solib.c (_initialize_solib): Ditto.
12750 * top.c (init_main): Ditto.
12751 * tracepoint.c (_initialize_tracepoint): Ditto.
12752 * symfile.c (_initialize_symfile): Ditto.
12753 * printcmd.c (_initialize_printcmd): Ditto.
12754 * infcmd.c (_initialize_infcmd): Ditto.
12755 * corefile.c (_initialize_core): Ditto.
12756
12757 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12758
12759 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12760
12761 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12762
12763 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12764
12765 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12766
12767 * NEWS: Update headings, 5.2 has branched.
12768
12769 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12770
12771 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12772 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12773 (register_addr, REGISTER_RAW_SIZE): Likewise.
12774 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12775 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12776
12777 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12778
12779 * MAINTAINERS (x86-64): Add myself.
12780 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12781 changed value_ptr -> struct value *
12782
12783 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12784
12785 * configure.host (sparc64-*-freebsd): Add.
12786 * configure.tgt: Likewise.
12787 * config/sparc/fbsd.mh: New file.
12788 * config/sparc/fbsd.mt: Likewise.
12789 * config/sparc/nm-fbsd.h: Likewise.
12790 * config/sparc/tm-fbsd.h: Likewise.
12791
12792 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12793
12794 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12795 regformats/reg-s390x.dat.
12796
12797 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12798
12799 * utils.c: Add FIXME explaining true/false problem.
12800
12801 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12802
12803 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12804
12805 2002-02-28 Michael Chastain <mec@shout.net>
12806
12807 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12808
12809 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12810
12811 * gdbserver/linux-s390-low.c: New file.
12812 * regformats/reg-s390.dat: New file.
12813 * regformats/reg-s390x.dat: New file.
12814 * gdbserver/configure.srv: Add S/390.
12815 * gdbserver/Makefile.in: Add S/390.
12816 * configure.tgt: Enable gdbserver for S/390.
12817
12818 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12819
12820 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12821 first line of the doc string for "info dos", except at the end of
12822 the sentence, since the short help stops at the first period.
12823
12824 2002-02-28 Jason Merrill <jason@redhat.com>
12825
12826 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12827
12828 2002-02-27 Fred Fish <fnf@redhat.com>
12829
12830 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12831 comment (dumy -> dummy).
12832
12833 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12834
12835 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12836
12837 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12838
12839 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12840
12841 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12842
12843 * gdbserver/acconfig.h: New file.
12844 * gdbserver/i387-fp.c: New file.
12845 * gdbserver/i387-fp.h: New file.
12846 * gdbserver/linux-x86-64.c: New file.
12847 * regformats/reg-x86-64.dat: New file.
12848 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12849 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12850 * gdbserver/configure.in: Add support for regsets.
12851 * gdbserver/config.in: Regenerate.
12852 * gdbserver/configure: Regenerate.
12853 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12854 * gdbserver/linux-low.h: New file.
12855 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12856 for regsets.
12857 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12858 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12859 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12860 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12861 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12862 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12863 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12864 "i387-fp.h". Add PTRACE_GETREGS and friends.
12865 * gdbserver/regcache.c (supply_register): New function.
12866 (supply_register_by_name): New function.
12867 (collect_register): New function.
12868 (collect_register_by_name): New function.
12869
12870 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12871
12872 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12873 (config.status): Add configure.srv dependency.
12874 (server_h): Add config.h dependency.
12875
12876 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12877
12878 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12879 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12880 * gdbserver/configure.srv: Change i386-*-linux* to use
12881 reg-i386-linux.o.
12882
12883 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12884
12885 * x86-64-tdep.c: Re-indent. Update copyright date.
12886
12887 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12888
12889 From Michal Ludvig <mludvig@suse.cz>:
12890 * x86-64-tdep.c (value.h): Delete.
12891 (gdb_assert.h): Include.
12892 (x86_64_register_convert_to_virtual,
12893 x86_64_register_convert_to_raw ): Add check which lets only
12894 floating-point values to be converted.
12895 (value_push): Delete.
12896 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12897 (i386_gdbarch_init): Number of register_bytes fixed.
12898
12899 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12900
12901 * MAINTAINERS: Add x86-64 target.
12902
12903 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12904
12905 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12906 * osfsolib.c (solib_map_sections): Ditto.
12907 * irix5-nat.c (solib_map_sections): Ditto.
12908 * corelow.c (gdb_check_format): Ditto.
12909 * symfile.c (symfile_bfd_open): Ditto.
12910 * solib.c (solib_map_sections): Ditto.
12911 Fix PR gdb/354.
12912
12913 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12914
12915 * remote.c (_initialize_remote): By default, disable ``e'' and
12916 ``E'' step out-of-range packets.
12917
12918 2002-02-26 Andreas Schwab <schwab@suse.de>
12919
12920 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12921 m68k_linux_frame_saved_pc.
12922 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12923 in_sigtramp.
12924 (SIGCONTEXT_PC_OFFSET): Remove.
12925 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12926 m68k_linux_sigtramp_saved_pc): New functions.
12927 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12928 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12929 (UCONTEXT_PC_OFFSET): Define.
12930 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12931 non-RT and RT signal trampolines.
12932
12933 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12934
12935 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12936 (TARGET_NBPG, STACK_END_ADDR): Delete
12937 (VARIABLES_INSIDE_BLOCK): Delete.
12938
12939 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12940
12941 * utils.c (perror_with_name): Make string parameter constant.
12942 (print_sys_errmsg): Ditto.
12943 (query): Ditto.
12944 * defs.h (perror_with_name): Update.
12945 (print_sys_errmsg): Update.
12946 (query): Update.
12947
12948 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12949
12950 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12951 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12952
12953 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12954
12955 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12956 if it already matches the current architecture from the exec file.
12957 Include arch-utils.h for gdbarch_info_init prototype.
12958 * Makefile.in (rs6000-nat.o): Update dependencies.
12959
12960 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12961
12962 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12963 list of exported variables.
12964
12965 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12966
12967 * gdbserver/configure.srv: New file.
12968 * gdbserver/configure.in: Use configure.srv instead
12969 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12970 from it.
12971 * gdbserver/configure: Regenerated.
12972 * gdbserver/terminal.h: New file.
12973 * gdbserver/Makefile.in: Update for configure changes. Remove
12974 more unneeded include paths.
12975
12976 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12977
12978 From wiz at danbala:
12979 * config/sparc/tm-sp64.h: Fix grammar and typos.
12980 Fix PR gdb/287.
12981
12982 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12983
12984 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12985 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12986 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12987 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12988 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12989 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12990 * s390-tdep.c: Ditto.
12991 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12992 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12993 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12994 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12995 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12996 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12997 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12998 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12999 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13000 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13001 Fix PR gdb/378.
13002
13003 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13004
13005 * lin-thread.c: Delete file.
13006 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13007 to gdb_proc_service.h.
13008 * configure: Re-generate.
13009
13010 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13011 * serial.c (serial_open): Delete check for "ocd".
13012 Fix PR gdb/349.
13013
13014 * Makefile.in (linux-thread.o): Delete target.
13015 * linux-thread.c: Delete file.
13016
13017 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13018 renamed SH files to be consistent.
13019
13020 * symtab.c (sort_search_symbols): Use xfree.
13021
13022 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13023
13024 * arm-linux-tdep.c (arm_linux_init_abi): Register
13025 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13026 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13027 definition with undef, since we don't want the sysvr4 definition.
13028 (SKIP_TRAMPOLINE_CODE): Likewise.
13029
13030 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13031
13032 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13033
13034 * configure.in: (AC_CHECK_FUNCS) Added test for
13035 canonicalize_file_name Regenerated.
13036 * config.in, configure: Regenerated.
13037 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13038 defined use canonicalize_file_name.
13039
13040 2002-02-23 Michael Chastain <mec@shout.net>
13041
13042 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13043
13044 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13045
13046 * README: Remove references to cygnus.com.
13047 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13048 dot com'' form. Remove references to cygnus.com and sourceware.
13049
13050 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13051
13052 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13053 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13054 1003.1-2001 no longer allows "head -1".
13055 * gdb/Makefile.in (version.c): Likewise.
13056 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13057 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13058 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13059
13060 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13061
13062 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13063 * command.h (cmd_cfunc_eq): Declare.
13064 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13065
13066 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13067 ``struct cmd_list_element *''.
13068 * cli/cli-cmds.c (is_complete_command): Update. Use
13069 cmd_cfunc_eq.
13070 * top.c (execute_command): Pass the command to
13071 is_complete_command.
13072 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13073
13074 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13075
13076 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13077 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13078 architecture defines.
13079 * s390-tdep.c (s390_gdbarch_init): Likewise.
13080
13081 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13082
13083 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13084 (arm_linux_push_arguments): Likewise.
13085 (arm_linux_init_abi): Register them. Also register linux-specific
13086 call_dummy_words.
13087 (find_minsym_and_objfile): Use strcmp, not STREQ.
13088 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13089 (arm_linux_call_dummy_words): Delete declaration.
13090 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13091 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13092 declarations.
13093 (LOWEST_PC): Delete.
13094
13095 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13096
13097 * maint.c (print_section_info): Do not prepend `0x' to filepos
13098 output, it will be handled by local_hex_string_custom.
13099
13100 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13101
13102 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13103 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13104 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13105
13106 2002-02-22 Jim Blandy <jimb@redhat.com>
13107
13108 Indicate that the bcache functions don't change the strings
13109 they're passed.
13110 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13111 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13112
13113 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13114
13115 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13116
13117 2002-02-21 Christopher Faylor <cgf@redhat.com>
13118
13119 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13120 find the complete path to a loaded DLL.
13121
13122 2002-02-21 Fred Fish <fnf@redhat.com>
13123
13124 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13125 that marks the end of the range of a function, enter a line number
13126 entry that has a line number of zero and a PC offset that matches
13127 the end of the function. This starts a range of PC's for which no
13128 line number information is known.
13129 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13130 PC's for which no line number info is found (line number is zero)
13131 then we didn't find any valid line information.
13132 * symtab.h: Document use of zero line number entry.
13133
13134 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13135
13136 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13137 (have_ptrace_getvrregs): Define for run time checks.
13138 (gdb_vrregset_t): New type for Altivec register handling.
13139 (fetch_register, store_register): Fetch/store altivec register
13140 when needed.
13141 (fetch_altivec_register, store_altivec_register): New functions.
13142 (supply_vrregset, fill_vrregset): New functions.
13143 (fetch_altivec_registers, store_altivec_registers): New functions.
13144 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13145 registers as well.
13146
13147 2002-02-21 Jiri Smid <smid@suse.cz>
13148
13149 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13150
13151 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13152
13153 * Makefile.in (armnbsd-nat.o): Update dependencies.
13154 * armnbsd-nat.c (supply_gregset): New function. Common code to
13155 supply the integer register set.
13156 (supply_fparegset): New function. Similar for FPA registers.
13157 (fetch_regs, fetch_fp_regs): Use them.
13158 (fetch_core_registers): Likewise.
13159 (fetch_elfcore_registers): New function.
13160 (arm_netbsd_elfcore_fns): New core-file type specification.
13161 (_initialize_arm_netbsd_nat): Register it.
13162
13163 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13164
13165 * armnbsd-nat.c: Include gdbcore.h.
13166 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13167 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13168 'void' to declaration, to shut up ARI.
13169 (fetch_core_registers): Make static. Rewrite using supply_register.
13170 (arm_netbsd_core_fns): New core-file type specification.
13171 (_initialize_arm_netbsd_nat): New function.
13172
13173 2002-02-21 Christopher Faylor <cgf@redhat.com>
13174
13175 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13176 value.
13177
13178 2002-02-20 Christopher Faylor <cgf@redhat.com>
13179
13180 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13181 fails.
13182
13183 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13184
13185 * jv-exp.y (parse_number): Change type of implicit longs
13186 to builtin_type_uint64.
13187
13188 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13191 to be an integer instead of a `union wait'.
13192
13193 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13194
13195 * mips-linux-nat.c: Call the operating system GNU/Linux.
13196 * mips-linux-tdep.c: Likewise.
13197 * mips-tdep.c: Likewise.
13198
13199 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13200
13201 Fix PR gdb/265.
13202 * jv-exp.y (parse_number): Handle 64-bit integers.
13203
13204 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13205
13206 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13207 AC_STDC_HEADERS to AC_HEADER_STDC.
13208 * gdbserver/configure: Regenerated.
13209
13210 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13211
13212 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13213 is defined.
13214 * sparc-tdep.c (get_longjmp_target): Likewise.
13215
13216 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13217
13218 * News: Add news about ARM and Multi-arch. Mention the new target
13219 arm*-*-netbsd*.
13220
13221 2002-02-19 Jim Blandy <jimb@redhat.com>
13222
13223 * stabsread.c (error_type_complaint): Improve error message.
13224
13225 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13226
13227 * gdbserver/README: Update documentation.
13228 * gdbserver/configure.in: Update configury to match documentation.
13229 * gdbserver/Makefile.in: Likewise.
13230 * gdbserver/configure: Regenerated.
13231 * gdbserver/aclocal.m4: New file, generated by aclocal.
13232 * gdbserver/config.in: New file, generated by autoheader.
13233
13234 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13235
13236 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13237 armnbsd-nat.c.
13238
13239 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13240
13241 * arm-tdep.h (enum arm_float_model): New enum.
13242 (struct gdbarch_tdep): Add fp_model.
13243 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13244 up floating-point conversions until we know the floating-point model
13245 in use by the inferior. Don't complain about being unable to
13246 determine the ABI of the inferior when we don't have one.
13247 (arm_extract_return_value): Support different floating-point models.
13248 (arm_store_return_value): Likewise.
13249 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13250 ARM_FLOAT_SOFT.
13251 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13252
13253 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13254
13255 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13256 of ``current_gdbarch''.
13257
13258 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13259
13260 * armnbsd-nat.c : ANSIfy all function declarations.
13261 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13262 (fetch_inferior_registers): Re-implement in terms of above.
13263 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13264 (store_inferior_registers): Re-implement in terms of above.
13265
13266 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13267
13268 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13269 kernel.
13270 * arm-linux-tdep.c: Likewise.
13271 * config/arm/tm-linux.h: Likewise.
13272
13273 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13274
13275 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13276 * config/arm/nbsd.mt (TM_FILE): Delete.
13277 * config/arm/tm-nbsd.h: Delete.
13278
13279 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13280
13281 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13282 Initialize CALL_DUMMY_LENGTH.
13283
13284 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13285
13286 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13287 function.
13288 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13289 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13290 defines one thing and that is incorrect for this port.
13291 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13292
13293 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13294
13295 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13296
13297 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13298
13299 * win32-nat.c (display_selector): New function. Displays information
13300 about the information returned by GetThreadSelectorEntry API function.
13301 (display_selectors): New function. Displays the infomation of
13302 the selector given as argument, or of CS, DS ans FS selectors
13303 if no argument is given.
13304 ( _initialize_inftarg): Add "w32" as info prefix command.
13305 Add "info w32 selector" as command calling display_selectors.
13306
13307 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13308
13309 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13310 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13311 if not defined.
13312
13313 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13314
13315 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13316
13317 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13318
13319 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13320 (arm_fix_call_dummy): Call it.
13321 (arm_call_dummy_breakpoint_offset): Delete.
13322 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13323 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13324
13325 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13326
13327 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13328 Default to func_frame_chain_valid.
13329 * gdbarch.h, gdbarch.c: Re-generate.
13330 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13331
13332 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13333
13334 * ppc-linux-nat.c: Update copyright.
13335 (fetch_register, store_register): Add tid parameter, don't compute
13336 tid here.
13337 (fetch_ppc_registers, store_ppc_registers): Add tid
13338 parameter. Pass it along to callees.
13339 (fetch_inferior_registers, store_inferior_registers): Compute tid
13340 here, and pass it to calleed functions.
13341 (fill_gregset, supply_fpregset): Clean up formatting.
13342
13343 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13344
13345 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13346 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13347
13348 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13349
13350 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13351 * gdbarch.c gdbarch.h: Regenerate.
13352 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13353 function.
13354 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13355 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13356 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13357
13358 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13359 * arm-tdep.c (arm_get_longjmp_target): New function.
13360 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13361 this to a positive value register arm_get_longjmp_target as the
13362 longjmp handler.
13363 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13364 (arm_linux_init_abi): Set up longjmp description in tdep.
13365 * armnbsd-nat.c (get_longjmp_target): Delete.
13366 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13367 description in tdep.
13368 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13369 (get_longjmp_target): Delete declaration.
13370 (GET_LONGJMP_TARGET): Delete.
13371 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13372 (GET_LONGJMP_TARGET): Delete.
13373
13374 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13375
13376 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13377 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13378 of ``current_gdbarch''.
13379
13380 2002-02-17 Tom Tromey <tromey@redhat.com>
13381
13382 * cli/cli-cmds.c (compare_strings): New function.
13383 (complete_command): Only print each unique item once.
13384 * completer.h (complete_line): Declare.
13385 * completer.c (complete_line): New function.
13386 (line_completion_function): Use it.
13387
13388 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13389
13390 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13391 * gdbarch.h, gdbarch.c: Re-generate.
13392
13393 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13394
13395 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13396
13397 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13398
13399 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13400 * valops.c (value_arg_coerce): Don't take the address of a reference
13401 to convert an argument to a reference.
13402
13403 2002-02-15 Christopher Faylor <cgf@redhat.com>
13404
13405 * win32-nat.c (get_image_name): New function.
13406 (handle_load_dll): Use get_image_name function.
13407 (get_child_debug_event): Avoid registering debug events until possibly
13408 execed process is started.
13409 (child_create_inferior): Allow invocation via shell so that command
13410 line redirection, etc. works ok.
13411 (_initialize_inftarg): Add new command: "set shell" to control whether
13412 a shell is used to start a process.
13413
13414 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13415
13416 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13417 instead of find_register_by_number.
13418 (cannot_store_register): Likewise.
13419
13420 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13421
13422 * dwarf2read.c: Replace fprintf (stderr, ...) by
13423 fprintf_unfiltered (gdb_stderr, ...).
13424
13425 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13426
13427 * gdbserver/gdbserver.1: Document --attach.
13428
13429 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13430
13431 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13432 descriptions.
13433 * arm-tdep.c (arm_default_arm_le_breakpoint)
13434 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13435 (arm_default_thumb_be_breakpoint): New. Initialize them from
13436 traditional breakpoint defines.
13437 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13438 (arm_gdbarch_init): Initialize new breakpoint variables.
13439 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13440 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13441 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13442 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13443 code out to ...
13444 (arm_netbsd_init_abi_common): ... here; new function.
13445 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13446 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13447 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13448 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13449
13450 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13451
13452 * arm-tdep.h (enum arm_abi): New enum.
13453 (struct gdbarch_tdep): New structure.
13454 (LOWEST_PC): Provide a default.
13455 (arm_gdbarch_register_os_abi): Declare new function.
13456 * arm-tdep.c (arm_abi_names): New array.
13457 (process_note_abi_tag_sections): New function.
13458 (get_elfosabi): New function.
13459 (arm_gdbarch_register_os_abi): New function.
13460 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13461 support for that ABI has been built in, then call the appropriate
13462 configuration routine. Use gdbarch_num_regs() to get the number
13463 of registers.
13464 (arm_dump_tdep): New function.
13465 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13466 place-holder functions.
13467 (_initialize_arm_tdep): Register them.
13468 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13469
13470 * armnbsd-tdep.c: New file.
13471 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13472 * config/arm/nbsd.mt (TDEPFILES): Add it.
13473 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13474
13475 * armnbsd-nat.c: Include regcache.h.
13476 * Makefile.in (armnbsd-nat.o): Update dependency list.
13477
13478 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13479
13480 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13481
13482 * gdbserver/Makefile.in: Fix typos in target rules.
13483
13484 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13485
13486 Fix part of PR gdb/267.
13487 * linespec.c (find_methods): Handle constructors specially for now.
13488
13489 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13490
13491 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13492 handling.
13493 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13494 standard_coerce_float_to_double().
13495
13496 2002-02-14 Christopher Faylor <cgf@redhat.com>
13497
13498 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13499 GDBINIT_FILENAME.
13500
13501 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13502
13503 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13504 find_variant_by_name, because it confuses the multiarch
13505 framework. Return NULL if there isn't an architecture with the
13506 user supplied name, instead of forcing a different one without
13507 recording the change with the multiarch machinery.
13508 (find_variant_by_name): Delete.
13509
13510 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13511
13512 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13513 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13514
13515 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13516
13517 * stack.c (print_frame_info_base): When calling
13518 print_frame_info_listing_hook, set current_source_symtab.
13519
13520 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13521
13522 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13523 and remove unused $(INCLUDE_DIR).
13524 Add regcache.c to OBS.
13525 Add generated register protocol files to clean target.
13526 Update dependencies for new objects, obsolete old target code.
13527
13528 * gdbserver/linux-low.c: Remove all platform-specific code to
13529 new files. Remove various dead code. Update to use regcache
13530 functionality.
13531 * gdbserver/remote-utils.c (fromhex): Add return statement
13532 to quiet warning.
13533 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13534 constant.
13535 (input_interrupt): Add integer parameter to match prototype
13536 of a signal handler.
13537 (outreg): Use register_data ().
13538 (prepare_resume_reply): Use gdbserver_expedite_regs.
13539 * gdbserver/server.c (main): Dynamically allocate own_buf because
13540 PBUFSIZ is no longer constant. Use registers_to_string () and
13541 registers_from_string ().
13542 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13543 for error (), fatal (), and warning (). Update definition of
13544 PBUFSIZ to use regcache functionality. Add include guard.
13545 * gdbserver/utils.c (fatal): Add missing ``const''.
13546 (warning): New function.
13547
13548 * regformats/regdat.sh: Include "regcache.h" in generated files.
13549 Provide init_registers () function.
13550 * regformats/regdef.h: Add prototype for set_register_cache ().
13551 Add include guard.
13552
13553 * gdbserver/linux-arm-low.c: New file.
13554 * gdbserver/linux-i386-low.c: New file.
13555 * gdbserver/linux-ia64-low.c: New file.
13556 * gdbserver/linux-m68k-low.c: New file.
13557 * gdbserver/linux-mips-low.c: New file.
13558 * gdbserver/linux-ppc-low.c: New file.
13559 * gdbserver/linux-sh-low.c: New file.
13560
13561 * gdbserver/regcache.c: New file.
13562 * gdbserver/regcache.h: New file.
13563
13564 * gdbserver/low-linux.c: Removed obsolete file.
13565
13566 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13567
13568 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13569 * config/i386/linux.mt: Likewise.
13570 * config/ia64/linux.mt: Likewise.
13571 * config/m68k/linux.mh: Likewise.
13572 * config/powerpc/linux.mh: Likewise.
13573 * config/mips/linux.mt: Likewise.
13574
13575 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13576
13577 * config/i386/i386lynx.mh: Mark gdbserver variables
13578 as (currently) obsolete for this target.
13579 * config/i386/nbsd.mt: Likewise.
13580 * config/i386/nbsdelf.mt: Likewise.
13581 * config/m32r/m32r.mt: Likewise.
13582 * config/m68k/m68klynx.mh: Likewise.
13583 * config/m68k/nbsd.mt: Likewise.
13584 * config/m68k/sun3os4.mh: Likewise.
13585 * config/mips/vr5000.mt: Likewise.
13586 * config/ns32k/nbsd.mt: Likewise.
13587 * config/pa/hppabsd.mh: Likewise.
13588 * config/pa/hppaosf.mh: Likewise.
13589 * config/powerpc/nbsd.mt: Likewise.
13590 * config/rs6000/rs6000lynx.mh: Likewise.
13591 * config/s390/s390.mt: Likewise.
13592 * config/s390/s390x.mt: Likewise.
13593 * config/sparc/sparclynx.mh: Likewise.
13594 * config/sparc/sun4os4.mh: Likewise.
13595 * config/i386/x86-64linux.mt: Likewise.
13596 * config/sparc/linux.mh: Likewise.
13597
13598 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13599
13600 * configure.tgt: Configure gdbserver only for known working
13601 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13602 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13603 SUBDIRS if it is configured. Update comment for ${nativefile}.
13604 * configure: Regenerated.
13605
13606 2002-02-13 Michael Snyder <msnyder@redhat.com>
13607
13608 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13609
13610 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13611 (default_gcore_mach): Just return 0, work around a problem in bfd.
13612 (default_gcore_target): OK to return NULL if exec_bfd is null.
13613 (make_mem_sec): Use a cast, avoid a warning.
13614
13615 * procfs.c (find_memory_regions_callback): Use a cast instead of
13616 calling host_pointer_to_address (which complains if
13617 sizeof (host pointer) != sizeof (target pointer)).
13618 (procfs_make_note_section): Avoid overflow in psargs string.
13619
13620 * procfs.c (procfs_make_note_section): Make the default
13621 implementation return an error.
13622
13623 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13624
13625 * procfs.c (procfs_make_note_section): Provide a default definition
13626 (for alpha-dec-osf4.0f). Fix typos.
13627
13628 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13629
13630 * linux-proc.c: Add include of regcache.h.
13631 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13632
13633 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13634
13635 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13636 * memattr.c (create_mem_region): Disallow useless empty region.
13637 Regions are half-open intervals, so allow [A..B) [B..C) as
13638 non-overlapping.
13639
13640 2002-02-13 Michael Chastain <mec@shout.net>
13641
13642 * defs.h: Kill CONST_PTR.
13643 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13644 * c-lang.c (c_builtin_types): Likewise.
13645 * ch-lang.c (ch_builtin_types): Likewise.
13646 * f-lang.c (f_builtin_types): Likewise.
13647 * language.c (unknown_builtin_types): Likewise.
13648 * m2-lang.c (m2_builtin_types): Likewise.
13649 * p-lang.c (pascal_builtin_types): Likewise.
13650 * scm-lang.c (c_builtin_types): Likewise.
13651
13652 2002-02-13 Keith Seitz <keiths@redhat.com>
13653
13654 * arm-tdep.h (arm_get_next_pc): Add declaration.
13655
13656 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13657
13658 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13659 with other related struct-returning functions.
13660 (arm_extract_struct_value_address): New function.
13661 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13662 initialize float_format, double_format and long_double_format as
13663 appropriate to the endianness of the target.
13664 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13665 (arm_use_struct_convention): Delete declaration.
13666 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13667
13668 2002-02-13 Keith Seitz <keiths@redhat.com>
13669
13670 * defs.h (core_addr_to_string_nz): New function.
13671
13672 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13673
13674 Apply missing bits of 2002-01-15 patch.
13675 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13676 (fill_fpregset): Use i387_fill_fsave.
13677
13678 2002-02-12 Keith Seitz <keiths@redhat.com>
13679
13680 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13681 (core_addr_to_string_nz): New function.
13682
13683 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13684
13685 * arm-linux-nat.c: Really include arm-tdep.h.
13686 * config/arm/tm-linux.h (struct type, struct value): Declare.
13687
13688 2002-02-11 Michael Snyder <msnyder@redhat.com>
13689
13690 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13691 (gcore section): Ifdef for Solaris and Unixware only.
13692 (procfs_do_thread_registers): Unixware needs one lwpstatus
13693 per thread (not one prstatus or pstatus).
13694 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13695 not over all gdb threads. For unixware, call elfcore_write_pstatus
13696 once before iterating over threads.
13697
13698 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13699
13700 * arm-tdep.h: New file.
13701 * arm-tdep.c: Include arm-tdep.h.
13702 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13703 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13704 (arm_print_float_info, arm_register_type, convert_to_extended)
13705 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13706 (arm_extract_return_value, arm_register_name): Make static.
13707 (arm_software_single_step): Similarly. Fix types in declaration.
13708 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13709 (arm_store_return_value, arm_store_struct_return): New functions.
13710 (arm_gdbarch_init): Register the above functions. Also register
13711 call_dummy_start_offset, sizeof_call_dummy_words,
13712 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13713 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13714 max_register_virtual_size, register_size. Set up
13715 prologue_cache.saved_regs here, rather than ...
13716 (_initialize_arm_tdep): ... here.
13717 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13718 declarations.
13719 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13720 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13721 (arm_print_float_info, arm_register_type, convert_to_extended)
13722 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13723 (arm_extract_return_value, arm_register_name): Delete declarations.
13724 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13725 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13726 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13727 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13728 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13729 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13730 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13731 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13732 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13733 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13734 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13735 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13736 interface.
13737 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13738 * remote-rdi.c remote-rdp.c: Likewise.
13739 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13740 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13741 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13742 definition.
13743
13744 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13745 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13746 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13747 from non-ARM_ prefixed definitions.
13748 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13749 all uses of above.
13750 * remote-rdi.c remote-rdp.c: Likewise.
13751 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13752
13753 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13754
13755 * arm-tdep.c (arm_frameless_function_invocation)
13756 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13757 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13758 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13759 (arm_pop_frame, arm_get_next_pc): Make static.
13760 (arm_gdbarch_init): Register above in gdbarch structure.
13761 (arm_read_fp): Renamed from arm_target_read_fp.
13762 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13763 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13764 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13765 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13766 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13767 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13768 (arm_pc_is_thumb_dummy): Delete declarations.
13769 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13770 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13771 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13772 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13773
13774 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13775
13776 * symtab.c (compare_search_syms): New function.
13777 (sort_search_symbols): New function.
13778 (search_symbols): Sort symbols after searching rather than
13779 before.
13780
13781 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13782
13783 * NEWS: Linux -> GNU/Linux.
13784
13785 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13786
13787 * gdbarch.sh: For for level one methods, disallow a definition
13788 when partially multi-arched. Add comments explaining rationale.
13789 * gdbarch.h: Re-generate.
13790
13791 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13792
13793 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13794 multi-arch partial.
13795
13796 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13797
13798 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13799 field. Use diff -u.
13800 * gdbarch.c: Re-generate.
13801
13802 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13803
13804 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13805 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13806 partial.
13807
13808 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13809
13810 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13811 multi-arch partial.
13812 (PUSH_ARGUMENTS): Switch to using predefault.
13813 * gdbarch.c: Regenerate.
13814
13815 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13816
13817 * valops.c (PUSH_ARGUMENTS): Delete definition.
13818 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13819 partial. Default to default_push_arguments.
13820 * gdbarch.h, gdbarch.c: Regenerate.
13821
13822 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13823
13824 * defs.h (throw_exception): Rename return_to_top_level. Update
13825 comments.
13826 * utils.c (error_stream, internal_verror, quit): Ditto.
13827 * top.c (throw_exception, catcher): Ditto.
13828 * sparclet-rom.c (sparclet_load): Ditto.
13829 * remote.c (interrupt_query, minitelnet): Ditto.
13830 * remote-sds.c (interrupt_query): Ditto.
13831 * remote-mips.c (mips_error, mips_kill): Ditto.
13832 * ocd.c (interrupt_query): Ditto.
13833 * monitor.c (monitor_interrupt_query): Ditto.
13834 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13835 * target.h: Update comment.
13836
13837 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13838
13839 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13840
13841 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13842 default_double_format.
13843 * gdbarch.h, gdbarch.c: Re-generate.
13844 * findvar.c (floatformat_unknown): Delete variable definition.
13845 * doublest.h (floatformat_unknown): Delete variable declaration.
13846
13847 2002-02-09 Jim Blandy <jimb@redhat.com>
13848
13849 * stabsread.c (read_type): Add code to parse Sun's syntax for
13850 prototyped function types.
13851
13852 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13853
13854 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13855 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13856
13857 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13858
13859 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13860 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13861 now _initialize_xcoffsolib gets called again and overrides the
13862 commands from solib.c in a native configuration.
13863
13864 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13865
13866 * doublest.c (store_typed_floating): Don't try to return a value.
13867 Fixes PR gdb/290.
13868
13869 2002-02-08 Jim Blandy <jimb@redhat.com>
13870
13871 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13872 is prototyped and has no arguments, print its argument list as
13873 `(void)'.
13874
13875 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13876
13877 * MAINTAINERS (write-after-approval): Add myself.
13878 (paper-trail): I've escaped!
13879
13880 2002-02-08 Christopher Faylor <cgf@redhat.com>
13881
13882 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13883 changes.
13884 (_initialize_check_for_gdb_ini): Ditto.
13885
13886 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13887
13888 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13889 xaprintf -> xasprintf.
13890
13891 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13892
13893 * win32-nat.c: Remove use of printf and sprintf functions.
13894
13895 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13896
13897 * arm-tdep.c (arm_frame_chain_valid): Make static.
13898 (arm_push_arguments): Likewise.
13899 (arm_gdbarch_init): New function.
13900 (_initialize_arm_tdep): Call it.
13901 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13902 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13903 (FRAME_CHAIN_VALID): Delete.
13904 (arm_frame_chain_valid): Delete declaration.
13905 (PUSH_ARGUMENTS): Delete.
13906 (arm_push_arguments): Delete declaration.
13907 (CALL_DUMMY_P): Delete.
13908
13909 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13910 Corinna Vinschen <vinschen@redhat.com>
13911
13912 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13913 on builtin float types.
13914
13915 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13916
13917 * utils.c: Include <curses.h> before "bfd.h".
13918 * tui/tui-hooks.c: Likewise.
13919 * tui/tui.c: Likewise.
13920 * tui/tuiCommand.c: Likewise.
13921 * tui/tuiData.c: Likewise.
13922 * tui/tuiDataWin.c: Likewise.
13923 * tui/tuiDisassem.c: Likewise.
13924 * tui/tuiGeneralWin.c: Likewise.
13925 * tui/tuiIO.c: Likewise.
13926 * tui/tuiLayout.c: Likewise.
13927 * tui/tuiRegs.c: Likewise.
13928 * tui/tuiSource.c: Likewise.
13929 * tui/tuiSourceWin.c: Likewise.
13930 * tui/tuiStack.c: Likewise.
13931 * tui/tuiWin.c: Likewise.
13932
13933 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13934
13935 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13936 to include space for pseudoregs as well. Update loops accordingly.
13937 (sh_fp_frame_init_saved_regs): Ditto.
13938 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13939
13940 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13941
13942 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13943 Add Richard Earnshaw to Arm maintainers.
13944
13945 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13946
13947 * defs.h (warning_begin): Delete declaration.
13948
13949 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13950 Delete macro.
13951
13952 2002-02-07 Michael Snyder <msnyder@redhat.com>
13953
13954 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13955 Logic bug, remove misplaced else.
13956
13957 2002-02-07 Klee Dienes <klee@apple.com>
13958
13959 * fork-inferior.c (fork_inferior): Add '!' to the list of
13960 characters that need to be quoted when building a string for the
13961 shell. Quote '!' specifically with a backslash, since CSH chokes
13962 when trying to evaluate "str!str".
13963
13964 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13965
13966 * rdi-share/host.h: Only provide a typedef for bool if it is not
13967 defined.
13968
13969 2002-02-04 Michael Snyder <msnyder@redhat.com>
13970
13971 * breakpoint.h (enum bptype): Add new overlay event bp type.
13972 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13973
13974 * breakpoint.c (create_internal_breakpoint): New function.
13975 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13976 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13977 (create_thread_event_breakpoint): Ditto.
13978 (create_solib_event_breakpoint): Ditto.
13979 (create_overlay_event_breakpoint): New function.
13980 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13981 (update_breakpoints_after_exec): Delete and re-initialize
13982 overlay event breakpoints after an exec. Add FIXME comment
13983 about longjmp breakpoint.
13984 (print_it_typical): Ignore overlay event breakpoints.
13985 (print_one_breakpoint): Ditto.
13986 (mention): Ditto.
13987 (bpstat_what): Do not stop for overlay event breakpoints.
13988 (delete_breakpoint): Don't delete overlay event breakpoints.
13989 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13990 (breakpoint_re_set): Re-create overlay event breakpoint.
13991
13992 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13993 (overlay_manual_command): Disable overlay breakpoints.
13994 (overlay_off_command): Disable overlay breakpoints.
13995
13996 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13997
13998 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13999 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14000 to here from config/tm-arm.h.
14001 (coff_sym_is_thumb): Make static.
14002 (arm_elf_make_msymbol_special): New function.
14003 (arm_coff_make_msymbol_special): New function.
14004 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14005 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14006 (coff_sym_is_thumb): Delete declaration.
14007 (arm_elf_make_msymbol_special): Declare.
14008 (arm_coff_make_msymbol_special): Declare.
14009 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14010 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14011
14012 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14013
14014 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14015
14016 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14017
14018 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14019 * gdbarch.c gdbarch.h: Regenerate.
14020 * arch-utils.c (default_print_float_info): New function.
14021 * arch-utils.h (default_print_float_info): Prototype it.
14022 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14023 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14024 (PRINT_FLOAT_INFO): Document it.
14025
14026 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14027 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14028 (PRINT_FLOAT_INFO): Define.
14029
14030 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14031
14032 * win32-nat.c (_initialize_check_for_gdb_ini):
14033 Add typecast to sprintf argument to suppress a warning.
14034
14035 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14036
14037 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14038 to allow easier handling of pass state.
14039 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14040 that gives exception name and address.
14041 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14042 and set last_sig value to ourstatus->value.sig. Some missing
14043 exceptions added.
14044 (child_continue): Correctly report continue_status.
14045 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14046 TARGET_SIGNAL_0 (new default value).
14047 (child_resume): consider sig argument passed to decide if
14048 the exception should be passed to debuggee or not.
14049
14050 2002-02-05 Michael Snyder <msnyder@redhat.com>
14051
14052 * regcache.c (fetch_register): Call target_fetch_register
14053 only if we don't call FETCH_PSEUDO_REGISTER.
14054 (store_register): Call target_store_register only if we
14055 don't call STORE_PSEUDO_REGISTER.
14056
14057 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14058
14059 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14060 ELF_MAKE_MSYMBOL_SPECIAL.
14061 * gdbarch.c, gdbarch.h: Regenerate.
14062 * arch-utils.c (default_make_msymbol_special): New function.
14063 * arch-utils.h (default_make_msymbol_special): Export.
14064 * elfread.c (elf_symtab_read): Compile use of
14065 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14066 multiarched.
14067 * coffread.c (coff_symtab_read): Ditto, for
14068 COFF_MAKE_MSYMBOL_SPECIAL.
14069
14070 2002-02-05 Jim Blandy <jimb@redhat.com>
14071
14072 * solib-svr4.c (svr4_truncate_ptr): New function.
14073 (svr4_relocate_section_addresses): Do the address arithmetic with
14074 the appropriate truncation for target addresses, even when
14075 CORE_ADDR is larger than a target address.
14076
14077 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14078
14079 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14080 to (int *).
14081
14082 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14083
14084 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14085 code.
14086
14087 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14088
14089 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14090
14091 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14092
14093 * gdbserver/linux-low.c: Remove unused include files.
14094
14095 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14096
14097 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14098 (read_inferior_memory): Use it.
14099 (write_inferior_memory): Likewise.
14100
14101 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14102
14103 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14104 grubbing through sys_errlist.
14105
14106 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14107
14108 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14109
14110 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14111 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14112
14113 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14114
14115 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14116 (do_sfunc, set_cmd_sfunc): New functions.
14117
14118 * command.h (struct cmd_list_element): Add field func.
14119 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14120 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14121 * cli/cli-decode.h: Ditto.
14122
14123 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14124 (help_all, help_cmd_list): Ditto.
14125 (find_cmd, complete_on_cmdlist): Ditto.
14126 * top.c (execute_command): Ditto.
14127
14128 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14129 function.sfunc.
14130
14131 * infcmd.c (notice_args_read): Fix function signature.
14132
14133 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14134 * cli/cli-decode.c (add_set_cmd): Ditto.
14135 * utils.c (initialize_utils): Ditto.
14136 * maint.c (_initialize_maint_cmds): Ditto.
14137 * infrun.c (_initialize_infrun): Ditto.
14138 * demangle.c (_initialize_demangler): Ditto.
14139 * remote.c (add_packet_config_cmd): Ditto.
14140 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14141 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14142 * proc-api.c (_initialize_proc_api): Ditto.
14143 * kod.c (_initialize_kod): Ditto.
14144 * valprint.c (_initialize_valprint): Ditto.
14145 * top.c (init_main): Ditto.
14146 * infcmd.c (_initialize_infcmd): Ditto.
14147 * corefile.c (_initialize_core): Ditto.
14148 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14149 * arch-utils.c (initialize_current_architecture): Ditto.
14150 (_initialize_gdbarch_utils): Ditto.
14151 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14152
14153 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14154 * wince.c (_initialize_inftarg): Ditto.
14155 * symfile.c (_initialize_symfile): Ditto.
14156 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14157 * language.c (_initialize_language): Ditto.
14158 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14159
14160 2002-02-04 Michael Snyder <msnyder@redhat.com>
14161
14162 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14163
14164 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14165
14166 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14167 Add rules for building the register data files.
14168
14169 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14170
14171 * regformats/regdat.sh: Add braces to the definition of
14172 expedite_regs_${arch}.
14173
14174 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14175
14176 * regformats/regdef.h (struct reg): Add comment describing the
14177 requirements for offset and size fields.
14178
14179 2002-02-04 Andreas Schwab <schwab@suse.de>
14180
14181 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14182 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14183
14184 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14185
14186 * gdbarch.sh (copyright): Update years in generated header.
14187 (SMASH_TEXT_ADDRESS): Add rule.
14188 * gdbarch.h, gdbarch.c: Re-generate.
14189 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14190 * dbxread.c: Likewise.
14191 * dwarfread.c: Likewise.
14192 * elfread.c: Likewise.
14193 * somread.c: Likewise.
14194
14195 * arm-tdep.c (arm_smash_text_address): New function.
14196 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14197
14198 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14199
14200 Add support for hardware watchpoints on win32 native.
14201 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14202 CONTEXT_DEBUG_REGISTERS.
14203 (dr variable): New variable. Static array containing a local copy
14204 of debug registers.
14205 (debug_registers_changed): New variable. Reflects when debug registers
14206 are changed and need to be written to inferior.
14207 (debug_registers_used): New variable. Reflects when any debug register
14208 was set, used when new threads are created.
14209 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14210 i386-nat code.
14211 (thread_rec): Set dr array if id is the thread of current_event .
14212 (child_continue, child_resume): Change the debug registers for all
14213 threads if debug_registers_changed.
14214 (child_add_thread): Change the debug registers if debug_registers_used.
14215 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14216 Link nm.h to new nm-cygwin.h file.
14217 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14218 of hardware registers.
14219
14220 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14221
14222 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14223 Restore behavour broken by 2002-01-20 Andrew Cagney
14224 <ac131313@redhat.com> IEEE_FLOAT removal.
14225
14226 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14227
14228 * c-valprint.c (c_val_print): Pass a proper valaddr to
14229 cp_print_class_method.
14230 * valops.c (search_struct_method): If there is only one method
14231 and args is NULL, return that method.
14232
14233 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14234
14235 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14236 accessing tag_name directly.
14237
14238 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14239
14240 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14241 of accessing tag_name directly.
14242
14243 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14244
14245 PR gdb/280
14246 * gdbtypes.c (replace_type): New function.
14247 * gdbtypes.h (replace_type): Add prototype.
14248 * stabsread.c (read_type): Use replace_type.
14249
14250 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14251
14252 * Makefile.in (memattr.o): Add missing dependencies rule.
14253
14254 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14255
14256 * breakpoint.c (break_at_finish_command): Really export.
14257 (break_at_finish_at_depth_command): Ditto.
14258 (tbreak_at_finish_command): Ditto.
14259 * hppa-tdep.c: Include completer.h.
14260 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14261 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14262
14263 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14264
14265 * utils.c (do_write): New function.
14266 (error_stream): Rewrite combining the code from error_begin and
14267 verror.
14268 (verror): Rewrite using error_stream.
14269 (error_begin): Delete function.
14270
14271 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14272
14273 * utils.c (error_begin): Make static.
14274 * defs.h (error_begin): Delete declaration.
14275
14276 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14277 (decode_line_1): Use cplusplus_error instead of error_begin,
14278 cplusplus_hint and return_to_top_level.
14279 * coffread.c (coff_symfile_read): Use error instead of error_begin
14280 and return_to_top_level.
14281 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14282
14283 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14284
14285 * language.h (type_error, range_error): Make string parameter
14286 constant.
14287 * language.c (warning_pre_print): Delete extern declaration.
14288 * dwarfread.c (warning_pre_print): Ditto.
14289 * language.c (type_error, range_error): Rewrite to use verror and
14290 vwarning instead of warning_begin.
14291
14292 2002-02-01 Michael Snyder <msnyder@redhat.com>
14293
14294 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14295 (set_ignore_count): Move misplaced comment back where it belongs.
14296
14297 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14298
14299 * command.h (NO_FUNCTION): Delete macro.
14300 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14301 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14302 * tracepoint.c (_initialize_tracepoint): Ditto.
14303 * cli/cli-decode.c (add_set_cmd): Ditto.
14304 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14305
14306 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14307
14308 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14309 Update ``this'' pointer when calling virtual functions.
14310
14311 2002-02-01 Michael Snyder <msnyder@redhat.com>
14312
14313 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14314 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14315
14316 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14317
14318 * regformats/reg-arm.dat: New file.
14319 * regformats/reg-i386.dat: New file.
14320 * regformats/reg-ia64.dat: New file.
14321 * regformats/reg-m68k.dat: New file.
14322 * regformats/reg-mips.dat: New file.
14323 * regformats/reg-ppc.dat: New file.
14324 * regformats/reg-sh.dat: New file.
14325 * regformats/regdef.h: New file.
14326 * regformats/regdat.sh: New file.
14327
14328 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14329
14330 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14331 (arm_frame_args_address, arm_frame_locals_address): New functions.
14332 (arm_frame_num_args): New function.
14333 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14334 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14335 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14336
14337 2002-01-31 Michael Snyder <msnyder@redhat.com>
14338
14339 * breakpoint.c (break_at_finish_command): Export.
14340 (break_at_finish_at_depth_command): Export.
14341 (tbreak_at_finish_command): Export.
14342 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14343 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14344 "txbreak" commands, which are HPPA specific.
14345
14346 * printcmd.c (disassemble_command): Remove an ancient
14347 artifact of an old merge.
14348
14349 * symfile.h (enum overlay_debugging_state):
14350 Define enum constant values for overlay mode.
14351 * symfile.c (overlay_debugging): Use enums instead of literals.
14352 (overlay_is_mapped, overlay_auto_command,
14353 overlay_manual_command): Ditto.
14354
14355 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14356 breakpoint_here_p, breakpoint_inserted_here_p,
14357 breakpoint_thread_match, bpstat_stop_status,
14358 describe_other_breakpoints, check_duplicates, clear_command):
14359 Coding standard fixes.
14360
14361 * target.c (target_xfer_memory): Add spaces, coding standard.
14362 (do_xfer_memory): Add missing line to trust-readonly
14363 code: check bfd SEC_READONLY flag for section.
14364
14365 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14366
14367 * PROBLEMS: Fix typo, 5.1->5.1.1.
14368
14369 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14370
14371 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14372 data symbols, since we search based on textlow and texthigh.
14373 (find_pc_sect_symtab): Likewise.
14374
14375 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14376
14377 * defs.h (vwarning): Declare.
14378 * utils.c (vwarning): New function.
14379 (warning): Call vwarning.
14380 (warning_begin): Delete function.
14381
14382 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14383 the warning message.
14384 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14385 warning_begin.
14386
14387 2002-01-30 Michael Snyder <msnyder@redhat.com>
14388
14389 * NEWS: Mention "set trust-readonly-sections" command.
14390 Mention generate-core-file command.
14391
14392 2002-01-15 Michael Snyder <msnyder@redhat.com>
14393
14394 * target.c: New command, "set trust-readonly-sections on".
14395 (do_xfer_memory): Honor the suggestion to trust readonly sections
14396 by reading them from the object file instead of from the target.
14397 (initialize_targets): Register command "set trust-readonly-sections".
14398
14399 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14400
14401 * parse.c (target_map_name_to_register): Simplify, search regs and
14402 pseudo-regs using a single loop.
14403
14404 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14405
14406 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14407
14408 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14409
14410 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14411 * config/i386/i386v42mp.mh: Add i387-nat.o .
14412 * i386v4-nat.c: Include i387-nat.h.
14413 (supply_fpregset): Use i387_supply_fsave.
14414 (fill_fpregset): Use i387_fill_fsave.
14415
14416 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14417
14418 * arm-tdep.c (arm_call_dummy_words): Define.
14419 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14420 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14421 (CALL_DUMMY_WORDS): Define.
14422 (arm_call_dummy_words): Declare.
14423 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14424 (arm_linux_call_dummy_words): Declare.
14425
14426 2002-01-30 Andreas Schwab <schwab@suse.de>
14427
14428 * m68klinux-nat.c: Fix last change to use regcache_collect
14429 instead of referencing registers[] directly.
14430
14431 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14432
14433 * parse.c (target_map_name_to_register): Delete code wrapped in
14434 #ifdef REGISTER_NAME_ALIAS_HOOK.
14435
14436 2002-01-28 Michael Snyder <msnyder@redhat.com>
14437
14438 * regcache.c (legacy_read_register_gen): Need to be able to
14439 read pseudo-register as well as real register.
14440 (legacy_write_register_gen): Ditto.
14441
14442 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14443
14444 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14445 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14446 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14447 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14448 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14449 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14450 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14451 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14452 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14453 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14454 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14455 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14456 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14457 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14458 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14459 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14460 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14461 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14462 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14463 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14464
14465 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14466
14467 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14468 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14469 (initialize_current_architecture): Update target_byte_order using
14470 information from BFD.
14471 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14472 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14473
14474 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14475
14476 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14477 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14478
14479 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14480 #ifdef INVALID_FLOAT.
14481 * infcmd.c (do_registers_info): Ditto.
14482 * values.c (unpack_double): Ditto. Add comment.
14483
14484 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14485 already commented out.
14486
14487 2002-01-26 Andreas Schwab <schwab@suse.de>
14488
14489 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14490 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14491 registers and add support for PTRACE_GETREGS.
14492
14493 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14494
14495 GDB 5.1.1 released from 5.1 branch.
14496 * NEWS: Add 5.1.1 news.
14497 * README: Sync with 5.1 branch.
14498
14499 2002-01-23 Fred Fish <fnf@redhat.com>
14500
14501 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14502 stabstring on initial malloc. Reallocing will copy it for us,
14503 if necessary.
14504
14505 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14506
14507 * Makefile.in (hpread_h): Delete.
14508 (HFILES_NO_SRCDIR): Remove hpread.h.
14509 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14510 (hpread.o): Update dependencies.
14511 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14512
14513 * hp-psymtab-read.c: Remove file.
14514 * hp-symtab-read.c: Remove file.
14515 * hpread.h: Remove file.
14516
14517 * hpread.c: Merge all contents of hp-psymtab-read.c,
14518 hp-symtab-read.c and hpread.h into this file, as it was prior to
14519 January 1999.
14520
14521 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14522 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14523 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14524 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14525
14526 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14527
14528 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14529 fill_gregset): Call gdbarch_tdep() just once, assign result to
14530 variable and use that, instead of calling the function several
14531 times.
14532
14533 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14534
14535 * configure.host: Accept sparcv9 as alias for sparc64.
14536 * configure.tgt: Likewise.
14537
14538 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14539
14540 * solib-aix5.c (build_so_list_from_mapfile)
14541 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14542 arguments is not reversed.
14543 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14544 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14545
14546 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14547
14548 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14549 modified version of obsolete sh_fetch_pseudo_register.
14550 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14551 (sh4_register_read): New function.
14552 (sh_pseudo_register_write): New function. Renamed and modified
14553 version of obsolete sh_store_pseudo_register.
14554 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14555 (sh4_register_write): New function.
14556 (sh_gdbarch_init): Remove setting of gdbarch function
14557 fetch_pseudo_register and store_pseudo_register. Remove setting of
14558 register_convert_to_raw, register_convert_to_virtual,
14559 register_convertible.
14560 (sh_sh4_register_convertible): Delete. No longer needed. All is
14561 taken care by architecture specific functions
14562 register_read/register_write.
14563 (sh_sh4_register_convert_to_virtual): Make static.
14564 (sh_sh4_register_convert_to_raw): Ditto.
14565
14566 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14567
14568 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14569 (floatformat_is_nan, floatformat_mantissa): Ditto.
14570
14571 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14572 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14573 builtin_type_ieee_double_little,
14574 builtin_type_ieee_double_littlebyte_bigword,
14575 builtin_type_m68881_ext, builtin_type_i960_ext,
14576 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14577 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14578 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14579 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14580
14581 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14582
14583 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14584 parameter. Set frameless flag if it exists and depended of
14585 whether the scanned function is frameless or not.
14586 (xstormy16_skip_prologue): If function is frameless, return
14587 result of xstormy16_scan_prologue().
14588 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14589 call.
14590
14591 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14592
14593 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14594 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14595 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14596 sh_sh4_register_byte, sh_sh4_register_raw_size,
14597 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14598 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14599 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14600 sh_store_pseudo_register, sh_do_pseudo_register): Call
14601 gdbarch_tdep() just once, assign result to variable and use that,
14602 instead of calling the function several times.
14603
14604 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14605
14606 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14607 macros instead of LAST_FPU_CTRL_REGNUM.
14608 (store_register): Likewise.
14609
14610 2002-01-21 Jim Blandy <jimb@redhat.com>
14611
14612 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14613 is up-to-date before running the program, not just when a program
14614 exits.
14615
14616 2002-01-21 Fred Fish <fnf@redhat.com>
14617
14618 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14619 when we have found all instructions we are looking for.
14620
14621 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14622
14623 * arm-tdep.c (arm_register_name): New function.
14624 (arm_registers_names): Make static.
14625 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14626 (arm_register_name): Declare.
14627 (REGISTER_NAME): Use it.
14628
14629 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14630 Kevin Buettner <kevinb@redhat.com>
14631
14632 Convert arm targets to new FRAME interface.
14633 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14634 (arm_frame_find_save_regs): Delete.
14635 (arm_frame_init_saved_regs): New.
14636 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14637 Allocate extra_info as required. Convert all uses of fsr.regs
14638 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14639 to use extra_info.
14640 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14641 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14642 (check_prologue_cache, save_prologue_cache): Likewise.
14643 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14644 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14645 (FRAME_FIND_SAVED_REGS): Delete.
14646 (arm_frame_find_saved_regs): Delete prototype.
14647 (arm_frame_init_saved_regs): New prototype.
14648 (FRAME_INIT_SAVED_REGS): Define.
14649
14650 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14651
14652 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14653
14654 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14655
14656 From Jeff Law <law@redhat.com>:
14657 * infttrace.c: Include <sys/pstat.h>.
14658 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14659 exec file if the ttrace equivalent fails.
14660
14661 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14662
14663 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14664 (closeLogFile): Ditto.
14665
14666 2002-01-20 Michael Chastain <mec@shout.net>
14667
14668 * top.c (print_gdb_version): Bump copyright year to 2002.
14669
14670 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14671
14672 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14673 Zannoni and Eli Zaretskii.
14674
14675 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14676
14677 * buildsym.c: Update copyright years.
14678 * c-typeprint.c: Likewise.
14679 * dwarf2read.c: Likewise.
14680 * f-typeprint.c: Likewise.
14681 * gdbtypes.c: Likewise.
14682 * gdbtypes.h: Likewise.
14683 * hp-symtab-read.c: Likewise.
14684 * hpread.c: Likewise.
14685 * mdebugread.c: Likewise.
14686 * p-typeprint.c: Likewise.
14687
14688 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14689
14690 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14691 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14692 byte-order selectable.
14693 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14694 * arch-utils.c: Ditto.
14695 (set_endian): Ditto.
14696 (set_endian_from_file): Ditto.
14697 * gdbserver/low-sim.c (create_inferior): Ditto.
14698 * gdbarch.sh: Ditto.
14699 * gdbarch.h: Re-generate.
14700 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14701 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14702 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14703 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14704 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14705 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14706 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14707 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14708 macro definition.
14709 * config/mips/tm-wince.h: Remove #undef of macro
14710 TARGET_BYTE_ORDER_SELECTABLE.
14711 * config/sh/tm-wince.h: Ditto.
14712
14713 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14714
14715 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14716 member function fields. Add accessor macro
14717 TYPE_FN_FIELD_ARTIFICIAL.
14718 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14719 * c-typeprint.c (c_type_print_base): Skip artificial member
14720 functions.
14721
14722 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14723
14724 * f-typeprint.c: Delete unused function f_type_print_args.
14725 * p-typeprint.c: Delete unused function pascal_type_print_args.
14726
14727 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14728
14729 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14730 comment. Add ``artificial'' to ``union field_location''.
14731
14732 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14733
14734 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14735 * mdebugread.c (parse_symbol): Likewise.
14736 * stabsread.c (define_symbol): Likewise.
14737 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14738 initializing TYPE_FIELD_BITPOS to n (obsolete).
14739 (hpread_doc_function_type): Likewise.
14740 * hpread.c (hpread_function_type): Likewise.
14741
14742 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14743
14744 * configure.in (host_makefile_frag): Only require a host makefile
14745 fragment when a native build.
14746 * configure: Re-generate.
14747
14748 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14749
14750 * doublest.h (floatformat_from_type): Declare.
14751 * doublest.c (floatformat_from_type): New function.
14752 (convert_typed_floating): Use.
14753
14754 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14755 call to function floatformat_from_type.
14756
14757 * gdbarch.sh (IEEE_FLOAT): Delete.
14758 * gdbarch.h, gdbarch.c: Re-generate.
14759 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14760 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14761 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14762 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14763 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14764 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14765 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14766 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14767 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14768 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14769 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14770 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14771
14772 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14773 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14774 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14775 * sh-tdep.c (sh_gdbarch_init): Ditto.
14776 * mips-tdep.c (mips_gdbarch_init): Ditto.
14777 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14778 * cris-tdep.c (cris_gdbarch_init): Ditto.
14779
14780 2002-01-20 Jiri Smid <smid@suse.cz>
14781
14782 * configure.host, configure.tgt: Support x86-64.
14783 * NEWS: Note new target x86-64.
14784
14785 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14786 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14787 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14788 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14789 x86-64-linux-nat.o): Fix dependencies.
14790
14791 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14792
14793 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14794 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14795 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14796 * config/sparc/xm-sun4os4.h: Delete file.
14797 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14798
14799 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14800
14801 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14802 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14803 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14804 * config/i386/i386lynx.mh (XM_FILE): Delete.
14805 * config/rs6000/xm-rs6000ly.h: Delete file.
14806 * config/sparc/xm-sparclynx.h: Delete file.
14807 * config/m68k/xm-m68klynx.h: Delete file.
14808 * config/i386/xm-i386lynx.h: Delete file.
14809 * config/xm-lynx.h: Delete file.
14810 * config/djgpp/fnchange.lst: Update.
14811
14812 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14813
14814 * alpha-tdep.c (alpha_register_byte): New function.
14815 (alpha_register_raw_size): Ditto.
14816 (alpha_register_virtual_size): Ditto.
14817 (alpha_skip_prologue_internal): Renamed from
14818 alpha_skip_prologue.
14819 (alpha_skip_prologue): New version that calls
14820 alpha_skip_prologue_internal.
14821 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14822 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14823 second argument from alpha_skip_prologue.
14824 (REGISTER_BYTE): Use alpha_register_byte.
14825 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14826 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14827 (FRAMELESS_FUNCTION_INVOCATION): Use
14828 generic_frameless_function_invocation_not.
14829 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14830 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14831
14832 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14833
14834 * config/mips/xm-news-mips.h: Delete file.
14835 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14836
14837 * config/m88k/xm-m88k.h: Delete file.
14838 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14839 * config/m88k/xm-delta88v4.h: Ditto.
14840 * config/m88k/xm-delta88.h: Ditto.
14841
14842 * config/alpha/xm-fbsd.h: Delete file.
14843 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14844
14845 * config/sparc/xm-sparc.h: Delete file.
14846 * Makefile.in (xm-sun4os4.h): Delete dependency.
14847 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14848 * config/sparc/xm-sun4os4.h: Ditto.
14849 * config/sparc/xm-linux.h: Ditto.
14850
14851 * config/i386/xm-windows.h: Delete file.
14852
14853 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14854
14855 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14856 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14857
14858 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14859
14860 * alpha-tdep.c (alpha_call_dummy_words): New.
14861 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14862 (CALL_DUMMY_P): Define.
14863 (CALL_DUMMY_WORDS): Define.
14864 (SIZEOF_CALL_DUMMY_WORDS): Define.
14865
14866 2002-01-19 Per Bothner <per@bothner.com>
14867
14868 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14869 isn't NULL, which can happen with some gcj-3.x-produced code.
14870
14871 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14872
14873 * alpha-tdep.c (alpha_register_virtual_type): New function.
14874 (alpha_init_frame_pc_first): Ditto.
14875 (alpha_fix_call_dummy): Ditto.
14876 (alpha_store_struct_return): Ditto.
14877 (alpha_extract_struct_value_address): Ditto.
14878 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14879 alpha_register_virtual_type.
14880 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14881 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14882 alpha_extract_struct_value_address.
14883 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14884 (INIT_FRAME_PC): Use init_frame_pc_noop.
14885 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14886
14887 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14888
14889 * i386gnu-nat.c: Include "i386-tdep.h".
14890 (fetch_fpregs): Simplify code dealing with uninitialized floating
14891 point states such that it doesn't require FP7_REGNUM.
14892
14893 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14894
14895 * alpha-tdep.c (frame_extra_info): New.
14896 (alpha_find_saved_regs): Make static. Use
14897 frame->extra_info.
14898 (alpha_frame_init_saved_regs): New function.
14899 (alpha_frame_saved_pc): Use frame->extra_info.
14900 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14901 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14902 (init_extra_frame_info): Rename to...
14903 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14904 (alpha_print_extra_frame_info): New function.
14905 (alpha_frame_locals_address): Ditto.
14906 (alpha_frame_args_address): Ditto.
14907 (alpha_pop_frame): Use frame->extra_info.
14908 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14909 alpha_frame_args_address.
14910 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14911 (alpha_find_saved_regs): Remove prototype.
14912 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14913 (EXTRA_FRAME_INFO): Remove.
14914 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14915 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14916
14917 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14918
14919 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14920 (alpha_cannot_fetch_register): Ditto.
14921 (alpha_cannot_store_register): Ditto.
14922 (alpha_register_convertible): Ditto.
14923 (alpha_use_struct_convention): Ditto.
14924 * config/alpha/tm-alpha.h: Update copyright years.
14925 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14926 (INNER_THAN): Use core_addr_lessthan.
14927 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14928 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14929 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14930 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14931 (FRAME_CHAIN): Remove unnecessary cast.
14932
14933 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14934
14935 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14936 obsolete.
14937
14938 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14939
14940 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14941 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14942 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14943 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14944 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14945 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14946 * x86-64-linux-nat.c: Ditto.
14947
14948 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14949
14950 * alpha-tdep.c (alpha_register_name): New function.
14951 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14952 (REGISTER_NAME): Define.
14953
14954 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14955
14956 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14957
14958 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14959
14960 * alpha-tdep.c: Update copyright years.
14961 (alpha_next_pc): New function.
14962 (alpha_software_single_step): Ditto.
14963 * config/alpha/tm-alpha.h: Add prototype for
14964 alpha_software_single_step.
14965
14966 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14967
14968 * alphabsd-nat.c: Update copyright years.
14969 (fill_gregset): Use regcache_collect.
14970 (fill_fpregset): Likewise.
14971 (fetch_inferior_registers): Only fetch integer registers
14972 if requested to do so.
14973 (store_inferior_registers): Only store integer registers
14974 if requested to do so.
14975
14976 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14977
14978 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14979 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14980 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14981 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14982 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14983 * config/arm/linux.mh (XDEPFILES): Delete.
14984 * config/arm/nbsd.mh (XDEPFILES): Delete.
14985 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14986 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14987 * config/i386/i386m3.mh (XDEPFILES): Delete.
14988 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14989 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14990 * config/i386/fbsd.mh (XDEPFILES): Delete.
14991 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14992 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14993 * config/i386/i386v4.mh (XDEPFILES): Delete.
14994 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14995 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14996 * config/i386/i386aix.mh (XDEPFILES): Delete.
14997 * config/i386/go32.mh (XDEPFILES): Delete.
14998 * config/i386/cygwin.mh (XDEPFILES): Delete.
14999 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15000 * config/i386/i386mach.mh (XDEPFILES): Delete.
15001 * config/i386/i386v32.mh (XDEPFILES): Delete.
15002 * config/i386/linux.mh (XDEPFILES): Delete.
15003 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15004 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15005 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15006 * config/i386/i386sco.mh (XDEPFILES): Delete.
15007 * config/i386/i386v.mh (XDEPFILES): Delete.
15008 * config/i386/nbsd.mh (XDEPFILES): Delete.
15009 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15010 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15011 * config/i386/symmetry.mh (XDEPFILES): Delete.
15012 * config/i386/obsd.mh (XDEPFILES): Delete.
15013 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15014 * config/ia64/linux.mh (XDEPFILES): Delete.
15015 * config/ia64/aix.mh (XDEPFILES): Delete.
15016 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15017 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15018 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15019 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15020 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15021 * config/m68k/linux.mh (XDEPFILES): Delete.
15022 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15023 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15024 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15025 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15026 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15027 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15028 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15029 * config/m88k/delta88.mh (XDEPFILES): Delete.
15030 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15031 * config/m88k/m88k.mh (XDEPFILES): Delete.
15032 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15033 * config/mips/linux.mh (XDEPFILES): Delete.
15034 * config/mips/irix6.mh (XDEPFILES): Delete.
15035 * config/mips/irix5.mh (XDEPFILES): Delete.
15036 * config/mips/irix4.mh (XDEPFILES): Delete.
15037 * config/mips/irix3.mh (XDEPFILES): Delete.
15038 * config/mips/decstation.mh (XDEPFILES): Delete.
15039 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15040 (NATDEPFILES): Move core-aout.o to here.
15041 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15042 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15043 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15044 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15045 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15046 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15047 * config/pa/hpux11.mh (XDEPFILES): Delete.
15048 * config/powerpc/aix.mh (XDEPFILES): Delete.
15049 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15050 * config/powerpc/linux.mh (XDEPFILES): Delete.
15051 * config/romp/rtbsd.mh: Rename XDEPFILES.
15052 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15053 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15054 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15055 * config/s390/s390.mh (XDEPFILES): Delete.
15056 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15057 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15058 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15059 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15060 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15061 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15062 * config/sparc/linux.mh (XDEPFILES): Delete.
15063 * config/vax/vaxult.mh (XDEPFILES): Delete.
15064 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15065 * Makefile.in (DEPFILES): Remove XDEPFILES.
15066
15067 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15068
15069 * utils.c (internal_verror): Fix comments, default is yes not no.
15070 Update queries to match. Default to quit and dump core.
15071
15072 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15073
15074 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15075 copyright.
15076 * defs.h, event-top.c, gdbcmd.h: Ditto.
15077 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15078 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15079 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15080 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15081 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15082 * mi/mi-main.c:Ditto.
15083
15084 * stack.c, symfile.c: Update copyright.
15085
15086 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15087
15088 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15089 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15090 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15091 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15092
15093 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15094
15095 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15096 * gdbserver/low-lynx.c (myattach): Likewise.
15097 * gdbserver/low-nbsd.c (myattach): Likewise.
15098 * gdbserver/low-sim.c (myattach): Likewise.
15099 * gdbserver/low-sparc.c (myattach): Likewise.
15100 * gdbserver/low-sun3.c (myattach): Likewise.
15101
15102 * gdbserver/low-linux.c (myattach): New function.
15103
15104 * gdbserver/server.c (attach_inferior): New function.
15105 (main): Handle "--attach".
15106
15107 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15108
15109 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15110 maintainer.
15111
15112 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15113
15114 * c-typeprint.c (is_type_conversion_operator): Add additional
15115 check for non-conversion operators.
15116
15117 2002-01-15 Michael Snyder <msnyder@redhat.com>
15118
15119 * linux-proc.c: Add "info proc" command, a la procfs.c.
15120 (read_mapping): New function, abstract and re-use code.
15121 (linux_find_memory_regions): Use new func read_mapping.
15122 (linux_info_proc_cmd): New function, implement "info proc".
15123 (_initialize_linux_proc): Add new command "info proc".
15124
15125 2002-01-15 Michael Snyder <msnyder@redhat.com>
15126
15127 * symfile.c (generic_load): Use bfd_map_over_sections method
15128 instead of manipulating bfd structure members directly.
15129 (add_section_size_callback): New function, bfd sections callback
15130 used by generic_load.
15131 (load_sections_callback): New function, bfd sections callback
15132 used by generic_load.
15133
15134 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15135
15136 [Based on work by Jim Blandy]
15137 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15138 (builtin_type_vec128): Export.
15139 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15140 types.
15141 (builtin_type_vec128): New builtin type for 128 bit vector
15142 registers.
15143 (build_gdbtypes): Initialize builtin_type_v16qi and
15144 builtin_type_v8hi. Create the vec128 register builtin type
15145 structure.
15146 (build_builtin_type_vec128): New function.
15147 (_initialize_gdbtypes): Register builtin_type_v16qi and
15148 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15149 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15150 AltiVec register to new builtin type.
15151
15152 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15153
15154 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15155 to make_cv_type.
15156
15157 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15158
15159 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15160 CLEAN_UP_REGISTER_VALUE.
15161 * regcache.c (supply_register): Update only call.
15162
15163 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15164
15165 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15166 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15167 a29k-*-vxworks* targets as obsolete.
15168
15169 2002-01-14 Michael Snyder <msnyder@redhat.com>
15170
15171 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15172 until we can resolve portability issues.
15173 * gregset.h: Remove references to fpxregs.
15174 * gcore.c (gcore_command): Initialize note_sec to NULL.
15175
15176 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15177
15178 * signals.c (target_signal_to_name): Rewrite. Only use
15179 signals[].name when in bounds and non-NULL.
15180
15181 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15182
15183 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15184 * signals.c (target_signal_to_name): Verify that SIG is within the
15185 bounds of the signals array.
15186
15187 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15188
15189 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15190
15191 2002-01-13 Keith Seitz <keiths@redhat.com>
15192
15193 * stack.c (print_frame_info_base): Print the frame's pc
15194 only if when print_frame_info_listing_hook is not defined.
15195
15196 2002-01-13 Keith Seitz <keiths@redhat.com>
15197
15198 * varobj.c (varobj_set_value): Make sure that there were no
15199 errors evaluating the object before attempting to set its
15200 value.
15201 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15202 so this offset adjustment is no longer necessary.
15203 (create_child): Don't set the error flag if the child is
15204 a CPLUS_FAKE_CHILD.
15205 (value_of_child): If value_fetch_lazy fails, return NULL
15206 so that callers will be notified that an error occurred.
15207 (c_value_of_variable): Delay check of variable's validity
15208 until later. We actually want all structs and unions to have
15209 the value "{...}".
15210 Do not return "???" for variables which could not be evaluated.
15211 This error condition must be returned to the caller so that it
15212 can get the error condition from gdb.
15213 (cplus_name_of_child): Adjust index for vptr before figuring
15214 out the name of the child.
15215 (cplus_value_of_child): If a child's (real) parent is not valid,
15216 don't even bother trying to give a value for it. Just return
15217 an error. Change all instances in this function.
15218 (cplus_type_of_child): If our parent is one of the "fake"
15219 parents, we need to get at the type of the real parent, and
15220 derive the child's true type using this information.
15221
15222 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15223
15224 From 2002-01-09 John Marshall <johnm@falch.net>:
15225 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15226 sources.redhat.com, and tweak some related URLs which had
15227 suffered from linkrot.
15228
15229 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15230
15231 From Jeff law:
15232 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15233 structures passed in registers.
15234
15235 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15236
15237 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15238 white space which prevented compilation. Reported by DSK
15239 <dsk@student.unsw.edu.au>.
15240
15241 2002-01-11 Michael Snyder <msnyder@redhat.com>
15242
15243 * symfile.c (build_section_addr_info_from_section_tab):
15244 Use bfd access method instead of manipulating bfd directly.
15245 (syms_from_objfile): Ditto.
15246 (simple_overlay_update_1): Ditto.
15247 (simple_overlay_update): Ditto.
15248 (generic_load): Ditto.
15249 (overlay_unmapped_address): FIXME comment, bfd access methods.
15250 (sections_overlap): FIXME comment, bfd access methods.
15251 (pc_in_mapped_range): FIXME comment, bfd access methods.
15252 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15253 (section_is_mapped): FIXME comment, bfd access methods.
15254 (section_is_overlay): FIXME comment, bfd access methods.
15255
15256 * symfile.c (generic_load): Whitespace and long line cleanups.
15257 Remove duplicate variable, change several local variables to
15258 more appropriate data types.
15259 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15260
15261 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15262
15263 From Peter Schauer:
15264 * language.c (longest_local_hex_string_custom): Use phex_nz to
15265 convert NUM to a hex string.
15266
15267 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15268
15269 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15270 the function.
15271 Update Copyright year.
15272
15273 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15274
15275 * language.c (longest_raw_hex_string): Delete unused function.
15276
15277 2002-01-11 Petr Sorfa <petrs@caldera.com>
15278
15279 * MAINTAINERS (write-after-approval): Add myself.
15280 * dwarf2read.c (read_tag_string_type): Handling of
15281 DW_AT_byte_size.
15282 (read_tag_string_type): FORTRAN fix to prevent propagation of
15283 first string size.
15284 (set_cu_language): Handling of DW_LANG_Fortran95
15285
15286 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15287
15288 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15289 GETPID(inferior_ptid).
15290 (store_inferior_registers): Likewise.
15291
15292 2002-01-10 Jason Merrill <jason@redhat.com>
15293
15294 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15295 Fix DW_OP_minus.
15296
15297 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15298
15299 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15300 and bfd/elf32-sh-nbsd.c.
15301
15302 2002-01-10 Michael Snyder <msnyder@redhat.com>
15303
15304 * NEWS: Mention --pid and corefile/proc-id behavior change.
15305
15306 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15307 * gcore.c: Include cli/cli-decode.h instead of command.h.
15308
15309 * main.c (captured_main): Add new command line option "--pid".
15310 If the second command line argument (following the symbol-file)
15311 begins with a digit, try to attach to it before trying to open
15312 it as a corefile.
15313 (print_gdb_help): Document the "--pid" argument.
15314
15315 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15316
15317 * completer.c (command_completer): New function.
15318
15319 * completer.h <command_completer>: Add prototype.
15320
15321 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15322 completer for the "help" command.
15323
15324 2002-01-09 Jason Merrill <jason@redhat.com>
15325
15326 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15327
15328 2002-01-09 Michael Snyder <msnyder@redhat.com>
15329
15330 * i386-linux-nat.c (fill_fpxregset): Make global.
15331 (store_fpxregset): Ditto.
15332
15333 * gregset.h (gdb_fpxregset_t): Define.
15334 (supply_fpxregset): Prototype.
15335 (fill_fpxregset): Prototype.
15336
15337 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15338
15339 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15340
15341 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15342 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15343 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15344
15345 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15346
15347 * MAINTAINERS: Update target maintainer rules so that any
15348 Maintainer can approve a tested patch for a maintenance-only
15349 target.
15350
15351 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15352
15353 * MAINTAINERS (write-after-approval): Add myself.
15354
15355 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15356 IN_SIGTRAMP.
15357
15358 2002-01-08 Michael Snyder <msnyder@redhat.com>
15359
15360 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15361 real name of the executable, rather than the /proc name.
15362
15363 2002-01-03 Michael Snyder <msnyder@redhat.com>
15364
15365 Implement a "generate-core-file" command in gdb, save target state.
15366 * gcore.c: New file. Implement new command 'generate-core-file'.
15367 Save a corefile image of the current state of the inferior.
15368 * linux-proc.c: Add linux-specific code for saving corefiles.
15369 * target.h (struct target_ops): Add new target vectors for saving
15370 corefiles; to_find_memory_regions and to_make_corefile_notes.
15371 (target_find_memory_regions): New macro.
15372 (target_make_corefile_notes): New macro.
15373 * target.c (update_current_target): Inherit new target methods.
15374 (dummy_find_memory_regions): New place-holder method.
15375 (dummy_make_corefile_notes): New place-holder method.
15376 (init_dummy_target): Initialize new dummy target vectors.
15377 * exec.c (exec_set_find_memory_regions): New function.
15378 Allow the exec_ops vector for memory regions to be taken over.
15379 (exec_make_note_section): New function, target vector method.
15380 * defs.h (exec_set_find_memory_regions): Export prototype.
15381 * procfs.c (proc_find_memory_regions): New function, corefile method.
15382 (procfs_make_note_section): New function, corefile method.
15383 (init_procfs_ops): Set new target vector pointers.
15384 (find_memory_regions_callback): New function.
15385 (procfs_do_thread_registers): New function.
15386 (procfs_corefile_thread_callback): New function.
15387 * sol-thread.c (sol_find_memory_regions): New function.
15388 (sol_make_note_section): New function.
15389 (init_sol_thread_ops): Initialize new target vectors.
15390 * inftarg.c (inftarg_set_find_memory_regions): New function.
15391 Allow to_find_memory_regions vector to be taken over.
15392 (inftarg_set_make_corefile_notes): New function.
15393 Allow to_make_corefile_notes vector to be taken over.
15394 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15395 interface layer if not target_has_execution (may be a corefile).
15396 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15397 * config/sparc/sun4sol2.mh: Ditto.
15398 * config/alpha/alpha-linux.mh: Ditto.
15399 * config/arm/linux.mh: Ditto.
15400 * config/i386/x86-64linux.mh: Ditto.
15401 * config/ia64/linux.mh: Ditto.
15402 * config/m68k/linux.mh: Ditto.
15403 * config/mips/linux.mh: Ditto.
15404 * config/powerpc/linux.mh: Ditto.
15405 * config/sparc/linux.mh: Ditto.
15406
15407 2002-01-07 Michael Snyder <msnyder@redhat.com>
15408
15409 * arm-linux-nat.c: Remove references to regcache.c internal data
15410 (registers[] and register_valid[]).
15411
15412 2002-01-07 Michael Snyder <msnyder@redhat.com>
15413
15414 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15415 so that attaching to a pid will automatically read the process's
15416 symbol file and shlibs.
15417 * Makefile.in: Add rule for linux-proc.o.
15418 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15419 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15420 * config/arm/linux.mh: Ditto.
15421 * config/i386/linux.mh: Ditto.
15422 * config/i386/x86-64linux.mh: Ditto.
15423 * config/ia64/linux.mh: Ditto.
15424 * config/m68k/linux.mh: Ditto.
15425 * config/mips/linux.mh: Ditto.
15426 * config/powerpc/linux.mh: Ditto.
15427 * config/sparc/linux.mh: Ditto.
15428
15429 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15430
15431 * win32-nat.c: Add i386-tdep.h dependency.
15432
15433 2002-01-07 Michael Snyder <msnyder@redhat.com>
15434
15435 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15436 instead of bfd_get_arch_size. Don't bail out just because
15437 there's no exec_bfd.
15438
15439 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15440 * p-valprint.c (pascal_object_print_value): Ditto.
15441 * somread.c (som_symtab_read): Ditto.
15442 * symfile.c (simple_free_overlay_region_table): Ditto.
15443 * valops.c (value_assign): Ditto.
15444
15445 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15446 use tilde_expand and strerror for opening save-tracepoints file.
15447
15448 * thread-db.c (thread_db_new_objfile): Indendation fix.
15449
15450 * infptrace.c (GDB_MAX_ALLOCA): New define.
15451 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15452 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15453 can be overridden with whatever value is appropriate to the host).
15454 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15455 alloca to allocate potentially large buffer.
15456 * rs6000-nat.c (child_xfer_memory): Ditto.
15457 * symm-nat.c (child_xfer_memory): Ditto.
15458 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15459
15460 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15461
15462 From Nick Clifton <nickc@redhat.com>
15463 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15464
15465 2002-01-07 Michael Snyder <msnyder@redhat.com>
15466
15467 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15468 Don't use exec_bfd if it's NULL.
15469
15470 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15471
15472 * valops.c (value_arg_coerce): Fix formatting.
15473
15474 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15475
15476 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15477 * gnu-nat.c: Ditto.
15478
15479 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15480
15481 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15482 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15483 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15484 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15485 z8k-coff have not been multi-arched. Update z8k-coff build
15486 status.
15487
15488 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15489
15490 * MAINTAINERS: Mark a29k target as obsolete.
15491 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15492 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15493 comments.
15494 * NEWS: Note that a29k targets are obsolete.
15495 * a29k-tdep.c: Mark as obsolete.
15496 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15497 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15498 a29k-*-vxworks* targets as obsolete.
15499 * remote-adapt.c: Obsolete.
15500 * remote-eb.c: Obsolete.
15501 * remote-mm.c: Obsolete.
15502 * remote-udi.c: Obsolete.
15503 * config/a29k/a29k-udi.mt: Obsolete.
15504 * config/a29k/a29k.mt: Obsolete.
15505 * config/a29k/tm-a29k.h: Obsolete.
15506 * config/a29k/tm-vx29k.h: Obsolete.
15507 * config/a29k/vx29k.mt: Obsolete.
15508
15509 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15510
15511 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15512 with BFD_ENDIAN_BIG.
15513
15514 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15515
15516 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15517 * configure, config.in: Re-generate.
15518 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15519 * defs.h: Do not include <endian.h>.
15520
15521 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15522
15523 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15524 * config.in: Regenerate.
15525 * configure.in: Update copyright years.
15526 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15527 * configure: Regenerate.
15528 * i386bsd-nat.c: Update copyright years.
15529 (fill_gregset): Use regcache_collect.
15530 (fetch_inferior_registers): Only fetch integer registers
15531 if requested to do so. Add support for XMM registers
15532 using PT_GETXMMREGS.
15533 (store_inferior_registers): Only store integer registers
15534 if requested to do so. Add support for XMM registers
15535 using PT_SETXMMREGS.
15536 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15537 (store_inferior_registers): Remove.
15538 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15539 (fetch_elfcore_registers): New function.
15540 (i386nbsd_elfcore_fns): New.
15541 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15542 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15543 i386bsd-nat.o.
15544 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15545 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15546 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15547 * config/i386/tm-nbsd.h: Update copyright years.
15548 (HAVE_SSE_REGS): Define.
15549 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15550 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15551 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15552 (SIGCONTEXT_PC_OFFSET): Remove.
15553 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15554
15555 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15556
15557 * configure.tgt: Remove powerpc-*-macos* target.
15558 * config/m68k/xm-mpw.h: Delete file.
15559 * config/xm-mpw.h: Delete file.
15560 * ser-mac.c: Delete file.
15561 * mpw-make.sed: Delete file.
15562 * mpw-config.in: Delete file.
15563 * mac-xdep.c: Delete file.
15564 * mac-gdb.r: Delete file.
15565 * mac-defs.h: Delete file.
15566 * mac-nat.c: Delete file.
15567 * config/powerpc/macos.mh: Delete file.
15568 * config/powerpc/macos.mt: Delete file.
15569 * config/powerpc/nm-macos.h: Delete file.
15570 * config/powerpc/tm-macos.h: Delete file.
15571 * source.c (openp, open_source_file): Remove obsolete code.
15572 * top.c (gdb_readline): Ditto.
15573 * utils.c (query): Ditto.
15574 * event-top.c (display_gdb_prompt): Ditto.
15575 * Makefile.in (ser-mac.o): Delete obsolete target.
15576 * NEWS: Update.
15577
15578 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15579
15580 * defs.h (BIG_ENDIAN): Delete macro definition.
15581 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15582 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15583 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15584 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15585 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15586 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15587 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15588 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15589 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15590 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15591 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15592 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15593 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15594 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15595 * gdbarch.c: Re-generate.
15596
15597 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15598
15599 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15600 for core files.
15601
15602 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15603
15604 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15605
15606 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15607
15608 * value.h (value_ptr): Delete typedef.
15609
15610 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15611
15612 * i386nbsd-nat.c: Update copyright years.
15613 Include i386-tdep.h.
15614
15615 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15616
15617 * stabsread.c: Update copyright years.
15618
15619 From Debashis Mahata <debashis.mahata@wipro.com>:
15620 (read_struct_fields): Deal with Sun C compiler erroneous stab
15621 output for structs and unions.
15622 Fix PR gdb/269.
15623
15624 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15625
15626 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15627 prototype.
15628
15629 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15630
15631 * cp-abi.c: Fix whitespace.
15632 (baseclass_offset): New wrapper function.
15633 * cp-abi.h (baseclass_offset): Add prototype.
15634 (struct cp_abi_ops): Add baseclass_offset pointer.
15635
15636 * valops.c (vb_match): Move to...
15637 * gnu-v2-abi.c (vb_match): here.
15638 * valops.c (baseclass_offset): Move to...
15639 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15640
15641 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15642
15643 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15644 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15645 * hpacc-abi.c (init_hpacc_ops): Likewise.
15646
15647 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15648
15649 * valops.c (find_overload_match): Accept obj as a
15650 reference parameter. Update it before returning.
15651 * value.h (find_overload_match): Update prototype.
15652 * eval.c (evaluate_subexp_standard): Pass object to
15653 find_overload_match by reference.
15654
15655 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15656
15657 * valarith.c: Replace value_ptr with struct value pointer. Remove
15658 register attribute from value declarations.
15659 * valops.c: Ditto.
15660 * value.h: Ditto.
15661 * scm-lang.c (scm_lookup_name): Ditto.
15662
15663 2002-01-03 Michael Snyder <msnyder@redhat.com>
15664
15665 Abstract the functionality of iterating over mapped memory
15666 regions into a general purpose iterator function.
15667 * procfs.c (iterate_over_mappings): New function, general purpose
15668 iterator for memory sections.
15669 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15670 (solib_mappings_callback): New function, callback for above.
15671 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15672 (info_mappings_callback): New function, callback for above.
15673
15674 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15675
15676 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15677
15678 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15679 * i386-tdep.c: Include "elf-bfd.h".
15680 (process_note_abi_tag_sections): New function.
15681 (i386_gdbarch_init): Add code to recognize various OS/ABI
15682 combinations.
15683
15684 * maint.c (_initialize_maint_cmds): Add missing \ in
15685 string-literal.
15686
15687 For older changes see ChangeLog-2001
15688 \f
15689 Local Variables:
15690 mode: change-log
15691 left-margin: 8
15692 fill-column: 74
15693 version-control: never
15694 End:
This page took 0.416459 seconds and 5 git commands to generate.