2003-01-08 David Carlton <carlton@math.stanford.edu>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-08 David Carlton <carlton@math.stanford.edu>
2
3 * linespec.c (decode_line_1): Move code into decode_variable.
4 (decode_variable): New function.
5
6 2003-01-08 Andrew Cagney <ac131313@redhat.com>
7
8 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
9
10 2003-01-08 Andrew Cagney <cagney@redhat.com>
11
12 * cris-tdep.c (cris_frame_init_saved_regs): Use
13 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
14 saved_regs buffer.
15 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
16 (sh64_nofp_frame_init_saved_regs): Ditto.
17 (sh_fp_frame_init_saved_regs): Ditto.
18 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
19 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
20 * mcore-tdep.c (analyze_dummy_frame): Ditto.
21 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
22
23 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
24
25 * minsyms.c (lookup_minimal_symbol): Update comment.
26 (lookup_minimal_symbol_text): Update comment. Use the hash table.
27 (lookup_minimal_symbol_solib_trampoline): Likewise.
28
29 2003-01-08 Andrew Cagney <cagney@redhat.com>
30
31 * d10v-tdep.c (d10v_init_extra_frame_info): Use
32 frame_relative_level.
33
34 * alpha-tdep.c: Use get_frame_extra_info.
35 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
36 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
37 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
38 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
39
40 * alpha-tdep.c: Use get_next_frame.
41 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
42 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
43 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
44 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
45 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
46 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
47 * xstormy16-tdep.c: Ditto.
48
49 2003-01-07 Andrew Cagney <cagney@redhat.com>
50
51 * alpha-tdep.c: Use get_frame_base.
52 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
53 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
54 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
55 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
56 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
57 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
58 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
59 * config/sparc/tm-sparc.h: Ditto.
60
61 2003-01-07 Andrew Cagney <cagney@redhat.com>
62
63 * frame.c (deprecated_get_frame_context): New function.
64 (deprecated_set_frame_context): New function.
65 * frame.h (deprecated_get_frame_context): Declare.
66 (deprecated_set_frame_context): Declare.
67 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
68 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
69
70 2003-01-07 Andrew Cagney <cagney@redhat.com>
71
72 * frame.c (deprecated_set_frame_next_hack): New function.
73 (deprecated_set_frame_prev_hack): New function.
74 * frame.h (deprecated_set_frame_next_hack): Declare.
75 (deprecated_set_frame_prev_hack): Declare.
76 * mcore-tdep.c (analyze_dummy_frame): Use
77 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
78 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
79
80 2003-01-07 David Carlton <carlton@math.stanford.edu>
81
82 * linespec.c (decode_line_1): Move code into decode_dollar.
83 (decode_dollar): New function.
84
85 2003-01-07 Andrew Cagney <cagney@redhat.com>
86
87 * arm-tdep.c (arm_init_extra_frame_info): Use
88 deprecated_update_frame_base_hack.
89 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
90 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
91 (fix_frame_pointer): Ditto.
92 (mn10300_analyze_prologue): Ditto.
93
94 2003-01-07 Andrew Cagney <cagney@redhat.com>
95
96 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
97 extra_info using frame_extra_info_zalloc.
98 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
99 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
100 (sh64_init_extra_frame_info): Ditto.
101 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
102 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
103 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
104 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
105 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
106 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
107 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
108 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
109 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
110 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
111 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
112 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
113
114 * mn10300-tdep.c (analyze_dummy_frame): Use
115 deprecated_set_frame_extra_info_hack.
116 * mcore-tdep.c (analyze_dummy_frame): Ditto.
117
118 2003-01-07 J. Brobecker <brobecker@gnat.com>
119
120 * mdebugread.c (parse_symbol): Skip stProc entries which storage
121 class is not scText. These do not define "real" procedures.
122 (parse_partial_symbols): Likewise.
123
124 2003-01-06 Michael Snyder <msnyder@redhat.com>
125
126 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
127
128 2003-01-06 Andrew Cagney <ac131313@redhat.com>
129
130 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
131 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
132 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
133 deprecated_frame_xmalloc_with_cleanup.
134 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
135 deprecated_frame_xmalloc.
136 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
137 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
138
139 2003-01-06 Andrew Cagney <cagney@redhat.com>
140
141 * x86-64-linux-tdep.c: Include "osabi.h".
142 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
143
144 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
145
146 2003-01-06 Andrew Cagney <cagney@redhat.com>
147
148 * MAINTAINERS (Target Instruction Set Architectures): Update
149 arm-elf. Can be built with -Werror, has been multiarched.
150
151 * value.h (unpack_long): Make buffer parameter constant.
152 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
153 * scm-lang.h (scm_parse): Ditto.
154 * defs.h (extract_typed_address, extract_address): Ditto.
155 (extract_long_unsigned_integer): Ditto.
156 * inferior.h (unsigned_pointer_to_address): Ditto.
157 (signed_pointer_to_address): Ditto.
158 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
159 * gdbarch.h, gdbarch.c: Regenerate.
160 * findvar.c (extract_long_unsigned_integer): Update.
161 (extract_address): Update.
162 (extract_typed_address): Update.
163 (unsigned_pointer_to_address): Update.
164 * values.c (unpack_long): Update.
165 (unpack_double): Update.
166 (unpack_pointer): Update.
167 (unpack_field_as_long): Update.
168 * d10v-tdep.c (d10v_pointer_to_address): Update.
169 * avr-tdep.c (avr_pointer_to_address): Update.
170 * scm-lang.c (scm_unpack): Update.
171 * findvar.c (signed_pointer_to_address): Update.
172
173 2003-01-06 Michal Ludvig <mludvig@suse.cz>
174
175 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
176 since it is in i386-tdep.c.
177
178 2003-01-06 J. Brobecker <brobecker@gnat.com>
179
180 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
181 failure introduced in the previous change.
182
183 2003-01-05 Michael Chastain <mec@shout.net>
184
185 * README: Remove references to deleted remote-*.c files:
186 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
187 remote-nrom.c, remote-os9k.c, remote-udi.c.
188
189 2003-01-05 Mark Kettenis <kettenis@gnu.org>
190
191 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
192 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
193 i386_get_longjmp_target.
194
195 2003-01-05 Andrew Cagney <ac131313@redhat.com>
196
197 * arm-tdep.c (prologue_cache): Change to a pointer.
198 (_initialize_arm_tdep): Allocate prologue_cache.
199 (check_prologue_cache): Update.
200 (save_prologue_cache): Update.
201 (arm_gdbarch_init): Update.
202
203 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
204
205 * stabsread.c (update_method_name_from_physname): Call complaint()
206 instead of error.
207
208 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
209
210 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
211 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
212 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
213
214 * blockframe.c: Include "gdbcmd.h" and "command.h".
215 (backtrace_below_main): New variable.
216 (file_frame_chain_valid, func_frame_chain_valid)
217 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
218 (generic_func_frame_chain_valid): Remove functions.
219 (frame_chain_valid, do_flush_frames_sfunc): New functions.
220 (_initialize_blockframe): New function.
221 * Makefile.in (blockframe.o): Update dependencies.
222 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
223 comment. Call frame_chain_valid ().
224 * frame.h: Remove old prototypes. Add prototype for
225 frame_chain_valid and update comments to match.
226 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
227 Remove old comment.
228 * gdbarch.h: Regenerated.
229 * gdbarch.c: Regenerated.
230
231 * alpha-tdep.c (alpha_gdbarch_init): Don't call
232 set_gdbarch_frame_chain_valid.
233 * avr-tdep.c (avr_gdbarch_init): Likewise.
234 * cris-tdep.c (cris_gdbarch_init): Likewise.
235 * frv-tdep.c (frv_gdbarch_init): Likewise.
236 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
237 * i386-tdep.c (i386_svr4_init_abi): Likewise.
238 (i386_nw_init_abi): Likewise.
239 (i386_gdbarch_init): Likewise.
240 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
241 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
242 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
243 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
244 * mips-tdep.c (mips_gdbarch_init): Likewise.
245 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
246 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
247 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
248 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
249 * s390-tdep.c (s390_gdbarch_init): Likewise.
250 * sh-tdep.c (sh_gdbarch_init): Likewise.
251 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
252 * v850-tdep.c (v850_gdbarch_init): Likewise.
253 * vax-tdep.c (vax_gdbarch_init): Likewise.
254 * x86-64-tdep.c (x86_64_init_abi): Likewise.
255
256 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
257 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
258 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
259 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
260 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
261 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
262 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
263 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
264
265 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
266
267 * Makefile.in (acconfig_h): Remove incorrect macro.
268 (config_h): Define.
269 (osabi.o): Update dependencies.
270 * configure.tgt: Set gdb_osabi based on target triplet.
271 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
272 * configure: Regenerated.
273 * config.in: Regenerated.
274 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
275 (GDB_OSABI_DEFAULT): Define if not already defined.
276 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
277 (set_osabi_string): New variables.
278 (gdbarch_register_osabi): Add new OS ABI to
279 gdb_osabi_available_names.
280 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
281 (set_osabi, show_osabi): New functions.
282 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
283
284 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
285
286 * arch-utils.c (gdbarch_info_init): Set osabi to
287 GDB_OSABI_UNINITIALIZED.
288 * gdbarch.sh: Add osabi to struct gdbarch and to struct
289 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
290 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
291 * gdbarch.c: Regenerated.
292 * gdbarch.h: Regenerated.
293 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
294 there's no BFD.
295 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
296 * osabi.h (enum gdb_osabi): Move to defs.h.
297 (gdbarch_init_osabi): Update prototype.
298 * defs.h (enum gdb_osabi): Moved here.
299 * Makefile.in: Update dependencies.
300
301 * alpha-tdep.h: Don't include "osabi.h".
302 (struct gdbarch_tdep): Remove osabi member.
303 * alpha-tdep.c: Include "osabi.h".
304 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
305 iterate over arches. Update call to gdbarch_init_osabi.
306 (alpha_dump_tdep): Don't dump osabi.
307 * alpha-linux-tdep.c: Include "osabi.h".
308 * alpha-osf1-tdep.c: Include "osabi.h".
309 * alphafbsd-tdep.c: Include "osabi.h".
310 * alphanbsd-tdep.c: Include "osabi.h".
311
312 * arm-tdep.h: Don't include "osabi.h".
313 (struct gdbarch_tdep): Remove osabi member.
314 * arm-tdep.c: Include "osabi.h".
315 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
316 iterate over arches. Update call to gdbarch_init_osabi.
317 (arm_dump_tdep): Don't dump osabi.
318 * arm-linux-tdep.c: Include "osabi.h".
319 * armnbsd-tdep.c: Include "osabi.h".
320
321 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
322 Update call to gdbarch_init_osabi.
323
324 * i386-tdep.h: Don't include "osabi.h".
325 (struct gdbarch_tdep): Remove osabi member.
326 * i386-tdep.c: Include "osabi.h".
327 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
328 iterate over arches. Update call to gdbarch_init_osabi.
329 (i386_dump_tdep): Don't dump osabi.
330 * i386-linux-tdep.c: Include "osabi.h".
331 * i386-sol2-tdep.c: Include "osabi.h".
332 * i386bsd-tdep.c: Include "osabi.h".
333 * i386gnu-tdep.c: Include "osabi.h".
334 * i386ly-tdep.c: Include "osabi.h".
335 * i386nbsd-tdep.c: Include "osabi.h".
336 * i386obsd-tdep.c: Include "osabi.h".
337
338 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
339 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
340 check osabi when iterating over arches. Update call to
341 gdbarch_init_osabi.
342 (mips_dump_tdep): Don't dump osabi.
343
344 * ns32k-tdep.h: Don't include "osabi.h".
345 (struct gdbarch_tdep): Remove.
346 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
347 gdbarch_lookup_osabi. Don't iterate over arches. Don't
348 allocate tdep. Update call to gdbarch_init_osabi.
349 (ns32k_dump_tdep): Remove.
350 (_initialize_ns32k_tdep): Update call to gdbarch_register.
351 * ns32knbsd-tdep.c: Include "osabi.h".
352
353 * ppc-tdep.h: Don't include "osabi.h".
354 (struct gdbarch_tdep): Remove osabi member.
355 * rs6000-tdep.c: Include "osabi.h".
356 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
357 osabi when iterating over arches. Update call to
358 gdbarch_init_osabi.
359 (rs6000_dump_tdep): Don't dump osabi.
360 * ppc-linux-tdep.c: Include "osabi.h".
361 * ppcnbsd-tdep.c: Include "osabi.h".
362
363 * sh-tdep.h: Don't include "osabi.h".
364 (struct gdbarch_tdep): Remove osabi member.
365 * sh-tdep.c: Include "osabi.h".
366 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
367 iterate over arches. Update call to gdbarch_init_osabi.
368 (sh_dump_tdep): Don't dump osabi.
369 * shnbsd-tdep.c: Include "osabi.h".
370
371 * sparc-tdep.c: Include "osabi.h".
372 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
373 iterate over arches. Update call to gdbarch_init_osabi.
374 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
375 tdep structure.
376
377 * vax-tdep.h: Don't include "osabi.h".
378 (struct gdbarch_tdep): Remove.
379 * vax-tdep.c: Include "osabi.h".
380 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
381 iterate over arches. Don't allocate tdep. Update call
382 to gdbarch_init_osabi.
383 (vax_dump_tdep): Remove.
384 (_initialize_vax_tdep): Update call to gdbarch_register.
385
386 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
387
388 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
389 entirely.
390 (breakpoint_re_set_one): Don't fetch the value for a disabled
391 watchpoint.
392
393 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
394
395 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
396 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
397 (COERCE_FLOAT_TO_DOUBLE): Remove.
398 * gdbarch.c: Regenerate.
399 * gdbarch.h: Regenerate.
400 * Makefile.in: Remove value_h from gdbarch_h.
401 * valops.c (coerce_float_to_double): New variable.
402 (default_coerce_float_to_double): Remove.
403 (standard_coerce_float_to_double): Remove.
404 (value_arg_coerce): Use coerce_float_to_double.
405 (_initialize_valops): Add "set coerce-float-to-double".
406 * value.h (default_coerce_float_to_double): Remove prototype.
407 (standard_coerce_float_to_double): Remove prototype.
408
409 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
410 prototyped.
411 * mdebugread.c (parse_symbol): Likewise.
412 * stabsread.c (define_symbol): Mark all functions as prototyped.
413
414 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
415 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
416 set_gdbarch_coerce_float_to_double.
417 * arm-tdep.c (arm_gdbarch_init): Likewise.
418 * frv-tdep.c (frv_gdbarch_init): Likewise.
419 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
420 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
421 * mips-tdep.c (mips_gdbarch_init): Likewise.
422 (mips_coerce_float_to_double): Remove.
423 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
424 (rs6000_coerce_float_to_double): Remove.
425 * s390-tdep.c (s390_gdbarch_init): Likewise.
426 * sh-tdep.c (sh_gdbarch_init): Likewise.
427 (sh_coerce_float_to_double): Remove.
428 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
429 (sparc_coerce_float_to_double): Remove.
430 * v850-tdep.c (v850_gdbarch_init): Likewise.
431 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
432 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
433 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
434 (hppa_coerce_float_to_double): Remove prototype.
435 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
436
437 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
438
439 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
440
441 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
442
443 Suggested by Stewart Brown <sb24@avaya.com>:
444 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
445 in recursive calls. Handle TYPE_CODE_TYPEDEF.
446 (c_type_print_varspec_suffix): Likewise.
447
448 2003-01-04 Mark Kettenis <kettenis@gnu.org>
449
450 * configure.in: Don't set and AC_SUBST SUBDIRS.
451 * configure: Regenerated.
452
453 * configure.in: Remove code dealing with shared libraries.
454 * Makefile.in: Remove HLDFLAGS and HLDENV.
455 * configure: Regenerated.
456
457 2003-01-04 Andrew Cagney <ac131313@redhat.com>
458
459 * frame.c (deprecated_frame_xmalloc): New function.
460 (deprecated_set_frame_saved_regs_hack): New function.
461 (deprecated_set_frame_extra_info_hack): New function.
462 * frame.h (deprecated_frame_xmalloc): Declare.
463 (deprecated_set_frame_saved_regs_hack): Declare.
464 (deprecated_set_frame_extra_info_hack): Declare.
465
466 2003-01-04 Mark Kettenis <kettenis@gnu.org>
467
468 * configure.in: Move code that provides the --enable-gdbtk option
469 right after the code that handles the --enable-tui option, and
470 polish it somewhat.
471 * configure: Regenerated.
472
473 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
474 AC_CHECK_FUNCS and remove the old check for pread64.
475 * acinclude.m4 (AC_GNU_SOURCE): New macro.
476 * acconfig.h (_GNU_SOURCE): Add.
477 (HAVE_PREAD64): Remove.
478 * configure, aclocal.m4, config.in: Regenerated.
479
480 2003-01-03 Andrew Cagney <ac131313@redhat.com>
481
482 * alpha-tdep.c: Use get_frame_saved_regs.
483 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
484 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
485 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
486 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
487 * vax-tdep.c, xstormy16-tdep.c: Ditto.
488
489 2003-01-03 Mark Kettenis <kettenis@gnu.org>
490
491 * configure.in: Remove all use of the SUBDIRS variable; add
492 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
493 code providing the --enable-multi-ice option, and move it right in
494 front of the code that checks whether gdbserver is supported.
495 Polish that too.
496 * configure: Regenerated.
497 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
498 @SUBDIRS@.
499
500 2003-01-03 Andrew Cagney <cagney@redhat.com>
501
502 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
503 * avr-tdep.c, cris-tdep.c: Ditto.
504 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
505 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
506
507 2003-01-03 Mark Kettenis <kettenis@gnu.org>
508
509 * configure.in: Remove --enable-netrom option.
510 * configure: Regenerated.
511
512 2003-01-03 Mark Kettenis <kettenis@gnu.org>
513
514 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
515 declaration for `struct re_pattern_buffer' instead.
516 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
517
518 2003-01-03 J. Brobecker <brobecker@gnat.com>
519
520 * mdebugread.c (parse_symbol): Count until the stEnd matching
521 the structure name.
522
523 2003-01-02 Mark Kettenis <kettenis@gnu.org>
524
525 * configure.in: Remove --with-cpu option.
526 subscripts. Remove evil changequotes here.
527 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
528 * config.in, configure: Regenerated.
529
530 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
531 * configure.in: Cleanup section that sources GDB and BFD configure
532 subscripts. Remove evil changequotes here.
533 * config.in, configure: Regenerated.
534
535 2003-01-02 Andrew Cagney <ac131313@redhat.com>
536
537 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
538 frame accessor methods.
539 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
540 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
541 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
542 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
543 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
544 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
545 * z8k-tdep.c: Ditto.
546
547 2003-01-02 Mark Kettenis <kettenis@gnu.org>
548
549 * configure.in: Remove UI_OUT configuration code.
550 * ada-lang.c: Update assuming UI_OUT is always true.
551 * Makefile.in (UIOUT_CFLAGS): Remove.
552 * configure: Regenerated.
553 * TODO: Remove blurb about elimination of -DUI_OUT.
554
555 * configure.in: Move code that provides the --enable-gdbcli,
556 --enable-gdbmi options right before the code that handles the
557 --enable-tui option. Polish a bit.
558 * configure: Regenerated.
559
560 * configure.in: Rewrite check for GNU regex and the
561 --without-included regex option, and move it into the "Checks for
562 library functions" section. This makes us use the system regex
563 again by default on systems with version 2 of the GNU C library.
564 This was apparently broken.
565 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
566 * acconfig.h (USE_INCLUDED_REGEX): Remove.
567 * config.in, configure: Regenerated.
568
569 * configure.in: Move code that provides the --enable-tui option
570 before the "Checks for libraries" section. Polish the code
571 somewhat and set need_curses to yes if we build the TUI. Rewrite
572 code that looks for a library providing termcap functionality to
573 match more closely what's done in the Readline library, and move
574 it into to the "Checks for libraries" section.
575 * configure: Regenerated.
576 * Makefile.in (TERMCAP): Remove variable.
577 * config/i386/go32.mh (TERMCAP): Remove variable.
578
579 2003-01-02 Andrew Cagney <ac131313@redhat.com>
580
581 * MAINTAINERS: Mention gdb_mbuild.sh.
582 * gdb_mbuild.sh: Rewrite.
583
584 2003-01-02 Mark Kettenis <kettenis@gnu.org>
585
586 * configure.in: Fix typo in last change.
587 * config.in, configure: Regenerated.
588
589 2003-01-02 Andrew Cagney <ac131313@redhat.com>
590
591 * valarith.c (value_binop): Delete obsolete code and comments.
592 * configure.host: Ditto.
593 * buildsym.h (make_blockvector): Ditto.
594 * buildsym.c (make_blockvector): Ditto.
595 * defs.h (enum language): Ditto.
596 (chill_demangle): Ditto.
597 * elfread.c (elf_symtab_read): Ditto.
598 * dwarfread.c (CHILL_PRODUCER): Ditto.
599 (set_cu_language): Ditto.
600 (handle_producer): Ditto.
601 * expprint.c (print_subexp): Ditto.
602 * gdbtypes.c (chill_varying_type): Ditto.
603 * gdbtypes.h (builtin_type_chill_bool): Ditto.
604 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
605 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
606 (chill_varying_type): Ditto.
607 * language.h (_LANG_chill): Ditto.
608 * language.c (binop_result_type, integral_type): Ditto.
609 (character_type, string_type, structured_type): Ditto.
610 (lang_bool_type, binop_type_check): Ditto.
611 * stabsread.h (os9k_stabs): Ditto.
612 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
613 (define_symbol, read_type, read_struct_fields): Ditto.
614 (read_array_type, read_enum_type, read_huge_number): Ditto.
615 (read_range_type, start_stabs): Ditto.
616 * symfile.c (init_filename_language_table): Ditto.
617 (add_psymbol_with_dem_name_to_list): Ditto.
618 * symtab.c (symbol_init_language_specific): Ditto.
619 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
620 * symtab.h (struct general_symbol_info): Ditto.
621 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
622 * typeprint.c (typedef_print): Ditto.
623 * utils.c (fprintf_symbol_filtered): Ditto.
624 * valops.c (value_cast, search_struct_field, value_slice): Delete
625 obsolete code.
626 (varying_to_slice): Delete function.
627 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
628 (varying_to_slice): Delete declaration.
629 * MAINTAINERS: Update.
630
631 2003-01-02 Mark Kettenis <kettenis@gnu.org>
632
633 * configure.in: Reorganize "Checks for library functions section"
634 a bit. Remove check for `btowc' and `isascii' functions.
635 * configure: Regenerated.
636
637 * acconfig.h (_MSE_INT_H): Remove.
638 * configure.in: Create "Checks for header files" section, and move
639 appropriate tests there. Don't check for objlist.h, wchar.h,
640 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
641 misdetection fix. Also add "Checks for types", "Checks for
642 compiler characteristics" and "Checks for library functions"
643 sections.
644 * config.in, configure: Regenerated.
645
646 * configure.in: Create "Checks for programs" section, and move
647 appropriate tests there.
648
649 2003-01-01 Mark Kettenis <kettenis@gnu.org>
650
651 * configure.in: Create "Checks for libraries" section, and move
652 appropriate tests there. Cleanup check for wctype in libw. Use
653 AC_SEARCH_LIBS to see whether we need libsocket.
654 * configure: Regenerated.
655
656 2002-12-31 Mark Kettenis <kettenis@gnu.org>
657
658 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
659 * config.in, configure: Regenerated.
660
661 2002-12-31 Mark Kettenis <kettenis@gnu.org>
662
663 * gdb_dirent.h: Cleanup and update code to match the example in
664 the Autoconf manual.
665 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
666 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
667 * configure: Regenerated.
668
669 2002-12-30 Adam Fedor <fedor@gnu.org>
670
671 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
672 (yylex): Initialize c to avoid uninitialized warning.
673
674 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
675
676 * doc/fdl.texi: Revert the last change.
677
678 2002-12-29 Mark Kettenis <kettenis@gnu.org>
679
680 * tracepoint.c (ISATTY): Removed.
681
682 2002-12-26 J. Brobecker <brobecker@gnat.com>
683
684 Continuing work to convert the hppa targets to multiarch partil.
685
686 * hppa-tdep.c: Add some missing forward declarations.
687 (frameless_function_invocation): Prefix the function name
688 by "hppa_" to avoid polluting the namespace. Update all calls
689 to use the new function name.
690 (saved_pc_after_call): Ditto.
691 (init_extra_frame_info): Ditto.
692 (frame_chain): Ditto.
693 (push_dummy_frame): Ditto.
694 (target_read_pc): Ditto.
695 (target_write_pc): Ditto.
696 (in_solib_call_trampoline): Ditto.
697 (in_solib_return_trampoline): Ditto.
698 (skip_trampoline_code): Ditto.
699 (hppa_read_fp): New function, renamed from target_read_fp.
700 (hppa_target_read_fp): New function, using hppa_read_fp.
701 This function conforms to the function profile for the
702 READ_FP gdbarch method.
703 (hppa_extract_struct_value_address): New function, extracted
704 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
705 macro.
706 (hppa_frame_num_args): New function.
707 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
708
709 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
710 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
711 for the switch to multiarch partial.
712 Update some of the macros definitions to match some changes
713 described above in the name of the function they are calling.
714 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
715 not be straightforward to convert. Do now wrap it inside
716 "#if !... #endif" to remember that this macro has still not
717 been taken care of.
718 (FIX_CALL_DUMMY): Likewise.
719
720 2002-12-26 J. Brobecker <brobecker@gnat.com>
721
722 Continuing work to convert the hppa targets to multiarch partial.
723
724 * hppa-tdep.c (hppa_register_raw_size): New function replacing
725 the body of macro REGISTER_RAW_SIZE.
726 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
727 config/pa/tm-hppah.h. These functions will be used to initialize
728 the gdbarch structure.
729 (hppa_hpux_pc_in_sigtramp): New function.
730 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
731 (hppa_hpux_frame_base_before_sigtramp): New function.
732 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
733 Add gdbcore.h #include.
734 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
735 of this gdbarch-eligible macro to a call to the new associated
736 function.
737 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
738 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
739 into a call to the new associated function.
740 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
741 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
742 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
743
744 2002-12-24 David Carlton <carlton@math.stanford.edu>
745
746 * config/sparc/tm-sparc.h: Delete duplicate definition of
747 DEPRECATED_PC_IN_CALL_DUMMY.
748
749 2002-12-24 Kevin Buettner <kevinb@redhat.com>
750
751 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
752 $(gdb_assert_h).
753 * configure.tgt: Recognize mips64*-*-linux*.
754 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
755 (supply_32_bit_reg): New function.
756 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
757 (fill_gregset): Use regcache_collect() instead of
758 deprecated_registers[].
759 (register_addr): Change name to mips_linux_register_addr().
760 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
761 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
762 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
763 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
764 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
765 (MIPS64_LINUX_JB_PC): New defines.
766 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
767 (mips64_elf_fpregset_t): New typedefs.
768 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
769 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
770 (mips64_linux_register_addr, set_mips_linux_register_addr)
771 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
772 (init_register_addr_data)
773 New functions.
774 (fetch_core_registers): Add support for core file formats with 64-bit
775 registers.
776 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
777 (register_addr_data): New static global variable.
778 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
779 gdbarch_register_osabi() for each MIPS machine.
780 * config/mips/linux64.mt: New file.
781 * config/mips/tm-linux64.h: New file.
782
783 2002-12-23 Adam Fedor <fedor@gnu.org>
784
785 * maint.c (maintenance_demangle): Add switch to demangle
786 ObjC language symbols as well.
787
788 2002-12-23 Adam Fedor <fedor@gnu.org>
789
790 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
791 last argument from complaint function call.
792
793 2002-12-23 Kevin Buettner <kevinb@redhat.com>
794
795 * exec.c (print_section_info): Add FIXME comments regarding format
796 string choices.
797
798 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
799
800 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
801 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
802
803 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
804
805 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
806
807 2002-12-23 David Carlton <carlton@math.stanford.edu>
808
809 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
810 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
811 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
812 information associated to a minsym, not lookup_symbol.
813
814 2002-12-21 Mark Kettenis <kettenis@gnu.org>
815
816 * x86-64-tdep.h (x86_64_init_abi): New prototype.
817 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
818 (x86_64_init_abi): Make non-static. Set number of pseudo
819 registers to 0.
820 (x86_64_gdbarch_init): Remove function.
821 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
822 Remove code dealing with dissambly.
823 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
824 (_initialize_x86_64_linux_tdep): New function.
825 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
826 i386-tdep.o.
827
828 2002-12-14 Mark Kettenis <kettenis@gnu.org>
829
830 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
831 (struct gdb_osabi_handler): Remove member `arch'. Add member
832 `arch_info'.
833 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
834 construct a `struct bfd_arch_info' and store it in the `struct
835 gdb_osabi_handler' that is created.
836 (gdbarch_init_osabi): Check for compatibility based on machine
837 type and architecture.
838 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
839 comment.
840 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
841 second argument in call to gdbarch_register_osabi.
842 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
843 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
844 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
845 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
846 * arm-tdep.c (_initialize_arm_tdep): Likewise.
847 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
848 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
849 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
850 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
851 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
852 * i386-tdep.c (_initialize_i386_tdep): Likewise.
853 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
854 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
855 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
856 _initialize_i386bsd_tdep and updated likewise.
857 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
858 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
859 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
860 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
861 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
862 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
863 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
864 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
865 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
866 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
867
868 2002-12-20 Kevin Buettner <kevinb@redhat.com>
869
870 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
871 DT_MIPS_RLD_MAP case for 64-bit targets.
872
873 2002-12-20 Kevin Buettner <kevinb@redhat.com>
874
875 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
876 ``temp_saved_regs'', not the pointer or other storage contiguous
877 to this pointer.
878
879 2002-12-20 Kevin Buettner <kevinb@redhat.com>
880
881 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
882 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
883 (mips_linux_get_longjmp_target): Delete declarations.
884 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
885 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
886 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
887 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
888 (mips_linux_get_longjmp_target)
889 (mips_linux_svr4_fetch_link_map_offsets): Make static.
890 (mips_linux_init_abi): New function.
891 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
892
893 2002-12-19 Keith Seitz <keiths@redhat.com>
894
895 patch committed by Elena Zannoni <ezannoni@redhat.com>
896 * thread.c (do_captured_list_thread_ids): Call prune_threads and
897 target_find_new_threads. Fix for PR mi/669.
898
899 2002-12-19 David Carlton <carlton@math.stanford.edu>
900
901 * linespec.c (decode_line_1): Move code into decode_all_digits.
902 (decode_all_digits): New function.
903
904 2002-12-19 Kevin Buettner <kevinb@redhat.com>
905
906 * exec.c (print_section_info): Select a format string to use with
907 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
908
909 2002-12-18 Andrew Cagney <ac131313@redhat.com>
910
911 * frame.c (deprecated_update_current_frame_pc_hack): Replace
912 deprecated_update_current_frame_pc_hack.
913 (deprecated_update_frame_base_hack): New function.
914 * frame.h (deprecated_update_frame_pc_hack): Replace
915 (deprecated_update_frame_base_hack): Declare.
916 * infrun.c (normal_stop): Update.
917
918 2002-12-18 Andrew Cagney <ac131313@redhat.com>
919
920 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
921 frame_extra_info_zalloc.
922 (rs6000_frame_args_address): Use get_frame_extra_info.
923 (frame_get_saved_regs): Use get_frame_saved_regs.
924 (frame_initial_stack_address): Use get_frame_saved_regs and
925 get_frame_extra_info.
926 (frame_initial_stack_address): Use get_frame_extra_info.
927
928 2002-12-17 Kevin Buettner <kevinb@redhat.com>
929
930 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
931 array size.
932 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
933 checks for r3900_regnames[].
934
935 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
936
937 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
938 All uses changed
939 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
940
941 2002-12-17 David Carlton <carlton@math.stanford.edu>
942
943 * symtab.c (lookup_partial_symbol): Don't search past the end of
944 the partial symbols.
945
946 2002-12-17 Andrew Cagney <ac131313@redhat.com>
947
948 * stack.c (frame_info): Use get_frame_saved_regs.
949 * breakpoint.c (until_break_command): Use get_frame_pc.
950
951 2002-12-16 Kevin Buettner <kevinb@redhat.com>
952
953 * buildsym.c (block_end_complaint, anon_block_end_complaint)
954 (innerblock_complaint, innerblock_anon_complaint)
955 (blockvector_complaint): Delete deprecated complaint structs.
956 (finish_block, make_blockvector, end_symtab): Replace calls
957 to complain() with calls to complaint().
958 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
959 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
960 (unexpected_type_complaint, bad_sclass_complaint)
961 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
962 Delete deprecated complaint structs.
963 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
964 Replace calls to complain() with calls to complaint().
965 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
966 (unknown_symtype_complaint, unknown_symchar_complaint)
967 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
968 (lbrac_mismatch_complaint, repeated_header_complaint)
969 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
970 Delete deprecated complaint structs.
971 (unknown_symtype_complaint, lbrac_mismatch_complaint)
972 (repeated_header_complaint)
973 (function_outside_compiliation_unit_complaint): New functions.
974 (add_old_header_file, find_corresponding_bincl_psymtab)
975 (set_namestring, find_stab_function_addr, read_dbx_symtab)
976 (process_one_symbol): Replace calls to complain() with, possibly
977 indirect, calls to complaint().
978 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
979 (unknown_attribute_form, unknown_attribute_length)
980 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
981 (const_ignored, botched_modified_type, op_deref2, op_deref4)
982 (basereg_not_handled, dup_user_type_allocation)
983 (dup_user_type_definition, missing_tag, bad_array_element_type)
984 (subscript_data_items, unhandled_array_subscript_format)
985 (unknown_array_subscript_format, not_row_major)
986 (missing_at_name): Delete deprecated complaint structs.
987 (bad_die_ref_complaint, unknown_attribute_form_complaint)
988 (dup_user_type_definition_complaint)
989 (bad_array_element_type_complaint): New functions.
990 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
991 (decode_subscript_data_item, dwarf_read_array_type)
992 (read_tag_string_type, read_subroutine_type, read_func_scope)
993 (locval, scan_partial_symbols, decode_modified_type)
994 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
995 (attribute_size): Replace calls to complain() with, possibly
996 indirect, calls to complaint().
997 * elfread.c (section_info_complaint, section_info_dup_complaint)
998 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
999 Delete deprecated complaint structs.
1000 (elf_symtab_read, elfstab_offset_sections): Replace calls to
1001 complain() with calls to complaint().
1002 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1003 struct.
1004 (stub_noname_complaint): New function.
1005 (check_typedef, add_mangled_type): Replace calls to complain()
1006 with calls to complaint().
1007 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1008 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1009 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1010 (hpread_array_complaint, hpread_type_lookup_complaint)
1011 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1012 (hpread_unhandled_common_complaint)
1013 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1014 struct definitions and declarations.
1015 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1016 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1017 Replace calls to complain() with, possibly indirect, calls to
1018 complaint().
1019 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1020 Likewise.
1021 * mdebugread.c (bad_file_number_complaint, index_complaint)
1022 (aux_index_complaint, block_index_complaint)
1023 (unknown_ext_complaint, unknown_sym_complaint)
1024 (unknown_st_complaint, block_overflow_complaint)
1025 (basic_type_complaint, unknown_type_qual_complaint)
1026 (array_index_type_complaint, bad_tag_guess_complaint)
1027 (block_member_complaint, stEnd_complaint)
1028 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1029 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1030 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1031 (bad_continued_complaint, bad_rfd_entry_complaint)
1032 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1033 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1034 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1035 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1036 complaint structs.
1037 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1038 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1039 (unexpected_type_code_complaint)
1040 (function_outside_compilation_unit_complaint): New functions.
1041 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1042 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1043 Replace calls to complain() with, possibly indirect calls to
1044 complaint().
1045 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1046 Delete deprecated complaint structs.
1047 (lookup__objc_class, lookup_child_selector): Replace complain()
1048 with complaint().
1049 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1050 struct.
1051 (vx_lookup_symbol): Replace complain() with complaint().
1052 * stabsread.c (invalid_cpp_abbrev_complaint)
1053 (invalid_cpp_type_complaint, member_fn_complaint)
1054 (const_vol_complaint, error_type_complaint)
1055 (invalid_member_complaint, range_type_base_complaint)
1056 (reg_value_complaint, vtbl_notfound_complaint)
1057 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1058 (unresolved_sym_chain_complaint, stabs_general_complaint)
1059 (lrs_general_complaint, multiply_defined_struct): Delete
1060 deprecated complaint structs.
1061 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1062 (stabs_general_complaint, lrs_general_complaint)
1063 (msg_unknown_complaint): New functions.
1064 (dbx_lookup_type, read_cfront_baseclasses)
1065 (read_cfront_member_functions, resolve_symbol_reference)
1066 (define_symbol, resolve_live_range, add_live_range, read_type)
1067 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1068 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1069 (read_cfront_static_fields, attach_fields_to_type)
1070 (complain_about_struct_wipeout, read_range_type)
1071 (common_block_start, common_block_end, cleanup_undefined_types)
1072 (scan_file_globals): Replace complain() with complaint().
1073 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1074 Delete deprecated complaint struct declarations.
1075 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1076 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1077 (bf_not_found_complaint, ef_complaint, eb_complaint)
1078 (function_outside_compilation_unit_complaint): New functions.
1079 (record_include_begin, record_include_end, enter_line_range)
1080 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1081 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1082 complain() with complaint().
1083
1084 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1085
1086 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1087 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1088 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1089 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1090 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1091 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1092 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1093 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1094 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1095 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1096 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1097 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1098 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1099 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1100 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1101 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1102 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1103 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1104 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1105 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1106 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1107 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1108 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1109 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1110 * config/m88k/xm-dgux.h: Delete.
1111 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1112 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1113 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1114 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1115 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1116 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1117 * ch-valprint.c: Delete.
1118
1119 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1120
1121 * infrun.c (handle_inferior_event): Rearrange code to resume if
1122 no catchpoint triggers for an event.
1123
1124 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1125
1126 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1127 and TARGET_WAITKIND_VFORKED cases.
1128
1129 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1130
1131 * infrun.c (handle_inferior_event): Assume that catchpoints
1132 are not affected by DECR_PC_AFTER_BREAK.
1133
1134 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1135
1136 * target.c (update_current_target): Don't inherit DONT_USE.
1137 * target.h (struct target_ops): Remove DONT_USE.
1138 (target_next): Remove macro.
1139
1140 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1141
1142 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1143
1144 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1145
1146 * arm-tdep.c (convert_from_extended): New argument to hold the
1147 type of floating point result we want to convert to. Make input
1148 argument const. Fix all callers.
1149 (convert_to_extended): Similarly.
1150 (arm_extract_return_value): Now takes a regcache argument. Change
1151 code to use regcache accessor functions. Correctly extract
1152 smaller-than-word results on big-endian machines.
1153 (arm_store_return_value): Now takes a regcache argument. Change
1154 code to use regcache accessor functions. Correctly zero/sign extend
1155 smaller than word results before storing into r0.
1156 (arm_gdbarch_init): Register new-style extract_return_value and
1157 store_return_value functions.
1158
1159 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1160
1161 * thread-db.c (thread_from_lwp): Uniquify error msg.
1162 (lwp_from_thread): Ditto.
1163 (check_event): Ditto.
1164 (find_new_threads_callback): Ditto.
1165 (thread_db_pid_to_str): Ditto.
1166
1167 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1168
1169 * frame.h (get_frame_saved_regs): Declare.
1170 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1171 pointer.
1172 * frame.c (get_frame_saved_regs): New function.
1173 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1174
1175 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1176
1177 * frame.c (deprecated_update_current_frame_pc_hack): New
1178 function.
1179 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1180 * infrun.c (normal_stop): Use said function instead of directly
1181 modifying the frame's PC.
1182
1183 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1184
1185 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1186
1187 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1188
1189 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1190 config/mips/tm-irix6.h (NUM_REGS): Delete.
1191 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1192 (temp_saved_regs): Declare as a pointer rather than an array.
1193 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1194 that ``temp_saved_regs'' has storage allocated to it and that
1195 it's the correct size.
1196
1197 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1198
1199 * defs.h (init_last_source_visited): New prototype.
1200 (add_path): Ditto.
1201 * source.c (add_path): New function that adds to a specified path.
1202 (mod_path): Change to call add_path.
1203 (init_last_source_visited): New function to allow interfaces to
1204 initialize static variable: last_source_visited. Part of fix
1205 for PR gdb/741.
1206 * Makefile.in: Add support for mi/mi-cmd-env.c.
1207
1208 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1209
1210 * frame.h (frame_id_unwind): Declare.
1211 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1212 id_unwind_cache.
1213 (frame_id_unwind_ftype): Declare.
1214 * frame.c (frame_id_unwind): New function.
1215 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1216 (create_new_frame, get_prev_frame): Pass id_unwind to
1217 set_unwind_by_pc.
1218 (frame_saved_regs_id_unwind): New function.
1219 (frame_saved_regs_id_unwind): New function.
1220 * dummy-frame.c (dummy_frame_id_unwind): New function.
1221 (struct dummy_frame): Add field id.
1222 (generic_push_dummy_frame): Initialize `id'.
1223 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1224
1225 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1226
1227 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1228 pass that to set_momentary_breakpoint. Move comments to where they
1229 belong.
1230 * frame.h (set_current_frame): Delete declaration.
1231 * frame.c (set_current_frame): Delete function.
1232
1233 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1234
1235 * frame.c (frame_extra_info_zalloc): New function.
1236 * frame.h (frame_extra_info_zalloc): Declare.
1237
1238 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1239
1240 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1241 in the previous prototype change to set_momentary_breakpoint.
1242
1243 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1244
1245 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1246 and saw_child_exec.
1247 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1248 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1249 (stop_stepping): Remove outdated check for child vfork events.
1250
1251 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1252
1253 * GDB 5.3 released from gdb_5_3-branch.
1254
1255 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1256
1257 * corelow.c (init_core_ops): Delete references to to_require_attach
1258 and to_require_detach.
1259 * exec.c (init_exec_ops): Likewise.
1260 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1261 hppa_require_detach directly.
1262 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1263 * inftarg.c (child_detach): Remove.
1264 (child_detach_from_process): Rename to child_detach, remove
1265 after_fork argument.
1266 (child_attach): Remove.
1267 (child_attach_to_process): Rename to child_attach, remove after_fork
1268 argument.
1269 (init_child_ops): Delete references to to_require_attach
1270 and to_require_detach.
1271 * infttrace.c (hppa_require_attach): Update comment.
1272 * target.c (cleanup_target, update_current_target)
1273 (init_dummy_target, setup_target_debug): Delete references to
1274 to_require_attach and to_require_detach.
1275 (find_default_require_detach, find_default_require_attach)
1276 (debug_to_require_attach, debug_to_require_detach): Remove
1277 functions.
1278 * target.h (struct target_ops): Remove to_require_attach
1279 and to_require_detach.
1280 (target_require_attach, target_require_detach): Delete macros.
1281 (find_default_require_detach, find_default_require_attach): Delete
1282 prototypes.
1283 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1284
1285 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1286
1287 * frame.c (get_frame_extra_info): New function.
1288 * frame.h (get_frame_extra_info): Declare.
1289
1290 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1291
1292 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1293 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1294 with `struct frame_id'.
1295 (set_longjmp_resume_breakpoint): Ditto.
1296 * infrun.c (handle_inferior_event): Update.
1297 * breakpoint.c (watch_command_1, until_break_command): Update.
1298 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1299 (handle_inferior_event, step_over_function): Update.
1300 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1301 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1302 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1303 * infcmd.c (finish_command, run_stack_dummy): Update.
1304
1305 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1306
1307 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1308 (dwarf2_non_const_array_bound_ignored)
1309 (dwarf2_missing_line_number_section)
1310 (dwarf2_statement_list_fits_in_line_number_section)
1311 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1312 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1313 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1314 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1315 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1316 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1317 (dwarf2_missing_member_fn_type_complaint)
1318 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1319 (dwarf2_const_value_length_mismatch)
1320 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1321 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1322 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1323 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1324 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1325 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1326 complaints using deprecated struct..
1327 (dwarf2_non_const_array_bound_ignored_complaint)
1328 (dwarf2_complex_location_expr_complaint)
1329 (dwarf2_unsupported_at_frame_base_complaint)
1330 (dwarf2_const_value_length_mismatch_complaint)
1331 (dwarf2_macros_too_long_complaint)
1332 (dwarf2_macro_malformed_definition_complaint)
1333 (dwarf2_invalid_attrib_class_complaint): New functions.
1334 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1335 (read_structure_scope, read_array_type, read_common_block)
1336 (read_tag_pointer_type, read_base_type, read_partial_die)
1337 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1338 (new_symbol, dwarf2_const_value, read_type_die)
1339 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1340 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1341 complain() with, possibly indirect, calls to complaint().
1342
1343 2002-12-11 Andrew Cagney <cagney@redhat.com>
1344
1345 * frame.c (deprecated_get_frame_saved_regs): Rename
1346 get_frame_saved_regs.
1347 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1348 * sparc-tdep.c: Update.
1349 * hppa-tdep.c: Update.
1350 * h8500-tdep.c: Update.
1351
1352 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1353
1354 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1355 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1356 ``char *'' for return and parameter types.
1357 * gdbarch.h, gdbarch.c: Regenerate.
1358 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1359 return type from ``char *'' to ``const char *''.
1360 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1361 const.
1362
1363 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1364
1365 * i386-tdep.c: Include "dummy-frame.h".
1366 (i386_frame_chain, i386_frame_saved_pc): Replace
1367 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1368 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1369
1370 2002-12-10 Andrew Cagney <cagney@redhat.com>
1371
1372 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1373 Change to a function with predicate.
1374 * gdbarch.h, gdbarch.c: Re-generate.
1375 * frame.c (get_prev_frame): Update. Test
1376 DEPRECATED_INIT_FRAME_PC_P.
1377 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1378 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1379 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1380 * alpha-tdep.c (alpha_gdbarch_init): Update.
1381 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1382 * mips-tdep.c (mips_gdbarch_init): Update.
1383 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1384 * arm-tdep.c: Update comments.
1385 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1386 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1387 * frv-tdep.c (frv_gdbarch_init): Ditto.
1388 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1389 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1390 * s390-tdep.c (s390_gdbarch_init): Ditto.
1391 * v850-tdep.c (v850_gdbarch_init): Ditto.
1392 * vax-tdep.c (vax_gdbarch_init): Ditto.
1393 * sh-tdep.c (sh_gdbarch_init): Ditto.
1394 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1395 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1396 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1397 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1398 * i386-tdep.c (i386_gdbarch_init): Ditto.
1399 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1400 * cris-tdep.c (cris_gdbarch_init): Ditto.
1401 * avr-tdep.c (avr_gdbarch_init): Ditto.
1402 * arm-tdep.c (arm_gdbarch_init): Ditto.
1403 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1404 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1405
1406 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1407
1408 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1409 CHILD_FOLLOW_FORK.
1410 * hppah-nat.c (saved_vfork_pid): Add.
1411 (child_post_follow_vfork): Remove.
1412 (child_follow_fork): New function.
1413 (child_wait): Call detach_breakpoints after receiving the child vfork.
1414 Call child_resume directly instead of going through resume ().
1415 Make sure we have the exec before reporting the vfork.
1416 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1417 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1418 (follow_fork): New function. Call target_follow_fork.
1419 (follow_inferior_reset_breakpoints): New function broken out from
1420 old follow_inferior_fork.
1421 (resume): Remove hack to follow exec after vfork.
1422 * inftarg.c (child_post_follow_vfork): Remove.
1423 (child_follow_fork): New function.
1424 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1425 * target.c (cleanup_target): Replace to_post_follow_vfork with
1426 to_follow_fork.
1427 (update_current_target): Likewise.
1428 (setup_target_debug): Likewise.
1429 (debug_to_post_follow_vfork): Remove.
1430 (debug_to_follow_fork): New function.
1431 * target.h (struct target_ops): Replace to_post_folow_vfork with
1432 to_follow_fork.
1433 (child_post_follow_vfork): Remove prototype.
1434 (child_follow_fork): Add prototype.
1435 (target_post_follow_vfork): Remove macro.
1436 (target_follow_fork): Add macro.
1437
1438 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1439
1440 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1441 (child_post_follow_vfork): Cancel pending exec event if we follow
1442 the parent.
1443 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1444 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1445 event at the following wait call if necessary.
1446 * infrun.c (follow_vfork): Don't follow_exec here.
1447 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1448 case about HP/UX 10.20. Remove code pushed down to
1449 hppah-nat.c:child_wait.
1450 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1451 vfork_in_flight is set.
1452
1453 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1454
1455 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1456 for the parent's fork event.
1457 * infrun.c (handle_inferior_event): Only expect one fork event.
1458 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1459 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1460
1461 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1462
1463 * PROBLEMS: Delete reference to PR gdb/725.
1464
1465 * MAINTAINERS (gdb.c++): Add David Carlton.
1466
1467 2002-12-09 David Carlton <carlton@math.stanford.edu>
1468
1469 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1470 * cli/cli-cmds.c: Ditto.
1471
1472 2002-12-09 Andrew Cagney <cagney@redhat.com>
1473
1474 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1475 function address in <>.
1476 * gdbarch.c: Re-generate.
1477
1478 2002-12-09 David Carlton <carlton@math.stanford.edu>
1479
1480 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1481
1482 2002-12-09 David Carlton <carlton@math.stanford.edu>
1483
1484 * linespec.c (symtab_from_filename): New function.
1485 (decode_line_1): Move code into symtab_from_filename.
1486
1487 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1488
1489 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1490
1491 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1492
1493 * f-valprint.c (info_common_command): Use get_frame_pc.
1494 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1495 * ax-gdb.c (agent_command): Ditto.
1496 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1497 (rs6000_pop_frame): Ditto.
1498 (rs6000_frameless_function_invocation): Ditto.
1499 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1500 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1501 * macroscope.c (default_macro_scope): Ditto.
1502 * stack.c (print_frame_info_base): Ditto.
1503 (print_frame, frame_info, print_frame_label_vars): Ditto.
1504 (return_command, func_command, get_frame_language): Ditto.
1505 * infcmd.c (finish_command): Ditto.
1506 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1507 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1508 (break_at_finish_at_depth_command_1): Ditto.
1509 (break_at_finish_command_1): Ditto.
1510 (until_break_command, get_catch_sals): Ditto.
1511 * blockframe.c (func_frame_chain_valid): Ditto.
1512 (frameless_look_for_prologue): Ditto.
1513 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1514
1515 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1516
1517 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1518 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1519
1520 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1521
1522 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1523 to pure functions.
1524 * gdbarch.h, gdbarch.c: Re-generate.
1525 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1526 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1527
1528 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1529 declaration to a function returning a CORE_ADDR.
1530 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1531 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1532 (init_frame_pc_default): Ditto.
1533 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1534 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1535 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1536 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1537 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1538 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1539
1540 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1541 to init_frame_pc_noop.
1542 (i386_interix_init_frame_pc): Delete function.
1543 * z8k-tdep.c (init_frame_pc): Delete function.
1544 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1545 (INIT_FRAME_PC_FIRST): Ditto.
1546 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1547 (INIT_FRAME_PC_FIRST): Ditto.
1548 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1549 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1550 init_frame_pc_noop.
1551 (INIT_FRAME_PC_FIRST): Convert to an expression.
1552 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1553
1554 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1555
1556 * blockframe.c: Use get_frame_base instead of directly accessing
1557 the `struct frame_info' member frame.
1558 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1559 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1560
1561 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1562
1563 * Makefile.in (readline_h): Define.
1564 (completer.o): Depend on readline_h.
1565 (corelow.o): Ditto.
1566 (event-top.o): Ditto.
1567 (exec.o): Ditto.
1568 (solib.o): Ditto.
1569 (source.o): Ditto.
1570 (symfile.o): Ditto.
1571 (symmisc.o): Ditto.
1572 (top.o): Ditto.
1573 (tracepoint.o): Ditto.
1574 (utils.o): Ditto.
1575 (cli-dump.o): Ditto.
1576 (tui-hooks.o): Ditto.
1577 (tuiWin.o): Ditto.
1578
1579 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1580
1581 More cleanup from import of readline 4.3.
1582 * completer.h (complete_line, readline_line_completion_function):
1583 Update prototypes.
1584 (line_completion_function): Removed, not used outside of completer.c.
1585 * completer.c (readline_line_completion_function,
1586 complete_function, line_completion_function): Use const for first
1587 parameter.
1588 (line_completion_function): Make static.
1589 (filename_completer): filename_completion_function is now called
1590 rl_filename_completion_function
1591 * corelow.c: Include <readline/readline.h>.
1592 * exec.c: Ditto.
1593 * solib.c: Ditto.
1594 * source.c: Ditto.
1595 * symfile.c: Ditto.
1596 * symmisc.c: Ditto.
1597 * top.c (init_main): No need to coerce
1598 readline_line_completion_function anymore.
1599 * cli/cli-dump.c: Include <readline/readline.h>.
1600
1601 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1602
1603 * stack.c (frame_info): Use get_prev_frame.
1604 * blockframe.c (frame_address_in_block): Ditto.
1605 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1606 (rs6000_frameless_function_invocation): Ditto.
1607 (rs6000_frame_saved_pc): Ditto.
1608 (rs6000_frame_chain): Ditto.
1609 * arch-utils.c (init_frame_pc_default): Ditto.
1610
1611 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1612
1613 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1614 Delete redundant definition.
1615
1616 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1617
1618 Import of readline 4.3:
1619 * cli/cli-cmds.c: Include readline/tilde.h.
1620 * cli/cli-setshow.c: Ditto.
1621 * defs.h: Don't declare tilde_expand anymore, since readline
1622 exports it.
1623
1624 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1625
1626 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1627 -Werror on this file.
1628
1629 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1630
1631 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1632 the format name.
1633 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1634 * gdbarch.c: Regenerate.
1635
1636 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1637
1638 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1639 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1640 provide a default value.
1641 * gdbarch.h, gdbarch.c: Regenerate.
1642 * frame.c (get_prev_frame): Update. Check
1643 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1644 * s390-tdep.c (s390_gdbarch_init): Update.
1645 * mips-tdep.c (mips_gdbarch_init): Update.
1646 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1647 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1648 * alpha-tdep.c (alpha_gdbarch_init): Update.
1649
1650 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1651
1652 * ia64-linux-nat.c: Include gdb_string.h.
1653 * alpha-nat.c: Ditto.
1654 * ppc-linux-nat.c: Ditto.
1655 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1656 Update dependencies.
1657
1658 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1659
1660 * gdbthread.h: Include "frame.h".
1661 (struct thread_info): Replace step_frame_address with
1662 step_frame_id.
1663 * inferior.h: Include "frame.h".
1664 (step_frame_id): Replace external variable step_frame_address.
1665 * gdbthread.h (save_infrun_state): Replace step_frame_address
1666 parameter with step_frame_id parameter.
1667 (load_infrun_state): Ditto.
1668 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1669 * infcmd.c (step_frame_id, step_1, step_once): Update.
1670 * thread.c (load_infrun_state, save_infrun_state): Update.
1671 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1672 (handle_inferior_event, step_over_function): Update.
1673 (normal_stop, context_switch, restore_inferior_status): Update.
1674 (struct inferior_status): Replace step_frame_address with
1675 step_frame_id.
1676
1677 2002-12-05 David Carlton <carlton@math.stanford.edu>
1678
1679 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1680 DW_TAG_member as well as a declaration as being a C++ static data
1681 member.
1682 (read_structure_scope): Combine tests for DW_TAG_member and
1683 DW_TAG_variable.
1684
1685 2002-12-05 David Carlton <carlton@math.stanford.edu>
1686
1687 * linespec.c (decode_compound): New function.
1688 (decode_line_1): Move code into decode_compound.
1689
1690 2002-12-05 David Carlton <carlton@math.stanford.edu>
1691
1692 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1693 argument.
1694 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1695 the static block. See PR gdb/804.
1696
1697 2002-12-05 David Carlton <carlton@math.stanford.edu>
1698
1699 * symtab.c (lookup_symbol_aux_block): New function.
1700 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1701
1702 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1703
1704 * gdbarch.sh: Dump the predicate function and macro values.
1705 (read): Print error on standard error.
1706 * gdbarch.c: Regenerate.
1707
1708 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1709
1710 * Makefile.in (mips_tdep_h): Define.
1711 (mips-tdep.o): Add mips_tdep_h to dependency list.
1712 * mips-tdep.h: New file.
1713 * mips-tdep.c (mips-tdep.h): Include.
1714 (enum mips_abi): Move to mips-tdep.h.
1715 (mips_abi): New function.
1716
1717 2002-12-04 David Carlton <carlton@math.stanford.edu>
1718
1719 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1720
1721 2002-12-04 David Carlton <carlton@math.stanford.edu>
1722
1723 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1724 function.
1725 (lookup_symbol_aux_minsyms): New function.
1726
1727 2002-12-04 J. Brobecker <brobecker@gnat.com>
1728
1729 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1730
1731 2002-12-04 J. Brobecker <brobecker@gnat.com>
1732
1733 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1734 which is an obsolete macro name.
1735
1736 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1737
1738 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1739 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1740
1741 2002-12-03 H.J. Lu (hjl@gnu.org)
1742
1743 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1744 (create_breakpoints): Make sure the addr_string field is not
1745 NULL.
1746
1747 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1748
1749 * sparc-nat.c (fetch_inferior_registers)
1750 (store_inferior_registers): Add comment on problem of LWP vs
1751 threads.
1752
1753 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1754 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1755 (lin_lwp_store_registers): Remove.
1756 (init_lin_lwp_ops): Use fetch_inferior_registers
1757 and store_inferior_registers directly.
1758 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1759 (store_inferior_registers): Likewise.
1760 Fix PR gdb/725.
1761
1762 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1763
1764 * frame.h (get_frame_id): Convert to a function.
1765 (null_frame_id, frame_id_p): Declare.
1766 (frame_id_eq, frame_id_inner): Declare.
1767 (frame_id_build): New function.
1768 * frame.c (get_frame_id): Update. Use null_frame_id.
1769 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1770 frame_id_inner.
1771 (null_frame_id, frame_id_p): Define.
1772 (frame_id_eq, frame_id_inner): Define.
1773 (frame_id_build): New function.
1774 * varobj.c (varobj_create): Update.
1775 (varobj_update): Update.
1776 * valops.c (value_assign): Update.
1777 (new_root_variable): Update.
1778 * infrun.c (save_inferior_status): Update.
1779 * breakpoint.c (watch_command_1): Update.
1780
1781 2002-12-03 J. Brobecker <brobecker@gnat.com>
1782
1783 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1784 (SNAP2): Likewise.
1785
1786 2002-12-03 Andrew Cagney <cagney@redhat.com>
1787
1788 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1789 patch.
1790
1791 * PROBLEMS: Mention PR gdb/725.
1792
1793 2002-12-03 Andreas Schwab <schwab@suse.de>
1794
1795 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1796
1797 2002-12-02 Adam Fedor <fedor@gnu.org>
1798 Klee Dienes <kdienes@apple.com>
1799
1800 * objc-lang.c (objc_printstr): Add width arg to match
1801 printstr prototype.
1802 (compare_selectors): Add 'const' to arg types.
1803 (compare_classes): Likewise.
1804 (find_imps): Cast msym pointer to avoid compiler warning.
1805 (print_object_command): Validate the address before
1806 passing it to the print routine.
1807 (find_objc_msgcall_submethod): Change function argument to
1808 return an int.
1809 * objc-lang.h: Add 'extern' to all function declarations.
1810 (value_nsstring): Add declaration.
1811
1812 2002-12-02 J. Brobecker <brobecker@gnat.com>
1813
1814 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1815 Fixes a build failure on HP/UX.
1816
1817 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1818 failure on HP/UX.
1819 (hpread_has_name): Advance declaration to avoid a compilation warning.
1820 (pst_syms_count): Add missing variable type. By change, the compiler
1821 was defaulting to int, which seems a good choice. Fixes a compilation
1822 warning.
1823 (pst_syms_size): Likewise.
1824
1825 2002-12-02 J. Brobecker <brobecker@gnat.com>
1826
1827 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1828 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1829 later to set the proper gdbarch methods depending on the osabi.
1830 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1831
1832 2002-12-02 J. Brobecker <brobecker@gnat.com>
1833
1834 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1835 * osabi.c (gdb_osabi_name): Add strings images for the two new
1836 enum values.
1837 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1838
1839 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1840
1841 * MAINTAINERS (Java): Global maintainers are responible for Java.
1842 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1843 part Java maintainers.
1844
1845 2002-12-02 J. Brobecker <brobecker@gnat.com>
1846
1847 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1848 Fixes a compilation failure on AiX.
1849
1850 2002-12-02 J. Brobecker <brobecker@gnat.com>
1851
1852 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1853 why aix-thread.o is not listed.
1854
1855 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1856
1857 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1858 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1859 * gdbarch.h, gdbarch.c: Re-generate.
1860 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1861 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1862 * config/pa/tm-hppa.h, frame.h: Update.
1863 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1864 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1865 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1866 * cris-tdep.c, alpha-tdep.c: Update.
1867 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1868 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1869 (get_prev_frame): Ditto.
1870
1871 2002-11-30 Andrew Cagney <cagney@redhat.com>
1872
1873 * exec.c (xfer_memory): Replace boolean with int.
1874 * p-exp.y: Use 0 instead of false.
1875 * corelow.c (gdb_check_format): Change return type to int from
1876 boolean.
1877 * utils.c: Don't include <curses.h> or <term.h> first.
1878
1879 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1880
1881 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1882 (m68hc11_register_byte): Remove.
1883 (m68hc11_gdbarch_init): Don't set the above.
1884
1885 2002-11-29 Andrew Cagney <cagney@redhat.com>
1886
1887 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1888 by calling get_selected_frame.
1889 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1890 set_current_frame, create_new_frame, select_frame and
1891 get_current_frame.
1892 * remote-e7000.c (e7000_start_remote): Ditto.
1893 * remote-mips.c (common_open): Ditto
1894 * remote-rdp.c (remote_rdp_open): Ditto.
1895
1896 2002-11-29 Andreas Schwab <schwab@suse.de>
1897
1898 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1899 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1900 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1901 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1902 read_memory_unsigned_integer instead of read_memory_integer when
1903 dealing with addresses and instruction opcodes.
1904 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1905 (m68k_linux_frame_saved_pc): Likewise.
1906
1907 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1908
1909 * stack.c (selected_frame, select_frame): Move from here ...
1910 * frame.c (selected_frame, select_frame): ... to here. Include
1911 "language.h".
1912 * Makefile.in (frame.o): Update dependencies.
1913 * frame.c (get_selected_frame): New function.
1914 * frame.h (get_selected_frame): Declare.
1915 (deprecated_selected_frame): Rename selected_frame.
1916 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1917 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1918 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1919 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1920 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1921 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1922 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1923 * z8k-tdep.c, cli/cli-cmds.c: Update.
1924
1925 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1926
1927 * frame.h (get_selected_block): Add comments.
1928
1929 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1930
1931 * frame.c (pc_notcurrent): New function.
1932 (find_frame_sal): New function.
1933 * frame.h (find_frame_sal): Declare.
1934 (struct symtab_and_line): Add opaque declaration.
1935 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1936 find_pc_line.
1937 (frame_info): Ditto.
1938 * ada-lang.c (find_printable_frame): Ditto.
1939
1940 2002-11-28 J. Brobecker <brobecker@gnat.com>
1941
1942 * configure.in: Check that the pthdebug library is recent enough
1943 before enabling thread support on native AiX.
1944 * configure: Regenerate.
1945
1946 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1947 from the list of object files as it is now appended by configure
1948 if thread support is enabled.
1949 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1950 if thread support is enabled.
1951
1952 2002-11-28 Andrew Cagney <cagney@redhat.com>
1953
1954 * stack.c (get_selected_block): In-line get_current_block.
1955 * frame.h (get_current_block): Delete declaration.
1956 * blockframe.c (get_current_block): Delete function.
1957
1958 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1959
1960 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1961 USE_GENERIC_DUMMY_FRAMES.
1962 * gdbarch.h, gdbarch.c: Regenerate.
1963 * valops.c, frame.c: Update.
1964 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1965 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1966 * config/pa/tm-hppa.h, blockframe.c: Update.
1967 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1968 * m68k-tdep.c, alpha-tdep.c: Ditto.
1969
1970 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1971 * mips-tdep.c: Ditto.
1972
1973 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1974
1975 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1976 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1977 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1978 * gdbarch.c, gdbarch.h: Re-generate.
1979 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1980 (CALL_DUMMY_LOCATION): Delete macro definition.
1981 (PC_IN_CALL_DUMMY): Delete macro definitions.
1982
1983 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1984 default is already generic_pc_in_call_dummy.
1985 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1986 * v850-tdep.c (v850_gdbarch_init): Ditto.
1987 * sh-tdep.c (sh_gdbarch_init): Ditto.
1988 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1989 * mips-tdep.c (mips_gdbarch_init): Ditto.
1990 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1991 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1992 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1993 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1994 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1995 * avr-tdep.c (avr_gdbarch_init): Ditto.
1996
1997 * arm-tdep.c (arm_gdbarch_init): Do not set
1998 use_generic_dummy_frames, default is already 1.
1999 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2000 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2001 * v850-tdep.c (v850_gdbarch_init): Ditto.
2002 * sh-tdep.c (sh_gdbarch_init): Ditto.
2003 * s390-tdep.c (s390_gdbarch_init): Ditto.
2004 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2005 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2006 * mips-tdep.c (mips_gdbarch_init): Ditto.
2007 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2008 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2009 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2010 * i386-tdep.c (i386_gdbarch_init): Ditto.
2011 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2012 * frv-tdep.c (frv_gdbarch_init): Ditto.
2013 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2014 * cris-tdep.c (cris_gdbarch_init): Ditto.
2015 * avr-tdep.c (avr_gdbarch_init): Ditto.
2016
2017 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2018 call_dummy_location, default is already AT_ENTRY_POINT.
2019 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2020 * v850-tdep.c (v850_gdbarch_init): Ditto.
2021 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2022 * sh-tdep.c (sh_gdbarch_init): Ditto.
2023 * s390-tdep.c (s390_gdbarch_init): Ditto.
2024 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2025 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2026 * mips-tdep.c (mips_gdbarch_init): Ditto.
2027 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2028 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2029 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2030 * i386-tdep.c (i386_gdbarch_init): Ditto.
2031 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2032 * frv-tdep.c (frv_gdbarch_init): Ditto.
2033 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2034 * cris-tdep.c (cris_gdbarch_init): Ditto.
2035 * avr-tdep.c (avr_gdbarch_init): Ditto.
2036 * arm-tdep.c (arm_gdbarch_init): Ditto.
2037 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2038
2039 2002-11-28 Andrew Cagney <cagney@redhat.com>
2040
2041 * frame.h: Update comments on set_current_frame, create_new_frame,
2042 flush_cached_frames, reinit_frame_cache, select_frame and
2043 selected_frame.
2044
2045 2002-11-27 Andrew Cagney <cagney@redhat.com>
2046
2047 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2048 deprecated pc_in_call_dummy function.
2049 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2050 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2051 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2052 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2053 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2054
2055 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2056
2057 * Makefile.in: Remove Tix dependencies.
2058 * acinclude.m4: Ditto.
2059 * aclocal.m4: Ditto.
2060 * configure.in: Ditto.
2061 * configure: Regenerated.
2062
2063 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2064
2065 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2066 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2067 * gdbarch.c: Re-generate.
2068
2069 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2070
2071 * config/h8500/tm-h8500.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/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2075 pc_in_call_dummy_at_entry_point.
2076 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2077 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2078 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2079 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2080 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2081 pc_in_call_dummy_on_stack.
2082 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2083 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2084 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2085 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2086 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2087
2088 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2089
2090 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2091 pc_in_call_dummy_before_text_end
2092 (deprecated_pc_in_call_dummy_after_text_end): Rename
2093 pc_in_call_dummy_after_text_end.
2094 (deprecated_pc_in_call_dummy_on_stack): Rename
2095 pc_in_call_dummy_on_stack.
2096 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2097 pc_in_call_dummy_at_entry_point.
2098 * m68k-tdep.c (m68k_gdbarch_init): Update.
2099 * s390-tdep.c (s390_gdbarch_init): Update.
2100 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2101 * vax-tdep.c (vax_gdbarch_init): Update.
2102 * sparc-tdep.c (sparc_gdbarch_init): Update.
2103 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2104 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2105 * i386-tdep.c (i386_gdbarch_init): Update.
2106 * frv-tdep.c (frv_gdbarch_init): Update.
2107 * cris-tdep.c (cris_gdbarch_init): Update.
2108 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2109 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2110 (deprecated_pc_in_call_dummy_after_text_end)
2111 (deprecated_pc_in_call_dummy_on_stack)
2112 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2113 * alpha-tdep.c (alpha_gdbarch_init): Update.
2114
2115 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2116
2117 * acconfig.h (HAVE_PREAD64): Add.
2118 * configure.in: Check for pread64.
2119 * config.in: Regenerated.
2120 * configure: Regenerated.
2121 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2122 * linux-proc.c (linux_proc_xfer_memory): New function.
2123 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2124
2125 2002-11-25 David Carlton <carlton@math.stanford.edu>
2126
2127 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2128 pdi's with no name.
2129
2130 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2131
2132 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2133 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2134
2135 2002-11-25 Jim Blandy <jimb@redhat.com>
2136
2137 * symfile.c (init_objfile_sect_indices): New function.
2138 (default_symfile_offsets): Move the section-index-initializing
2139 stuff into init_objfile_sect_indices, and call that.
2140
2141 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2142 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2143
2144 * symfile.c (syms_from_objfile): Adjust indentation.
2145
2146 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2147 || info_verbose isn't true.
2148
2149 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2150
2151 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2152 default to get_frame_base.
2153 * gdbarch.h, gdbarch.c: Regenerate.
2154 * arch-utils.c (default_frame_address): Delete function.
2155 * arch-utils.h (default_frame_address): Delete declaration
2156
2157 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2158
2159 * varobj.c (find_frame_addr_in_frame_chain):
2160 Use get_frame_base instead of FRAME_FP,
2161 obvious fix.
2162
2163 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2164
2165 * frame.h (FRAME_FP): Delete macro.
2166 (get_frame_base): New function declaration.
2167 * frame.c (get_frame_base): New function.
2168 (get_frame_id): Use ->frame.
2169 (frame_find_by_id): Rewrite to use get_frame_id.
2170 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2171 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2172 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2173 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2174 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2175 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2176 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2177
2178 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2179
2180 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2181
2182 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2183
2184 * frame.c (set_unwind_by_pc): Revert change below, use
2185 PC_IN_CALL_DUMMY.
2186 (get_prev_frame): Ditto.
2187
2188 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2189
2190 * dummy-frame.c (pc_in_dummy_frame): New function.
2191 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2192 (find_dummy_frame): Update comment.
2193 (generic_pop_current_frame): Use get_frame_type.
2194 * dummy-frame.h (pc_in_dummy_frame): Declare.
2195 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2196 (create_new_frame): Use pc_in_dummy_frame.
2197 (get_prev_frame): Use pc_in_dummy_frame.
2198 (frame_saved_regs_register_unwind): Use get_prev_frame.
2199 (deprecated_generic_get_saved_register): Use get_prev_frame.
2200
2201 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2202
2203 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2204 from here ...
2205 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2206 (varobj_create): Note that frame ID should be used.
2207 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2208
2209 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2210
2211 * breakpoint.c: Include "gdb_assert.h".
2212 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2213 not being used.
2214 * Makefile.in (breakpoint.o): Update dependencies.
2215 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2216 deprecated_frame_in_dummy.
2217 * stack.c (print_frame_info_base): Ditto.
2218 (frame_info): Ditto.
2219 (print_frame_info_base): Ditto. Delete dead code.
2220
2221 2002-11-23 Andreas Schwab <schwab@suse.de>
2222
2223 * Makefile.in (m68k_tdep_h): Define.
2224 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2225 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2226 * m68k-tdep.c: Move register number enum ...
2227 * m68k-tdep.h: ... to this new file and rename the constants from
2228 E_* to M68K_*. All uses changed.
2229 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2230 * abug-rom.c: Include "m68k-tdep.h". Use
2231 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2232 * cpu32bug-rom.c: Likewise.
2233 * dbug-rom.c: Likewise.
2234 * m68k-tdep.c: Likewise.
2235 * m68klinux-nat.c: Likewise.
2236 * remote-est.c: Likewise.
2237 * rom68k-rom.c: Likewise.
2238 * config/m68k/tm-linux.h: Likewise.
2239
2240 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2241
2242 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2243 dummy frame initialization code.
2244 * mips-tdep.c (mips_gdbarch_init): Ditto.
2245
2246 2002-11-22 Christopher Faylor <cgf@redhat.com>
2247
2248 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2249 attach will hang.
2250
2251 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2252
2253 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2254 to default_frame_address.
2255 * gdbarch.h, gdbarch.c: Re-generate.
2256
2257 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2258 or frame_locals_address to default_frame_address.
2259 * m68k-tdep.c (m68k_gdbarch_init): Update.
2260 * i386-tdep.c (i386_gdbarch_init): Update.
2261 * frv-tdep.c (frv_gdbarch_init): Update.
2262 * sh-tdep.c (sh_gdbarch_init): Update.
2263 * v850-tdep.c (v850_gdbarch_init): Update.
2264 * sparc-tdep.c (sparc_gdbarch_init): Update.
2265 * mips-tdep.c (mips_gdbarch_init): Update.
2266 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2267 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2268 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2269
2270 * cris-tdep.c (cris_frame_args_address): Delete function.
2271 (cris_frame_locals_address): Delete function.
2272 (cris_gdbarch_init): Do not set frame_args_address or
2273 frame_locals_address.
2274
2275 2002-11-22 Michael Snyder <msnyder@redhat.com>
2276
2277 * thread-db.c (thread_db_load): Tell the user what's going on
2278 if dlopen fails on libthread_db.
2279
2280 2002-11-23 Andreas Schwab <schwab@suse.de>
2281
2282 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2283 invariant return values.
2284
2285 2002-11-22 Andreas Schwab <schwab@suse.de>
2286
2287 * valops.c (value_slice): Move declaration of `offset' to avoid
2288 warning.
2289
2290 2002-11-22 Christopher Faylor <cgf@redhat.com>
2291
2292 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2293 (struct so_stuff): Add end_addr field.
2294 (register_loaded_dll): Calculate and store end address of loaded dll.
2295 (solib_address): New function.
2296 (child_solib_loaded_library_pathname): Pass carefully constructed
2297 section info to safe_symbol_file_add rather than ignoring it.
2298 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2299 DLL is loaded.
2300 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2301 (child_create_inferior): Fix a compiler warning.
2302 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2303 (solib_address): Declare new function.
2304
2305 2002-11-22 Andreas Schwab <schwab@suse.de>
2306
2307 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2308 and FPS registers.
2309
2310 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2311
2312 * maint.c (_initialize_maint_cmds): Fix typo. From
2313 Francesco Potorti` <pot@gnu.org>.
2314
2315 2002-11-21 Andrew Cagney <cagney@redhat.com>
2316
2317 * mips-tdep.c (mips_dump_tdep): Delete references to
2318 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2319 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2320 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2321 * printcmd.c (build_address_symbolic): Delete calls to
2322 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2323 (address_info): Ditto.
2324 Fix PR gdb/773.
2325
2326 2002-11-19 Klee Dienes <kdienes@apple.com>
2327 Adam Fedor <fedor@gnu.org>
2328
2329 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2330 the ability to explicitly specify the quote characters and word
2331 break characters; if NULL is specified for either, use the old
2332 behavior of using the characters used by the completer.
2333 (skip_chars): New function. Convenience wrapper around
2334 skip_quoted_chars to provide the original skip_chars behavior.
2335 * completer.h (skip_quoted_chars): Add prototype.
2336
2337 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2338
2339 Problems reported by Paul Eggert.
2340 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2341
2342 2002-11-19 Andreas Schwab <schwab@suse.de>
2343
2344 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2345 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2346 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2347 (m68k_linux_frame_saved_pc): Move to ...
2348 * m68klinux-tdep.c: ... here. New file.
2349 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2350 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2351
2352 2002-11-19 Adam Fedor <fedor@gnu.org>
2353
2354 * objc-exp.y: Revert to old skip_quoted usage.
2355
2356 2002-11-19 Adam Fedor <fedor@gnu.org>
2357
2358 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2359 (objc_lang_h): Define.
2360 (YYFILES): Add objc-exp.tab.c.
2361 (local-maintainer-clean): Remove objc-exp.tab.c.
2362 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2363
2364 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2365
2366 * p-exp.y (typecast rule): Add automatic dereference of
2367 pascal classes if needed.
2368 (THIS): Set current_type.
2369 Automatically dereference pascal classes.
2370 (typebase rule): Add ^typebase recognition.
2371
2372 2002-11-18 Adam Fedor <fedor@gnu.org>
2373
2374 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2375 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2376 (op_name): Handle OP_OBJC_SELF.
2377 * Makefile.in (expprint.o): Add additional depends.
2378
2379 2002-11-18 Adam Fedor <fedor@gnu.org>
2380
2381 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2382 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2383 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2384 * objc-exp.y: Likewise.
2385
2386 2002-11-18 Adam Fedor <fedor@gnu.org>
2387
2388 * gdb/parser-defs.h: (struct objc_class_str): New structure
2389 for parsing ObjC classes.
2390
2391 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2392
2393 * stack.c (frame_relative_level): Copy function from here ...
2394 * frame.c (frame_relative_level): ...to here.
2395
2396 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2397
2398 * frame.h (enum frame_type): Define.
2399 (get_frame_type): Declare.
2400 (struct frame_info): Add field `type'. Delete field
2401 signal_handler_caller.
2402 (deprecated_set_frame_signal_handler_caller): Declare.
2403 * frame.c (get_frame_type): New function.
2404 (deprecated_set_frame_type): New function.
2405 (create_new_frame): Set the frame's type.
2406 (get_prev_frame): Similar.
2407 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2408 * s390-tdep.c: Ditto.
2409 * m68klinux-nat.c: Ditto.
2410 * ns32k-tdep.c: Ditto.
2411 * x86-64-linux-tdep.c: Ditto.
2412 * vax-tdep.c: Ditto.
2413 * rs6000-tdep.c: Ditto.
2414 * ppc-linux-tdep.c: Ditto.
2415 * i386-interix-tdep.c: Ditto.
2416 * mips-tdep.c: Ditto.
2417 * m68k-tdep.c: Ditto.
2418 * hppa-tdep.c: Ditto.
2419 * ia64-tdep.c: Ditto.
2420 * cris-tdep.c: Ditto.
2421 * arm-tdep.c: Ditto.
2422 * alpha-tdep.c: Ditto.
2423 * i386-tdep.c: Ditto.
2424 * stack.c: Ditto.
2425 * ada-lang.c: Ditto.
2426 * blockframe.c: Update.
2427 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2428 deprecated_set_frame_type instead of signal_handler_caller.
2429 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2430 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2431 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2432
2433 2002-11-18 Klee Dienes <kdienes@apple.com>
2434
2435 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2436
2437 2002-11-18 Klee Dienes <kdienes@apple.com>
2438
2439 * buildsym.c (pop_context): Add comment.
2440
2441 2002-11-18 Klee Dienes <kdienes@apple.com>
2442
2443 * buildsym.h (pop_context): Convert to function, defined in
2444 buildsym.c.
2445 * buildsym.c: Include gdb_assert.h.
2446 (pop_context): Implement as C function. Add check for stack
2447 underflow.
2448 * dbxread.c (process_one_symbol): Complain and stop processing
2449 that symbol if we are already at the top of the context stack for
2450 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2451 when processing N_RBRAC.
2452
2453 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2454
2455 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2456 define.
2457 (struct target_waitstatus): Add opaque definition.
2458 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2459 * exec.c (init_exec_ops): Likewise.
2460 * fork-child.c (clone_and_follow_inferior): Remove.
2461 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2462 * inferior.h (clone_and_follow_inferior): Remove prototype.
2463 * infrun.c (follow_fork_mode_both): Remove.
2464 (follow_fork_mode_kind_names): Remove commented out "both".
2465 (follow_inferior_fork): Remove follow_fork_mode_both support.
2466 * inftarg.c (child_clone_and_follow_inferior): Remove.
2467 (child_post_follow_inferior_by_clone): Remove.
2468 (init_child_ops): Don't set to_clone_and_follow_inferior
2469 or to_post_follow_inferior_by_clone.
2470 * target.c (default_clone_and_follow_inferior): Remove.
2471 (cleanup_target): Don't set to_clone_and_follow_inferior
2472 or to_post_follow_inferior_by_clone.
2473 (find_default_clone_and_follow_inferior): Remove.
2474 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2475 (debug_to_clone_and_follow_inferior): Remove.
2476 (debug_to_post_follow_inferior_by_clone): Remove.
2477 (setup_target_debug): Don't set to_clone_and_follow_inferior
2478 or to_post_follow_inferior_by_clone.
2479 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2480 and to_post_follow_inferior_by_clone.
2481 (child_clone_and_follow_inferior): Remove prototype.
2482 (child_post_follow_inferior_by_clone): Remove prototype.
2483 (target_clone_and_follow_inferior): Remove macro.
2484 (target_post_follow_inferior_by_clone): Remove macro.
2485 (find_default_clone_and_follow_inferior): Remove prototype.
2486
2487 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2488
2489 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2490 inferior_has_vforked, and inferior_has_execd instead of
2491 target_has_forked, target_has_vforked, and target_has_execd.
2492 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2493 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2494 (CHILD_WAIT): Define.
2495 (child_wait): Add prototype.
2496 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2497 Add prototype.
2498 (hpux_has_vforked): Likewise, from child_has_vforked.
2499 (hpux_has_execd): Likewise, from child_has_execd.
2500 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2501 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2502 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2503 and hpux_has_syscall_event instead of the target hooks.
2504 * infrun.c (inferior_has_forked, inferior_has_vforked)
2505 (inferior_has_execd): New functions.
2506 * inftarg.c (not_same_real_pid): Remove.
2507 (child_wait): Remove references to not_same_real_pid,
2508 target_has_forked, target_has_vforked, target_has_execd,
2509 and target_has_syscall_event.
2510 (child_has_forked, child_has_vforked, child_has_execd)
2511 (child_has_syscall_event): Remove.
2512 (init_child_ops): Remove references to child_has_forked,
2513 child_has_vforked, child_has_execd, and child_has_syscall_event.
2514 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2515 (hpux_has_vforked): Likewise, from child_has_vforked.
2516 (hpux_has_execd): Likewise, from child_has_execd.
2517 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2518 * target.c (cleanup_target): Remove references to
2519 to_has_forked, to_has_vforked, to_has_execd, and
2520 to_has_syscall_event.
2521 (update_current_target): Likewise.
2522 (setup_target_debug): Likewise.
2523 (debug_to_has_forked): Remove.
2524 (debug_to_has_vforked): Remove.
2525 (debug_to_has_execd): Remove.
2526 (debug_to_has_syscall_event): Remove.
2527 * target.h (struct target_ops): Remove to_has_forked.
2528 to_has_vforked, to_has_execd, and to_has_syscall_event.
2529 (child_has_forked, child_has_vforked, child_has_execd)
2530 (child_has_syscall_event): Remove prototypes.
2531 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2532 prototypes.
2533 (target_has_forked, target_has_vforked, target_has_execd)
2534 (target_has_syscall_event): Remove macros.
2535
2536 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2537
2538 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2539 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2540 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2541 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2542 * target.c (cleanup_target): Remove reference to
2543 to_can_follow_vfork_prior_to_exec.
2544 (update_current_target): Likewise.
2545 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2546 (setup_target_debug): Remove reference to
2547 to_can_follow_vfork_prior_to_exec.
2548 * target.h (struct target_ops): Remove
2549 to_can_follow_vfork_prior_to_exec.
2550 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2551 (target_can_follow_vfork_prior_to_exec): Remove definition.
2552 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2553 define.
2554 * infrun.c (follow_vfork_when_exec): Remove.
2555 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2556 (follow_exec): Likewise.
2557 (handle_inferior_event): Likewise.
2558 (keep_going): Likewise.
2559
2560 2002-11-15 Andrew Cagney <cagney@redhat.com>
2561
2562 * frame.c (generic_unwind_get_saved_register): Make static.
2563 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2564 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2565 defaults to generic_unwind_get_saved_register.
2566 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2567 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2568 * frv-tdep.c (frv_gdbarch_init): Ditto.
2569 * i386-tdep.c (i386_gdbarch_init): Ditto.
2570 * s390-tdep.c (s390_gdbarch_init): Ditto.
2571 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2572 * v850-tdep.c (v850_gdbarch_init): Ditto.
2573 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2574 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2575 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2576
2577 2002-11-15 Andrew Cagney <cagney@redhat.com>
2578
2579 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2580 i386-tdep.c.
2581
2582 2002-11-15 Andrew Cagney <cagney@redhat.com>
2583
2584 * frame.h (sigtramp_saved_pc): Delete declaration.
2585 * blockframe.c (sigtramp_saved_pc): Delete function.
2586 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2587 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2588 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2589 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2590
2591 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2592
2593 * frame.c (frame_pc_unwind): New function.
2594 (frame_saved_regs_pc_unwind): New function.
2595 (frame_register_unwind): Pass unwind_cache instead of
2596 register_unwind_cache.
2597 (set_unwind_by_pc): Add unwind_pc parameter, set.
2598 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2599 (get_prev_frame): Ditto.
2600 * frame.h (frame_pc_unwind_ftype): Declare.
2601 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2602 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2603 (frame_pc_unwind): Declare.
2604 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2605 (struct dummy_frame): Add comment mentioning that values are for
2606 previous frame.
2607 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2608 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2609 (generic_file_frame_chain_valid): Ditto.
2610 * stack.c (frame_info): Ditto.
2611
2612 2002-11-15 David Carlton <carlton@math.stanford.edu>
2613
2614 * linespec.c (locate_first_half): New function.
2615 (decode_line_1): Move code into locate_first_half.
2616
2617 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2618
2619 * complaints.h: Add comment explaining how to eliminate a
2620 deprecated_complain call.
2621 * complaints.h: Fix spelling errors.
2622
2623 2002-11-15 David Carlton <carlton@math.stanford.edu>
2624
2625 * printcmd.c: Remove #include "disasm.h".
2626
2627 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2628
2629 * frame.h: Move the most relevant interface functions to the start
2630 of the file.
2631
2632 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2633
2634 * regcache.h (deprecated_registers): Rename registers.
2635 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2636 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2637 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2638 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2639 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2640 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2641 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2642 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2643 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2644 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2645 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2646 * v850ice.c: Update.
2647
2648 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2649
2650 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2651 NULL buffer.
2652
2653 2002-11-13 Andrew Cagney <cagney@redhat.com>
2654
2655 * regcache.h (deprecated_read_register_bytes): Rename
2656 read_register_bytes.
2657 (deprecated_write_register_bytes): Rename write_register_bytes.
2658 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2659 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2660 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2661 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2662 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2663 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2664 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2665 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2666 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2667 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2668 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2669 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2670 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2671 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2672
2673 2002-11-13 Jim Blandy <jimb@redhat.com>
2674
2675 * findvar.c (read_var_value): Doc fix.
2676
2677 2002-11-13 Andrew Cagney <cagney@redhat.com>
2678
2679 * regcache.c (struct regcache): Replace passthough_p with
2680 readonly_p.
2681 (regcache_xmalloc): Initialize readonly_p.
2682 (build_regcache): Initialize readonly_p.
2683 (regcache_save): New function.
2684 (regcache_restore): New function.
2685 (regcache_cpy): Re-implement using regcache_save and
2686 regcache_restore.
2687 (regcache_raw_read): Update.
2688 (regcache_cooked_read): When a read-only cache, checked for cached
2689 pseudo register values.
2690 (regcache_raw_write): Assert that the cache is not read-only.
2691 Remove code handling a non-passthrough cache.
2692 * regcache.h (regcache_save): Declare.
2693 (regcache_restore): Declare.
2694
2695 2002-11-13 Andrew Cagney <cagney@redhat.com>
2696
2697 * regcache.c (struct regcache_descr): Add fields
2698 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2699 (init_legacy_regcache_descr): Compute the size of a cooked
2700 register cache and then assign that to sizeof_raw_registers. Set
2701 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2702 (init_legacy_regcache_descr): Ditto.
2703
2704 2002-11-13 Andrew Cagney <cagney@redhat.com>
2705
2706 * regcache.c (register_buffer): Move to near start of file, update
2707 description.
2708 (regcache_raw_read): Use.
2709 (regcache_raw_write): Use.
2710 (struct regcache): Rename raw_registers to registers and
2711 raw_register_valid_p to register_valid_p.
2712 (regcache_xmalloc): Update.
2713 (regcache_xfree): Update.
2714 (register_buffer): Update.
2715 (regcache_cpy): Update.
2716 (regcache_cpy_no_passthrough): Update.
2717 (regcache_valid_p): Update.
2718 (deprecated_grub_regcache_for_registers): Update.
2719 (deprecated_grub_regcache_for_register_valid): Update.
2720 (set_register_cached): Update.
2721 (regcache_raw_write): Update.
2722
2723 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2724
2725 * p-exp.y (name_not_typename): Use copy_name to
2726 set current_type variable for fields of THIS.
2727
2728 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2729
2730 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2731 * monitor.c (init_base_monitor_ops): Likewise.
2732 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2733 * remote-array.c (init_array_ops): Likewise.
2734 * remote-e7000.c (init_e7000_ops): Likewise.
2735 * remote-es.c (init_es1800_ops): Likewise.
2736 (init_es1800_child_ops): Likewise.
2737 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2738 * remote-sim.c (init_gdbsim_ops): Likewise.
2739 * remote-st.c (init_st2000_ops): Likewise.
2740 * sol-thread.c (init_sol_core_ops): Likewise.
2741 (init_sol_thread_ops): Likewise.
2742 * v850ice.c (init_850ice_ops): Likewise.
2743 * win32-nat.c (init_child_ops): Likewise.
2744 * wince.c (init_child_ops): Likewise.
2745
2746 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2747
2748 * utils.c (gdb_realpath): Make rp a constant pointer.
2749
2750 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2751
2752 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2753 a constant buffer; cannonicalize_file_name(); realpath() with a
2754 pathconf() defined buffer, xstrdup().
2755
2756 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2757
2758 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2759 to hang2.C; hang3.c to hang3.C.
2760
2761 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2762
2763 * findvar.c (read_var_value): Reenable TLS code.
2764
2765 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2766 Jim Blandy <jimb@redhat.com>
2767
2768 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2769 * target.c (update_current_target): Add
2770 to_get_thread_local_address.
2771 * target.h (to_get_thread_local_address): Export.
2772 (target_get_thread_local_address): Define.
2773 (target_get_thread_local_address_p): Define.
2774 * thread-db.c: Include solib-svr4.h.
2775 (td_thr_tls_get_addr_p): Define.
2776 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2777 (thread_db_get_thread_local_address): New function.
2778 (init_thread_db_ops): Initialize to_get_thread_local_address.
2779 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2780 * configure: Regenerate.
2781 * config.in: Regenerate.
2782
2783 2002-11-11 David Carlton <carlton@math.stanford.edu>
2784
2785 * linespec.c (set_flags): New function.
2786 (decode_line_1): Move code into set_flags.
2787
2788 2002-11-11 David Carlton <carlton@math.stanford.edu>
2789
2790 * linespec.c (decode_line_1): Move chunks of code to separate
2791 functions.
2792 (initialize_defaults): New function.
2793 (decode_indirect): New function.
2794
2795 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2796
2797 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2798 instead of void_code_ptr.
2799 (sigtramp_saved_pc): Ditto.
2800
2801 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2802 i386_fp_regnum_p.
2803
2804 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2805
2806 * gdbtypes.h (struct main_type): Move artificial flag out of
2807 loc. New member of ``struct field'' named static_kind. Reduce
2808 overloaded meaning of bitsize.
2809 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2810 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2811 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2812
2813 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2814 new fields.
2815 (template_to_fixed_record_type, template_to_static_fixed_type)
2816 (to_record_with_fixed_variant_part): Likewise.
2817 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2818 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2819 * dwarfread.c (struct_type, enum_type): Likewise.
2820 * hpread.c (hpread_read_enum_type)
2821 (hpread_read_function_type, hpread_read_doc_function_type)
2822 (hpread_read_struct_type): Likewise.
2823 * mdebugread.c (parse_symbol): Likewise.
2824
2825 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2826
2827 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2828 * stack.c (print_frame_info_base): Update.
2829 (print_frame_info_base, frame_info): Update.
2830 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2831 (sparc_frame_saved_pc): Update.
2832 * ada-lang.c (find_printable_frame): Update.
2833 * breakpoint.c (deprecated_frame_in_dummy): Update.
2834
2835 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2836
2837 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2838 defined.
2839 (regmap): Extend to cover all registers.
2840 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2841 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2842 definitions.
2843 (fetch_register, sore_register): Simplify.
2844 (old_fetch_inferior_registers, old_store_inferior_registers):
2845 Remove functions.
2846 (cannot_fetch_register, cannot_store_register): Change
2847 implementation to use regmap array to decide which registers
2848 cannot be fetched/stored. This removes $orig_eax from the
2849 registers that cannot be fetched/stored.
2850 (fetch_inferior_registers): Call fetch_register directly instead
2851 of calling old_fetch_inferior_registers.
2852 (store_inferior_registers): Call store_register directly instead
2853 of calling old_store_inferior_registers.
2854 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2855 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2856 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2857
2858 2002-11-09 Klee Dienes <kdienes@apple.com>
2859
2860 * i387-tdep.c (i387_supply_register): When called with NULL as a
2861 buffer, mark the register as not provided (to mirror the behavior
2862 of supply_register).
2863 (i387_supply_fxsave): Ditto.
2864 (i387_supply_fsave): Ditto (inherits the behavior from
2865 i387_supply_register).
2866
2867 2002-11-09 Klee Dienes <kdienes@apple.com>
2868
2869 * blockframe.c (sigtramp_saved_pc): Use
2870 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2871 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2872 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2873
2874 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2875
2876 * frame.c (get_prev_frame): Test prev_p to identify a previously
2877 unwound frame. Initialize prev_p.
2878 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2879 comment.
2880
2881 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2882
2883 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2884 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2885 more comments. Zap dead code.
2886
2887 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2888
2889 * infcmd.c (print_vector_info, print_float_info): Move code that
2890 checks whether the target has any registers and whether there is a
2891 selected frame up, such that it is also used if a target provides
2892 multi-arch definitions of these functions.
2893
2894 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2895
2896 * Makefile.in (DESTDIR): Define.
2897 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2898 prefix.
2899
2900 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2901 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2902
2903 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2904
2905 * i386-linux-tdep.c: Include "reggroups.h".
2906 (i386_linux_register_reggroup_p): New function.
2907 (i386_linux_init_abi): Set register_reggroup_p to
2908 i386_linux_register_reggroup_p.
2909 * i386-tdep.h (i386_register_reggroup_p): Declare.
2910 * i386-tdep.c: Include "reggroups.h".
2911 (i386_init_reggroups): New function.
2912 (i386_add_reggroups): New function.
2913 (i386_register_reggroup_p): New function.
2914 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2915 (_initialize_i386_tdep): Call i386_init_reggroups.
2916 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2917 specific reggroups.
2918
2919 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2920
2921 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2922 request that's available in *BSD.
2923
2924 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2925
2926 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2927 FDOFF_REGNUM.
2928
2929 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2930
2931 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2932 * dummy-frame.c (find_dummy_frame): Rename
2933 generic_find_dummy_frame, make static. Return the dummy frame
2934 instead of the regcache.
2935 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2936 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2937 (dummy_frame_register_unwind): Rename
2938 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2939 * dummy-frame.h (dummy_frame_register_unwind): Rename
2940 generic_call_dummy_register_unwind.
2941
2942 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2943
2944 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2945 except the inclusion of "i386/tm-i386.h", to...
2946 * config/i386/nm-i386v42mp.h: ...here.
2947 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2948
2949 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2950
2951 * Makefile.in (frame.o): Update dependencies.
2952 * blockframe.c (current_frame, frame_obstack_alloc)
2953 (frame_saved_regs_zalloc, get_current_frame)
2954 (set_current_frame, create_new_frame)
2955 (set_unwind_by_pc, get_next_frame)
2956 (flush_cached_frames, reinit_frame_cache)
2957 (frame_saved_regs_register_unwind)
2958 (deprecated_generic_get_saved_register)
2959 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2960 (_initialize_blockframe): Move frame code from here...
2961 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2962 "annotate.h" and "dummy-frame.h".
2963 (_initialize_frame): New function.
2964
2965 2002-11-08 Jim Blandy <jimb@redhat.com>
2966
2967 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2968 when we finish a function a context.
2969 * buildsym.h (outermost_context_p): New macro.
2970 (Bug analyzed by David Edelsohn.)
2971
2972 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2973
2974 * blockframe.c: Include "dummy-frame.h".
2975 (struct dummy_frame, dummy_frame_stack)
2976 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2977 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2978 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2979 (generic_save_call_dummy_addr, generic_pop_current_frame)
2980 (generic_pop_dummy_frame, generic_fix_call_dummy)
2981 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2982 dummy frame code from here...
2983 * dummy-frame.c: ...to here. New file.
2984 * dummy-frame.h: New file.
2985 (generic_call_dummy_register_unwind): Declare.
2986 (generic_find_dummy_frame): Declare.
2987 * Makefile.in (SFILES): Add dummy-frame.c.
2988 (dummy-frame.o): Specify dependencies.
2989 (dummy_frame_h): Define.
2990 (COMMON_OBS): Add dummy-frame.o.
2991 (blockframe.o): Update dependencies.
2992
2993 2002-11-08 Jim Blandy <jimb@redhat.com>
2994
2995 * dwarf2read.c (read_func_scope): Restore local_symbols and
2996 param_symbols after we finish the function context. (Based on a
2997 patch from David Edelsohn.)
2998
2999 2002-11-08 David Carlton <carlton@math.stanford.edu>
3000
3001 * linespec.c (symbol_found): New function.
3002 (minsym_found): New function.
3003 (decode_line_1): Separate out some code into separate functions.
3004
3005 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3006
3007 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3008 the benefit of the interix target.
3009 * i386-tdep.h (i386_frameless_signal_p): Declare.
3010
3011 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3012
3013 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3014 declaration that snuck in from change below.
3015
3016 2002-11-06 Andrew Cagney <cagney@redhat.com>
3017
3018 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3019 all callers.
3020 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3021 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3022 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3023 (i386_mxcsr_regnum_p): new function. Use instead of
3024 MXCSR_REGNUM_P.
3025 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3026 (i386_sse_regnum_p): Declare.
3027 (i386_mxcsr_regnum_p): Declare.
3028 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3029 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3030 (IS_FP_REGNUM): Update definition.
3031 (IS_FPU_CTRL_REGNUM): Update definition..
3032 (IS_SSE_REGNUM): Update definition..
3033 * i386v-nat.c (register_u_addr): Update.
3034 * go32-nat.c (fetch_register): Update.
3035 (store_register): Update.
3036
3037 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3038
3039 Preparation work to convert the hppa targets to multiarch partial.
3040
3041 * hppa-tdep.c: Add new functions replacing macro bodies from
3042 config/pa/tm-hppa.h. These function will be used to initialize
3043 the gdbarch structure. Import some comments from tm-hppa.h,
3044 and place them where appropriate, to avoid loosing them when
3045 we cleanup this file.
3046 (hppa_reg_struct_has_addr): New function.
3047 (hppa_inner_than): New function.
3048 (hppa_stack_align): New function.
3049 (hppa_pc_requires_run_before_use): New function.
3050 (hppa_instruction_nullified): New function.
3051 (hppa_register_byte): New function.
3052 (hppa_register_virtual_type): New function.
3053 (hppa_store_struct_return): New function.
3054 (hppa_cannot_store_register): New function.
3055 (hppa_frame_args_address): New function.
3056 (hppa_frame_locals_address): New function.
3057 (hppa_smash_text_address): New function.
3058 (hppa_coerce_float_to_double): New function. Requires the inclusion
3059 of "language.h".
3060
3061 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3062
3063 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3064 gdbarch-eligible macro to a call to the new associated function
3065 created in hppa-tdep.c.
3066 (INNER_THAN): Likewise.
3067 (STACK_ALIGN): Likewise.
3068 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3069 (INSTRUCTION_NULLIFIED): Likewise.
3070 (REGISTER_BYTE): Likewise.
3071 (REGISTER_VIRTUAL_TYPE): Likewise.
3072 (STORE_STRUCT_RETURN): Likewise.
3073 (CANNOT_STORE_REGISTER): Likewise.
3074 (FRAME_ARGS_ADDRESS): Likewise.
3075 (FRAME_LOCALS_ADDRESS): Likewise.
3076 (SMASH_TEXT_ADDRESS): Likewise.
3077 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3078 (ABOUT_TO_RETURN): Delete, as no longer used.
3079
3080 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3081
3082 * printcmd.c (disassemble_command): Remove obsolete function.
3083 (_initialize_printcmd): Do not create disassemble command here.
3084 * cli/cli-cmds.c (disassemble_command): New function. Implements
3085 disassemble command.
3086 (init_cli_cmds): Create disassemble command here instead.
3087
3088 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3089
3090 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3091
3092 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3093
3094 * regcache.h (regcache_cooked_read_using_offset_hack)
3095 (regcache_cooked_write_using_offset_hack): Delete declarations.
3096 (register_changed): Delete declaration.
3097 * regcache.c (regcache_cooked_read_using_offset_hack)
3098 (regcache_cooked_write_using_offset_hack): Delete functions.
3099 (cooked_xfer_using_offset_hack): Delete function.
3100 (register_changed): Delete function.
3101
3102 2002-11-07 Jim Blandy <jimb@redhat.com>
3103
3104 * macroscope.c: #include "complaints.h".
3105 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3106 but not in the macro table.
3107 * Makefile.in (macroscope.o): Record dependency.
3108
3109 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3110
3111 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3112
3113 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3114
3115 * regcache.c (deprecated_registers_fetched): Update.
3116 * regcache.h (deprecated_registers_fetched): Rename
3117 registers_fetched.
3118 * remote-vxsparc.c (vx_read_register): Update.
3119 * remote-vxmips.c (vx_read_register): Update.
3120 * remote-vx68.c (vx_read_register): Update.
3121 * irix5-nat.c (fetch_core_registers): Update.
3122 * mipsm3-nat.c (fetch_inferior_registers): Update.
3123 * sun3-nat.c (fetch_inferior_registers): Update.
3124 * symm-nat.c (fetch_inferior_registers): Update.
3125 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3126 (fetch_core_registers): Update.
3127 (fetch_kcore_registers): Update.
3128 * mips-nat.c (fetch_inferior_registers): Update.
3129 * corelow.c (get_core_registers): Update.
3130 * a68v-nat.c (fetch_inferior_registers): Update.
3131
3132 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3133
3134 Put in place the framework necessary for multiarching the hppa targets.
3135 * hppa-tdep.c (hppa_gdbarch_init): New function.
3136 (hppa_dump_tdep): New function.
3137 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3138 tdep structure dumper.
3139 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3140 until the multi-arching conversion has partially been completed.
3141
3142 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3143
3144 * valops.c (value_assign): Merge lval_register case into
3145 lval_reg_frame_relative. Use frame_register and
3146 regcache_cooked_write instead of get_saved_register and
3147 write_register_bytes. After flushing the register cache, try to
3148 re-select the selected frame.
3149
3150 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3151
3152 * regcache.h (deprecated_register_valid): Rename register_valid.
3153 * regcache.c: Update.
3154 * ia64-aix-nat.c: Update.
3155 * i386gnu-nat.c: Update.
3156 * alpha-nat.c: Update.
3157 * sparc-nat.c: Update.
3158 * lynx-nat.c: Update.
3159 * remote-mips.c: Update.
3160
3161 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3162
3163 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3164 to end of file, to be more consistent with the pratice followed
3165 by other targets.
3166
3167 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3168
3169 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3170 (print_float_info): Print registers in float_reggroup.
3171 (print_vector_info): Print registers in vector_reggroup.
3172 (default_print_registers_info): When all, print registers in
3173 all_reggroup. Otherwize, print registers in general_reggroup.
3174 (registers_info): Rewrite. Add support for register groups.
3175 Eliminate a goto.
3176
3177 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3178
3179 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3180 ages.
3181 (symtab_symbol_info): Remove eons old ifdeffed out code.
3182 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3183 command.
3184
3185 2002-11-06 Theodore A. Roth <troth@openavr.org>
3186
3187 * c-exp.y: Add missing semi-colons.
3188 * f-exp.y: Add missing semi-colons.
3189 * m2-exp.y: Add missing semi-colons.
3190 * p-exp.y: Add missing semi-colons.
3191 Add empty action to start rule to avoid a type clash error when
3192 building with bison >= 1.50.
3193
3194 2002-11-06 Jim Blandy <jimb@redhat.com>
3195
3196 * macrotab.h (struct macro_source_file): Doc fix.
3197
3198 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3199
3200 * varobj.c (child_exists, cplus_number_of_children): Change
3201 STREQ macro references to strcmp.
3202 (cplus_name_of_child): Change code to handle the fact that
3203 fields are not necessarily contiguous with regards to their
3204 access control. This is a fix for PR gdb/792.
3205
3206 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3207
3208 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3209 * gdbarch.h, gdbarch.c: Regnerate.
3210 * frame.h (frame_register): Declare.
3211 * frame.c (frame_register): New function.
3212 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3213 GET_SAVED_REGISTER, otherwize call
3214 generic_unwind_get_saved_register.
3215 (frame_register_read): Use frame_register instead of
3216 get_saved_register.
3217
3218 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3219
3220 From Jim Ingham <jingham@apple.com>:
3221 * event-top.c (gdb_disable_readline): New function.
3222 (_initialize_event_loop): Move comment.
3223
3224 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3225
3226 * event-loop.c (start_event_loop): Add comment.
3227 Update copyright.
3228
3229 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3230
3231 * infcmd.c (default_print_registers_info): Do not call
3232 PRINT_REGISTER_HOOK.
3233
3234 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3235
3236 * sparc-tdep.c (sparc_print_register_hook): Make static.
3237 (sparc_print_registers_info): New function.
3238 (sparc_do_registers_info): New function.
3239 (sparclet_print_registers_info): New function.
3240 (sparclet_do_registers_info): New function.
3241 (do_sparc_print_registers_info): New function.
3242 (sparc_print_registers): New static function, clone of infcmd.c's
3243 default_print_registers_info.
3244 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3245 (sparclet_do_registers_info): Declare.
3246 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3247 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3248 Re-define.
3249 (sparc_do_registers_info): Declare.
3250 (PRINT_REGISTER_HOOK): Delete macro.
3251 (sparc_print_register_hook): Delete declaration.
3252
3253 2002-11-05 David Carlton <carlton@math.stanford.edu>
3254
3255 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3256 functions.
3257 (lookup_symbol_aux_local): New function.
3258 (lookup_symbol_aux_symtabs): New function.
3259 (lookup_symbol_aux_psymtabs): New function.
3260
3261 2002-11-05 David Carlton <carlton@math.stanford.edu>
3262
3263 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3264 previous values of 'objfile' and 'block'.
3265
3266 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3267
3268 * values.c (value_change_enclosing_type): Set
3269 enclosing_type field correctly also for the case where
3270 more memory needs to be allocated.
3271
3272 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3273
3274 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3275 of puts_filtered.
3276
3277 * i387-tdep.c (i387_print_float_info): Replace calls to
3278 register_read and deprecated_read_register_gen with calls to
3279 frame_register_read, and make the necessary adjustments to the
3280 surrounding code.
3281
3282 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3283
3284 * gdbarch.sh (register_reggroup_p): Allow default value.
3285 * gdbarch.h, gdbarch.c: Regenerate.
3286
3287 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3288
3289 * regcache.h: Add coment indicating replacements for deprecated
3290 functions.
3291
3292 2002-11-02 Andrew Cagney <cagney@redhat.com>
3293
3294 * reggroups.h, reggroups.c: New files.
3295 * regcache.c: Include "reggroups.h".
3296 (enum regcache_dump_what): Add `regcache_dump_groups'.
3297 (regcache_dump): Contract size of the "Type" column. When
3298 specified, dump the register's groups.
3299 (maintenance_print_register_groups): New function.
3300 (_initialize_regcache): Add command `maint print register-groups'.
3301 * Makefile.in (COMMON_OBS): Add reggroups.o
3302 (SFILES): Add reggroups.c.
3303 (reggroups_h): Define.
3304 (regcache.o, gdbarch.o): Update dependencies.
3305 (reggroups.o): Specify dependencies.
3306 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3307 Add opaque declaration for `struct reggroup' in generated .h file.
3308 Include "reggroups.h" in generated .c file.
3309 gdbarch.h, gdbarch.c: Re-generate.
3310
3311 2002-11-02 Andrew Cagney <cagney@redhat.com>
3312
3313 * regcache.h (deprecated_read_register_gen): Rename
3314 read_register_gen.
3315 (deprecated_write_register_gen): Rename write_register_gen.
3316 * i387-tdep.c: Update.
3317 * x86-64-linux-nat.c: Update
3318 * wince.c: Update.
3319 * thread-db.c: Update.
3320 * win32-nat.c: Update.
3321 * mips-tdep.c: Update.
3322 * d10v-tdep.c: Update.
3323 * cris-tdep.c: Update.
3324 * remote-sim.c: Update.
3325 * remote-rdi.c: Update.
3326 * remote-rdp.c: Update.
3327 * frame.c: Update.
3328 * target.c: Update.
3329 * blockframe.c: Update.
3330 * x86-64-tdep.c: Update.
3331 * xstormy16-tdep.c: Update.
3332 * sh-tdep.c: Update.
3333 * s390-tdep.c: Update.
3334 * rs6000-tdep.c: Update.
3335 * sparc-tdep.c: Update.
3336 * i386-tdep.c: Update.
3337 * dwarf2cfi.c: Update.
3338 * regcache.c: Update.
3339
3340 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3341
3342 New interix-specific files:
3343 * config/i386/nm-interix.h: New file.
3344 * config/i386/interix.mh: New file.
3345 * config/i386/interix.mt: New file.
3346 * i386-interix-nat.c: New file.
3347 * i386-interix-tdep.c: New file.
3348
3349 2002-11-01 Andrew Cagney <cagney@redhat.com>
3350
3351 * frame.h (deprecated_generic_get_saved_register): Rename
3352 generic_get_saved_register.
3353 * blockframe.c (deprecated_generic_get_saved_register): Update.
3354 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3355 (xstormy16_frame_saved_register): Update.
3356 * sh-tdep.c (sh_gdbarch_init): Update.
3357 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3358 * ia64-tdep.c (ia64_get_saved_register): Update.
3359 * cris-tdep.c (cris_gdbarch_init): Update.
3360 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3361 * arm-tdep.c (arm_gdbarch_init): Update.
3362
3363 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3364
3365 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3366
3367 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3368
3369 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3370 trampolines in sigaction.
3371
3372 2002-10-31 Andrew Cagney <cagney@redhat.com>
3373
3374 * h8300-tdep.c: Include "gdb_assert.h".
3375 (h8300_print_register): Add gdbarch, file and frame parameters.
3376 Use frame_read_unsigned_register to read the register's value.
3377 Use fprintf_filtered to display output.
3378 (h8300_print_registers_info): Replace h8300_do_registers_info.
3379 (h8300_gdbarch_init): Set print_registers_info.
3380
3381 2002-10-31 Andrew Cagney <cagney@redhat.com>
3382
3383 * frame.c (frame_read_unsigned_register): New function.
3384 (frame_read_signed_register): New function.
3385 * frame.h (frame_read_unsigned_register): Declare.
3386 (frame_read_signed_register): Declare.
3387
3388 2002-10-31 Andrew Cagney <cagney@redhat.com>
3389
3390 * h8500-tdep.c (h8500_print_registers_info): New static function,
3391 clone of infcmd.c's default_print_registers_info.
3392 (h8500_do_registers_info): New funtion.
3393 (h8500_print_register_hook): Rename print_register_hook, make
3394 static.
3395
3396 * config/h8500/tm-h8500.h: Update copyright.
3397 (DEPRECATED_DO_REGISTERS_INFO): Define.
3398 (h8500_do_registers_info: Declare.
3399 (PRINT_REGISTER_HOOK): Delete macro.
3400 (print_register_hook): Delete function.
3401
3402 2002-10-31 Andrew Cagney <cagney@redhat.com>
3403
3404 * z8k-tdep.c (z8k_print_register_hook): Make static.
3405 (z8k_print_registers_info): New static function, clone of
3406 infcmd.c's default_print_registers_info.
3407 (z8k_do_registers_info): New function. Wrap
3408 z8k_print_registers_info.
3409 * config/z8k/tm-z8k.h: Update copyright.
3410 (PRINT_REGISTER_HOOK): Delete macro.
3411 (z8k_print_register_hook): Delete declaration.
3412 (DEPRECATED_DO_REGISTERS_INFO): Define.
3413 (z8k_do_registers_info): Declare.
3414
3415 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3416
3417 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3418 as this is already provided by value.h, and was actually causing
3419 a compilation error because of a conflict in parameter type
3420 declaration due to a missing const keyword.
3421 (low_text_segment_addres): Fix a compilation warning.
3422
3423 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3424
3425 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3426 registers without a name.
3427 (mips_linux_cannot_store_register): Don't store registers without
3428 a name.
3429
3430 2002-10-28 David Carlton <carlton@math.stanford.edu>
3431
3432 * symtab.c (find_addr_symbol): Delete. (It was already commented
3433 out.)
3434 * symtab.h: Delete prototype for find_addr_symbol.
3435
3436 2002-10-26 Andrew Cagney <cagney@redhat.com>
3437
3438 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3439 DO_REGISTERS_INFO.
3440 gdbarch.h, gdbarch.c: Re-generate.
3441 * infcmd.c (default_print_registers_info): Update reference.
3442 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3443 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3444 * sh-tdep.c (sh_gdbarch_init): Ditto.
3445 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3446 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3447
3448 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3449
3450 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3451 cfi_init_extra_frame_info.
3452 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3453 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3454
3455 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3456 target where necessary. Add more comments and remove the ones
3457 that don't provide any useful information.
3458
3459 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3460 deprecated_read_register_dummy with
3461 frame_unwind_unsigned_register.
3462
3463 * i386-tdep.c (i386_extract_struct_value_address): Use
3464 regcache_raw_read_unsigned instead of
3465 regcache_cooked_read_unsigned since we know that the register
3466 we're reading isn't a pseudo register. Rename variable 'val' into
3467 the more descriptive 'addr'.
3468
3469 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3470 (x86_64_push_return_address): Add comment.
3471 (x86_64_pop_frame): Make static.
3472 (examine_argument): Clarify comment.
3473 (x86_64_skip_prologue): Make prolog_expact variable static.
3474
3475 * dwarf2cfi.c: Fix some formatting problems.
3476 (context_cpy, read_encoded_pointer): Clarify comments.
3477
3478 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3479 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3480 i386 target back into x86_64_gdbarch_init. Add some comments and
3481 remove meaningless ones.
3482
3483 2002-10-25 Andrew Cagney <cagney@redhat.com>
3484
3485 * complaints.h (struct deprecated_complaint): Rename `struct
3486 complaint'.
3487 * complaints.c (complain): Update.
3488 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3489 incorrect comment indicating that "symfile.h" was being included
3490 for the `struct complaint' definition.
3491 * remote-vx.c: Update.
3492 * objc-lang.c: Update.
3493 * xcoffread.c: Update.
3494 * hpread.c: Update.
3495 * mdebugread.c: Update.
3496 * stabsread.c: Update.
3497 * dwarf2read.c: Update.
3498 * dwarfread.c: Update.
3499 * elfread.c: Update.
3500 * coffread.c: Update.
3501 * stabsread.h: Update.
3502 * dbxread.c: Update.
3503 * buildsym.c: Update.
3504 * gdbtypes.c: Update.
3505 * macrotab.c: Update.
3506
3507 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3508
3509 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3510 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3511 (x86_64_init_abi): ...new function.
3512
3513 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3514 * i386v-nat.c: Include "i386-tdep.h".
3515
3516 2002-10-25 Andrew Cagney <cagney@redhat.com>
3517
3518 * gdbtypes.c (address_space_name_to_int): Update.
3519 (address_space_int_to_name): Update.
3520 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3521 multi-arch predicate.
3522 (address_class_name_to_type_flags): Ditto.
3523 * gdbarch.h, gdbarch.c: Re-generate.
3524
3525 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3526
3527 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3528
3529 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3530
3531 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3532
3533 * symtab.h (INIT_SAL): Delete macro.
3534 (init_sal): Export.
3535 * symtab.c (init_sal): New function.
3536
3537 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3538 to init_sal function call.
3539 (find_sal_from_funcs_and_line): Ditto.
3540 (all_sals_for_line): Ditto.
3541 * breakpoint.c (create_internal_breakpoint): Ditto.
3542 (create_fork_vfork_event_catchpoint): Ditto.
3543 (create_exec_event_catchpoint): Ditto.
3544 (parse_breakpoint_sals): Ditto.
3545 (watch_command_1): Ditto.
3546 (handle_gnu_4_16_catch_command): Ditto.
3547 (clear_command): Ditto.
3548 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3549 * infcmd.c (run_stack_dummy): Ditto.
3550 * infrun.c (process_event_stop_test): Ditto.
3551 (check_sigtramp2): Ditto.
3552 (step_over_function): Ditto.
3553 * linespec.c (decode_line_2): Ditto.
3554 (decode_line_1): Ditto.
3555 * source.c (line_info): Ditto.
3556 * symtab.c (find_pc_sect_line): Ditto.
3557
3558 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3559
3560 * dwarf2cfi.c (struct context)
3561 (struct context_reg): Moved to dwarf2cfi.h
3562 (context_alloc, frame_state_alloc, context_cpy):
3563 Made extern instead of static, removed prototypes.
3564 * dwarf2cfi.h (struct context)
3565 (struct context_reg): New, moved from dwarf2cfi.c
3566 (context_alloc, frame_state_alloc, context_cpy):
3567 New prototypes.
3568 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3569 Changed from static to extern.
3570 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3571 (LINUX_SIGCONTEXT_FP_OFFSET)
3572 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3573 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3574 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3575 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3576 set_gdbarch_*() calls now use x86-64 specific functions
3577 instead of DWARF2 CFI ones.
3578 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3579 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3580 (x86_64_init_extra_frame_info): New prototypes.
3581
3582 2002-10-23 David Carlton <carlton@math.stanford.edu>
3583
3584 * linespec.c: #include "parser-defs.h".
3585 Delete prototype for find_template_name_end.
3586 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3587
3588 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3589
3590 * NEWS: add recent mi fixes.
3591 * varobj.c (struct varobj): Add new "updated" flag.
3592 (new_variable): Default "updated" flag to 0.
3593 (varobj_set_value): Set "updated" flag to 1 if value
3594 changes.
3595 (varobj_update): Check varobj "updated" flag before
3596 comparing old and refreshed values. Fix for
3597 PR gdb/702.
3598
3599 2002-10-23 David Carlton <carlton@math.stanford.edu>
3600
3601 * parse.c (parse_exp_1): Use BLOCK_START.
3602 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3603 SYMBOL_BLOCK_VALUE.
3604 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3605
3606 2002-10-23 David Carlton <carlton@math.stanford.edu>
3607
3608 * symtab.c: Delete cplusplus_hint.
3609 Delete prototype for find_template_name_end.
3610
3611 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3612
3613 * symtab.h: Update comment.
3614
3615 2002-10-23 Michael Snyder <msnyder@redhat.com>
3616
3617 * printcmd.c (address_info): Restore quotes in output.
3618 * valops.c (value_of_local): Restore quotes in error message.
3619
3620 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3621
3622 * symtab.c (symbol_demangled_name): New function.
3623 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3624 turning most of it into a function.
3625 (symbol_demangled_name): Export.
3626
3627 2002-10-23 Michael Snyder <msnyder@redhat.com>
3628
3629 * valops.c (value_of_local): Restore quotes in error message.
3630
3631 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3632
3633 * symtab.c (symbol_init_language_specific): New function.
3634 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3635 turning most of it into a function.
3636 (symbol_init_language_specific): Export.
3637
3638 2002-10-23 David Carlton <carlton@math.stanford.edu>
3639
3640 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3641 (dwarf_attr_name): Ditto.
3642 (dwarf_type_encoding_name): Ditto.
3643 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3644 (process_die): Handle DW_TAG_namespace,
3645 DW_TAG_imported_declaration, DW_TAG_imported_module.
3646 (read_namespace): New function.
3647
3648 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3649
3650 * configure.in: Define NEW_PROC_API on Interix too.
3651 * configure: Regenerate.
3652
3653 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3654
3655 * configure: Regenerate using the proper version of autoconf.
3656
3657 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3658
3659 * findvar.c (read_var_value): Temporarily disable TLS code, until
3660 complete TLS support is added.
3661
3662 2002-10-21 Jim Blandy <jimb@redhat.com>
3663 Elena Zannoni <ezannoni@redhat.com>
3664
3665 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3666 for thread local storage locations.
3667 (struct symbol): Add objfile field.
3668 (SYMBOL_OBJFILE): Define.
3669 * dwarf2read.c (is_thread_local): New static variable.
3670 (new_symbol): If variable is in thread local fill in address class
3671 and objfile appropriately.
3672 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3673 stack operation.
3674 * printcmd.c (address_info): Print the information for thread
3675 local storage variable.
3676 * findvar.c (read_var_value): In case of thread local variable,
3677 defer to the target vector code to compute address.
3678
3679 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3680
3681 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3682 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3683
3684 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3685
3686 * symtab.h (address_class): Rename
3687 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3688 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3689 * printcmd.c (address_info): Ditto.
3690 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3691
3692 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3693
3694 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3695 DBREG_DRX macro to acces debug registers.
3696
3697 * Makefile.in (i386obsd-tdep.o): New target.
3698
3699 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3700 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3701
3702 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3703 * config/i386/obsd.mt: New file.
3704 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3705 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3706 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3707 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3708 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3709 * i386obsd-tdep.c: New file.
3710
3711 2002-10-19 Adam Fedor <fedor@gnu.org>
3712
3713 * objc-exp.y (name_not_typename): Fix invalid comment.
3714
3715 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3716
3717 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3718 to allocate partial syms and macro byte caches.
3719
3720 2002-10-18 David Carlton <carlton@math.stanford.edu>
3721
3722 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3723
3724 2002-10-18 Adam Fedor <fedor@gnu.org>
3725
3726 * stabsread.c (find_name_end): New function.
3727 (define_symbol): Use it.
3728
3729 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3730
3731 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3732 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3733 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3734 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3735
3736 2002-10-17 David Carlton <carlton@math.stanford.edu>
3737
3738 * symfile.h: Add opaque declaration for struct obstack.
3739 Declare obsavestring to take a const char *.
3740 * symfile.c (obsavestring): Make first argument a const char *.
3741
3742 2002-10-16 Adam Fedor <fedor@gnu.org>
3743
3744 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3745 names when matching breakpoints in current file.
3746
3747 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3748
3749 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3750 (read_tag_pointer_type): Add address class support.
3751 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3752 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3753 New methods.
3754 * gdbarch.h, gdbarch.c: Regenerate.
3755 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3756 (make_type_with_address_space, recursive_type_dump): Add address
3757 class support.
3758 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3759 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3760 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3761
3762 2002-10-16 Klee Dienes <kdienes@apple.com>
3763
3764 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3765 to get the last character of a char[] buffer, not
3766 name[sizeof(vptr_name)-1].
3767
3768 2002-10-14 Adam Fedor <fedor@gnu.org>
3769
3770 * symtab.h: New objc_specific struct.
3771 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3772 (SYMBOL_DEMANGLED_NAME): Likewise.
3773
3774 2002-10-14 Adam Fedor <fedor@gnu.org>
3775
3776 * symfile.c (init_filename_language_table): Add ObjC file extension.
3777
3778 2002-10-14 Adam Fedor <fedor@gnu.org>
3779
3780 * utils.c (puts_filtered_tabular): New function.
3781 (fprintf_symbol_filtered): Get ObjC demangled name.
3782 * defs.h (puts_filtered_tabular): Declared.
3783
3784 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3785
3786 * c-lang.h (c_type_print_varspec_prefix): Delete.
3787 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3788 ``need_post_space'' parameter. Adjust all callers.
3789
3790 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3791
3792 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3793 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3794 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3795 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3796
3797 2002-10-13 Adam Fedor <fedor@gnu.org>
3798
3799 * source.c (print_source_lines): Update comments.
3800
3801 2002-10-13 Adam Fedor <fedor@gnu.org>
3802
3803 * valops.c (value_of_local): New function.
3804 (value_of_this): Use it.
3805 * value.h (value_of_local): Declared.
3806
3807 2002-10-13 Adam Fedor <fedor@gnu.org>
3808
3809 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3810 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3811
3812 2002-10-12 Adam Fedor <fedor@gnu.org>
3813
3814 * language.c (binop_result_type): Add language_objc to case.
3815 (integral_type): Likewise.
3816 (character_type): Likewise.
3817 (string_type): Likewise.
3818 (boolean_type): Likewise.
3819 (structured_type): Likewise.
3820 (binop_type_check): Likewise.
3821
3822 2002-10-11 Adam Fedor <fedor@gnu.org>
3823
3824 * printcmd.c (address_info): Print 'self' for ObjC.
3825
3826 2002-10-11 Adam Fedor <fedor@gnu.org>
3827
3828 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3829 OP_SELF.
3830
3831 2002-10-11 Adam Fedor <fedor@gnu.org>
3832
3833 * language.h (CAST_IS_CONVERSION): Add language_objc.
3834
3835 2002-10-11 Adam Fedor <fedor@gnu.org>
3836
3837 * defs.h (enum language): Add language_objc.
3838
3839 2002-10-11 Klee Dienes <kdienes@apple.com>
3840
3841 * corefile.c (read_memory_typed_address): New function.
3842 * gdbcore.h (read_memory_typed_address): Add prototype.
3843 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3844 to read a value destined for a CORE_ADDR, not read_memory_integer.
3845 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3846 (f77_get_dynamic_lowerbound): Ditto.
3847
3848 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3849
3850 * utils.c (string_to_core_addr): After turning string into
3851 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3852 which will do necessary sign-extension, etc.
3853
3854 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3855
3856 * c-exp.y (THIS): Delete token and grammar rule.
3857 (yylex): Don't return THIS.
3858 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3859 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3860 * demangle.c (cplus_markers): Update comment. Put '$'
3861 first. Remove CPLUS_MARKER.
3862 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3863 * jv-exp.y (THIS): Delete token and grammar rule.
3864 (yylex): Don't return THIS.
3865 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3866 * objc-exp.y (THIS): Delete token and grammar rule.
3867 (yylex): Don't return THIS.
3868 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3869 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3870 (read_member_functions): Likewise for opname.
3871 (read_tilde_fields): Use is_cplus_marker.
3872
3873 * defs.h (CPLUS_MARKER): Don't define.
3874 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3875 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3876 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3877 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3878 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3879
3880 * config/i386/tm-i386v4.h: Delete file.
3881 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3882 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3883 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3884 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3885 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3886 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3887 * config/i386/i386v4.mt (TM_FILE): Likewise.
3888 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3889
3890 2002-10-10 Marko Mlinar <markom@opencores.org>
3891
3892 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3893 accidentially not commited 2002-10-09
3894 * gdbarch.h, gdbarch.c: Re-generate.
3895
3896 2002-10-09 Marko Mlinar <markom@opencores.org>
3897
3898 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3899 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3900 * gdbarch.h, gdbarch.c: Re-generate.
3901
3902 2002-10-08 Petr Sorfa <petrs@caldera.com>
3903
3904 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3905
3906 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3907 so we can work on more than one compilation unit at a time. This
3908 helps prepare GDB to handle inter-CU die references.
3909 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3910 the code to be defined before struct comp_unit_head.
3911 (comp_unit_head): Added new members - offset, cu_head,
3912 begin_die, next and dwarf2_abbrevs.
3913 (dwarf2_abbrevs): Removed single static var; now member of
3914 struct comp_unit_head.
3915 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3916 members.
3917 (psymtab_to_symtab_1): Changed to work with the new
3918 struct comp_unit_head.
3919 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3920 constructs the dwarf2_abbrevs[] inside the cu_header.
3921 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3922 dwarf2_abbrev table to clean up.
3923 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3924 handling of dwarf2_abbrevs inside the cu_header.
3925 (read_partial_die): Now supports the call to the new
3926 dwarf2_lookup_abbrev.
3927 (read_full_die): Now supports the call to the new
3928 dwarf2_lookup_abbrev.
3929
3930 2002-10-06 Christopher Faylor <cgf@redhat.com>
3931
3932 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3933 insure that shell variables, such as "transformed_name" are propagated
3934 to later shell statements in rule.
3935
3936 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3937
3938 * config/i386/nm-i386sco.h: Add protection against
3939 multiple-inclusion. Include "i386/nm-i386v.h".
3940 (REGISTER_U_ADDR): Remove define.
3941 (i386_register_u_addr): Remove prototype.
3942
3943 2002-10-04 Michael Snyder <msnyder@redhat.com>
3944
3945 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3946 before treating it as a single-step event.
3947
3948 2002-10-03 Adam Fedor <fedor@gnu.org>
3949
3950 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3951 (objc_demangle): Remove assignment in if statements, Replace
3952 free with xfree.
3953 (add_msglist): Likewise.
3954 (end_msglist): Likewise.
3955 (complare_selectors): Likewise.
3956 (selectors_info): Likewise.
3957 (compare_classes): Likewise.
3958 (classes_info): Likewise.
3959 (print_object_command): Likewise.
3960 (find_objc_msgcall_submethod): Replace PTR with void *.
3961 * objc-lang.h: Remove check for __STDC__.
3962
3963 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3964
3965 * ui-out.h (ui_out_field_fmt_int): New prototype.
3966 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3967 of field width and alignment.
3968 * stack.c (print_frame_info_base): When printing frame level, use
3969 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3970 PR gdb/192
3971
3972 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3973
3974 * MAINTAINERS: Add self to Write After Approval list.
3975
3976 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3977
3978 * infcmd.c (interrupt_target_command_wrapper): Delete.
3979 (interrupt_target_command): Make non static.
3980 (nofp_registers_info): Make static.
3981 * stack.c (return_command_wrapper): Delete.
3982 (return_command): Make non static.
3983
3984 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3985
3986 * event-top.c (gdb_setup_readline): New function. Code moved from
3987 _initialize_event_loop().
3988 (_initialize_event_loop): Call gdb_setup_readline().
3989
3990 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3991
3992 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3993 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3994 * gdbarch.h, gdbarch.c: Re-generate.
3995
3996 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3997
3998 Fix PR gdb/778
3999 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4000 before recursing.
4001 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4002 of fill_in_vptr_fieldno.
4003
4004 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4005
4006 * inferior.h (registers_info, stepi_command, nexti_command,
4007 continue_command, interrupt_target_command): Export from infcmd.c.
4008 * frame.h (args_info, selected_frame_level_changed_hook,
4009 return_command): Export from stack.c.
4010 * v850ice.c (stepi_command, nexti_command, continue_command): use
4011 prototypes from inferior.h.
4012 * tracepoint.c (registers_info, args_info, locals_info): Use
4013 prototypes from frame.h and inferior.h.
4014 * Makefile.in (mi-main.o): Add dependency on frame.h.
4015
4016 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4017
4018 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4019 value in register 3 adjusted by ppc_gp0_regnum.
4020
4021 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4022
4023 2002-10-02 Marko Mlinar <markom@opencores.org>
4024
4025 * MAINTAINERS: Add myself to the Write After Approval list.
4026
4027 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4028
4029 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4030 of the section for the N64 ABI, fixed.
4031
4032 * config/mips/tm-irix6.h: Include solib.h.
4033
4034 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4035
4036 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4037 GNU operators.
4038
4039 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4040
4041 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4042 and that "mi0" syntax has been removed.
4043
4044 2002-09-30 David Carlton <carlton@math.stanford.edu>
4045
4046 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4047 * ppc-sysv-tdep.c: #include "gdb_string.h".
4048 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4049 pacify GCC.
4050
4051 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4052
4053 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4054 "vrsave"'s register number.
4055
4056 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4057
4058 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4059 use frame_unwind_signed_register to obtain the PC.
4060 (mips_frame_chain): Handle a generic dummy frame.
4061 (mips_init_extra_frame_info): When a generic dummy frame, don't
4062 re-compute the frame base.
4063 (mips_pop_frame): Handle generic dummy frames.
4064 (mips_gdbarch_init): When generic dummy frames, set
4065 use_generic_dummy_frames, push_dummy_frame to
4066 generic_push_dummy_frame, pc_in_call_dummy to
4067 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4068 generic_save_dummy_frame_tos.
4069
4070 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4071
4072 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4073 against TOP when TOP was explictly set.
4074 (generic_push_dummy_frame): Set TOP to zero.
4075
4076 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4077
4078 * event-loop.c (start_event_loop): Rename variable 'result' to
4079 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4080
4081 2002-09-30 Keith Seitz <keiths@redhat.com>
4082
4083 * gdb-events.sh (selected_thread_changed): New event.
4084 * gdb-events.c: Regenerated.
4085 * gdb-events.h: Regenerated.
4086
4087 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4088
4089 * MAINTAINERS: Add self to Write After Approval list.
4090
4091 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4092
4093 * disasm.c: New file.
4094 * disasm.h: New file.
4095 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4096 (compare_lines): Ditto.
4097 (dump_insns): Ditto.
4098 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4099 argument.
4100 (do_assembly_only): Ditto.
4101 (do_disassembly): Renamed to gdb_disassembly and moved to
4102 disasm.c. Sdded uiout argument.
4103 * Makefile.in: Add new files. Reorder SFILES list. Update
4104 dependencies. Include libgdb.a later in the insight executable.
4105
4106 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4107
4108 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4109 bfd/elf64-alpha-fbsd.c.
4110
4111 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4112
4113 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4114 i386gnu-tdep.c.
4115
4116 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4117
4118 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4119 __FUNCTION__.
4120 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4121 function name.
4122 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4123 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4124 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4125 (S_msg_sig_post_reply): Ditto.
4126
4127 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4128
4129 * sh-tdep.c (sh_use_struct_convention): Use definition according
4130 to ABI.
4131 (sh_push_arguments): Store in register with correct endianess.
4132 (sh_default_store_return_value): Ditto.
4133 (sh_gdbarch_init): Set sizeof long double to 8.
4134
4135 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4136
4137 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4138 Fix some whitespace problems.
4139
4140 2002-09-27 David Carlton <carlton@math.stanford.edu>
4141
4142 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4143 (mcore-tdep.o): Ditto.
4144 (ns32k-tdep.o): Ditto.
4145 (ns32knbsd-tdep.o): Ditto.
4146 (sh3-rom.o): Ditto.
4147 (vax-tdep.o): Ditto.
4148 * cris-tdep.c: #include "gdb_string.h"
4149 * mcore-tdep.c: Ditto.
4150 * ns32k-tdep.c: Ditto.
4151 * ns32knbsd-tdep.c: Ditto.
4152 * sh3-rom.c: Ditto.
4153 * vax-tdep.c: Ditto.
4154
4155 2002-09-27 David Carlton <carlton@math.stanford.edu>
4156
4157 * config/djgpp/fnchange.lst: Add entries for
4158 gdb/testsuite/gdb.c++/m-static files.
4159
4160 2002-09-27 Jim Wilson <wilson@redhat.com>
4161
4162 * MAINTAINERS: Add myself to the Write After Approval list.
4163
4164 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4165
4166 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4167
4168
4169 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4170
4171 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4172 frame.
4173
4174 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4175
4176 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4177 (rs6000_struct_return_address): Delete variable.
4178 (rs6000_store_struct_return): Update.
4179 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4180 deprecated_extract_struct_value_address.
4181 (rs6000_frame_align): New function.
4182 (rs6000_gdbarch_init): Set frame_align.
4183
4184 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4185
4186 From Grace Sainsbury <graces@redhat.com>:
4187 * Makefile.in (gdbtk-main.o): New target.
4188 (gdb.o): New target.
4189 (main_h): Define.
4190 (main.o): Update dependencies.
4191 (gdb$(EXEEXT)): Add gdb.o.
4192 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4193 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4194 (SUBDIR_GDBTK_CLEAN): Set.
4195 (install-gdbtk): Install the insight binary.
4196 (uninstall-gdbtk): New target.
4197 (all-gdbtk, clean-gdbtk): New rule.
4198 * top.c (use_windows): Default to zero.
4199 * main.c: Include "main.h".
4200 (main): Delete.
4201 (struct captured_main_args): Delete.
4202 (gdb_main): New function.
4203 * main.h: New file.
4204 * gdb.c: New File.
4205
4206 2002-09-25 Andrew Cagney <cagney@redhat.com>
4207
4208 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4209 (frame_map_regnum_to_name): New function.
4210 (frame_map_name_to_regnum): New function.
4211 * frame.h (frame_map_name_to_regnum): Declare.
4212 (frame_map_regnum_to_name): Declare.
4213 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4214 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4215 * parse.c: Do not include "builtin-regs.h".
4216 (target_map_name_to_register): Delete function.
4217 (write_dollar_variable): Use frame_map_name_to_regnum.
4218 * parser-defs.h (target_map_name_to_register): Delete declaration.
4219 * expprint.c: Include "frame.h".
4220 (print_subexp): Use frame_map_regnum_to_name.
4221 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4222 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4223
4224 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4225
4226 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4227 wasn't saved, and the next innermost frame is a dummy, return the
4228 dummy frame's link register.
4229
4230 2002-09-24 Jim Blandy <jimb@redhat.com>
4231
4232 Fix from Paul Breed:
4233 * main.c (captured_main): Add a `break' after the case for 'b'.
4234
4235 2002-09-24 Keith Seitz <keiths@redhat.com>
4236
4237 * varobj.c (c_type_of_child): Use get_target_type instead
4238 of TYPE_TARGET_TYPE.
4239
4240 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4241
4242 * source.c (get_current_or_default_source_symtab_and_line): Remove
4243 function.
4244 (set_default_source_symtab_and_line): New function. Attempts to
4245 determine a source file to list lines from if one is not currently
4246 defined.
4247 (get_current_source_symtab_and_line): Initialize sal.pc and
4248 sal.end fields.
4249 (set_current_source_symtab_and_line): Mark argument as const.
4250 * source.h: Update declarations and comments.
4251 * linespec.c (decode_line_1): Replace call to removed routine above.
4252 * stack.c (print_frame_info_base): Ditto.
4253 * cli/cli-cmds.c (edit_command): Ditto.
4254 (list_command): Ditto.
4255
4256 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4257
4258 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4259 sal.pc and sal.end fields.
4260 (get_current_or_default_source_symtab_and_line): Ditto.
4261 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4262 so we do not cause a new source symtab to be searched for (reverting an
4263 unintentional change from the 2002-09-20 patch).
4264 * scm-lang.c (scm_unpac): Ditto.
4265
4266 2002-09-21 Andrew Cagney <cagney@redhat.com>
4267
4268 * complaints.c (symfile_explanations): Remove new-line from
4269 ``isolated_message''.
4270 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4271 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4272
4273 2002-09-20 Nick Clifton <nickc@redhat.com>
4274
4275 * NEWS: Announce that V850EA ISA is no longer supported.
4276 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4277
4278 2002-09-20 David Carlton <carlton@math.stanford.edu>
4279
4280 * Makefile.in (c-lang.o): Correct dependencies.
4281 (utils.o): Gather dependencies.
4282 (charset.o): Move.
4283 * c-lang.c: #include "gdb_string.h"
4284
4285 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4286
4287 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4288 * cli/cli-cmds.c (list_command): New function. Implements the new
4289 cli edit command.
4290 (_init_cli_cmds): Add new command definition.
4291 * gdb.1: Document edit command.
4292 * doc/gdb.texinfo: Document edit command.
4293
4294 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4295
4296 * source.c: Make global variables current_source_symtab and
4297 current_source_line static.
4298 (list_command): Moved to cli/cli-cmds.c.
4299 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4300 (get_first_line_listed): New accessor function.
4301 (get_lines_to_list): New accessor function.
4302 (get_current_source_symtab_and_line): New function. Retrieves the
4303 position in the source code that we consider current.
4304 (get_current_or_default_source_symtab_and_line): New function.
4305 Like the above but attempts to determine a default position if one
4306 is not currently defined.
4307 (set_current_source_symtab_and_line): New function. Sets the source
4308 code position considered current and returns the previously set one.
4309 (clear_current_source_symtab_and_line): Reset stored information about
4310 a current source line.
4311 (_initialize_source): Remove registration for the "list" command and
4312 its alias.
4313 * source.h: Add declarations for the new functions above.
4314 * symtab.h: Remove declarations for the global variables mentioned
4315 above.
4316 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4317 obtain current source line.
4318 * linespec.c (decode_line_1): Ditto.
4319 * macroscope.c (default_macro_scope): Ditto.
4320 * scm-lang.c (scm_unpac): Ditto.
4321 * stack.c (print_frame_info_base): Ditto.
4322 * symfile.c (clear_symtab_users): Ditto.
4323 * symtab.c (decode_line_spec): Ditto.
4324 * cli/cli-cmds.c (list_command): Moved here from source.c.
4325 (ambiguous_line_spec): Moved here from source.c.
4326 (_init_cli_cmds): Add definition for "list" and its alias.
4327 * Makefile.in: Update dependencies.
4328
4329 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4330
4331 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4332 with what gcc thinks is correct.
4333
4334 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4335
4336 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4337 multiple register push instruction.
4338
4339 2002-09-19 Jim Blandy <jimb@redhat.com>
4340
4341 Add support for distinct host and target character sets.
4342 * charset.c, charset.h: New files.
4343 * c-exp.y: #include "charset.h".
4344 (yylex): Convert character and string literals to the target
4345 character set, before returning them as the semantic value of the
4346 token.
4347 * c-lang.c: #include "charset.h".
4348 (c_emit_char): Use charset-specific methods to recognize
4349 characters with backslash escape forms, to decide which characters
4350 to print literally and which to print using numeric escape
4351 sequences, and to convert target characters to host characters
4352 before printing.
4353 * utils.c: #include "charset.h".
4354 (no_control_char_error): New function.
4355 (parse_escape): Use charset-specific methods to recognize
4356 backslash escapes, parse `control character' notation, and convert
4357 characters from the host character set to the target character set.
4358 * configure.in: Set the default host character set.
4359 Check where to find iconv, and what its argument types might be.
4360 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4361 * Makefile.in (SFILES): List charset.c.
4362 (COMMON_OBS): List charset.o.
4363 (charset.o): New rule.
4364 (charset_h): New header dependency variable.
4365 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4366 (LIBICONV): New variable, set by configure.
4367 (CLIBS): Include $(LIBICONV) here.
4368 * aclocal.m4, config.in, configure: Regenerated.
4369
4370 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4371
4372 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4373 bison 1.35 warning.
4374
4375 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4376
4377 * gdb_mbuild.sh: New file.
4378
4379 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4380
4381 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4382
4383 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4384
4385 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4386 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4387 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4388 valops.c, value.h: Revert previous change.
4389
4390 2002-09-18 Michael Snyder <msnyder@redhat.com>
4391
4392 Preliminary support for Objective-C:
4393 * defs.h (language_objc): New enum value.
4394 (puts_filtered_tabular): Declaration only, exported from utils.c.
4395 (skip_quoted): Delete, declared in completer.h.
4396 * c-exp.y: Include completer.h.
4397 * p-exp.y: Ditto.
4398 * jv-exp.y: Ditto.
4399 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4400 New operator enum values.
4401 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4402 * language.c (binop_result_type): Handle language_objc case.
4403 (integral_type, character_type, string_type, boolean_type,
4404 structured_type, binop_type_check): Ditto.
4405 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4406 (struct objc_specific): Add to general_symbol_info.
4407 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4408 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4409 * parser-defs.h (struct objc_class_str): New struct type.
4410 (start_msglist, end_msglist, add_msglist): Declaration only,
4411 exported from objc-lang.c.
4412 * value.h (value_of_local, value_nsstring,
4413 call_function_by_hand_expecting_type): Exported from valops.c.
4414 * valops.c (find_function_addr): Export.
4415 (call_function_by_hand_expecting_type): New function.
4416 (value_of_local): New function.
4417 * symfile.c (init_filename_language_table): Add ".m" extension
4418 for Objective-C.
4419 * utils.c (puts_filtered_tabular): New function.
4420 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4421 (set/show demangle): Extend help-string to refer to ObjC.
4422 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4423 * stabsread.c (symbol_reference_defined): Objective-C symbols
4424 may contain colons: make allowances when scanning stabs strings
4425 for colons.
4426 (objc_find_colon): New function.
4427 * printcmd.c (address_info): If language == objc then print
4428 "self" instead of "this".
4429 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4430 OP_NSSTRING, and OP_SELF.
4431 (prefixify_subexp): Ditto.
4432 * source.c (print_source_lines): Mention objc in comment.
4433 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4434 method names.
4435
4436 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4437
4438 * complaints.h: Update copyright.
4439 (struct complaints): Declare.
4440 (struct complaint): Make `message' constant.
4441 (internal_complaint): Declare.
4442 (complaint): Declare.
4443 (complaint_root): Delete declaration.
4444 (symfile_complaints): Delete declaration.
4445 (struct complaints): Add opaque declaration.
4446 (clear_complaints): Add a complaints parameter.
4447 * complaints.c: Update copyright.
4448 (enum complaint_series): Define.
4449 (complaint_root): Delete.
4450 (struct complaints): Define.
4451 (complaint_sentinel, symfile_complaint_book): New variables.
4452 (symfile_explanations, symfile_complaints): New variables.
4453 New variables.
4454 (get_complaints): New function.
4455 (vcomplaint): New function.
4456 (complaint): New function.
4457 (internal_complaint): New function.
4458 (complain): Call vcomplain with symfile_complaint.
4459 (clear_complaints): Rewrite.
4460 (_initialize_complaints): Use add_setshow_command.
4461 * Makefile.in (complaints.o): Update dependencies.
4462 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4463 to call to clear_complaints.
4464 (new_symfile_objfile, reread_symbols): Ditto.
4465 (oldsyms_complaint): Delete.
4466 (empty_symtab_complaint, unknown_option_complaint): Delete.
4467 (free_named_symtabs): Use complaint instead of complain.
4468
4469 2002-09-18 Michael Snyder <msnyder@redhat.com>
4470
4471 Contributed by Apple Computer, Inc. Merged with current sources
4472 by Adam Fedor <fedor@doc.com> [cagney].
4473
4474 * objc-lang.c: First clean-up round: comments, indentation.
4475 * objc-lang.h: Ditto.
4476 * objc-lang.y: Ditto.
4477
4478 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4479
4480 * maint.c (maintenance_internal_error): Print the parameter as the
4481 error message.
4482 (maintenance_internal_warning): New function.
4483 (_initialize_maint_cmds): Add command `maint internal-warning'.
4484
4485 * defs.h (internal_warning, internal_vwarning): Declare.
4486 * utils.c (struct internal_problem): Define.
4487 (internal_vproblem): New function.
4488 (internal_warning): New function.
4489 (internal_vwarning): New function.
4490 (internal_warning_problem, internal_error_problem): New variables.
4491 (internal_verror): Just call internal_vproblem.
4492
4493 2002-09-18 Michael Snyder <msnyder@redhat.com>
4494
4495 * objc-lang.c: New file, support for Objective-C.
4496 Preliminary check-in, not yet integrated into gdb.
4497 * objc-lang.h: New file.
4498 * objc-exp.y: New file.
4499
4500 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4501
4502 * infrun.c (signal_stop_update): Convert definition to ISO C.
4503 (signal_print_update): Ditto.
4504 (signal_pass_update): Ditto.
4505 * inflow.c (terminal_save_ours): Ditto.
4506
4507 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4508 comments.
4509
4510 * config/djgpp/fnchange.lst: Handle name clashes between
4511 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4512 bfd/coff-tic80.c.
4513
4514 * i386-linux-tdep.h: Fix tipo.
4515
4516 2002-09-18 Adam Fedor <fedor@gnu.org>
4517
4518 * MAINTAINERS: Add myself to the Write After Approval list.
4519
4520 2002-09-18 Jim Blandy <jimb@redhat.com>
4521
4522 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4523 texthigh and textlow to reader-specific structs caused
4524 objfile_relocate to miss them. This is fixable, but the work that
4525 the change was supposed to prepare GDB for never got done anyway.
4526
4527 2002-09-18 David Carlton <carlton@math.stanford.edu>
4528
4529 * MAINTAINERS: Alphabetize Write After Approval list.
4530
4531 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4532
4533 Fix PR gdb/709
4534 * values.c (value_static_field): Call read_var_value.
4535
4536 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4537
4538 * valops.c (hand_function_call): Align the initial stack pointer
4539 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4540 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4541 return value.
4542 * mips-tdep.c (mips_frame_align): New function.
4543 (mips_gdbarch_init): Set frame_align.
4544 * gdbarch.sh (FRAME_ALIGN): New method.
4545 * gdbarch.h, gdbarch.c: Re-generate.
4546
4547 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4548
4549 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4550 registers.
4551
4552 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4553
4554 * NEWS: Mention that MIPS $fp behavior changed.
4555 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4556 reference to FP_REGNUM.
4557 (mipsnbsd_cannot_store_register): Ditto.
4558 * mips-linux-nat.c: Update copyright.
4559 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4560 (mips_linux_cannot_store_register): Ditto.
4561 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4562 * config/mips/tm-mips.h: Update copyright.
4563 (FP_REGNUM): Delete macro.
4564 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4565 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4566 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4567 (mips_r3041_reg_names, mips_r3051_reg_names)
4568 (mips_r3081_reg_names): Replace "fp" with "".
4569 Fix PR gdb/480.
4570
4571 2002-09-17 Theodore A. Roth <troth@verinet.com>
4572
4573 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4574 generic_read_register_dummy() (PR gdb/703).
4575 (avr_push_return_address): #if 0 out unused vars.
4576 (avr_gdbarch_init): Enable use of avr_push_return_address().
4577
4578 2002-09-17 Michael Snyder <msnyder@redhat.com>
4579
4580 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4581 RTE will take care of it.
4582
4583 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4584
4585 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4586 invalid, return SP_REGNUM.
4587
4588 2002-09-17 Michael Snyder <msnyder@redhat.com>
4589
4590 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4591 point registers without sign extension.
4592
4593 2002-09-17 Andrew Cagney <cagney@redhat.com>
4594
4595 * blockframe.c (deprecated_read_register_dummy): Rename
4596 generic_read_register_dummy.
4597 * frame.c (frame_unwind_signed_register): New function.
4598 (frame_unwind_unsigned_register): New function.
4599 * frame.h (frame_unwind_signed_register): Declare.
4600 (frame_unwind_unsigned_register): Declare.
4601 (deprecated_read_register_dummy): Rename
4602 generic_read_register_dummy.
4603
4604 * h8300-tdep.c (h8300_frame_chain): Update.
4605 (h8300_frame_saved_pc): Update.
4606 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4607 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4608 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4609 (s390_frame_chain): Update.
4610 * v850-tdep.c (v850_find_callers_reg): Update.
4611 (v850_frame_saved_pc): Update.
4612 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4613 (m32r_find_callers_reg): Update.
4614 (m32r_frame_saved_pc): Update.
4615 * sh-tdep.c (sh_find_callers_reg): Update.
4616 (sh64_get_saved_pr): Update.
4617 (sh_init_extra_frame_info): Update.
4618 (sh_init_extra_frame_info): Update.
4619 (sh64_init_extra_frame_info): Update.
4620 (sh64_init_extra_frame_info): Update.
4621 * mcore-tdep.c (mcore_find_callers_reg): Update.
4622 (mcore_frame_saved_pc): Update.
4623 (mcore_init_extra_frame_info): Update.
4624 * i386-tdep.c (i386_frame_saved_pc): Update.
4625 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4626 (ia64_init_extra_frame_info): Update.
4627 (ia64_init_extra_frame_info): Update.
4628 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4629 * cris-tdep.c (cris_init_extra_frame_info): Update.
4630 * avr-tdep.c (avr_frame_chain): Update.
4631 (avr_init_extra_frame_info): Update.
4632 (avr_frame_saved_pc): Update.
4633 * arm-tdep.c (arm_find_callers_reg): Update.
4634 (arm_init_extra_frame_info): Update.
4635 (arm_frame_saved_pc): Update.
4636
4637 2002-09-17 Tom Tromey <tromey@redhat.com>
4638
4639 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4640 is "'".
4641
4642 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4643
4644 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4645 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4646 NEXT_PROLOGUE_INSN.
4647 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4648 NEXT_PROLOGUE_INSN.
4649
4650 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4651
4652 * osfsolib.c: Remove file, replaced by solib-osf.c.
4653 * Makefile.in: Remove compilation rules for osfsolib.c.
4654
4655 2002-09-16 David Carlton <carlton@math.stanford.edu>
4656
4657 * cp-valprint.c (cp_print_class_method): Correct args to
4658 check_stub_method_group.
4659
4660 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4661
4662 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4663 `set architecture'. Unify naming convention of functions.
4664 (h8300_skip_prologue): Improve prologue analysis.
4665 (h8300_push_arguments): Rewritten to more closely match GCC's
4666 bizarre argument-passing behavior, along with the comment describing
4667 said behavior.
4668 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4669 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4670 sim, remote-e7000.c, remote-hms.c and remote.c
4671
4672 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4673
4674 * i386-tdep.c (gdb_print_insn_i386): Removed.
4675 (i386_print_insn): New function.
4676 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4677 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4678 tm_print_insn_info.
4679
4680 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4681
4682 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4683 zero.
4684
4685 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4686
4687 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4688 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4689 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4690
4691 2002-09-13 Christopher Faylor <cgf@redhat.com>
4692
4693 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4694
4695 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4696
4697 * gdbtypes.c (check_stub_method): Make static.
4698 (check_stub_method_group): New function.
4699 * gdbtypes.h: Update prototypes.
4700 * cp-support.c: New file.
4701 * cp-support.h: New file.
4702
4703 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4704 (update_method_name_from_physname): New function.
4705 (read_member_functions): Correct method names for operators
4706 and v3 constructors/destructors. Separate v2 constructors and
4707 destructors.
4708 * Makefile.in (stabsread.o): Update dependencies.
4709 (SFILES): Add cp-support.c.
4710 (COMMON_OBS): Add cp-support.o.
4711 (cp_support_h, cp-support.o): Add.
4712
4713 * cp-valprint.c (cp_print_class_method): Call
4714 check_stub_method_group instead of check_stub_method. Remove
4715 extraneous QUITs.
4716 * p-valprint.c (pascal_object_print_class_method): Likewise.
4717 * valops.c (search_struct_method): Likewise.
4718 (find_method_list, value_struct_elt_for_reference): Likewise.
4719
4720 2002-09-13 Andrew Cagney <cagney@redhat.com>
4721
4722 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4723 * gdbarch.h, gdbarch.c: Regenerate.
4724
4725 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4726
4727 * frame.c (find_saved_register): Delete function.
4728 * frame.h (find_saved_register): Delete declaration.
4729 Fix PR gdb/631.
4730
4731 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4732
4733 * mips-tdep.c (read_next_frame_reg): Re-hack using
4734 frame_register_unwind.
4735
4736 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4737
4738 * mips-tdep.c (mips_get_saved_register): Re-hack using
4739 frame_register_unwind.
4740
4741 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4742
4743 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4744 vector. Will be useful for Interix.
4745 * gdbarch.h, gdbarch.c: Regenerate.
4746
4747 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4748 name of the malloc function by NAME_OF_MALLOC.
4749
4750 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4751
4752 * value.h (find_function_in_inferior): Add const keyword to
4753 one of the parameters. Allows us to invoke this function with
4754 a const char *.
4755 * valops.c (find_function_in_inferior): Likewise.
4756
4757 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4758
4759 * exec.c (xfer_memory): Fix compilation warning with old versions
4760 of GCC.
4761 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4762
4763 2002-09-12 David Carlton <carlton@math.stanford.edu>
4764
4765 * symtab.h: Run through gdb_indent.h.
4766 Add 2002 to Copyright year list.
4767
4768 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4769
4770 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4771 mach constants.
4772 * MAINTAINERS: Add myself to write after approval list.
4773
4774 2002-09-11 J. Brobecker <brobecker@gnat.com>
4775
4776 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4777
4778 2002-09-11 J. Brobecker <brobecker@gnat.com>
4779
4780 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4781 Interix.
4782
4783 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4784
4785 * procfs.c (do_detach): Clear current signal, not just fault.
4786 Corrects problem with breakpoint trap signal leaking to detached
4787 process on Tru64.
4788
4789 2002-09-10 Michael Snyder <msnyder@redhat.com>
4790
4791 * buildsym.c (finish_block): Protect against null pointer.
4792
4793 2002-09-10 Andrew Cagney <cagney@redhat.com>
4794
4795 * infcmd.c (default_print_registers_info): Send all output to
4796 ``file'' instead of ``gdb_stdout''.
4797
4798 2002-09-10 Michael Snyder <msnyder@redhat.com>
4799
4800 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4801 LONGEST, and use signed register read (addresses are sign-
4802 extended for mips).
4803
4804 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4805
4806 * event-loop.c (gdb_do_one_event): Make public.
4807 * event-loop.h (gdb_do_one_event): Declare.
4808
4809 2002-09-10 Jeff Law <law@redhat.com>
4810
4811 * infttrace.c (child_resume): Simplify and rework to avoid
4812 TT_PROC_CONTINUE.
4813
4814 2002-09-09 Fred Fish <fnf@intrinsity.com>
4815
4816 * printcmd.c (print_scalar_formatted): "len" is the number of
4817 target bytes, NOT the number of target bits.
4818
4819 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4820
4821 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4822 * top.c (init_main): Set rl_terminal_name.
4823
4824 2002-09-08 Aidan Skinner <aidan@velvet.net>
4825
4826 * ada-lang.c (ada_array_bound, ada_type_match,
4827 _initialize_ada_language): Fix K&R definitions.
4828 * ada-tasks.c (get_current_task): Fix K&R definitions.
4829 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4830
4831 2002-09-07 Christopher Faylor <cgf@redhat.com>
4832
4833 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4834 Add XP.
4835
4836 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4837
4838 * i386-tdep.c (i386_register_virtual_type,
4839 i386_register_convertible, i386_register_convert_to_virtual,
4840 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4841 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4842 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4843 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4844 Don't set push_arguments twice.
4845
4846 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4847 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4848 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4849 sigtramp_end to NULL.
4850 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4851 defines.
4852 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4853
4854 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4855 whitespace.
4856
4857 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4858 * gdbarch.h, gdbarch.c: Re-generate.
4859 * blockframe.c (find_pc_sect_partial_function): Convert to use
4860 SIGTRAMP_START_P predicate.
4861
4862 2002-09-05 Michael Snyder <msnyder@redhat.com>
4863
4864 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4865 generic_dummy_frame method and old method. Also distinguish
4866 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4867 (arm_extract_return_value): Use new regcache method.
4868
4869 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4870 adjustment that doesn't conform to the ABI.
4871 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4872 saved regcache, not from current regcache.
4873
4874 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4875
4876 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4877 * README: Update.
4878
4879 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4880
4881 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4882 if arm_apcs_32 is false.
4883
4884 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4885
4886 GDB 5.3 branch created.
4887
4888 2002-09-03 Theodore A. Roth <troth@verinet.com>
4889
4890 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4891 generic_unwind_get_saved_register.
4892
4893 2002-09-03 David Carlton <carlton@math.stanford.edu>
4894
4895 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4896 argument (PR gdb/653). Update call to smash_to_method_type.
4897 (read_structure_scope): Update call to dwarf2_add_member_fn.
4898
4899 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4900
4901 * x86-64-linux-tdep.c: Include gdb_string.h
4902 * x86-64-linux-nat.c: Ditto.
4903
4904 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4905
4906 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4907 when YYDEBUG is set to 1.
4908 * c-exp.y: Likewise.
4909 * f-exp.y: Likewise.
4910 * jv-exp.y: Likewise.
4911 * m2-exp.y: Likewise.
4912 * p-exp.y: Likewise.
4913
4914 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4915
4916 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4917 dependency list.
4918 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4919 solib_svr4_fetch_link_map_offsets to
4920 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4921 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4922 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4923 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4924 solib-svr4.o, and solib-legacy.o.
4925 * config/i386/tm-nbsd.h: Include solib.h.
4926
4927 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4928
4929 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4930 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4931 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4932 comment noting that this needs its own target configuration.
4933 * config/i386/nbsd.mt: New file.
4934 * config/i386/nbsdaout.mt: Remove.
4935 * config/i386/nbsdelf.mt: Ditto.
4936 * config/i386/tm-nbsdaout.h: Ditto.
4937
4938 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4939
4940 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4941 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4942 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4943 tdep->sigtramp_end.
4944 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4945 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4946 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4947
4948 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4949
4950 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4951 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4952 * i386-tdep.h (i386bsd_init_abi): New prototype.
4953 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4954 function declaration.
4955 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4956 for NetBSD-a.out or NetBSD-ELF.
4957 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4958 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4959 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4960 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4961 and nbsd-tdep.h.
4962 (i386nbsd_pc_in_sigtramp): New function.
4963 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4964 i386nbsd_pc_in_sigtramp.
4965 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4966 and i386nbsdelf_init_abi OS ABI handlers.
4967 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4968 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4969
4970 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4971
4972 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4973 registers if the target really has them.
4974
4975 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4976
4977 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4978 than nbsd-tdep.h.
4979
4980 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4981
4982 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4983 list.
4984 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4985 (alphanbsd_skip_sigtramp_frame): New functions.
4986 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4987 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4988 to alphanbsd_sigcontext_addr.
4989
4990 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4991
4992 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4993 list.
4994 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4995 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4996 nbsd_pc_in_sigtramp.
4997 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4998 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4999 * nbsd-tdep.c: Include gdb_string.h.
5000 (nbsd_pc_in_sigtramp): New function.
5001 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
5002 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5003 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5004 ppcnbsd_pc_in_sigtramp.
5005 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5006 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5007 shnbsd_pc_in_sigtramp.
5008 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5009 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5010 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5011
5012 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5013
5014 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5015 watchpoints to NULL.
5016 (insert_breakpoints): set val field of watchpoints if NULL.
5017
5018
5019 2002-08-29 Jim Blandy <jimb@redhat.com>
5020
5021 * symtab.c (lookup_symbol_aux): In the cases where we find a
5022 minimal symbol of an appropriate name and use its address to
5023 select a symtab to read and search, use `name' (as passed to us)
5024 as the demangled name when searching the symtab's global and
5025 static blocks, not the minsym's name.
5026
5027 2002-08-29 Keith Seitz <keiths@redhat.com>
5028
5029 * stack.c (print_frame_info_base): Always set current_source_symtab
5030 and current_source_line.
5031
5032 2002-08-29 Donn Terry <donnte@microsoft.com>
5033
5034 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5035
5036 2002-08-28 Keith Seitz <keiths@redhat.com>
5037
5038 * stack.c (select_frame): Add FIXME concerning selected-frame
5039 events.
5040 (select_frame_command): Send selected-frame-level-changed
5041 event notification, but only if the level actually changed.
5042 (up_silently_base): Add selected-frame-level-changed event
5043 notification.
5044 (down_silently_base): Likewise.
5045
5046 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5047
5048 * Makefile.in: Update dependencies for all gdb/*.c files.
5049
5050 2002-08-27 Tom Tromey <tromey@redhat.com>
5051
5052 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5053 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5054 Update dependencies.
5055 * i387-tdep.c: Include gdb_string.h.
5056 * osabi.c: Likewise.
5057 * i386-linux-nat.c: Likewise.
5058 * lin-lwp.c: Likewise.
5059 * ax-gdb.c: Likewise.
5060 * signals/signals.c: Likewise.
5061 * jv-valprint.c: Likewise.
5062 * p-lang.c: Likewise.
5063 * c-valprint.c: Likewise.
5064 * cp-abi.c: Likewise.
5065
5066 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5067
5068 * cli/cli-script.h (copy_command_lines): Export.
5069 * breakpoint.c: Include cli/cli-script.h.
5070 * Makefile.in (breakpoint.o): Update dependencies.
5071
5072 2002-08-26 Michael Snyder <msnyder@redhat.com>
5073
5074 * breakpoint.c (insert_breakpoints): Protect all references
5075 to 'process_warning'. Shorten long lines.
5076
5077 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5078
5079 * cli/cli-script.c (copy_command_lines): New function.
5080 * defs.h (copy_command_lines): Export.
5081 * testsuite/gdb.base/commands.exp: New tests for commands
5082 attached to a temporary breakpoint, and for commands that
5083 delete the breakpoint they are attached to.
5084
5085 2002-08-26 Michael Snyder <msnyder@redhat.com>
5086
5087 * breakpoint.c (bpstat_stop_status): Instead of copying the
5088 pointer to the breakpoint commands struct, make a new copy
5089 of the struct and point to that.
5090 (bpstat_clear): Free the commands struct.
5091 (bpstat_clear_actions): Free the commands struct.
5092 (bpstat_do_actions): Free the command actions. Also execute
5093 the local cleanups, instead of deleting them.
5094 (delete_breakpoint): Leave the commands field of the bpstat
5095 chain alone -- it will be freed later.
5096
5097 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5098
5099 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5100 deleted in 2002-08-20 commit. This function is still used by
5101 ppc-linux-nat.c.
5102
5103 2002-08-26 Keith Seitz <keiths@redhat.com>
5104
5105 * gdb-events.sh: Add selected-frame-level-changed event.
5106 * gdb-events.c: Regenerated.
5107 * gdb-events.h: Regenerated.
5108
5109 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5110
5111 Fix PR gdb/393:
5112 * inflow.c (terminal_save_ours): New function to save terminal
5113 settings.
5114 * inferior.h (terminal_save_ours): Declare.
5115 * target.c (debug_to_terminal_save_ours): New function.
5116 (cleanup_target): Defaults to_terminal_save_ours.
5117 (update_current_target): Inherit to_terminal_save_ours.
5118 (setup_target_debug): Set to_terminal_save_ours.
5119 * target.h (target_terminal_save_ours): New to save terminal settings.
5120 (target_ops): New member to_terminal_save_ours.
5121 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5122 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5123 * inftarg.c (init_child_ops): Likewise.
5124 * m3-nat.c (init_m3_ops): Likewise.
5125 * procfs.c (init_procfs_ops): Likewise.
5126 * wince.c (init_child_ops): Likewise.
5127 * win32-nat.c (init_child_ops): Likewise.
5128 * sol-thread.c (init_sol_thread_ops): Likewise.
5129
5130 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5131
5132 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5133 use regcache_* functions.
5134 (i386_gdbarch_init): Set store_return_value instead of
5135 deprecated_store_return_value.
5136
5137 * regcache.c (regcache_raw_write_signed,
5138 regcache_raw_write_unsigned): New functions.
5139 * regcache.h (regcache_raw_write_signed,
5140 regcache_raw_write_unsigned): New prototypes.
5141
5142 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5143
5144 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5145 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5146 source file dependencies. Cleanup corresponding generator rules.
5147
5148 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5149
5150 * regcache.h (register_offset_hack): Declare.
5151 (regcache_cooked_read_using_offset_hack): Declare.
5152 (regcache_cooked_write_using_offset_hack): Declare.
5153
5154 * regcache.c (register_offset_hack): New function.
5155 (regcache_cooked_read_using_offset_hack): New function.
5156 (regcache_cooked_write_using_offset_hack): New function.
5157 (regcache_dump): Check that the registers, according to their
5158 offset, are packed hard against each other.
5159 (cooked_xfer_using_offset_hack): New function.
5160
5161 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5162
5163 * regcache.c (struct regcache_descr): Add field register_type.
5164 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5165 in as a parameter
5166 (init_regcache_descr): Initialize register_type. Pass the descr
5167 to init_legacy_regcache_descr. Use register_type instead of
5168 REGISTER_VIRTUAL_TYPE.
5169 (register_type): New function.
5170 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5171 * regcache.h (register_type): Declare.
5172
5173 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5174
5175 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5176 instead of deprecated_store_return_value. Fix fallout from
5177 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5178
5179 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5180
5181 * regcache.c (max_register_size): New function.
5182 (init_legacy_regcache_descr): Ensure that max_register_size is
5183 large enough for REGISTER_VIRTUAL_SIZE.
5184 * regcache.h (max_register_size): Declare.
5185
5186 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5187
5188 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5189 store_return_value.
5190 (e500_extract_return_value): Change type of valbuf pointer to
5191 void.
5192
5193 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5194
5195 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5196 workaround.
5197
5198 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5199 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5200 long long) to prevent compiler warning on 64-bit systems.
5201
5202 2002-08-23 Andrew Cagney <cagney@redhat.com>
5203
5204 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5205 (DEPRECATED_STORE_RETURN_VALUE): New method.
5206 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5207 * gdbarch.h, gdbarch.c: Re-generate.
5208
5209 * values.c (set_return_value): Pass current_regcache to
5210 STORE_RETURN_VALUE.
5211 * arch-utils.h (legacy_store_return_value): Declare.
5212 * arch-utils.c (legacy_store_return_value): New function.
5213 (legacy_extract_return_value): Update parameters.
5214
5215 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5216 STORE_RETURN_VALUE.
5217 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5218 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5219 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5220 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5221 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5222 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5223 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5224 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5225 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5226 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5227
5228 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5229 * i386-tdep.c (i386_extract_return_value): Update.
5230 * arch-utils.c (legacy_extract_return_value): Update.
5231 * frv-tdep.c (frv_gdbarch_init): Update.
5232 * cris-tdep.c (cris_gdbarch_init): Update.
5233 * d10v-tdep.c (d10v_gdbarch_init): Update.
5234 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5235 * m68k-tdep.c (m68k_gdbarch_init): Update.
5236 * mcore-tdep.c (mcore_gdbarch_init): Update.
5237 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5238 * s390-tdep.c (s390_gdbarch_init): Update.
5239 * sparc-tdep.c (sparc_gdbarch_init): Update.
5240 * sh-tdep.c (sh_gdbarch_init): Update.
5241 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5242 * v850-tdep.c (v850_gdbarch_init): Update.
5243 * avr-tdep.c (avr_gdbarch_init): Update.
5244 * ia64-tdep.c (ia64_gdbarch_init): Update.
5245 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5246 * vax-tdep.c (vax_gdbarch_init): Update.
5247 * alpha-tdep.c (alpha_gdbarch_init): Update.
5248 * arm-tdep.c (arm_gdbarch_init): Update.
5249 * mips-tdep.c (mips_gdbarch_init): Update.
5250 * i386-tdep.c (i386_gdbarch_init): Update.
5251
5252 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5253
5254 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5255 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5256
5257 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5258
5259 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5260 problems.
5261
5262 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5263
5264 * infrun.c (handle_inferior_event): Move a comment outside of a
5265 function call, in order to avoid indent reformatting this part
5266 of the code in an unreadable way.
5267
5268 2002-08-23 Grace Sainsbury <graces@redhat.com>
5269
5270 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5271 when breakpoints fail. Move general breakpoint error messages to
5272 insert_breakpoints.
5273 * breakpoint.c (insert_breakpoints): Change warnings when
5274 breakpoints are nto inserted to specify the type. Remove call to
5275 memory_error when hardware breakpoints can't be inserted. Remove
5276 multiple calls to warning so all messages are sent to the user at
5277 once.
5278 (delete_breakpoints): Make insert error messsages more explicit.
5279
5280 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5281
5282 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5283 gdbserver/ChangeLog.
5284
5285 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5286
5287 * i386-tdep.c: Include "objfiles.h".
5288 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5289 skip_trampoline_code.
5290 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5291 (CPLUS_MARKER): Define to '.'.
5292
5293 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5294 member.
5295 (linux_corefile_thread_callback): Increase args->num_notes.
5296 (linux_make_note_section): Initialize thread_args.num_notes, and
5297 use it to determine whether notes for any threads were created.
5298
5299 2002-08-23 Donn Terry <donnte@microsoft.com>
5300
5301 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5302 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5303 and PCUNKILL.
5304 (write_with_trace): Conditionalize out the switch branch handling
5305 PCSHOLD if the corresponding macro is not defined. Likewise for
5306 PRSABORT and PRSTOP.
5307 This change will be needed by the Interix port.
5308
5309 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5310
5311 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5312 write_register wherever possible instead of manipulating the
5313 register bytes directly.
5314 Assign VALUE_CONTENTS to a variable and use that.
5315 The GPR numbers are now dependent on the architecture.
5316
5317 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5318
5319 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5320 ev_offset fields.
5321 (skip_prologue): Add support for BookE/e500 instructions.
5322 (e500_extract_return_value): New function.
5323 (frame_get_saved_regs): Add support for saving ev registers and
5324 pseudo gpr's.
5325 (e500_store_return_value): New function.
5326 (rs6000_gdbarch_init): Move up default intializations of
5327 deprecated_extract_return_value and store_return_value. Overwrite
5328 init of store_return_value with e500 specific version.
5329 Set extract_return_value for e500.
5330
5331 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * blockframe.c (generic_call_dummy_register_unwind): Use
5334 regcache_cooked_read to catch cases in which the variable is
5335 stored in a pseudo register.
5336
5337 2002-08-22 Andrew Cagney <cagney@redhat.com>
5338
5339 * NEWS: Mention that the i960 has been made obsolete.
5340 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5341 i960-tdep.c
5342 (remote-nrom.o): Obsolete target.
5343 (remote-nindy.o, i960-tdep.o): Ditto.
5344 * remote-nrom.c: Make file obsolete.
5345 * remote-nindy.c, remote-vx960.c: Ditto.
5346 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5347 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5348 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5349 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5350 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5351 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5352 i960-*-vxworks* obsolete.
5353 * MAINTAINERS: Note that the i960 is obsolete.
5354
5355 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5356
5357 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5358 detach to allow reinitialization.
5359
5360 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5361
5362 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5363 attempt).
5364
5365 2002-08-22 Jim Blandy <jimb@redhat.com>
5366
5367 * coffread.c (coff_symfile_read): Don't try to read the line
5368 number table from disk if the image file doesn't have a symbol
5369 table; we'll never actually look at the info anyway, and Windows
5370 ships DLL's with bogus file offsets for the line number data.
5371
5372 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5373
5374 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5375 an e500 executable.
5376
5377 2002-08-21 Michael Snyder <msnyder@redhat.com>
5378
5379 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5380 (MSYMBOL_SIZE): Replace macro with function.
5381 (DEFAULT_MIPS_TYPE): Delete unused macro.
5382 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5383 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5384
5385 2002-08-21 Jim Blandy <jimb@redhat.com>
5386
5387 * valops.c (value_cast): Simplify and correct logic for doing a
5388 static cast from a pointer to a base class to a pointer to a
5389 derived class.
5390
5391 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5392
5393 * infcmd.c (default_print_registers_info): Replace
5394 do_registers_info.
5395 (registers_info): Use gdbarch_print_registers_info instead of
5396 DO_REGISTERS_INFO.
5397 * inferior.h (default_print_registers_info): Replace
5398 do_registers_info.
5399 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5400 (DO_REGISTERS_INFO): Change to a predicate function.
5401 * gdbarch.h, gdbarch.c: Regenerate.
5402
5403 2002-08-21 Keith Seitz <keiths@redhat.com>
5404
5405 * gdb-events.sh: Add target-changed event.
5406 * gdb-events.c: Regenerated.
5407 * gdb-events.c: Regenerated.
5408 * valops.c (value_assign): Add target-changed event notification
5409 to inlval_register, lval_memory, and lval_reg_frame_relative.
5410
5411 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5412
5413 * NEWS: Add an entry regarding the improvement of the next/step
5414 operation on Alpha Tru64 multi-processor machines.
5415
5416 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5417
5418 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5419 directores.
5420 * Makefile.in: Update all _h macro definitions.
5421 * Makefile.in (install-gdbtk): Move to install section.
5422 (rdi-share/libangsd.a): Move to end of file.
5423
5424 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5425
5426 * frame.c (frame_register_unwind): When a register, set addrp to
5427 the register's byte.
5428
5429 2002-08-20 Michael Snyder <msnyder@redhat.com>
5430
5431 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5432 used locally, so move them from the target machine header to here.
5433 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5434 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5435 Make static.
5436 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5437
5438 2002-08-20 Andrew Cagney <cagney@redhat.com>
5439
5440 * NEWS: Mention that the Apollo line was made obsolete.
5441 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5442 m68*-hp-hpux* obsolete.
5443 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5444 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5445 * buildsym.c (make_blockvector): Make static.
5446 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5447 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5448 (ALLDEPFILES): Remove dstread.c.
5449 (dstread.o): Obsolete make rule.
5450 * dstread.c: Makefile obsolete.
5451 * dst.h: Ditto.
5452 * config/m68k/hp300hpux.mt: Ditto.
5453 * config/m68k/hp300hpux.mh: Ditto.
5454 * config/m68k/hp300bsd.mt: Ditto.
5455 * config/m68k/hp300bsd.mh: Ditto.
5456 * config/m68k/apollo68b.mt: Ditto.
5457 * config/m68k/apollo68v.mh: Ditto.
5458 * config/m68k/apollo68b.mh: Ditto.
5459
5460 2002-08-20 Michael Snyder <msnyder@redhat.com>
5461
5462 * mips-tdep.c (mips_in_return_stub): Make static.
5463 (mips_gdbarch_init): Set in_solib_return_trampoline.
5464 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5465
5466 2002-08-20 Michael Snyder <msnyder@redhat.com>
5467
5468 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5469 * gdbarch.c, gdbarch.h: Regenerate.
5470 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5471 Add.
5472 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5473
5474 2002-08-20 Michael Snyder <msnyder@redhat.com>
5475
5476 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5477 (mips_gdbarch_init): Set skip_trampoline_code,
5478 in_solib_call_trampoline.
5479 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5480 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5481
5482 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5483
5484 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5485
5486 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5487 vector type for ev registers.
5488 (e500_pseudo_register_read): New function.
5489 (e500_pseudo_register_write): New function.
5490 (e500_dwarf2_reg_to_regnum): New function.
5491 (PPC_UISA_NOFP_SPRS): New macro.
5492 (PPC_EV_REGS): New macro.
5493 (PPC_GPRS_PSEUDO_REGS): New macro.
5494 (registers_e500): New register set for e500.
5495 (variants): Add e500 variant.
5496 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5497 before setting architectural dependent variations. Initialize ev
5498 registers numbers. Add case for e500 architecture. Set the
5499 number of pseudo registers.
5500
5501 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5502
5503 * rs6000-tdep.c: Clean up comments.
5504
5505 2002-08-20 Andrew Cagney <cagney@redhat.com>
5506
5507 * h8300-tdep.c: Re-indent file.
5508
5509 2002-08-20 Jim Blandy <jimb@redhat.com>
5510
5511 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5512 default for this.
5513
5514 2002-08-20 Keith Seitz <keiths@redhat.com>
5515
5516 * breakpoints.c (watch_command_1): Use internal breakpoint
5517 when setting a watchpoint_scope breakpoint.
5518
5519 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5520
5521 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5522 (build_builtin_type_vec64i): Ditto.
5523 (build_builtin_type_vec128): Ditto.
5524 (build_builtin_type_vec128i): Ditto.
5525
5526 2002-08-19 Michael Snyder <msnyder@redhat.com>
5527
5528 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5529 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5530 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5531 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5532 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5533 CALL_DUMMY_ADDRESS): Delete.
5534 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5535 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5536 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5537 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5538 push_return_address.
5539 (mips_register_raw_size, mips_eabi_use_struct_convention,
5540 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5541 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5542 mips_init_extra_frame_info, mips_eabi_push_arguments,
5543 mips_n32n64_push_arguments, mips_push_return_address,
5544 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5545 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5546
5547 2002-08-19 Michael Snyder <msnyder@redhat.com>
5548
5549 * mips-tdep.c (mips_frame_num_args): New function.
5550 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5551 frame_saved_pc, frame_args_address, frame_locals_address,
5552 frame_num_args, and frame_args_skip.
5553 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5554 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5555 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5556 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5557
5558 2002-08-20 Michael Snyder <msnyder@redhat.com>
5559
5560 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5561 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5562 * mips-tdep.c (mips_store_struct_return): New function.
5563 (mips_extract_struct_value_address): New function.
5564 (mips_gdbarch_init): Set store_struct_return and
5565 extract_struct_value_address.
5566
5567 2002-08-20 David Carlton <carlton@math.stanford.edu>
5568
5569 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5570 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5571 (read_file_scope): Check that line_header is nonzero before
5572 decoding macro information.
5573
5574 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5575
5576 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5577 flag the general-purpose registers as floating-point on targets
5578 that don't support the floating-point registers.
5579
5580 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5581
5582 * rs6000-tdep.c (altivec_register_p): Delete.
5583 (rs6000_do_altivec_registers): Delete.
5584 (rs6000_altivec_registers_info): Delete.
5585 (rs6000_do_registers_info): Delete.
5586 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5587 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5588
5589 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5590
5591 * infcmd.c (do_registers_info): Print vector registers in hex
5592 format only.
5593 (print_vector_info): Check that printing registers
5594 makes sense.
5595 (print_float_info): Ditto.
5596
5597 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5598
5599 * mips-tdep.c (mips_gdbarch_init): Update.
5600 (mips_o32_extract_return_value): Rewrite.
5601 (mips_o32_store_return_value): Rewrite.
5602 (mips_o32_xfer_return_value): New function.
5603 (mips_xfer_register): Tweak debug print message. Allow for
5604 buf_offset when dumping the value transfered.
5605
5606 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5607
5608 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5609 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5610 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5611 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5612 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5613
5614 2002-08-14 Michael Snyder <msnyder@redhat.com>
5615
5616 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5617
5618 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5619
5620 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5621 register.
5622 (P): New macro to define a register as a pseudo register.
5623 (R, R4, R8, R16, FR32, R64, R0): Updated.
5624 (struct variant): Add new fields for number of pseudo registers
5625 and number of total registers.
5626 (tot_num_registers): New macro replacing....
5627 (num_registers): ...deleted macro.
5628 (num_registers): New function.
5629 (num_pseudo_registers): New function.
5630 (variants): Update all variants to intialize new fields correctly.
5631 Postpone initialization of number of pseudo regs and real regs.
5632 (init_variants): New function.
5633 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5634 registers offsets.
5635
5636 2002-08-19 David Carlton <carlton@math.stanford.edu>
5637
5638 * valops.c (search_struct_field): Change error message to treat
5639 return value of 0 from value_static_field as meaning that field is
5640 optimized out.
5641 (value_struct_elt_for_reference): Ditto.
5642 * values.c (value_static_field): Treat an unresolved location the
5643 same as a nonexistent symbol. Fix PR gdb/635.
5644 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5645 enclosed. Fix PR gdb/574.
5646 * MAINTAINERS: Add self to Write After Approval list.
5647
5648 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5649
5650 * mips-tdep.c (mips_xfer_register): New function.
5651 (mips_n32n64_extract_return_value): Rewrite.
5652 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5653 instead of deprecated_extract_return_value.
5654
5655 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5656
5657 * rs6000-tdep.c (TDEP): Delete macro.
5658 (branch_dest): Replace use of TDEP macro with its body.
5659 (rs6000_pop_frame): Ditto.
5660 (rs6000_push_arguments): Ditto.
5661 (rs6000_skip_trampoline_code): Ditto.
5662 (rs6000_frame_saved_pc): Ditto.
5663 (rs6000_frame_chain): Ditto.
5664 (rs6000_register_name): Ditto.
5665 (rs6000_register_byte): Ditto.
5666 (rs6000_register_raw_size): Ditto.
5667 (rs6000_register_virtual_type): Ditto.
5668 (rs6000_register_convertible): Ditto.
5669 (rs6000_convert_from_func_ptr_addr): Ditto.
5670
5671 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5672
5673 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5674 conditionally.
5675 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5676 MIPS_LINUX_JB_ELEMENT_SIZE.
5677 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5678 for MAX_REGISTER_RAW_SIZE arrays.
5679 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5680 MIPS_LINUX_JB_ELEMENT_SIZE.
5681
5682 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5683
5684 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5685
5686 2002-08-19 Aidan Skinner <aidan@velvet.net>
5687
5688 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5689 ada-valprint.c ada-tasks.c.
5690 (YYFILES): Add ada-exp.y.
5691 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5692 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5693 (ada-exp.tab.o): New target.
5694
5695 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5696
5697 * regcache.c (regcache_xfer_part): New function.
5698 (regcache_raw_read_part): New function.
5699 (regcache_raw_write_part): New function.
5700 (regcache_cooked_read_part): New function.
5701 (regcache_cooked_write_part): New function.
5702 * regcache.h (regcache_raw_read_part): Declare.
5703 (regcache_raw_write_part): Declare.
5704 (regcache_cooked_read_part): Declare.
5705 (regcache_cooked_write_part): Declare.
5706
5707 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5708
5709 * remote.c (remote_open_1): Add async_p.
5710 (remote_async_open_1): Delete.
5711 (open_remote_target): Delete.
5712 (remote_open, extended_remote_open): Update calls to remote_open_1.
5713 (remote_async_open, extended_remote_async_open): Call
5714 remote_open_1 instead of remote_async_open_1.
5715
5716 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5717
5718 * blockframe.c: Fix a few coding standard violations.
5719
5720 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5721
5722 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5723 here from ...
5724 * config/i386/tm-i386sco5.h: ... here. File removed.
5725 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5726
5727 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5728 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5729 (TM_FILE): Set to tm-i386.h.
5730 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5731 * config/i386/tm-i386v.h: Remove file.
5732 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5733 instead of "i386/tm-i386v.h".
5734 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5735 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5736 "i386/tm-i386v.h".
5737 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5738 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5739 "i386/tm-i386.h".
5740
5741 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5742
5743 * config/i386/nm-i386v.h: Add protection against
5744 multiple-inclusion.
5745 (i386_register_u_addr): Remove prototype.
5746 (register_u_addr): New prototype.
5747 (REGISTER_U_ADDR): Redefine accordingly.
5748 * i386v-nat.c: Improve several comments.
5749 (i386_register_u_addr): Change signature and rename to
5750 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5751 ubase variable.
5752
5753 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5754
5755 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5756 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5757 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5758 deprecated_extract_return_value.
5759 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5760 rename mips_o32o64_push_arguments.
5761 (mips_gdbarch_init): Update.
5762 (mips_extract_return_value): Delete.
5763 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5764 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5765 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5766 (mips_n32n64_extract_return_value): Clone
5767 mips_extract_return_value.
5768 (mips_store_return_value): Delete.
5769 (mips_o32_store_return_value): Clone mips_store_return_value.
5770 (mips_o64_store_return_value): Clone mips_store_return_value.
5771 (mips_eabi_store_return_value): Clone mips_store_return_value.
5772 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5773
5774 2002-08-18 Aidan Skinner <aidan@velvet.net>
5775
5776 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5777 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5778
5779 2002-08-18 Aidan Skinner <aidan@velvet.net>
5780
5781 * ada-lang.c: Run through gdb_indent.sh.
5782 * ada-lang.h: Run through gdb_indent.sh.
5783 * ada-tasks.c: Run through gdb_indent.sh.
5784 * ada-typeprint.c: Run through gdb_indent.sh.
5785 * ada-valprint.c: Run through gdb_indent.sh.
5786
5787 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5788
5789 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5790 ABI.
5791
5792 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5793
5794 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5795
5796 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5797 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5798
5799 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5800 write_register_gen instead of write_register_bytes.
5801
5802 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5803 i[3456]-*-osf1mk* configurations have been made obsolete.
5804 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5805 i[3456]86-*-osf1mk* hosts obsolete.
5806 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5807 targets obsolete.
5808 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5809 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5810 config/i386/i386m3.mt, config/i386/nm-m3.h,
5811 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5812 config/i386/i386mk.mh, config/i386/i386mk.mt,
5813 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5814 obsolete.
5815 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5816 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5817 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5818
5819 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5820
5821 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5822 (hppa_value_returned_from_stack): Declare.
5823 (hppa_extract_return_value): Declare.
5824 * config/pa/hppa.mt: New file.
5825 * configure.tgt: Recognize hppa*-*-*.
5826 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5827
5828 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5829
5830 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5831 comment.
5832
5833 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5834
5835 * top.c (gdb_rl_operate_and_get_next): Make sure
5836 operate-and-get-next functions correctly even when the history
5837 list is completely filled.
5838
5839 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5840
5841 * MAINTAINERS (Target Instruction Set Architectures): Rename
5842 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5843 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5844 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5845 already listed under Host/Native.
5846
5847 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5848 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5849 mips*-*-*.
5850
5851 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5852
5853 * config/ia64/ia64.mt: New file.
5854 * config/alpha/alpha.mt: New file.
5855 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5856 ia64-linux-gnu. Mention that ia64-elf is broken.
5857 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5858
5859 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5860
5861 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5862 generic_func_frame_valid instead of func_frame_valid.
5863
5864 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5865
5866 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5867 procfs appears to be broken when debugging on multi-processor
5868 machines. So enable software single stepping in order to avoid
5869 using the procfs interface to do next/step operations, using
5870 internal breakpoints instead.
5871
5872 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5873 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5874 make this pc address equal to the value it would have if the
5875 system stepping capability was used. Also set a new flag used
5876 to ensure that we don't readjust the PC one more time later.
5877
5878 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5879 address by DECR_PC_AFTER_BREAK when software single step is
5880 in use for this architecture, as this has already been taken
5881 care of in handle_inferior_event().
5882
5883 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5884
5885 * infrun.c (handle_inferior_event): Minor reformatting, to make
5886 a rather long condition expression easier to read.
5887
5888 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5889
5890 * Makefile.in (gdbtk.o): Move to end of file.
5891 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5892 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5893 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5894 (gdbtk-wrapper.o, gdbres.o): Ditto.
5895
5896 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5897
5898 * Makefile.in (copying.o): Separate out compile rule.
5899 (hpux-thread.o, procfs.o, signals.o): Ditto.
5900 (v850ice.o, z8k-tdep.o): Ditto.
5901 (tui-file.o): Move to TUI section.
5902 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5903 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5904
5905 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5906
5907 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5908 skip_trampoline_code, for better namespace-proofing.
5909
5910 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5911
5912 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5913
5914 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5915
5916 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5917
5918 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5919 signal, check whether we hit a breakpoint before checking for a
5920 single step breakpoint. Otherwise, GDB fails to notice that a
5921 breakpoint has been hit when stepping onto a breakpoint.
5922
5923 2002-08-16 Keith Seitz <keiths@redhat.com>
5924
5925 * gdb-events.sh (clear_gdb_event_hooks): New function.
5926 * gdb-events.c: Regenerate.
5927 * gdb-events.h: Regenerate.
5928
5929 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5930
5931 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5932 not_a_sw_breakpoint.
5933 * breakpoint.h (bpstat_stop_status): Add parameter names.
5934
5935 2002-08-16 Grace Sainsbury <graces@redhat.com>
5936
5937 * remote.c (remote_insert_hw_breakpoint)
5938 (remote_remove_hw_breakpoint): Fix calculation of length field
5939 for Z-packet.
5940
5941 2002-08-15 Michael Snyder <msnyder@redhat.com>
5942
5943 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5944 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5945 (supply_fpregset): Ditto.
5946
5947 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5948 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5949 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5950 (TARGET_READ_SP): Delete.
5951 (DO_REGISTERS_INFO): Delete.
5952 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5953 Delete.
5954 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5955 from macros to functions.
5956
5957 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5958 (mips_register_convertible, mips_register_convert_to_virtual,
5959 mips_register_convert_to_raw): Make static.
5960 (mips_read_sp): New function.
5961 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5962 (mips_do_registers_info): Make static.
5963 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5964 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5965 (mips_register_convert_from_type, mips_register_convert_to_type):
5966 New functions.
5967 (mips_gdbarch_init): Set up function_start_offset,
5968 register_virtual_size, pc_in_sigtramp.
5969
5970 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5971
5972 * infcmd.c (vector_info): New function.
5973 (_initialize_infcmd): Add command "info vector".
5974 (print_vector_info): New function.
5975
5976 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5977 * gdbarch.h, gdbarch.c: Regenerate.
5978
5979 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5980
5981 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5982 ``print_all''. Only print vector registers when ``print_all''.
5983
5984 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5985
5986 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5987 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5988
5989 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5990 Add `args' parameter.
5991 * gdbarch.h, gdbarch.c: Regenerate.
5992
5993 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5994
5995 * infcmd.c (float_info): Call print_float_info.
5996 (print_float_info): New function. By default, print the
5997 floating-point registers.
5998
5999 * arch-utils.h (default_print_float_info): Delete declaration.
6000 * arch-utils.c (default_print_float_info): Delete function.
6001
6002 2002-08-16 Mark Kettenis <kettenis@gnu.org>
6003
6004 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6005 out define.
6006
6007 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6008 FRAME.
6009
6010 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6011 * configure.host: Make i[3456]86-*-aix host obsolete.
6012 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6013 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6014 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6015 config/i386/xm-i386aix.h: Make files obsolete.
6016 * i386aix-nat.c: Make file obsolete.
6017 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6018 (i386aix-nat.o): Make target obsolete.
6019
6020 * config/i386/nm-gnu.h: Removed.
6021 * config/i386/nm-i386gnu.h: New file.
6022 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6023 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6024 Moved here from ...
6025 * config/i386/tm-i386gnu.h: ... here. Removed.
6026 * config/i386/xm-i386gnu.h: Removed.
6027 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6028 (NAT_FILE): Set to nm-i386gnu.h.
6029 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6030 * i386-tdep.c: New file.
6031 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6032 (i386gnu-tdep.o): Specify dependencies.
6033
6034 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6035
6036 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6037 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6038 Adjust a few comments to reflect reality a bit closer.
6039 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6040 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6041 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6042 target_insert_watchpoint, target_remove_watchpoint):
6043 Move defines to ...
6044 * config/i386/nm-i386sco5.h: ... here.
6045 (kernel_u_size): Add prototype. Improve a few comments and add
6046 protection against multiple inclusion.
6047
6048 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6049 out define.
6050
6051 * uw-thread.c (SP_ARG0): Define if not already defined.
6052 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6053
6054 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6055
6056 * config/i386/tm-i386.h: Don't include "regcache.h".
6057
6058 * i387-tdep.h (i387_print_float_info): New prototype.
6059 * i387-tdep.c (print_i387_value, print_i387_ext,
6060 print_i387_status_word, print_i387_control_word): Add `struct
6061 ui_file *' argument and use it for output.
6062 (i387_print_float_info): Renamed from i387_float_info. Add
6063 `struct gdbarch *' and `struct ui_file *' arguments and use the
6064 latter for output.
6065 * i386-tdep.c: Include "i387-tdep.h".
6066 (i386_gdbarch_init): Set print_float_info.
6067 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6068 (FLOAT_INFO): Remove define.
6069
6070 2002-08-13 Michael Snyder <msnyder@redhat.com>
6071
6072 * mips-tdep.c (mips_push_arguments): Rename to
6073 mips_eabi_push_arguments, and tune for EABI.
6074 (MIPS_REGS_HAVE_HOME_P): Delete.
6075 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6076 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6077 Delete references to mips_regs_have_home_p.
6078
6079 2002-08-14 Keith Seitz <keiths@redhat.com>
6080
6081 * Makefile.in (install-gdbtk): Create insight plugin directory.
6082 Install plugins.tcl file.
6083
6084 2002-08-14 Keith Seitz <keiths@redhat.com>
6085
6086 * configure.in: Move SUBDIRS to near top of the file so that
6087 --enable options may add things to it.
6088 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6089 * configure: Regenerate.
6090
6091 2002-08-13 Michael Snyder <msnyder@redhat.com>
6092
6093 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6094 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6095 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6096
6097 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6098
6099 * vax-tdep.c (vax_get_saved_register): Delete function.
6100 (vax_gdbarch_init): Update.
6101 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6102 (ns32k_gdbarch_init): Update.
6103 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6104 (alpha_gdbarch_init): Update.
6105
6106 2002-08-13 Andrew Cagney <cagney@redhat.com>
6107
6108 * regcache.c (init_regcache_descr): Overallocate the
6109 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6110 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6111 nr_raw_registers.
6112 (set_register_cached): Add range checking assertions. Use
6113 current_regcache.
6114
6115 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6116
6117 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6118 numbers for MMX registers.
6119
6120 2002-08-13 Andrew Cagney <cagney@redhat.com>
6121
6122 * i386-tdep.c (i386_gdbarch_init): Use
6123 generic_unwind_get_saved_register.
6124
6125 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6126
6127 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6128 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6129 target vector.
6130 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6131 Delete. Add comment regarding this now-deleted target method.
6132
6133 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6134
6135 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6136 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6137 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6138 real PC and the page number (if it's within the memory bank window).
6139 (m68hc11_pseudo_register_write): Likewise when saving.
6140 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6141 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6142 (m68hc11_register_raw_size): And use 32-bit for it.
6143 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6144 16K memory bank is used by the prog; also use the virtual pc.
6145
6146 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6147
6148 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6149 (m68hc11_gdbarch_init): Install it in gdbarch.
6150 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6151 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6152 (MSYMBOL_SIZE): New for documentation.
6153 (insn_return_kind): Enum to specify how a function returns.
6154 (frame_extra_info): Cleanup and record the return mode.
6155 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6156 register in address computation.
6157 (m68hc11_get_return_insn): New to obtain the return instruction used
6158 by the function.
6159 (m68hc11_frame_init_saved_regs): Take into account the return
6160 instruction used by the function for far and interrupt functions.
6161 (m68hc11_init_extra_frame_info): Take into account page register.
6162 (m68hc11_frame_args_address): Adjust according to the return mode.
6163 (show_regs): Print page register only when it's used.
6164
6165 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6166
6167 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6168 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6169 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6170 registers.
6171 (m68hc11_register_raw_size): Likewise.
6172
6173 2002-08-13 Andrew Cagney <cagney@redhat.com>
6174
6175 * i386-tdep.c (i386_register_name): Handle mmx registers.
6176 (mmx_regnum_p): New function.
6177 (i386_mmx_names): New array.
6178 (mmx_num_regs): New variable.
6179 (i386_pseudo_register_read): New function.
6180 (i386_pseudo_register_write): New function.
6181 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6182
6183 * regcache.c (regcache_raw_read_unsigned): New function.
6184 (regcache_raw_read_signed): New function.
6185 * regcache.h (regcache_raw_read_unsigned): Declare.
6186 (regcache_raw_read_signed): Declare.
6187
6188 2002-08-13 Andrew Cagney <cagney@redhat.com>
6189
6190 * regcache.c (regcache_raw_read_as_address): Delete function.
6191 (regcache_cooked_read_signed): New function.
6192 (regcache_cooked_read_unsigned): New function.
6193 * regcache.h (regcache_cooked_read_signed): Declare.
6194 (regcache_cooked_read_unsigned): Declare.
6195 (regcache_raw_read_as_address): Delete declaration.
6196
6197 * blockframe.c (generic_read_register_dummy): Use
6198 regcache_cooked_read_unsigned.
6199 * i386-tdep.c (i386_extract_struct_value_address): Use
6200 regcache_cooked_read_unsigned.
6201
6202 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6203
6204 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6205 double sizes according to ELF ABI flags.
6206 (gdbarch_tdep): Record elf_flags.
6207
6208 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6209
6210 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6211 (m6812_prolog): They can appear in 68HC12 function prologue.
6212 (m68hc11_frame_chain): Cleanup.
6213
6214 2002-08-12 Andrew Cagney <cagney@redhat.com>
6215
6216 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6217 declarations.
6218 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6219 (i386_linux_register_raw_size): Delete function.
6220 (i386_linux_init_abi): Update.
6221 * i386-tdep.c (i386_register_raw_size): Delete function.
6222 (i386_register_byte): Delete function.
6223 (i386_gdbarch_init): Update.
6224 (i386_register_size): Delete array.
6225 (i386_register_offset): Delete array.
6226
6227 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6228 (REGISTER_RAW_SIZE): Delete macro.
6229 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6230 (REGISTER_BYTE): Delete macro.
6231
6232 2002-08-11 Aidan Skinner <aidan@velvet.net>
6233
6234 * ada-lang.c (ada_lookup_partial_symbol)
6235 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6236 prototype names so that grep ^func works properly.
6237
6238 * ada-lang.c (ada_array_element_type)
6239 (ada_lookup_partial_symbol): Fix typos in parameter list.
6240
6241 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6242 Fix prototype names so that grep ^func works properly.
6243
6244 2002-08-10 Andrew Cagney <cagney@redhat.com>
6245 Elena Zannoni <ezannoni@redhat.com>
6246 Martin M. Hunt <hunt@redhat.com>
6247
6248 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6249 (build_builtin_type_vec128i): Set the vector bit.
6250 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6251 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6252 (build_builtin_type_vec64): New function.
6253 (build_builtin_type_vec64i): New function.
6254 (build_gdbtypes): Initialize builtin_type_vec64 and
6255 builtin_type_vec64i.
6256
6257 2002-08-09 Andrew Cagney <cagney@redhat.com>
6258
6259 * regcache.c (regcache_dump): Compare the register offset
6260 with REGISTER_BYTE.
6261 * arch-utils.c (generic_register_byte): New function.
6262 * arch-utils.h (generic_register_byte): Declare.
6263 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6264 * gdbarch.h, gdbarch.c: Regenerate.
6265
6266 2002-08-09 Andrew Cagney <cagney@redhat.com>
6267
6268 * regcache.c: Include "gdbcmd.h"
6269 (_initialize_regcache): Add commands "maintenance print
6270 registers", "maintenance print raw-registers" and "maintenance
6271 print cooked-registers".
6272 (enum regcache_dump_what): Define.
6273 (dump_endian_bytes): New function.
6274 (regcache_dump): New function.
6275 (regcache_print): New function.
6276 (maintenance_print_registers): New function.
6277 (maintenance_print_raw_registers): New function.
6278 (maintenance_print_cooked_registers): New function.
6279 * Makefile.in (regcache.o): Update dependencies.
6280
6281 2002-08-09 Michael Snyder <msnyder@redhat.com>
6282
6283 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6284 (mips_push_arguments): Correct some comments. Use paddr_nz
6285 for printing addresses in debug output. Replace static
6286 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6287 (mips_n32n64_push_arguments): New function, cloned from
6288 mips_push_arguments and tuned for the n32/n64 ABI.
6289 (mips_push_register): Buffer needs dynamic allocation.
6290 (mips_print_register): Ditto.
6291 (do_gp_register_row): Ditto.
6292 (mips_store_return_value): Ditto.
6293 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6294
6295 2002-08-09 Don Howard <dhoward@redhat.com>
6296
6297 * memattr.c (mem_info_command): Print special case of upper bound
6298 as max CORE_ADDR + 1.
6299
6300 2002-08-08 Michael Snyder <msnyder@redhat.com>
6301
6302 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6303 returns structs by ref if they're too big to fit in two registers.
6304
6305 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6306
6307 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6308 saved regs value.
6309 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6310 mips_find_saved_regs().
6311 (mips_pop_frame): Likewise.
6312
6313 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6314
6315 * blockframe.c (frame_saved_regs_register_unwind): Revise
6316 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6317 frames are in use.
6318
6319 2002-08-09 Grace Sainsbury <graces@redhat.com>
6320
6321 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6322 T-packets; the 'a' is not taken as a register number.
6323 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6324 (remote_stopped_data_address): New functions; add to target
6325 vector.
6326 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6327 prototypes to match other implementations of this
6328 function. replace integer argument with pointer -- the length
6329 field in the Z-packet is the length of what is pointed to or 1 if
6330 pointer is null. Add to target vector.
6331 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6332 target vector.
6333
6334 From Mark Salter:
6335 * remote.c (remote_wait): Add support to extract optional
6336 watchpoint information from T-packet. Ignore unrecognized
6337 optional info in T-packet.
6338 (remote_async_wait): Ditto.
6339
6340 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6341
6342 * cli/cli-dump.c: Change fopen modes to use binary open modes
6343 as defined in include/fopen-bin.h throughout.
6344
6345 2002-08-08 Michael Snyder <msnyder@redhat.com>
6346
6347 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6348
6349 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6350
6351 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6352 assertion failure by returning early after a warning.
6353
6354 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6355
6356 * mips-tdep.c (mips_find_saved_regs): Make static.
6357 (mips_frame_init_saved_regs): New function.
6358 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6359 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6360 (mips_find_saved_regs): Delete declaration.
6361
6362 2002-08-08 Grace Sainsbury <graces@redhat.com>
6363
6364 * remote.c (remote_wait, remote_async_wait): Change
6365 thread_num from int to ULONGEST.
6366 (unpack_varlen_hex): Change result parameter from
6367 int * to ULONGEST *.
6368
6369 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6370
6371 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6372 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6373 powerpc*-*-*.
6374 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6375
6376 2002-08-08 Andrew Cagney <cagney@redhat.com>
6377
6378 * gcore.c (override_derive_stack_segment): Delete variable.
6379 (preempt_derive_stack_segment): Delete function.
6380 (derive_stack_segment): Delete function.
6381 (default_derive_stack_segment): Renamed to derive_stack_segment.
6382 (override_derive_heap_segment): Delete variable.
6383 (preempt_derive_heap_segment): Delete function.
6384 (derive_heap_segment): Delete function.
6385 (default_derive_heap_segment): Rename to derive_heap_segment.
6386
6387 2002-08-06 Michael Snyder <msnyder@redhat.com>
6388
6389 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6390 * mips-tdep.c (mips_EABI_use_struct_convention,
6391 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6392 New functions. (mips_use_struct_convention): Delete.
6393 (mips_gdbarch_init): set use_gdbarch_convention.
6394
6395 2002-08-06 Michael Snyder <msnyder@redhat.com>
6396
6397 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6398 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6399 mips_o32_reg_struct_has_addr): New functions.
6400 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6401
6402 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6403
6404 * regcache.c (pseudo_register): Delete function.
6405 (fetch_register): Delete function.
6406 (store_register): Delete function.
6407 (regcache_raw_read, legacy_read_register_gen): Use
6408 target_fetch_registers instead of fetch_register.
6409 (legacy_write_register_gen, regcache_raw_write): Use
6410 target_store_register instead of store_register.
6411 (write_register_bytes): Ditto.
6412
6413 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6414 (STORE_PSEUDO_REGISTER): Delete.
6415 * gdbarch.h, gdbarch.c: Regenerate.
6416
6417 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6418
6419 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6420 write dump file binary.
6421
6422 2002-08-05 Michael Snyder <msnyder@redhat.com>
6423
6424 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6425 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6426 (mips_gdbarch_init): Set N32 target to be mips64.
6427
6428 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6429
6430 * frame.c (find_saved_register): Break out of loop once saved
6431 register address is found. Don't mention sparc in loop comment
6432 anymore.
6433
6434 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6435
6436 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6437 mips_default_saved_regsize to 8.
6438
6439 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6440
6441 * gcore.c: Do not include <sys/procfs.h>.
6442 * Makefile.in (gcore.o): Update dependencies.
6443
6444 2002-08-06 Andrew Cagney <cagney@redhat.com>
6445
6446 * configure.tgt: Make arc-*-* obsolete.
6447 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6448 * MAINTAINERS: Make arc-elf obsolete.
6449 * arc-tdep.c: Make file obsolete.
6450 * config/arc/arc.mt: Ditto.
6451 * config/arc/tm-arc.h: Ditto.
6452
6453 2002-08-05 Theodore A. Roth <troth@verinet.com>
6454
6455 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6456
6457 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6458
6459 * mcore-tdep.c (mcore_gdbarch_init): Use
6460 generic_unwind_get_saved_register instead of
6461 generic_get_saved_register.
6462 * v850-tdep.c (v850_gdbarch_init): Ditto.
6463 * frv-tdep.c (frv_gdbarch_init): Ditto.
6464 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6465 * s390-tdep.c (s390_gdbarch_init): Ditto.
6466 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6467 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6468 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6469
6470 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6471
6472 * objfiles.h: Add missing #include "symfile.h"
6473
6474 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6475
6476 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6477
6478 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6479 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6480 of FIELD_BITSIZE.
6481
6482 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6483
6484 * NEWS: Cleanup and nitpick.
6485
6486 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6487
6488 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6489
6490 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6491
6492 * Makefile.in (gdbtk-bp.o): Update dependencies.
6493 (gdbtk-register.o): Ditto.
6494 (gdbtk-varobj.o): Ditto.
6495
6496 2002-08-03 Andrew Cagney <cagney@redhat.com>
6497
6498 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6499 m68hc11_fetch_pseudo_register.
6500 (m68hc11_pseudo_register_write): Replace
6501 m68hc11_store_pseudo_register.
6502 (m68hc11_gdbarch_init): Update.
6503
6504 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6505
6506 * gdbarch.sh: Include "gdb_string.h".
6507 * gdbarch.c: Regenerate.
6508
6509 * regcache.c: Include "gdb_string.h".
6510 * ax-general.c: Ditto.
6511 * varobj.c: Ditto.
6512 * std-regs.c: Ditto.
6513 * fbsd-proc.c: Ditto.
6514 * thread.c: Ditto.
6515
6516 * Makefile.in (regcache.o): Update dependencies.
6517 (thread.o, gdbarch.o): Ditto.
6518 (ax-general.o, gdbarch.o): Ditto.
6519 (varobj.o, std-regs.o): Ditto.
6520 (fbsd-proc.o): Specify dependencies.
6521
6522 2002-08-02 Andrew Cagney <cagney@redhat.com>
6523
6524 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6525 regnum.
6526 (regcache_cooked_write): Ditto.
6527
6528 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6529
6530 * regcache.c (regcache_cooked_read): New function.
6531 (regcache_cooked_write): New function.
6532 (read_register_gen): Rewrite using regcache_cooked_read.
6533 (write_register_gen): Rewrite using regcache_cooked_write.
6534
6535 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6536 Declare.
6537
6538 2002-08-02 Andrew Cagney <cagney@redhat.com>
6539
6540 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6541 Replace the architecture methods register_read and register_write.
6542 * gdbarch.h, gdbarch.c: Regenerate.
6543 * regcache.c (init_regcache_descr): Update.
6544 (read_register_gen): Update.
6545 (write_register_gen): Update.
6546 (supply_register): Update comment.
6547
6548 * sh-tdep.c (sh_gdbarch_init): Update.
6549 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6550 `regcache' and `gdbarch' parameters. Make `buffer' a void
6551 pointer. Update code.
6552 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6553 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6554 void pointer. Update code.
6555 (sh64_register_write): Delete.
6556 (sh4_register_read): Delete.
6557 (sh64_register_read): Delete.
6558 (sh4_register_write): Delete.
6559 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6560 void pointer, `to' parameter a void pointer.
6561 (sh_sh64_register_convert_to_raw): Ditto.
6562
6563 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6564
6565 * mips-tdep.c (mips_register_virtual_type): Use architecture
6566 invariant return values.
6567
6568 2002-08-01 Andrew Cagney <cagney@redhat.com>
6569
6570 * linux-proc.c: Include "gdb_string.h".
6571 * Makefile.in (linux-proc.o): Update dependency list.
6572
6573 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6574
6575 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6576 comment.
6577
6578 2002-08-01 Grace Sainsbury <graces@redhat.com>
6579
6580 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6581 to_insert_watchpoint, to_remove_watchpoint,
6582 to_stopped_by_watchpoint, to_stopped_data_address,
6583 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6584 target vecctor. Define their corresponding macros so they call
6585 them.
6586
6587 * target.c: Add default and debug versions of for
6588 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6589 to_insert_watchpoint, to_remove_watchpoint,
6590 to_stopped_by_watchpoint, to_stopped_data_address,
6591 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6592
6593 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6594
6595 * mips-tdep.c (mips_register_virtual_type): New function.
6596 (mips_gdbarch_init): Register mips_register_virtual_type()
6597 with gdbarch machinery.
6598 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6599 this file instead of tm-bigmips.h.
6600 (MIPS_REGSIZE): Delete this macro.
6601 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6602 multiarch version in mips-tdep.c will be found.
6603
6604 2002-08-01 Andrew Cagney <cagney@redhat.com>
6605
6606 * NEWS: Menion that CHILL has been made obsolete.
6607
6608 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6609 * stabsread.c (read_range_type): Ditto.
6610 * gdbtypes.h: Ditto.
6611 * language.c (binop_type_check): Ditto.
6612 (binop_result_type): Ditto.
6613 (integral_type): Ditto.
6614 (character_type): Ditto.
6615 (string_type): Ditto.
6616 (boolean_type): Ditto.
6617 (structured_type): Ditto.
6618 (lang_bool_type): Ditto.
6619 (binop_type_check): Ditto.
6620 * language.h (_LANG_chill): Ditto.
6621 * dwarfread.c (set_cu_language): Ditto.
6622 * dwarfread.c (CHILL_PRODUCER): Ditto.
6623 * dwarfread.c (handle_producer): Ditto.
6624 * expression.h (enum exp_opcode): Ditto.
6625 * eval.c: Ditto for comments.
6626 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6627 * expprint.c (print_subexp): Ditto.
6628 (print_subexp): Ditto.
6629 * valops.c (value_cast): Ditto.
6630 (search_struct_field): Ditto.
6631 * value.h (COERCE_VARYING_ARRAY): Ditto.
6632 * symfile.c (init_filename_language_table): Ditto.
6633 (add_psymbol_with_dem_name_to_list): Ditto.
6634 * valarith.c (value_binop): Ditto.
6635 (value_neg): Ditto.
6636 * valops.c (value_slice): Ditto.
6637 * symtab.h (union language_specific): Ditto.
6638 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6639 (SYMBOL_DEMANGLED_NAME): Ditto.
6640 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6641 * defs.h (enum language): Ditto.
6642 * symtab.c (got_symtab): Ditto.
6643 * utils.c (fprintf_symbol_filtered): Ditto.
6644
6645 * ch-typeprint.c: Make file obsolete.
6646 * ch-valprint.c: Make file obsolete.
6647 * ch-lang.h: Make file obsolete.
6648 * ch-exp.c: Make file obsolete.
6649 * ch-lang.c: Make file obsolete.
6650
6651 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6652 CHILL_LIB.
6653 (TARGET_FLAGS_TO_PASS): Ditto.
6654 (CHILLFLAGS): Obsolete.
6655 (CHILL): Obsolete.
6656 (CHILL_FOR_TARGET): Obsolete.
6657 (CHILL_LIB): Obsolete.
6658 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6659 ch-valprint.c.
6660 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6661 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6662 ch-lang.o.
6663 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6664 targets.
6665
6666 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6667
6668 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6669 This does not change anything at the moment, but will be helpful
6670 later when full Ada support is integrated.
6671
6672 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6673
6674 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6675 help message.
6676
6677 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6678
6679 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6680 and save it in a local variable. Use variable in later test.
6681
6682 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6683
6684 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6685 test. (Thanks to Daniel Jacobowitz.)
6686
6687 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6688
6689 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6690 (mips_abi_strings): Add "n64".
6691 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6692
6693 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6694
6695 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6696 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6697
6698 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6699
6700 * utils.c (host_pointer_to_address, address_to_host_pointer):
6701 Use gdb_assert() instead of explicit call to internal_error().
6702
6703 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6704
6705 * Makefile.in (rs6000-nat.o): Update dependencies.
6706
6707 From Nicholas Duffek:
6708 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6709 (aix-thread.o): New rule.
6710 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6711 * config/powerpc/aix432.mh: New file.
6712
6713 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6714
6715 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6716 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6717 (fetch_core_registers, ppc_linux_supply_gregset)
6718 (ppc_linux_supply_fpregset): New functions.
6719 (ppc_linux_regset_core_fns): New.
6720 (_initialize_ppc_linux_tdep): Call add_core_fns.
6721 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6722 and ppc_linux_supply_gregset.
6723 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6724 (supply_fpregset): Call ppc_linux_supply_fpregset.
6725 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6726 corelow.o.
6727 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6728
6729 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6730
6731 * symtab.c (lookup_symbol): Demangle before lowercasing.
6732
6733 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6734
6735 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6736 declaration.
6737 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6738 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6739 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6740 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6741 "gdb_string.h".
6742 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6743 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6744 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6745 (avr-tdep.o, mon960-rom.o): Ditto.
6746 (aout_stabs_gnu_h): Define.
6747 (symtab_h): Remove $(gdb_obstack_h).
6748
6749 2002-07-30 Jim Blandy <jimb@redhat.com>
6750
6751 Patch from David Carlton <carlton@math.stanford.edu>:
6752 * gdbinit.in: Move the `dir' commands that add GDB's own source
6753 directory to the search path to the end, so that the `gdb' source
6754 directory will be searched first.
6755
6756 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6757
6758 * gdb_obstack.h: New file.
6759 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6760 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6761 * objfiles.h: Include "gdb_obstack.h".
6762 * Makefile.in (gdb_obstack_h): Define.
6763 (symtab_h): Add $(gdb_obstack_h).
6764 (objfiles_h): Add $(gdb_obstack_h).
6765
6766 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6767 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6768 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6769 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6770 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6771 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6772 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6773 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6774
6775 * Makefile.in (bcache.o): Update dependencies.
6776 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6777 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6778 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6779 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6780 (stabsread.o, symfile.o, symmisc.o): Ditto.
6781 (symtab.o, typeprint.o, macroexp.o): Ditto.
6782 (macrotab.o, mdebugread.o): Ditto.
6783 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6784 (coff_ecoff_h, aout_aout64_h): Define.
6785 (aout_stabs_gnu_h, libaout_h): Define.
6786
6787 2002-07-29 Andrew Cagney <cagney@redhat.com>
6788
6789 * regcache.c (struct regcache_descr): Rename nr_registers to
6790 nr_cooked_registers. Revise comments describing the structure
6791 member fields.
6792 (init_regcache_descr): Update.
6793 (init_legacy_regcache_descr): Update.
6794 (read_register_gen, write_register_gen): When a cooked register in
6795 the raw register range, directly access the value from the raw
6796 register cache.
6797
6798 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6799
6800 * z8k-tdep.c: Do not include "obstack.h".
6801 * h8300-tdep.c, h8500-tdep.c: Ditto.
6802 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6803 * valprint.c, v850-tdep.c: Ditto.
6804 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6805 * mn10200-tdep.c: Ditto.
6806
6807 * Makefile.in (z8k-tdep.o): Update dependencies.
6808 (m68hc11-tdep.o, valprint.o): Ditto.
6809 (v850-tdep.o, d10v-tdep.o): Ditto.
6810 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6811 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6812 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6813 (sh_opc_h, gdb_sim_sh_h): Define.
6814 (elf_sh_h, elf_bfd_h): Define.
6815 (opcode_m68hc11_h): Define.
6816 (OPCODES_SRC, OPCODES_DIR): define.
6817 (OPCODES): Use $(OPCODES_DIR).
6818 (gdb_sim_d10v_h): Rename sim_d10v_h.
6819 (gdb_sim_arm_h): Rename sim_arm_h.
6820
6821 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6822
6823 * utils.c (host_pointer_to_address, address_to_host_pointer):
6824 Change internal_error() message to indicate function responsible
6825 for the error.
6826
6827 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6828
6829 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6830 calls to local_hex_string_custom().
6831
6832 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6833
6834 * irix5-nat.c: Move IRIX shared library support from here...
6835 * solib-irix.c: ...to here. Revised substantially to work with
6836 generic solib framework.
6837
6838 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6839 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6840 * mips-irix-tdep.c: New file.
6841
6842 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6843 (mips-irix-tdep.o, solib-irix.o): New rules.
6844 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6845 solib-irix.o.
6846 * config/mips/irix6.mt (TDEPFILES): Likewise.
6847 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6848
6849 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6850
6851 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6852 disabled (via ``#if 0'') includes.
6853
6854 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6855
6856 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6857 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6858 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6859 Add support for the fpscr register.
6860 * rs6000-nat.c (regmap, fetch_inferior_registers)
6861 (store_inferior_registers, fetch_core_registers): Likewise.
6862
6863 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6864
6865 * rs6000-nat.c (language.h): Include.
6866 (special_regs): Delete this array.
6867 (regmap): New function.
6868 (fetch_register, store_register): Use regmap() to map gdb
6869 register numbers to ptrace register numbers. Also, use
6870 outputs from regmap() to make decisions regarding type of
6871 ptrace() call to make. In particular, don't compare against
6872 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6873 (fetch_inferior_registers, store_inferior_registers): Where
6874 possible, obtain register numbers from tdep struct. Don't
6875 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6876 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6877 (LAST_UISA_SP_REGNUM): Delete.
6878
6879 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6880
6881 * rs6000-nat.c (ppc-tdep.h): Include.
6882 (fetch_registers, store_register, fetch_core_registers): Don't
6883 access registers[] directly. Instead, use supply_register() or
6884 regcache_collect() as appropriate.
6885 (find_toc_address): Format hex address with local_hex_string().
6886
6887 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6888
6889 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6890 bfd/elf32-frv.c.
6891
6892 2002-07-24 Tom Tromey <tromey@redhat.com>
6893
6894 * jv-exp.y: Marked all strings with _().
6895 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6896 internal_error.
6897 (MethodInvocation, CastExpression, parse_number, yyerror,
6898 java_type_from_name, push_expression_name, yylex): Typo fixes.
6899
6900 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6901
6902 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6903 (tee_file_flush, tee_file_write, tee_file_fputs)
6904 (tee_file_isatty): New.
6905 * ui-file.h (tee_file_new): Add prototype.
6906
6907 2002-07-24 Aidan Skinner <aidan@velvet.net>
6908
6909 * ada-lang.c: Change k&r style function definitions to prototyped
6910 form.
6911 * ada-typeprint.c: Change k&r style function definitions to prototyped
6912 form.
6913 * ada-valprint.c: Change k&r style function definitions to prototyped
6914 form.
6915
6916 2002-07-24 Andrew Cagney <cagney@redhat.com>
6917
6918 * README: Remove reference to remote-bug.
6919 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6920 remote-bug.c.
6921 (m88k-nat.o): Delete rule.
6922 (m88k-tdep.o): Delete rule.
6923 (remote-bug.o): Delete rule.
6924 * MAINTAINERS: Mark as obsolete.
6925 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6926 * m88k-tdep.c: Make file obsolete.
6927 * config/m88k/m88k.mh: Ditto.
6928 * config/m88k/delta88v4.mh: Ditto.
6929 * config/m88k/delta88v4.mt: Ditto.
6930 * config/m88k/delta88.mt: Ditto.
6931 * config/m88k/delta88.mh: Ditto.
6932 * remote-bug.c: Ditto.
6933 * config/m88k/tm-delta88.h: Ditto.
6934 * config/m88k/nm-delta88v4.h: Ditto.
6935 * config/m88k/xm-delta88.h: Ditto.
6936 * config/m88k/xm-dgux.h: Ditto.
6937 * config/m88k/tm-m88k.h: Ditto.
6938 * config/m88k/nm-m88k.h: Ditto.
6939 * config/m88k/tm-delta88v4.h: Ditto.
6940 * m88k-nat.c: Ditto.
6941 * cxux-nat.c: Ditto.
6942 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6943 and m88*-*-* obsolete.
6944 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6945 m88*-*-* obsolete.
6946
6947 2002-07-24 Andrew Cagney <cagney@redhat.com>
6948
6949 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6950 constant. Same for local pointer variables.
6951 (extract_signed_integer): Ditto.
6952 * defs.h (extract_unsigned_integer): Update.
6953 (extract_signed_integer): Update.
6954
6955 2002-07-24 Andrew Cagney <cagney@redhat.com>
6956
6957 * regcache.c (regcache_raw_write): Change buf parameter to a
6958 constant void pointer.
6959 (regcache_raw_read): Change buf parameter to a void pointer.
6960 (legacy_write_register_gen): Change myaddr parameter a constant
6961 void pointer.
6962 (supply_register): Change val parameter to a const void pointer.
6963 * regcache.h (regcache_raw_write): Update declaration.
6964 (regcache_raw_read): Update declaration.
6965 (supply_register): Update declaration.
6966
6967 2002-07-24 Tom Tromey <tromey@redhat.com>
6968
6969 * defs.h (gdb_readline_wrapper): Declare.
6970 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6971 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6972 * top.c (gdb_readline_wrapper): New function.
6973 (command_line_input): Use it.
6974
6975 2002-07-24 Andrew Cagney <cagney@redhat.com>
6976
6977 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6978 regcache_read and regcache_write.
6979 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6980 * regcache.c: Update.
6981 * sh-tdep.c (sh64_push_arguments): Update comment.
6982 (sh_pseudo_register_read): Update.
6983 (sh_pseudo_register_write): Update.
6984 (sh4_register_read): Update.
6985 (sh4_register_write): Update.
6986 (sh64_pseudo_register_read): Update.
6987 (sh64_pseudo_register_write): Update.
6988 (sh64_register_read): Update.
6989 (sh64_register_write): Update.
6990 * i386-tdep.c (i386_extract_return_value): Update.
6991 (i386_extract_struct_value_address): Update.
6992 (i386_extract_return_value): Update.
6993 * blockframe.c (generic_read_register_dummy): Update.
6994 (generic_call_dummy_register_unwind): Update
6995 * infrun.c (write_inferior_status_register): Update.
6996
6997 2002-07-23 Jim Blandy <jimb@redhat.com>
6998
6999 * parser-defs.h (expression_context_pc): Make this extern.
7000 (Thanks to Michael Snyder.)
7001
7002 2002-07-23 Andrew Cagney <ac131313@redhat.com>
7003
7004 GDB 5.2.1 released from 5.2 branch.
7005 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7006 * README: Update to mention 5.2.1.
7007
7008 2002-07-23 Mark Salter <msalter@redhat.com>
7009
7010 * remote.c (remote_read_bytes): Fix check for error.
7011
7012 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7013
7014 * aix-thread.c (language.h): Include.
7015 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7016 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7017 Print newlines at end of debug messages.
7018 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7019 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7020
7021 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7022
7023 * aix-thread.c (ppc-tdep.h): Include.
7024 (special_register_p): New function.
7025 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7026 (store_regs_user_thread): Use register number information from
7027 gdbarch_tdep struct instead of hardcoded offsets relative to
7028 FIRST_UISA_SP_REGNUM.
7029 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7030 special_register_p() instead of using FPLAST_REGNUM and
7031 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7032 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7033 will be MQ's register number.
7034
7035 2002-07-22 Michael Snyder <msnyder@redhat.com>
7036
7037 * aix-thread.c (ops): Rename to aix_thread_ops.
7038 (base_ops): Rename to base_target.
7039 (ops_attach): Rename to aix_thread_attach.
7040 (ops_detach): Rename to aix_thread_detach.
7041 (ops_resume): Rename to aix_thread_detach.
7042 (ops_wait): Rename to aix_thread_wait.
7043 (ops_kill): Rename to aix_thread_kill.
7044 (init_ops): Rename to init_aix_thread_ops.
7045 (ops_fetch_register): Rename to aix_thread_fetch_register.
7046 (ops_store_register): Rename to aix_thread_store_register.
7047 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7048 (ops_thread_alive): Rename to aix_thread_thread_alive.
7049 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7050 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7051 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7052 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7053 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7054 (store_regs_lib): Rename to store_regs_user_thread.
7055 (store_regs_kern): Rename to store_regs_kernel_thread.
7056
7057 2002-07-22 Michael Snyder <msnyder@redhat.com>
7058
7059 * aix-thread.c (ops_prepare_to_store): Eliminate.
7060 (init_ops): Don't initialize ops.prepare_to_store.
7061 (store_regs_kern): Pre-fetch register buffers from child,
7062 because some registers may not be in the cache. Copy
7063 regs from register cache only if they are cached.
7064 (store_regs_lib): Copy regs from register cache only
7065 if they are cached.
7066 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7067 fill_gprs64): Ditto.
7068
7069 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7070
7071 * aix-thread.c (gdb_assert.h): Include.
7072 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7073 register sizes (from register cache) match size of buffer holding
7074 register data.
7075 (fill_sprs32): Change parameter types to match those in the ptrace()
7076 buffer.
7077 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7078 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7079
7080 2002-07-22 Michael Snyder <msnyder@redhat.com>
7081
7082 * aix-thread.c (supply_sprs64): Cosmetic change.
7083 (supply_sprs32): Cosmetic change.
7084 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7085 (fill_sprs64): Use regcache_collect instead of read_register.
7086 (store_regs_lib): Use regcache_collect instead of
7087 read_register. Use fill_sprs32 instead of fill_sprs64,
7088 if debugging a 32-bit architecture.
7089 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7090 out of the register cache, instead of passing a pointer into
7091 the register cache directly to ptrace. Use regcache_collect
7092 insteaad of read_register.
7093 (ops_prepare_to_store): Use target_read_registers instead
7094 of read_register_bytes.
7095
7096 2002-07-20 Aidan Skinner <aidan@velvet.net>
7097
7098 * MAINTAINERS: Add self under write after approval.
7099
7100 2002-07-20 Aidan Skinner <aidan@velvet.net>
7101
7102 * ada-tasks.c: Change k&r style function definitions to prototyped
7103 form.
7104
7105 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7106
7107 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7108 * x86-64-tdep.c: Include "objfiles.h".
7109 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7110 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7111
7112 2002-07-17 Michal Ludvig <michal@suse.cz>
7113
7114 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7115 (update_context): Initialise cfa variable.
7116
7117 2002-07-17 Michael Snyder <msnyder@redhat.com>
7118
7119 * aix-thread.c: Shorten some long lines.
7120 Bring comments into line with code spec.
7121
7122 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7123
7124 * infrun.c: Re-indent using gdb_indent.sh.
7125
7126 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7127
7128 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7129 Leave the indentation temporarily untouched, to minimize the diffs.
7130
7131 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7132
7133 * stabsread.c: Make os9k sections of the code obsolete,
7134 for real this time.
7135 * stabsread.h: Make os9k sections of the code obsolete.
7136
7137 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7138
7139 * linux-low.c (regsets_store_inferior_registers): Add free()
7140 at the end of a loop to prevent memory leak.
7141 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7142 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7143 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7144 line a comment.
7145 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7146
7147 2002-07-17 Jim Blandy <jimb@redhat.com>
7148
7149 * macrocmd.c (info_macro_command): Remove newline from error
7150 message.
7151
7152 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7153
7154 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7155 (sh_gdbarch_init): Use it for sh-dsp.
7156
7157 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7158
7159 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7160 64-bit DWARF2 format.
7161
7162 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7163
7164 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7165 <sys/proc.h> when not available.
7166
7167 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7168
7169 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7170 * stabsread.c: Make os9k sections of the code obsolete.
7171 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7172 * config/i386/i386os9k.mt: Make file obsolete.
7173 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7174 (COMMON_OBS): Remove os9kread.o
7175 (SFILES): Remove os9kread.c.
7176 (os9kread.o, remote-os9k.o): Make target obsolete.
7177 * remote-os9k.c: Make file obsolete.
7178 * os9kread.c: Make file obsolete.
7179 * Makefile.in
7180
7181 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7182
7183 * NEWS: Mention that the FR30 has been made obsolete.
7184 * fr30-tdep.c: Make file obsolete.
7185 * config/fr30/tm-fr30.h: Ditto.
7186 * config/fr30/fr30.mt: Ditto.
7187 * configure.tgt: Make fr30-*-elf obsolete.
7188 * MAINTAINERS: Make fr30-elf obsolete.
7189
7190 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7191
7192 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7193 found is not inside a section.
7194
7195 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7196
7197 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7198 strerror().
7199 (pdc_realloc): Use xrealloc() instead of realloc().
7200
7201 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7202
7203 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7204 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7205 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7206 macros.
7207
7208 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7209
7210 * aix-thread.c (ptrace_check): Eliminate goto.
7211 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7212 problem.
7213
7214 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7215
7216 * aix-thread.c (gdbcmd.h): Include.
7217 (DEBUG, DBG, DBG2, dbg): Eliminate.
7218 (debug_aix_thread): New static global.
7219 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7220 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7221 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7222 invocations to DBG and DBG2 macros to test against
7223 ``debug_aix_thread'' and call fprintf_unfiltered().
7224 (_initialize_aix_thread): Add new command "set debug aix-thread".
7225
7226 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7227
7228 From Gerhard Tonn <TON@de.ibm.com>:
7229 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7230 instead of supply_register.
7231
7232 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7233
7234 * dwarf2cfi.c: Include "gdb_assert.h".
7235 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7236 non-NULL.
7237 (update_context): Do not use __func__. Add missing ``break''.
7238 (update_context): Do not use __func__.
7239
7240 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7241
7242 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7243 and its setting. Set gdbarch instruction printing functions
7244 directly. For non-rs6000 case use new function
7245 gdb_print_insn_powerpc.
7246 (gdb_print_insn_powerpc): New function.
7247
7248 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7249
7250 * NEWS: Mention that the d30v has been marked obsolete.
7251 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7252 * configure.tgt: Mark d30v-*-* as obsolete.
7253 * d30v-tdep.c: Mark file as obsolete.
7254 * config/d30v/d30v.mt: Ditto.
7255 * config/d30v/tm-d30v.h: Ditto.
7256
7257 2002-07-13 Aidan Skinner <aidan@velvet.net>
7258
7259 * ada-tasks.c (add_task_entry): replace calls to
7260 malloc() with xmalloc
7261 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7262
7263 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7264 ada_finish_decode_line_1, all_sals_for_line
7265 ada_breakpoint_rewrite): replace calls to free() with xfree()
7266
7267 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7268
7269 From Nicholas Duffek (with minor changes by Martin Hunt,
7270 Louis Hamilton, and Kevin Buettner):
7271 * aix-thread.c: New file.
7272
7273 2002-07-12 Petr Sorfa <petrs@caldera.com>
7274
7275 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7276 complaint for invalid attribute class or form.
7277 (read_func_scope): DW_AT_frame_base
7278 better handling of DW_AT_block*.
7279 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7280 better handling of DW_AT_block*.
7281 (read_common_block): DW_AT_location
7282 better handling of DW_AT_block*.
7283 (read_partial_die): DW_AT_location better handling
7284 of DW_AT_block*.
7285 (new_symbol): DW_AT_external better handling of
7286 DW_AT_block*. Proper initialization of variable
7287 "addr".
7288 (attr_form_is_block): New function that returns true
7289 if the attribute's form is of DW_FORM_block*.
7290
7291 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7292
7293 * valops.c (find_method_list): Remove comment about
7294 removed STATIC_MEMFUNCP argument.
7295 (value_find_oload_method_list): Likewise.
7296
7297 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7298
7299 From Nicholas Duffek:
7300 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7301 target_new_objfile_hook.
7302
7303 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7304
7305 From Nicholas Duffek:
7306 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7307 csect.
7308
7309 2002-07-12 Andrew Cagney <cagney@redhat.com>
7310
7311 * MAINTAINERS: Mention --enable-sim-build-warnings.
7312 (m68hc11-elf): Disable sim build warnings.
7313 (m32r-elf): Mark as broken obsolete candidate.
7314 (x86_64-linux-gnu): Mark as buildable with -Werror.
7315 (arm-elf): Change -w to ``,'' which enables warnings but not
7316 -Werror.
7317
7318 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7319
7320 * bcache.h: Update copyright.
7321 (struct bstring, struct bcache): Move definition to "bcache.c".
7322 Replaced by opaque declaration.
7323 (bcache_xfree): Replace free_bcache.
7324 (bcache_xmalloc, bcache_memory_used): Declare.
7325
7326 * bcache.c: Update copyright.
7327 (struct bstring, struct bcache): Moved to here from "bcache.h".
7328 Update comments.
7329 (bcache_xmalloc, bcache_memory_used): New functions.
7330 (bcache_xfree): Replace function free_bcache.
7331
7332 * Makefile.in (objfiles.o): Add $(bcache_h).
7333 (objfiles_h): Remove $(bcache_h).
7334 (symfile.o): Add $(bcache_h).
7335
7336 * symmisc.c: Update copyright.
7337 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7338 (print_objfile_statistics): Use bcache_memory_used.
7339
7340 * symfile.c: Include "bcache.h".
7341 (reread_symbols): Use bcache_xfree.
7342 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7343 (add_psymbol_to_list): Pass psymbol_cache by value.
7344 (add_psymbol_with_dem_name_to_list): Ditto.
7345
7346 * objfiles.h: Update copyright.
7347 (struct bcache): Declare opaque. Do not include "bcache.h".
7348 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7349 bcache'' pointers.
7350 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7351
7352 * objfiles.c: Include "bcache.h". Update copyright.
7353 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7354 macro_cache.
7355 (free_objfile): Use bcache_xfree.
7356
7357 2002-07-11 Grace Sainsbury <graces@redhat.com>
7358
7359 * monitor.c (monitor_fetch_register): Make name a constant.
7360 (monitor_store_register): Same.
7361
7362 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7363
7364 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7365 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7366 (finish_block) For non-function blocks, hash the symbol table. For
7367 function blocks, mark the symbol table as unhashed.
7368 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7369 (msymbol_hash_iw): Likewise.
7370 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7371 value.
7372 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7373 (lookup_minimal_symbol): Likewise for both.
7374 * symtab.h (struct block): Add `hashtable' flag. Comment the
7375 hashtable.
7376 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7377 (ALL_BLOCK_SYMBOLS): Update.
7378 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7379 (struct symbol): Add `hash_next' pointer.
7380 * symtab.c (lookup_block_symbol): Search using the hash table when
7381 possible.
7382 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7383 (search_symbols, find_addr_symbol): Likewise.
7384
7385 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7386 (read_dst_symtab): Likewise.
7387 * jv-lang.c (get_java_class_symtab): Likewise.
7388 * mdebugread.c: Include "gdb_assert.h".
7389 (shrink_block): Assert that the block being modified is not hashed.
7390 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7391 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7392 symbols.
7393 (dump_symtab): Recognize hashed blocks.
7394 * printcmd.c (print_frame_args): Assert that function blocks do not
7395 have hashed symbol tables.
7396 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7397 (fill_in_ada_prototype, debug_print_block): Likewise.
7398 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7399
7400 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7401
7402 * stack.c (print_frame): Use result of frame_address_in_block()
7403 instead of fi->pc when evaluating symbols.
7404 (backtrace_command_1): Ditto.
7405
7406 2002-07-11 Andrew Cagney <cagney@redhat.com>
7407
7408 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7409 Make static.
7410
7411 * arm-tdep.c (arm_register_name): Make return type constant.
7412
7413 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7414
7415 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7416 prototype.
7417 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7418 * s390-tdep.c (s390_fp_regnum): Ditto.
7419 (s390_read_fp): Ditto.
7420 (s390_pop_frame): Ditto.
7421 (_initialize_s390_tdep): Ditto.
7422 * remote.c (get_remote_state): Ditto.
7423 * procfs.c (mappingflags): Ditto.
7424 * memattr.c (_initialize_mem): Ditto.
7425 * mcore-tdep.c (mcore_pop_frame): Ditto.
7426 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7427 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7428 * language.c (set_case_str): Ditto.
7429 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7430 * frv-tdep.c (new_variant): Ditto.
7431 (frv_stopped_data_address): Ditto.
7432 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7433 (context_alloc): Ditto.
7434 (frame_state_alloc): Ditto.
7435 (unwind_tmp_obstack_init): Ditto.
7436 (unwind_tmp_obstack_free): Ditto.
7437 (cfi_read_fp): Ditto.
7438 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7439 (cris_pop_frame): Ditto.
7440 * c-lang.c (scanning_macro_expansion): Ditto.
7441 (finished_macro_expansion): Ditto.
7442 (c_preprocess_and_parse): Ditto.
7443 * gdbarch.sh: Ditto.
7444 * gdbarch.h, gdbarch.c: Regenerate.
7445 * config/mn10200/tm-mn10200.h: Adjust indentation.
7446 * target.c: Adjust indentation.
7447 * symtab.h: Adjust indentation.
7448 * stabsread.h: Adjust indentation.
7449 * remote-es.c: Adjust indentation.
7450 * os9kread.c: Adjust indentation.
7451
7452 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7453
7454 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7455 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7456
7457 2002-07-10 Grace Sainsbury <graces@redhat.com>
7458
7459 * NEWS: Mention m68k, mcore multi-arching.
7460 * MAINTAINERS: Change status of m68k, mcore to reflect
7461 multi-arching.
7462
7463 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7464
7465 * valops.c (find_overload_match): Free oload_syms.
7466
7467 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7468
7469 Define HAVE_SYS_PROC_H if sys/proc.h exists
7470 * configure.in: Add check for sys/proc.h
7471 * config.in: Regenerate.
7472 * configure: Regenerate.
7473
7474 2002-07-09 Grace Sainsbury <graces@redhat.com>
7475
7476 * config/m68k/tm-m68k.h: Remove macros wrapped in
7477 #if !GDB_MULTI_ARCH.
7478
7479 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7480
7481 * config.in, configure: Regenerate.
7482
7483 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7484
7485 * dwarf2cfi.c: Include "gcore.h".
7486 (execute_stack_op): Fix implementation of the
7487 DW_OP_deref and DW_OP_deref_size operators by letting do their
7488 lookup in the target.
7489
7490 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7491
7492 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7493 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7494 tdep->sc_sp_offset.
7495
7496 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7497
7498 Fix PR gdb/595, gdb/602
7499 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7500 Don't call value_cast, just read the vtable pointer; update comments
7501 to match.
7502
7503 2002-07-05 Grace Sainsbury <graces@redhat.com>
7504
7505 * config/mcore/tm-mcore.h: Remove file.
7506 * config/mcore/mcore.mt: Remove definition of TM_FILE
7507 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7508
7509 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7510
7511 * i386bsd-tdep.c: Include "gdb_string.h".
7512
7513 2002-07-04 Grace Sainsbury <graces@redhat.com>
7514
7515 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7516 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7517 mcore-tdep.
7518 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7519 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7520 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7521 (RETVAL_REGNUM): Move macros from tm-mcore.h
7522 (mcore_reg_struct_has_addr): New function.
7523 (mcore_gdbarch_init): Added initializations for the macros removed
7524 from tm-mcore.h.
7525
7526 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7527
7528 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7529 traditonal string branding within the ELF header.
7530
7531 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7532
7533 * symtab.c (remove_params): New function.
7534 (make_symbol_overload_list): Use it instead of cplus_demangle.
7535 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7536
7537 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7538
7539 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7540
7541 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7542 New variables.
7543 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7544 and tdep->sigtramp_end.
7545 * i386obsd-nat.c: New file.
7546 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7547
7548 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7549 Don't call get_current_frame().
7550
7551 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7552
7553 * i386-nat.c (child_post_startup_inferior): New function
7554 calling i386_cleanup_dregs if
7555 I386_USE_GENERIC_WATCHPOINTS is defined.
7556 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7557 conditional to acknowledge that i386-nat.c has its
7558 own child_post_startup_inferior function.
7559
7560 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7561
7562 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7563 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7564 instead of MAX_REGISTER_RAW_SIZE.
7565 (i386_extract_return_value, i386_extract_struct_value_address):
7566 Convert to use regcache.
7567 (i386_gdbarch_init): Set max_register_raw_size and
7568 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7569 Set extract_return_value and extract_struct_value_address instead
7570 of their deprecated variants.
7571
7572 Convert i386 target to generic dummy frames.
7573 * i386-tdep.c: Include "symfile.h".
7574 (i386_frameless_signal_p): Consider a function to be frameless if
7575 the pc points at the first instruction of the function.
7576 (i386_frame_chain): Handle (generic) call dummies.
7577 (i386_frame_saved_pc): Likewise.
7578 (i386_frame_init_saved_regs): Remove code dealing with call
7579 dummies on the stack.
7580 (i386_push_dummy_frame): Removed.
7581 (i386_call_dummy_words): Removed.
7582 (i386_fix_call_dummy): Removed.
7583 (i386_push_return_address): New function.
7584 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7585 parameter, and don't call get_current_frame.
7586 (i386_pop_frame): New function.
7587 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7588 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7589 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7590 call_dummy_length to 0, set call_dummy_words to NULL, set
7591 sizeof_call_dummy_words to 0, set fix_call_dummy to
7592 generic_fix_call_dummy, set pc_in_call_dummy to
7593 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7594 generic_push_dummy_frame, set push_return_address to
7595 i386_push_return_address and set frame_chain_valid to
7596 generic_file_frame_chain_valid.
7597
7598 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7599
7600 * gdbarch.sh (struct regcache): Add opaque declaration.
7601 (EXTRACT_RETURN_VALUE): New architecture method.
7602 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7603 * gdbarch.h, gdbarch.c: Regenerate.
7604 * arch-utils.c (legacy_extract_return_value): New function.
7605 * arch-utils.h (legacy_extract_return_value): Declare.
7606 * values.c (value_being_returned): Re-enable code handling
7607 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7608 deprecated_grub_regcache_for_registers call to block handling
7609 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7610 (EXTRACT_RETURN_VALUE): Do not define.
7611
7612 2002-07-03 Grace Sainsbury <graces@redhat.com>
7613
7614 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7615 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7616 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7617 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7618 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7619 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7620 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7621 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7622 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7623 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7624 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7625 argument so the function fits the prototype in the architecture
7626 vector.
7627 (mcore_pop_frame): Remove argument so the function fits the
7628 prototype. Use get_current_frame instead of the argument.
7629 (mcore_push_arguments): Change type of struct_return so the
7630 function can be used in the architecture vector.
7631 (mcore_store_struct_return): Add.
7632 (mcore_frame_init_saved_regs): Add.
7633 (mcore_gdbarch_init): Add function calls to replace the macros
7634 removed from tm-mcore.h
7635
7636 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7637
7638 * infcmd.c (print_return_value): Remove compatibility code calling
7639 deprecated_grub_regcache_for_registers.
7640
7641 * values.c: Include "regcache.h".
7642 (value_being_returned): Update. Use
7643 deprecated_grub_regcache_for_registers to extract the register
7644 buffer address.
7645 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7646 ``struct regcache''.
7647 * Makefile.in (values.o): Add dependency on $(regcache_h).
7648
7649 * inferior.h (run_stack_dummy): Change type of second parameter to
7650 a ``struct regcache''.
7651 * valops.c (hand_function_call): Change type of retbuf to ``struct
7652 regcache''. Allocate using regcache_xmalloc, clean using
7653 make_cleanup_regcache_xfree.
7654 * infcmd.c (run_stack_dummy): Update. Use
7655 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7656
7657 * regcache.c (do_regcache_xfree): New function.
7658 (make_cleanup_regcache_xfree): New function.
7659 * regcache.h (make_cleanup_regcache_xfree): Declare.
7660
7661 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7662
7663 * event-top.c (command_line_handler): Don't read past
7664 beginning of buffer.
7665
7666 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7667
7668 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7669 struct frame_id.
7670 (varobj_create): Store frame_id for root.
7671 (varobj_gen_name): Use xasprintf.
7672 (varobj_update): Save and restore frame using get_frame_id() and
7673 frame_find_by_id().
7674 (create_child): Use xasprintf.
7675 (new_root_variable): Initialize frame_id.
7676 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7677 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7678 to prevent memory leak.
7679
7680 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7681
7682 * valops.c (hand_function_call): Move declaration of retbuf to
7683 start of function, allocate using malloc, add a cleanup but before
7684 the inf_status cleanup, cleanup the buffer. Rename local variable
7685 old_chain to inf_status_cleanup.
7686
7687 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7688
7689 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7690
7691 * cli/cli-decode.c (cmd_func_p): New function.
7692 (cmd_func): New function.
7693
7694 * command.h: Add cmd_func() and cmd_func_p().
7695
7696 2002-07-03 Grace Sainsbury <graces@redhat.com>
7697
7698 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7699 (REGISTER_SIZE): Remove.
7700 (MAX_REGISTER_RAW_SIZE): Remove.
7701 (REGISTER_VIRTUAL_TYPE): Remove.
7702 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7703 (REGISTER_NAME): Remove.
7704 (USE_GENERIC_DUMMY_FRAMES): Remove.
7705 (CALL_DUMMY): Remove.
7706 (CALL_DUMMY_START_OFFSET): Remove.
7707 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7708 (CALL_DUMMY_LOCATION): Remove.
7709 (FIX_CALL_DUMMY): Remove.
7710 (CALL_DUMMY_ADDRESS): Remove.
7711 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7712 (SAVE_DUMMY_FRAME_TOS): Remove.
7713 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7714 (mcore_register_virtual_type): New function.
7715 (mcore_register_byte): New function.
7716 (mcore_register_size): New function.
7717 (mcore_register_name): New function.
7718 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7719 macros removed from tm-mcore.h.
7720 (mcore_dump_tdep): Add.
7721 (_initialize_mcore_tdep): Add gdbarch_register call.
7722
7723 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7724
7725 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7726 frameless_look_for_prologue, such that we actually call this
7727 function.
7728
7729 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7730
7731 * frame.h (frame_address_in_block): New function.
7732
7733 * blockframe.c (frame_address_in_block): New function extracted
7734 from get_frame_block().
7735 (get_frame_block): Use frame_address_in_block().
7736 (block_innermost_frame): Use frame_address_in_block() to match
7737 the frame pc address against the block boundaries rather than
7738 the frame pc directly. This prevents a failure when a frame pc
7739 is actually a return-address pointing immediately after the end
7740 of the given block.
7741
7742 2002-07-02 Grace Sainsbury <graces@redhat.com>
7743
7744 * MAINTAINERS: Add self under write after approval.
7745
7746 2002-07-02 Grace Sainsbury <graces@redhat.com>
7747
7748 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7749 used in architecture vector. The default is
7750 m68k_local_breakpoint_from_pc.
7751 (m68k_local_breakpoint_from_pc): Add.
7752 (enum): Add register numbers from tm-m68k.h.
7753 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7754 vector.
7755 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7756 GDB_MULTI_ARCH_PARTIAL.
7757 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7758 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7759 m68k-tdep.c.
7760 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7761 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7762 to enum in m68k-tdep.c
7763
7764 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7765
7766 * solib-osf.c (open_map): Compute the list of shared libraries
7767 loaded by the inferior, rather than the list of libraries loaded
7768 by GDB itself. Otherwise, GDB ends up reading the symbols from
7769 the wrong shared libraries...
7770
7771 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7772
7773 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7774 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7775 macros.
7776 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7777 Remove functions.
7778 (FRAMELESS_SIGNAL): Remove function.
7779 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7780 i386_linux_saved_pc_after_call): Removed.
7781 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7782 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7783 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7784
7785 * i386-tdep.c (i386_frameless_signal_p): New function.
7786 (i386_frame_chain): Deal with frameless signals.
7787 (i386_sigtramp_saved_sp): New function.
7788 (i386_frame_saved_pc): Deal with frameless signals.
7789 (i386_saved_pc_after_call): Make sure the correct value is
7790 returned just after entry into a sigtramp.
7791 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7792 i386fbsd4_sc_sp_offset): New variables.
7793 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7794 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7795 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7796 similiar to what we already did for sc_pc_offset.
7797 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7798 tdep->sc_sp_offset.
7799
7800 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7801
7802 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7803
7804 * config/i386/tm-x86-64linux.h: New.
7805 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7806 definitions.
7807 * config/i386/nm-x86-64.h: Rename to ...
7808 * config/i386/nm-x86-64linux.h: ... this one.
7809 * config/i386/x86-64linux.mh: Reflect the above change.
7810
7811 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7812
7813 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7814 with sigcontext_addr. Add sc_sp_offset.
7815 (i386bsd_sigtramp_saved_pc): Remove prototype.
7816 (i386bsd_sicontext_addr): Add prototype.
7817 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7818 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7819 (i386_svr4_sigtramp_saved_pc): Removed.
7820 (i386_svr4_sigcontext_addr): New function.
7821 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7822 Initialize tdep->sigcontext_addr instead. Initialize
7823 tdep->sc_pc_offset and tdep->sc_sp_offset.
7824 (i386_gdbarch_init): Likewise.
7825 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7826 any more.
7827 (i386bsd_sigtramp_saved_pc): Remove function.
7828 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7829 Initialize tdep->sigcontext_addr instead. Initialize
7830 tdep->sc_pc_offset.
7831 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7832 of tdep->sigtramp_saved_pc.
7833 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7834 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7835 instead.
7836
7837 * i386-tdep.c (i386_frameless_function_invocation,
7838 i386_frame_num_args, i386_frame_init_saved_regs,
7839 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7840 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7841 i386_extract_return_value, i386_store_return_value,
7842 i386_extract_struct_value_address, i386_register_virtual_type,
7843 i386_register_convertible, i386_register_convert_to_virtual,
7844 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7845 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7846 static.
7847
7848 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7849
7850 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7851
7852 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7853 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7854 this macro. Include "value.h".
7855
7856 2002-06-30 Aidan Skinner <aidan@velvet.net>
7857
7858 * ada-exp.tab.c: remove as it's a generated file
7859 * ada-lex.c: remove as it's a generated file
7860
7861 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7862
7863 * config/i386/tm-i386.h (struct frame_info, struct
7864 frame_saved_regs, struct value, struct type): Remove forward
7865 declarations.
7866
7867 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7868 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7869 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7870 (FILL_FPXREGSET): Define.
7871
7872 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7873
7874 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7875 i[3456]86-*-netbsd* case.
7876 * config/i386/tm-obsd.h: Removed.
7877 * config/i386/obsd.mt: Removed.
7878 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7879 core-aout.o.
7880 (MH_CFLAGS): Add -DYYDEBUG=0.
7881
7882 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7883 i386nbsd_sc_pc_offset on OpenBSD too.
7884
7885 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7886 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7887 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7888 define.
7889 * i386bsd-tdep.c: Include "arch-utils.h".
7890 (i386bsd_aout_in_solib_call_trampoline): New function.
7891 (i386bsd_init_abi): Set in_solib_call_trampoline to
7892 i386bsd_aout_in_solib_call_trampoline.
7893 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7894 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7895
7896 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7897
7898 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7899 (struct obstack, struct bcache): Add opaque declarations.
7900 * Makefile.in (macrotab_h): Update
7901
7902 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7903
7904 * blockframe.c (generic_find_dummy_frame): Change return type to
7905 ``struct regcache''.
7906 (struct dummy_frame): Replace field ``registers'' with regcache, a
7907 struct regcache object.
7908 (generic_find_dummy_frame): Update.
7909 (generic_push_dummy_frame): Update. Use regcache_xfree,
7910 regcache_xmalloc and regcache_cpy.
7911 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7912 regcache_xfree.
7913 (deprecated_generic_find_dummy_frame): Update.
7914 (generic_read_register_dummy): Update. Use
7915 regcache_read_as_address.
7916 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7917 (generic_get_saved_register): Update. Use regcache_read.
7918
7919 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7920
7921 * Makefile.in (objfiles_h): Add $(bcache_h).
7922 * objfiles.h: Include "bcache.h".
7923
7924 * Makefile.in (symtab_h): Remove $(bcache_h).
7925 * symtab.h: Do not include "bcache.h".
7926
7927 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7928
7929 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7930 generic_func_frame_chain_valid.
7931
7932 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7933
7934 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7935 * config/i386/tm-fbsd.h: Likewise.
7936
7937 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7938
7939 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7940 generic_unwind_get_saved_register.
7941
7942 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7943
7944 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7945 * regcache.c (supply_register): Add missing argument to
7946 register_buffer call.
7947
7948 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7949
7950 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7951 Solaris /bin/grep does not not like it. From Peter Schauer.
7952
7953 2002-06-26 Tom Tromey <tromey@redhat.com>
7954
7955 * command.h (add_setshow_cmd): Declare.
7956 (add_setshow_cmd_full): Declare.
7957 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7958 returns void. Use add_setshow_cmd_full.
7959 (add_setshow_cmd_full): New function.
7960 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7961 (add_setshow_boolean_cmd): Likewise.
7962
7963 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7964
7965 * config/vax/tm-vax.h: Protect from multiple inclusion.
7966 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7967 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7968 * config/vax/tm-vaxbsd.h: ...here. New file.
7969 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7970
7971 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7972
7973 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7974 (BELIEVE_PCC_PROMOTION): Remove.
7975 (AP_REGNUM): Move to...
7976 * config/vax/nm-vax.h: ...here.
7977 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7978 (vax_breakpoint_from_pc): New function.
7979 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7980 and gdbarch_believe_pcc_promotion.
7981
7982 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7983
7984 * Makefile.in (vax_tdep_h): Define.
7985 (vax-tdep.o): Use $(vax_tdep_h).
7986 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7987 (vax_dump_tdep): New function.
7988 (_initialize_vax_tdep): Register vax_dump_tdep.
7989 * vax-tdep.h: Include osabi.h.
7990 (struct gdbarch_tdep): New.
7991
7992 2002-06-26 Andrew Cagney <cagney@redhat.com>
7993
7994 * frame.h (deprecated_generic_find_dummy_frame): Rename
7995 generic_find_dummy_frame.
7996 * blockframe.c (generic_find_dummy_frame): Make static.
7997 (deprecated_generic_find_dummy_frame): New function.
7998 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7999 generic_find_dummy_frame with deprecated_find_dummy_frame.
8000 (sh64_nofp_frame_init_saved_regs): Ditto.
8001 (sh_fp_frame_init_saved_regs): Ditto.
8002 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8003 (s390_frame_chain): Ditto.
8004 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8005
8006 2002-06-26 Grace Sainsbury <graces@redhat.com>
8007
8008 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8009 gdbarch vector are at the top.
8010 (NUM_REGS): Remove.
8011 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8012 (FRAME_ARGS_ADDRESS): Remove.
8013 (FRAME_LOCALS_ADDRESS): Remove.
8014 (FRAME_NUM_ARGS): Remove.
8015 (FRAME_ARGS_SKIP): Remove.
8016 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8017 (m68k_gdbarch_init): Add gdbarch initializations for macros
8018 undefined in tm-m68k.h
8019
8020 2002-06-26 Grace Sainsbury <graces@redhat.com>
8021
8022 * monitor.h: Add the function regname to monitor_ops
8023 structure. This way NUM_REGS does not have to be a constant.
8024 * monitor.c (monitor_fetch_register): Added support for regname
8025 function. The function is called if the array regnames is NULL.
8026 (monitor_store_register): Same.
8027 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8028 regnames array.
8029 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8030 cpu32bug_cmds.regname to point to new function.
8031 * abug-rom.c (abug_regname): Same as above.
8032 (init_abug_cmds): Same.
8033 * dbug-rom.c (dbug_regname): Same as above.
8034 (init_dbug_cmds): Same.
8035 * remote-est.c (est_regname): Same.
8036 (init_est_cmds): Same.
8037 * rom68k-rom.c (rom68k_regname): Same.
8038 (init_rom68k_cmds): Same.
8039
8040 2002-06-25 Tom Tromey <tromey@redhat.com>
8041
8042 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8043
8044 2002-06-25 Andrew Cagney <cagney@redhat.com>
8045
8046 * infrun.c (stop_registers): Change variable's type to ``struct
8047 regcache'''.
8048 (xmalloc_inferior_status): Delete function.
8049 (free_inferior_status): Delete function.
8050 (normal_stop): Use regcache_cpy.
8051 (struct inferior_status): Change type of fields ``stop_registers''
8052 and ``registers'' to ``struct regcache''.
8053 (write_inferior_status_register): Use regcache_write.
8054 (save_inferior_status): Instead of calling
8055 xmalloc_inferior_status, allocate the inf_status buffer directly.
8056 Use regcache_dup_no_passthrough and regcache_dup to save the
8057 buffers.
8058 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8059 Replace the stop_registers regcache instead of overriding it. Use
8060 regcache_xfree. Instead of calling free_inferior_status, xfree
8061 the buffer directly.
8062 (discard_inferior_status): Use regcache_xfree. Instead of calling
8063 free_inferior_status, xfree the buffer directly.
8064 (build_infrun): Use regcache_xmalloc.
8065 (_initialize_infrun): Delete redundant call to build_infrun.
8066
8067 * Makefile.in (infcmd.o): Add $(regcache_h).
8068
8069 * infcmd.c: Include "regcache.h".
8070 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8071 obtain the address of `stop_registers' register buffer.
8072 (print_return_value): Ditto.
8073
8074 * inferior.h (struct regcache): Add opaque declaration.
8075 (stop_registers): Change variable's declared type to ``struct
8076 regcache''.
8077
8078 2002-06-24 Tom Tromey <tromey@redhat.com>
8079
8080 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8081 * target.c (initialize_targets): Fixed typo in
8082 trust-readonly-sections `show' documentation.
8083
8084 * main.c: Marked all strings with _().
8085
8086 2002-06-24 Don Howard <dhoward@redhat.com>
8087
8088 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8089 that means max CORE_ADDR+1.
8090 (lookup_mem_region): Ditto.
8091 (mem_info_command): Ditto.
8092
8093 2002-06-24 Grace Sainsbury <graces@redhat.com>
8094
8095 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8096 (REGISTER_BYTES_OK): Remove.
8097 (REGISTER_BYTES): Remove.
8098 (STORE_STRUCT_RETURN): Remove.
8099 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8100 (STORE_RETURN_VALUE): Remove.
8101 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8102 (FRAME_CHAIN): Remove.
8103 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8104 (FRAME_SAVED_PC): Remove.
8105 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8106 (m68k_store_struct_return): Add.
8107 (m68k_deprecated_extract_return_value): Add.
8108 (m68k_deprecated_extract_struct_value_address): Add.
8109 (m68k_store_return_value): Add.
8110 (m68k_frame_chain): Add.
8111 (m68k_frameless_function_invocation): Add.
8112 (m68k_frame_saved_pc): Add.
8113 (m68k_gdbarch_init): added set_gdbarch calls for new
8114 functions and deleted macros.
8115
8116 2002-06-23 Tom Tromey <tromey@redhat.com>
8117
8118 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8119 (ALLDEPFILES): Likewise.
8120 (udiheaders): Removed.
8121 (udip2soc.o): Likewise.
8122 (udi2go32.o): Likewise.
8123 (udr.o): Likewise.
8124 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8125
8126 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8127
8128 * infrun.c (_initialize_infrun): Delete unnecessary call to
8129 build_infrun.
8130
8131 * regcache.h: Update comments describing the regcache_cpy family
8132 of functions.
8133 (regcache_save, regcache_restore): Delete declaration.
8134 (regcache_save_no_passthrough): Delete declaration.
8135 (regcache_restore_no_passthrough): Delete declaration.
8136 * regcache.c (regcache_save): Delete function.
8137 (regcache_save_no_passthrough): Delete function.
8138 (regcache_restore): Delete function.
8139 (regcache_restore_no_passthrough): Delete function.
8140
8141 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8142
8143 * config/m68k/tm-m68k.h: Fix typo.
8144 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8145 (m68k_frame_init_saved_regs): Declare.
8146
8147 2002-06-21 Jim Blandy <jimb@redhat.com>
8148
8149 Remove some vestiges of Harris 88k support.
8150 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8151 register numbering quirk.
8152 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8153 odd symbols occurring in Harris 88k ELF targets.
8154
8155 2002-06-21 Tom Tromey <tromey@redhat.com>
8156
8157 * gdb_locale.h: New file.
8158 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8159 (defs_h): Added gdb_locale.h.
8160 * configure, config.in: Rebuilt.
8161 * configure.in (PACKAGE): Define.
8162 * defs.h: Include gdb_locale.h.
8163 * main.c (captured_main): Call setlocale, bindtextdomain,
8164 textdomain.
8165
8166 2002-06-21 Dave Brolley <brolley@redhat.com>
8167
8168 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8169 * config/frv/frv.mt: New file.
8170 * config/frv/tm-frv.h: New file.
8171 * configure.tgt: Support frv-*-*.
8172 * Makefile.in (frv-tdep.o): New target.
8173 * frv-tdep.c: New file.
8174 * NEWS: Mention frv.
8175
8176 2002-06-21 Dave Brolley <brolley@redhat.com>
8177
8178 * MAINTAINERS: Add self to "Write After Approval" list.
8179
8180 2002-06-21 Grace Sainsbury <graces@redhat.com>
8181
8182 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8183 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8184 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8185 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8186 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8187
8188 * m68k-tdep.c: Include arch-utils.h
8189 (m68k_register_raw_size): Add.
8190 (m68k_register_virtual_size): Add.
8191 (m68k_register_virtual_type): Add.
8192 (m68k_register_name): Add.
8193 (m68k_stack_align): Add.
8194 (m68k_register_byte): Add.
8195 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8196 tm-m68k.h.
8197
8198 2002-06-21 Grace Sainsbury <graces@redhat.com>
8199
8200 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8201 m68k_find_saved_regs.
8202 (m68k_pop_frame): Removed saved_regs structure, and replaced
8203 references to it with frame->saved_regs.
8204 (m68k_gdbarch_init): Added function calls to initialize the
8205 gdbarch structure.
8206 (m68k_fix_call_dummy): Add.
8207 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8208 (CALL_DUMMY): Remove.
8209 (CALL_DUMMY_LENGTH): Remove.
8210 (CALL_DUMMY_START_OFFSET): Remove.
8211 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8212 (FIX_CALL_DUMMY): Remove.
8213 (PUSH_DUMMY_FRAME): Remove.
8214 (POP_FRAME): Remove.
8215
8216 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8217
8218 * parse.c (parse_fprintf): New function used to avoid calls to
8219 fprintf in bison parser generated debug code.
8220 * parser-defs.h: Declaration of new parse_fprintf function.
8221 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8222 Set YYDEBUG to 1 by default.
8223 Set YYFPRINTF as parse_fprintf.
8224
8225 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8226
8227 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8228 encoding anymore.
8229 (pointer_encoding, enum ptr_encoding): New.
8230 (execute_cfa_program): Take care about pointer encoding.
8231 (dwarf2_build_frame_info): Only call parse_frame_info for
8232 .debug_frame and .eh_frame.
8233 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8234 fixed augmentation handling, added relative addressing,
8235 ignore duplicate FDEs. Added comments.
8236 * dwarf2cfi.c: Reindented.
8237
8238 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8239
8240 * event-top.c (command_handler): Don't use space_at_cmd_start
8241 unless there is sbrk() on the host. Assign time and space data
8242 to union fields of the appropriate length.
8243
8244 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8245
8246 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8247 x86_64_register_name. Return type changed to 'const char *'.
8248 (x86_64_register_name2nr): Rename to x86_64_register_number.
8249 (x86_64_gdbarch_init): Update to reflect the change.
8250 * x86-64-tdep.h: Ditto.
8251 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8252 (supply_fpregset): Ditto.
8253
8254 2002-06-19 Andrew Cagney <cagney@redhat.com>
8255
8256 * regcache.h: Update copyright.
8257 (struct regcache, struct gdbarch): Add opaque declarations.
8258 (current_regcache): Declare global variable.
8259 (regcache_read, regcache_write): Add gdbarch parameter.
8260 (regcache_save, regcache_save_no_passthrough)
8261 (regcache_restore, regcache_restore_no_passthrough)
8262 (regcache_dup, regcache_dup_no_passthrough)
8263 (regcache_cpy, regcache_cpy_no_passthrough)
8264 (deprecated_grub_regcache_for_registers)
8265 (deprecated_grub_regcache_for_register_valid)
8266 (regcache_valid_p): Add function declarations.
8267
8268 * regcache.c: Update copyright.
8269 (regcache_descr_handle): New global variable.
8270 (struct regcache_descr): Define.
8271 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8272 (regcache_descr, xfree_regcache_descr): New functions.
8273 (struct regcache): Define.
8274 (regcache_xmalloc, regcache_xfree): New functions.
8275 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8276 (regcache_dup, regcache_dup_no_passthrough): New functions.
8277 (regcache_valid_p, regcache_read_as_address): New functions.
8278 (deprecated_grub_regcache_for_registers): New function.
8279 (deprecated_grub_regcache_for_register_valid): New function.
8280 (current_regcache): New global variable.
8281 (register_buffer): Add regcache parameter. Update calls.
8282 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8283 (read_register_gen, write_register_gen): Update register_buffer
8284 call. Test for legacy_p instead of gdbarch_register_read_p or
8285 gdbarch_register_write_p.
8286 (regcache_collect): Update register_buffer call.
8287 (build_regcache): Rewrite. Use deprecated grub functions.
8288 (regcache_save, regcache_save_no_passthrough): New functions.
8289 (regcache_restore, regcache_restore_no_passthrough): New
8290 functions.
8291 (_initialize_regcache): Create the regcache_data_handle. Swap
8292 current_regcache global variable.
8293
8294 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8295 parameter to regcache_read and regcache_write calls.
8296 (sh4_register_read): Ditto.
8297 (sh64_pseudo_register_read): Ditto.
8298 (sh64_register_read): Ditto.
8299 (sh_pseudo_register_write): Ditto.
8300 (sh4_register_write): Ditto.
8301 (sh64_pseudo_register_write): Ditto.
8302 (sh64_register_write): Ditto.
8303
8304 * defs.h (XCALLOC): Define.
8305
8306 2002-06-19 Grace Sainsbury <graces@redhat.com>
8307
8308 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8309 * m68k-tdep.c (m68k_gdbarch_init): Added.
8310 (m68k_dump_tdep): Added.
8311
8312 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8313
8314 * ada-lang.c (fill_in_ada_prototype): Update comment.
8315
8316 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8317
8318 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8319 MIPS_ABI_LAST.
8320 (mips_abi_string, mips_abi_strings): New.
8321 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8322 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8323 tdep->mips_abi_string. Honor mips_abi_string. Default to
8324 O32 if no ABI is found.
8325 (mips_dump_tdep): Use mips_abi_strings.
8326 (mips_abi_update): New function.
8327 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8328 ``set mips abi'' and ``show mips abi''. Check the size of
8329 mips_abi_strings.
8330
8331 2002-06-19 Andrew Cagney <cagney@redhat.com>
8332
8333 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8334 constant.
8335
8336 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8337
8338 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8339 current frame using only the first stack size adjustment. All
8340 subsequent size adjustments are not considered to be part of
8341 the "static" part of the current frame.
8342 Compute the address of the saved registers relative to the
8343 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8344 in use in this frame.
8345
8346 2002-06-18 Don Howard <dhoward@redhat.com>
8347
8348 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8349 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8350 suggesting this solution.
8351
8352 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8353
8354 * config/romp/xm-rtbsd.h: Delete file.
8355 * config/romp/rtbsd.mh: Delete file.
8356
8357 2002-06-18 Keith Seitz <keiths@redhat.com>
8358
8359 * breakpoint.c (condition_command): Post breakpoint_modify
8360 when a condition is added to an existing breakpoint.
8361 (commands_command): Likewise for commands.
8362 (set_ignore_count): Likewise for ignore counts.
8363 If no tty, do not simply return, still need to send event
8364 notification.
8365 (ignore_command): Only print a newline if the command came
8366 from a tty.
8367 Don't call breakpoints_changed, since this is now properly
8368 handled by set_ignore_count.
8369
8370 2002-06-18 Andrew Cagney <cagney@redhat.com>
8371
8372 * MAINTAINERS: Note that cris-elf target can be compiled with
8373 -Werror.
8374 * cris-tdep.c (cris_register_name): Make return type constant.
8375 (cris_breakpoint_from_pc): Ditto.
8376
8377 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8378
8379 * frame.h (struct frame_info): Change type of context to
8380 'struct context'.
8381
8382 2002-06-17 Andrew Cagney <cagney@redhat.com>
8383
8384 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8385 pointer.
8386 * gdbarch.h, gdbarch.c: Regenerate.
8387 * config/mips/tm-mips.h (mips_register_name): Update.
8388 * i386-tdep.h (i386_register_name): Update.
8389 * mips-tdep.c (mips_register_name): Update
8390 * alpha-tdep.c (alpha_register_name): Update.
8391 * arch-utils.c (legacy_register_name): Update.
8392 * arch-utils.h (legacy_register_name): Update.
8393 * avr-tdep.c (avr_register_name): Update.
8394 * ia64-tdep.c (ia64_register_name): Update.
8395 * i386-tdep.c (i386_register_name): Update.
8396 * sparc-tdep.c (sparc32_register_name): Update.
8397 (sparc64_register_name): Update.
8398 (sparclite_register_name): Update.
8399 (sparclet_register_name): Update.
8400 * sh-tdep.c (sh_generic_register_name): Update.
8401 (sh_sh_register_name): Update.
8402 (sh_sh3_register_name): Update.
8403 (sh_sh3e_register_name): Update.
8404 (sh_sh_dsp_register_name): Update.
8405 (sh_sh3_dsp_register_name): Update.
8406 (sh_sh4_register_name): Update.
8407 (sh_sh64_register_name): Update.
8408 * s390-tdep.c (s390_register_name): Update.
8409 * rs6000-tdep.c (rs6000_register_name): Update.
8410 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8411 (ns32k_register_name_32382): Update.
8412 * d10v-tdep.c (d10v_ts2_register_name): Update.
8413 (d10v_ts3_register_name): Update.
8414 * xstormy16-tdep.c (xstormy16_register_name): Update.
8415 * vax-tdep.c (vax_register_name): Update.
8416 * v850-tdep.c (v850_register_name): Update.
8417 * m68hc11-tdep.c (m68hc11_register_name): Update.
8418 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8419 (am33_register_name): Update.
8420
8421 2002-06-17 Grace Sainsbury <graces@redhat.com>
8422
8423 * m68k-tdep.c: Reindented.
8424
8425 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8426
8427 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8428 list of predefined types.
8429
8430 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8431
8432 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8433 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8434 REGISTER_CONVERT_TO_RAW): Remove defines.
8435 (i386_register_virtual_type, i386_register_convertible,
8436 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8437 Remove prototypes.
8438 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8439 macros mentioned above.
8440
8441 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8442 (i386lynx_saved_pc_after_call): Remove prototype.
8443 * i386ly-tdep.c: Include "i386-tdep.h".
8444 (i386lynx_saved_pc_after_call): Make static. Use
8445 read_memory_nobpt instead of read_memory. Use
8446 read_memory_unsigned_integer instead of read_memory_integer.
8447 (i386lynx_init_abi): New function.
8448 (i386lynx_coff_osabi_sniffer): New function.
8449 (_initialize_i386bsd_tdep): New function.
8450
8451 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8452 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8453 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8454 (i386_fix_call_dummy): Remove prototype.
8455 * i386-tdep.c (i386_call_dummy_words): New variable.
8456 (i386_gdbarch_init): Adjust for removal of the
8457 macros mentioned above.
8458
8459 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8460
8461 * command.h (add_setshow_auto_boolean_cmd): Replace
8462 add_set_auto_boolean_cmd.
8463 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8464 add_set_auto_boolean_cmd.
8465 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8466 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8467 mask-address'' command.
8468 (show_mask_address): Add cmd parameter.
8469 * remote.c (add_packet_config_cmd): Update. Change type of
8470 set_func and show_func to cmd_sfunc_ftype.
8471 (_initialize_remote): Update `set remote Z-packet'
8472 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8473 (show_remote_protocol_e_packet_cmd): Ditto.
8474 (show_remote_protocol_E_packet_cmd): Ditto.
8475 (show_remote_protocol_P_packet_cmd): Ditto.
8476 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8477 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8478 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8479 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8480 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8481 (show_remote_protocol_Z_packet_cmd): Ditto.
8482 (show_remote_protocol_binary_download_cmd): Ditto.
8483 (show_remote_cmd): Pass NULL to all of above.
8484
8485 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8486
8487 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8488 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8489 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8490 POP_FRAME): Remove defines.
8491 (i386_push_arguments, i386_store_struct_return,
8492 i386_extract_return_value, i386_store_return_value,
8493 i386_extract_struct_value_address, i386_push_dummy_frame,
8494 i386_pop_frame): Renove prototypes.
8495 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8496 macros mentioned above.
8497
8498 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8499
8500 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8501 add_set_boolean_cmd.
8502 (add_setshow_cmd): New function.
8503 * command.h (add_setshow_boolean_cmd): Replace
8504 add_set_boolean_cmd.
8505 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8506 and ``set rdiromatzero''.
8507 * maint.c (_initialize_maint_cmds): Update commented out code.
8508 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8509 * target.c (initialize_targets): Update `set
8510 trust-readonly-sections'.
8511 * remote.c (_initialize_remote): Update `set remotebreak'.
8512
8513 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8514
8515 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8516 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8517 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8518 fit into multi-arch framework.
8519 (i386_breakpoint_from_pc): New function.
8520 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8521 above.
8522
8523 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8524 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8525 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8526 (i386_frameless_function_invocation, i386_frame_num_args,
8527 i386_frame_init_saved_regs): Remove prototypes.
8528 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8529 macros mentioned above.
8530
8531 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8532
8533 * cli/cli-decode.c (set_cmd_cfunc): Update.
8534 (set_cmd_sfunc): Update.
8535 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8536 (set_cmd_sfunc, set_cmd_cfunc): Update.
8537 * cli/cli-decode.h: Update.
8538
8539 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8540
8541 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8542 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8543
8544 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8545
8546 * defs.h (auto_boolean): Declare enum.
8547 * command.h (cmd_auto_boolean): Delete enum.
8548 * mips-tdep.c (mask_address_var): Update.
8549 (mips_mask_address_p): Update.
8550 (show_mask_address): Update.
8551 * remote.c (struct packet_config): Update.
8552 (update_packet_config): Update.
8553 (show_packet_config_cmd): Update.
8554 (packet_ok): Update.
8555 (add_packet_config_cmd): Update.
8556 (_initialize_remote):
8557 * command.h: Update.
8558 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8559 (do_setshow_command): Update.
8560 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8561 * cli/cli-decode.h: Update.
8562
8563 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8564
8565 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8566 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8567 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8568 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8569 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8570 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8571
8572 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8573 list of DJGPP COFF targets.
8574
8575 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8576 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8577 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8578 (FP0_REGNUM): Remove define.
8579 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8580 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8581 (i386_register_virtual_size): Remove protoype.
8582 * i386-tdep.c (i386_register_virtual_size): Removed.
8583 (i386_extract_return_value, i386_store_return_value): Use
8584 FP0_REGNUM instead of NUM_FREGS to determine whether the
8585 floating-point registers are available.
8586 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8587 Adjust for removal of macros mentioned above.
8588
8589 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8590
8591 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8592 comments.
8593 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8594 Remove prototypes.
8595 (supply_gregset, fill_gregset): Remove use of register keyword and
8596 remove declaration for regmap. Use I386_NUM_GREGS instead of
8597 NUM_REGS and NUM_FREGS.
8598 (FPREGSET_FSAVE_OFFSET): Remove.
8599 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8600 NUM_FREGS to determine whether the floating-point registers are
8601 available.
8602
8603 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8604 gnu_store_registers): Replace usage of NUM_GREGS with
8605 I386_NUM_GREGS.
8606
8607 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8608 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8609 usage of NUM_GREGS with I386_NUM_GREGS.
8610
8611 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8612
8613 * i386bsd-nat.c: Include "i386-tdep.h".
8614 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8615 I386_NUM_GREGS.
8616
8617 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8618 and associated comment. They no longer make any sense, since we
8619 don't use this file anymore on Linux.
8620
8621 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8622 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8623 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8624 elements in these arrays.
8625 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8626 MAX_NUM_REGS.
8627
8628 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8629
8630 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8631 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8632
8633 2002-06-14 Andrew Cagney <cagney@redhat.com>
8634
8635 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8636 EXTRACT_RETURN_VALUE.
8637 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8638 EXTRACT_STRUCT_VALUE_ADDRESS.
8639 * gdbarch.h, gdbarch.c: Regenerate.
8640
8641 * values.c (value_being_returned): Handle
8642 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8643 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8644
8645 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8646 * arm-tdep.c (arm_gdbarch_init): Update.
8647 * avr-tdep.c (avr_gdbarch_init): Update.
8648 * cris-tdep.c (cris_gdbarch_init): Update.
8649 * d10v-tdep.c (d10v_gdbarch_init): Update.
8650 * ia64-tdep.c (ia64_gdbarch_init): Update.
8651 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8652 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8653 * s390-tdep.c (s390_gdbarch_init): Update.
8654 * sh-tdep.c (sh_gdbarch_init): Update.
8655 * s390-tdep.c (s390_gdbarch_init): Update.
8656 * sparc-tdep.c (sparc_gdbarch_init): Update.
8657 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8658 * v850-tdep.c (v850_gdbarch_init): Update.
8659 * vax-tdep.c (vax_gdbarch_init): Update.
8660 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8661 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8662
8663 * config/arc/tm-arc.h: Update.
8664 * config/d30v/tm-d30v.h: Update.
8665 * config/fr30/tm-fr30.h: Update.
8666 * config/h8300/tm-h8300.h: Update.
8667 * config/h8500/tm-h8500.h: Update.
8668 * config/i386/tm-i386.h: Update.
8669 * config/i386/tm-ptx.h: Update.
8670 * config/i386/tm-symmetry.h: Update.
8671 * config/i960/tm-i960.h: Update.
8672 * config/m32r/tm-m32r.h: Update.
8673 * config/m68k/tm-delta68.h: Update.
8674 * config/m68k/tm-linux.h: Update.
8675 * config/m68k/tm-m68k.h: Update.
8676 * config/m88k/tm-m88k.h: Update.
8677 * config/mcore/tm-mcore.h: Update.
8678 * config/mips/tm-mips.h: Update.
8679 * config/mn10200/tm-mn10200.h: Update.
8680 * config/pa/tm-hppa.h: Update.
8681 * config/pa/tm-hppa64.h: Update.
8682 * config/sparc/tm-sp64.h: Update.
8683 * config/sparc/tm-sparc.h: Update.
8684 * config/sparc/tm-sparclet.h: Update.
8685 * config/z8k/tm-z8k.h: Update.
8686
8687 2002-06-14 Andrew Cagney <cagney@redhat.com>
8688
8689 * Makefile.in (i386_linux_tdep_h): Define.
8690 (i386_tdep_h, i387_tdep_h): Define.
8691 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8692 $(i386_tdep_h) and $(i387_tdep_h).
8693 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8694
8695 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8696
8697 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8698 Already covered by the default.
8699
8700 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8701 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8702 (i386_gdbarch_init): Initialize long_double_format and long_double
8703 bit.
8704
8705 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8706 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8707 Move these to ...
8708 * config/i386/i386sol2.mh: ... here.
8709 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8710 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8711 (SIGCONTEXT_PC_OFFSET): Remove define.
8712 (IN_SIGTRAMP): Remove define.
8713 * i386-sol2-tdep.c: New file.
8714
8715 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8716 * config/i386/tm-i386nw.h: Removed.
8717
8718 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8719 USE_STRUCT_CONVENTION): Remove defines.
8720 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8721 (get_longjmp_target): Remove prototype.
8722 (IN_SIGTRAMP): Remove define.
8723 (i386bsd_in_sigtramp): Remove prototype.
8724 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8725 function. Update comment accordingly
8726 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8727 (FRAME_SAVED_PC): Remove define.
8728 (i386bsd_frame_saved_pc): Remove prototype.
8729 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8730 GET_LONGJMP_TARGET): Remove defines.
8731 (get_longjmp_target): Remove prototype.
8732 (IN_SIGTRAMP): Remove define.
8733 (i386bsd_in_sigtramp): Remove prototype.
8734 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8735 function. Update comment accordingly
8736 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8737 (FRAME_SAVED_PC): Remove define.
8738 (i386bsd_frame_saved_pc): Remove prototype.
8739 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8740 Remove prototype.
8741 (USE_STRUCT_CONVENTION): Remove prototype.
8742 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8743 declaration.
8744 (_initialize_i386bsd_nat): Revise logic to determine some
8745 constants at compile time when compiling a native GDB. Warn if
8746 things don't match up with what we expect.
8747 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8748 Remove variables.
8749 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8750 to use date stored in `struct gdbarch_tdep'.
8751 (i386bsd_sigcontext_offset): Remove varaible.
8752 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8753 stored in `struct gdbarch_tdep'.
8754 (i386bsd_frame_saved_pc): Make static.
8755 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8756 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8757 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8758 i386fbsd4_sc_pc_offset): New variables.
8759 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8760 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8761 functions.
8762 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8763 functions.
8764 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8765 Modify the value of i386fbsd_sigtramp_start and
8766 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8767 i386fbsd_sigtramp_end.
8768 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8769 function.
8770
8771 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8772 define to i386-linux-tdep.h.
8773 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8774 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8775 defines.
8776 (i386_linux_register_name, i386_linux_register_byte,
8777 i386_linux_register_raw_size): Remove prototypes.
8778 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8779 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8780 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8781 TARGET_WRITE_PC): Remove defines.
8782 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8783 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8784 i386_linux_write_pc): Remove prototypes.
8785 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8786 (get_longjmp_target): Remove prototype.
8787 * i386-linux-tdep.h: New file.
8788 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8789 * i386-linux-tdep.c: Include "i386-tdep.h" and
8790 "i386-linux-tdep.h".
8791 (i386_linux_register_name, i386_linux_register_byte,
8792 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8793 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8794 Make static.
8795 (i386_linux_init_abi): New function.
8796 (_initialize_i386_linux_tdep): New function.
8797
8798 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8799 (i386_saved_pc_after_call): Remove prototype.
8800 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8801 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8802 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8803 (i386_register_name, i386_stab_reg_to_regnum,
8804 i386_dwarf_reg_to_regnum): Remove prototypes.
8805 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8806 SIZEOF_SSE_REGS): Remove defines.
8807 (REGISTER_BYTES): Remove define.
8808 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8809 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8810 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8811 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8812 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8813 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8814 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8815 (get_longjmp_target): Remove prototype.
8816 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8817 (sigtramp_saved_pc): Remove define.
8818 (i386v4_sigtramp_saved_pc): Remove prototype.
8819 * config/i386/tm-go32.h (FRAME_CHAIN,
8820 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8821 (i386go32_frame_saved_pc): Remove prototype.
8822 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8823 (get_longjmp_target): Remove prototype.
8824 * i386-tdep.h: Include "osabi.h".
8825 (enum i386_abi): Removed.
8826 (enum struct_return): New enum.
8827 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8828 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8829 sc_pc_offset members.
8830 (i386_gdbarch_register_os_abi): Remove prototype.
8831 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8832 I386_SSE_NUM_REGS): New defines.
8833 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8834 I386_SSE_SIZEOF_REGS): New defines.
8835 (i386_register_name, i386_register_byte, i386_register_raw_size):
8836 New prototypes.
8837 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8838 (i386bsd_sigtramp_saved_pc): New prototype.
8839 * i386-tdep.c: Don't include "elf-bfd.h".
8840 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8841 i386_frame_chain, i386_saved_pc_after_call): Make static.
8842 (i386_frame_saved_pc): Rewrite to call architecture dependent
8843 function to deal with signal handlers. Make static.
8844 (i386go32_frame_saved_pc): Removed.
8845 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8846 Removed.
8847 (i386_get_longjmp_target): New function.
8848 (default_struct_convention, pcc_struct_convention,
8849 reg_struct_convention, valid_conventions, struct_convention): New
8850 variables.
8851 (i386_use_struct_convention): New function.
8852 (i386v4_sigtramp_saved_pc): Renamed to
8853 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8854 (i386_pc_in_sigtramp): New function.
8855 (i386_abi_names): Removed.
8856 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8857 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8858 Removed.
8859 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8860 i386_gdbarch_register_os_abi): Removed.
8861 (struct i386_abi_handler): Removed.
8862 (i386_abi_handler_list): Removed.
8863 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8864 functions.
8865 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8866 i386_nw_init_abi): New functions.
8867 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8868 Use set_gdbarch_xxx() calls instead of relying on macros for a
8869 number of calls.
8870 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8871 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8872 Register the various architecture variants defined in this file.
8873
8874 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8875
8876 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8877 (struct main_type): Remove arg_types member. Update comments for
8878 struct field.
8879 (TYPE_ARG_TYPES): Remove.
8880 (TYPE_FN_FIELD_ARGS): Update.
8881 (smash_to_method_type): Update prototype.
8882
8883 * c-typeprint.c (cp_type_print_method_args): Take method type
8884 instead of argument list. Use new argument layout. Simplify.
8885 (c_type_print_args): Use new argument layout. Simplify.
8886 (c_type_print_base): Update call to cp_type_print_method_args.
8887 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8888 argument; use die->type instead. Update call to
8889 smash_to_method_type.
8890 (read_structure_scope): Update call to dwarf2_add_member_fn.
8891 * gdbtypes.c (allocate_stub_method): Update comment.
8892 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8893 Use new argument layout.
8894 (check_stub_method): Use new argument layout. Don't count
8895 void as an argument.
8896 (print_arg_types): Update comments. Use new argument layout.
8897 (recursive_dump_type): Don't print arg_types member.
8898 * hpread.c (hpread_read_struct_type): Use new argument layout.
8899 (fixup_class_method_type): Likewise.
8900 (hpread_type_lookup): Likewise.
8901 * stabsread.c (read_type): Update calls to read_args and
8902 smash_to_method_type.
8903 (read_args): Use new argument layout. Simplify.
8904 * valops.c (typecmp): Use new argument layout. Update parameters
8905 and comments. Simplify.
8906 (hand_function_call): Use new argument layout.
8907 (search_struct_method): Update call to typecmp.
8908 (find_overload_match): Use new argument layout.
8909
8910 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8911
8912 * NEWS: Mention multithreaded debug support for gdbserver.
8913
8914 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8915
8916 * MAINTAINERS: Mention NEWS.
8917
8918 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8919
8920 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8921 (struct mips_objfile_private, compare_pdr_entries): New.
8922 (non_heuristic_proc_desc): Read the ".pdr" section if it
8923 is present.
8924
8925 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8926
8927 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8928 (arm_debug): New static variable.
8929 (_initialize_arm_tdep): Add ``set debug arm'' command.
8930
8931 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8932
8933 * Makefile.in (sim_arm_h): Define.
8934 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8935 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8936 (arm_register_sim_regno): New function, map an internal REGNUM
8937 onto a simulator register number.
8938 (arm_gdbarch_init): Set register_sim_regno.
8939
8940 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8941
8942 * MAINTAINERS: Add self.
8943
8944 2002-06-11 Jim Blandy <jimb@redhat.com>
8945
8946 * source.c (source_info): Mention whether the symtab has
8947 information about preprocessor macros.
8948
8949 Call the command `info macro', not `show macro'.
8950 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8951 Fix error message.
8952 (_initialize_macrocmd): Register `info_macro_command' in
8953 `infolist', not `showlist'.
8954
8955 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8956
8957 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8958 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8959 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8960 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8961 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8962 unconditionally.
8963 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8964 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8965 (_initialize_mips_tdep): Remove dead code.
8966 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8967 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8968 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8969 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8970 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8971 MIPS_LAST_FP_ARG_REGNUM): Remove.
8972
8973 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8974
8975 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8976 (unwind_tmp_obstack_free, parse_frame_info)
8977 (update_context, cfi_read_fp, cfi_write_fp)
8978 (cfi_frame_chain, cfi_init_extra_frame_info)
8979 (cfi_virtual_frame_pointer): Use the above function.
8980 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8981
8982 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8983
8984 * v850-tdep.c (v850_type_is_scalar): New function.
8985 (v850_use_struct_convention): Match current gcc implementation
8986 as close as possible.
8987 (v850_push_arguments): Fix stack_offset handling. Don't write
8988 struct_addr into register. This is done by v850_store_struct_return.
8989 (v850_extract_return_value): Care for structs.
8990 (v850_store_return_value): Ditto.
8991 (v850_store_struct_return): Actually write address.
8992
8993 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8994
8995 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8996 without debug information too.
8997
8998 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8999
9000 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9001 Make multi-arch pure.
9002 * gdbarch.h, gdbarch.c: Re-generate.
9003 * arm-tdep.c (arm_print_float_info): Update.
9004 * arch-utils.h (default_print_float_info): Update.
9005 * arch-utils.c (default_print_float_info): Update.
9006 * infcmd.c (float_info): Update call.
9007
9008 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9009
9010 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9011 the front of the initialize list.
9012
9013 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9014
9015 * infrun.c (struct inferior_status): Replace fields
9016 selected_frame_address and selected_level with field
9017 selected_frame_id.
9018 (save_inferior_status): Update. Use get_frame_id.
9019 (struct restore_selected_frame_args): Delete.
9020 (restore_selected_frame): Update. Use frame_find_by_id.
9021 (restore_inferior_status): Update.
9022
9023 * breakpoint.h (struct breakpoint): Change type of
9024 watchpoint_frame to frame_id.
9025 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9026 call to get_current_frame.
9027 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9028 get_current_frame.
9029 (watchpoint_check): Use frame_find_by_id.
9030
9031 * frame.h (record_selected_frame): Delete declaration.
9032 * stack.c (record_selected_frame): Delete function.
9033
9034 * frame.h (struct frame_id): Define.
9035 (get_frame_id): Declare.
9036 (frame_find_by_id): Declare.
9037 * frame.c (frame_find_by_id): New function.
9038 (get_frame_id): New function.
9039
9040 2002-06-10 Andrey Volkov <avolkov@transas.com>
9041
9042 * ser-e7kpc.c: Fix duplicated define and call of
9043 _initialize_ser_e7000pc
9044
9045 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9046
9047 * signals/signals.c (target_signal_from_host): Fix #ifdef
9048 SIGRTMIN case.
9049 (do_target_signal_to_host): Likewise.
9050
9051 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9052
9053 * mips-tdep.c (mips_find_abi_section): New function.
9054 (mips_gdbarch_init): Call it.
9055
9056 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9057
9058 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9059 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9060 after Andrew's 2002-06-08 gdbarch change.
9061
9062 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9063
9064 * i386-linux-nat.c (suppy_gregset): Don't supply
9065 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9066 register cache.
9067 (fill_gregset): Don't fetch it under the same circumstances.
9068
9069 2002-06-09 Andrew Cagney <cagney@redhat.com>
9070
9071 * Makefile.in (callback_h): Define.
9072 (remote_sim_h): Update path to remote-sim.h.
9073 (remote-rdp.o): Add $(callback_h).
9074 (remote-sim.o): Use $(callback_h).
9075 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9076 * remote-rdp.c: Include "gdb/callback.h".
9077
9078 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9079
9080 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9081 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9082
9083 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9084
9085 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9086 * rdi-share/serpardr.c: Ditto.
9087 * rdi-share/unixcomm.c: Ditto.
9088 * rdi-share/serdrv.c: Ditto.
9089 * rdi-share/hostchan.h: Ditto.
9090 * rdi-share/hostchan.c: Ditto.
9091 * rdi-share/host.h: Ditto.
9092 * rdi-share/devsw.c: Ditto.
9093
9094 * objfiles.h: Change type of obj_private to void pointer.
9095 * pa64solib.c: Update copyright. Don't include "assert.h", use
9096 strcmp instead of STREQ, use LONGEST, do not use PTR
9097 * somsolib.c: Ditto.
9098
9099 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9100 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9101 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9102
9103 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9104
9105 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9106 (default_get_saved_register): Delete function.
9107 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9108 generic_unwind_get_saved_register.
9109 * gdbarch.h, gdbarch.c: Re-generate.
9110
9111 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9112
9113 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9114 generic_func_frame_chain_valid.
9115 * gdbarch.h, gdbarch.c: Re-generate.
9116 * blockframe.c (generic_func_frame_chain_valid): Only check
9117 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9118 passing FP to PC_IN_CALL_DUMMY.
9119 Fix PR gdb/360.
9120
9121 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9122
9123 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9124 (register_gdbarch_data): Initialize init_p.
9125 (gdbarch_data): Initialize data pointer using the init function.
9126 (init_gdbarch_data): Delete function.
9127 (gdbarch_update_p): Update.
9128 (initialize_non_multiarch): Update.
9129 (struct gdbarch): Add field initialized_p.
9130 * gdbarch.h, gdbarch.c: Re-generate.
9131
9132 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9133
9134 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9135 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9136 better do the things actually here.
9137 * x86-64-tdep.c (x86_64_register_name2nr): New.
9138 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9139 (x86_64_gdbarch_init): Respect the above change.
9140 * x86-64-tdep.h (x86_64_register_name2nr)
9141 (x86_64_register_nr2name): Add prototypes.
9142 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9143
9144 2002-06-06 Michael Snyder <msnyder@redhat.com>
9145
9146 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9147 Delete extra braces and re-indent.
9148 (d10v_store_return_value): Char return values
9149 must be shifted over by one byte in R0.
9150 (d10v_extract_return_value): Delete extra braces, re-indent.
9151
9152 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9153
9154 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9155 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9156 (d10v_integer_to_address): Rewrite.
9157 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9158 the d10v specific functions which take care of converting to the
9159 correct space.
9160
9161 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9162
9163 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9164 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9165
9166 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9167
9168 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9169 includes.
9170 * config/tm-linux.h: Ditto.
9171 * config/alpha/tm-alphalinux.h: Ditto.
9172 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9173 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9174 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9175 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9176 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9177 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9178 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9179 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9180 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9181 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9182 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9183 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9184 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9185 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9186 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9187 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9188 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9189 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9190 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9191 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9192 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9193 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9194 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9195 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9196 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9197 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9198 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9199 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9200 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9201 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9202 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9203 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9204 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9205 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9206 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9207 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9208 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9209
9210 2002-05-04 Aidan Skinner <aidan@velvet.net>
9211
9212 * ada-exp.tab.c: New file
9213 * ada-exp.y: New file
9214 * ada-lang.c: New file
9215 * ada-lang.h: New file
9216 * ada-lex.c: New file
9217 * ada-lex.l: New file
9218 * ada-tasks.c: New file
9219 * ada-typeprint.c: New file
9220 * ada-valprint.c: New file
9221
9222 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9223
9224 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9225 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9226
9227 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9228
9229 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9230 insetead of ppc-linux-tdep.o.
9231 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9232 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9233
9234 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9235
9236 2002-05-07 Christian Groessler <chris@groessler.org>
9237 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9238 bit register contents for little endian hosts.
9239
9240 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9241
9242 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9243 any maintainer.
9244
9245 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9246
9247 * gdbarch.h: Regenerate.
9248
9249 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9250
9251 * MAINTAINERS: Add everyone to write-after-approval list.
9252
9253 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9254
9255 * stack.c (frame_info): Use frame_register_unwind instead of
9256 saved_regs. Mention when the SP is on the stack or in a register.
9257
9258 * frame.h (frame_register_unwind_ftype): Define. Document.
9259 (struct frame_info): Add field register_unwind and
9260 register_unwind_cache.
9261 (frame_register_unwind): Declare.
9262 (generic_unwind_get_saved_register): Declare.
9263
9264 * frame.c (frame_register_unwind): New function.
9265 (generic_unwind_get_saved_register): New function.
9266
9267 * blockframe.c (generic_call_dummy_register_unwind): New function.
9268 (frame_saved_regs_register_unwind): New function.
9269 (set_unwind_by_pc): New function.
9270 (create_new_frame): New function.
9271 (get_prev_frame): New function.
9272
9273 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9274
9275 * a29k-share/: Delete directory.
9276 * remote-vx29k.c: Delete file.
9277
9278 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9279
9280 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9281 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9282
9283 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9284
9285 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9286 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9287 (sparc64nbsd-nat.o)
9288 (sparcnbsd-nat.o)
9289 (sparcnbsd-tdep.o): New dependency lists.
9290 * NEWS: Note new UltraSPARC NetBSD native configuration.
9291 * configure.host (sparc64-*-netbsd*): New host.
9292 * configure.tgt (sparc-*-netbsdelf*)
9293 (sparc-*-netbsd*): Set gdb_target to nbsd.
9294 (sparc64-*-netbsd*): New target.
9295 * sparc64nbsd-nat.c: New file.
9296 * sparcnbsd-nat.c: New file.
9297 * sparcnbsd-tdep.c: New file.
9298 * sparcnbsd-tdep.h: New file.
9299 * config/sparc/nbsd.mt: New file.
9300 * config/sparc/nbsd64.mh: New file.
9301 * config/sparc/nbsd64.mt: New file.
9302 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9303 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9304 (HOST_IPC): Remove.
9305 * config/sparc/nbsdaout.mt: Remove.
9306 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9307 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9308 (HOST_IPC): Remove.
9309 * config/sparc/nbsdelf.mt: Remove.
9310 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9311 sparc-nat.c compatiblity defines.
9312 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9313 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9314 * config/sparc/tm-nbsd64.h: New file.
9315 * config/sparc/tm-nbsdaout.h: Remove.
9316 * config/sparc/xm-nbsd.h: Remove.
9317
9318 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9319
9320 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9321 * sparc-tdep.c: Include osabi.h.
9322 (gdbarch_tdep): Add osabi member.
9323 (_initialize_sparc_tdep): Use gdbarch_register.
9324 (sparc_gdbarch_init): Use generic OS ABI framework.
9325 (sparc_dump_tdep): New function.
9326
9327 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9328
9329 * corefile.c (do_captured_read_memory_integer): Return non-zero
9330 result.
9331 (safe_read_memory_integer): Copy result of memory read when
9332 status is non-zero. Also, add comments.
9333
9334 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9335
9336 * Makefile.in (ppc_tdep_h): Define.
9337 (ppc-linux-nat.o)
9338 (ppc-linux-tdep.o)
9339 (rs6000-tdep.o): Use $(ppc_tdep_h).
9340 (ppc-sysv-tdep.o)
9341 (ppcnbsd-nat.o)
9342 (ppcnbsd-tdep.o): New dependency lists.
9343 * ppc-tdep.h: Use generic OS ABI framework.
9344 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9345 (ppc_linux_init_abi): New functions.
9346 (ppc_sysv_abi_broken_use_struct_convention)
9347 (ppc_sysv_abi_use_struct_convention)
9348 (ppc_sysv_abi_push_arguments): Move to...
9349 * ppc-sysv-tdep.c: ...here.
9350 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9351 * rs6000-tdep.c (process_note_abi_tag_sections)
9352 (get_elfosabi): Remove.
9353 (rs6000_gdbarch_init): Use generic OS ABI framework.
9354 (rs6000_dump_tdep): New function.
9355 (_initialize_rs6000_tdep): Use gdbarch_register.
9356 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9357 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9358 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9359 of ppc-linux-tdep.o.
9360 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9361 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9362 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9363 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9364 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9365 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9366
9367 2002-05-29 Jim Blandy <jimb@redhat.com>
9368
9369 * macroscope.c (default_macro_scope): Put `void' in empty argument
9370 list.
9371
9372 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9373
9374 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9375 * arch-utils.c: Include "sim-regno.h".
9376 * gdbarch.sh: Don't include "sim-regno.h".
9377 * gdbarch.h, gdbarch.c: Regenerate.
9378 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9379 here.
9380 * arch-utils.h (legacy_register_sim_regno): To here.
9381 * remote-sim.c (legacy_register_sim_regno): Move function from
9382 here.
9383 * arch-utils.c (legacy_register_sim_regno): To here.
9384
9385 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9386
9387 * sim-regno.h: New file.
9388 * Makefile.in (sim_regno_h): Define.
9389 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9390 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9391 (legacy_register_sim_regno): New function.
9392 (one2one_register_sim_regno): New function.
9393 (gdbsim_fetch_register): Rewrite.
9394 (gdbsim_store_register): Only store a register when
9395 REGISTER_SIM_REGNO is valid.
9396 * d10v-tdep.c: Include "sim-regno.h".
9397 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9398 (d10v_ts3_register_sim_regno): Ditto.
9399 * gdbarch.sh: Include "sim-regno.h".
9400 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9401 * gdbarch.h, gdbarch.c: Regenerate.
9402 * arch-utils.h (default_register_sim_regno): Delete declaration.
9403 * arch-utils.c (default_register_sim_regno): Delete function.
9404
9405 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9406
9407 * ppcnbsd-nat.c: Rewrite.
9408 * ppcnbsd-tdep.c: New file.
9409 * ppcnbsd-tdep.h: New file.
9410 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9411 solib.o, and solib-svr4.o.
9412 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9413 nbsd-tdep.o, and corelow.o.
9414
9415 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9416
9417 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9418 `tr' and `sed'. Mention that `broken' targets are not expected to
9419 build.
9420
9421 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9422
9423 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9424 Let PC point right after the prologue before looking up symbols.
9425
9426 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9427
9428 * i386-tdep.c (i386_register_virtual_type): Return
9429 builtin_type_vec128i for SSE registers.
9430
9431 * gdbtypes.h (builtin_type_vec128i): Declare.
9432
9433 * gdbtypes.c (build_builtin_type_vec128i): New function.
9434 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9435 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9436 (build_gdbtypes): Initialize new builtin vector types.
9437 (_initialize_gdbtypes): Register new vector types with gdbarch.
9438
9439 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9440
9441 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9442 since it has been multi-arch'd.
9443 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9444 Move Alpha and VAX multi-arch news entries to same section
9445 as other multi-arch news.
9446
9447 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9448
9449 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9450 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9451 static. Rename some register numbers to put them in ns32k-tdep
9452 private namespace.
9453 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9454 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9455 functions.
9456 (_initialize_ns32k_tdep): Use gdbarch_register.
9457 * ns32k-tdep.h: New file.
9458 * ns32knbsd-tdep.c: New file.
9459 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9460 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9461 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9462 REGISTER_BYTES, REGISTER_BYTE): Remove.
9463 * config/ns32k/tm-ns32k.h: New file.
9464 * config/ns32k/tm-umax.h: Remove.
9465
9466 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9467
9468 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9469 ns32k_store_struct_return, ns32k_extract_return_value,
9470 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9471 functions.
9472 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9473 ns32k_saved_pc_after_call.
9474 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9475 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9476 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9477 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9478 ns32k_extract_struct_value_address.
9479
9480 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9483 ns32k_fix_call_dummy): New.
9484 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9485 ns32k_call_dummy_words.
9486 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9487 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9488 CALL_DUMMY_NARGS): Remove.
9489 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9490
9491 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9492
9493 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9494 ns32k_frame_saved_pc, ns32k_frame_args_address,
9495 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9496 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9497 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9498 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9499 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9500 (BREAKPOINT): Remove..
9501 (FRAME_CHAIN): Define as ns32k_frame_chain.
9502 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9503 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9504 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9505 (FRAME_FIND_SAVED_REGS): Remove.
9506 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9507 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9508 (POP_FRAME): Define as ns32k_pop_frame.
9509
9510 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9511
9512 * ns32k-tdep.c (ns32k_register_byte_32082,
9513 ns32k_register_byte_32382, ns32k_register_raw_size,
9514 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9515 functions.
9516 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9517 ns32k_register_byte_32382.
9518 * config/ns32k/tm-umax.h: Update copyright years.
9519 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9520 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9521 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9522 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9523 (ns32k_get_enter_addr): Fix prototype.
9524
9525 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9526
9527 * ns32k-tdep.c: Update copyright years.
9528 (ns32k_register_name_32082): New function.
9529 (ns32k_register_name_32382): Ditto.
9530 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9531 (REGISTER_NAME): Define as ns32k_register_name_32382.
9532 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9533 (REGISTER_NAME): Define as ns32k_register_name_32082.
9534
9535 2002-05-24 Jim Blandy <jimb@redhat.com>
9536
9537 * dwarf2read.c (free_line_header): Use xfree, not free.
9538
9539 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9540
9541 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9542 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9543
9544 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9545
9546 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9547
9548 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9549
9550 From Ross Alexander at NEC Europe:
9551 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9552
9553 2002-05-23 Michael Snyder <msnyder@redhat.com>
9554
9555 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9556 for input, rather than parse_and_eval_address.
9557
9558 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9559
9560 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9561 * Makefile.in (sim_d10v_h): Update definition.
9562
9563 2002-05-24 Andrew Cagney <cagney@redhat.com>
9564
9565 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9566 change `2002-05-22 Michael Snyder' below.
9567 (d10v_push_arguments): Ditto.
9568 (d10v_extract_return_value): Ditto.
9569
9570 2002-05-23 Jim Blandy <jimb@redhat.com>
9571
9572 * macrotab.c (check_for_redefinition): Don't complain if the new
9573 definition is the same as the previous one. Take more arguments
9574 to allow the comparison.
9575 (macro_define_object, macro_define_function): Pass more arguments
9576 to check_for_redefinition.
9577
9578 2002-05-22 Michael Snyder <msnyder@redhat.com>
9579
9580 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9581 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9582 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9583 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9584 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9585 Add a temp variable to save a call (and a memory read).
9586 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9587 if possible (so that PC_IN_CALL_DUMMY will work).
9588
9589 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9590
9591 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9592
9593 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9594
9595 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9596 fde->cie_ptr.
9597 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9598 (dwarf2_build_frame_info): Add offset to fde->initial_location
9599 so that frames of shared libraries are mapped correctly.
9600 (execute_stack_op): Change type of 'result' from ULONGEST to
9601 CORE_ADDR.
9602
9603 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9604
9605 * config/alpha/tm-nbsd.h: Include solib.h.
9606
9607 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9608
9609 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9610 assumptions about the host's byte order.
9611
9612 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9613
9614 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9615 to dependency list.
9616 * alphanbsd-tdep.c: Include solib-svr4.h.
9617 * shnbsd-tdep.c: Ditto.
9618
9619 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9620
9621 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9622 nbsd-tdep.h to dependency list.
9623 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9624 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9625 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9626 nbsdaout.mh and nbsdelf.mh consistently.
9627 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9628 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9629 nbsdaout.mt and nbsdelf.mh consistently.
9630 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9631 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9632 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9633 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9634 a.out shared library stuff from here...
9635 * config/nm-nbsdaout.h: ...to here.
9636 * config/tm-nbsd.h: Remove.
9637 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9638 * config/arm/nbsd.mh: Remove.
9639 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9640 nbsd-tdep.o.
9641 * config/arm/nbsdaout.mh: New file.
9642 * config/arm/nbsdelf.mh: New file.
9643 * config/arm/nm-nbsdaout.h: New file.
9644 * config/i386/nbsd.mh: Remove.
9645 * config/i386/nbsd.mt: Remove.
9646 * config/i386/nbsdaout.mh: New file.
9647 * config/i386/nbsdaout.mt: New file.
9648 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9649 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9650 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9651 i386_register_u_addr): Remove.
9652 * config/i386/nm-nbsdaout.h: New file.
9653 * config/i386/nm-nbsdelf.h: Remove.
9654 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9655 (USE_STRUCT_CONVENTION): Remove.
9656 * config/i386/tm-nbsdaout.h: New file.
9657 * config/i386/tm-nbsdelf.h: Remove.
9658 * config/m68k/nbsd.mh: Remove.
9659 * config/m68k/nbsd.mt: Remove.
9660 * config/m68k/nbsdaout.mh: New file.
9661 * config/m68k/nbsdaout.mt: New file.
9662 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9663 * config/m68k/nm-nbsdaout.h: New file.
9664 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9665 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9666 * config/ns32k/nbsd.mh: Remove.
9667 * config/ns32k/nbsd.mt: Remove.
9668 * config/ns32k/nbsdaout.mh: New file.
9669 * config/ns32k/nbsdaout.mt: New file.
9670 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9671 * config/ns32k/nm-nbsdaout.h: New file.
9672 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9673 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9674 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9675 (SVR4_SHARED_LIBS): Remove.
9676 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9677 * config/sparc/nbsd.mh: Remove.
9678 * config/sparc/nbsd.mt: Remove.
9679 * config/sparc/nbsdaout.mh: New file.
9680 * config/sparc/nbsdaout.mt: New file.
9681 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9682 * config/sparc/nbsdelf.mt: New file.
9683 * config/sparc/nm-nbsdaout.h: New file.
9684 * config/sparc/nm-nbsdelf.h: Remove.
9685 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9686 * config/sparc/tm-nbsdaout.h: New file.
9687
9688 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9689
9690 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9691 mipsnbsd-tdep.c
9692 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9693
9694 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9695
9696 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9697 shnbsd-nat.c.
9698 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9699
9700 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9701
9702 * NEWS: Note new MIPS NetBSD native configuration.
9703 * configure.host (mips*-*-netbsd*): New host.
9704 * configure.tgt (mips*-*-netbsd*): New target.
9705 * mipsnbsd-nat.c: New file.
9706 * mipsnbsd-tdep.c: New file.
9707 * mipsnbsd-tdep.h: New file.
9708 * config/mips/nbsd.mh: New file.
9709 * config/mips/nbsd.mt: New file.
9710 * config/mips/nm-nbsd.h: New file.
9711 * config/mips/tm-nbsd.h: New file.
9712
9713 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9714
9715 * Makefile.in (SFILES): Add osabi.c.
9716 (COMMON_OBS): Add osabi.o.
9717 (osabi.o): New dependency list.
9718 * osabi.c: New file.
9719 * osabi.h: New file.
9720 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9721
9722 * Makefile.in (alpha_tdep_h): Define and use instead of
9723 alpha-tdep.h.
9724 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9725 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9726 Remove.
9727 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9728 * alpha-tdep.h: Include osabi.h.
9729 (alpha_abi): Remove.
9730 (gdbarch_tdep): Use generic OS ABI framework.
9731 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9732 gdbarch_register_osabi.
9733 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9734 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9735 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9736
9737 * Makefile.in (sh_tdep_h): Add osabi.h.
9738 * sh-tdep.h (sh_osabi): Remove.
9739 (gdbarch_tdep): Use generic OS ABI framework.
9740 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9741 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9742 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9743 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9744
9745 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9746 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9747 gdbarch_register_osabi.
9748 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9749 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9750 (get_elfosabi): Rename to...
9751 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9752 ABI framework support routines.
9753 (arm_gdbarch_init): Use generic OS ABI framework.
9754 (arm_dump_tdep): Likewise.
9755 (_initialize_arm_tdep): Likewise.
9756 * arm-tdep.h: Include osabi.h.
9757 (arm_abi): Remove.
9758 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9759 osabi member.
9760 (arm_gdbarch_register_os_abi): Remove prototype.
9761 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9762 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9763
9764 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9765 * mips-tdep.c: Include osabi.h.
9766 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9767 OS ABI framework.
9768
9769 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9770
9771 * h8300-tdep.c: Fix formatting.
9772
9773 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9774
9775 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9776 printing vector registers.
9777
9778 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9779
9780 From Fernando Nasser:
9781 * remote.c (remote_async_open_1): Re-throw the exception when the
9782 connection fails.
9783 (remote_cisco_open): Ditto.
9784 (remote_open_1): Ditto.
9785
9786 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9787
9788 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9789 (remote_start_remote): Add uiout parameter. Pass through to
9790 remote_start_remote_dummy.
9791 (remote_open_1): Use catch_exception instead of catch_errors.
9792 (remote_async_open_1): Ditto.
9793 (remote_cisco_open): Ditto.
9794
9795 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9796
9797 * remote.c (remote_start_remote): Replace PTR with void pointer.
9798 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9799 static.
9800
9801 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9802
9803 * gdb_indent.sh: Allow the script to be run in the sim directory.
9804
9805 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9806
9807 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9808 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9809
9810 * corelow.c (core_open): Only call set_gdbarch_from_file if
9811 exec_bfd is NULL.
9812
9813 2002-05-17 Andrey Volkov <avolkov@transas.com>
9814
9815 * h8300-tdep.c: Add support of EXR register
9816 * config/h8300/tm-h8300.h: Ditto.
9817
9818 2002-05-17 Andrey Volkov <avolkov@transas.com>
9819
9820 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9821
9822 2002-05-17 Andrey Volkov <avolkov@transas.com>
9823
9824 * h8300-tdep.c: Change literal regnums to REGNO.
9825
9826 2002-05-17 Jim Blandy <jimb@redhat.com>
9827
9828 * NEWS: Note addition of macro support.
9829
9830 Expand preprocessor macros in C expressions.
9831 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9832 (scan_macro_expansion, scanning_macro_expansion,
9833 finished_macro_expansion): New function declarations.
9834 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9835 variable declarations.
9836 * parser-defs.h (expression_context_pc): New declaration.
9837 * parse.c (expression_context_pc): New variable.
9838 (parse_exp_1): Set expression_context_pc, as well as
9839 expression_context_block.
9840 * c-exp.y (yylex): If we're not already reading the result of a
9841 macro expansion, try to macro-expand the next token. When we're
9842 done scanning a macro expansion, switch back to the mainline text.
9843 Commas and `if's in a macro's expansion don't terminate the input.
9844 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9845 (macro_original_text, macro_expanded_text,
9846 expression_macro_lookup_func, expression_macro_lookup_baton): New
9847 variables.
9848 (scan_macro_expansion, scanning_macro_expansion,
9849 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9850 c_preprocess_and_parse): New functions.
9851 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9852 c_preprocess_and_parse, instead of c_parse.
9853 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9854 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9855
9856 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9857
9858 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9859 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9860 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9861
9862 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9863
9864 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9865
9866 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9867
9868 * Makefile.in (sh_tdep_h): Define and use.
9869 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9870 register enum): Move to...
9871 * * sh-tdep.h: ...here.
9872 * sh-tdep.c: Include sh-tdep.h.
9873 * sh3-rom.c: Likewise.
9874 * shnbsd-tdep.c: Likewise.
9875
9876 2002-05-16 Michael Snyder <msnyder@redhat.com>
9877
9878 * arm-tdep.c: Spelling fix in comment.
9879
9880 2002-05-16 Jim Blandy <jimb@redhat.com>
9881
9882 Add commands for manually expanding macros and showing their
9883 definitions.
9884 * macrocmd.c, macroscope.c, macroscope.h: New files.
9885 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9886 (macroscope_h): New variable.
9887 (HFILES_NO_SRCDIR): Add macroscope.h.
9888 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9889 (macroscope.o, macrocmd.o): New rules.
9890
9891 Teach the Dwarf 2 reader to read macro information.
9892 * dwarf2read.c: #include "macrotab.h".
9893 (dwarf_macinfo_buffer): New variable.
9894 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9895 dwarf_macinfo_size.
9896 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9897 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9898 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9899 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9900 dwarf2_macro_spaces_in_definition): New complaints.
9901 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9902 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9903 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9904 the partial symbol table.
9905 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9906 from what's recorded in the partial symbol table.
9907 (read_file_scope): If the compilation unit has a
9908 `DW_AT_macro_info' attribute, read its macro information.
9909 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9910
9911 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9912
9913 Fix PR gdb/546
9914 * ser-tcp.c: Don't include <netinet/udp.h>.
9915
9916 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9917
9918 * MAINTAINERS: Update my email address.
9919
9920 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9921
9922 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9923 include file of the same name.
9924
9925 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9926
9927 * configure.tgt: Mark v850 as multi-arched.
9928 * config/v850/tm-v850.h: Remove file.
9929 * config/v850/v850.mt: Eliminate TM_FILE.
9930
9931 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9932
9933 * v850-tdep.c: Full multi-arch.
9934 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9935 Define GDB_MULTI_ARCH to 2.
9936
9937 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9938
9939 * p-exp.y (current_type): New static variable.
9940 Carries the type of the expression at the position that is parsed.
9941 (push_current_type, pop_current_type): Two new functions. Used
9942 to store/restore current_type in expression on specific tokens.
9943 (search_field): New static variable. Set to one after parsing a point
9944 as at that point only a FIELDNAME token should be searched.
9945 (FIELDNAME): New token. After a point only a token belonging to
9946 current_type type definition is allowed.
9947 (all over token rules): reset and change current_type according
9948 to rules.
9949 (exp '[' rule): insert implicit array index field if
9950 exp is a pascal string type.
9951
9952 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9953
9954 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9955 frame info. Use frame_info's saved_regs instead of matching member
9956 in extra_frame_info throughout.
9957 (v850_frame_init_saved_regs): New function.
9958 (v850_init_extra_frame_info): Move most functionality into
9959 v850_frame_init_saved_regs().
9960 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9961 (v850_frame_find_saved_regs): Remove declaration.
9962 (FRAME_FIND_SAVED_REGS): Remove definition.
9963 (v850_frame_init_saved_regs): Add declaration.
9964 (FRAME_INIT_SAVED_REGS): Add definition.
9965
9966 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9967
9968 * v850-tdep.c: Begin multi-arch'ing v850.
9969 (v850_target_architecture_hook): Remove function.
9970 (v850_gdbarch_init): New function. Add code previously in
9971 v850_target_architecture_hook().
9972 (_initialize_v850_tdep): Don't set target_architecture_hook.
9973 Call register_gdbarch_init() instead.
9974
9975 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9976
9977 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9978 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9979 (fixup_class_method_type): Likewise.
9980
9981 2002-05-15 Jim Blandy <jimb@redhat.com>
9982
9983 Add macro structures to GDB's symbol tables. Nobody puts anything
9984 in them yet.
9985 * symtab.h (struct symtab): New member: `macro_table'.
9986 * buildsym.h (pending_macros): New global variable.
9987 * buildsym.c: #include "macrotab.h".
9988 (buildsym_init): Initialize `pending_macros'.
9989 (end_symtab): If we found macro information while reading a CU's
9990 debugging info, do build a symtab structure for it. Make the
9991 symtab point to the macro information, and clear the
9992 `pending_macros' pointer which held it while we were reading the
9993 debug info.
9994 (really_free_pendings): Free any pending macro table.
9995 * objfiles.h (struct objfile): New member: `macro_cache'.
9996 * objfiles.c (allocate_objfile): Set allocate and free functions
9997 for the macro cache's objstack.
9998 (free_objfile): Empty the macro cache's obstack.
9999 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10000 set new allocate and free functions for it.
10001 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10002 free functions for the macro cache's objstack. (Why is this
10003 function building its own objfile?)
10004 * symmisc.c (print_objfile_statistics): Print statistics on the
10005 macro bcache.
10006 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10007
10008 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10009
10010 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10011 (REGISTER_U_ADDR): Delete definition.
10012 (arm_register_u_addr): Delete declaration.
10013
10014 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10015
10016 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10017 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10018
10019 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10020
10021 * regcache.c (register_valid): Revise comments refering to "Not
10022 available" and "unavailable".
10023 * frame.c (frame_register_read): Ditto.
10024 * findvar.c (value_of_register): Ditto.
10025
10026 2002-05-15 Andrew Cagney <cagney@redhat.com>
10027
10028 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10029 (remote-sim.o): Update dependencies.
10030 (d10v-tdep.o): Specify dependencies.
10031 (sim_d10v_h): Define.
10032
10033 2002-05-14 Jim Blandy <jimb@redhat.com>
10034
10035 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10036 * macrotab.c (macro_lookup_inclusion, find_definition,
10037 new_macro_table): Same.
10038
10039 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10040 not `! strcmp ()'. This is a dubious improvement.
10041 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10042
10043 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10044 although it's not necessary, to avoid a warning.
10045
10046 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10047
10048 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10049 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10050 TYPE_INSTANCE_FLAGS.
10051 (struct main_type): New.
10052 (struct type): Move most members to struct main_type. Change
10053 cv_type and as_type to new type_chain member. Add instance_flags.
10054 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10055 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10056 (finish_cv_type): Remove prototype.
10057 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10058 Set TYPE_CHAIN.
10059 (alloc_type_instance): New function.
10060 (smash_type): New function.
10061 (make_pointer_type, make_reference_type, make_function_type)
10062 (smash_to_member_type, smash_to_method_type): Call smash_type.
10063 (make_qualified_type): New function.
10064 (make_type_with_address_space): Call make_qualified_type.
10065 (make_cv_type): Likewise.
10066 (finish_cv_type): Remove unnecessary function.
10067 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10068 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10069 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10070 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10071 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10072 * hpread.c (hpread_read_struct_type): Likewise.
10073 * stabsread.c (read_struct_type): Likewise.
10074
10075 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10076
10077 * configure.tgt: Add a catch all sh* target, for cases like
10078 sh[2,3,4]-elf and sh-hms.
10079
10080 2002-05-14 Keith Seitz <keiths@redhat.com>
10081
10082 * event-loop.c (create_file_handler): Don't do anything but
10083 update data when we are given a fd which we are already
10084 monitoring.
10085
10086 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10087
10088 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10089 (update_context): Use __func__ in warnings.
10090
10091 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10092
10093 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10094 and tcp_close to net_open and net_close.
10095 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10096 using UDP if requested. Don't try to disable Nagle on UDP
10097 sockets.
10098 * remote.c (remote_serial_open): New function. Warn about UDP.
10099 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10100
10101 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10102
10103 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10104
10105 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10106
10107 * configure.tgt: Remove sh-hms target.
10108 * MAINTAINERS: Don't list sh-hms as a separate target.
10109
10110 2002-05-13 Jim Blandy <jimb@redhat.com>
10111
10112 Add first preprocessor macro-expansion files.
10113 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10114 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10115 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10116 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10117 (COMMON_OBS): Add macrotab.o, macroexp.o.
10118 (macroexp.o, macrotab.o): New rules.
10119
10120 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10121
10122 * config/m88k/tm-m88k.h: Update copyright.
10123 (m88k_target_write_pc): Declare
10124 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10125 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10126 (SHIFT_INST_REGS): Update definition.
10127 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10128 using old definition of TARGET_WRITE_PC.
10129 * regcache.c (generic_target_write_pc): Delete code handling
10130 NNPC_REGNUM.
10131 * gdbarch.sh (NNPC_REGNUM): Delete.
10132 * gdbarch.h, gdbarch.c: Regenerate.
10133
10134 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10135
10136 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10137 builtin reg number.
10138
10139 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10140
10141 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10142 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10143 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10144 access macros.
10145 * c-typeprint.c (cp_type_print_method_args): Likewise.
10146 (c_type_print_args): Likewise.
10147 * d10v-tdep.c (d10v_push_arguments): Likewise.
10148 (d10v_extract_return_value): Likewise.
10149 * expprint.c (print_subexp): Likewise.
10150 * gdbtypes.c (lookup_primitive_typename): Likewise.
10151 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10152 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10153 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10154 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10155 (TYPE_VECTOR): Likewise.
10156 * hpread.c (hpread_read_struct_type)
10157 (fix_static_member_physnames, fixup_class_method_type)
10158 (hpread_type_lookup): Likewise.
10159 * mdebugread.c (parse_symbol, parse_type): Likewise.
10160 * p-lang.c (is_pascal_string_type): Likewise.
10161 * valops.c (hand_function_call): Likewise.
10162 * x86-64-tdep.c (classify_argument): Likewise.
10163
10164 * hpread.c (hpread_read_function_type)
10165 (hpread_read_doc_function_type): Call replace_type.
10166 * dstread.c (create_new_type): Delete.
10167 (decode_dst_structure, process_dst_function): Call alloc_type.
10168 Use type access macros.
10169
10170 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10171
10172 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10173 the're not supported by the current architecture.
10174 (i387_fill_fxsave): Likewise.
10175
10176 2002-05-12 Fred Fish <fnf@redhat.com>
10177
10178 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10179 sect_index_xxx members to index the first slot in section_offsets
10180 if all of the section_offsets are zero.
10181
10182 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10183
10184 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10185 checked in with last change.
10186
10187 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10188
10189 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10190 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10191 config.sub.
10192
10193 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10194
10195 * Makefile.in: Update dependencies.
10196
10197 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10198
10199 * language.c (local_hex_string_custom): Simplify. Do not depend
10200 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10201
10202 * memattr.c (mem_info_command): Replace calls to
10203 longest_local_hex_string and longest_local_hex_string_custom.
10204 * buildsym.c (make_blockvector): Ditto.
10205 * solib.c (info_sharedlibrary_command): Ditto.
10206 * tracepoint.c (tracepoints_info): Ditto.
10207 * symtab.c (print_msymbol_info): Ditto.
10208
10209 * language.c (local_hex_string): Delete.
10210 (local_hex_string_custom): Delete.
10211 (longest_local_hex_string): Rename to local_hex_string.
10212 (longest_local_hex_string_custom): Rename to
10213 local_hex_string_custom.
10214 * language.h (local_hex_string): Change parameter type to LONGEST.
10215 (local_hex_string_custom): Ditto.
10216 (longest_local_hex_string): Delete declaration.
10217 (longest_local_hex_string_custom): Ditto.
10218
10219 * solib.c: Update copyright.
10220 * memattr.c: Update copyright.
10221
10222 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10223
10224 * arch-utils.h (legacy_register_to_value): Declare.
10225 (legacy_value_to_register): Declare.
10226 (legacy_convert_register_p): Declare.
10227 * arch-utils.c (legacy_register_to_value): New function.
10228 (legacy_value_to_register): New function.
10229 (legacy_convert_register_p): New function.
10230
10231 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10232 (VALUE_TO_REGISTER): Define.
10233 (CONVERT_REGISTER_P): Define.
10234 * gdbarch.h, gdbarch.c: Regenerate.
10235
10236 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10237 VALUE_TO_REGISTER.
10238 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10239 CONVERT_REGISTER_P.
10240
10241 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10242 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10243
10244 * Makefile.in: Update dependencies for valops.c.
10245 * valops.c: Include "gdb_assert.h".
10246 (typecmp): Skip THIS parameter to methods.
10247 (find_method_list): Remove static_memfuncp argument,
10248 update callers. Check for stub methods.
10249 (find_value_oload_method_list): Don't set *static_memfuncp.
10250 (find_overload_match): Don't check for stub methods. Assert
10251 that methods are not stubbed. Handle static methods.
10252 (value_find_oload_method_list): Remove static_memfuncp argument.
10253 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10254 to the argument list for static stub methods.
10255 * value.h (value_find_oload_method_list): Update prototype.
10256
10257 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10258
10259 * arch-utils.h (generic_register_size): Declare.
10260 (generic_register_raw_size, generic_register_virtual_size): Delete
10261 declarations.
10262 * arch-utils.c (generic_register_raw_size): Delete.
10263 (generic_register_size): New function.
10264 (generic_register_virtual_size): Delete.
10265
10266 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10267 default generic_register_size.
10268 * gdbarch.h, gdbarch.c: Re-generate.
10269
10270 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10271 register_virtual_size.
10272 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10273 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10274
10275 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10276
10277 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10278 * gdbarch.h, gdbarch.c: Regenerate.
10279 * gnu-v3-abi.c: Update copyright.
10280 (vtable_address_point_offset): Update.
10281 (gnuv3_rtti_type): Update.
10282 (gnuv3_baseclass_offset): Update.
10283 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10284 (init_fetch_link_map_offsets): Update.
10285 * remote.c (get_remote_state): Update.
10286
10287 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10288
10289 * TODO: Remove value_headof/value_from_vtable_info comment.
10290 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10291 * values.c (value_headof, value_from_vtable_info): Delete.
10292 * value.h (value_from_vtable_info): Delete prototype.
10293
10294 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10295
10296 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10297 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10298 $(gdb_regex_h).
10299 (gdb_assert_h): Define.
10300 (gdb_wait_h): Define.
10301 (gdb_regex_h): Define.
10302
10303 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10304
10305 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10306 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10307
10308 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10309
10310 * nbsd-tdep.c: Fix comment.
10311
10312 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10313
10314 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10315 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10316 (nbsd-tdep.o): New dependency list.
10317 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10318 nbsd-tdep.h.
10319 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10320 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10321 * nbsd-tdep.c: New file.
10322 * nbsd-tdep.h: New file.
10323 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10324 nbsd-tdep.h.
10325 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10326 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10327 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10328 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10329
10330 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10331
10332 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10333 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10334 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10335 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10336 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10337 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10338
10339 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10340
10341 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10342 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10343 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10344 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10345 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10346 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10347 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10348
10349 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10350
10351 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10352 fetch_elfcore_registers to...
10353 * i386nbsd-tdep.c: ...here.
10354 (i386nbsd_use_struct_convention): Rename to...
10355 (i386nbsd_aout_use_struct_convention): ...this.
10356 (i386nbsd_supply_reg): New function.
10357 (i386nbsd_fill_reg): New function.
10358 (fetch_core_registers): Use i386nbsd_supply_reg.
10359 (fetch_elfcore_registers): Likewise.
10360 (_initialize_i386nbsd_tdep): New function.
10361 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10362 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10363 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10364 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10365 (i386nbsd_aout_use_struct_convention): ...this.
10366
10367 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10368
10369 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10370 (store_inferior_registers): Use shnbsd_fill_reg.
10371 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10372 sh_nbsd_supply_register): Collapse into...
10373 (shnbsd_supply_reg): ...this.
10374 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10375 (shnbsd_fill_reg): ...this.
10376 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10377 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10378 (fetch_core_registers): Use shnbsd_supply_reg.
10379 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10380 (sh_nbsd_core_fns): Rename to...
10381 (shnbsd_core_fns): ...this.
10382 (sh_nbsd_elfcore_fns): Rename to...
10383 (shnbsd_elfcore_fns): ...this.
10384 (sh_nbsd_init_abi): Rename to...
10385 (shnbsd_init_abi): ...this.
10386 (_initialize_sh_nbsd_tdep): Rename to...
10387 (_initialize_shnbsd_tdep): ...this.
10388 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10389 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10390 sh_nbsd_fill_register): Remove prototypes.
10391 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10392
10393 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10394
10395 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10396 (i387-nat.o): Delete dependency list.
10397 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10398 (x86-64-linux-nat.o): Likewise.
10399 * i387-nat.c: Delete file, moving contents to...
10400 * i387-tdep.c: ...here.
10401 * i387-nat.h: Rename...
10402 * i387-tdep.h: ...to this.
10403 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10404 * i386-linux-nat.c: Likewise.
10405 * i386bsd-nat.c: Likewise.
10406 * i386gnu-nat.c: Likewise.
10407 * i386nbsd-nat.c: Likewise.
10408 * i386v4-nat.c: Likewise.
10409 * x86-64-linux-nat.c: Likewise.
10410 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10411 * config/i386/go32.mh (NATDEPFILES): Likewise.
10412 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10413 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10414 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10415 * config/i386/linux.mh (NATDEPFILES): Likewise.
10416 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10417 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10418 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10419 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10420
10421 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10422
10423 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10424 (alphanbsd-nat.o): Remove dependency list.
10425 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10426 * alphanbsd-nat.c: Delete. Contents moved to...
10427 * alphanbsd-tdep.c: ...here.
10428 (_initialize_alphanbsd_tdep): Register core functions.
10429 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10430
10431 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10432
10433 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10434 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10435 (alphanbsd-nat.o): Likewise.
10436 (alphabsd-tdep.o): New dependency list.
10437 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10438 (fill_gregset): Use alphabsd_fill_reg.
10439 (supply_fpregset): Use alphabsd_supply_fpreg.
10440 (fill_fpregset): Use alphabsd_fill_fpreg.
10441 (fetch_inferior_registers): Use struct reg and struct fpreg
10442 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10443 and alphabsd_supply_fpreg.
10444 (store_inferior_registers): Use struct reg and struct fpreg
10445 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10446 and alphabsd_fill_fpreg.
10447 * alphabsd-tdep.c: New file.
10448 * alphabsd-tdep.h: New file.
10449 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10450 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10451 alphabsd_supply_fpreg.
10452 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10453 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10454
10455 2002-05-11 Eric Christopher <echristo@redhat.com>
10456
10457 * mips-tdep.c (mips_double_register_type): Fix thinko.
10458 (mips_single_register_type): Ditto.
10459 * MAINTAINERS: Add self.
10460
10461 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10462
10463 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10464 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10465 right thing on architectures with different endianness and/or
10466 integer sizes.
10467
10468 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10469
10470 From Christian Limpach <chris@Pin.LU>
10471 * configure.in: Change sed expression which comments out
10472 NATDEPFILES to also comment out continuation lines.
10473 * configure: Regenerate.
10474
10475 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10476
10477 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10478 big patch.
10479
10480 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10481
10482 * sh-tdep.c: Include correct file.
10483
10484 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10485
10486 New support for sh64-elf (sh5) target.
10487
10488 * configure.tgt: For sh64-elf target, default to sh-elf.
10489
10490 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10491 (struct gdbarch_tdep): Add new fields for new registers and ABI
10492 info.
10493
10494 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10495 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10496 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10497 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10498 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10499 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10500 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10501 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10502 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10503 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10504 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10505 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10506 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10507 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10508 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10509 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10510 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10511 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10512 sign_extend, sh64_nofp_frame_init_saved_regs,
10513 sh64_init_extra_frame_info, sh64_get_saved_register,
10514 sh64_extract_struct_value_address, sh64_pop_frame,
10515 sh64_push_arguments, sh64_extract_return_value,
10516 sh64_store_return_value, sh64_show_media_regs,
10517 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10518 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10519 sh_sh64_register_virtual_type,
10520 sh_sh64_register_convert_to_virtual,
10521 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10522 sh64_register_read, sh64_pseudo_register_write,
10523 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10524 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10525 sh64_do_pseudo_register, sh_compact_do_registers_info,
10526 sh64_do_registers_info, sh_gdbarch_init): New functions.
10527
10528 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10529
10530 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10531
10532 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10533
10534 * linespec.c (decode_line_1): Check for a double quote after
10535 a filename correctly.
10536
10537 2002-05-10 Jim Blandy <jimb@redhat.com>
10538
10539 Properly track the size of the current objfile's .debug_line section.
10540 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10541 (DWARF_LINE_SIZE): New macro.
10542 (dwarf2_build_psymtabs_hard): Record the line section's size in
10543 the partial symbol table.
10544 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10545 symbol table.
10546
10547 2002-05-10 Petr Sorfa <petrs@caldera.com>
10548
10549 * ia64-tdep.c: Handle breakpoints on L instruction type
10550 in MLX instruction bundle by moving the breakpoint to
10551 the third slot (X instruction type) as L holds only data.
10552
10553 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10554
10555 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10556 (process_one_symbol): Complain about discarding local symbols
10557 due to a misplaced N_LBRAC entry.
10558
10559 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10560
10561 From Daniel Berlin <dan@cgsoftware.com>
10562 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10563 decrease the depth we are at, in the case of templates.
10564
10565 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10566
10567 * mips-tdep.c (mips_float_register_type): New function.
10568 (mips_double_register_type): New function.
10569 (mips_print_register): Use them.
10570 (do_fp_register_row): Likewise.
10571
10572 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10573
10574 * signals/signals.c (signals): Remove conditional compilation around
10575 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10576 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10577
10578 2002-05-09 Michael Snyder <msnyder@redhat.com>
10579
10580 * remote-rdp.c (remote_rdp_can_run): Remove.
10581
10582 2002-05-09 Tom Tromey <tromey@redhat.com>
10583
10584 * jv-valprint.c (java_val_print): Handle `char' as a special case
10585 of TYPE_CODE_INT.
10586
10587 2002-05-09 Michael Snyder <msnyder@redhat.com>
10588
10589 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10590 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10591 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10592 str r(0123),[sp,#nn].
10593 (arm_skip_prologue): Ditto. Also make disassembly
10594 order-independent by placing it in a loop.
10595
10596 2002-05-06 Michael Snyder <msnyder@redhat.com>
10597
10598 * stabsread.c (read_type): Add recognition for new attribute:
10599 "@V;" means that an array type is actually a vector.
10600 This is analogous to the vector flag that's been added to dwarf2.
10601
10602 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10603
10604 * i386-tdep.h (i386_abi): New enum.
10605 (struct gdbarch_tdep): Replace os_ident member with abi.
10606 (i386_gdbarch_register_os_abi): New prototype.
10607 * i386-tdep.c (i386_abi_names): New array.
10608 (process_note_abi_tag_sections): Removed.
10609 (process_note_sections): New function.
10610 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10611 (struct i386_abi_handler): New struct.
10612 (i386_abi_handler_list): New variable.
10613 (i386_gdbarch_register_os_abi): New function.
10614 (i386_gdbarch_init): Adapt for the changes given above.
10615
10616 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10617
10618 * gregset.h: Say "GNU/Linux".
10619
10620 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10621
10622 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10623 (build_gdbtypes): Build builtin_type_v2_float.
10624 (_initialize_gdbtypes): Register new builtin type.
10625
10626 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10627
10628 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10629 (clear_gdbarch_swap): New function.
10630 (initialize_non_multiarch): Call.
10631 (gdbarch_update_p): Before calling init(), swap out and clear the
10632 existing architecture.
10633 * gdbarch.c: Regenerate.
10634
10635 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10636
10637 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10638 alphanbsd-tdep.c.
10639
10640 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10641
10642 * sh-nbsd-nat.c: Rename to...
10643 * shnbsd-nat.c: ...this.
10644 * sh-nbsd-tdep.c: Rename to...
10645 * shnbsd-tdep.c: ...this.
10646 * sh-nbsd-tdep.h: Rename to...
10647 * shnbsd-tdep.h: ...this.
10648 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10649 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10650
10651 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10652
10653 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10654 concatenation for command help messages.
10655
10656 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10657
10658 * NEWS: Note new sh*-*-netbsdelf* configuration.
10659 * configure.host: Set gdb_host_cpu to sh for all sh*.
10660 (sh*-*-netbsdelf*): New host.
10661 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10662 (sh*-*-netbsdelf*): New target.
10663 * sh-nbsd-nat.c: New file.
10664 * sh-nbsd-tdep.c: New file.
10665 * sh-nbsd-tdep.h: New file.
10666 * config/sh/nbsd.mh: New file.
10667 * config/sh/nbsd.mt: New file.
10668 * config/sh/nm-nbsd.h: New file.
10669 * config/sh/tm-nbsd.h: New file.
10670
10671 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10672
10673 * sh-tdep.c (sh_osabi_names): Declare.
10674 (process_note_abi_tag_sections): New function.
10675 (get_elfosabi): Ditto.
10676 (sh_gdbarch_register_os_abi): Ditto.
10677 (sh_dump_tdep): Ditto.
10678 _initialize_sh_tdep): Use gdbarch_register to register
10679 sh_gdbarch_init and sh_dump_tdep.
10680 * config/sh/tm-sh.h (sh_osabi): Declare.
10681 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10682
10683 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10684
10685 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10686 (thumb_scan_prologue): Ditto.
10687 (arm_find_callers_reg): Ditto.
10688 (arm_frame_chain): Ditto.
10689 (arm_init_extra_frame_info): Ditto.
10690 (arm_frame_saved_pc): Ditto.
10691 (arm_pop_frame): Ditto.
10692 (arm_push_return_address): New function.
10693 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10694 call_dummy_location, call_dummy_breakpoint_offset_p,
10695 call_dummy_breakpoint_offset, call_dummy_p,
10696 call_dummy_stack_adjust_p, call_dummy_words,
10697 sizeof_call_dummy_words, call_dummy_start_offset,
10698 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10699 call_dummy_address, push_return_address and push_dummy_frame for
10700 generic dummy frames.
10701
10702 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10703
10704 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10705 size computation for alloca.
10706 (sh_fp_frame_init_saved_regs): Likewise.
10707
10708 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10709
10710 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10711 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10712 * arm-tdep.c (arm_store_return_value): Use them.
10713 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10714 * remote-rdp.c (remote_rdp_fetch_register): Use
10715 ARM_MAX_REGISTER_RAW_SIZE.
10716 (remote_rdp_store_register): Likewise.
10717
10718 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10719
10720 * dwarf2cfi.c: Code cleanup, removed unused variables,
10721 added default labels to switch {} statements.
10722 * x86-64-tdep.c: Ditto.
10723 * x86-64-linux-nat.c: Ditto.
10724
10725 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10726
10727 * solib.h: Protect against multiple inclusion.
10728
10729 2002-05-06 Jim Blandy <jimb@redhat.com>
10730
10731 Add first preprocessor macro-expansion files.
10732 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10733 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10734 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10735 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10736 (COMMON_OBS): Add macrotab.o, macroexp.o.
10737 (macroexp.o, macrotab.o): New rules.
10738
10739 Separate the job of reading the line number info statement program
10740 header (...expialidocious) out into its own function.
10741 * dwarf2read.c (struct line_head, struct filenames, struct
10742 directories): Replace with...
10743 (struct line_header): New structure, containing the full
10744 contents of the statement program header, including the
10745 include directory and file name tables.
10746 (read_file_scope): If we have line number info, instead of just
10747 calling dwarf_decode_lines to do all the work, call
10748 dwarf_decode_line_header first to get a `struct line_header'
10749 containing the data in the statement program header, and then
10750 pass that to dwarf_decode_lines, which will pick up where that
10751 left off. Be sure to clean up the `struct line_header' object.
10752 (dwarf_decode_line_header, free_line_header, add_include_dir,
10753 add_file_name): New functions.
10754 (dwarf_decode_lines): Move all the code to read the statement
10755 program header into dwarf_decode_line_header. Take the line
10756 header it built as the first argument, instead of the offset to
10757 the compilation unit's line number info. Use the new `struct
10758 line_header' type instead of the old structures. No need to do
10759 cleanups here now, since we don't allocate anything.
10760 (dwarf2_statement_list_fits_in_line_number_section,
10761 dwarf2_line_header_too_long): New complaints.
10762
10763 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10764
10765 * gdbtypes.c (init_vector_type): New function.
10766 (build_builtin_type_vec128): Simplify the representation of SIMD
10767 registers.
10768 (build_gdbtypes): Initialize new builtin vector types.
10769 (_initialize_gdbtypes): Register new vector types with gdbarch.
10770 (builtin_type_v4_float, builtin_type_v4_int32,
10771 builtin_type_v8_int16, builtin_type_v16_int8,
10772 builtin_type_v2_int32, builtin_type_v4_int16,
10773 builtin_type_v8_int8): New (renamed) SIMD types.
10774
10775 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10776
10777 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10778 (i387_fill_fxsave): Likewise.
10779
10780 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10781
10782 * alpha-tdep.c (alpha_extract_return_value): Don't use
10783 non-constant array size in prototype.
10784
10785 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10786
10787 From Brian Taylor <briant at model dot com>:
10788 * ui-out.c (ui_out_field_core_addr): Use the function
10789 longest_local_hex_string_custom'to format addresses > 32 bits
10790 wide.
10791
10792 * ui-out.c (ui_out_field_core_addr): Update comment.
10793
10794 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10795
10796 * stack.c (select_and_print_frame): Make static. Delete the
10797 parameter `level'.
10798 (func_command): Update call.
10799 (select_frame_command): Delete code computing the frame level.
10800 * frame.h (select_and_print_frame): Delete declaration.
10801
10802 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10803
10804 * sparc-tdep.c (sparc_get_saved_register): Comment why
10805 get_prev_frame call is safe.
10806
10807 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10808
10809 * frame.h (select_frame): Delete level parameter.
10810 * stack.c (select_frame): Update. Use frame_relative_level to
10811 obtain the frame's level.
10812 (select_and_print_frame): Update call.
10813 (select_frame_command): Ditto.
10814 (up_silently_base): Ditto.
10815 (down_silently_base): Ditto.
10816 * ocd.c (ocd_start_remote): Ditto.
10817 * remote-rdp.c (remote_rdp_open): Ditto.
10818 * remote-mips.c (mips_initialize): Ditto.
10819 (common_open): Ditto.
10820 * remote-e7000.c (e7000_start_remote): Ditto.
10821 * m3-nat.c (select_thread): Ditto.
10822 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10823 (child_get_current_exception_event): Ditto.
10824 * varobj.c (varobj_create): Ditto.
10825 (varobj_update): Ditto.
10826 (c_value_of_root): Ditto.
10827 * tracepoint.c (finish_tfind_command): Ditto.
10828 * corelow.c (core_open): Ditto.
10829 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10830 * thread.c (info_threads_command): Ditto.
10831 (switch_to_thread): Ditto.
10832 * infrun.c (normal_stop): Ditto.
10833 (restore_selected_frame): Ditto.
10834 (restore_inferior_status): Ditto.
10835 * breakpoint.c (insert_breakpoints): Ditto.
10836 (watchpoint_check): Ditto.
10837 (bpstat_stop_status): Ditto.
10838 (do_enable_breakpoint): Ditto.
10839 * blockframe.c (flush_cached_frames): Ditto.
10840 (reinit_frame_cache): Ditto.
10841
10842 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10843
10844 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10845 maintainer.
10846
10847 2002-05-04 Jim Blandy <jimb@redhat.com>
10848
10849 * gdbtypes.c (replace_type): Doc fix.
10850
10851 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10852
10853 * valprint.c (strcat_longest): Delete commented out function.
10854 Update copyright.
10855
10856 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10857
10858 * MAINTAINERS: Mark a29k as deleted.
10859 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10860 Move new configurations to the top.
10861 * configure.tgt: Remove a29k.
10862 * config/a29k/tm-vx29k.h: Delete.
10863 * config/a29k/vx29k.mt: Delete.
10864 * config/a29k/tm-a29k.h: Delete.
10865 * config/a29k/a29k-udi.mt: Delete.
10866 * config/a29k/a29k.mt: Delete.
10867 * a29k-tdep.c: Delete.
10868 * remote-udi.c: Delete.
10869 * remote-mm.c: Delete.
10870 * remote-eb.c: Delete.
10871 * remote-adapt.c: Delete.
10872 * Makefile.in: Remove obsolete code.
10873 * config/s390/s390x.mt: Ditto.
10874 * config/s390/s390.mt: Ditto.
10875 * config/sparc/sparclynx.mh: Ditto.
10876 * config/sparc/linux.mh: Ditto.
10877 * config/pa/hppaosf.mh: Ditto.
10878 * config/pa/hppabsd.mh: Ditto.
10879 * config/ns32k/nbsd.mt: Ditto.
10880 * config/mips/vr5000.mt: Ditto.
10881 * config/m68k/sun3os4.mh: Ditto.
10882 * config/m68k/nbsd.mt: Ditto.
10883 * config/m68k/m68klynx.mh: Ditto.
10884 * config/m32r/m32r.mt: Ditto.
10885 * config/i386/x86-64linux.mt: Ditto.
10886 * config/i386/nbsdelf.mt: Ditto.
10887 * config/i386/nbsd.mt: Ditto.
10888 * config/i386/i386lynx.mh: Ditto.
10889
10890 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10891
10892 * target.c (debug_print_register): New function. Handle oversize
10893 registers.
10894 (debug_to_fetch_registers): Call.
10895 (debug_to_store_registers): Call.
10896
10897 2002-05-03 Jim Blandy <jimb@redhat.com>
10898
10899 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10900 (read_type): Doc fix.
10901 * gdbtypes.c (replace_type): Doc fix.
10902
10903 * stabsread.c (multiply_defined_struct): New complaint.
10904 (read_struct_type): If the type we were passed isn't empty, or
10905 incomplete, don't read the new struct type into it; complain,
10906 and return the original type unchanged. Take a new `type_code'
10907 argument, which is the type code for the new type.
10908 (read_type): Rather than storing the type's type code here, pass
10909 it as an argument to read_struct_type, and let that take care of
10910 storing it. That way, we don't overwrite the original type code,
10911 so read_struct_type can use it to decide whether we're overwriting
10912 something we shouldn't.
10913 (complain_about_struct_wipeout): New function.
10914
10915 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10916
10917 * gdbarch.sh: Assert that gdbarch is non-NULL.
10918 * gdbarch.c: Regenerate.
10919
10920 2002-05-03 Jason Merrill <jason@redhat.com>
10921
10922 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10923 and return NULL.
10924
10925 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10926
10927 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10928 (x86_64_dwarf2gdb_regno_map_length),
10929 (x86_64_dwarf2_reg_to_regnum): Added.
10930 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10931 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10932 (_initialize_x86_64_tdep): Synced with the change above.
10933 (x86_64_skip_prologue): Reformulated message.
10934
10935 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10936
10937 * f-exp.y: Also use new prev_lexptr variable
10938 to improve error reporting. Based on Michael Snyder
10939 2002-04-24 dated patch to c-exp.y.
10940 * jv-exp.y: Likewise.
10941 * m2-exp.y: Likewise.
10942
10943 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10944
10945 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10946 we are dealing with vectors.
10947
10948 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10949
10950 * config/m68k/tm-nbsd.h: Obvious fix,
10951 correct machine name.
10952
10953 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10954
10955 * p-typeprint.c (pascal_type_print_base): Add support
10956 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10957
10958 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10959
10960 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10961 for fondamental pascal 'char' type.
10962
10963 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10964
10965 * p-lang.h (is_pascal_string_type): Declaration changed,
10966 new sixth argument of type char ** added.
10967 * p-lang.c (is_pascal_string_type): Implementation
10968 changed. Args length_pos, length_size, string_pos, char_size
10969 can now be NULL. New argument arrayname set to the field
10970 name of the char array. Return value set to char array
10971 field index plus one.
10972 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10973 is_pascal_string_type function.
10974
10975 2002-05-02 Andrew Cagney <cagney@redhat.com>
10976
10977 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10978 <cagney@redhat.com> change.
10979 * gdbarch.c: Regenerate.
10980
10981 2002-05-02 Andrew Cagney <cagney@redhat.com>
10982
10983 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10984 before probing for a new one. Detect errorenous gdbarch_init
10985 functions.
10986 * gdbarch.c: Regenerate.
10987
10988 2002-05-01 Andrew Cagney <cagney@redhat.com>
10989
10990 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10991 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10992 * config/v850/tm-v850.h: Ditto. Update copyright.
10993
10994 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10995
10996 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10997 current_gdbarch.
10998
10999 2002-04-30 Michael Snyder <msnyder@redhat.com>
11000
11001 * arm-tdep.c: Whitespace clean-ups.
11002 (arm_skip_prologue): Fix thinko; two lines
11003 should have been removed as part of 4/24 change.
11004
11005 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11006
11007 * rs6000-tdep.c: Added comment describing how fpscr register
11008 numbers were chosen.
11009
11010 2002-04-30 Michael Snyder <msnyder@redhat.com>
11011
11012 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11013
11014 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11015
11016 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11017 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11018 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11019
11020 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11021
11022 From Louis Hamilton <hamilton@redhat.com>:
11023 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11024 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11025 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11026 not bfd-private xcoff data, to determine wordsize.
11027 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11028
11029 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11030
11031 GDB 5.2 released from 5.2 branch.
11032
11033 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11034
11035 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11036 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11037 (x86_64_register_info_table): Added comments with register numbers.
11038
11039 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11040
11041 * rs6000-tdep.c (rs6000_extract_return_value,
11042 rs6000_store_return_value): Handle returning vectors.
11043 (rs6000_gdbarch_init): Use
11044 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11045 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11046 New function.
11047 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11048 vectors.
11049 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11050 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11051
11052 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11053
11054 * hpread.c (hpread_psymtab_to_symtab_1,
11055 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11056 with fprintf_unfiltered (gdb_stderr,...).
11057
11058 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11059
11060 * remote-array.c (printf_monitor, write_monitor,
11061 array_insert_breakpoint, array_remove_breakpoint ):
11062 Replace fprintf (stderr,...
11063 with fprintf_unfiltered (gdb_stderr,....
11064 * remote-es.c: Likewise.
11065 * remote-os9k.c: Likewise.
11066 * remote-st.c: Likewise.
11067
11068 2002-04-28 Andreas Schwab <schwab@suse.de>
11069
11070 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11071 linux-proc.o and gcore.o.
11072
11073 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11074
11075 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11076 code without frame pointers.
11077
11078 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11079
11080 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11081 ON_STACK is needed.
11082
11083 2002-04-26 Ben Elliston <bje@redhat.com>
11084
11085 * target.c (do_xfer_memory): Correct reference to the new option
11086 "trust-readonly-sections".
11087
11088 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11089
11090 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11091 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11092 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11093 vectors.
11094 (read_array_type): Record the fact that this array type is really a
11095 vector (i.e. are passed in by value).
11096
11097 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11098
11099 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11100 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11101 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11102 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11103 * alpha-linux-tdep.c: Include frame.h.
11104 (alpha_linux_sigcontext_addr): New function.
11105 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11106 alpha_linux_sigcontext_addr.
11107 * alpha-osf1-tdep.c: Include gdbcore.h.
11108 (alpha_osf1_sigcontext_addr): New function.
11109 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11110 alpha_osf1_sigcontext_addr.
11111 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11112 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11113
11114 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11115
11116 * stack.c (selected_frame_level):
11117 (select_frame): Do not set selected_frame_level.
11118 * frame.h (selected_frame_level): Delete declaration.
11119
11120 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11121
11122 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11123 convert_from_func_ptr-addr when AIX / PowerOpen.
11124
11125 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11126
11127 * valops.c (hand_function_call): Call
11128 generic_save_call_dummy_addr.
11129 * frame.h (generic_save_call_dummy_addr): Declare.
11130 * blockframe.c (struct dummy_frame): Add fields call_lo and
11131 call_hi.
11132 (generic_find_dummy_frame): Check for PC in range call_lo to
11133 call_hi instead of entry_point_address.
11134 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11135 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11136 (generic_save_call_dummy_addr): New function.
11137
11138 2002-04-24 David S. Miller <davem@redhat.com>
11139
11140 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11141 sparc_skip_prologue.
11142 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11143 information to find prologue when possible.
11144 (sparc_prologue_frameless_p): Call examine_prologue directly.
11145 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11146 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11147 second argument.
11148 (SKIP_PROLOGUE): Likewise.
11149
11150 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11151
11152 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11153 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11154 indicate that the condition it was testing is always true.
11155 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11156 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11157 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11158
11159 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11160
11161 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11162 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11163 tdep->jb_pc and tdep->jb_elt_size.
11164 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11165 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11166 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11167 * alpha-nat.c (get_longjmp_target): Remove.
11168 (JB_ELEMENT_SIZE): Ditto.
11169 (JB_PC): Ditto.
11170 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11171 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11172 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11173 to alpha_get_longjmp_target.
11174 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11175 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11176 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11177
11178 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11179
11180 * README: Update to GDB 5.2.
11181
11182 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11183
11184 * gdbarch.sh (LC_ALL): Set to `c'.
11185
11186 2002-04-25 Theodore A. Roth <troth@verinet.com>
11187
11188 * avr-tdep.c: Ran through gdb_indent.sh.
11189
11190 2002-04-25 Theodore A. Roth <troth@verinet.com>
11191
11192 * MAINTAINERS: Add myself as AVR maintainer.
11193 * NEWS: Note new target avr.
11194
11195 2002-04-25 Theodore A. Roth <troth@verinet.com>
11196
11197 * Makefile.in: Add support for AVR target.
11198 * configure.tgt: Add support for AVR target.
11199 * avr-tdep.c: New file
11200 * config/avr/avr.mt: New file.
11201
11202 2002-04-25 Theodore A. Roth <troth@verinet.com>
11203
11204 * MAINTAINERS: Add myself to write-after-approval.
11205
11206 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11207
11208 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11209 with fprintf_unfiltered (gdb_stderr,....
11210
11211 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11212
11213 Fix PR gdb/508.
11214 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11215
11216 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11217
11218 * p-exp.y: Also use new prev_lexptr variable
11219 to improve error reporting. Based on Michael Snyder
11220 2002-04-24 dated patch to c-exp.y.
11221
11222 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11223
11224 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11225 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11226 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11227 to 0.
11228 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11229 and struct value.
11230 (FUNCTION_START_OFFSET): Remove.
11231 (BREAKPOINT): Ditto.
11232
11233 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11234
11235 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11236 * NEWS: Ditto.
11237
11238 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11239
11240 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11241 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11242 alpha_linux_pc_in_sigtramp.
11243 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11244 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11245 alpha_osf1_pc_in_sigtramp.
11246 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11247 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11248 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11249 alphafbsd_pc_in_sigtramp.
11250 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11251 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11252 alphanbsd_pc_in_sigtramp.
11253 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11254 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11255
11256 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11257
11258 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11259
11260 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11261
11262 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11263 alphanbsd-tdep.c.
11264 (alphanbsd-nat.o): New dependency list.
11265 (alphanbsd-tdep.o): Ditto.
11266 * NEWS: Note new native NetBSD/alpha configuration.
11267 * alphanbsd-nat.c: New file.
11268 * alphanbsd-tdep.c: Ditto.
11269 * configure.host (alpha*-*-netbsd*): New host.
11270 * configure.tgt (alpha*-*-netbsd*): New target.
11271 * config/alpha/nbsd.mh: New file.
11272 * config/alpha/nbsd.mt: Ditto.
11273 * config/alpha/nm-nbsd.h: Ditto.
11274 * config/alpha/tm-nbsd.h: Ditto.
11275
11276 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11277
11278 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11279 (alpha-osf1-tdep.o): New dependency list.
11280 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11281 and skip_sigtramp_frame members.
11282 * alpha-linux-tdep.c: Include gdbcore.h.
11283 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11284 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11285 * alpha-osf1-tdep.c: New file.
11286 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11287 alpha-osf1-dep.c.
11288 (alpha_frame_past_sigtramp_frame): New function.
11289 (alpha_dynamic_sigtramp_offset): Ditto.
11290 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11291 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11292 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11293 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11294 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11295 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11296 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11297 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11298 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11299 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11300 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11301 to find_solib_trampoline_target.
11302 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11303 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11304 (SKIP_TRAMPOLINE_CODE): Remove.
11305 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11306 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11307 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11308 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11309 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11310 (PROC_SIGTRAMP_MAGIC): Ditto.
11311 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11312 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11313 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11314 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11315 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11316
11317 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11318
11319 * NEWS: Note that Alpha targets are now multi-arch.
11320
11321 2002-04-24 Michael Snyder <msnyder@redhat.com>
11322
11323 * parser-defs.h (prev_lexptr): New external variable.
11324 * parse.c (parse_exp_1): Set prev_lexptr to null before
11325 calling the language-specific parser.
11326 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11327 (yyerror): Use prev_lexptr in error reporting.
11328
11329 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11330
11331 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11332 * gregset.h: If FILL_FPXREGSET is defined, provide
11333 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11334 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11335 is defined, call fill_fpxregset.
11336
11337 2002-04-24 Roland McGrath <roland@frob.com>
11338
11339 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11340 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11341 (supply_gregset, supply_fpregset): New functions.
11342
11343 * gnu-nat.c (gnu_find_memory_regions): New function.
11344 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11345 (gnu_xfer_memory): Add a cast.
11346
11347 2002-04-24 Michael Snyder <msnyder@redhat.com>
11348
11349 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11350 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11351 of argument regs ("str r(0123), [r11, #-nn"]).
11352 (arm_skip_prologue): Better handling for frameless functions.
11353 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11354 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11355
11356 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11357
11358 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11359 NUM_PSEUDO_REGS can be used.
11360
11361 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11362
11363 * arch-utils.h: Update copyright.
11364
11365 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11366 * gdbarch.h, gdbarch.c: Re-generate.
11367
11368 * inferior.h (IN_SIGTRAMP): Delete definition.
11369 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11370 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11371
11372 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11373 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11374 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11375 (find_proc_framesize): Ditto.
11376 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11377 (alpha_init_extra_frame_info): Ditto.
11378 * infrun.c (handle_inferior_event): Ditto.
11379 (handle_inferior_event): Ditto.
11380 (check_sigtramp2): Ditto.
11381 * blockframe.c (create_new_frame): Ditto.
11382 (get_prev_frame): Ditto.
11383 * ppc-linux-tdep.c: Update comments.
11384 * i386-linux-tdep.c: Update comments.
11385 * breakpoint.c (bpstat_what): Update comment.
11386
11387 2002-04-24 David S. Miller <davem@redhat.com>
11388
11389 * i960-tdep.c (register_in_window_p): New function.
11390 (i960_find_saved_register): Use it instead of
11391 REGISTER_IN_WINDOW_P.
11392 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11393
11394 * symtab.h (find_stab_function_addr): Kill extern.
11395 * minsyms.c (find_stab_function_addr): Remove from here...
11396 * dbxread.c: ... to here, and mark it static.
11397
11398 2002-04-20 David S. Miller <davem@redhat.com>
11399
11400 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11401 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11402
11403 2002-04-21 David S. Miller <davem@redhat.com>
11404
11405 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11406 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11407 (vx_write_register): Likewise.
11408
11409 2002-04-23 J. Brobecker <brobecker@gnat.com>
11410
11411 * source.c (is_regular_file): New function.
11412 (openp): Check wether file to open is a regular file
11413 to avoid opening directories.
11414
11415 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11416
11417 * findvar.c (extract_signed_integer): Cast printf argument
11418 to suppress format warning.
11419 (extract_unsigned_integer): Likewise.
11420 * infcmd.c (registers_info): Likewise.
11421 * top.c (get_prompt_1): Likewise.
11422 * valops.c (value_assign): Likewise.
11423 * valprint.c (print_decimal): Likewise.
11424
11425 2002-04-22 H.J. Lu (hjl@gnu.org)
11426
11427 * c-exp.y (typebase): Support
11428
11429 [long|long long|short] [signed|unsigned] [int|]
11430
11431 and
11432
11433 signed [long|long long|short] int
11434
11435 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11436
11437 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11438 and vax-tdep.h.
11439 * vax-tdep.h: New file.
11440 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11441 Make several routines static.
11442 (vax_get_saved_register): New function.
11443 (vax_gdbarch_init): New function.
11444 (_initialize_vax_tdep): Register vax_gdbarch_init.
11445 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11446 Remove macros now under the control of gdbarch.
11447
11448 2002-04-22 Michael Snyder <msnyder@redhat.com>
11449
11450 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11451 Some whitespace and coding standards tweaks.
11452
11453 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11454
11455 * vax-tdep.c: Include regcache.h.
11456 (vax_call_dummy_words): New.
11457 (sizeof_vax_call_dummy_words): New.
11458 (vax_fix_call_dummy): New function.
11459 (vax_saved_pc_after_call): Ditto.
11460 * config/vax/tm-vax.h: Don't include regcache.h.
11461 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11462 (CALL_DUMMY): Remove.
11463 (CALL_DUMMY_WORDS): Define.
11464 (SIZEOF_CALL_DUMMY_WORDS): Define.
11465 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11466
11467 2002-04-18 Michael Snyder <msnyder@redhat.com>
11468
11469 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11470
11471 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11472
11473 * vax-tdep.c (vax_frame_chain): New function.
11474 (vax_push_dummy_frame): Ditto.
11475 (vax_pop_frame): Ditto.
11476 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11477 (FRAMELESS_FUNCTION_INVOCATION): Use
11478 generic_frameless_function_invocation_not.
11479 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11480 (POP_FRAME): Use vax_pop_frame.
11481
11482 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11483
11484 * vax-tdep.c (vax_store_struct_return): New function.
11485 (vax_extract_return_value): Ditto.
11486 (vax_store_return_value): Ditto.
11487 (vax_extract_struct_value_address): Ditto.
11488 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11489 vax_store_struct_return.
11490 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11491 (STORE_RETURN_VALUE): Use vax_store_return_value.
11492 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11493
11494 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11495
11496 * vax-tdep.c (vax_frame_saved_pc): New function.
11497 (vax_frame_args_address_correct): Ditto.
11498 (vax_frame_args_address): Ditto.
11499 (vax_frame_locals_address): Ditto.
11500 (vax_frame_num_args): Move code to be in proximity to
11501 other frame-related functions.
11502 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11503 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11504 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11505 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11506 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11507
11508 2002-04-22 H.J. Lu (hjl@gnu.org)
11509
11510 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11511 includedir.
11512
11513 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11514
11515 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11516 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11517 (FRAME_INIT_SAVED_REGS): New macro.
11518
11519 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11520
11521 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11522
11523 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11524
11525 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11526 where needed.
11527 (fetch_osf_core_registers): Likewise.
11528 (supply_gregset): Likewise.
11529
11530 2002-04-22 J. Brobecker <brobecker@gnat.com>
11531
11532 * symfile.h (get_section_index): Define.
11533 * symfile.c (get_section_index): New function.
11534 * mdebugread.c (SC_IS_SBSS): New macro.
11535 (SC_IS_BSS): Return true for the scBss storage class only, as
11536 the scSBss storage class refers to the .sbss section.
11537 (parse_partial_symbols): Discard the symbols which associated
11538 section does not exist.
11539 Make sure to use the .sbss section index for symbols which
11540 storage class is scBss, rather than using the .bss section index.
11541
11542 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11543
11544 * vax-tdep.c: Update copyright years.
11545 (vax_register_name): New function.
11546 (vax_register_byte): Ditto.
11547 (vax_register_raw_size): Ditto.
11548 (vax_register_virtual_size): Ditto.
11549 (vax_register_virtual_type): Ditto.
11550 * config/vax/tm-vax.h: Update copyright years.
11551 (REGISTER_NAMES): Remove.
11552 (REGISTER_NAME): Define.
11553 (REGISTER_BYTE): Use vax_register_byte.
11554 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11555 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11556 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11557
11558 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11559
11560 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11561 declaration
11562 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11563
11564 2002-04-21 David S. Miller <davem@redhat.com>
11565
11566 * arch-utils.c (generic_prologue_frameless_p): Kill
11567 SKIP_PROLOGUE_FRAMELESS_P code.
11568 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11569 references.
11570 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11571 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11572 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11573 references.
11574 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11575 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11576 (sparc_gdbarch_init): Pass it to
11577 set_gdbarch_prologue_frameless_p.
11578
11579 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11580
11581 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11582 (alphabsd-nat.o): New dependency list.
11583
11584 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11585
11586 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11587 alphafbsd-tdep.c.
11588 (alpha-linux-tdep.o): New dependency list.
11589 (alphafbsd-tdep.o): Likewise.
11590
11591 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11592
11593 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11594 to here...
11595 * alpha-tdep.c: ...from here.
11596 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11597
11598 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11599
11600 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11601 prototype from here...
11602 * alpha-tdep.h: ...to here.
11603
11604 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11605
11606 * frame.h (selected_frame_level): Document as deprecated.
11607 (frame_relative_level): Declare.
11608 * stack.c (frame_relative_level): New function.
11609 (selected_frame_level): Document as deprecated.
11610 (select_frame): Do not set the selected_frame_level.
11611
11612 * stack.c (frame_info, record_selected_frame): Update.
11613 (frame_command, current_frame_command): Update.
11614 (up_silently_base, up_command, down_silently_base): Update.
11615 (down_command): Update.
11616 * inflow.c (kill_command): Update.
11617 * tracepoint.c (finish_tfind_command): Update.
11618 * corelow.c (core_open): Update.
11619 * thread.c (info_threads_command): Update.
11620 (do_captured_thread_select): Update.
11621 * infcmd.c (finish_command): Update.
11622 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11623
11624 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11625
11626 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11627
11628 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11629
11630 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11631 type const.
11632
11633 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11634
11635 * alphafbsd-tdep.c: Update copyright years. Include
11636 alpha-tdep.h.
11637 (alphafbsd_use_struct_convention): Make static.
11638 (alphafbsd_init_abi): New function.
11639 (_initialize_alphafbsd_tdep): New function.
11640 * config/alpha/tm-fbsd.h: Update copyright years.
11641 (USE_STRUCT_CONVENTION): Remove.
11642
11643 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11644
11645 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11646 an Alpha ABI variant.
11647 (alpha_abi_handler_list): Declare.
11648 (alpha_gdbarch_register_os_abi): New function.
11649 (alpha_gdbarch_init): Give registered ABI variant handlers a
11650 chance to tweak the gdbarch once we have set up defaults.
11651 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11652
11653 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11654
11655 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11656 to standard_coerce_float_to_double.
11657 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11658
11659 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11660
11661 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11662 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11663 from gdbarch_tdep rather than a constant.
11664 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11665 the default text address for all Alpha Unix ABIs.
11666 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11667 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11668
11669 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11670
11671 * alpha-tdep.h: New file. Includes several Alpha target constants
11672 taken from...
11673 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11674 let gdbarch deal with.
11675 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11676 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11677 to dependency list.
11678 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11679 Alpha target register names.
11680 * alphabsd-nat.c: Likewise.
11681 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11682 Alpha target register names. Make serveral routines static.
11683 (alpha_get_saved_register): New function.
11684 (alpha_abi_names): New.
11685 (process_note_abi_tag_sections): New function.
11686 (get_elfosabi): New function.
11687 (alpha_gdbarch_init): New function.
11688 (alpha_dump_tdep): New function.
11689 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11690
11691 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11692
11693 * frame.c (find_saved_register): Delete #ifdef
11694 HAVE_REGISTER_WINDOWS code.
11695 * config/sparc/tm-sparc.h: Update comments.
11696 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11697
11698 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11699
11700 * i960-tdep.c (i960_find_saved_register): New function.
11701 (i960_get_saved_register): New function.
11702 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11703 (i960_get_saved_register): Declare.
11704 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11705
11706 2002-04-20 David S. Miller <davem@redhat.com>
11707
11708 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11709
11710 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11711
11712 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11713 instead of NUM_PSEUDO_REGS.
11714
11715 2002-04-20 David S. Miller <davem@redhat.com>
11716
11717 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11718 GDB_MULTI_ARCH_PARTIAL
11719 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11720 define, let tm-sp64.h do it.
11721
11722 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11723
11724 * frame.c (find_saved_register): Avoid a NULL pointer
11725 dereference and actually walk the frame list.
11726
11727 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11728
11729 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11730 sorted in most most-recent-used order. Document.
11731 * gdbarch.h, gdbarch.c: Regenerate.
11732
11733 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11734
11735 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11736 instead of ->prev.
11737 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11738 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11739 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11740 instead of ->prev.
11741
11742 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11743
11744 Fix PR gdb/471.
11745 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11746 (build_builtin_type_vec128): Ditto.
11747 (append_composite_type_field): Fix calculation of type length in
11748 union case.
11749
11750 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11751
11752 * config/djgpp/README: Update.
11753
11754 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11755 compiler warnings.
11756
11757 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11758
11759 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11760 (alpha_setup_arbitrary_frame): ...to this.
11761 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11762 for alpha_setup_arbitrary_frame.
11763
11764 2002-04-18 Andrew Cagney <cagney@redhat.com>
11765
11766 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11767 * gdbarch.h, gdbarch.c: Regenerate.
11768
11769 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11770 * target.h (memory_breakpoint_from_pc): Update declaration.
11771 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11772
11773 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11774 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11775 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11776 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11777 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11778 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11779 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11780 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11781 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11782 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11783 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11784 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11785
11786 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11787 const pointer.
11788 * monitor.c (monitor_insert_breakpoint): Ditto.
11789 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11790
11791 * config/mcore/tm-mcore.h: Update copyright.
11792 * mem-break.c: Ditto.
11793 * xstormy16-tdep.c: Ditto.
11794
11795 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11796
11797 * p-exp.y: Add precedence rule for '^' token.
11798 This removes the shift/reduce conflicts.
11799 Remove the comment concerning these shift/reduce conflicts.
11800
11801 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11802
11803 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11804 (registers_powerpc_nofp): New register set for processors
11805 without floating point unit.
11806
11807 2002-04-18 David S. Miller <davem@redhat.com>
11808
11809 * MAINTAINERS: Add myself to write-after-approval.
11810
11811 2002-04-17 Michael Snyder <msnyder@redhat.com>
11812
11813 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11814
11815 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11816
11817 * rs6000-tdep.c (frame_initial_stack_address): Use
11818 frame_register_read to read the alloca_reg.
11819
11820 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11821
11822 * frame.c (find_saved_register): Find saved registers in the next
11823 not prev frame.
11824 Fix PR gdb/365.
11825
11826 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11827
11828 * gdbarch.sh (LANG): Set to ``c''.
11829
11830 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11831
11832 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11833
11834 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11835
11836 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11837 Update copyright.
11838
11839 * hpread.c (hpread_get_lntt): Add declaration.
11840 Also fix PR gdb/391.
11841
11842 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11843
11844 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11845 * aclocal.m4, configure: Re-generate.
11846 Fix PR gdb/391.
11847
11848 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11849
11850 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11851 instead of tm_print_insn.
11852
11853 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11854
11855 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11856
11857 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11858
11859 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11860 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11861 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11862
11863 2002-04-12 Don Howard <dhoward@redhat.com>
11864
11865 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11866 max_user_call_depth.
11867 (init_cmd_lists): Initialize the new value;
11868 * cli/cli-script.c (execute_user_command): Limit the call depth of
11869 user defined commands. This avoids a core-dump when user commands
11870 are infinitly recursive.
11871
11872 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11873
11874 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11875 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11876 from tdep struct instead of DEFAULT_LR_SAVE.
11877 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11878 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11879 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11880
11881 2002-04-12 Michael Snyder <msnyder@redhat.com>
11882
11883 * Remote.c: Spelling fix.
11884 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11885 If no symbol found for "sbrk", try "_sbrk".
11886 (make_output_phdrs): Use bfd_section_name.
11887 (gcore_copy_callback): Use bfd_section_name.
11888 * eval.c: Indentation fix-ups.
11889 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11890 in case it gets applied to an address that is already
11891 in the instruction space.
11892 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11893 * symfile.c: Fix indentation, long lines.
11894 * source.c: White space fix-up.
11895
11896 2002-04-12 Andrew Cagney <cagney@redhat.com>
11897
11898 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11899 * frame.c (frame_register_read): New function. Return non-zero on
11900 success.
11901 (read_relative_register_raw_bytes_for_frame): Delete.
11902 (read_relative_register_raw_bytes): Delete.
11903 * frame.h (frame_register_read): Declare.
11904 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11905 * sh-tdep.c: Ditto.
11906 * infcmd.c (do_registers_info): Ditto.
11907 * hppa-tdep.c: Ditto.
11908 * rs6000-tdep.c: Ditto.
11909 * h8500-tdep.c: Ditto.
11910 * mips-tdep.c: Ditto.
11911 * h8300-tdep.c: Ditto.
11912 * z8k-tdep.c: Ditto.
11913
11914 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11915
11916 From Jimi X <jimix@watson.ibm.com>:
11917 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11918 64-bit SysV ABI.
11919
11920 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11921
11922 From Jimi X <jimix@watson.ibm.com>:
11923 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11924 bfd info.
11925
11926 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11927
11928 From Jimi X <jimix@watson.ibm.com>:
11929 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11930 register sets for these processor variants.
11931
11932 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11933
11934 * regformats/reg-ppc.dat: Support FPSCR.
11935
11936 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11937
11938 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11939 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11940 Add fpscr as an invalid/unfetchable register.
11941 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11942 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11943 (fill_fpregset): Add support for register fpscr.
11944 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11945 (fill_gregset): Account for the fact that register ``mq'' might
11946 not exist.
11947 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11948 (registers_power): Add fpscr to register set at slot 71.
11949 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11950 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11951
11952 2002-04-11 Michael Snyder <msnyder@redhat.com>
11953
11954 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11955 * configure: Regenerate.
11956 * config.in: Regenerate.
11957 * acconfig.h: Add define for _SYSCALL32.
11958 * core-sol2.c: Remove #define _SYSCALL32.
11959 * solib-legacy.c: Remove #define _SYSCALL32.
11960
11961 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11962
11963 * stack.c (select_frame): Cleanup internal error message, do not
11964 use %p.
11965
11966 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11967
11968 * stack.c (select_frame): Check that selected_frame and the
11969 specified level are as expected.
11970 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11971 Update copyright.
11972 * frame.h (struct frame_info): Add field `level'. Update
11973 copyright.
11974 Work-in-progress PR gdb/464.
11975
11976 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11977
11978 * maint.c (maint_print_section_info): Rename print_section_info.
11979 (print_bfd_section_info, print_objfile_section_info): Update.
11980 * inferior.h (struct gdbarch): Add opaque declaration.
11981 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11982 * gdbarch.h: Regenerate.
11983
11984 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11985
11986 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11987 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11988 (kernel_u_size): Added.
11989 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11990 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11991
11992 2002-04-04 Jim Ingham <jingham@apple.com>
11993
11994 * valarith.c (find_size_for_pointer_math): New function, either returns
11995 the size for a pointer's target, returns 1 for void *, or errors for
11996 incomplete types.
11997 (value_add, value_sub): use find_size_for_pointer_math.
11998
11999 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12000
12001 * linux-low.c (linux_look_up_symbols): New hook.
12002 (linux_target_ops): Add linux_look_up_symbols.
12003 * remote-utils.c (decode_address): New function.
12004 (look_up_one_symbol): New function.
12005 * server.c (handle_query): Call target look_up_symbols hook.
12006 * server.h (look_up_one_symbol): Add prototype.
12007 * target.h (struct target_ops): Add look_up_symbols hook.
12008
12009 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12010
12011 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12012 override FP_REGNUM with frame->fp. Update copyright.
12013 * parse.c (num_std_regs, std_regs): Delete.
12014 (target_map_name_to_register): Do not search std_regs. Update
12015 function description.
12016 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12017 declarations. Update copyright.
12018 Fix PR gdb/251.
12019
12020 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12021
12022 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12023 after the last symbol in a block.
12024
12025 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12026
12027 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12028 is non zero as a found symbol.
12029
12030 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12031
12032 * findvar.c: Include "builtin-regs.h".
12033 (value_of_register): Call value_of_builtin_reg when applicable.
12034 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12035 (target_map_name_to_register): Call
12036 builtin_reg_map_name_to_regnum.
12037 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12038 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12039 (builtin_regs_h): Define.
12040 (builtin-regs.o): New target.
12041 (findvar.o): Add $(builtin_regs_h).
12042 * builtin-regs.c, builtin-regs.h: New files.
12043 * std-regs.c: New file.
12044 Partial fix for PR gdb/251.
12045
12046 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12047
12048 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12049 it's no longer required.
12050
12051 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12052
12053 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12054
12055 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12056
12057 From Jimi X <jimix@watson.ibm.com>:
12058 * rs6000-tdep.c (rs6000_software_single_step): Use
12059 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12060 and size. Use target_insert_breakpoint() and
12061 target_remove_breakpoint() to insert and remove breakpoints
12062 instead of explicit memory reads and writes.
12063
12064 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12065
12066 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12067 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12068 ELF_OBJECT_FORMAT ifdef.
12069
12070 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12071
12072 From Jimi X <jimix@watson.ibm.com>:
12073 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12074
12075 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12076
12077 From Jimi X <jimix@watson.ibm.com>:
12078 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12079 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12080
12081 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12082
12083 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12084 s/asprintf/xasprintf/.
12085 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12086
12087 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12088
12089 I believe Jeff Law denies responsability for this one:
12090 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12091 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12092 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12093 Work-around for PR gdb/366.
12094
12095 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12096
12097 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12098 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12099 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12100
12101 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12102
12103 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12104 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12105 information.
12106
12107 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12108
12109 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12110 maintainer.
12111
12112 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12113
12114 * README (Reporting Bugs in GDB): Document the bug web page as the
12115 prefered way of submitting bugs.
12116 Fix PR gdb/402.
12117
12118 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12119
12120 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12121 -1. Update comment.
12122 * gdbarch.h, gdbarch.c: Re-generate.
12123
12124 2002-04-07 Andreas Schwab <schwab@suse.de>
12125
12126 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12127 buffer to regcache_collect.
12128
12129 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12130
12131 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12132 * gdbarch.c, gdbarch.h: Re-generate.
12133
12134 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12135
12136 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12137 declaration. Fix -Werror.
12138
12139 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12140
12141 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12142 * gdbarch.c: Regenerate.
12143
12144 2002-04-05 Michael Snyder <msnyder@redhat.com>
12145
12146 * breakpoint.c (clear_command): Rewrite middle section to
12147 combine two loops with identical control conditions.
12148 Add a cleanup to eliminate a memory leak.
12149 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12150
12151 2002-04-05 H.J. Lu (hjl@gnu.org)
12152
12153 * solib-svr4.c (bkpt_names): Add "__start".
12154
12155 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12156
12157 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12158 as test for 64 bit target.
12159
12160 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12161
12162 * h8500-tdep.c (h8500_write_fp): Delete function.
12163 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12164 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12165 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12166 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12167 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12168 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12169 (s390_write_fp):
12170 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12171 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12172 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12173 (d10v_write_fp): Delete function.
12174 * inferior.h (write_fp, generic_target_write_fp): Delete
12175 declarations.
12176 * regcache.c (generic_target_write_fp): Delete function.
12177 (write_fp): Delete function.
12178 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12179 * gdbarch.h, gdbarch.c: Regenerate.
12180 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12181 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12182 (sparc64_write_fp): Delete declaration.
12183 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12184 (h8500_write_fp): Delete declaration.
12185
12186 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12187
12188 * sparc-tdep.c (sparc64_write_fp): Delete.
12189 (sparc_push_dummy_frame): Replace write_fp call with code to store
12190 the FP directly.
12191 (sparc_gdbarch_init): Do not initialize write_fp.
12192
12193 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12194
12195 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12196 clause.
12197
12198 2002-03-29 Jim Blandy <jimb@redhat.com>
12199
12200 * stack.c (get_selected_block): Add new argument `addr_in_block',
12201 used to return the exact code address we used to select the block,
12202 not just the block.
12203 * blockframe.c (get_frame_block, get_current_block): Same.
12204 * frame.h (get_frame_block, get_current_block,
12205 get_selected_block): Update declarations.
12206 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12207 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12208
12209 2002-04-05 Michael Snyder <msnyder@redhat.com>
12210
12211 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12212 warning message.
12213
12214 2002-04-05 J. Brobecker <brobecker@gnat.com>
12215
12216 * utils.c (xfullpath): New function.
12217 * defs.h (xfullpath): Add declaration.
12218 * source.c (openp): Use xfullpath in place of gdb_realpath to
12219 avoid resolving the basename part of filenames when the
12220 associated file is a symbolic link. This fixes a potential
12221 inconsistency between the filenames known to GDB and the
12222 filenames it prints in the annotations.
12223 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12224 to be able to match a filename with either the real filename, or
12225 the name of any symbolic link to this file.
12226 (lookup_partial_symtab): Ditto.
12227
12228 2002-04-04 Michael Snyder <msnyder@redhat.com>
12229
12230 * breakpoint.c: Add support for hardware breakpoints in overlays.
12231 (overlay_events_enabled): New state variable.
12232 (insert_breakpoints): Use overlay_events_enabled to decide
12233 whether to attempt to set a breakpoint at the overlay load addr.
12234 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12235 (remove_breakpoint): Use overlay_events_enabled to decide
12236 whether breakpoints need to be removed from overlay load addr.
12237 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12238 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12239 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12240 disable_overlay_breakpoints): Update overlay_events_enabled.
12241
12242 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12243
12244 * dwarf2read.c (struct function_range): New.
12245 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12246 (check_cu_functions): New.
12247 (read_file_scope): Initialize global function lists.
12248 Call dwarf_decode_line after processing children.
12249 (read_func_scope): Add to global function list.
12250 (dwarf_decode_lines): Call check_cu_functions everywhere
12251 record_line is called. Call record_line with a linenumber
12252 of 0 to mark sequence ends.
12253
12254 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12255
12256 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12257 change sync with glibc.
12258
12259 2002-04-03 Jim Blandy <jimb@redhat.com>
12260
12261 * configure.in: Call AC_C_INLINE.
12262 * configure: Regenerated.
12263
12264 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12265
12266 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12267 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12268
12269 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12270
12271 * NEWS: Mention gcore support on FreeBSD/i386.
12272
12273 * fbsd-proc.c: New file.
12274 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12275 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12276
12277 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12278 while statement.
12279
12280 2002-03-29 Jim Blandy <jimb@redhat.com>
12281
12282 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12283 unescaped newlines in string literals, but newer ones don't. So
12284 escape them.
12285
12286 2002-03-26 Michael Snyder <msnyder@redhat.com>
12287 Andrew Cagney <cagney@redhat.com>
12288
12289 * cli/cli-dump.c: New file. Dump memory to file,
12290 restore file to memory.
12291 * cli/cli-dump.h: New file.
12292 * Makefile.in: Add rules, dependencies for cli-dump.o.
12293 * NEWS: Mention new commands.
12294
12295 2002-03-28 Michael Snyder <msnyder@redhat.com>
12296
12297 * symfile.c (symbol_file_add): Move test for null symbols to later.
12298
12299 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12300
12301 From veksler at il.ibm.com:
12302 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12303 the xstrduped original path.
12304 Fix PR gdb/417.
12305
12306 2002-03-27 Michael Snyder <msnyder@redhat.com>
12307
12308 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12309 * infcmd.c (_initialize_infcmd): Ditto.
12310 * language.c (_initialize_language): Ditto.
12311 * symfile.c (_initialize_symfile): Ditto.
12312 * top.c (_init_main): Ditto.
12313 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12314
12315 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12316
12317 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12318 vector registers handling.
12319 (skip_prologue): Handle new AltiVec instructions. Fill in new
12320 fields of frame data.
12321 (frame_get_saved_regs): Fill in information for AltiVec registers.
12322
12323 2002-03-27 Jim Blandy <jimb@redhat.com>
12324
12325 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12326 a function; leave this macro here to invoke that function.
12327 (symbol_init_mangled_name): Declaration for that function.
12328 * symtab.c (symbol_init_mangled_name): New function.
12329
12330 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12331
12332 * valarith.c: Replace strerror with safe_strerror.
12333 * tracepoint.c: Ditto.
12334 * lin-lwp.c: Ditto.
12335 * go32-nat.c: Ditto.
12336 * inflow.c: Ditto.
12337 * gnu-nat.c: Ditto.
12338
12339 2002-03-27 Andreas Schwab <schwab@suse.de>
12340
12341 * event-top.c (command_line_handler): Remove useless if.
12342
12343 2002-03-27 Andreas Jaeger <aj@suse.de>
12344
12345 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12346 comment.
12347
12348 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12349
12350 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12351 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12352 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12353 (x86_64_linux_dr_get_status, supply_gregset),
12354 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12355 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12356 (x86_64_register_info_table): Add.
12357 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12358 (x86_64_register_raw_size, x86_64_register_virtual_type),
12359 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12360 general x86_64_register_info_table.
12361 (i386_gdbarch_init): gdbarch_register_bytes is now set
12362 dynamicaly during initialization.
12363 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12364 * gdbserver/linux-x86-64-low.c: Ditto.
12365
12366 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12367
12368 * gdbserver/server.c (main): Call target_signal_to_host_p
12369 and target_signal_to_host on signals received from the remote.
12370 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12371 target_signal_from_host on signals sent to the remote.
12372 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12373 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12374
12375 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12376
12377 * signals/signals.c: Include "server.h" in gdbserver build.
12378 (target_signal_from_name): Don't use STREQ.
12379 (_initialize_signals): Likewise. Don't include function in
12380 gdbserver build.
12381
12382 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12383
12384 * signals.c: Moved to...
12385 * signals/signals.c: Here.
12386 * Makefile (signals.o): Update.
12387
12388 2002-03-26 Jeff Law (law@redhat.com)
12389
12390 * somread.c (som_symtab_read): Remove some commented out code and
12391 updated related comments. Do not set the minimal symbol table to
12392 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12393 in a dynamic executable.
12394 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12395 where we are unable to find the minimal symbol for the given
12396 PC value.
12397
12398 2002-03-25 Jeff Law (law@redhat.com)
12399
12400 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12401
12402 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12403
12404 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12405
12406 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12407
12408 * command.h: Update copyright.
12409 (struct cmd_list_element): Replace definition with opaque
12410 declaration.
12411 (enum cmd_types): Document that it will eventually be moved to
12412 cli/cli-decode.h
12413 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12414 (MALLOCED_REPLACEMENT): Delete macro.
12415 * Makefile.in (cli_decode_h): Add $(command_h).
12416 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12417 * top.c: Include "cli/cli-decode.h".
12418 * completer.c: Include "cli/cli-decode.h".
12419 * maint.c: Include "cli/cli-decode.h".
12420 * cli/cli-decode.h: Include "command.h".
12421 (enum command_class): Delete.
12422 (enum cmd_types): Comment out.
12423 (enum cmd_auto_boolean): Delete.
12424 (enum var_types): Delete.
12425
12426 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12427
12428 * cli/cli-decode.c: Include "gdb_assert.h".
12429 (add_set_or_show_cmd): New static function.
12430 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12431 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12432 all fields, such as func, from the set command.
12433
12434 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12435
12436 * MAINTAINERS (sh-elf): Change warning flag to -w.
12437
12438 2002-03-23 Andrew Cagney <cagney@redhat.com>
12439
12440 * defs.h (error): Add printf format attribute.
12441 * thread-db.c (thread_from_lwp): Fix error format string.
12442 * stack.c (parse_frame_specification): Ditto.
12443 * cli/cli-decode.c (undef_cmd_error): Ditto.
12444 * scm-lang.c (scm_lookup_name): Ditto.
12445 * tracepoint.c (trace_error): Ditto.
12446 * remote-utils.c (usage): Ditto.
12447 * remote.c (compare_sections_command): Ditto.
12448 Fix PR gdb/328.
12449
12450 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12451
12452 * gdbtypes.c (append_composite_type_field): New function.
12453 (init_composite_type): New function.
12454 * gdbtypes.h (append_composite_type_field): Declare.
12455 (init_composite_type): Ditto.
12456
12457 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12458
12459 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12460 function.
12461 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12462 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12463 structure returning convention for SYSV ABI case, but not
12464 for GNU/Linux, FreeBSD, or NetBSD.
12465
12466 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12467
12468 * symtab.h (lookup_block_symbol): Add mangled_name argument
12469 to prototype.
12470
12471 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12472 with new mangled_name argument.
12473 * linespec.c (decode_line_1): Likewise.
12474 * valops (value_of_this): Likewise.
12475 * symtab.c (lookup_transparent_type): Likewise.
12476 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12477 (lookup_symbol): If we are given a mangled name, pass it down
12478 to lookup_symbol_aux.
12479 (lookup_block_symbol): If we are given a mangled name to check
12480 against, only return symbols which match it.
12481
12482 2002-03-22 Christopher Faylor <cgf@redhat.com>
12483
12484 * win32-nat.c (child_create_inferior): Check for proper shell to use
12485 here, in case the user changes it on the fly.
12486 (_initialize_inftarg): Remove shell path considerations.
12487
12488 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12489
12490 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12491 for gdbarch_max_register_raw_size and max_register_virtual_size.
12492 Adjust copyright year.
12493
12494 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12495
12496 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12497 in a function to cover the entire beginning of the function
12498 as well if it does not already.
12499
12500 2002-03-21 Tom Rix <trix@redhat.com>
12501
12502 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12503 (rs6000_ptrace64): Renamed from ptrace64.
12504
12505 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12506
12507 * gdbserver/remote-utils.c (remote_open): Don't call
12508 getprotobyname, we're all using TCP here so just use
12509 IPPROTO_TCP.
12510 * gdbserver/gdbreplay.c (remote_open): Ditto.
12511
12512 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12513
12514 * regcache.c (_initialize_regcache): No need to call
12515 build_regcache() at this time; it gets called whenever
12516 the gdbarch changes.
12517
12518 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12519
12520 * sparc-nat.c: Include sys/param.h where possible.
12521
12522 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12523
12524 Fix PR gdb/422.
12525 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12526 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12527 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12528 complex types.
12529 * stabsread.c (rs6000_builtin_type): Likewise.
12530 (read_sun_floating_type): Likewise.
12531
12532 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12533
12534 * stabsread.c (read_member_functions): Remove skip code for duplicate
12535 constructor/destructor methods. Use standard parsing for these
12536 methods and just do not chain them to the list of methods after
12537 parsing.
12538
12539 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12540
12541 * coffread.c: Remove redundant static declarations. Replace
12542 occurrences of `PTR' with `void *'.
12543 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12544 * top.h (quit_cover): Likewise.
12545 * defs.h (catch_errors): Likewise.
12546
12547 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12548
12549 * defs.h (XMALLOC): Define.
12550 * gdb-events.sh (XMALLOC): Delete macro.
12551 * gdb-events.c, gdb-events.h: Regenerate.
12552 * gdbarch.sh (XMALLOC): Delete macro.
12553 * gdbarch.c: Regenerate.
12554 * serial.c (XMALLOC): Delete macro.
12555 * ui-file.c (XMALLOC): Ditto.
12556 * ser-unix.h (XMALLOC): Ditto.
12557 * sh-tdep.c (XMALLOC): Ditto.
12558 * ui-out.c (XMALLOC): Ditto.
12559 * utils.c (XMALLOC): Ditto.
12560 * i386-tdep.c (XMALLOC): Ditto.
12561 * gdb-events.c (XMALLOC): Ditto.
12562 * d10v-tdep.c (XMALLOC): Ditto.
12563 * cli-out.c (XMALLOC): Ditto.
12564
12565 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12566 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12567 * ui-file.c, ui-out.c: Ditto.
12568
12569 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12570
12571 * command.h (struct cmd_list_element): Add field context.
12572 (set_cmd_context, get_cmd_context): Declare.
12573 * cli/cli-decode.h: Ditto.
12574 * cli/cli-decode.c (get_cmd_context): New function.
12575 (set_cmd_context): New function.
12576 (add_cmd): Initialize context.
12577 Part of fixing PR gdb/145 and PR gdb/146.
12578
12579 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12580
12581 * cli/cli-decode.c (cmd_type): New function.
12582 * command.h (cmd_type): Declare.
12583 * infrun.c (set_schedlock_func): Call function cmd_type.
12584 * kod.c (kod_set_os): Call cmd_type.
12585 * cris-tdep.c (cris_version_update): Use function cmd_type.
12586 (cris_mode_update, cris_abi_update): Ditto.
12587
12588 * command.h: (execute_cmd_post_hook): Declare.
12589 (execute_cmd_pre_hook): Declare.
12590 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12591 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12592 functions. Execute pre/post hook while ensuring that afterwords
12593 hook_in is cleared.
12594 * top.c (execute_command): Use execute_cmd_post_hook, and
12595 execute_cmd_pre_hook to execute pre/post commands.
12596 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12597 hook_stop_stub.
12598 (hook_stop_stub): Call execute_cmd_pre_hook.
12599
12600 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12601
12602 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12603 set'' and this leads to a core dump. Move xstrdup of
12604 operating_system to after check that it is not NULL.
12605
12606 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12607
12608 * kod.c (kod_set_os): Remove unnecessary check that
12609 ``command->type'' is set_cmd.
12610
12611 * valprint.c (set_input_radix): Use input_radix.
12612 (set_output_radix): Use output_radix.
12613 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12614 isn't reverted.
12615
12616 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12617
12618 * value.h (struct value): Delete field ``substring_addr''. Change
12619 aligner fields to force_doublest_align, force_longest_align,
12620 force_core_addr_align and force_pointer_aligh.
12621
12622 * value.h (struct value): Fix typo in above change.
12623
12624 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12625
12626 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12627 to fix internal_error from ``maintenance print architecture''.
12628
12629 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12630
12631 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12632 for gcc versions after gcc-2.8.1.
12633
12634 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12635
12636 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12637 for method resolution. Restore adjustment of ``this'' pointer after
12638 calling value_struct_elt, which was accidentally removed during the
12639 HP merge.
12640
12641 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12642
12643 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12644 value_of_register.
12645 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12646 get_saved_register.
12647 * value.h (value_of_register): Update.
12648
12649 2002-03-14 Richard Henderson <rth@redhat.com>
12650
12651 * configure.in: Detect declaration for canonicalize_file_name.
12652 * utils.c (canonicalize_file_name): Declare, if needed.
12653 (gdb_realpath): Prefer realpath if available and usable.
12654 * config.in, configure: Rebuild.
12655
12656 2002-03-14 Richard Henderson <rth@redhat.com>
12657
12658 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12659 a constant array bound.
12660
12661 * MAINTAINERS: Add myself to write-after-approval.
12662
12663 2002-03-14 Michael Snyder <msnyder@redhat.com>
12664
12665 * symfile.c (syms_from_objfile): Return immediately if no syms.
12666 (symbol_file_add): Return immediately if no syms.
12667 (find_sym_fns): Return immediately if no syms.
12668
12669 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12670
12671 * gdbserver/remote-util.c (remote_open): Print remote-side's
12672 IP address when remote debugging over the network.
12673
12674 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12675
12676 * config/sparc/fbsd.mh: Fix copyright.
12677 * config/sparc/fbsd.mt: Likewise.
12678
12679 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12680
12681 * MAINTAINERS: Fix typo in name of gdb warnings option.
12682 (x86-64): Fix formating so that this can be parsed by awk.
12683
12684 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12685
12686 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12687 * defs.h: Include "gdb/signals.h".
12688 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12689
12690 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12691
12692 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12693 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12694 from x86-64-tdep.h
12695
12696 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12697 Don Howard <dhoward@redhat.com>
12698
12699 * mips-tdep.c (ST0_FR): Define.
12700 (mips2_fp_compat): New function, temporarily disabled.
12701 (mips_read_fp_register_single): New function.
12702 (mips_read_fp_register_double): New function.
12703 (mips_print_register): Use them.
12704 (do_fp_register_row): Likewise.
12705
12706 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12707
12708 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12709 approval''.
12710
12711 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12712
12713 * stabsread.c (read_member_functions): Fix is_stub test for
12714 static member functions, improve comment.
12715
12716 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12717
12718 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12719 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12720 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12721 commands that set boolean values.
12722 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12723 (arm_rdi_resume): Always initialize PC.
12724 (arm_rdi_open): Don't use rslt as a boolean.
12725 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12726 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12727 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12728 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12729
12730 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12731
12732 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12733 * configure: Rebuilt.
12734
12735 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12736
12737 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12738 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12739
12740 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12741
12742 * cli/cli-decode.c (set_cmd_completer): New function.
12743 * command.h (set_cmd_completer): Declare.
12744 * cli/cli-decode.h (set_cmd_completer): Ditto.
12745
12746 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12747 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12748 * win32-nat.c (_initialize_inftarg): Ditto.
12749 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12750 * proc-api.c (_initialize_proc_api): Ditto.
12751 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12752 * source.c (_initialize_source): Ditto.
12753 * exec.c (_initialize_exec): Ditto.
12754 * solib.c (_initialize_solib): Ditto.
12755 * top.c (init_main): Ditto.
12756 * tracepoint.c (_initialize_tracepoint): Ditto.
12757 * symfile.c (_initialize_symfile): Ditto.
12758 * printcmd.c (_initialize_printcmd): Ditto.
12759 * infcmd.c (_initialize_infcmd): Ditto.
12760 * corefile.c (_initialize_core): Ditto.
12761
12762 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12763
12764 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12765
12766 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12767
12768 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12769
12770 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12771
12772 * NEWS: Update headings, 5.2 has branched.
12773
12774 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12775
12776 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12777 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12778 (register_addr, REGISTER_RAW_SIZE): Likewise.
12779 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12780 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12781
12782 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12783
12784 * MAINTAINERS (x86-64): Add myself.
12785 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12786 changed value_ptr -> struct value *
12787
12788 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12789
12790 * configure.host (sparc64-*-freebsd): Add.
12791 * configure.tgt: Likewise.
12792 * config/sparc/fbsd.mh: New file.
12793 * config/sparc/fbsd.mt: Likewise.
12794 * config/sparc/nm-fbsd.h: Likewise.
12795 * config/sparc/tm-fbsd.h: Likewise.
12796
12797 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12798
12799 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12800 regformats/reg-s390x.dat.
12801
12802 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12803
12804 * utils.c: Add FIXME explaining true/false problem.
12805
12806 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12807
12808 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12809
12810 2002-02-28 Michael Chastain <mec@shout.net>
12811
12812 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12813
12814 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12815
12816 * gdbserver/linux-s390-low.c: New file.
12817 * regformats/reg-s390.dat: New file.
12818 * regformats/reg-s390x.dat: New file.
12819 * gdbserver/configure.srv: Add S/390.
12820 * gdbserver/Makefile.in: Add S/390.
12821 * configure.tgt: Enable gdbserver for S/390.
12822
12823 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12824
12825 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12826 first line of the doc string for "info dos", except at the end of
12827 the sentence, since the short help stops at the first period.
12828
12829 2002-02-28 Jason Merrill <jason@redhat.com>
12830
12831 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12832
12833 2002-02-27 Fred Fish <fnf@redhat.com>
12834
12835 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12836 comment (dumy -> dummy).
12837
12838 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12839
12840 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12841
12842 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12843
12844 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12845
12846 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12847
12848 * gdbserver/acconfig.h: New file.
12849 * gdbserver/i387-fp.c: New file.
12850 * gdbserver/i387-fp.h: New file.
12851 * gdbserver/linux-x86-64.c: New file.
12852 * regformats/reg-x86-64.dat: New file.
12853 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12854 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12855 * gdbserver/configure.in: Add support for regsets.
12856 * gdbserver/config.in: Regenerate.
12857 * gdbserver/configure: Regenerate.
12858 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12859 * gdbserver/linux-low.h: New file.
12860 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12861 for regsets.
12862 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12863 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12864 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12865 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12866 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12867 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12868 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12869 "i387-fp.h". Add PTRACE_GETREGS and friends.
12870 * gdbserver/regcache.c (supply_register): New function.
12871 (supply_register_by_name): New function.
12872 (collect_register): New function.
12873 (collect_register_by_name): New function.
12874
12875 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12876
12877 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12878 (config.status): Add configure.srv dependency.
12879 (server_h): Add config.h dependency.
12880
12881 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12882
12883 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12884 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12885 * gdbserver/configure.srv: Change i386-*-linux* to use
12886 reg-i386-linux.o.
12887
12888 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12889
12890 * x86-64-tdep.c: Re-indent. Update copyright date.
12891
12892 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12893
12894 From Michal Ludvig <mludvig@suse.cz>:
12895 * x86-64-tdep.c (value.h): Delete.
12896 (gdb_assert.h): Include.
12897 (x86_64_register_convert_to_virtual,
12898 x86_64_register_convert_to_raw ): Add check which lets only
12899 floating-point values to be converted.
12900 (value_push): Delete.
12901 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12902 (i386_gdbarch_init): Number of register_bytes fixed.
12903
12904 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12905
12906 * MAINTAINERS: Add x86-64 target.
12907
12908 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12909
12910 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12911 * osfsolib.c (solib_map_sections): Ditto.
12912 * irix5-nat.c (solib_map_sections): Ditto.
12913 * corelow.c (gdb_check_format): Ditto.
12914 * symfile.c (symfile_bfd_open): Ditto.
12915 * solib.c (solib_map_sections): Ditto.
12916 Fix PR gdb/354.
12917
12918 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12919
12920 * remote.c (_initialize_remote): By default, disable ``e'' and
12921 ``E'' step out-of-range packets.
12922
12923 2002-02-26 Andreas Schwab <schwab@suse.de>
12924
12925 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12926 m68k_linux_frame_saved_pc.
12927 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12928 in_sigtramp.
12929 (SIGCONTEXT_PC_OFFSET): Remove.
12930 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12931 m68k_linux_sigtramp_saved_pc): New functions.
12932 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12933 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12934 (UCONTEXT_PC_OFFSET): Define.
12935 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12936 non-RT and RT signal trampolines.
12937
12938 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12939
12940 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12941 (TARGET_NBPG, STACK_END_ADDR): Delete
12942 (VARIABLES_INSIDE_BLOCK): Delete.
12943
12944 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12945
12946 * utils.c (perror_with_name): Make string parameter constant.
12947 (print_sys_errmsg): Ditto.
12948 (query): Ditto.
12949 * defs.h (perror_with_name): Update.
12950 (print_sys_errmsg): Update.
12951 (query): Update.
12952
12953 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12954
12955 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12956 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12957
12958 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12959
12960 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12961 if it already matches the current architecture from the exec file.
12962 Include arch-utils.h for gdbarch_info_init prototype.
12963 * Makefile.in (rs6000-nat.o): Update dependencies.
12964
12965 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12966
12967 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12968 list of exported variables.
12969
12970 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12971
12972 * gdbserver/configure.srv: New file.
12973 * gdbserver/configure.in: Use configure.srv instead
12974 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12975 from it.
12976 * gdbserver/configure: Regenerated.
12977 * gdbserver/terminal.h: New file.
12978 * gdbserver/Makefile.in: Update for configure changes. Remove
12979 more unneeded include paths.
12980
12981 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12982
12983 From wiz at danbala:
12984 * config/sparc/tm-sp64.h: Fix grammar and typos.
12985 Fix PR gdb/287.
12986
12987 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12988
12989 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12990 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12991 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12992 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12993 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12994 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12995 * s390-tdep.c: Ditto.
12996 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12997 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12998 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12999 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13000 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13001 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13002 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13003 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13004 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13005 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13006 Fix PR gdb/378.
13007
13008 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13009
13010 * lin-thread.c: Delete file.
13011 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13012 to gdb_proc_service.h.
13013 * configure: Re-generate.
13014
13015 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13016 * serial.c (serial_open): Delete check for "ocd".
13017 Fix PR gdb/349.
13018
13019 * Makefile.in (linux-thread.o): Delete target.
13020 * linux-thread.c: Delete file.
13021
13022 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13023 renamed SH files to be consistent.
13024
13025 * symtab.c (sort_search_symbols): Use xfree.
13026
13027 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13028
13029 * arm-linux-tdep.c (arm_linux_init_abi): Register
13030 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13031 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13032 definition with undef, since we don't want the sysvr4 definition.
13033 (SKIP_TRAMPOLINE_CODE): Likewise.
13034
13035 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13036
13037 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13038
13039 * configure.in: (AC_CHECK_FUNCS) Added test for
13040 canonicalize_file_name Regenerated.
13041 * config.in, configure: Regenerated.
13042 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13043 defined use canonicalize_file_name.
13044
13045 2002-02-23 Michael Chastain <mec@shout.net>
13046
13047 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13048
13049 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13050
13051 * README: Remove references to cygnus.com.
13052 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13053 dot com'' form. Remove references to cygnus.com and sourceware.
13054
13055 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13056
13057 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13058 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13059 1003.1-2001 no longer allows "head -1".
13060 * gdb/Makefile.in (version.c): Likewise.
13061 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13062 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13063 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13064
13065 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13066
13067 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13068 * command.h (cmd_cfunc_eq): Declare.
13069 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13070
13071 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13072 ``struct cmd_list_element *''.
13073 * cli/cli-cmds.c (is_complete_command): Update. Use
13074 cmd_cfunc_eq.
13075 * top.c (execute_command): Pass the command to
13076 is_complete_command.
13077 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13078
13079 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13080
13081 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13082 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13083 architecture defines.
13084 * s390-tdep.c (s390_gdbarch_init): Likewise.
13085
13086 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13087
13088 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13089 (arm_linux_push_arguments): Likewise.
13090 (arm_linux_init_abi): Register them. Also register linux-specific
13091 call_dummy_words.
13092 (find_minsym_and_objfile): Use strcmp, not STREQ.
13093 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13094 (arm_linux_call_dummy_words): Delete declaration.
13095 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13096 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13097 declarations.
13098 (LOWEST_PC): Delete.
13099
13100 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13101
13102 * maint.c (print_section_info): Do not prepend `0x' to filepos
13103 output, it will be handled by local_hex_string_custom.
13104
13105 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13106
13107 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13108 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13109 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13110
13111 2002-02-22 Jim Blandy <jimb@redhat.com>
13112
13113 Indicate that the bcache functions don't change the strings
13114 they're passed.
13115 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13116 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13117
13118 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13119
13120 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13121
13122 2002-02-21 Christopher Faylor <cgf@redhat.com>
13123
13124 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13125 find the complete path to a loaded DLL.
13126
13127 2002-02-21 Fred Fish <fnf@redhat.com>
13128
13129 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13130 that marks the end of the range of a function, enter a line number
13131 entry that has a line number of zero and a PC offset that matches
13132 the end of the function. This starts a range of PC's for which no
13133 line number information is known.
13134 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13135 PC's for which no line number info is found (line number is zero)
13136 then we didn't find any valid line information.
13137 * symtab.h: Document use of zero line number entry.
13138
13139 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13140
13141 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13142 (have_ptrace_getvrregs): Define for run time checks.
13143 (gdb_vrregset_t): New type for Altivec register handling.
13144 (fetch_register, store_register): Fetch/store altivec register
13145 when needed.
13146 (fetch_altivec_register, store_altivec_register): New functions.
13147 (supply_vrregset, fill_vrregset): New functions.
13148 (fetch_altivec_registers, store_altivec_registers): New functions.
13149 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13150 registers as well.
13151
13152 2002-02-21 Jiri Smid <smid@suse.cz>
13153
13154 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13155
13156 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13157
13158 * Makefile.in (armnbsd-nat.o): Update dependencies.
13159 * armnbsd-nat.c (supply_gregset): New function. Common code to
13160 supply the integer register set.
13161 (supply_fparegset): New function. Similar for FPA registers.
13162 (fetch_regs, fetch_fp_regs): Use them.
13163 (fetch_core_registers): Likewise.
13164 (fetch_elfcore_registers): New function.
13165 (arm_netbsd_elfcore_fns): New core-file type specification.
13166 (_initialize_arm_netbsd_nat): Register it.
13167
13168 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13169
13170 * armnbsd-nat.c: Include gdbcore.h.
13171 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13172 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13173 'void' to declaration, to shut up ARI.
13174 (fetch_core_registers): Make static. Rewrite using supply_register.
13175 (arm_netbsd_core_fns): New core-file type specification.
13176 (_initialize_arm_netbsd_nat): New function.
13177
13178 2002-02-21 Christopher Faylor <cgf@redhat.com>
13179
13180 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13181 value.
13182
13183 2002-02-20 Christopher Faylor <cgf@redhat.com>
13184
13185 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13186 fails.
13187
13188 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13189
13190 * jv-exp.y (parse_number): Change type of implicit longs
13191 to builtin_type_uint64.
13192
13193 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13194
13195 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13196 to be an integer instead of a `union wait'.
13197
13198 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13199
13200 * mips-linux-nat.c: Call the operating system GNU/Linux.
13201 * mips-linux-tdep.c: Likewise.
13202 * mips-tdep.c: Likewise.
13203
13204 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13205
13206 Fix PR gdb/265.
13207 * jv-exp.y (parse_number): Handle 64-bit integers.
13208
13209 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13210
13211 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13212 AC_STDC_HEADERS to AC_HEADER_STDC.
13213 * gdbserver/configure: Regenerated.
13214
13215 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13216
13217 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13218 is defined.
13219 * sparc-tdep.c (get_longjmp_target): Likewise.
13220
13221 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13222
13223 * News: Add news about ARM and Multi-arch. Mention the new target
13224 arm*-*-netbsd*.
13225
13226 2002-02-19 Jim Blandy <jimb@redhat.com>
13227
13228 * stabsread.c (error_type_complaint): Improve error message.
13229
13230 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13231
13232 * gdbserver/README: Update documentation.
13233 * gdbserver/configure.in: Update configury to match documentation.
13234 * gdbserver/Makefile.in: Likewise.
13235 * gdbserver/configure: Regenerated.
13236 * gdbserver/aclocal.m4: New file, generated by aclocal.
13237 * gdbserver/config.in: New file, generated by autoheader.
13238
13239 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13240
13241 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13242 armnbsd-nat.c.
13243
13244 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13245
13246 * arm-tdep.h (enum arm_float_model): New enum.
13247 (struct gdbarch_tdep): Add fp_model.
13248 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13249 up floating-point conversions until we know the floating-point model
13250 in use by the inferior. Don't complain about being unable to
13251 determine the ABI of the inferior when we don't have one.
13252 (arm_extract_return_value): Support different floating-point models.
13253 (arm_store_return_value): Likewise.
13254 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13255 ARM_FLOAT_SOFT.
13256 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13257
13258 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13259
13260 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13261 of ``current_gdbarch''.
13262
13263 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13264
13265 * armnbsd-nat.c : ANSIfy all function declarations.
13266 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13267 (fetch_inferior_registers): Re-implement in terms of above.
13268 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13269 (store_inferior_registers): Re-implement in terms of above.
13270
13271 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13272
13273 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13274 kernel.
13275 * arm-linux-tdep.c: Likewise.
13276 * config/arm/tm-linux.h: Likewise.
13277
13278 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13279
13280 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13281 * config/arm/nbsd.mt (TM_FILE): Delete.
13282 * config/arm/tm-nbsd.h: Delete.
13283
13284 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13285
13286 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13287 Initialize CALL_DUMMY_LENGTH.
13288
13289 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13290
13291 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13292 function.
13293 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13294 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13295 defines one thing and that is incorrect for this port.
13296 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13297
13298 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13299
13300 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13301
13302 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13303
13304 * win32-nat.c (display_selector): New function. Displays information
13305 about the information returned by GetThreadSelectorEntry API function.
13306 (display_selectors): New function. Displays the infomation of
13307 the selector given as argument, or of CS, DS ans FS selectors
13308 if no argument is given.
13309 ( _initialize_inftarg): Add "w32" as info prefix command.
13310 Add "info w32 selector" as command calling display_selectors.
13311
13312 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13313
13314 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13315 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13316 if not defined.
13317
13318 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13319
13320 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13321
13322 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13323
13324 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13325 (arm_fix_call_dummy): Call it.
13326 (arm_call_dummy_breakpoint_offset): Delete.
13327 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13328 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13329
13330 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13331
13332 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13333 Default to func_frame_chain_valid.
13334 * gdbarch.h, gdbarch.c: Re-generate.
13335 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13336
13337 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13338
13339 * ppc-linux-nat.c: Update copyright.
13340 (fetch_register, store_register): Add tid parameter, don't compute
13341 tid here.
13342 (fetch_ppc_registers, store_ppc_registers): Add tid
13343 parameter. Pass it along to callees.
13344 (fetch_inferior_registers, store_inferior_registers): Compute tid
13345 here, and pass it to calleed functions.
13346 (fill_gregset, supply_fpregset): Clean up formatting.
13347
13348 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13349
13350 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13351 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13352
13353 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13354
13355 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13356 * gdbarch.c gdbarch.h: Regenerate.
13357 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13358 function.
13359 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13360 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13361 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13362
13363 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13364 * arm-tdep.c (arm_get_longjmp_target): New function.
13365 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13366 this to a positive value register arm_get_longjmp_target as the
13367 longjmp handler.
13368 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13369 (arm_linux_init_abi): Set up longjmp description in tdep.
13370 * armnbsd-nat.c (get_longjmp_target): Delete.
13371 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13372 description in tdep.
13373 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13374 (get_longjmp_target): Delete declaration.
13375 (GET_LONGJMP_TARGET): Delete.
13376 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13377 (GET_LONGJMP_TARGET): Delete.
13378
13379 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13380
13381 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13382 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13383 of ``current_gdbarch''.
13384
13385 2002-02-17 Tom Tromey <tromey@redhat.com>
13386
13387 * cli/cli-cmds.c (compare_strings): New function.
13388 (complete_command): Only print each unique item once.
13389 * completer.h (complete_line): Declare.
13390 * completer.c (complete_line): New function.
13391 (line_completion_function): Use it.
13392
13393 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13394
13395 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13396 * gdbarch.h, gdbarch.c: Re-generate.
13397
13398 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13399
13400 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13401
13402 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13403
13404 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13405 * valops.c (value_arg_coerce): Don't take the address of a reference
13406 to convert an argument to a reference.
13407
13408 2002-02-15 Christopher Faylor <cgf@redhat.com>
13409
13410 * win32-nat.c (get_image_name): New function.
13411 (handle_load_dll): Use get_image_name function.
13412 (get_child_debug_event): Avoid registering debug events until possibly
13413 execed process is started.
13414 (child_create_inferior): Allow invocation via shell so that command
13415 line redirection, etc. works ok.
13416 (_initialize_inftarg): Add new command: "set shell" to control whether
13417 a shell is used to start a process.
13418
13419 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13420
13421 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13422 instead of find_register_by_number.
13423 (cannot_store_register): Likewise.
13424
13425 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13426
13427 * dwarf2read.c: Replace fprintf (stderr, ...) by
13428 fprintf_unfiltered (gdb_stderr, ...).
13429
13430 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13431
13432 * gdbserver/gdbserver.1: Document --attach.
13433
13434 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13435
13436 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13437 descriptions.
13438 * arm-tdep.c (arm_default_arm_le_breakpoint)
13439 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13440 (arm_default_thumb_be_breakpoint): New. Initialize them from
13441 traditional breakpoint defines.
13442 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13443 (arm_gdbarch_init): Initialize new breakpoint variables.
13444 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13445 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13446 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13447 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13448 code out to ...
13449 (arm_netbsd_init_abi_common): ... here; new function.
13450 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13451 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13452 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13453 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13454
13455 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13456
13457 * arm-tdep.h (enum arm_abi): New enum.
13458 (struct gdbarch_tdep): New structure.
13459 (LOWEST_PC): Provide a default.
13460 (arm_gdbarch_register_os_abi): Declare new function.
13461 * arm-tdep.c (arm_abi_names): New array.
13462 (process_note_abi_tag_sections): New function.
13463 (get_elfosabi): New function.
13464 (arm_gdbarch_register_os_abi): New function.
13465 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13466 support for that ABI has been built in, then call the appropriate
13467 configuration routine. Use gdbarch_num_regs() to get the number
13468 of registers.
13469 (arm_dump_tdep): New function.
13470 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13471 place-holder functions.
13472 (_initialize_arm_tdep): Register them.
13473 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13474
13475 * armnbsd-tdep.c: New file.
13476 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13477 * config/arm/nbsd.mt (TDEPFILES): Add it.
13478 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13479
13480 * armnbsd-nat.c: Include regcache.h.
13481 * Makefile.in (armnbsd-nat.o): Update dependency list.
13482
13483 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13484
13485 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13486
13487 * gdbserver/Makefile.in: Fix typos in target rules.
13488
13489 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13490
13491 Fix part of PR gdb/267.
13492 * linespec.c (find_methods): Handle constructors specially for now.
13493
13494 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13495
13496 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13497 handling.
13498 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13499 standard_coerce_float_to_double().
13500
13501 2002-02-14 Christopher Faylor <cgf@redhat.com>
13502
13503 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13504 GDBINIT_FILENAME.
13505
13506 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13507
13508 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13509 find_variant_by_name, because it confuses the multiarch
13510 framework. Return NULL if there isn't an architecture with the
13511 user supplied name, instead of forcing a different one without
13512 recording the change with the multiarch machinery.
13513 (find_variant_by_name): Delete.
13514
13515 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13516
13517 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13518 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13519
13520 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13521
13522 * stack.c (print_frame_info_base): When calling
13523 print_frame_info_listing_hook, set current_source_symtab.
13524
13525 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13526
13527 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13528 and remove unused $(INCLUDE_DIR).
13529 Add regcache.c to OBS.
13530 Add generated register protocol files to clean target.
13531 Update dependencies for new objects, obsolete old target code.
13532
13533 * gdbserver/linux-low.c: Remove all platform-specific code to
13534 new files. Remove various dead code. Update to use regcache
13535 functionality.
13536 * gdbserver/remote-utils.c (fromhex): Add return statement
13537 to quiet warning.
13538 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13539 constant.
13540 (input_interrupt): Add integer parameter to match prototype
13541 of a signal handler.
13542 (outreg): Use register_data ().
13543 (prepare_resume_reply): Use gdbserver_expedite_regs.
13544 * gdbserver/server.c (main): Dynamically allocate own_buf because
13545 PBUFSIZ is no longer constant. Use registers_to_string () and
13546 registers_from_string ().
13547 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13548 for error (), fatal (), and warning (). Update definition of
13549 PBUFSIZ to use regcache functionality. Add include guard.
13550 * gdbserver/utils.c (fatal): Add missing ``const''.
13551 (warning): New function.
13552
13553 * regformats/regdat.sh: Include "regcache.h" in generated files.
13554 Provide init_registers () function.
13555 * regformats/regdef.h: Add prototype for set_register_cache ().
13556 Add include guard.
13557
13558 * gdbserver/linux-arm-low.c: New file.
13559 * gdbserver/linux-i386-low.c: New file.
13560 * gdbserver/linux-ia64-low.c: New file.
13561 * gdbserver/linux-m68k-low.c: New file.
13562 * gdbserver/linux-mips-low.c: New file.
13563 * gdbserver/linux-ppc-low.c: New file.
13564 * gdbserver/linux-sh-low.c: New file.
13565
13566 * gdbserver/regcache.c: New file.
13567 * gdbserver/regcache.h: New file.
13568
13569 * gdbserver/low-linux.c: Removed obsolete file.
13570
13571 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13572
13573 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13574 * config/i386/linux.mt: Likewise.
13575 * config/ia64/linux.mt: Likewise.
13576 * config/m68k/linux.mh: Likewise.
13577 * config/powerpc/linux.mh: Likewise.
13578 * config/mips/linux.mt: Likewise.
13579
13580 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13581
13582 * config/i386/i386lynx.mh: Mark gdbserver variables
13583 as (currently) obsolete for this target.
13584 * config/i386/nbsd.mt: Likewise.
13585 * config/i386/nbsdelf.mt: Likewise.
13586 * config/m32r/m32r.mt: Likewise.
13587 * config/m68k/m68klynx.mh: Likewise.
13588 * config/m68k/nbsd.mt: Likewise.
13589 * config/m68k/sun3os4.mh: Likewise.
13590 * config/mips/vr5000.mt: Likewise.
13591 * config/ns32k/nbsd.mt: Likewise.
13592 * config/pa/hppabsd.mh: Likewise.
13593 * config/pa/hppaosf.mh: Likewise.
13594 * config/powerpc/nbsd.mt: Likewise.
13595 * config/rs6000/rs6000lynx.mh: Likewise.
13596 * config/s390/s390.mt: Likewise.
13597 * config/s390/s390x.mt: Likewise.
13598 * config/sparc/sparclynx.mh: Likewise.
13599 * config/sparc/sun4os4.mh: Likewise.
13600 * config/i386/x86-64linux.mt: Likewise.
13601 * config/sparc/linux.mh: Likewise.
13602
13603 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13604
13605 * configure.tgt: Configure gdbserver only for known working
13606 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13607 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13608 SUBDIRS if it is configured. Update comment for ${nativefile}.
13609 * configure: Regenerated.
13610
13611 2002-02-13 Michael Snyder <msnyder@redhat.com>
13612
13613 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13614
13615 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13616 (default_gcore_mach): Just return 0, work around a problem in bfd.
13617 (default_gcore_target): OK to return NULL if exec_bfd is null.
13618 (make_mem_sec): Use a cast, avoid a warning.
13619
13620 * procfs.c (find_memory_regions_callback): Use a cast instead of
13621 calling host_pointer_to_address (which complains if
13622 sizeof (host pointer) != sizeof (target pointer)).
13623 (procfs_make_note_section): Avoid overflow in psargs string.
13624
13625 * procfs.c (procfs_make_note_section): Make the default
13626 implementation return an error.
13627
13628 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13629
13630 * procfs.c (procfs_make_note_section): Provide a default definition
13631 (for alpha-dec-osf4.0f). Fix typos.
13632
13633 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13634
13635 * linux-proc.c: Add include of regcache.h.
13636 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13637
13638 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13639
13640 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13641 * memattr.c (create_mem_region): Disallow useless empty region.
13642 Regions are half-open intervals, so allow [A..B) [B..C) as
13643 non-overlapping.
13644
13645 2002-02-13 Michael Chastain <mec@shout.net>
13646
13647 * defs.h: Kill CONST_PTR.
13648 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13649 * c-lang.c (c_builtin_types): Likewise.
13650 * ch-lang.c (ch_builtin_types): Likewise.
13651 * f-lang.c (f_builtin_types): Likewise.
13652 * language.c (unknown_builtin_types): Likewise.
13653 * m2-lang.c (m2_builtin_types): Likewise.
13654 * p-lang.c (pascal_builtin_types): Likewise.
13655 * scm-lang.c (c_builtin_types): Likewise.
13656
13657 2002-02-13 Keith Seitz <keiths@redhat.com>
13658
13659 * arm-tdep.h (arm_get_next_pc): Add declaration.
13660
13661 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13662
13663 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13664 with other related struct-returning functions.
13665 (arm_extract_struct_value_address): New function.
13666 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13667 initialize float_format, double_format and long_double_format as
13668 appropriate to the endianness of the target.
13669 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13670 (arm_use_struct_convention): Delete declaration.
13671 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13672
13673 2002-02-13 Keith Seitz <keiths@redhat.com>
13674
13675 * defs.h (core_addr_to_string_nz): New function.
13676
13677 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13678
13679 Apply missing bits of 2002-01-15 patch.
13680 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13681 (fill_fpregset): Use i387_fill_fsave.
13682
13683 2002-02-12 Keith Seitz <keiths@redhat.com>
13684
13685 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13686 (core_addr_to_string_nz): New function.
13687
13688 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13689
13690 * arm-linux-nat.c: Really include arm-tdep.h.
13691 * config/arm/tm-linux.h (struct type, struct value): Declare.
13692
13693 2002-02-11 Michael Snyder <msnyder@redhat.com>
13694
13695 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13696 (gcore section): Ifdef for Solaris and Unixware only.
13697 (procfs_do_thread_registers): Unixware needs one lwpstatus
13698 per thread (not one prstatus or pstatus).
13699 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13700 not over all gdb threads. For unixware, call elfcore_write_pstatus
13701 once before iterating over threads.
13702
13703 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13704
13705 * arm-tdep.h: New file.
13706 * arm-tdep.c: Include arm-tdep.h.
13707 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13708 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13709 (arm_print_float_info, arm_register_type, convert_to_extended)
13710 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13711 (arm_extract_return_value, arm_register_name): Make static.
13712 (arm_software_single_step): Similarly. Fix types in declaration.
13713 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13714 (arm_store_return_value, arm_store_struct_return): New functions.
13715 (arm_gdbarch_init): Register the above functions. Also register
13716 call_dummy_start_offset, sizeof_call_dummy_words,
13717 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13718 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13719 max_register_virtual_size, register_size. Set up
13720 prologue_cache.saved_regs here, rather than ...
13721 (_initialize_arm_tdep): ... here.
13722 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13723 declarations.
13724 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13725 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13726 (arm_print_float_info, arm_register_type, convert_to_extended)
13727 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13728 (arm_extract_return_value, arm_register_name): Delete declarations.
13729 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13730 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13731 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13732 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13733 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13734 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13735 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13736 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13737 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13738 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13739 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13740 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13741 interface.
13742 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13743 * remote-rdi.c remote-rdp.c: Likewise.
13744 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13745 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13746 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13747 definition.
13748
13749 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13750 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13751 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13752 from non-ARM_ prefixed definitions.
13753 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13754 all uses of above.
13755 * remote-rdi.c remote-rdp.c: Likewise.
13756 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13757
13758 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13759
13760 * arm-tdep.c (arm_frameless_function_invocation)
13761 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13762 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13763 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13764 (arm_pop_frame, arm_get_next_pc): Make static.
13765 (arm_gdbarch_init): Register above in gdbarch structure.
13766 (arm_read_fp): Renamed from arm_target_read_fp.
13767 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13768 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13769 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13770 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13771 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13772 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13773 (arm_pc_is_thumb_dummy): Delete declarations.
13774 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13775 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13776 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13777 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13778
13779 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13780
13781 * symtab.c (compare_search_syms): New function.
13782 (sort_search_symbols): New function.
13783 (search_symbols): Sort symbols after searching rather than
13784 before.
13785
13786 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13787
13788 * NEWS: Linux -> GNU/Linux.
13789
13790 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13791
13792 * gdbarch.sh: For for level one methods, disallow a definition
13793 when partially multi-arched. Add comments explaining rationale.
13794 * gdbarch.h: Re-generate.
13795
13796 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13797
13798 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13799 multi-arch partial.
13800
13801 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13802
13803 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13804 field. Use diff -u.
13805 * gdbarch.c: Re-generate.
13806
13807 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13808
13809 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13810 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13811 partial.
13812
13813 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13814
13815 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13816 multi-arch partial.
13817 (PUSH_ARGUMENTS): Switch to using predefault.
13818 * gdbarch.c: Regenerate.
13819
13820 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13821
13822 * valops.c (PUSH_ARGUMENTS): Delete definition.
13823 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13824 partial. Default to default_push_arguments.
13825 * gdbarch.h, gdbarch.c: Regenerate.
13826
13827 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13828
13829 * defs.h (throw_exception): Rename return_to_top_level. Update
13830 comments.
13831 * utils.c (error_stream, internal_verror, quit): Ditto.
13832 * top.c (throw_exception, catcher): Ditto.
13833 * sparclet-rom.c (sparclet_load): Ditto.
13834 * remote.c (interrupt_query, minitelnet): Ditto.
13835 * remote-sds.c (interrupt_query): Ditto.
13836 * remote-mips.c (mips_error, mips_kill): Ditto.
13837 * ocd.c (interrupt_query): Ditto.
13838 * monitor.c (monitor_interrupt_query): Ditto.
13839 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13840 * target.h: Update comment.
13841
13842 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13843
13844 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13845
13846 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13847 default_double_format.
13848 * gdbarch.h, gdbarch.c: Re-generate.
13849 * findvar.c (floatformat_unknown): Delete variable definition.
13850 * doublest.h (floatformat_unknown): Delete variable declaration.
13851
13852 2002-02-09 Jim Blandy <jimb@redhat.com>
13853
13854 * stabsread.c (read_type): Add code to parse Sun's syntax for
13855 prototyped function types.
13856
13857 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13858
13859 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13860 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13861
13862 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13863
13864 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13865 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13866 now _initialize_xcoffsolib gets called again and overrides the
13867 commands from solib.c in a native configuration.
13868
13869 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13870
13871 * doublest.c (store_typed_floating): Don't try to return a value.
13872 Fixes PR gdb/290.
13873
13874 2002-02-08 Jim Blandy <jimb@redhat.com>
13875
13876 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13877 is prototyped and has no arguments, print its argument list as
13878 `(void)'.
13879
13880 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13881
13882 * MAINTAINERS (write-after-approval): Add myself.
13883 (paper-trail): I've escaped!
13884
13885 2002-02-08 Christopher Faylor <cgf@redhat.com>
13886
13887 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13888 changes.
13889 (_initialize_check_for_gdb_ini): Ditto.
13890
13891 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13892
13893 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13894 xaprintf -> xasprintf.
13895
13896 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13897
13898 * win32-nat.c: Remove use of printf and sprintf functions.
13899
13900 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13901
13902 * arm-tdep.c (arm_frame_chain_valid): Make static.
13903 (arm_push_arguments): Likewise.
13904 (arm_gdbarch_init): New function.
13905 (_initialize_arm_tdep): Call it.
13906 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13907 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13908 (FRAME_CHAIN_VALID): Delete.
13909 (arm_frame_chain_valid): Delete declaration.
13910 (PUSH_ARGUMENTS): Delete.
13911 (arm_push_arguments): Delete declaration.
13912 (CALL_DUMMY_P): Delete.
13913
13914 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13915 Corinna Vinschen <vinschen@redhat.com>
13916
13917 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13918 on builtin float types.
13919
13920 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13921
13922 * utils.c: Include <curses.h> before "bfd.h".
13923 * tui/tui-hooks.c: Likewise.
13924 * tui/tui.c: Likewise.
13925 * tui/tuiCommand.c: Likewise.
13926 * tui/tuiData.c: Likewise.
13927 * tui/tuiDataWin.c: Likewise.
13928 * tui/tuiDisassem.c: Likewise.
13929 * tui/tuiGeneralWin.c: Likewise.
13930 * tui/tuiIO.c: Likewise.
13931 * tui/tuiLayout.c: Likewise.
13932 * tui/tuiRegs.c: Likewise.
13933 * tui/tuiSource.c: Likewise.
13934 * tui/tuiSourceWin.c: Likewise.
13935 * tui/tuiStack.c: Likewise.
13936 * tui/tuiWin.c: Likewise.
13937
13938 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13939
13940 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13941 to include space for pseudoregs as well. Update loops accordingly.
13942 (sh_fp_frame_init_saved_regs): Ditto.
13943 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13944
13945 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13946
13947 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13948 Add Richard Earnshaw to Arm maintainers.
13949
13950 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13951
13952 * defs.h (warning_begin): Delete declaration.
13953
13954 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13955 Delete macro.
13956
13957 2002-02-07 Michael Snyder <msnyder@redhat.com>
13958
13959 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13960 Logic bug, remove misplaced else.
13961
13962 2002-02-07 Klee Dienes <klee@apple.com>
13963
13964 * fork-inferior.c (fork_inferior): Add '!' to the list of
13965 characters that need to be quoted when building a string for the
13966 shell. Quote '!' specifically with a backslash, since CSH chokes
13967 when trying to evaluate "str!str".
13968
13969 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13970
13971 * rdi-share/host.h: Only provide a typedef for bool if it is not
13972 defined.
13973
13974 2002-02-04 Michael Snyder <msnyder@redhat.com>
13975
13976 * breakpoint.h (enum bptype): Add new overlay event bp type.
13977 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13978
13979 * breakpoint.c (create_internal_breakpoint): New function.
13980 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13981 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13982 (create_thread_event_breakpoint): Ditto.
13983 (create_solib_event_breakpoint): Ditto.
13984 (create_overlay_event_breakpoint): New function.
13985 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13986 (update_breakpoints_after_exec): Delete and re-initialize
13987 overlay event breakpoints after an exec. Add FIXME comment
13988 about longjmp breakpoint.
13989 (print_it_typical): Ignore overlay event breakpoints.
13990 (print_one_breakpoint): Ditto.
13991 (mention): Ditto.
13992 (bpstat_what): Do not stop for overlay event breakpoints.
13993 (delete_breakpoint): Don't delete overlay event breakpoints.
13994 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13995 (breakpoint_re_set): Re-create overlay event breakpoint.
13996
13997 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13998 (overlay_manual_command): Disable overlay breakpoints.
13999 (overlay_off_command): Disable overlay breakpoints.
14000
14001 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14002
14003 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14004 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14005 to here from config/tm-arm.h.
14006 (coff_sym_is_thumb): Make static.
14007 (arm_elf_make_msymbol_special): New function.
14008 (arm_coff_make_msymbol_special): New function.
14009 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14010 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14011 (coff_sym_is_thumb): Delete declaration.
14012 (arm_elf_make_msymbol_special): Declare.
14013 (arm_coff_make_msymbol_special): Declare.
14014 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14015 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14016
14017 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14018
14019 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14020
14021 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14022
14023 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14024 * gdbarch.c gdbarch.h: Regenerate.
14025 * arch-utils.c (default_print_float_info): New function.
14026 * arch-utils.h (default_print_float_info): Prototype it.
14027 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14028 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14029 (PRINT_FLOAT_INFO): Document it.
14030
14031 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14032 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14033 (PRINT_FLOAT_INFO): Define.
14034
14035 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14036
14037 * win32-nat.c (_initialize_check_for_gdb_ini):
14038 Add typecast to sprintf argument to suppress a warning.
14039
14040 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14041
14042 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14043 to allow easier handling of pass state.
14044 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14045 that gives exception name and address.
14046 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14047 and set last_sig value to ourstatus->value.sig. Some missing
14048 exceptions added.
14049 (child_continue): Correctly report continue_status.
14050 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14051 TARGET_SIGNAL_0 (new default value).
14052 (child_resume): consider sig argument passed to decide if
14053 the exception should be passed to debuggee or not.
14054
14055 2002-02-05 Michael Snyder <msnyder@redhat.com>
14056
14057 * regcache.c (fetch_register): Call target_fetch_register
14058 only if we don't call FETCH_PSEUDO_REGISTER.
14059 (store_register): Call target_store_register only if we
14060 don't call STORE_PSEUDO_REGISTER.
14061
14062 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14063
14064 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14065 ELF_MAKE_MSYMBOL_SPECIAL.
14066 * gdbarch.c, gdbarch.h: Regenerate.
14067 * arch-utils.c (default_make_msymbol_special): New function.
14068 * arch-utils.h (default_make_msymbol_special): Export.
14069 * elfread.c (elf_symtab_read): Compile use of
14070 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14071 multiarched.
14072 * coffread.c (coff_symtab_read): Ditto, for
14073 COFF_MAKE_MSYMBOL_SPECIAL.
14074
14075 2002-02-05 Jim Blandy <jimb@redhat.com>
14076
14077 * solib-svr4.c (svr4_truncate_ptr): New function.
14078 (svr4_relocate_section_addresses): Do the address arithmetic with
14079 the appropriate truncation for target addresses, even when
14080 CORE_ADDR is larger than a target address.
14081
14082 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14083
14084 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14085 to (int *).
14086
14087 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14088
14089 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14090 code.
14091
14092 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14093
14094 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14095
14096 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14097
14098 * gdbserver/linux-low.c: Remove unused include files.
14099
14100 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14101
14102 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14103 (read_inferior_memory): Use it.
14104 (write_inferior_memory): Likewise.
14105
14106 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14107
14108 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14109 grubbing through sys_errlist.
14110
14111 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14112
14113 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14114
14115 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14116 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14117
14118 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14119
14120 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14121 (do_sfunc, set_cmd_sfunc): New functions.
14122
14123 * command.h (struct cmd_list_element): Add field func.
14124 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14125 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14126 * cli/cli-decode.h: Ditto.
14127
14128 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14129 (help_all, help_cmd_list): Ditto.
14130 (find_cmd, complete_on_cmdlist): Ditto.
14131 * top.c (execute_command): Ditto.
14132
14133 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14134 function.sfunc.
14135
14136 * infcmd.c (notice_args_read): Fix function signature.
14137
14138 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14139 * cli/cli-decode.c (add_set_cmd): Ditto.
14140 * utils.c (initialize_utils): Ditto.
14141 * maint.c (_initialize_maint_cmds): Ditto.
14142 * infrun.c (_initialize_infrun): Ditto.
14143 * demangle.c (_initialize_demangler): Ditto.
14144 * remote.c (add_packet_config_cmd): Ditto.
14145 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14146 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14147 * proc-api.c (_initialize_proc_api): Ditto.
14148 * kod.c (_initialize_kod): Ditto.
14149 * valprint.c (_initialize_valprint): Ditto.
14150 * top.c (init_main): Ditto.
14151 * infcmd.c (_initialize_infcmd): Ditto.
14152 * corefile.c (_initialize_core): Ditto.
14153 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14154 * arch-utils.c (initialize_current_architecture): Ditto.
14155 (_initialize_gdbarch_utils): Ditto.
14156 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14157
14158 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14159 * wince.c (_initialize_inftarg): Ditto.
14160 * symfile.c (_initialize_symfile): Ditto.
14161 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14162 * language.c (_initialize_language): Ditto.
14163 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14164
14165 2002-02-04 Michael Snyder <msnyder@redhat.com>
14166
14167 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14168
14169 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14170
14171 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14172 Add rules for building the register data files.
14173
14174 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14175
14176 * regformats/regdat.sh: Add braces to the definition of
14177 expedite_regs_${arch}.
14178
14179 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14180
14181 * regformats/regdef.h (struct reg): Add comment describing the
14182 requirements for offset and size fields.
14183
14184 2002-02-04 Andreas Schwab <schwab@suse.de>
14185
14186 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14187 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14188
14189 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14190
14191 * gdbarch.sh (copyright): Update years in generated header.
14192 (SMASH_TEXT_ADDRESS): Add rule.
14193 * gdbarch.h, gdbarch.c: Re-generate.
14194 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14195 * dbxread.c: Likewise.
14196 * dwarfread.c: Likewise.
14197 * elfread.c: Likewise.
14198 * somread.c: Likewise.
14199
14200 * arm-tdep.c (arm_smash_text_address): New function.
14201 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14202
14203 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14204
14205 Add support for hardware watchpoints on win32 native.
14206 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14207 CONTEXT_DEBUG_REGISTERS.
14208 (dr variable): New variable. Static array containing a local copy
14209 of debug registers.
14210 (debug_registers_changed): New variable. Reflects when debug registers
14211 are changed and need to be written to inferior.
14212 (debug_registers_used): New variable. Reflects when any debug register
14213 was set, used when new threads are created.
14214 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14215 i386-nat code.
14216 (thread_rec): Set dr array if id is the thread of current_event .
14217 (child_continue, child_resume): Change the debug registers for all
14218 threads if debug_registers_changed.
14219 (child_add_thread): Change the debug registers if debug_registers_used.
14220 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14221 Link nm.h to new nm-cygwin.h file.
14222 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14223 of hardware registers.
14224
14225 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14226
14227 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14228 Restore behavour broken by 2002-01-20 Andrew Cagney
14229 <ac131313@redhat.com> IEEE_FLOAT removal.
14230
14231 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14232
14233 * c-valprint.c (c_val_print): Pass a proper valaddr to
14234 cp_print_class_method.
14235 * valops.c (search_struct_method): If there is only one method
14236 and args is NULL, return that method.
14237
14238 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14239
14240 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14241 accessing tag_name directly.
14242
14243 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14244
14245 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14246 of accessing tag_name directly.
14247
14248 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14249
14250 PR gdb/280
14251 * gdbtypes.c (replace_type): New function.
14252 * gdbtypes.h (replace_type): Add prototype.
14253 * stabsread.c (read_type): Use replace_type.
14254
14255 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14256
14257 * Makefile.in (memattr.o): Add missing dependencies rule.
14258
14259 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14260
14261 * breakpoint.c (break_at_finish_command): Really export.
14262 (break_at_finish_at_depth_command): Ditto.
14263 (tbreak_at_finish_command): Ditto.
14264 * hppa-tdep.c: Include completer.h.
14265 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14266 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14267
14268 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14269
14270 * utils.c (do_write): New function.
14271 (error_stream): Rewrite combining the code from error_begin and
14272 verror.
14273 (verror): Rewrite using error_stream.
14274 (error_begin): Delete function.
14275
14276 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14277
14278 * utils.c (error_begin): Make static.
14279 * defs.h (error_begin): Delete declaration.
14280
14281 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14282 (decode_line_1): Use cplusplus_error instead of error_begin,
14283 cplusplus_hint and return_to_top_level.
14284 * coffread.c (coff_symfile_read): Use error instead of error_begin
14285 and return_to_top_level.
14286 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14287
14288 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14289
14290 * language.h (type_error, range_error): Make string parameter
14291 constant.
14292 * language.c (warning_pre_print): Delete extern declaration.
14293 * dwarfread.c (warning_pre_print): Ditto.
14294 * language.c (type_error, range_error): Rewrite to use verror and
14295 vwarning instead of warning_begin.
14296
14297 2002-02-01 Michael Snyder <msnyder@redhat.com>
14298
14299 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14300 (set_ignore_count): Move misplaced comment back where it belongs.
14301
14302 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14303
14304 * command.h (NO_FUNCTION): Delete macro.
14305 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14306 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14307 * tracepoint.c (_initialize_tracepoint): Ditto.
14308 * cli/cli-decode.c (add_set_cmd): Ditto.
14309 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14310
14311 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14312
14313 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14314 Update ``this'' pointer when calling virtual functions.
14315
14316 2002-02-01 Michael Snyder <msnyder@redhat.com>
14317
14318 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14319 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14320
14321 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14322
14323 * regformats/reg-arm.dat: New file.
14324 * regformats/reg-i386.dat: New file.
14325 * regformats/reg-ia64.dat: New file.
14326 * regformats/reg-m68k.dat: New file.
14327 * regformats/reg-mips.dat: New file.
14328 * regformats/reg-ppc.dat: New file.
14329 * regformats/reg-sh.dat: New file.
14330 * regformats/regdef.h: New file.
14331 * regformats/regdat.sh: New file.
14332
14333 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14334
14335 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14336 (arm_frame_args_address, arm_frame_locals_address): New functions.
14337 (arm_frame_num_args): New function.
14338 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14339 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14340 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14341
14342 2002-01-31 Michael Snyder <msnyder@redhat.com>
14343
14344 * breakpoint.c (break_at_finish_command): Export.
14345 (break_at_finish_at_depth_command): Export.
14346 (tbreak_at_finish_command): Export.
14347 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14348 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14349 "txbreak" commands, which are HPPA specific.
14350
14351 * printcmd.c (disassemble_command): Remove an ancient
14352 artifact of an old merge.
14353
14354 * symfile.h (enum overlay_debugging_state):
14355 Define enum constant values for overlay mode.
14356 * symfile.c (overlay_debugging): Use enums instead of literals.
14357 (overlay_is_mapped, overlay_auto_command,
14358 overlay_manual_command): Ditto.
14359
14360 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14361 breakpoint_here_p, breakpoint_inserted_here_p,
14362 breakpoint_thread_match, bpstat_stop_status,
14363 describe_other_breakpoints, check_duplicates, clear_command):
14364 Coding standard fixes.
14365
14366 * target.c (target_xfer_memory): Add spaces, coding standard.
14367 (do_xfer_memory): Add missing line to trust-readonly
14368 code: check bfd SEC_READONLY flag for section.
14369
14370 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14371
14372 * PROBLEMS: Fix typo, 5.1->5.1.1.
14373
14374 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14375
14376 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14377 data symbols, since we search based on textlow and texthigh.
14378 (find_pc_sect_symtab): Likewise.
14379
14380 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14381
14382 * defs.h (vwarning): Declare.
14383 * utils.c (vwarning): New function.
14384 (warning): Call vwarning.
14385 (warning_begin): Delete function.
14386
14387 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14388 the warning message.
14389 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14390 warning_begin.
14391
14392 2002-01-30 Michael Snyder <msnyder@redhat.com>
14393
14394 * NEWS: Mention "set trust-readonly-sections" command.
14395 Mention generate-core-file command.
14396
14397 2002-01-15 Michael Snyder <msnyder@redhat.com>
14398
14399 * target.c: New command, "set trust-readonly-sections on".
14400 (do_xfer_memory): Honor the suggestion to trust readonly sections
14401 by reading them from the object file instead of from the target.
14402 (initialize_targets): Register command "set trust-readonly-sections".
14403
14404 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14405
14406 * parse.c (target_map_name_to_register): Simplify, search regs and
14407 pseudo-regs using a single loop.
14408
14409 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14410
14411 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14412
14413 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14414
14415 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14416 * config/i386/i386v42mp.mh: Add i387-nat.o .
14417 * i386v4-nat.c: Include i387-nat.h.
14418 (supply_fpregset): Use i387_supply_fsave.
14419 (fill_fpregset): Use i387_fill_fsave.
14420
14421 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14422
14423 * arm-tdep.c (arm_call_dummy_words): Define.
14424 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14425 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14426 (CALL_DUMMY_WORDS): Define.
14427 (arm_call_dummy_words): Declare.
14428 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14429 (arm_linux_call_dummy_words): Declare.
14430
14431 2002-01-30 Andreas Schwab <schwab@suse.de>
14432
14433 * m68klinux-nat.c: Fix last change to use regcache_collect
14434 instead of referencing registers[] directly.
14435
14436 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14437
14438 * parse.c (target_map_name_to_register): Delete code wrapped in
14439 #ifdef REGISTER_NAME_ALIAS_HOOK.
14440
14441 2002-01-28 Michael Snyder <msnyder@redhat.com>
14442
14443 * regcache.c (legacy_read_register_gen): Need to be able to
14444 read pseudo-register as well as real register.
14445 (legacy_write_register_gen): Ditto.
14446
14447 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14448
14449 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14450 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14451 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14452 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14453 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14454 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14455 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14456 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14457 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14458 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14459 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14460 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14461 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14462 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14463 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14464 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14465 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14466 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14467 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14468 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14469
14470 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14471
14472 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14473 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14474 (initialize_current_architecture): Update target_byte_order using
14475 information from BFD.
14476 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14477 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14478
14479 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14480
14481 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14482 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14483
14484 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14485 #ifdef INVALID_FLOAT.
14486 * infcmd.c (do_registers_info): Ditto.
14487 * values.c (unpack_double): Ditto. Add comment.
14488
14489 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14490 already commented out.
14491
14492 2002-01-26 Andreas Schwab <schwab@suse.de>
14493
14494 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14495 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14496 registers and add support for PTRACE_GETREGS.
14497
14498 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14499
14500 GDB 5.1.1 released from 5.1 branch.
14501 * NEWS: Add 5.1.1 news.
14502 * README: Sync with 5.1 branch.
14503
14504 2002-01-23 Fred Fish <fnf@redhat.com>
14505
14506 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14507 stabstring on initial malloc. Reallocing will copy it for us,
14508 if necessary.
14509
14510 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14511
14512 * Makefile.in (hpread_h): Delete.
14513 (HFILES_NO_SRCDIR): Remove hpread.h.
14514 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14515 (hpread.o): Update dependencies.
14516 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14517
14518 * hp-psymtab-read.c: Remove file.
14519 * hp-symtab-read.c: Remove file.
14520 * hpread.h: Remove file.
14521
14522 * hpread.c: Merge all contents of hp-psymtab-read.c,
14523 hp-symtab-read.c and hpread.h into this file, as it was prior to
14524 January 1999.
14525
14526 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14527 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14528 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14529 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14530
14531 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14532
14533 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14534 fill_gregset): Call gdbarch_tdep() just once, assign result to
14535 variable and use that, instead of calling the function several
14536 times.
14537
14538 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14539
14540 * configure.host: Accept sparcv9 as alias for sparc64.
14541 * configure.tgt: Likewise.
14542
14543 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14544
14545 * solib-aix5.c (build_so_list_from_mapfile)
14546 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14547 arguments is not reversed.
14548 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14549 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14550
14551 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14552
14553 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14554 modified version of obsolete sh_fetch_pseudo_register.
14555 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14556 (sh4_register_read): New function.
14557 (sh_pseudo_register_write): New function. Renamed and modified
14558 version of obsolete sh_store_pseudo_register.
14559 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14560 (sh4_register_write): New function.
14561 (sh_gdbarch_init): Remove setting of gdbarch function
14562 fetch_pseudo_register and store_pseudo_register. Remove setting of
14563 register_convert_to_raw, register_convert_to_virtual,
14564 register_convertible.
14565 (sh_sh4_register_convertible): Delete. No longer needed. All is
14566 taken care by architecture specific functions
14567 register_read/register_write.
14568 (sh_sh4_register_convert_to_virtual): Make static.
14569 (sh_sh4_register_convert_to_raw): Ditto.
14570
14571 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14572
14573 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14574 (floatformat_is_nan, floatformat_mantissa): Ditto.
14575
14576 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14577 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14578 builtin_type_ieee_double_little,
14579 builtin_type_ieee_double_littlebyte_bigword,
14580 builtin_type_m68881_ext, builtin_type_i960_ext,
14581 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14582 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14583 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14584 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14585
14586 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14587
14588 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14589 parameter. Set frameless flag if it exists and depended of
14590 whether the scanned function is frameless or not.
14591 (xstormy16_skip_prologue): If function is frameless, return
14592 result of xstormy16_scan_prologue().
14593 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14594 call.
14595
14596 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14597
14598 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14599 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14600 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14601 sh_sh4_register_byte, sh_sh4_register_raw_size,
14602 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14603 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14604 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14605 sh_store_pseudo_register, sh_do_pseudo_register): Call
14606 gdbarch_tdep() just once, assign result to variable and use that,
14607 instead of calling the function several times.
14608
14609 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14610
14611 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14612 macros instead of LAST_FPU_CTRL_REGNUM.
14613 (store_register): Likewise.
14614
14615 2002-01-21 Jim Blandy <jimb@redhat.com>
14616
14617 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14618 is up-to-date before running the program, not just when a program
14619 exits.
14620
14621 2002-01-21 Fred Fish <fnf@redhat.com>
14622
14623 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14624 when we have found all instructions we are looking for.
14625
14626 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14627
14628 * arm-tdep.c (arm_register_name): New function.
14629 (arm_registers_names): Make static.
14630 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14631 (arm_register_name): Declare.
14632 (REGISTER_NAME): Use it.
14633
14634 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14635 Kevin Buettner <kevinb@redhat.com>
14636
14637 Convert arm targets to new FRAME interface.
14638 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14639 (arm_frame_find_save_regs): Delete.
14640 (arm_frame_init_saved_regs): New.
14641 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14642 Allocate extra_info as required. Convert all uses of fsr.regs
14643 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14644 to use extra_info.
14645 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14646 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14647 (check_prologue_cache, save_prologue_cache): Likewise.
14648 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14649 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14650 (FRAME_FIND_SAVED_REGS): Delete.
14651 (arm_frame_find_saved_regs): Delete prototype.
14652 (arm_frame_init_saved_regs): New prototype.
14653 (FRAME_INIT_SAVED_REGS): Define.
14654
14655 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14656
14657 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14658
14659 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14660
14661 From Jeff Law <law@redhat.com>:
14662 * infttrace.c: Include <sys/pstat.h>.
14663 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14664 exec file if the ttrace equivalent fails.
14665
14666 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14667
14668 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14669 (closeLogFile): Ditto.
14670
14671 2002-01-20 Michael Chastain <mec@shout.net>
14672
14673 * top.c (print_gdb_version): Bump copyright year to 2002.
14674
14675 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14676
14677 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14678 Zannoni and Eli Zaretskii.
14679
14680 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14681
14682 * buildsym.c: Update copyright years.
14683 * c-typeprint.c: Likewise.
14684 * dwarf2read.c: Likewise.
14685 * f-typeprint.c: Likewise.
14686 * gdbtypes.c: Likewise.
14687 * gdbtypes.h: Likewise.
14688 * hp-symtab-read.c: Likewise.
14689 * hpread.c: Likewise.
14690 * mdebugread.c: Likewise.
14691 * p-typeprint.c: Likewise.
14692
14693 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14694
14695 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14696 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14697 byte-order selectable.
14698 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14699 * arch-utils.c: Ditto.
14700 (set_endian): Ditto.
14701 (set_endian_from_file): Ditto.
14702 * gdbserver/low-sim.c (create_inferior): Ditto.
14703 * gdbarch.sh: Ditto.
14704 * gdbarch.h: Re-generate.
14705 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14706 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14707 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14708 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14709 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14710 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14711 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14712 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14713 macro definition.
14714 * config/mips/tm-wince.h: Remove #undef of macro
14715 TARGET_BYTE_ORDER_SELECTABLE.
14716 * config/sh/tm-wince.h: Ditto.
14717
14718 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14719
14720 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14721 member function fields. Add accessor macro
14722 TYPE_FN_FIELD_ARTIFICIAL.
14723 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14724 * c-typeprint.c (c_type_print_base): Skip artificial member
14725 functions.
14726
14727 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14728
14729 * f-typeprint.c: Delete unused function f_type_print_args.
14730 * p-typeprint.c: Delete unused function pascal_type_print_args.
14731
14732 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14733
14734 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14735 comment. Add ``artificial'' to ``union field_location''.
14736
14737 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14738
14739 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14740 * mdebugread.c (parse_symbol): Likewise.
14741 * stabsread.c (define_symbol): Likewise.
14742 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14743 initializing TYPE_FIELD_BITPOS to n (obsolete).
14744 (hpread_doc_function_type): Likewise.
14745 * hpread.c (hpread_function_type): Likewise.
14746
14747 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14748
14749 * configure.in (host_makefile_frag): Only require a host makefile
14750 fragment when a native build.
14751 * configure: Re-generate.
14752
14753 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14754
14755 * doublest.h (floatformat_from_type): Declare.
14756 * doublest.c (floatformat_from_type): New function.
14757 (convert_typed_floating): Use.
14758
14759 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14760 call to function floatformat_from_type.
14761
14762 * gdbarch.sh (IEEE_FLOAT): Delete.
14763 * gdbarch.h, gdbarch.c: Re-generate.
14764 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14765 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14766 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14767 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14768 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14769 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14770 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14771 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14772 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14773 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14774 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14775 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14776
14777 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14778 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14779 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14780 * sh-tdep.c (sh_gdbarch_init): Ditto.
14781 * mips-tdep.c (mips_gdbarch_init): Ditto.
14782 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14783 * cris-tdep.c (cris_gdbarch_init): Ditto.
14784
14785 2002-01-20 Jiri Smid <smid@suse.cz>
14786
14787 * configure.host, configure.tgt: Support x86-64.
14788 * NEWS: Note new target x86-64.
14789
14790 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14791 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14792 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14793 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14794 x86-64-linux-nat.o): Fix dependencies.
14795
14796 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14797
14798 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14799 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14800 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14801 * config/sparc/xm-sun4os4.h: Delete file.
14802 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14803
14804 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14805
14806 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14807 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14808 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14809 * config/i386/i386lynx.mh (XM_FILE): Delete.
14810 * config/rs6000/xm-rs6000ly.h: Delete file.
14811 * config/sparc/xm-sparclynx.h: Delete file.
14812 * config/m68k/xm-m68klynx.h: Delete file.
14813 * config/i386/xm-i386lynx.h: Delete file.
14814 * config/xm-lynx.h: Delete file.
14815 * config/djgpp/fnchange.lst: Update.
14816
14817 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14818
14819 * alpha-tdep.c (alpha_register_byte): New function.
14820 (alpha_register_raw_size): Ditto.
14821 (alpha_register_virtual_size): Ditto.
14822 (alpha_skip_prologue_internal): Renamed from
14823 alpha_skip_prologue.
14824 (alpha_skip_prologue): New version that calls
14825 alpha_skip_prologue_internal.
14826 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14827 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14828 second argument from alpha_skip_prologue.
14829 (REGISTER_BYTE): Use alpha_register_byte.
14830 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14831 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14832 (FRAMELESS_FUNCTION_INVOCATION): Use
14833 generic_frameless_function_invocation_not.
14834 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14835 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14836
14837 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14838
14839 * config/mips/xm-news-mips.h: Delete file.
14840 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14841
14842 * config/m88k/xm-m88k.h: Delete file.
14843 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14844 * config/m88k/xm-delta88v4.h: Ditto.
14845 * config/m88k/xm-delta88.h: Ditto.
14846
14847 * config/alpha/xm-fbsd.h: Delete file.
14848 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14849
14850 * config/sparc/xm-sparc.h: Delete file.
14851 * Makefile.in (xm-sun4os4.h): Delete dependency.
14852 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14853 * config/sparc/xm-sun4os4.h: Ditto.
14854 * config/sparc/xm-linux.h: Ditto.
14855
14856 * config/i386/xm-windows.h: Delete file.
14857
14858 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14859
14860 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14861 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14862
14863 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14864
14865 * alpha-tdep.c (alpha_call_dummy_words): New.
14866 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14867 (CALL_DUMMY_P): Define.
14868 (CALL_DUMMY_WORDS): Define.
14869 (SIZEOF_CALL_DUMMY_WORDS): Define.
14870
14871 2002-01-19 Per Bothner <per@bothner.com>
14872
14873 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14874 isn't NULL, which can happen with some gcj-3.x-produced code.
14875
14876 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14877
14878 * alpha-tdep.c (alpha_register_virtual_type): New function.
14879 (alpha_init_frame_pc_first): Ditto.
14880 (alpha_fix_call_dummy): Ditto.
14881 (alpha_store_struct_return): Ditto.
14882 (alpha_extract_struct_value_address): Ditto.
14883 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14884 alpha_register_virtual_type.
14885 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14886 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14887 alpha_extract_struct_value_address.
14888 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14889 (INIT_FRAME_PC): Use init_frame_pc_noop.
14890 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14891
14892 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14893
14894 * i386gnu-nat.c: Include "i386-tdep.h".
14895 (fetch_fpregs): Simplify code dealing with uninitialized floating
14896 point states such that it doesn't require FP7_REGNUM.
14897
14898 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14899
14900 * alpha-tdep.c (frame_extra_info): New.
14901 (alpha_find_saved_regs): Make static. Use
14902 frame->extra_info.
14903 (alpha_frame_init_saved_regs): New function.
14904 (alpha_frame_saved_pc): Use frame->extra_info.
14905 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14906 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14907 (init_extra_frame_info): Rename to...
14908 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14909 (alpha_print_extra_frame_info): New function.
14910 (alpha_frame_locals_address): Ditto.
14911 (alpha_frame_args_address): Ditto.
14912 (alpha_pop_frame): Use frame->extra_info.
14913 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14914 alpha_frame_args_address.
14915 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14916 (alpha_find_saved_regs): Remove prototype.
14917 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14918 (EXTRA_FRAME_INFO): Remove.
14919 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14920 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14921
14922 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14923
14924 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14925 (alpha_cannot_fetch_register): Ditto.
14926 (alpha_cannot_store_register): Ditto.
14927 (alpha_register_convertible): Ditto.
14928 (alpha_use_struct_convention): Ditto.
14929 * config/alpha/tm-alpha.h: Update copyright years.
14930 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14931 (INNER_THAN): Use core_addr_lessthan.
14932 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14933 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14934 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14935 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14936 (FRAME_CHAIN): Remove unnecessary cast.
14937
14938 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14939
14940 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14941 obsolete.
14942
14943 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14944
14945 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14946 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14947 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14948 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14949 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14950 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14951 * x86-64-linux-nat.c: Ditto.
14952
14953 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14954
14955 * alpha-tdep.c (alpha_register_name): New function.
14956 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14957 (REGISTER_NAME): Define.
14958
14959 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14960
14961 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14962
14963 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14964
14965 * alpha-tdep.c: Update copyright years.
14966 (alpha_next_pc): New function.
14967 (alpha_software_single_step): Ditto.
14968 * config/alpha/tm-alpha.h: Add prototype for
14969 alpha_software_single_step.
14970
14971 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14972
14973 * alphabsd-nat.c: Update copyright years.
14974 (fill_gregset): Use regcache_collect.
14975 (fill_fpregset): Likewise.
14976 (fetch_inferior_registers): Only fetch integer registers
14977 if requested to do so.
14978 (store_inferior_registers): Only store integer registers
14979 if requested to do so.
14980
14981 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14982
14983 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14984 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14985 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14986 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14987 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14988 * config/arm/linux.mh (XDEPFILES): Delete.
14989 * config/arm/nbsd.mh (XDEPFILES): Delete.
14990 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14991 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14992 * config/i386/i386m3.mh (XDEPFILES): Delete.
14993 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14994 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14995 * config/i386/fbsd.mh (XDEPFILES): Delete.
14996 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14997 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14998 * config/i386/i386v4.mh (XDEPFILES): Delete.
14999 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15000 * config/i386/i386sco4.mh (XDEPFILES): Delete.
15001 * config/i386/i386aix.mh (XDEPFILES): Delete.
15002 * config/i386/go32.mh (XDEPFILES): Delete.
15003 * config/i386/cygwin.mh (XDEPFILES): Delete.
15004 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15005 * config/i386/i386mach.mh (XDEPFILES): Delete.
15006 * config/i386/i386v32.mh (XDEPFILES): Delete.
15007 * config/i386/linux.mh (XDEPFILES): Delete.
15008 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15009 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15010 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15011 * config/i386/i386sco.mh (XDEPFILES): Delete.
15012 * config/i386/i386v.mh (XDEPFILES): Delete.
15013 * config/i386/nbsd.mh (XDEPFILES): Delete.
15014 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15015 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15016 * config/i386/symmetry.mh (XDEPFILES): Delete.
15017 * config/i386/obsd.mh (XDEPFILES): Delete.
15018 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15019 * config/ia64/linux.mh (XDEPFILES): Delete.
15020 * config/ia64/aix.mh (XDEPFILES): Delete.
15021 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15022 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15023 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15024 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15025 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15026 * config/m68k/linux.mh (XDEPFILES): Delete.
15027 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15028 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15029 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15030 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15031 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15032 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15033 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15034 * config/m88k/delta88.mh (XDEPFILES): Delete.
15035 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15036 * config/m88k/m88k.mh (XDEPFILES): Delete.
15037 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15038 * config/mips/linux.mh (XDEPFILES): Delete.
15039 * config/mips/irix6.mh (XDEPFILES): Delete.
15040 * config/mips/irix5.mh (XDEPFILES): Delete.
15041 * config/mips/irix4.mh (XDEPFILES): Delete.
15042 * config/mips/irix3.mh (XDEPFILES): Delete.
15043 * config/mips/decstation.mh (XDEPFILES): Delete.
15044 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15045 (NATDEPFILES): Move core-aout.o to here.
15046 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15047 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15048 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15049 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15050 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15051 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15052 * config/pa/hpux11.mh (XDEPFILES): Delete.
15053 * config/powerpc/aix.mh (XDEPFILES): Delete.
15054 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15055 * config/powerpc/linux.mh (XDEPFILES): Delete.
15056 * config/romp/rtbsd.mh: Rename XDEPFILES.
15057 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15058 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15059 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15060 * config/s390/s390.mh (XDEPFILES): Delete.
15061 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15062 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15063 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15064 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15065 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15066 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15067 * config/sparc/linux.mh (XDEPFILES): Delete.
15068 * config/vax/vaxult.mh (XDEPFILES): Delete.
15069 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15070 * Makefile.in (DEPFILES): Remove XDEPFILES.
15071
15072 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15073
15074 * utils.c (internal_verror): Fix comments, default is yes not no.
15075 Update queries to match. Default to quit and dump core.
15076
15077 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15078
15079 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15080 copyright.
15081 * defs.h, event-top.c, gdbcmd.h: Ditto.
15082 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15083 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15084 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15085 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15086 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15087 * mi/mi-main.c:Ditto.
15088
15089 * stack.c, symfile.c: Update copyright.
15090
15091 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15092
15093 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15094 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15095 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15096 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15097
15098 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15099
15100 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15101 * gdbserver/low-lynx.c (myattach): Likewise.
15102 * gdbserver/low-nbsd.c (myattach): Likewise.
15103 * gdbserver/low-sim.c (myattach): Likewise.
15104 * gdbserver/low-sparc.c (myattach): Likewise.
15105 * gdbserver/low-sun3.c (myattach): Likewise.
15106
15107 * gdbserver/low-linux.c (myattach): New function.
15108
15109 * gdbserver/server.c (attach_inferior): New function.
15110 (main): Handle "--attach".
15111
15112 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15113
15114 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15115 maintainer.
15116
15117 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15118
15119 * c-typeprint.c (is_type_conversion_operator): Add additional
15120 check for non-conversion operators.
15121
15122 2002-01-15 Michael Snyder <msnyder@redhat.com>
15123
15124 * linux-proc.c: Add "info proc" command, a la procfs.c.
15125 (read_mapping): New function, abstract and re-use code.
15126 (linux_find_memory_regions): Use new func read_mapping.
15127 (linux_info_proc_cmd): New function, implement "info proc".
15128 (_initialize_linux_proc): Add new command "info proc".
15129
15130 2002-01-15 Michael Snyder <msnyder@redhat.com>
15131
15132 * symfile.c (generic_load): Use bfd_map_over_sections method
15133 instead of manipulating bfd structure members directly.
15134 (add_section_size_callback): New function, bfd sections callback
15135 used by generic_load.
15136 (load_sections_callback): New function, bfd sections callback
15137 used by generic_load.
15138
15139 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15140
15141 [Based on work by Jim Blandy]
15142 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15143 (builtin_type_vec128): Export.
15144 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15145 types.
15146 (builtin_type_vec128): New builtin type for 128 bit vector
15147 registers.
15148 (build_gdbtypes): Initialize builtin_type_v16qi and
15149 builtin_type_v8hi. Create the vec128 register builtin type
15150 structure.
15151 (build_builtin_type_vec128): New function.
15152 (_initialize_gdbtypes): Register builtin_type_v16qi and
15153 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15154 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15155 AltiVec register to new builtin type.
15156
15157 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15158
15159 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15160 to make_cv_type.
15161
15162 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15163
15164 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15165 CLEAN_UP_REGISTER_VALUE.
15166 * regcache.c (supply_register): Update only call.
15167
15168 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15169
15170 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15171 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15172 a29k-*-vxworks* targets as obsolete.
15173
15174 2002-01-14 Michael Snyder <msnyder@redhat.com>
15175
15176 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15177 until we can resolve portability issues.
15178 * gregset.h: Remove references to fpxregs.
15179 * gcore.c (gcore_command): Initialize note_sec to NULL.
15180
15181 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15182
15183 * signals.c (target_signal_to_name): Rewrite. Only use
15184 signals[].name when in bounds and non-NULL.
15185
15186 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15187
15188 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15189 * signals.c (target_signal_to_name): Verify that SIG is within the
15190 bounds of the signals array.
15191
15192 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15193
15194 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15195
15196 2002-01-13 Keith Seitz <keiths@redhat.com>
15197
15198 * stack.c (print_frame_info_base): Print the frame's pc
15199 only if when print_frame_info_listing_hook is not defined.
15200
15201 2002-01-13 Keith Seitz <keiths@redhat.com>
15202
15203 * varobj.c (varobj_set_value): Make sure that there were no
15204 errors evaluating the object before attempting to set its
15205 value.
15206 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15207 so this offset adjustment is no longer necessary.
15208 (create_child): Don't set the error flag if the child is
15209 a CPLUS_FAKE_CHILD.
15210 (value_of_child): If value_fetch_lazy fails, return NULL
15211 so that callers will be notified that an error occurred.
15212 (c_value_of_variable): Delay check of variable's validity
15213 until later. We actually want all structs and unions to have
15214 the value "{...}".
15215 Do not return "???" for variables which could not be evaluated.
15216 This error condition must be returned to the caller so that it
15217 can get the error condition from gdb.
15218 (cplus_name_of_child): Adjust index for vptr before figuring
15219 out the name of the child.
15220 (cplus_value_of_child): If a child's (real) parent is not valid,
15221 don't even bother trying to give a value for it. Just return
15222 an error. Change all instances in this function.
15223 (cplus_type_of_child): If our parent is one of the "fake"
15224 parents, we need to get at the type of the real parent, and
15225 derive the child's true type using this information.
15226
15227 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15228
15229 From 2002-01-09 John Marshall <johnm@falch.net>:
15230 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15231 sources.redhat.com, and tweak some related URLs which had
15232 suffered from linkrot.
15233
15234 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15235
15236 From Jeff law:
15237 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15238 structures passed in registers.
15239
15240 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15241
15242 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15243 white space which prevented compilation. Reported by DSK
15244 <dsk@student.unsw.edu.au>.
15245
15246 2002-01-11 Michael Snyder <msnyder@redhat.com>
15247
15248 * symfile.c (build_section_addr_info_from_section_tab):
15249 Use bfd access method instead of manipulating bfd directly.
15250 (syms_from_objfile): Ditto.
15251 (simple_overlay_update_1): Ditto.
15252 (simple_overlay_update): Ditto.
15253 (generic_load): Ditto.
15254 (overlay_unmapped_address): FIXME comment, bfd access methods.
15255 (sections_overlap): FIXME comment, bfd access methods.
15256 (pc_in_mapped_range): FIXME comment, bfd access methods.
15257 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15258 (section_is_mapped): FIXME comment, bfd access methods.
15259 (section_is_overlay): FIXME comment, bfd access methods.
15260
15261 * symfile.c (generic_load): Whitespace and long line cleanups.
15262 Remove duplicate variable, change several local variables to
15263 more appropriate data types.
15264 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15265
15266 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15267
15268 From Peter Schauer:
15269 * language.c (longest_local_hex_string_custom): Use phex_nz to
15270 convert NUM to a hex string.
15271
15272 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15273
15274 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15275 the function.
15276 Update Copyright year.
15277
15278 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15279
15280 * language.c (longest_raw_hex_string): Delete unused function.
15281
15282 2002-01-11 Petr Sorfa <petrs@caldera.com>
15283
15284 * MAINTAINERS (write-after-approval): Add myself.
15285 * dwarf2read.c (read_tag_string_type): Handling of
15286 DW_AT_byte_size.
15287 (read_tag_string_type): FORTRAN fix to prevent propagation of
15288 first string size.
15289 (set_cu_language): Handling of DW_LANG_Fortran95
15290
15291 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15292
15293 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15294 GETPID(inferior_ptid).
15295 (store_inferior_registers): Likewise.
15296
15297 2002-01-10 Jason Merrill <jason@redhat.com>
15298
15299 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15300 Fix DW_OP_minus.
15301
15302 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15303
15304 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15305 and bfd/elf32-sh-nbsd.c.
15306
15307 2002-01-10 Michael Snyder <msnyder@redhat.com>
15308
15309 * NEWS: Mention --pid and corefile/proc-id behavior change.
15310
15311 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15312 * gcore.c: Include cli/cli-decode.h instead of command.h.
15313
15314 * main.c (captured_main): Add new command line option "--pid".
15315 If the second command line argument (following the symbol-file)
15316 begins with a digit, try to attach to it before trying to open
15317 it as a corefile.
15318 (print_gdb_help): Document the "--pid" argument.
15319
15320 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15321
15322 * completer.c (command_completer): New function.
15323
15324 * completer.h <command_completer>: Add prototype.
15325
15326 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15327 completer for the "help" command.
15328
15329 2002-01-09 Jason Merrill <jason@redhat.com>
15330
15331 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15332
15333 2002-01-09 Michael Snyder <msnyder@redhat.com>
15334
15335 * i386-linux-nat.c (fill_fpxregset): Make global.
15336 (store_fpxregset): Ditto.
15337
15338 * gregset.h (gdb_fpxregset_t): Define.
15339 (supply_fpxregset): Prototype.
15340 (fill_fpxregset): Prototype.
15341
15342 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15343
15344 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15345
15346 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15347 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15348 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15349
15350 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15351
15352 * MAINTAINERS: Update target maintainer rules so that any
15353 Maintainer can approve a tested patch for a maintenance-only
15354 target.
15355
15356 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15357
15358 * MAINTAINERS (write-after-approval): Add myself.
15359
15360 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15361 IN_SIGTRAMP.
15362
15363 2002-01-08 Michael Snyder <msnyder@redhat.com>
15364
15365 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15366 real name of the executable, rather than the /proc name.
15367
15368 2002-01-03 Michael Snyder <msnyder@redhat.com>
15369
15370 Implement a "generate-core-file" command in gdb, save target state.
15371 * gcore.c: New file. Implement new command 'generate-core-file'.
15372 Save a corefile image of the current state of the inferior.
15373 * linux-proc.c: Add linux-specific code for saving corefiles.
15374 * target.h (struct target_ops): Add new target vectors for saving
15375 corefiles; to_find_memory_regions and to_make_corefile_notes.
15376 (target_find_memory_regions): New macro.
15377 (target_make_corefile_notes): New macro.
15378 * target.c (update_current_target): Inherit new target methods.
15379 (dummy_find_memory_regions): New place-holder method.
15380 (dummy_make_corefile_notes): New place-holder method.
15381 (init_dummy_target): Initialize new dummy target vectors.
15382 * exec.c (exec_set_find_memory_regions): New function.
15383 Allow the exec_ops vector for memory regions to be taken over.
15384 (exec_make_note_section): New function, target vector method.
15385 * defs.h (exec_set_find_memory_regions): Export prototype.
15386 * procfs.c (proc_find_memory_regions): New function, corefile method.
15387 (procfs_make_note_section): New function, corefile method.
15388 (init_procfs_ops): Set new target vector pointers.
15389 (find_memory_regions_callback): New function.
15390 (procfs_do_thread_registers): New function.
15391 (procfs_corefile_thread_callback): New function.
15392 * sol-thread.c (sol_find_memory_regions): New function.
15393 (sol_make_note_section): New function.
15394 (init_sol_thread_ops): Initialize new target vectors.
15395 * inftarg.c (inftarg_set_find_memory_regions): New function.
15396 Allow to_find_memory_regions vector to be taken over.
15397 (inftarg_set_make_corefile_notes): New function.
15398 Allow to_make_corefile_notes vector to be taken over.
15399 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15400 interface layer if not target_has_execution (may be a corefile).
15401 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15402 * config/sparc/sun4sol2.mh: Ditto.
15403 * config/alpha/alpha-linux.mh: Ditto.
15404 * config/arm/linux.mh: Ditto.
15405 * config/i386/x86-64linux.mh: Ditto.
15406 * config/ia64/linux.mh: Ditto.
15407 * config/m68k/linux.mh: Ditto.
15408 * config/mips/linux.mh: Ditto.
15409 * config/powerpc/linux.mh: Ditto.
15410 * config/sparc/linux.mh: Ditto.
15411
15412 2002-01-07 Michael Snyder <msnyder@redhat.com>
15413
15414 * arm-linux-nat.c: Remove references to regcache.c internal data
15415 (registers[] and register_valid[]).
15416
15417 2002-01-07 Michael Snyder <msnyder@redhat.com>
15418
15419 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15420 so that attaching to a pid will automatically read the process's
15421 symbol file and shlibs.
15422 * Makefile.in: Add rule for linux-proc.o.
15423 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15424 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15425 * config/arm/linux.mh: Ditto.
15426 * config/i386/linux.mh: Ditto.
15427 * config/i386/x86-64linux.mh: Ditto.
15428 * config/ia64/linux.mh: Ditto.
15429 * config/m68k/linux.mh: Ditto.
15430 * config/mips/linux.mh: Ditto.
15431 * config/powerpc/linux.mh: Ditto.
15432 * config/sparc/linux.mh: Ditto.
15433
15434 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15435
15436 * win32-nat.c: Add i386-tdep.h dependency.
15437
15438 2002-01-07 Michael Snyder <msnyder@redhat.com>
15439
15440 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15441 instead of bfd_get_arch_size. Don't bail out just because
15442 there's no exec_bfd.
15443
15444 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15445 * p-valprint.c (pascal_object_print_value): Ditto.
15446 * somread.c (som_symtab_read): Ditto.
15447 * symfile.c (simple_free_overlay_region_table): Ditto.
15448 * valops.c (value_assign): Ditto.
15449
15450 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15451 use tilde_expand and strerror for opening save-tracepoints file.
15452
15453 * thread-db.c (thread_db_new_objfile): Indendation fix.
15454
15455 * infptrace.c (GDB_MAX_ALLOCA): New define.
15456 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15457 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15458 can be overridden with whatever value is appropriate to the host).
15459 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15460 alloca to allocate potentially large buffer.
15461 * rs6000-nat.c (child_xfer_memory): Ditto.
15462 * symm-nat.c (child_xfer_memory): Ditto.
15463 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15464
15465 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15466
15467 From Nick Clifton <nickc@redhat.com>
15468 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15469
15470 2002-01-07 Michael Snyder <msnyder@redhat.com>
15471
15472 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15473 Don't use exec_bfd if it's NULL.
15474
15475 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15476
15477 * valops.c (value_arg_coerce): Fix formatting.
15478
15479 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15480
15481 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15482 * gnu-nat.c: Ditto.
15483
15484 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15485
15486 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15487 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15488 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15489 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15490 z8k-coff have not been multi-arched. Update z8k-coff build
15491 status.
15492
15493 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15494
15495 * MAINTAINERS: Mark a29k target as obsolete.
15496 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15497 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15498 comments.
15499 * NEWS: Note that a29k targets are obsolete.
15500 * a29k-tdep.c: Mark as obsolete.
15501 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15502 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15503 a29k-*-vxworks* targets as obsolete.
15504 * remote-adapt.c: Obsolete.
15505 * remote-eb.c: Obsolete.
15506 * remote-mm.c: Obsolete.
15507 * remote-udi.c: Obsolete.
15508 * config/a29k/a29k-udi.mt: Obsolete.
15509 * config/a29k/a29k.mt: Obsolete.
15510 * config/a29k/tm-a29k.h: Obsolete.
15511 * config/a29k/tm-vx29k.h: Obsolete.
15512 * config/a29k/vx29k.mt: Obsolete.
15513
15514 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15515
15516 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15517 with BFD_ENDIAN_BIG.
15518
15519 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15520
15521 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15522 * configure, config.in: Re-generate.
15523 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15524 * defs.h: Do not include <endian.h>.
15525
15526 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15527
15528 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15529 * config.in: Regenerate.
15530 * configure.in: Update copyright years.
15531 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15532 * configure: Regenerate.
15533 * i386bsd-nat.c: Update copyright years.
15534 (fill_gregset): Use regcache_collect.
15535 (fetch_inferior_registers): Only fetch integer registers
15536 if requested to do so. Add support for XMM registers
15537 using PT_GETXMMREGS.
15538 (store_inferior_registers): Only store integer registers
15539 if requested to do so. Add support for XMM registers
15540 using PT_SETXMMREGS.
15541 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15542 (store_inferior_registers): Remove.
15543 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15544 (fetch_elfcore_registers): New function.
15545 (i386nbsd_elfcore_fns): New.
15546 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15547 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15548 i386bsd-nat.o.
15549 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15550 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15551 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15552 * config/i386/tm-nbsd.h: Update copyright years.
15553 (HAVE_SSE_REGS): Define.
15554 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15555 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15556 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15557 (SIGCONTEXT_PC_OFFSET): Remove.
15558 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15559
15560 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15561
15562 * configure.tgt: Remove powerpc-*-macos* target.
15563 * config/m68k/xm-mpw.h: Delete file.
15564 * config/xm-mpw.h: Delete file.
15565 * ser-mac.c: Delete file.
15566 * mpw-make.sed: Delete file.
15567 * mpw-config.in: Delete file.
15568 * mac-xdep.c: Delete file.
15569 * mac-gdb.r: Delete file.
15570 * mac-defs.h: Delete file.
15571 * mac-nat.c: Delete file.
15572 * config/powerpc/macos.mh: Delete file.
15573 * config/powerpc/macos.mt: Delete file.
15574 * config/powerpc/nm-macos.h: Delete file.
15575 * config/powerpc/tm-macos.h: Delete file.
15576 * source.c (openp, open_source_file): Remove obsolete code.
15577 * top.c (gdb_readline): Ditto.
15578 * utils.c (query): Ditto.
15579 * event-top.c (display_gdb_prompt): Ditto.
15580 * Makefile.in (ser-mac.o): Delete obsolete target.
15581 * NEWS: Update.
15582
15583 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15584
15585 * defs.h (BIG_ENDIAN): Delete macro definition.
15586 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15587 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15588 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15589 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15590 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15591 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15592 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15593 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15594 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15595 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15596 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15597 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15598 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15599 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15600 * gdbarch.c: Re-generate.
15601
15602 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15603
15604 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15605 for core files.
15606
15607 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15608
15609 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15610
15611 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15612
15613 * value.h (value_ptr): Delete typedef.
15614
15615 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15616
15617 * i386nbsd-nat.c: Update copyright years.
15618 Include i386-tdep.h.
15619
15620 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15621
15622 * stabsread.c: Update copyright years.
15623
15624 From Debashis Mahata <debashis.mahata@wipro.com>:
15625 (read_struct_fields): Deal with Sun C compiler erroneous stab
15626 output for structs and unions.
15627 Fix PR gdb/269.
15628
15629 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15630
15631 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15632 prototype.
15633
15634 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15635
15636 * cp-abi.c: Fix whitespace.
15637 (baseclass_offset): New wrapper function.
15638 * cp-abi.h (baseclass_offset): Add prototype.
15639 (struct cp_abi_ops): Add baseclass_offset pointer.
15640
15641 * valops.c (vb_match): Move to...
15642 * gnu-v2-abi.c (vb_match): here.
15643 * valops.c (baseclass_offset): Move to...
15644 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15645
15646 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15647
15648 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15649 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15650 * hpacc-abi.c (init_hpacc_ops): Likewise.
15651
15652 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15653
15654 * valops.c (find_overload_match): Accept obj as a
15655 reference parameter. Update it before returning.
15656 * value.h (find_overload_match): Update prototype.
15657 * eval.c (evaluate_subexp_standard): Pass object to
15658 find_overload_match by reference.
15659
15660 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15661
15662 * valarith.c: Replace value_ptr with struct value pointer. Remove
15663 register attribute from value declarations.
15664 * valops.c: Ditto.
15665 * value.h: Ditto.
15666 * scm-lang.c (scm_lookup_name): Ditto.
15667
15668 2002-01-03 Michael Snyder <msnyder@redhat.com>
15669
15670 Abstract the functionality of iterating over mapped memory
15671 regions into a general purpose iterator function.
15672 * procfs.c (iterate_over_mappings): New function, general purpose
15673 iterator for memory sections.
15674 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15675 (solib_mappings_callback): New function, callback for above.
15676 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15677 (info_mappings_callback): New function, callback for above.
15678
15679 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15680
15681 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15682
15683 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15684 * i386-tdep.c: Include "elf-bfd.h".
15685 (process_note_abi_tag_sections): New function.
15686 (i386_gdbarch_init): Add code to recognize various OS/ABI
15687 combinations.
15688
15689 * maint.c (_initialize_maint_cmds): Add missing \ in
15690 string-literal.
15691
15692 For older changes see ChangeLog-2001
15693 \f
15694 Local Variables:
15695 mode: change-log
15696 left-margin: 8
15697 fill-column: 74
15698 version-control: never
15699 End:
This page took 0.330057 seconds and 5 git commands to generate.