2003-01-08 Andrew Cagney <ac131313@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-08 Andrew Cagney <cagney@redhat.com>
2
3 * alpha-linux-tdep.c (alpha_linux_sigcontext_addr): Use
4 get_frame_base.
5
6 2003-01-08 Andrew Cagney <ac131313@redhat.com>
7
8 * gdb_mbuild.sh: Add --keep option. When specified, keep the
9 build directories. Save edited gdb output in Mbuild.log. If a
10 build fails, remove any final GDB executable.
11
12 2003-01-08 Andrew Cagney <ac131313@redhat.com>
13
14 * gdb_mbuild.sh: Edit the output of `maint print architecture'
15 replacing hex constants with function names and stripping leading
16 file name directory prefixes.
17
18 2003-01-08 Andrew Cagney <cagney@redhat.com>
19
20 * gcore.c, i386-linux-tdep.c: Use get_frame_pc, get_next_frame and
21 get_frame_base.
22
23 2003-01-08 David Carlton <carlton@math.stanford.edu>
24
25 * linespec.c (decode_line_1): Move code into decode_variable.
26 (decode_variable): New function.
27
28 2003-01-08 Andrew Cagney <ac131313@redhat.com>
29
30 * mn10300-tdep.c (analyze_dummy_frame): Fix typo.
31
32 2003-01-08 Andrew Cagney <cagney@redhat.com>
33
34 * cris-tdep.c (cris_frame_init_saved_regs): Use
35 get_frame_saved_regs and SIZEOF_FRAME_SAVED_REGS when copying a
36 saved_regs buffer.
37 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Ditto.
38 (sh64_nofp_frame_init_saved_regs): Ditto.
39 (sh_fp_frame_init_saved_regs): Ditto.
40 * arm-tdep.c: Use deprecated_set_frame_saved_regs_hack.
41 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
42 * mcore-tdep.c (analyze_dummy_frame): Ditto.
43 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
44
45 2003-01-08 Daniel Jacobowitz <drow@mvista.com>
46
47 * minsyms.c (lookup_minimal_symbol): Update comment.
48 (lookup_minimal_symbol_text): Update comment. Use the hash table.
49 (lookup_minimal_symbol_solib_trampoline): Likewise.
50
51 2003-01-08 Andrew Cagney <cagney@redhat.com>
52
53 * d10v-tdep.c (d10v_init_extra_frame_info): Use
54 frame_relative_level.
55
56 * alpha-tdep.c: Use get_frame_extra_info.
57 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
58 * h8300-tdep.c, ia64-tdep.c, m68hc11-tdep.c, mcore-tdep.c: Ditto.
59 * mips-tdep.c, mn10300-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
60 * sparc-tdep.c, xstormy16-tdep.c: Ditto.
61
62 * alpha-tdep.c: Use get_next_frame.
63 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
64 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
65 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c: Ditto.
66 * mips-tdep.c, mn10200-tdep.c, mn10300-tdep.c: Ditto.
67 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, sparc-tdep.c: Ditto.
68 * v850-tdep.c, vax-tdep.c, x86-64-linux-tdep.c: Ditto.
69 * xstormy16-tdep.c: Ditto.
70
71 2003-01-07 Andrew Cagney <cagney@redhat.com>
72
73 * alpha-tdep.c: Use get_frame_base.
74 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
75 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
76 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
77 * mn10300-tdep.c, ns32k-tdep.c, s390-tdep.c, sh-tdep.c: Ditto.
78 * sparc-tdep.c, v850-tdep.c, vax-tdep.c: Ditto.
79 * x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
80 * config/h8500/tm-h8500.h, config/mn10200/tm-mn10200.h: Ditto.
81 * config/sparc/tm-sparc.h: Ditto.
82
83 2003-01-07 Andrew Cagney <cagney@redhat.com>
84
85 * frame.c (deprecated_get_frame_context): New function.
86 (deprecated_set_frame_context): New function.
87 * frame.h (deprecated_get_frame_context): Declare.
88 (deprecated_set_frame_context): Declare.
89 * dwarf2cfi.c (UNWIND_CONTEXT): Use deprecated_get_frame_context.
90 (cfi_init_extra_frame_info): Use deprecated_set_frame_context.
91
92 2003-01-07 Andrew Cagney <cagney@redhat.com>
93
94 * frame.c (deprecated_set_frame_next_hack): New function.
95 (deprecated_set_frame_prev_hack): New function.
96 * frame.h (deprecated_set_frame_next_hack): Declare.
97 (deprecated_set_frame_prev_hack): Declare.
98 * mcore-tdep.c (analyze_dummy_frame): Use
99 deprecated_set_frame_next_hack and deprecated_set_frame_prev_hack.
100 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
101
102 2003-01-07 David Carlton <carlton@math.stanford.edu>
103
104 * linespec.c (decode_line_1): Move code into decode_dollar.
105 (decode_dollar): New function.
106
107 2003-01-07 Andrew Cagney <cagney@redhat.com>
108
109 * arm-tdep.c (arm_init_extra_frame_info): Use
110 deprecated_update_frame_base_hack.
111 * xstormy16-tdep.c (xstormy16_scan_prologue): Ditto.
112 * mn10300-tdep.c (analyze_dummy_frame): Ditto.
113 (fix_frame_pointer): Ditto.
114 (mn10300_analyze_prologue): Ditto.
115
116 2003-01-07 Andrew Cagney <cagney@redhat.com>
117
118 * xstormy16-tdep.c (xstormy16_init_extra_frame_info): Allocate
119 extra_info using frame_extra_info_zalloc.
120 * sparc-tdep.c (sparc_init_extra_frame_info): Ditto.
121 * sh-tdep.c (sh_init_extra_frame_info): Ditto.
122 (sh64_init_extra_frame_info): Ditto.
123 * mn10300-tdep.c (mn10300_init_extra_frame_info): Ditto.
124 * s390-tdep.c (s390_init_extra_frame_info): Ditto.
125 * mips-tdep.c (mips_init_extra_frame_info): Ditto.
126 * mcore-tdep.c (mcore_init_extra_frame_info): Ditto.
127 * frv-tdep.c (frv_init_extra_frame_info): Ditto.
128 * m68hc11-tdep.c (m68hc11_init_extra_frame_info): Ditto.
129 * ia64-tdep.c (ia64_init_extra_frame_info): Ditto.
130 * h8300-tdep.c (h8300_init_extra_frame_info): Ditto.
131 * d10v-tdep.c (d10v_init_extra_frame_info): Ditto.
132 * cris-tdep.c (cris_init_extra_frame_info): Ditto.
133 * arm-tdep.c (arm_init_extra_frame_info): Ditto.
134 * alpha-tdep.c (alpha_init_extra_frame_info): Ditto.
135
136 * mn10300-tdep.c (analyze_dummy_frame): Use
137 deprecated_set_frame_extra_info_hack.
138 * mcore-tdep.c (analyze_dummy_frame): Ditto.
139
140 2003-01-07 J. Brobecker <brobecker@gnat.com>
141
142 * mdebugread.c (parse_symbol): Skip stProc entries which storage
143 class is not scText. These do not define "real" procedures.
144 (parse_partial_symbols): Likewise.
145
146 2003-01-06 Michael Snyder <msnyder@redhat.com>
147
148 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
149
150 2003-01-06 Andrew Cagney <ac131313@redhat.com>
151
152 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
153 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
154 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
155 deprecated_frame_xmalloc_with_cleanup.
156 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
157 deprecated_frame_xmalloc.
158 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
159 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
160
161 2003-01-06 Andrew Cagney <cagney@redhat.com>
162
163 * x86-64-linux-tdep.c: Include "osabi.h".
164 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
165
166 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
167
168 2003-01-06 Andrew Cagney <cagney@redhat.com>
169
170 * MAINTAINERS (Target Instruction Set Architectures): Update
171 arm-elf. Can be built with -Werror, has been multiarched.
172
173 * value.h (unpack_long): Make buffer parameter constant.
174 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
175 * scm-lang.h (scm_parse): Ditto.
176 * defs.h (extract_typed_address, extract_address): Ditto.
177 (extract_long_unsigned_integer): Ditto.
178 * inferior.h (unsigned_pointer_to_address): Ditto.
179 (signed_pointer_to_address): Ditto.
180 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
181 * gdbarch.h, gdbarch.c: Regenerate.
182 * findvar.c (extract_long_unsigned_integer): Update.
183 (extract_address): Update.
184 (extract_typed_address): Update.
185 (unsigned_pointer_to_address): Update.
186 * values.c (unpack_long): Update.
187 (unpack_double): Update.
188 (unpack_pointer): Update.
189 (unpack_field_as_long): Update.
190 * d10v-tdep.c (d10v_pointer_to_address): Update.
191 * avr-tdep.c (avr_pointer_to_address): Update.
192 * scm-lang.c (scm_unpack): Update.
193 * findvar.c (signed_pointer_to_address): Update.
194
195 2003-01-06 Michal Ludvig <mludvig@suse.cz>
196
197 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
198 since it is in i386-tdep.c.
199
200 2003-01-06 J. Brobecker <brobecker@gnat.com>
201
202 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
203 failure introduced in the previous change.
204
205 2003-01-05 Michael Chastain <mec@shout.net>
206
207 * README: Remove references to deleted remote-*.c files:
208 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
209 remote-nrom.c, remote-os9k.c, remote-udi.c.
210
211 2003-01-05 Mark Kettenis <kettenis@gnu.org>
212
213 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
214 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
215 i386_get_longjmp_target.
216
217 2003-01-05 Andrew Cagney <ac131313@redhat.com>
218
219 * arm-tdep.c (prologue_cache): Change to a pointer.
220 (_initialize_arm_tdep): Allocate prologue_cache.
221 (check_prologue_cache): Update.
222 (save_prologue_cache): Update.
223 (arm_gdbarch_init): Update.
224
225 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
226
227 * stabsread.c (update_method_name_from_physname): Call complaint()
228 instead of error.
229
230 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
231
232 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
233 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
234 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
235
236 * blockframe.c: Include "gdbcmd.h" and "command.h".
237 (backtrace_below_main): New variable.
238 (file_frame_chain_valid, func_frame_chain_valid)
239 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
240 (generic_func_frame_chain_valid): Remove functions.
241 (frame_chain_valid, do_flush_frames_sfunc): New functions.
242 (_initialize_blockframe): New function.
243 * Makefile.in (blockframe.o): Update dependencies.
244 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
245 comment. Call frame_chain_valid ().
246 * frame.h: Remove old prototypes. Add prototype for
247 frame_chain_valid and update comments to match.
248 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
249 Remove old comment.
250 * gdbarch.h: Regenerated.
251 * gdbarch.c: Regenerated.
252
253 * alpha-tdep.c (alpha_gdbarch_init): Don't call
254 set_gdbarch_frame_chain_valid.
255 * avr-tdep.c (avr_gdbarch_init): Likewise.
256 * cris-tdep.c (cris_gdbarch_init): Likewise.
257 * frv-tdep.c (frv_gdbarch_init): Likewise.
258 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
259 * i386-tdep.c (i386_svr4_init_abi): Likewise.
260 (i386_nw_init_abi): Likewise.
261 (i386_gdbarch_init): Likewise.
262 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
263 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
264 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
265 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
266 * mips-tdep.c (mips_gdbarch_init): Likewise.
267 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
268 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
269 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
270 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
271 * s390-tdep.c (s390_gdbarch_init): Likewise.
272 * sh-tdep.c (sh_gdbarch_init): Likewise.
273 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
274 * v850-tdep.c (v850_gdbarch_init): Likewise.
275 * vax-tdep.c (vax_gdbarch_init): Likewise.
276 * x86-64-tdep.c (x86_64_init_abi): Likewise.
277
278 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
279 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
280 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
281 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
282 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
283 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
284 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
285 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
286
287 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
288
289 * Makefile.in (acconfig_h): Remove incorrect macro.
290 (config_h): Define.
291 (osabi.o): Update dependencies.
292 * configure.tgt: Set gdb_osabi based on target triplet.
293 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
294 * configure: Regenerated.
295 * config.in: Regenerated.
296 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
297 (GDB_OSABI_DEFAULT): Define if not already defined.
298 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
299 (set_osabi_string): New variables.
300 (gdbarch_register_osabi): Add new OS ABI to
301 gdb_osabi_available_names.
302 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
303 (set_osabi, show_osabi): New functions.
304 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
305
306 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
307
308 * arch-utils.c (gdbarch_info_init): Set osabi to
309 GDB_OSABI_UNINITIALIZED.
310 * gdbarch.sh: Add osabi to struct gdbarch and to struct
311 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
312 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
313 * gdbarch.c: Regenerated.
314 * gdbarch.h: Regenerated.
315 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
316 there's no BFD.
317 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
318 * osabi.h (enum gdb_osabi): Move to defs.h.
319 (gdbarch_init_osabi): Update prototype.
320 * defs.h (enum gdb_osabi): Moved here.
321 * Makefile.in: Update dependencies.
322
323 * alpha-tdep.h: Don't include "osabi.h".
324 (struct gdbarch_tdep): Remove osabi member.
325 * alpha-tdep.c: Include "osabi.h".
326 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
327 iterate over arches. Update call to gdbarch_init_osabi.
328 (alpha_dump_tdep): Don't dump osabi.
329 * alpha-linux-tdep.c: Include "osabi.h".
330 * alpha-osf1-tdep.c: Include "osabi.h".
331 * alphafbsd-tdep.c: Include "osabi.h".
332 * alphanbsd-tdep.c: Include "osabi.h".
333
334 * arm-tdep.h: Don't include "osabi.h".
335 (struct gdbarch_tdep): Remove osabi member.
336 * arm-tdep.c: Include "osabi.h".
337 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
338 iterate over arches. Update call to gdbarch_init_osabi.
339 (arm_dump_tdep): Don't dump osabi.
340 * arm-linux-tdep.c: Include "osabi.h".
341 * armnbsd-tdep.c: Include "osabi.h".
342
343 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
344 Update call to gdbarch_init_osabi.
345
346 * i386-tdep.h: Don't include "osabi.h".
347 (struct gdbarch_tdep): Remove osabi member.
348 * i386-tdep.c: Include "osabi.h".
349 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
350 iterate over arches. Update call to gdbarch_init_osabi.
351 (i386_dump_tdep): Don't dump osabi.
352 * i386-linux-tdep.c: Include "osabi.h".
353 * i386-sol2-tdep.c: Include "osabi.h".
354 * i386bsd-tdep.c: Include "osabi.h".
355 * i386gnu-tdep.c: Include "osabi.h".
356 * i386ly-tdep.c: Include "osabi.h".
357 * i386nbsd-tdep.c: Include "osabi.h".
358 * i386obsd-tdep.c: Include "osabi.h".
359
360 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
361 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
362 check osabi when iterating over arches. Update call to
363 gdbarch_init_osabi.
364 (mips_dump_tdep): Don't dump osabi.
365
366 * ns32k-tdep.h: Don't include "osabi.h".
367 (struct gdbarch_tdep): Remove.
368 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
369 gdbarch_lookup_osabi. Don't iterate over arches. Don't
370 allocate tdep. Update call to gdbarch_init_osabi.
371 (ns32k_dump_tdep): Remove.
372 (_initialize_ns32k_tdep): Update call to gdbarch_register.
373 * ns32knbsd-tdep.c: Include "osabi.h".
374
375 * ppc-tdep.h: Don't include "osabi.h".
376 (struct gdbarch_tdep): Remove osabi member.
377 * rs6000-tdep.c: Include "osabi.h".
378 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
379 osabi when iterating over arches. Update call to
380 gdbarch_init_osabi.
381 (rs6000_dump_tdep): Don't dump osabi.
382 * ppc-linux-tdep.c: Include "osabi.h".
383 * ppcnbsd-tdep.c: Include "osabi.h".
384
385 * sh-tdep.h: Don't include "osabi.h".
386 (struct gdbarch_tdep): Remove osabi member.
387 * sh-tdep.c: Include "osabi.h".
388 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
389 iterate over arches. Update call to gdbarch_init_osabi.
390 (sh_dump_tdep): Don't dump osabi.
391 * shnbsd-tdep.c: Include "osabi.h".
392
393 * sparc-tdep.c: Include "osabi.h".
394 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
395 iterate over arches. Update call to gdbarch_init_osabi.
396 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
397 tdep structure.
398
399 * vax-tdep.h: Don't include "osabi.h".
400 (struct gdbarch_tdep): Remove.
401 * vax-tdep.c: Include "osabi.h".
402 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
403 iterate over arches. Don't allocate tdep. Update call
404 to gdbarch_init_osabi.
405 (vax_dump_tdep): Remove.
406 (_initialize_vax_tdep): Update call to gdbarch_register.
407
408 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
409
410 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
411 entirely.
412 (breakpoint_re_set_one): Don't fetch the value for a disabled
413 watchpoint.
414
415 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
416
417 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
418 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
419 (COERCE_FLOAT_TO_DOUBLE): Remove.
420 * gdbarch.c: Regenerate.
421 * gdbarch.h: Regenerate.
422 * Makefile.in: Remove value_h from gdbarch_h.
423 * valops.c (coerce_float_to_double): New variable.
424 (default_coerce_float_to_double): Remove.
425 (standard_coerce_float_to_double): Remove.
426 (value_arg_coerce): Use coerce_float_to_double.
427 (_initialize_valops): Add "set coerce-float-to-double".
428 * value.h (default_coerce_float_to_double): Remove prototype.
429 (standard_coerce_float_to_double): Remove prototype.
430
431 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
432 prototyped.
433 * mdebugread.c (parse_symbol): Likewise.
434 * stabsread.c (define_symbol): Mark all functions as prototyped.
435
436 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
437 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
438 set_gdbarch_coerce_float_to_double.
439 * arm-tdep.c (arm_gdbarch_init): Likewise.
440 * frv-tdep.c (frv_gdbarch_init): Likewise.
441 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
442 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
443 * mips-tdep.c (mips_gdbarch_init): Likewise.
444 (mips_coerce_float_to_double): Remove.
445 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
446 (rs6000_coerce_float_to_double): Remove.
447 * s390-tdep.c (s390_gdbarch_init): Likewise.
448 * sh-tdep.c (sh_gdbarch_init): Likewise.
449 (sh_coerce_float_to_double): Remove.
450 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
451 (sparc_coerce_float_to_double): Remove.
452 * v850-tdep.c (v850_gdbarch_init): Likewise.
453 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
454 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
455 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
456 (hppa_coerce_float_to_double): Remove prototype.
457 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
458
459 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
460
461 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
462
463 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
464
465 Suggested by Stewart Brown <sb24@avaya.com>:
466 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
467 in recursive calls. Handle TYPE_CODE_TYPEDEF.
468 (c_type_print_varspec_suffix): Likewise.
469
470 2003-01-04 Mark Kettenis <kettenis@gnu.org>
471
472 * configure.in: Don't set and AC_SUBST SUBDIRS.
473 * configure: Regenerated.
474
475 * configure.in: Remove code dealing with shared libraries.
476 * Makefile.in: Remove HLDFLAGS and HLDENV.
477 * configure: Regenerated.
478
479 2003-01-04 Andrew Cagney <ac131313@redhat.com>
480
481 * frame.c (deprecated_frame_xmalloc): New function.
482 (deprecated_set_frame_saved_regs_hack): New function.
483 (deprecated_set_frame_extra_info_hack): New function.
484 * frame.h (deprecated_frame_xmalloc): Declare.
485 (deprecated_set_frame_saved_regs_hack): Declare.
486 (deprecated_set_frame_extra_info_hack): Declare.
487
488 2003-01-04 Mark Kettenis <kettenis@gnu.org>
489
490 * configure.in: Move code that provides the --enable-gdbtk option
491 right after the code that handles the --enable-tui option, and
492 polish it somewhat.
493 * configure: Regenerated.
494
495 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
496 AC_CHECK_FUNCS and remove the old check for pread64.
497 * acinclude.m4 (AC_GNU_SOURCE): New macro.
498 * acconfig.h (_GNU_SOURCE): Add.
499 (HAVE_PREAD64): Remove.
500 * configure, aclocal.m4, config.in: Regenerated.
501
502 2003-01-03 Andrew Cagney <ac131313@redhat.com>
503
504 * alpha-tdep.c: Use get_frame_saved_regs.
505 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
506 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
507 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
508 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
509 * vax-tdep.c, xstormy16-tdep.c: Ditto.
510
511 2003-01-03 Mark Kettenis <kettenis@gnu.org>
512
513 * configure.in: Remove all use of the SUBDIRS variable; add
514 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
515 code providing the --enable-multi-ice option, and move it right in
516 front of the code that checks whether gdbserver is supported.
517 Polish that too.
518 * configure: Regenerated.
519 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
520 @SUBDIRS@.
521
522 2003-01-03 Andrew Cagney <cagney@redhat.com>
523
524 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
525 * avr-tdep.c, cris-tdep.c: Ditto.
526 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
527 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
528
529 2003-01-03 Mark Kettenis <kettenis@gnu.org>
530
531 * configure.in: Remove --enable-netrom option.
532 * configure: Regenerated.
533
534 2003-01-03 Mark Kettenis <kettenis@gnu.org>
535
536 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
537 declaration for `struct re_pattern_buffer' instead.
538 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
539
540 2003-01-03 J. Brobecker <brobecker@gnat.com>
541
542 * mdebugread.c (parse_symbol): Count until the stEnd matching
543 the structure name.
544
545 2003-01-02 Mark Kettenis <kettenis@gnu.org>
546
547 * configure.in: Remove --with-cpu option.
548 subscripts. Remove evil changequotes here.
549 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
550 * config.in, configure: Regenerated.
551
552 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
553 * configure.in: Cleanup section that sources GDB and BFD configure
554 subscripts. Remove evil changequotes here.
555 * config.in, configure: Regenerated.
556
557 2003-01-02 Andrew Cagney <ac131313@redhat.com>
558
559 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
560 frame accessor methods.
561 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
562 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
563 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
564 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
565 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
566 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
567 * z8k-tdep.c: Ditto.
568
569 2003-01-02 Mark Kettenis <kettenis@gnu.org>
570
571 * configure.in: Remove UI_OUT configuration code.
572 * ada-lang.c: Update assuming UI_OUT is always true.
573 * Makefile.in (UIOUT_CFLAGS): Remove.
574 * configure: Regenerated.
575 * TODO: Remove blurb about elimination of -DUI_OUT.
576
577 * configure.in: Move code that provides the --enable-gdbcli,
578 --enable-gdbmi options right before the code that handles the
579 --enable-tui option. Polish a bit.
580 * configure: Regenerated.
581
582 * configure.in: Rewrite check for GNU regex and the
583 --without-included regex option, and move it into the "Checks for
584 library functions" section. This makes us use the system regex
585 again by default on systems with version 2 of the GNU C library.
586 This was apparently broken.
587 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
588 * acconfig.h (USE_INCLUDED_REGEX): Remove.
589 * config.in, configure: Regenerated.
590
591 * configure.in: Move code that provides the --enable-tui option
592 before the "Checks for libraries" section. Polish the code
593 somewhat and set need_curses to yes if we build the TUI. Rewrite
594 code that looks for a library providing termcap functionality to
595 match more closely what's done in the Readline library, and move
596 it into to the "Checks for libraries" section.
597 * configure: Regenerated.
598 * Makefile.in (TERMCAP): Remove variable.
599 * config/i386/go32.mh (TERMCAP): Remove variable.
600
601 2003-01-02 Andrew Cagney <ac131313@redhat.com>
602
603 * MAINTAINERS: Mention gdb_mbuild.sh.
604 * gdb_mbuild.sh: Rewrite.
605
606 2003-01-02 Mark Kettenis <kettenis@gnu.org>
607
608 * configure.in: Fix typo in last change.
609 * config.in, configure: Regenerated.
610
611 2003-01-02 Andrew Cagney <ac131313@redhat.com>
612
613 * valarith.c (value_binop): Delete obsolete code and comments.
614 * configure.host: Ditto.
615 * buildsym.h (make_blockvector): Ditto.
616 * buildsym.c (make_blockvector): Ditto.
617 * defs.h (enum language): Ditto.
618 (chill_demangle): Ditto.
619 * elfread.c (elf_symtab_read): Ditto.
620 * dwarfread.c (CHILL_PRODUCER): Ditto.
621 (set_cu_language): Ditto.
622 (handle_producer): Ditto.
623 * expprint.c (print_subexp): Ditto.
624 * gdbtypes.c (chill_varying_type): Ditto.
625 * gdbtypes.h (builtin_type_chill_bool): Ditto.
626 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
627 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
628 (chill_varying_type): Ditto.
629 * language.h (_LANG_chill): Ditto.
630 * language.c (binop_result_type, integral_type): Ditto.
631 (character_type, string_type, structured_type): Ditto.
632 (lang_bool_type, binop_type_check): Ditto.
633 * stabsread.h (os9k_stabs): Ditto.
634 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
635 (define_symbol, read_type, read_struct_fields): Ditto.
636 (read_array_type, read_enum_type, read_huge_number): Ditto.
637 (read_range_type, start_stabs): Ditto.
638 * symfile.c (init_filename_language_table): Ditto.
639 (add_psymbol_with_dem_name_to_list): Ditto.
640 * symtab.c (symbol_init_language_specific): Ditto.
641 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
642 * symtab.h (struct general_symbol_info): Ditto.
643 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
644 * typeprint.c (typedef_print): Ditto.
645 * utils.c (fprintf_symbol_filtered): Ditto.
646 * valops.c (value_cast, search_struct_field, value_slice): Delete
647 obsolete code.
648 (varying_to_slice): Delete function.
649 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
650 (varying_to_slice): Delete declaration.
651 * MAINTAINERS: Update.
652
653 2003-01-02 Mark Kettenis <kettenis@gnu.org>
654
655 * configure.in: Reorganize "Checks for library functions section"
656 a bit. Remove check for `btowc' and `isascii' functions.
657 * configure: Regenerated.
658
659 * acconfig.h (_MSE_INT_H): Remove.
660 * configure.in: Create "Checks for header files" section, and move
661 appropriate tests there. Don't check for objlist.h, wchar.h,
662 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
663 misdetection fix. Also add "Checks for types", "Checks for
664 compiler characteristics" and "Checks for library functions"
665 sections.
666 * config.in, configure: Regenerated.
667
668 * configure.in: Create "Checks for programs" section, and move
669 appropriate tests there.
670
671 2003-01-01 Mark Kettenis <kettenis@gnu.org>
672
673 * configure.in: Create "Checks for libraries" section, and move
674 appropriate tests there. Cleanup check for wctype in libw. Use
675 AC_SEARCH_LIBS to see whether we need libsocket.
676 * configure: Regenerated.
677
678 2002-12-31 Mark Kettenis <kettenis@gnu.org>
679
680 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
681 * config.in, configure: Regenerated.
682
683 2002-12-31 Mark Kettenis <kettenis@gnu.org>
684
685 * gdb_dirent.h: Cleanup and update code to match the example in
686 the Autoconf manual.
687 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
688 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
689 * configure: Regenerated.
690
691 2002-12-30 Adam Fedor <fedor@gnu.org>
692
693 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
694 (yylex): Initialize c to avoid uninitialized warning.
695
696 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
697
698 * doc/fdl.texi: Revert the last change.
699
700 2002-12-29 Mark Kettenis <kettenis@gnu.org>
701
702 * tracepoint.c (ISATTY): Removed.
703
704 2002-12-26 J. Brobecker <brobecker@gnat.com>
705
706 Continuing work to convert the hppa targets to multiarch partil.
707
708 * hppa-tdep.c: Add some missing forward declarations.
709 (frameless_function_invocation): Prefix the function name
710 by "hppa_" to avoid polluting the namespace. Update all calls
711 to use the new function name.
712 (saved_pc_after_call): Ditto.
713 (init_extra_frame_info): Ditto.
714 (frame_chain): Ditto.
715 (push_dummy_frame): Ditto.
716 (target_read_pc): Ditto.
717 (target_write_pc): Ditto.
718 (in_solib_call_trampoline): Ditto.
719 (in_solib_return_trampoline): Ditto.
720 (skip_trampoline_code): Ditto.
721 (hppa_read_fp): New function, renamed from target_read_fp.
722 (hppa_target_read_fp): New function, using hppa_read_fp.
723 This function conforms to the function profile for the
724 READ_FP gdbarch method.
725 (hppa_extract_struct_value_address): New function, extracted
726 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
727 macro.
728 (hppa_frame_num_args): New function.
729 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
730
731 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
732 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
733 for the switch to multiarch partial.
734 Update some of the macros definitions to match some changes
735 described above in the name of the function they are calling.
736 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
737 not be straightforward to convert. Do now wrap it inside
738 "#if !... #endif" to remember that this macro has still not
739 been taken care of.
740 (FIX_CALL_DUMMY): Likewise.
741
742 2002-12-26 J. Brobecker <brobecker@gnat.com>
743
744 Continuing work to convert the hppa targets to multiarch partial.
745
746 * hppa-tdep.c (hppa_register_raw_size): New function replacing
747 the body of macro REGISTER_RAW_SIZE.
748 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
749 config/pa/tm-hppah.h. These functions will be used to initialize
750 the gdbarch structure.
751 (hppa_hpux_pc_in_sigtramp): New function.
752 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
753 (hppa_hpux_frame_base_before_sigtramp): New function.
754 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
755 Add gdbcore.h #include.
756 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
757 of this gdbarch-eligible macro to a call to the new associated
758 function.
759 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
760 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
761 into a call to the new associated function.
762 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
763 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
764 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
765
766 2002-12-24 David Carlton <carlton@math.stanford.edu>
767
768 * config/sparc/tm-sparc.h: Delete duplicate definition of
769 DEPRECATED_PC_IN_CALL_DUMMY.
770
771 2002-12-24 Kevin Buettner <kevinb@redhat.com>
772
773 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
774 $(gdb_assert_h).
775 * configure.tgt: Recognize mips64*-*-linux*.
776 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
777 (supply_32_bit_reg): New function.
778 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
779 (fill_gregset): Use regcache_collect() instead of
780 deprecated_registers[].
781 (register_addr): Change name to mips_linux_register_addr().
782 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
783 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
784 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
785 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
786 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
787 (MIPS64_LINUX_JB_PC): New defines.
788 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
789 (mips64_elf_fpregset_t): New typedefs.
790 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
791 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
792 (mips64_linux_register_addr, set_mips_linux_register_addr)
793 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
794 (init_register_addr_data)
795 New functions.
796 (fetch_core_registers): Add support for core file formats with 64-bit
797 registers.
798 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
799 (register_addr_data): New static global variable.
800 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
801 gdbarch_register_osabi() for each MIPS machine.
802 * config/mips/linux64.mt: New file.
803 * config/mips/tm-linux64.h: New file.
804
805 2002-12-23 Adam Fedor <fedor@gnu.org>
806
807 * maint.c (maintenance_demangle): Add switch to demangle
808 ObjC language symbols as well.
809
810 2002-12-23 Adam Fedor <fedor@gnu.org>
811
812 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
813 last argument from complaint function call.
814
815 2002-12-23 Kevin Buettner <kevinb@redhat.com>
816
817 * exec.c (print_section_info): Add FIXME comments regarding format
818 string choices.
819
820 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
821
822 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
823 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
824
825 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
826
827 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
828
829 2002-12-23 David Carlton <carlton@math.stanford.edu>
830
831 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
832 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
833 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
834 information associated to a minsym, not lookup_symbol.
835
836 2002-12-21 Mark Kettenis <kettenis@gnu.org>
837
838 * x86-64-tdep.h (x86_64_init_abi): New prototype.
839 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
840 (x86_64_init_abi): Make non-static. Set number of pseudo
841 registers to 0.
842 (x86_64_gdbarch_init): Remove function.
843 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
844 Remove code dealing with dissambly.
845 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
846 (_initialize_x86_64_linux_tdep): New function.
847 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
848 i386-tdep.o.
849
850 2002-12-14 Mark Kettenis <kettenis@gnu.org>
851
852 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
853 (struct gdb_osabi_handler): Remove member `arch'. Add member
854 `arch_info'.
855 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
856 construct a `struct bfd_arch_info' and store it in the `struct
857 gdb_osabi_handler' that is created.
858 (gdbarch_init_osabi): Check for compatibility based on machine
859 type and architecture.
860 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
861 comment.
862 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
863 second argument in call to gdbarch_register_osabi.
864 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
865 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
866 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
867 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
868 * arm-tdep.c (_initialize_arm_tdep): Likewise.
869 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
870 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
871 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
872 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
873 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
874 * i386-tdep.c (_initialize_i386_tdep): Likewise.
875 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
876 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
877 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
878 _initialize_i386bsd_tdep and updated likewise.
879 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
880 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
881 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
882 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
883 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
884 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
885 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
886 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
887 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
888 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
889
890 2002-12-20 Kevin Buettner <kevinb@redhat.com>
891
892 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
893 DT_MIPS_RLD_MAP case for 64-bit targets.
894
895 2002-12-20 Kevin Buettner <kevinb@redhat.com>
896
897 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
898 ``temp_saved_regs'', not the pointer or other storage contiguous
899 to this pointer.
900
901 2002-12-20 Kevin Buettner <kevinb@redhat.com>
902
903 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
904 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
905 (mips_linux_get_longjmp_target): Delete declarations.
906 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
907 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
908 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
909 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
910 (mips_linux_get_longjmp_target)
911 (mips_linux_svr4_fetch_link_map_offsets): Make static.
912 (mips_linux_init_abi): New function.
913 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
914
915 2002-12-19 Keith Seitz <keiths@redhat.com>
916
917 patch committed by Elena Zannoni <ezannoni@redhat.com>
918 * thread.c (do_captured_list_thread_ids): Call prune_threads and
919 target_find_new_threads. Fix for PR mi/669.
920
921 2002-12-19 David Carlton <carlton@math.stanford.edu>
922
923 * linespec.c (decode_line_1): Move code into decode_all_digits.
924 (decode_all_digits): New function.
925
926 2002-12-19 Kevin Buettner <kevinb@redhat.com>
927
928 * exec.c (print_section_info): Select a format string to use with
929 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
930
931 2002-12-18 Andrew Cagney <ac131313@redhat.com>
932
933 * frame.c (deprecated_update_current_frame_pc_hack): Replace
934 deprecated_update_current_frame_pc_hack.
935 (deprecated_update_frame_base_hack): New function.
936 * frame.h (deprecated_update_frame_pc_hack): Replace
937 (deprecated_update_frame_base_hack): Declare.
938 * infrun.c (normal_stop): Update.
939
940 2002-12-18 Andrew Cagney <ac131313@redhat.com>
941
942 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
943 frame_extra_info_zalloc.
944 (rs6000_frame_args_address): Use get_frame_extra_info.
945 (frame_get_saved_regs): Use get_frame_saved_regs.
946 (frame_initial_stack_address): Use get_frame_saved_regs and
947 get_frame_extra_info.
948 (frame_initial_stack_address): Use get_frame_extra_info.
949
950 2002-12-17 Kevin Buettner <kevinb@redhat.com>
951
952 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
953 array size.
954 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
955 checks for r3900_regnames[].
956
957 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
958
959 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
960 All uses changed
961 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
962
963 2002-12-17 David Carlton <carlton@math.stanford.edu>
964
965 * symtab.c (lookup_partial_symbol): Don't search past the end of
966 the partial symbols.
967
968 2002-12-17 Andrew Cagney <ac131313@redhat.com>
969
970 * stack.c (frame_info): Use get_frame_saved_regs.
971 * breakpoint.c (until_break_command): Use get_frame_pc.
972
973 2002-12-16 Kevin Buettner <kevinb@redhat.com>
974
975 * buildsym.c (block_end_complaint, anon_block_end_complaint)
976 (innerblock_complaint, innerblock_anon_complaint)
977 (blockvector_complaint): Delete deprecated complaint structs.
978 (finish_block, make_blockvector, end_symtab): Replace calls
979 to complain() with calls to complaint().
980 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
981 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
982 (unexpected_type_complaint, bad_sclass_complaint)
983 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
984 Delete deprecated complaint structs.
985 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
986 Replace calls to complain() with calls to complaint().
987 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
988 (unknown_symtype_complaint, unknown_symchar_complaint)
989 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
990 (lbrac_mismatch_complaint, repeated_header_complaint)
991 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
992 Delete deprecated complaint structs.
993 (unknown_symtype_complaint, lbrac_mismatch_complaint)
994 (repeated_header_complaint)
995 (function_outside_compiliation_unit_complaint): New functions.
996 (add_old_header_file, find_corresponding_bincl_psymtab)
997 (set_namestring, find_stab_function_addr, read_dbx_symtab)
998 (process_one_symbol): Replace calls to complain() with, possibly
999 indirect, calls to complaint().
1000 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
1001 (unknown_attribute_form, unknown_attribute_length)
1002 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
1003 (const_ignored, botched_modified_type, op_deref2, op_deref4)
1004 (basereg_not_handled, dup_user_type_allocation)
1005 (dup_user_type_definition, missing_tag, bad_array_element_type)
1006 (subscript_data_items, unhandled_array_subscript_format)
1007 (unknown_array_subscript_format, not_row_major)
1008 (missing_at_name): Delete deprecated complaint structs.
1009 (bad_die_ref_complaint, unknown_attribute_form_complaint)
1010 (dup_user_type_definition_complaint)
1011 (bad_array_element_type_complaint): New functions.
1012 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
1013 (decode_subscript_data_item, dwarf_read_array_type)
1014 (read_tag_string_type, read_subroutine_type, read_func_scope)
1015 (locval, scan_partial_symbols, decode_modified_type)
1016 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
1017 (attribute_size): Replace calls to complain() with, possibly
1018 indirect, calls to complaint().
1019 * elfread.c (section_info_complaint, section_info_dup_complaint)
1020 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
1021 Delete deprecated complaint structs.
1022 (elf_symtab_read, elfstab_offset_sections): Replace calls to
1023 complain() with calls to complaint().
1024 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
1025 struct.
1026 (stub_noname_complaint): New function.
1027 (check_typedef, add_mangled_type): Replace calls to complain()
1028 with calls to complaint().
1029 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
1030 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
1031 (hpread_unhandled_type_complaint, hpread_struct_complaint)
1032 (hpread_array_complaint, hpread_type_lookup_complaint)
1033 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
1034 (hpread_unhandled_common_complaint)
1035 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
1036 struct definitions and declarations.
1037 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
1038 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
1039 Replace calls to complain() with, possibly indirect, calls to
1040 complaint().
1041 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
1042 Likewise.
1043 * mdebugread.c (bad_file_number_complaint, index_complaint)
1044 (aux_index_complaint, block_index_complaint)
1045 (unknown_ext_complaint, unknown_sym_complaint)
1046 (unknown_st_complaint, block_overflow_complaint)
1047 (basic_type_complaint, unknown_type_qual_complaint)
1048 (array_index_type_complaint, bad_tag_guess_complaint)
1049 (block_member_complaint, stEnd_complaint)
1050 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
1051 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
1052 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
1053 (bad_continued_complaint, bad_rfd_entry_complaint)
1054 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
1055 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
1056 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
1057 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
1058 complaint structs.
1059 (index_complaint, unknown_ext_complaint, basic_type_complaint)
1060 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
1061 (unexpected_type_code_complaint)
1062 (function_outside_compilation_unit_complaint): New functions.
1063 (parse_symbol, parse_type, upgrade_type, parse_procedure)
1064 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
1065 Replace calls to complain() with, possibly indirect calls to
1066 complaint().
1067 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
1068 Delete deprecated complaint structs.
1069 (lookup__objc_class, lookup_child_selector): Replace complain()
1070 with complaint().
1071 * remote-vx.c (cant_contact_target): Delete deprecated complaint
1072 struct.
1073 (vx_lookup_symbol): Replace complain() with complaint().
1074 * stabsread.c (invalid_cpp_abbrev_complaint)
1075 (invalid_cpp_type_complaint, member_fn_complaint)
1076 (const_vol_complaint, error_type_complaint)
1077 (invalid_member_complaint, range_type_base_complaint)
1078 (reg_value_complaint, vtbl_notfound_complaint)
1079 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
1080 (unresolved_sym_chain_complaint, stabs_general_complaint)
1081 (lrs_general_complaint, multiply_defined_struct): Delete
1082 deprecated complaint structs.
1083 (invalid_cpp_abbrev_complaint, ref_value_complaint)
1084 (stabs_general_complaint, lrs_general_complaint)
1085 (msg_unknown_complaint): New functions.
1086 (dbx_lookup_type, read_cfront_baseclasses)
1087 (read_cfront_member_functions, resolve_symbol_reference)
1088 (define_symbol, resolve_live_range, add_live_range, read_type)
1089 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
1090 (read_one_struct_field, read_baseclasses, read_tilde_fields)
1091 (read_cfront_static_fields, attach_fields_to_type)
1092 (complain_about_struct_wipeout, read_range_type)
1093 (common_block_start, common_block_end, cleanup_undefined_types)
1094 (scan_file_globals): Replace complain() with complaint().
1095 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
1096 Delete deprecated complaint struct declarations.
1097 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
1098 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
1099 (bf_not_found_complaint, ef_complaint, eb_complaint)
1100 (function_outside_compilation_unit_complaint): New functions.
1101 (record_include_begin, record_include_end, enter_line_range)
1102 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
1103 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
1104 complain() with complaint().
1105
1106 2002-12-16 Andrew Cagney <ac131313@redhat.com>
1107
1108 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
1109 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
1110 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
1111 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
1112 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
1113 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
1114 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
1115 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
1116 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
1117 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
1118 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
1119 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
1120 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
1121 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
1122 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
1123 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
1124 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
1125 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
1126 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
1127 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
1128 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
1129 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
1130 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
1131 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
1132 * config/m88k/xm-dgux.h: Delete.
1133 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
1134 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
1135 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
1136 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
1137 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
1138 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
1139 * ch-valprint.c: Delete.
1140
1141 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1142
1143 * infrun.c (handle_inferior_event): Rearrange code to resume if
1144 no catchpoint triggers for an event.
1145
1146 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1147
1148 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1149 and TARGET_WAITKIND_VFORKED cases.
1150
1151 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1152
1153 * infrun.c (handle_inferior_event): Assume that catchpoints
1154 are not affected by DECR_PC_AFTER_BREAK.
1155
1156 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1157
1158 * target.c (update_current_target): Don't inherit DONT_USE.
1159 * target.h (struct target_ops): Remove DONT_USE.
1160 (target_next): Remove macro.
1161
1162 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1163
1164 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1165
1166 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1167
1168 * arm-tdep.c (convert_from_extended): New argument to hold the
1169 type of floating point result we want to convert to. Make input
1170 argument const. Fix all callers.
1171 (convert_to_extended): Similarly.
1172 (arm_extract_return_value): Now takes a regcache argument. Change
1173 code to use regcache accessor functions. Correctly extract
1174 smaller-than-word results on big-endian machines.
1175 (arm_store_return_value): Now takes a regcache argument. Change
1176 code to use regcache accessor functions. Correctly zero/sign extend
1177 smaller than word results before storing into r0.
1178 (arm_gdbarch_init): Register new-style extract_return_value and
1179 store_return_value functions.
1180
1181 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1182
1183 * thread-db.c (thread_from_lwp): Uniquify error msg.
1184 (lwp_from_thread): Ditto.
1185 (check_event): Ditto.
1186 (find_new_threads_callback): Ditto.
1187 (thread_db_pid_to_str): Ditto.
1188
1189 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1190
1191 * frame.h (get_frame_saved_regs): Declare.
1192 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1193 pointer.
1194 * frame.c (get_frame_saved_regs): New function.
1195 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1196
1197 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1198
1199 * frame.c (deprecated_update_current_frame_pc_hack): New
1200 function.
1201 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1202 * infrun.c (normal_stop): Use said function instead of directly
1203 modifying the frame's PC.
1204
1205 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1206
1207 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1208
1209 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1210
1211 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1212 config/mips/tm-irix6.h (NUM_REGS): Delete.
1213 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1214 (temp_saved_regs): Declare as a pointer rather than an array.
1215 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1216 that ``temp_saved_regs'' has storage allocated to it and that
1217 it's the correct size.
1218
1219 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1220
1221 * defs.h (init_last_source_visited): New prototype.
1222 (add_path): Ditto.
1223 * source.c (add_path): New function that adds to a specified path.
1224 (mod_path): Change to call add_path.
1225 (init_last_source_visited): New function to allow interfaces to
1226 initialize static variable: last_source_visited. Part of fix
1227 for PR gdb/741.
1228 * Makefile.in: Add support for mi/mi-cmd-env.c.
1229
1230 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1231
1232 * frame.h (frame_id_unwind): Declare.
1233 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1234 id_unwind_cache.
1235 (frame_id_unwind_ftype): Declare.
1236 * frame.c (frame_id_unwind): New function.
1237 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1238 (create_new_frame, get_prev_frame): Pass id_unwind to
1239 set_unwind_by_pc.
1240 (frame_saved_regs_id_unwind): New function.
1241 (frame_saved_regs_id_unwind): New function.
1242 * dummy-frame.c (dummy_frame_id_unwind): New function.
1243 (struct dummy_frame): Add field id.
1244 (generic_push_dummy_frame): Initialize `id'.
1245 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1246
1247 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1248
1249 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1250 pass that to set_momentary_breakpoint. Move comments to where they
1251 belong.
1252 * frame.h (set_current_frame): Delete declaration.
1253 * frame.c (set_current_frame): Delete function.
1254
1255 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1256
1257 * frame.c (frame_extra_info_zalloc): New function.
1258 * frame.h (frame_extra_info_zalloc): Declare.
1259
1260 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1261
1262 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1263 in the previous prototype change to set_momentary_breakpoint.
1264
1265 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1266
1267 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1268 and saw_child_exec.
1269 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1270 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1271 (stop_stepping): Remove outdated check for child vfork events.
1272
1273 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1274
1275 * GDB 5.3 released from gdb_5_3-branch.
1276
1277 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1278
1279 * corelow.c (init_core_ops): Delete references to to_require_attach
1280 and to_require_detach.
1281 * exec.c (init_exec_ops): Likewise.
1282 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1283 hppa_require_detach directly.
1284 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1285 * inftarg.c (child_detach): Remove.
1286 (child_detach_from_process): Rename to child_detach, remove
1287 after_fork argument.
1288 (child_attach): Remove.
1289 (child_attach_to_process): Rename to child_attach, remove after_fork
1290 argument.
1291 (init_child_ops): Delete references to to_require_attach
1292 and to_require_detach.
1293 * infttrace.c (hppa_require_attach): Update comment.
1294 * target.c (cleanup_target, update_current_target)
1295 (init_dummy_target, setup_target_debug): Delete references to
1296 to_require_attach and to_require_detach.
1297 (find_default_require_detach, find_default_require_attach)
1298 (debug_to_require_attach, debug_to_require_detach): Remove
1299 functions.
1300 * target.h (struct target_ops): Remove to_require_attach
1301 and to_require_detach.
1302 (target_require_attach, target_require_detach): Delete macros.
1303 (find_default_require_detach, find_default_require_attach): Delete
1304 prototypes.
1305 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1306
1307 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1308
1309 * frame.c (get_frame_extra_info): New function.
1310 * frame.h (get_frame_extra_info): Declare.
1311
1312 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1313
1314 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1315 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1316 with `struct frame_id'.
1317 (set_longjmp_resume_breakpoint): Ditto.
1318 * infrun.c (handle_inferior_event): Update.
1319 * breakpoint.c (watch_command_1, until_break_command): Update.
1320 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1321 (handle_inferior_event, step_over_function): Update.
1322 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1323 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1324 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1325 * infcmd.c (finish_command, run_stack_dummy): Update.
1326
1327 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1328
1329 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1330 (dwarf2_non_const_array_bound_ignored)
1331 (dwarf2_missing_line_number_section)
1332 (dwarf2_statement_list_fits_in_line_number_section)
1333 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1334 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1335 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1336 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1337 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1338 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1339 (dwarf2_missing_member_fn_type_complaint)
1340 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1341 (dwarf2_const_value_length_mismatch)
1342 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1343 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1344 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1345 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1346 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1347 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1348 complaints using deprecated struct..
1349 (dwarf2_non_const_array_bound_ignored_complaint)
1350 (dwarf2_complex_location_expr_complaint)
1351 (dwarf2_unsupported_at_frame_base_complaint)
1352 (dwarf2_const_value_length_mismatch_complaint)
1353 (dwarf2_macros_too_long_complaint)
1354 (dwarf2_macro_malformed_definition_complaint)
1355 (dwarf2_invalid_attrib_class_complaint): New functions.
1356 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1357 (read_structure_scope, read_array_type, read_common_block)
1358 (read_tag_pointer_type, read_base_type, read_partial_die)
1359 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1360 (new_symbol, dwarf2_const_value, read_type_die)
1361 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1362 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1363 complain() with, possibly indirect, calls to complaint().
1364
1365 2002-12-11 Andrew Cagney <cagney@redhat.com>
1366
1367 * frame.c (deprecated_get_frame_saved_regs): Rename
1368 get_frame_saved_regs.
1369 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1370 * sparc-tdep.c: Update.
1371 * hppa-tdep.c: Update.
1372 * h8500-tdep.c: Update.
1373
1374 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1375
1376 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1377 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1378 ``char *'' for return and parameter types.
1379 * gdbarch.h, gdbarch.c: Regenerate.
1380 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1381 return type from ``char *'' to ``const char *''.
1382 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1383 const.
1384
1385 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1386
1387 * i386-tdep.c: Include "dummy-frame.h".
1388 (i386_frame_chain, i386_frame_saved_pc): Replace
1389 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1390 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1391
1392 2002-12-10 Andrew Cagney <cagney@redhat.com>
1393
1394 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1395 Change to a function with predicate.
1396 * gdbarch.h, gdbarch.c: Re-generate.
1397 * frame.c (get_prev_frame): Update. Test
1398 DEPRECATED_INIT_FRAME_PC_P.
1399 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1400 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1401 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1402 * alpha-tdep.c (alpha_gdbarch_init): Update.
1403 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1404 * mips-tdep.c (mips_gdbarch_init): Update.
1405 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1406 * arm-tdep.c: Update comments.
1407 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1408 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1409 * frv-tdep.c (frv_gdbarch_init): Ditto.
1410 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1411 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1412 * s390-tdep.c (s390_gdbarch_init): Ditto.
1413 * v850-tdep.c (v850_gdbarch_init): Ditto.
1414 * vax-tdep.c (vax_gdbarch_init): Ditto.
1415 * sh-tdep.c (sh_gdbarch_init): Ditto.
1416 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1417 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1418 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1419 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1420 * i386-tdep.c (i386_gdbarch_init): Ditto.
1421 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1422 * cris-tdep.c (cris_gdbarch_init): Ditto.
1423 * avr-tdep.c (avr_gdbarch_init): Ditto.
1424 * arm-tdep.c (arm_gdbarch_init): Ditto.
1425 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1426 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1427
1428 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1429
1430 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1431 CHILD_FOLLOW_FORK.
1432 * hppah-nat.c (saved_vfork_pid): Add.
1433 (child_post_follow_vfork): Remove.
1434 (child_follow_fork): New function.
1435 (child_wait): Call detach_breakpoints after receiving the child vfork.
1436 Call child_resume directly instead of going through resume ().
1437 Make sure we have the exec before reporting the vfork.
1438 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1439 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1440 (follow_fork): New function. Call target_follow_fork.
1441 (follow_inferior_reset_breakpoints): New function broken out from
1442 old follow_inferior_fork.
1443 (resume): Remove hack to follow exec after vfork.
1444 * inftarg.c (child_post_follow_vfork): Remove.
1445 (child_follow_fork): New function.
1446 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1447 * target.c (cleanup_target): Replace to_post_follow_vfork with
1448 to_follow_fork.
1449 (update_current_target): Likewise.
1450 (setup_target_debug): Likewise.
1451 (debug_to_post_follow_vfork): Remove.
1452 (debug_to_follow_fork): New function.
1453 * target.h (struct target_ops): Replace to_post_folow_vfork with
1454 to_follow_fork.
1455 (child_post_follow_vfork): Remove prototype.
1456 (child_follow_fork): Add prototype.
1457 (target_post_follow_vfork): Remove macro.
1458 (target_follow_fork): Add macro.
1459
1460 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1461
1462 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1463 (child_post_follow_vfork): Cancel pending exec event if we follow
1464 the parent.
1465 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1466 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1467 event at the following wait call if necessary.
1468 * infrun.c (follow_vfork): Don't follow_exec here.
1469 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1470 case about HP/UX 10.20. Remove code pushed down to
1471 hppah-nat.c:child_wait.
1472 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1473 vfork_in_flight is set.
1474
1475 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1476
1477 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1478 for the parent's fork event.
1479 * infrun.c (handle_inferior_event): Only expect one fork event.
1480 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1481 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1482
1483 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1484
1485 * PROBLEMS: Delete reference to PR gdb/725.
1486
1487 * MAINTAINERS (gdb.c++): Add David Carlton.
1488
1489 2002-12-09 David Carlton <carlton@math.stanford.edu>
1490
1491 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1492 * cli/cli-cmds.c: Ditto.
1493
1494 2002-12-09 Andrew Cagney <cagney@redhat.com>
1495
1496 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1497 function address in <>.
1498 * gdbarch.c: Re-generate.
1499
1500 2002-12-09 David Carlton <carlton@math.stanford.edu>
1501
1502 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1503
1504 2002-12-09 David Carlton <carlton@math.stanford.edu>
1505
1506 * linespec.c (symtab_from_filename): New function.
1507 (decode_line_1): Move code into symtab_from_filename.
1508
1509 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1510
1511 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1512
1513 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1514
1515 * f-valprint.c (info_common_command): Use get_frame_pc.
1516 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1517 * ax-gdb.c (agent_command): Ditto.
1518 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1519 (rs6000_pop_frame): Ditto.
1520 (rs6000_frameless_function_invocation): Ditto.
1521 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1522 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1523 * macroscope.c (default_macro_scope): Ditto.
1524 * stack.c (print_frame_info_base): Ditto.
1525 (print_frame, frame_info, print_frame_label_vars): Ditto.
1526 (return_command, func_command, get_frame_language): Ditto.
1527 * infcmd.c (finish_command): Ditto.
1528 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1529 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1530 (break_at_finish_at_depth_command_1): Ditto.
1531 (break_at_finish_command_1): Ditto.
1532 (until_break_command, get_catch_sals): Ditto.
1533 * blockframe.c (func_frame_chain_valid): Ditto.
1534 (frameless_look_for_prologue): Ditto.
1535 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1536
1537 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1538
1539 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1540 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1541
1542 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1543
1544 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1545 to pure functions.
1546 * gdbarch.h, gdbarch.c: Re-generate.
1547 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1548 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1549
1550 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1551 declaration to a function returning a CORE_ADDR.
1552 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1553 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1554 (init_frame_pc_default): Ditto.
1555 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1556 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1557 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1558 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1559 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1560 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1561
1562 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1563 to init_frame_pc_noop.
1564 (i386_interix_init_frame_pc): Delete function.
1565 * z8k-tdep.c (init_frame_pc): Delete function.
1566 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1567 (INIT_FRAME_PC_FIRST): Ditto.
1568 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1569 (INIT_FRAME_PC_FIRST): Ditto.
1570 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1571 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1572 init_frame_pc_noop.
1573 (INIT_FRAME_PC_FIRST): Convert to an expression.
1574 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1575
1576 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1577
1578 * blockframe.c: Use get_frame_base instead of directly accessing
1579 the `struct frame_info' member frame.
1580 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1581 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1582
1583 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1584
1585 * Makefile.in (readline_h): Define.
1586 (completer.o): Depend on readline_h.
1587 (corelow.o): Ditto.
1588 (event-top.o): Ditto.
1589 (exec.o): Ditto.
1590 (solib.o): Ditto.
1591 (source.o): Ditto.
1592 (symfile.o): Ditto.
1593 (symmisc.o): Ditto.
1594 (top.o): Ditto.
1595 (tracepoint.o): Ditto.
1596 (utils.o): Ditto.
1597 (cli-dump.o): Ditto.
1598 (tui-hooks.o): Ditto.
1599 (tuiWin.o): Ditto.
1600
1601 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1602
1603 More cleanup from import of readline 4.3.
1604 * completer.h (complete_line, readline_line_completion_function):
1605 Update prototypes.
1606 (line_completion_function): Removed, not used outside of completer.c.
1607 * completer.c (readline_line_completion_function,
1608 complete_function, line_completion_function): Use const for first
1609 parameter.
1610 (line_completion_function): Make static.
1611 (filename_completer): filename_completion_function is now called
1612 rl_filename_completion_function
1613 * corelow.c: Include <readline/readline.h>.
1614 * exec.c: Ditto.
1615 * solib.c: Ditto.
1616 * source.c: Ditto.
1617 * symfile.c: Ditto.
1618 * symmisc.c: Ditto.
1619 * top.c (init_main): No need to coerce
1620 readline_line_completion_function anymore.
1621 * cli/cli-dump.c: Include <readline/readline.h>.
1622
1623 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1624
1625 * stack.c (frame_info): Use get_prev_frame.
1626 * blockframe.c (frame_address_in_block): Ditto.
1627 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1628 (rs6000_frameless_function_invocation): Ditto.
1629 (rs6000_frame_saved_pc): Ditto.
1630 (rs6000_frame_chain): Ditto.
1631 * arch-utils.c (init_frame_pc_default): Ditto.
1632
1633 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1634
1635 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1636 Delete redundant definition.
1637
1638 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1639
1640 Import of readline 4.3:
1641 * cli/cli-cmds.c: Include readline/tilde.h.
1642 * cli/cli-setshow.c: Ditto.
1643 * defs.h: Don't declare tilde_expand anymore, since readline
1644 exports it.
1645
1646 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1647
1648 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1649 -Werror on this file.
1650
1651 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1652
1653 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1654 the format name.
1655 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1656 * gdbarch.c: Regenerate.
1657
1658 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1659
1660 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1661 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1662 provide a default value.
1663 * gdbarch.h, gdbarch.c: Regenerate.
1664 * frame.c (get_prev_frame): Update. Check
1665 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1666 * s390-tdep.c (s390_gdbarch_init): Update.
1667 * mips-tdep.c (mips_gdbarch_init): Update.
1668 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1669 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1670 * alpha-tdep.c (alpha_gdbarch_init): Update.
1671
1672 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1673
1674 * ia64-linux-nat.c: Include gdb_string.h.
1675 * alpha-nat.c: Ditto.
1676 * ppc-linux-nat.c: Ditto.
1677 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1678 Update dependencies.
1679
1680 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1681
1682 * gdbthread.h: Include "frame.h".
1683 (struct thread_info): Replace step_frame_address with
1684 step_frame_id.
1685 * inferior.h: Include "frame.h".
1686 (step_frame_id): Replace external variable step_frame_address.
1687 * gdbthread.h (save_infrun_state): Replace step_frame_address
1688 parameter with step_frame_id parameter.
1689 (load_infrun_state): Ditto.
1690 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1691 * infcmd.c (step_frame_id, step_1, step_once): Update.
1692 * thread.c (load_infrun_state, save_infrun_state): Update.
1693 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1694 (handle_inferior_event, step_over_function): Update.
1695 (normal_stop, context_switch, restore_inferior_status): Update.
1696 (struct inferior_status): Replace step_frame_address with
1697 step_frame_id.
1698
1699 2002-12-05 David Carlton <carlton@math.stanford.edu>
1700
1701 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1702 DW_TAG_member as well as a declaration as being a C++ static data
1703 member.
1704 (read_structure_scope): Combine tests for DW_TAG_member and
1705 DW_TAG_variable.
1706
1707 2002-12-05 David Carlton <carlton@math.stanford.edu>
1708
1709 * linespec.c (decode_compound): New function.
1710 (decode_line_1): Move code into decode_compound.
1711
1712 2002-12-05 David Carlton <carlton@math.stanford.edu>
1713
1714 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1715 argument.
1716 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1717 the static block. See PR gdb/804.
1718
1719 2002-12-05 David Carlton <carlton@math.stanford.edu>
1720
1721 * symtab.c (lookup_symbol_aux_block): New function.
1722 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1723
1724 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1725
1726 * gdbarch.sh: Dump the predicate function and macro values.
1727 (read): Print error on standard error.
1728 * gdbarch.c: Regenerate.
1729
1730 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1731
1732 * Makefile.in (mips_tdep_h): Define.
1733 (mips-tdep.o): Add mips_tdep_h to dependency list.
1734 * mips-tdep.h: New file.
1735 * mips-tdep.c (mips-tdep.h): Include.
1736 (enum mips_abi): Move to mips-tdep.h.
1737 (mips_abi): New function.
1738
1739 2002-12-04 David Carlton <carlton@math.stanford.edu>
1740
1741 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1742
1743 2002-12-04 David Carlton <carlton@math.stanford.edu>
1744
1745 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1746 function.
1747 (lookup_symbol_aux_minsyms): New function.
1748
1749 2002-12-04 J. Brobecker <brobecker@gnat.com>
1750
1751 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1752
1753 2002-12-04 J. Brobecker <brobecker@gnat.com>
1754
1755 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1756 which is an obsolete macro name.
1757
1758 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1759
1760 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1761 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1762
1763 2002-12-03 H.J. Lu (hjl@gnu.org)
1764
1765 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1766 (create_breakpoints): Make sure the addr_string field is not
1767 NULL.
1768
1769 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1770
1771 * sparc-nat.c (fetch_inferior_registers)
1772 (store_inferior_registers): Add comment on problem of LWP vs
1773 threads.
1774
1775 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1776 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1777 (lin_lwp_store_registers): Remove.
1778 (init_lin_lwp_ops): Use fetch_inferior_registers
1779 and store_inferior_registers directly.
1780 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1781 (store_inferior_registers): Likewise.
1782 Fix PR gdb/725.
1783
1784 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1785
1786 * frame.h (get_frame_id): Convert to a function.
1787 (null_frame_id, frame_id_p): Declare.
1788 (frame_id_eq, frame_id_inner): Declare.
1789 (frame_id_build): New function.
1790 * frame.c (get_frame_id): Update. Use null_frame_id.
1791 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1792 frame_id_inner.
1793 (null_frame_id, frame_id_p): Define.
1794 (frame_id_eq, frame_id_inner): Define.
1795 (frame_id_build): New function.
1796 * varobj.c (varobj_create): Update.
1797 (varobj_update): Update.
1798 * valops.c (value_assign): Update.
1799 (new_root_variable): Update.
1800 * infrun.c (save_inferior_status): Update.
1801 * breakpoint.c (watch_command_1): Update.
1802
1803 2002-12-03 J. Brobecker <brobecker@gnat.com>
1804
1805 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1806 (SNAP2): Likewise.
1807
1808 2002-12-03 Andrew Cagney <cagney@redhat.com>
1809
1810 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1811 patch.
1812
1813 * PROBLEMS: Mention PR gdb/725.
1814
1815 2002-12-03 Andreas Schwab <schwab@suse.de>
1816
1817 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1818
1819 2002-12-02 Adam Fedor <fedor@gnu.org>
1820 Klee Dienes <kdienes@apple.com>
1821
1822 * objc-lang.c (objc_printstr): Add width arg to match
1823 printstr prototype.
1824 (compare_selectors): Add 'const' to arg types.
1825 (compare_classes): Likewise.
1826 (find_imps): Cast msym pointer to avoid compiler warning.
1827 (print_object_command): Validate the address before
1828 passing it to the print routine.
1829 (find_objc_msgcall_submethod): Change function argument to
1830 return an int.
1831 * objc-lang.h: Add 'extern' to all function declarations.
1832 (value_nsstring): Add declaration.
1833
1834 2002-12-02 J. Brobecker <brobecker@gnat.com>
1835
1836 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1837 Fixes a build failure on HP/UX.
1838
1839 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1840 failure on HP/UX.
1841 (hpread_has_name): Advance declaration to avoid a compilation warning.
1842 (pst_syms_count): Add missing variable type. By change, the compiler
1843 was defaulting to int, which seems a good choice. Fixes a compilation
1844 warning.
1845 (pst_syms_size): Likewise.
1846
1847 2002-12-02 J. Brobecker <brobecker@gnat.com>
1848
1849 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1850 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1851 later to set the proper gdbarch methods depending on the osabi.
1852 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1853
1854 2002-12-02 J. Brobecker <brobecker@gnat.com>
1855
1856 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1857 * osabi.c (gdb_osabi_name): Add strings images for the two new
1858 enum values.
1859 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1860
1861 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1862
1863 * MAINTAINERS (Java): Global maintainers are responible for Java.
1864 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1865 part Java maintainers.
1866
1867 2002-12-02 J. Brobecker <brobecker@gnat.com>
1868
1869 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1870 Fixes a compilation failure on AiX.
1871
1872 2002-12-02 J. Brobecker <brobecker@gnat.com>
1873
1874 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1875 why aix-thread.o is not listed.
1876
1877 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1878
1879 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1880 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1881 * gdbarch.h, gdbarch.c: Re-generate.
1882 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1883 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1884 * config/pa/tm-hppa.h, frame.h: Update.
1885 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1886 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1887 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1888 * cris-tdep.c, alpha-tdep.c: Update.
1889 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1890 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1891 (get_prev_frame): Ditto.
1892
1893 2002-11-30 Andrew Cagney <cagney@redhat.com>
1894
1895 * exec.c (xfer_memory): Replace boolean with int.
1896 * p-exp.y: Use 0 instead of false.
1897 * corelow.c (gdb_check_format): Change return type to int from
1898 boolean.
1899 * utils.c: Don't include <curses.h> or <term.h> first.
1900
1901 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1902
1903 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1904 (m68hc11_register_byte): Remove.
1905 (m68hc11_gdbarch_init): Don't set the above.
1906
1907 2002-11-29 Andrew Cagney <cagney@redhat.com>
1908
1909 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1910 by calling get_selected_frame.
1911 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1912 set_current_frame, create_new_frame, select_frame and
1913 get_current_frame.
1914 * remote-e7000.c (e7000_start_remote): Ditto.
1915 * remote-mips.c (common_open): Ditto
1916 * remote-rdp.c (remote_rdp_open): Ditto.
1917
1918 2002-11-29 Andreas Schwab <schwab@suse.de>
1919
1920 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1921 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1922 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1923 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1924 read_memory_unsigned_integer instead of read_memory_integer when
1925 dealing with addresses and instruction opcodes.
1926 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1927 (m68k_linux_frame_saved_pc): Likewise.
1928
1929 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1930
1931 * stack.c (selected_frame, select_frame): Move from here ...
1932 * frame.c (selected_frame, select_frame): ... to here. Include
1933 "language.h".
1934 * Makefile.in (frame.o): Update dependencies.
1935 * frame.c (get_selected_frame): New function.
1936 * frame.h (get_selected_frame): Declare.
1937 (deprecated_selected_frame): Rename selected_frame.
1938 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1939 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1940 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1941 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1942 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1943 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1944 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1945 * z8k-tdep.c, cli/cli-cmds.c: Update.
1946
1947 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1948
1949 * frame.h (get_selected_block): Add comments.
1950
1951 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1952
1953 * frame.c (pc_notcurrent): New function.
1954 (find_frame_sal): New function.
1955 * frame.h (find_frame_sal): Declare.
1956 (struct symtab_and_line): Add opaque declaration.
1957 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1958 find_pc_line.
1959 (frame_info): Ditto.
1960 * ada-lang.c (find_printable_frame): Ditto.
1961
1962 2002-11-28 J. Brobecker <brobecker@gnat.com>
1963
1964 * configure.in: Check that the pthdebug library is recent enough
1965 before enabling thread support on native AiX.
1966 * configure: Regenerate.
1967
1968 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1969 from the list of object files as it is now appended by configure
1970 if thread support is enabled.
1971 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1972 if thread support is enabled.
1973
1974 2002-11-28 Andrew Cagney <cagney@redhat.com>
1975
1976 * stack.c (get_selected_block): In-line get_current_block.
1977 * frame.h (get_current_block): Delete declaration.
1978 * blockframe.c (get_current_block): Delete function.
1979
1980 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1981
1982 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1983 USE_GENERIC_DUMMY_FRAMES.
1984 * gdbarch.h, gdbarch.c: Regenerate.
1985 * valops.c, frame.c: Update.
1986 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1987 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1988 * config/pa/tm-hppa.h, blockframe.c: Update.
1989 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1990 * m68k-tdep.c, alpha-tdep.c: Ditto.
1991
1992 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1993 * mips-tdep.c: Ditto.
1994
1995 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1996
1997 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1998 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1999 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
2000 * gdbarch.c, gdbarch.h: Re-generate.
2001 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
2002 (CALL_DUMMY_LOCATION): Delete macro definition.
2003 (PC_IN_CALL_DUMMY): Delete macro definitions.
2004
2005 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
2006 default is already generic_pc_in_call_dummy.
2007 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2008 * v850-tdep.c (v850_gdbarch_init): Ditto.
2009 * sh-tdep.c (sh_gdbarch_init): Ditto.
2010 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2011 * mips-tdep.c (mips_gdbarch_init): Ditto.
2012 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2013 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2014 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2015 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2016 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2017 * avr-tdep.c (avr_gdbarch_init): Ditto.
2018
2019 * arm-tdep.c (arm_gdbarch_init): Do not set
2020 use_generic_dummy_frames, default is already 1.
2021 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
2022 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2023 * v850-tdep.c (v850_gdbarch_init): Ditto.
2024 * sh-tdep.c (sh_gdbarch_init): Ditto.
2025 * s390-tdep.c (s390_gdbarch_init): Ditto.
2026 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2027 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2028 * mips-tdep.c (mips_gdbarch_init): Ditto.
2029 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2030 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2031 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2032 * i386-tdep.c (i386_gdbarch_init): Ditto.
2033 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2034 * frv-tdep.c (frv_gdbarch_init): Ditto.
2035 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2036 * cris-tdep.c (cris_gdbarch_init): Ditto.
2037 * avr-tdep.c (avr_gdbarch_init): Ditto.
2038
2039 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
2040 call_dummy_location, default is already AT_ENTRY_POINT.
2041 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
2042 * v850-tdep.c (v850_gdbarch_init): Ditto.
2043 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
2044 * sh-tdep.c (sh_gdbarch_init): Ditto.
2045 * s390-tdep.c (s390_gdbarch_init): Ditto.
2046 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2047 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2048 * mips-tdep.c (mips_gdbarch_init): Ditto.
2049 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2050 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
2051 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
2052 * i386-tdep.c (i386_gdbarch_init): Ditto.
2053 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2054 * frv-tdep.c (frv_gdbarch_init): Ditto.
2055 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2056 * cris-tdep.c (cris_gdbarch_init): Ditto.
2057 * avr-tdep.c (avr_gdbarch_init): Ditto.
2058 * arm-tdep.c (arm_gdbarch_init): Ditto.
2059 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
2060
2061 2002-11-28 Andrew Cagney <cagney@redhat.com>
2062
2063 * frame.h: Update comments on set_current_frame, create_new_frame,
2064 flush_cached_frames, reinit_frame_cache, select_frame and
2065 selected_frame.
2066
2067 2002-11-27 Andrew Cagney <cagney@redhat.com>
2068
2069 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
2070 deprecated pc_in_call_dummy function.
2071 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
2072 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
2073 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
2074 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
2075 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
2076
2077 2002-11-26 Martin M. Hunt <hunt@redhat.com>
2078
2079 * Makefile.in: Remove Tix dependencies.
2080 * acinclude.m4: Ditto.
2081 * aclocal.m4: Ditto.
2082 * configure.in: Ditto.
2083 * configure: Regenerated.
2084
2085 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2086
2087 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
2088 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
2089 * gdbarch.c: Re-generate.
2090
2091 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2092
2093 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2094 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2095 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2096 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
2097 pc_in_call_dummy_at_entry_point.
2098 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2099 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2100 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
2101 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
2102 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
2103 pc_in_call_dummy_on_stack.
2104 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
2105 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
2106 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
2107 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
2108 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
2109
2110 2002-11-26 Andrew Cagney <ac131313@redhat.com>
2111
2112 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
2113 pc_in_call_dummy_before_text_end
2114 (deprecated_pc_in_call_dummy_after_text_end): Rename
2115 pc_in_call_dummy_after_text_end.
2116 (deprecated_pc_in_call_dummy_on_stack): Rename
2117 pc_in_call_dummy_on_stack.
2118 (deprecated_pc_in_call_dummy_at_entry_point): Rename
2119 pc_in_call_dummy_at_entry_point.
2120 * m68k-tdep.c (m68k_gdbarch_init): Update.
2121 * s390-tdep.c (s390_gdbarch_init): Update.
2122 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2123 * vax-tdep.c (vax_gdbarch_init): Update.
2124 * sparc-tdep.c (sparc_gdbarch_init): Update.
2125 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
2126 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2127 * i386-tdep.c (i386_gdbarch_init): Update.
2128 * frv-tdep.c (frv_gdbarch_init): Update.
2129 * cris-tdep.c (cris_gdbarch_init): Update.
2130 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
2131 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
2132 (deprecated_pc_in_call_dummy_after_text_end)
2133 (deprecated_pc_in_call_dummy_on_stack)
2134 (deprecated_pc_in_call_dummy_at_entry_point): Update.
2135 * alpha-tdep.c (alpha_gdbarch_init): Update.
2136
2137 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
2138
2139 * acconfig.h (HAVE_PREAD64): Add.
2140 * configure.in: Check for pread64.
2141 * config.in: Regenerated.
2142 * configure: Regenerated.
2143 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
2144 * linux-proc.c (linux_proc_xfer_memory): New function.
2145 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2146
2147 2002-11-25 David Carlton <carlton@math.stanford.edu>
2148
2149 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2150 pdi's with no name.
2151
2152 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2153
2154 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2155 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2156
2157 2002-11-25 Jim Blandy <jimb@redhat.com>
2158
2159 * symfile.c (init_objfile_sect_indices): New function.
2160 (default_symfile_offsets): Move the section-index-initializing
2161 stuff into init_objfile_sect_indices, and call that.
2162
2163 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2164 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2165
2166 * symfile.c (syms_from_objfile): Adjust indentation.
2167
2168 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2169 || info_verbose isn't true.
2170
2171 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2172
2173 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2174 default to get_frame_base.
2175 * gdbarch.h, gdbarch.c: Regenerate.
2176 * arch-utils.c (default_frame_address): Delete function.
2177 * arch-utils.h (default_frame_address): Delete declaration
2178
2179 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2180
2181 * varobj.c (find_frame_addr_in_frame_chain):
2182 Use get_frame_base instead of FRAME_FP,
2183 obvious fix.
2184
2185 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2186
2187 * frame.h (FRAME_FP): Delete macro.
2188 (get_frame_base): New function declaration.
2189 * frame.c (get_frame_base): New function.
2190 (get_frame_id): Use ->frame.
2191 (frame_find_by_id): Rewrite to use get_frame_id.
2192 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2193 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2194 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2195 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2196 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2197 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2198 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2199
2200 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2201
2202 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2203
2204 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2205
2206 * frame.c (set_unwind_by_pc): Revert change below, use
2207 PC_IN_CALL_DUMMY.
2208 (get_prev_frame): Ditto.
2209
2210 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2211
2212 * dummy-frame.c (pc_in_dummy_frame): New function.
2213 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2214 (find_dummy_frame): Update comment.
2215 (generic_pop_current_frame): Use get_frame_type.
2216 * dummy-frame.h (pc_in_dummy_frame): Declare.
2217 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2218 (create_new_frame): Use pc_in_dummy_frame.
2219 (get_prev_frame): Use pc_in_dummy_frame.
2220 (frame_saved_regs_register_unwind): Use get_prev_frame.
2221 (deprecated_generic_get_saved_register): Use get_prev_frame.
2222
2223 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2224
2225 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2226 from here ...
2227 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2228 (varobj_create): Note that frame ID should be used.
2229 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2230
2231 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2232
2233 * breakpoint.c: Include "gdb_assert.h".
2234 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2235 not being used.
2236 * Makefile.in (breakpoint.o): Update dependencies.
2237 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2238 deprecated_frame_in_dummy.
2239 * stack.c (print_frame_info_base): Ditto.
2240 (frame_info): Ditto.
2241 (print_frame_info_base): Ditto. Delete dead code.
2242
2243 2002-11-23 Andreas Schwab <schwab@suse.de>
2244
2245 * Makefile.in (m68k_tdep_h): Define.
2246 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2247 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2248 * m68k-tdep.c: Move register number enum ...
2249 * m68k-tdep.h: ... to this new file and rename the constants from
2250 E_* to M68K_*. All uses changed.
2251 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2252 * abug-rom.c: Include "m68k-tdep.h". Use
2253 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2254 * cpu32bug-rom.c: Likewise.
2255 * dbug-rom.c: Likewise.
2256 * m68k-tdep.c: Likewise.
2257 * m68klinux-nat.c: Likewise.
2258 * remote-est.c: Likewise.
2259 * rom68k-rom.c: Likewise.
2260 * config/m68k/tm-linux.h: Likewise.
2261
2262 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2263
2264 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2265 dummy frame initialization code.
2266 * mips-tdep.c (mips_gdbarch_init): Ditto.
2267
2268 2002-11-22 Christopher Faylor <cgf@redhat.com>
2269
2270 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2271 attach will hang.
2272
2273 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2274
2275 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2276 to default_frame_address.
2277 * gdbarch.h, gdbarch.c: Re-generate.
2278
2279 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2280 or frame_locals_address to default_frame_address.
2281 * m68k-tdep.c (m68k_gdbarch_init): Update.
2282 * i386-tdep.c (i386_gdbarch_init): Update.
2283 * frv-tdep.c (frv_gdbarch_init): Update.
2284 * sh-tdep.c (sh_gdbarch_init): Update.
2285 * v850-tdep.c (v850_gdbarch_init): Update.
2286 * sparc-tdep.c (sparc_gdbarch_init): Update.
2287 * mips-tdep.c (mips_gdbarch_init): Update.
2288 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2289 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2290 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2291
2292 * cris-tdep.c (cris_frame_args_address): Delete function.
2293 (cris_frame_locals_address): Delete function.
2294 (cris_gdbarch_init): Do not set frame_args_address or
2295 frame_locals_address.
2296
2297 2002-11-22 Michael Snyder <msnyder@redhat.com>
2298
2299 * thread-db.c (thread_db_load): Tell the user what's going on
2300 if dlopen fails on libthread_db.
2301
2302 2002-11-23 Andreas Schwab <schwab@suse.de>
2303
2304 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2305 invariant return values.
2306
2307 2002-11-22 Andreas Schwab <schwab@suse.de>
2308
2309 * valops.c (value_slice): Move declaration of `offset' to avoid
2310 warning.
2311
2312 2002-11-22 Christopher Faylor <cgf@redhat.com>
2313
2314 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2315 (struct so_stuff): Add end_addr field.
2316 (register_loaded_dll): Calculate and store end address of loaded dll.
2317 (solib_address): New function.
2318 (child_solib_loaded_library_pathname): Pass carefully constructed
2319 section info to safe_symbol_file_add rather than ignoring it.
2320 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2321 DLL is loaded.
2322 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2323 (child_create_inferior): Fix a compiler warning.
2324 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2325 (solib_address): Declare new function.
2326
2327 2002-11-22 Andreas Schwab <schwab@suse.de>
2328
2329 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2330 and FPS registers.
2331
2332 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2333
2334 * maint.c (_initialize_maint_cmds): Fix typo. From
2335 Francesco Potorti` <pot@gnu.org>.
2336
2337 2002-11-21 Andrew Cagney <cagney@redhat.com>
2338
2339 * mips-tdep.c (mips_dump_tdep): Delete references to
2340 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2341 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2342 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2343 * printcmd.c (build_address_symbolic): Delete calls to
2344 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2345 (address_info): Ditto.
2346 Fix PR gdb/773.
2347
2348 2002-11-19 Klee Dienes <kdienes@apple.com>
2349 Adam Fedor <fedor@gnu.org>
2350
2351 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2352 the ability to explicitly specify the quote characters and word
2353 break characters; if NULL is specified for either, use the old
2354 behavior of using the characters used by the completer.
2355 (skip_chars): New function. Convenience wrapper around
2356 skip_quoted_chars to provide the original skip_chars behavior.
2357 * completer.h (skip_quoted_chars): Add prototype.
2358
2359 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2360
2361 Problems reported by Paul Eggert.
2362 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2363
2364 2002-11-19 Andreas Schwab <schwab@suse.de>
2365
2366 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2367 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2368 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2369 (m68k_linux_frame_saved_pc): Move to ...
2370 * m68klinux-tdep.c: ... here. New file.
2371 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2372 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2373
2374 2002-11-19 Adam Fedor <fedor@gnu.org>
2375
2376 * objc-exp.y: Revert to old skip_quoted usage.
2377
2378 2002-11-19 Adam Fedor <fedor@gnu.org>
2379
2380 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2381 (objc_lang_h): Define.
2382 (YYFILES): Add objc-exp.tab.c.
2383 (local-maintainer-clean): Remove objc-exp.tab.c.
2384 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2385
2386 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2387
2388 * p-exp.y (typecast rule): Add automatic dereference of
2389 pascal classes if needed.
2390 (THIS): Set current_type.
2391 Automatically dereference pascal classes.
2392 (typebase rule): Add ^typebase recognition.
2393
2394 2002-11-18 Adam Fedor <fedor@gnu.org>
2395
2396 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2397 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2398 (op_name): Handle OP_OBJC_SELF.
2399 * Makefile.in (expprint.o): Add additional depends.
2400
2401 2002-11-18 Adam Fedor <fedor@gnu.org>
2402
2403 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2404 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2405 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2406 * objc-exp.y: Likewise.
2407
2408 2002-11-18 Adam Fedor <fedor@gnu.org>
2409
2410 * gdb/parser-defs.h: (struct objc_class_str): New structure
2411 for parsing ObjC classes.
2412
2413 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2414
2415 * stack.c (frame_relative_level): Copy function from here ...
2416 * frame.c (frame_relative_level): ...to here.
2417
2418 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2419
2420 * frame.h (enum frame_type): Define.
2421 (get_frame_type): Declare.
2422 (struct frame_info): Add field `type'. Delete field
2423 signal_handler_caller.
2424 (deprecated_set_frame_signal_handler_caller): Declare.
2425 * frame.c (get_frame_type): New function.
2426 (deprecated_set_frame_type): New function.
2427 (create_new_frame): Set the frame's type.
2428 (get_prev_frame): Similar.
2429 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2430 * s390-tdep.c: Ditto.
2431 * m68klinux-nat.c: Ditto.
2432 * ns32k-tdep.c: Ditto.
2433 * x86-64-linux-tdep.c: Ditto.
2434 * vax-tdep.c: Ditto.
2435 * rs6000-tdep.c: Ditto.
2436 * ppc-linux-tdep.c: Ditto.
2437 * i386-interix-tdep.c: Ditto.
2438 * mips-tdep.c: Ditto.
2439 * m68k-tdep.c: Ditto.
2440 * hppa-tdep.c: Ditto.
2441 * ia64-tdep.c: Ditto.
2442 * cris-tdep.c: Ditto.
2443 * arm-tdep.c: Ditto.
2444 * alpha-tdep.c: Ditto.
2445 * i386-tdep.c: Ditto.
2446 * stack.c: Ditto.
2447 * ada-lang.c: Ditto.
2448 * blockframe.c: Update.
2449 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2450 deprecated_set_frame_type instead of signal_handler_caller.
2451 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2452 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2453 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2454
2455 2002-11-18 Klee Dienes <kdienes@apple.com>
2456
2457 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2458
2459 2002-11-18 Klee Dienes <kdienes@apple.com>
2460
2461 * buildsym.c (pop_context): Add comment.
2462
2463 2002-11-18 Klee Dienes <kdienes@apple.com>
2464
2465 * buildsym.h (pop_context): Convert to function, defined in
2466 buildsym.c.
2467 * buildsym.c: Include gdb_assert.h.
2468 (pop_context): Implement as C function. Add check for stack
2469 underflow.
2470 * dbxread.c (process_one_symbol): Complain and stop processing
2471 that symbol if we are already at the top of the context stack for
2472 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2473 when processing N_RBRAC.
2474
2475 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2476
2477 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2478 define.
2479 (struct target_waitstatus): Add opaque definition.
2480 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2481 * exec.c (init_exec_ops): Likewise.
2482 * fork-child.c (clone_and_follow_inferior): Remove.
2483 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2484 * inferior.h (clone_and_follow_inferior): Remove prototype.
2485 * infrun.c (follow_fork_mode_both): Remove.
2486 (follow_fork_mode_kind_names): Remove commented out "both".
2487 (follow_inferior_fork): Remove follow_fork_mode_both support.
2488 * inftarg.c (child_clone_and_follow_inferior): Remove.
2489 (child_post_follow_inferior_by_clone): Remove.
2490 (init_child_ops): Don't set to_clone_and_follow_inferior
2491 or to_post_follow_inferior_by_clone.
2492 * target.c (default_clone_and_follow_inferior): Remove.
2493 (cleanup_target): Don't set to_clone_and_follow_inferior
2494 or to_post_follow_inferior_by_clone.
2495 (find_default_clone_and_follow_inferior): Remove.
2496 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2497 (debug_to_clone_and_follow_inferior): Remove.
2498 (debug_to_post_follow_inferior_by_clone): Remove.
2499 (setup_target_debug): Don't set to_clone_and_follow_inferior
2500 or to_post_follow_inferior_by_clone.
2501 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2502 and to_post_follow_inferior_by_clone.
2503 (child_clone_and_follow_inferior): Remove prototype.
2504 (child_post_follow_inferior_by_clone): Remove prototype.
2505 (target_clone_and_follow_inferior): Remove macro.
2506 (target_post_follow_inferior_by_clone): Remove macro.
2507 (find_default_clone_and_follow_inferior): Remove prototype.
2508
2509 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2510
2511 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2512 inferior_has_vforked, and inferior_has_execd instead of
2513 target_has_forked, target_has_vforked, and target_has_execd.
2514 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2515 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2516 (CHILD_WAIT): Define.
2517 (child_wait): Add prototype.
2518 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2519 Add prototype.
2520 (hpux_has_vforked): Likewise, from child_has_vforked.
2521 (hpux_has_execd): Likewise, from child_has_execd.
2522 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2523 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2524 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2525 and hpux_has_syscall_event instead of the target hooks.
2526 * infrun.c (inferior_has_forked, inferior_has_vforked)
2527 (inferior_has_execd): New functions.
2528 * inftarg.c (not_same_real_pid): Remove.
2529 (child_wait): Remove references to not_same_real_pid,
2530 target_has_forked, target_has_vforked, target_has_execd,
2531 and target_has_syscall_event.
2532 (child_has_forked, child_has_vforked, child_has_execd)
2533 (child_has_syscall_event): Remove.
2534 (init_child_ops): Remove references to child_has_forked,
2535 child_has_vforked, child_has_execd, and child_has_syscall_event.
2536 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2537 (hpux_has_vforked): Likewise, from child_has_vforked.
2538 (hpux_has_execd): Likewise, from child_has_execd.
2539 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2540 * target.c (cleanup_target): Remove references to
2541 to_has_forked, to_has_vforked, to_has_execd, and
2542 to_has_syscall_event.
2543 (update_current_target): Likewise.
2544 (setup_target_debug): Likewise.
2545 (debug_to_has_forked): Remove.
2546 (debug_to_has_vforked): Remove.
2547 (debug_to_has_execd): Remove.
2548 (debug_to_has_syscall_event): Remove.
2549 * target.h (struct target_ops): Remove to_has_forked.
2550 to_has_vforked, to_has_execd, and to_has_syscall_event.
2551 (child_has_forked, child_has_vforked, child_has_execd)
2552 (child_has_syscall_event): Remove prototypes.
2553 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2554 prototypes.
2555 (target_has_forked, target_has_vforked, target_has_execd)
2556 (target_has_syscall_event): Remove macros.
2557
2558 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2559
2560 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2561 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2562 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2563 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2564 * target.c (cleanup_target): Remove reference to
2565 to_can_follow_vfork_prior_to_exec.
2566 (update_current_target): Likewise.
2567 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2568 (setup_target_debug): Remove reference to
2569 to_can_follow_vfork_prior_to_exec.
2570 * target.h (struct target_ops): Remove
2571 to_can_follow_vfork_prior_to_exec.
2572 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2573 (target_can_follow_vfork_prior_to_exec): Remove definition.
2574 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2575 define.
2576 * infrun.c (follow_vfork_when_exec): Remove.
2577 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2578 (follow_exec): Likewise.
2579 (handle_inferior_event): Likewise.
2580 (keep_going): Likewise.
2581
2582 2002-11-15 Andrew Cagney <cagney@redhat.com>
2583
2584 * frame.c (generic_unwind_get_saved_register): Make static.
2585 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2586 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2587 defaults to generic_unwind_get_saved_register.
2588 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2589 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2590 * frv-tdep.c (frv_gdbarch_init): Ditto.
2591 * i386-tdep.c (i386_gdbarch_init): Ditto.
2592 * s390-tdep.c (s390_gdbarch_init): Ditto.
2593 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2594 * v850-tdep.c (v850_gdbarch_init): Ditto.
2595 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2596 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2597 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2598
2599 2002-11-15 Andrew Cagney <cagney@redhat.com>
2600
2601 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2602 i386-tdep.c.
2603
2604 2002-11-15 Andrew Cagney <cagney@redhat.com>
2605
2606 * frame.h (sigtramp_saved_pc): Delete declaration.
2607 * blockframe.c (sigtramp_saved_pc): Delete function.
2608 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2609 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2610 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2611 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2612
2613 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2614
2615 * frame.c (frame_pc_unwind): New function.
2616 (frame_saved_regs_pc_unwind): New function.
2617 (frame_register_unwind): Pass unwind_cache instead of
2618 register_unwind_cache.
2619 (set_unwind_by_pc): Add unwind_pc parameter, set.
2620 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2621 (get_prev_frame): Ditto.
2622 * frame.h (frame_pc_unwind_ftype): Declare.
2623 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2624 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2625 (frame_pc_unwind): Declare.
2626 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2627 (struct dummy_frame): Add comment mentioning that values are for
2628 previous frame.
2629 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2630 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2631 (generic_file_frame_chain_valid): Ditto.
2632 * stack.c (frame_info): Ditto.
2633
2634 2002-11-15 David Carlton <carlton@math.stanford.edu>
2635
2636 * linespec.c (locate_first_half): New function.
2637 (decode_line_1): Move code into locate_first_half.
2638
2639 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2640
2641 * complaints.h: Add comment explaining how to eliminate a
2642 deprecated_complain call.
2643 * complaints.h: Fix spelling errors.
2644
2645 2002-11-15 David Carlton <carlton@math.stanford.edu>
2646
2647 * printcmd.c: Remove #include "disasm.h".
2648
2649 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2650
2651 * frame.h: Move the most relevant interface functions to the start
2652 of the file.
2653
2654 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2655
2656 * regcache.h (deprecated_registers): Rename registers.
2657 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2658 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2659 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2660 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2661 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2662 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2663 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2664 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2665 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2666 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2667 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2668 * v850ice.c: Update.
2669
2670 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2671
2672 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2673 NULL buffer.
2674
2675 2002-11-13 Andrew Cagney <cagney@redhat.com>
2676
2677 * regcache.h (deprecated_read_register_bytes): Rename
2678 read_register_bytes.
2679 (deprecated_write_register_bytes): Rename write_register_bytes.
2680 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2681 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2682 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2683 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2684 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2685 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2686 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2687 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2688 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2689 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2690 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2691 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2692 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2693 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2694
2695 2002-11-13 Jim Blandy <jimb@redhat.com>
2696
2697 * findvar.c (read_var_value): Doc fix.
2698
2699 2002-11-13 Andrew Cagney <cagney@redhat.com>
2700
2701 * regcache.c (struct regcache): Replace passthough_p with
2702 readonly_p.
2703 (regcache_xmalloc): Initialize readonly_p.
2704 (build_regcache): Initialize readonly_p.
2705 (regcache_save): New function.
2706 (regcache_restore): New function.
2707 (regcache_cpy): Re-implement using regcache_save and
2708 regcache_restore.
2709 (regcache_raw_read): Update.
2710 (regcache_cooked_read): When a read-only cache, checked for cached
2711 pseudo register values.
2712 (regcache_raw_write): Assert that the cache is not read-only.
2713 Remove code handling a non-passthrough cache.
2714 * regcache.h (regcache_save): Declare.
2715 (regcache_restore): Declare.
2716
2717 2002-11-13 Andrew Cagney <cagney@redhat.com>
2718
2719 * regcache.c (struct regcache_descr): Add fields
2720 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2721 (init_legacy_regcache_descr): Compute the size of a cooked
2722 register cache and then assign that to sizeof_raw_registers. Set
2723 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2724 (init_legacy_regcache_descr): Ditto.
2725
2726 2002-11-13 Andrew Cagney <cagney@redhat.com>
2727
2728 * regcache.c (register_buffer): Move to near start of file, update
2729 description.
2730 (regcache_raw_read): Use.
2731 (regcache_raw_write): Use.
2732 (struct regcache): Rename raw_registers to registers and
2733 raw_register_valid_p to register_valid_p.
2734 (regcache_xmalloc): Update.
2735 (regcache_xfree): Update.
2736 (register_buffer): Update.
2737 (regcache_cpy): Update.
2738 (regcache_cpy_no_passthrough): Update.
2739 (regcache_valid_p): Update.
2740 (deprecated_grub_regcache_for_registers): Update.
2741 (deprecated_grub_regcache_for_register_valid): Update.
2742 (set_register_cached): Update.
2743 (regcache_raw_write): Update.
2744
2745 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2746
2747 * p-exp.y (name_not_typename): Use copy_name to
2748 set current_type variable for fields of THIS.
2749
2750 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2751
2752 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2753 * monitor.c (init_base_monitor_ops): Likewise.
2754 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2755 * remote-array.c (init_array_ops): Likewise.
2756 * remote-e7000.c (init_e7000_ops): Likewise.
2757 * remote-es.c (init_es1800_ops): Likewise.
2758 (init_es1800_child_ops): Likewise.
2759 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2760 * remote-sim.c (init_gdbsim_ops): Likewise.
2761 * remote-st.c (init_st2000_ops): Likewise.
2762 * sol-thread.c (init_sol_core_ops): Likewise.
2763 (init_sol_thread_ops): Likewise.
2764 * v850ice.c (init_850ice_ops): Likewise.
2765 * win32-nat.c (init_child_ops): Likewise.
2766 * wince.c (init_child_ops): Likewise.
2767
2768 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2769
2770 * utils.c (gdb_realpath): Make rp a constant pointer.
2771
2772 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2773
2774 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2775 a constant buffer; cannonicalize_file_name(); realpath() with a
2776 pathconf() defined buffer, xstrdup().
2777
2778 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2779
2780 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2781 to hang2.C; hang3.c to hang3.C.
2782
2783 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2784
2785 * findvar.c (read_var_value): Reenable TLS code.
2786
2787 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2788 Jim Blandy <jimb@redhat.com>
2789
2790 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2791 * target.c (update_current_target): Add
2792 to_get_thread_local_address.
2793 * target.h (to_get_thread_local_address): Export.
2794 (target_get_thread_local_address): Define.
2795 (target_get_thread_local_address_p): Define.
2796 * thread-db.c: Include solib-svr4.h.
2797 (td_thr_tls_get_addr_p): Define.
2798 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2799 (thread_db_get_thread_local_address): New function.
2800 (init_thread_db_ops): Initialize to_get_thread_local_address.
2801 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2802 * configure: Regenerate.
2803 * config.in: Regenerate.
2804
2805 2002-11-11 David Carlton <carlton@math.stanford.edu>
2806
2807 * linespec.c (set_flags): New function.
2808 (decode_line_1): Move code into set_flags.
2809
2810 2002-11-11 David Carlton <carlton@math.stanford.edu>
2811
2812 * linespec.c (decode_line_1): Move chunks of code to separate
2813 functions.
2814 (initialize_defaults): New function.
2815 (decode_indirect): New function.
2816
2817 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2818
2819 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2820 instead of void_code_ptr.
2821 (sigtramp_saved_pc): Ditto.
2822
2823 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2824 i386_fp_regnum_p.
2825
2826 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2827
2828 * gdbtypes.h (struct main_type): Move artificial flag out of
2829 loc. New member of ``struct field'' named static_kind. Reduce
2830 overloaded meaning of bitsize.
2831 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2832 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2833 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2834
2835 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2836 new fields.
2837 (template_to_fixed_record_type, template_to_static_fixed_type)
2838 (to_record_with_fixed_variant_part): Likewise.
2839 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2840 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2841 * dwarfread.c (struct_type, enum_type): Likewise.
2842 * hpread.c (hpread_read_enum_type)
2843 (hpread_read_function_type, hpread_read_doc_function_type)
2844 (hpread_read_struct_type): Likewise.
2845 * mdebugread.c (parse_symbol): Likewise.
2846
2847 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2848
2849 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2850 * stack.c (print_frame_info_base): Update.
2851 (print_frame_info_base, frame_info): Update.
2852 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2853 (sparc_frame_saved_pc): Update.
2854 * ada-lang.c (find_printable_frame): Update.
2855 * breakpoint.c (deprecated_frame_in_dummy): Update.
2856
2857 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2858
2859 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2860 defined.
2861 (regmap): Extend to cover all registers.
2862 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2863 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2864 definitions.
2865 (fetch_register, sore_register): Simplify.
2866 (old_fetch_inferior_registers, old_store_inferior_registers):
2867 Remove functions.
2868 (cannot_fetch_register, cannot_store_register): Change
2869 implementation to use regmap array to decide which registers
2870 cannot be fetched/stored. This removes $orig_eax from the
2871 registers that cannot be fetched/stored.
2872 (fetch_inferior_registers): Call fetch_register directly instead
2873 of calling old_fetch_inferior_registers.
2874 (store_inferior_registers): Call store_register directly instead
2875 of calling old_store_inferior_registers.
2876 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2877 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2878 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2879
2880 2002-11-09 Klee Dienes <kdienes@apple.com>
2881
2882 * i387-tdep.c (i387_supply_register): When called with NULL as a
2883 buffer, mark the register as not provided (to mirror the behavior
2884 of supply_register).
2885 (i387_supply_fxsave): Ditto.
2886 (i387_supply_fsave): Ditto (inherits the behavior from
2887 i387_supply_register).
2888
2889 2002-11-09 Klee Dienes <kdienes@apple.com>
2890
2891 * blockframe.c (sigtramp_saved_pc): Use
2892 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2893 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2894 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2895
2896 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2897
2898 * frame.c (get_prev_frame): Test prev_p to identify a previously
2899 unwound frame. Initialize prev_p.
2900 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2901 comment.
2902
2903 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2904
2905 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2906 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2907 more comments. Zap dead code.
2908
2909 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2910
2911 * infcmd.c (print_vector_info, print_float_info): Move code that
2912 checks whether the target has any registers and whether there is a
2913 selected frame up, such that it is also used if a target provides
2914 multi-arch definitions of these functions.
2915
2916 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2917
2918 * Makefile.in (DESTDIR): Define.
2919 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2920 prefix.
2921
2922 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2923 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2924
2925 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2926
2927 * i386-linux-tdep.c: Include "reggroups.h".
2928 (i386_linux_register_reggroup_p): New function.
2929 (i386_linux_init_abi): Set register_reggroup_p to
2930 i386_linux_register_reggroup_p.
2931 * i386-tdep.h (i386_register_reggroup_p): Declare.
2932 * i386-tdep.c: Include "reggroups.h".
2933 (i386_init_reggroups): New function.
2934 (i386_add_reggroups): New function.
2935 (i386_register_reggroup_p): New function.
2936 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2937 (_initialize_i386_tdep): Call i386_init_reggroups.
2938 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2939 specific reggroups.
2940
2941 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2942
2943 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2944 request that's available in *BSD.
2945
2946 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2947
2948 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2949 FDOFF_REGNUM.
2950
2951 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2952
2953 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2954 * dummy-frame.c (find_dummy_frame): Rename
2955 generic_find_dummy_frame, make static. Return the dummy frame
2956 instead of the regcache.
2957 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2958 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2959 (dummy_frame_register_unwind): Rename
2960 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2961 * dummy-frame.h (dummy_frame_register_unwind): Rename
2962 generic_call_dummy_register_unwind.
2963
2964 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2965
2966 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2967 except the inclusion of "i386/tm-i386.h", to...
2968 * config/i386/nm-i386v42mp.h: ...here.
2969 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2970
2971 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2972
2973 * Makefile.in (frame.o): Update dependencies.
2974 * blockframe.c (current_frame, frame_obstack_alloc)
2975 (frame_saved_regs_zalloc, get_current_frame)
2976 (set_current_frame, create_new_frame)
2977 (set_unwind_by_pc, get_next_frame)
2978 (flush_cached_frames, reinit_frame_cache)
2979 (frame_saved_regs_register_unwind)
2980 (deprecated_generic_get_saved_register)
2981 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2982 (_initialize_blockframe): Move frame code from here...
2983 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2984 "annotate.h" and "dummy-frame.h".
2985 (_initialize_frame): New function.
2986
2987 2002-11-08 Jim Blandy <jimb@redhat.com>
2988
2989 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2990 when we finish a function a context.
2991 * buildsym.h (outermost_context_p): New macro.
2992 (Bug analyzed by David Edelsohn.)
2993
2994 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2995
2996 * blockframe.c: Include "dummy-frame.h".
2997 (struct dummy_frame, dummy_frame_stack)
2998 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2999 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
3000 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
3001 (generic_save_call_dummy_addr, generic_pop_current_frame)
3002 (generic_pop_dummy_frame, generic_fix_call_dummy)
3003 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
3004 dummy frame code from here...
3005 * dummy-frame.c: ...to here. New file.
3006 * dummy-frame.h: New file.
3007 (generic_call_dummy_register_unwind): Declare.
3008 (generic_find_dummy_frame): Declare.
3009 * Makefile.in (SFILES): Add dummy-frame.c.
3010 (dummy-frame.o): Specify dependencies.
3011 (dummy_frame_h): Define.
3012 (COMMON_OBS): Add dummy-frame.o.
3013 (blockframe.o): Update dependencies.
3014
3015 2002-11-08 Jim Blandy <jimb@redhat.com>
3016
3017 * dwarf2read.c (read_func_scope): Restore local_symbols and
3018 param_symbols after we finish the function context. (Based on a
3019 patch from David Edelsohn.)
3020
3021 2002-11-08 David Carlton <carlton@math.stanford.edu>
3022
3023 * linespec.c (symbol_found): New function.
3024 (minsym_found): New function.
3025 (decode_line_1): Separate out some code into separate functions.
3026
3027 2002-11-08 Joel Brobecker <brobecker@gnat.com>
3028
3029 * i386-tdep.c (i386_frameless_signal_p): Make non static for
3030 the benefit of the interix target.
3031 * i386-tdep.h (i386_frameless_signal_p): Declare.
3032
3033 2002-11-08 Andrew Cagney <ac131313@redhat.com>
3034
3035 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
3036 declaration that snuck in from change below.
3037
3038 2002-11-06 Andrew Cagney <cagney@redhat.com>
3039
3040 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
3041 all callers.
3042 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
3043 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
3044 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
3045 (i386_mxcsr_regnum_p): new function. Use instead of
3046 MXCSR_REGNUM_P.
3047 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
3048 (i386_sse_regnum_p): Declare.
3049 (i386_mxcsr_regnum_p): Declare.
3050 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
3051 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
3052 (IS_FP_REGNUM): Update definition.
3053 (IS_FPU_CTRL_REGNUM): Update definition..
3054 (IS_SSE_REGNUM): Update definition..
3055 * i386v-nat.c (register_u_addr): Update.
3056 * go32-nat.c (fetch_register): Update.
3057 (store_register): Update.
3058
3059 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3060
3061 Preparation work to convert the hppa targets to multiarch partial.
3062
3063 * hppa-tdep.c: Add new functions replacing macro bodies from
3064 config/pa/tm-hppa.h. These function will be used to initialize
3065 the gdbarch structure. Import some comments from tm-hppa.h,
3066 and place them where appropriate, to avoid loosing them when
3067 we cleanup this file.
3068 (hppa_reg_struct_has_addr): New function.
3069 (hppa_inner_than): New function.
3070 (hppa_stack_align): New function.
3071 (hppa_pc_requires_run_before_use): New function.
3072 (hppa_instruction_nullified): New function.
3073 (hppa_register_byte): New function.
3074 (hppa_register_virtual_type): New function.
3075 (hppa_store_struct_return): New function.
3076 (hppa_cannot_store_register): New function.
3077 (hppa_frame_args_address): New function.
3078 (hppa_frame_locals_address): New function.
3079 (hppa_smash_text_address): New function.
3080 (hppa_coerce_float_to_double): New function. Requires the inclusion
3081 of "language.h".
3082
3083 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
3084
3085 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
3086 gdbarch-eligible macro to a call to the new associated function
3087 created in hppa-tdep.c.
3088 (INNER_THAN): Likewise.
3089 (STACK_ALIGN): Likewise.
3090 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
3091 (INSTRUCTION_NULLIFIED): Likewise.
3092 (REGISTER_BYTE): Likewise.
3093 (REGISTER_VIRTUAL_TYPE): Likewise.
3094 (STORE_STRUCT_RETURN): Likewise.
3095 (CANNOT_STORE_REGISTER): Likewise.
3096 (FRAME_ARGS_ADDRESS): Likewise.
3097 (FRAME_LOCALS_ADDRESS): Likewise.
3098 (SMASH_TEXT_ADDRESS): Likewise.
3099 (COERCE_FLOAT_TO_DOUBLE): Likewise.
3100 (ABOUT_TO_RETURN): Delete, as no longer used.
3101
3102 2002-11-07 Fernando Nasser <fnasser@redhat.com>
3103
3104 * printcmd.c (disassemble_command): Remove obsolete function.
3105 (_initialize_printcmd): Do not create disassemble command here.
3106 * cli/cli-cmds.c (disassemble_command): New function. Implements
3107 disassemble command.
3108 (init_cli_cmds): Create disassemble command here instead.
3109
3110 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3111
3112 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
3113
3114 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3115
3116 * regcache.h (regcache_cooked_read_using_offset_hack)
3117 (regcache_cooked_write_using_offset_hack): Delete declarations.
3118 (register_changed): Delete declaration.
3119 * regcache.c (regcache_cooked_read_using_offset_hack)
3120 (regcache_cooked_write_using_offset_hack): Delete functions.
3121 (cooked_xfer_using_offset_hack): Delete function.
3122 (register_changed): Delete function.
3123
3124 2002-11-07 Jim Blandy <jimb@redhat.com>
3125
3126 * macroscope.c: #include "complaints.h".
3127 (sal_macro_scope): Cope with filenames that appear in the symtabs,
3128 but not in the macro table.
3129 * Makefile.in (macroscope.o): Record dependency.
3130
3131 2002-11-07 Joel Brobecker <brobecker@gnat.com>
3132
3133 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
3134
3135 2002-11-07 Andrew Cagney <ac131313@redhat.com>
3136
3137 * regcache.c (deprecated_registers_fetched): Update.
3138 * regcache.h (deprecated_registers_fetched): Rename
3139 registers_fetched.
3140 * remote-vxsparc.c (vx_read_register): Update.
3141 * remote-vxmips.c (vx_read_register): Update.
3142 * remote-vx68.c (vx_read_register): Update.
3143 * irix5-nat.c (fetch_core_registers): Update.
3144 * mipsm3-nat.c (fetch_inferior_registers): Update.
3145 * sun3-nat.c (fetch_inferior_registers): Update.
3146 * symm-nat.c (fetch_inferior_registers): Update.
3147 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3148 (fetch_core_registers): Update.
3149 (fetch_kcore_registers): Update.
3150 * mips-nat.c (fetch_inferior_registers): Update.
3151 * corelow.c (get_core_registers): Update.
3152 * a68v-nat.c (fetch_inferior_registers): Update.
3153
3154 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3155
3156 Put in place the framework necessary for multiarching the hppa targets.
3157 * hppa-tdep.c (hppa_gdbarch_init): New function.
3158 (hppa_dump_tdep): New function.
3159 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3160 tdep structure dumper.
3161 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3162 until the multi-arching conversion has partially been completed.
3163
3164 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3165
3166 * valops.c (value_assign): Merge lval_register case into
3167 lval_reg_frame_relative. Use frame_register and
3168 regcache_cooked_write instead of get_saved_register and
3169 write_register_bytes. After flushing the register cache, try to
3170 re-select the selected frame.
3171
3172 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3173
3174 * regcache.h (deprecated_register_valid): Rename register_valid.
3175 * regcache.c: Update.
3176 * ia64-aix-nat.c: Update.
3177 * i386gnu-nat.c: Update.
3178 * alpha-nat.c: Update.
3179 * sparc-nat.c: Update.
3180 * lynx-nat.c: Update.
3181 * remote-mips.c: Update.
3182
3183 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3184
3185 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3186 to end of file, to be more consistent with the pratice followed
3187 by other targets.
3188
3189 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3190
3191 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3192 (print_float_info): Print registers in float_reggroup.
3193 (print_vector_info): Print registers in vector_reggroup.
3194 (default_print_registers_info): When all, print registers in
3195 all_reggroup. Otherwize, print registers in general_reggroup.
3196 (registers_info): Rewrite. Add support for register groups.
3197 Eliminate a goto.
3198
3199 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3200
3201 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3202 ages.
3203 (symtab_symbol_info): Remove eons old ifdeffed out code.
3204 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3205 command.
3206
3207 2002-11-06 Theodore A. Roth <troth@openavr.org>
3208
3209 * c-exp.y: Add missing semi-colons.
3210 * f-exp.y: Add missing semi-colons.
3211 * m2-exp.y: Add missing semi-colons.
3212 * p-exp.y: Add missing semi-colons.
3213 Add empty action to start rule to avoid a type clash error when
3214 building with bison >= 1.50.
3215
3216 2002-11-06 Jim Blandy <jimb@redhat.com>
3217
3218 * macrotab.h (struct macro_source_file): Doc fix.
3219
3220 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3221
3222 * varobj.c (child_exists, cplus_number_of_children): Change
3223 STREQ macro references to strcmp.
3224 (cplus_name_of_child): Change code to handle the fact that
3225 fields are not necessarily contiguous with regards to their
3226 access control. This is a fix for PR gdb/792.
3227
3228 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3229
3230 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3231 * gdbarch.h, gdbarch.c: Regnerate.
3232 * frame.h (frame_register): Declare.
3233 * frame.c (frame_register): New function.
3234 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3235 GET_SAVED_REGISTER, otherwize call
3236 generic_unwind_get_saved_register.
3237 (frame_register_read): Use frame_register instead of
3238 get_saved_register.
3239
3240 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3241
3242 From Jim Ingham <jingham@apple.com>:
3243 * event-top.c (gdb_disable_readline): New function.
3244 (_initialize_event_loop): Move comment.
3245
3246 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3247
3248 * event-loop.c (start_event_loop): Add comment.
3249 Update copyright.
3250
3251 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3252
3253 * infcmd.c (default_print_registers_info): Do not call
3254 PRINT_REGISTER_HOOK.
3255
3256 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3257
3258 * sparc-tdep.c (sparc_print_register_hook): Make static.
3259 (sparc_print_registers_info): New function.
3260 (sparc_do_registers_info): New function.
3261 (sparclet_print_registers_info): New function.
3262 (sparclet_do_registers_info): New function.
3263 (do_sparc_print_registers_info): New function.
3264 (sparc_print_registers): New static function, clone of infcmd.c's
3265 default_print_registers_info.
3266 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3267 (sparclet_do_registers_info): Declare.
3268 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3269 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3270 Re-define.
3271 (sparc_do_registers_info): Declare.
3272 (PRINT_REGISTER_HOOK): Delete macro.
3273 (sparc_print_register_hook): Delete declaration.
3274
3275 2002-11-05 David Carlton <carlton@math.stanford.edu>
3276
3277 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3278 functions.
3279 (lookup_symbol_aux_local): New function.
3280 (lookup_symbol_aux_symtabs): New function.
3281 (lookup_symbol_aux_psymtabs): New function.
3282
3283 2002-11-05 David Carlton <carlton@math.stanford.edu>
3284
3285 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3286 previous values of 'objfile' and 'block'.
3287
3288 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3289
3290 * values.c (value_change_enclosing_type): Set
3291 enclosing_type field correctly also for the case where
3292 more memory needs to be allocated.
3293
3294 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3295
3296 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3297 of puts_filtered.
3298
3299 * i387-tdep.c (i387_print_float_info): Replace calls to
3300 register_read and deprecated_read_register_gen with calls to
3301 frame_register_read, and make the necessary adjustments to the
3302 surrounding code.
3303
3304 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3305
3306 * gdbarch.sh (register_reggroup_p): Allow default value.
3307 * gdbarch.h, gdbarch.c: Regenerate.
3308
3309 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3310
3311 * regcache.h: Add coment indicating replacements for deprecated
3312 functions.
3313
3314 2002-11-02 Andrew Cagney <cagney@redhat.com>
3315
3316 * reggroups.h, reggroups.c: New files.
3317 * regcache.c: Include "reggroups.h".
3318 (enum regcache_dump_what): Add `regcache_dump_groups'.
3319 (regcache_dump): Contract size of the "Type" column. When
3320 specified, dump the register's groups.
3321 (maintenance_print_register_groups): New function.
3322 (_initialize_regcache): Add command `maint print register-groups'.
3323 * Makefile.in (COMMON_OBS): Add reggroups.o
3324 (SFILES): Add reggroups.c.
3325 (reggroups_h): Define.
3326 (regcache.o, gdbarch.o): Update dependencies.
3327 (reggroups.o): Specify dependencies.
3328 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3329 Add opaque declaration for `struct reggroup' in generated .h file.
3330 Include "reggroups.h" in generated .c file.
3331 gdbarch.h, gdbarch.c: Re-generate.
3332
3333 2002-11-02 Andrew Cagney <cagney@redhat.com>
3334
3335 * regcache.h (deprecated_read_register_gen): Rename
3336 read_register_gen.
3337 (deprecated_write_register_gen): Rename write_register_gen.
3338 * i387-tdep.c: Update.
3339 * x86-64-linux-nat.c: Update
3340 * wince.c: Update.
3341 * thread-db.c: Update.
3342 * win32-nat.c: Update.
3343 * mips-tdep.c: Update.
3344 * d10v-tdep.c: Update.
3345 * cris-tdep.c: Update.
3346 * remote-sim.c: Update.
3347 * remote-rdi.c: Update.
3348 * remote-rdp.c: Update.
3349 * frame.c: Update.
3350 * target.c: Update.
3351 * blockframe.c: Update.
3352 * x86-64-tdep.c: Update.
3353 * xstormy16-tdep.c: Update.
3354 * sh-tdep.c: Update.
3355 * s390-tdep.c: Update.
3356 * rs6000-tdep.c: Update.
3357 * sparc-tdep.c: Update.
3358 * i386-tdep.c: Update.
3359 * dwarf2cfi.c: Update.
3360 * regcache.c: Update.
3361
3362 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3363
3364 New interix-specific files:
3365 * config/i386/nm-interix.h: New file.
3366 * config/i386/interix.mh: New file.
3367 * config/i386/interix.mt: New file.
3368 * i386-interix-nat.c: New file.
3369 * i386-interix-tdep.c: New file.
3370
3371 2002-11-01 Andrew Cagney <cagney@redhat.com>
3372
3373 * frame.h (deprecated_generic_get_saved_register): Rename
3374 generic_get_saved_register.
3375 * blockframe.c (deprecated_generic_get_saved_register): Update.
3376 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3377 (xstormy16_frame_saved_register): Update.
3378 * sh-tdep.c (sh_gdbarch_init): Update.
3379 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3380 * ia64-tdep.c (ia64_get_saved_register): Update.
3381 * cris-tdep.c (cris_gdbarch_init): Update.
3382 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3383 * arm-tdep.c (arm_gdbarch_init): Update.
3384
3385 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3386
3387 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3388
3389 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3390
3391 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3392 trampolines in sigaction.
3393
3394 2002-10-31 Andrew Cagney <cagney@redhat.com>
3395
3396 * h8300-tdep.c: Include "gdb_assert.h".
3397 (h8300_print_register): Add gdbarch, file and frame parameters.
3398 Use frame_read_unsigned_register to read the register's value.
3399 Use fprintf_filtered to display output.
3400 (h8300_print_registers_info): Replace h8300_do_registers_info.
3401 (h8300_gdbarch_init): Set print_registers_info.
3402
3403 2002-10-31 Andrew Cagney <cagney@redhat.com>
3404
3405 * frame.c (frame_read_unsigned_register): New function.
3406 (frame_read_signed_register): New function.
3407 * frame.h (frame_read_unsigned_register): Declare.
3408 (frame_read_signed_register): Declare.
3409
3410 2002-10-31 Andrew Cagney <cagney@redhat.com>
3411
3412 * h8500-tdep.c (h8500_print_registers_info): New static function,
3413 clone of infcmd.c's default_print_registers_info.
3414 (h8500_do_registers_info): New funtion.
3415 (h8500_print_register_hook): Rename print_register_hook, make
3416 static.
3417
3418 * config/h8500/tm-h8500.h: Update copyright.
3419 (DEPRECATED_DO_REGISTERS_INFO): Define.
3420 (h8500_do_registers_info: Declare.
3421 (PRINT_REGISTER_HOOK): Delete macro.
3422 (print_register_hook): Delete function.
3423
3424 2002-10-31 Andrew Cagney <cagney@redhat.com>
3425
3426 * z8k-tdep.c (z8k_print_register_hook): Make static.
3427 (z8k_print_registers_info): New static function, clone of
3428 infcmd.c's default_print_registers_info.
3429 (z8k_do_registers_info): New function. Wrap
3430 z8k_print_registers_info.
3431 * config/z8k/tm-z8k.h: Update copyright.
3432 (PRINT_REGISTER_HOOK): Delete macro.
3433 (z8k_print_register_hook): Delete declaration.
3434 (DEPRECATED_DO_REGISTERS_INFO): Define.
3435 (z8k_do_registers_info): Declare.
3436
3437 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3438
3439 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3440 as this is already provided by value.h, and was actually causing
3441 a compilation error because of a conflict in parameter type
3442 declaration due to a missing const keyword.
3443 (low_text_segment_addres): Fix a compilation warning.
3444
3445 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3446
3447 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3448 registers without a name.
3449 (mips_linux_cannot_store_register): Don't store registers without
3450 a name.
3451
3452 2002-10-28 David Carlton <carlton@math.stanford.edu>
3453
3454 * symtab.c (find_addr_symbol): Delete. (It was already commented
3455 out.)
3456 * symtab.h: Delete prototype for find_addr_symbol.
3457
3458 2002-10-26 Andrew Cagney <cagney@redhat.com>
3459
3460 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3461 DO_REGISTERS_INFO.
3462 gdbarch.h, gdbarch.c: Re-generate.
3463 * infcmd.c (default_print_registers_info): Update reference.
3464 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3465 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3466 * sh-tdep.c (sh_gdbarch_init): Ditto.
3467 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3468 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3469
3470 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3471
3472 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3473 cfi_init_extra_frame_info.
3474 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3475 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3476
3477 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3478 target where necessary. Add more comments and remove the ones
3479 that don't provide any useful information.
3480
3481 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3482 deprecated_read_register_dummy with
3483 frame_unwind_unsigned_register.
3484
3485 * i386-tdep.c (i386_extract_struct_value_address): Use
3486 regcache_raw_read_unsigned instead of
3487 regcache_cooked_read_unsigned since we know that the register
3488 we're reading isn't a pseudo register. Rename variable 'val' into
3489 the more descriptive 'addr'.
3490
3491 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3492 (x86_64_push_return_address): Add comment.
3493 (x86_64_pop_frame): Make static.
3494 (examine_argument): Clarify comment.
3495 (x86_64_skip_prologue): Make prolog_expact variable static.
3496
3497 * dwarf2cfi.c: Fix some formatting problems.
3498 (context_cpy, read_encoded_pointer): Clarify comments.
3499
3500 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3501 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3502 i386 target back into x86_64_gdbarch_init. Add some comments and
3503 remove meaningless ones.
3504
3505 2002-10-25 Andrew Cagney <cagney@redhat.com>
3506
3507 * complaints.h (struct deprecated_complaint): Rename `struct
3508 complaint'.
3509 * complaints.c (complain): Update.
3510 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3511 incorrect comment indicating that "symfile.h" was being included
3512 for the `struct complaint' definition.
3513 * remote-vx.c: Update.
3514 * objc-lang.c: Update.
3515 * xcoffread.c: Update.
3516 * hpread.c: Update.
3517 * mdebugread.c: Update.
3518 * stabsread.c: Update.
3519 * dwarf2read.c: Update.
3520 * dwarfread.c: Update.
3521 * elfread.c: Update.
3522 * coffread.c: Update.
3523 * stabsread.h: Update.
3524 * dbxread.c: Update.
3525 * buildsym.c: Update.
3526 * gdbtypes.c: Update.
3527 * macrotab.c: Update.
3528
3529 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3530
3531 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3532 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3533 (x86_64_init_abi): ...new function.
3534
3535 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3536 * i386v-nat.c: Include "i386-tdep.h".
3537
3538 2002-10-25 Andrew Cagney <cagney@redhat.com>
3539
3540 * gdbtypes.c (address_space_name_to_int): Update.
3541 (address_space_int_to_name): Update.
3542 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3543 multi-arch predicate.
3544 (address_class_name_to_type_flags): Ditto.
3545 * gdbarch.h, gdbarch.c: Re-generate.
3546
3547 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3548
3549 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3550
3551 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3552
3553 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3554
3555 * symtab.h (INIT_SAL): Delete macro.
3556 (init_sal): Export.
3557 * symtab.c (init_sal): New function.
3558
3559 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3560 to init_sal function call.
3561 (find_sal_from_funcs_and_line): Ditto.
3562 (all_sals_for_line): Ditto.
3563 * breakpoint.c (create_internal_breakpoint): Ditto.
3564 (create_fork_vfork_event_catchpoint): Ditto.
3565 (create_exec_event_catchpoint): Ditto.
3566 (parse_breakpoint_sals): Ditto.
3567 (watch_command_1): Ditto.
3568 (handle_gnu_4_16_catch_command): Ditto.
3569 (clear_command): Ditto.
3570 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3571 * infcmd.c (run_stack_dummy): Ditto.
3572 * infrun.c (process_event_stop_test): Ditto.
3573 (check_sigtramp2): Ditto.
3574 (step_over_function): Ditto.
3575 * linespec.c (decode_line_2): Ditto.
3576 (decode_line_1): Ditto.
3577 * source.c (line_info): Ditto.
3578 * symtab.c (find_pc_sect_line): Ditto.
3579
3580 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3581
3582 * dwarf2cfi.c (struct context)
3583 (struct context_reg): Moved to dwarf2cfi.h
3584 (context_alloc, frame_state_alloc, context_cpy):
3585 Made extern instead of static, removed prototypes.
3586 * dwarf2cfi.h (struct context)
3587 (struct context_reg): New, moved from dwarf2cfi.c
3588 (context_alloc, frame_state_alloc, context_cpy):
3589 New prototypes.
3590 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3591 Changed from static to extern.
3592 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3593 (LINUX_SIGCONTEXT_FP_OFFSET)
3594 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3595 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3596 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3597 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3598 set_gdbarch_*() calls now use x86-64 specific functions
3599 instead of DWARF2 CFI ones.
3600 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3601 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3602 (x86_64_init_extra_frame_info): New prototypes.
3603
3604 2002-10-23 David Carlton <carlton@math.stanford.edu>
3605
3606 * linespec.c: #include "parser-defs.h".
3607 Delete prototype for find_template_name_end.
3608 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3609
3610 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3611
3612 * NEWS: add recent mi fixes.
3613 * varobj.c (struct varobj): Add new "updated" flag.
3614 (new_variable): Default "updated" flag to 0.
3615 (varobj_set_value): Set "updated" flag to 1 if value
3616 changes.
3617 (varobj_update): Check varobj "updated" flag before
3618 comparing old and refreshed values. Fix for
3619 PR gdb/702.
3620
3621 2002-10-23 David Carlton <carlton@math.stanford.edu>
3622
3623 * parse.c (parse_exp_1): Use BLOCK_START.
3624 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3625 SYMBOL_BLOCK_VALUE.
3626 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3627
3628 2002-10-23 David Carlton <carlton@math.stanford.edu>
3629
3630 * symtab.c: Delete cplusplus_hint.
3631 Delete prototype for find_template_name_end.
3632
3633 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3634
3635 * symtab.h: Update comment.
3636
3637 2002-10-23 Michael Snyder <msnyder@redhat.com>
3638
3639 * printcmd.c (address_info): Restore quotes in output.
3640 * valops.c (value_of_local): Restore quotes in error message.
3641
3642 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3643
3644 * symtab.c (symbol_demangled_name): New function.
3645 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3646 turning most of it into a function.
3647 (symbol_demangled_name): Export.
3648
3649 2002-10-23 Michael Snyder <msnyder@redhat.com>
3650
3651 * valops.c (value_of_local): Restore quotes in error message.
3652
3653 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3654
3655 * symtab.c (symbol_init_language_specific): New function.
3656 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3657 turning most of it into a function.
3658 (symbol_init_language_specific): Export.
3659
3660 2002-10-23 David Carlton <carlton@math.stanford.edu>
3661
3662 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3663 (dwarf_attr_name): Ditto.
3664 (dwarf_type_encoding_name): Ditto.
3665 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3666 (process_die): Handle DW_TAG_namespace,
3667 DW_TAG_imported_declaration, DW_TAG_imported_module.
3668 (read_namespace): New function.
3669
3670 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3671
3672 * configure.in: Define NEW_PROC_API on Interix too.
3673 * configure: Regenerate.
3674
3675 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3676
3677 * configure: Regenerate using the proper version of autoconf.
3678
3679 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3680
3681 * findvar.c (read_var_value): Temporarily disable TLS code, until
3682 complete TLS support is added.
3683
3684 2002-10-21 Jim Blandy <jimb@redhat.com>
3685 Elena Zannoni <ezannoni@redhat.com>
3686
3687 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3688 for thread local storage locations.
3689 (struct symbol): Add objfile field.
3690 (SYMBOL_OBJFILE): Define.
3691 * dwarf2read.c (is_thread_local): New static variable.
3692 (new_symbol): If variable is in thread local fill in address class
3693 and objfile appropriately.
3694 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3695 stack operation.
3696 * printcmd.c (address_info): Print the information for thread
3697 local storage variable.
3698 * findvar.c (read_var_value): In case of thread local variable,
3699 defer to the target vector code to compute address.
3700
3701 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3702
3703 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3704 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3705
3706 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3707
3708 * symtab.h (address_class): Rename
3709 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3710 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3711 * printcmd.c (address_info): Ditto.
3712 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3713
3714 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3715
3716 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3717 DBREG_DRX macro to acces debug registers.
3718
3719 * Makefile.in (i386obsd-tdep.o): New target.
3720
3721 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3722 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3723
3724 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3725 * config/i386/obsd.mt: New file.
3726 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3727 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3728 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3729 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3730 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3731 * i386obsd-tdep.c: New file.
3732
3733 2002-10-19 Adam Fedor <fedor@gnu.org>
3734
3735 * objc-exp.y (name_not_typename): Fix invalid comment.
3736
3737 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3738
3739 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3740 to allocate partial syms and macro byte caches.
3741
3742 2002-10-18 David Carlton <carlton@math.stanford.edu>
3743
3744 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3745
3746 2002-10-18 Adam Fedor <fedor@gnu.org>
3747
3748 * stabsread.c (find_name_end): New function.
3749 (define_symbol): Use it.
3750
3751 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3752
3753 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3754 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3755 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3756 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3757
3758 2002-10-17 David Carlton <carlton@math.stanford.edu>
3759
3760 * symfile.h: Add opaque declaration for struct obstack.
3761 Declare obsavestring to take a const char *.
3762 * symfile.c (obsavestring): Make first argument a const char *.
3763
3764 2002-10-16 Adam Fedor <fedor@gnu.org>
3765
3766 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3767 names when matching breakpoints in current file.
3768
3769 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3770
3771 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3772 (read_tag_pointer_type): Add address class support.
3773 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3774 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3775 New methods.
3776 * gdbarch.h, gdbarch.c: Regenerate.
3777 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3778 (make_type_with_address_space, recursive_type_dump): Add address
3779 class support.
3780 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3781 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3782 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3783
3784 2002-10-16 Klee Dienes <kdienes@apple.com>
3785
3786 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3787 to get the last character of a char[] buffer, not
3788 name[sizeof(vptr_name)-1].
3789
3790 2002-10-14 Adam Fedor <fedor@gnu.org>
3791
3792 * symtab.h: New objc_specific struct.
3793 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3794 (SYMBOL_DEMANGLED_NAME): Likewise.
3795
3796 2002-10-14 Adam Fedor <fedor@gnu.org>
3797
3798 * symfile.c (init_filename_language_table): Add ObjC file extension.
3799
3800 2002-10-14 Adam Fedor <fedor@gnu.org>
3801
3802 * utils.c (puts_filtered_tabular): New function.
3803 (fprintf_symbol_filtered): Get ObjC demangled name.
3804 * defs.h (puts_filtered_tabular): Declared.
3805
3806 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3807
3808 * c-lang.h (c_type_print_varspec_prefix): Delete.
3809 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3810 ``need_post_space'' parameter. Adjust all callers.
3811
3812 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3813
3814 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3815 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3816 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3817 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3818
3819 2002-10-13 Adam Fedor <fedor@gnu.org>
3820
3821 * source.c (print_source_lines): Update comments.
3822
3823 2002-10-13 Adam Fedor <fedor@gnu.org>
3824
3825 * valops.c (value_of_local): New function.
3826 (value_of_this): Use it.
3827 * value.h (value_of_local): Declared.
3828
3829 2002-10-13 Adam Fedor <fedor@gnu.org>
3830
3831 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3832 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3833
3834 2002-10-12 Adam Fedor <fedor@gnu.org>
3835
3836 * language.c (binop_result_type): Add language_objc to case.
3837 (integral_type): Likewise.
3838 (character_type): Likewise.
3839 (string_type): Likewise.
3840 (boolean_type): Likewise.
3841 (structured_type): Likewise.
3842 (binop_type_check): Likewise.
3843
3844 2002-10-11 Adam Fedor <fedor@gnu.org>
3845
3846 * printcmd.c (address_info): Print 'self' for ObjC.
3847
3848 2002-10-11 Adam Fedor <fedor@gnu.org>
3849
3850 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3851 OP_SELF.
3852
3853 2002-10-11 Adam Fedor <fedor@gnu.org>
3854
3855 * language.h (CAST_IS_CONVERSION): Add language_objc.
3856
3857 2002-10-11 Adam Fedor <fedor@gnu.org>
3858
3859 * defs.h (enum language): Add language_objc.
3860
3861 2002-10-11 Klee Dienes <kdienes@apple.com>
3862
3863 * corefile.c (read_memory_typed_address): New function.
3864 * gdbcore.h (read_memory_typed_address): Add prototype.
3865 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3866 to read a value destined for a CORE_ADDR, not read_memory_integer.
3867 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3868 (f77_get_dynamic_lowerbound): Ditto.
3869
3870 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3871
3872 * utils.c (string_to_core_addr): After turning string into
3873 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3874 which will do necessary sign-extension, etc.
3875
3876 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3877
3878 * c-exp.y (THIS): Delete token and grammar rule.
3879 (yylex): Don't return THIS.
3880 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3881 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3882 * demangle.c (cplus_markers): Update comment. Put '$'
3883 first. Remove CPLUS_MARKER.
3884 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3885 * jv-exp.y (THIS): Delete token and grammar rule.
3886 (yylex): Don't return THIS.
3887 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3888 * objc-exp.y (THIS): Delete token and grammar rule.
3889 (yylex): Don't return THIS.
3890 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3891 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3892 (read_member_functions): Likewise for opname.
3893 (read_tilde_fields): Use is_cplus_marker.
3894
3895 * defs.h (CPLUS_MARKER): Don't define.
3896 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3897 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3898 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3899 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3900 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3901
3902 * config/i386/tm-i386v4.h: Delete file.
3903 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3904 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3905 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3906 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3907 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3908 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3909 * config/i386/i386v4.mt (TM_FILE): Likewise.
3910 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3911
3912 2002-10-10 Marko Mlinar <markom@opencores.org>
3913
3914 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3915 accidentially not commited 2002-10-09
3916 * gdbarch.h, gdbarch.c: Re-generate.
3917
3918 2002-10-09 Marko Mlinar <markom@opencores.org>
3919
3920 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3921 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3922 * gdbarch.h, gdbarch.c: Re-generate.
3923
3924 2002-10-08 Petr Sorfa <petrs@caldera.com>
3925
3926 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3927
3928 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3929 so we can work on more than one compilation unit at a time. This
3930 helps prepare GDB to handle inter-CU die references.
3931 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3932 the code to be defined before struct comp_unit_head.
3933 (comp_unit_head): Added new members - offset, cu_head,
3934 begin_die, next and dwarf2_abbrevs.
3935 (dwarf2_abbrevs): Removed single static var; now member of
3936 struct comp_unit_head.
3937 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3938 members.
3939 (psymtab_to_symtab_1): Changed to work with the new
3940 struct comp_unit_head.
3941 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3942 constructs the dwarf2_abbrevs[] inside the cu_header.
3943 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3944 dwarf2_abbrev table to clean up.
3945 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3946 handling of dwarf2_abbrevs inside the cu_header.
3947 (read_partial_die): Now supports the call to the new
3948 dwarf2_lookup_abbrev.
3949 (read_full_die): Now supports the call to the new
3950 dwarf2_lookup_abbrev.
3951
3952 2002-10-06 Christopher Faylor <cgf@redhat.com>
3953
3954 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3955 insure that shell variables, such as "transformed_name" are propagated
3956 to later shell statements in rule.
3957
3958 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3959
3960 * config/i386/nm-i386sco.h: Add protection against
3961 multiple-inclusion. Include "i386/nm-i386v.h".
3962 (REGISTER_U_ADDR): Remove define.
3963 (i386_register_u_addr): Remove prototype.
3964
3965 2002-10-04 Michael Snyder <msnyder@redhat.com>
3966
3967 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3968 before treating it as a single-step event.
3969
3970 2002-10-03 Adam Fedor <fedor@gnu.org>
3971
3972 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3973 (objc_demangle): Remove assignment in if statements, Replace
3974 free with xfree.
3975 (add_msglist): Likewise.
3976 (end_msglist): Likewise.
3977 (complare_selectors): Likewise.
3978 (selectors_info): Likewise.
3979 (compare_classes): Likewise.
3980 (classes_info): Likewise.
3981 (print_object_command): Likewise.
3982 (find_objc_msgcall_submethod): Replace PTR with void *.
3983 * objc-lang.h: Remove check for __STDC__.
3984
3985 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3986
3987 * ui-out.h (ui_out_field_fmt_int): New prototype.
3988 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3989 of field width and alignment.
3990 * stack.c (print_frame_info_base): When printing frame level, use
3991 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3992 PR gdb/192
3993
3994 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3995
3996 * MAINTAINERS: Add self to Write After Approval list.
3997
3998 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3999
4000 * infcmd.c (interrupt_target_command_wrapper): Delete.
4001 (interrupt_target_command): Make non static.
4002 (nofp_registers_info): Make static.
4003 * stack.c (return_command_wrapper): Delete.
4004 (return_command): Make non static.
4005
4006 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4007
4008 * event-top.c (gdb_setup_readline): New function. Code moved from
4009 _initialize_event_loop().
4010 (_initialize_event_loop): Call gdb_setup_readline().
4011
4012 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4013
4014 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
4015 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
4016 * gdbarch.h, gdbarch.c: Re-generate.
4017
4018 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
4019
4020 Fix PR gdb/778
4021 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
4022 before recursing.
4023 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
4024 of fill_in_vptr_fieldno.
4025
4026 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
4027
4028 * inferior.h (registers_info, stepi_command, nexti_command,
4029 continue_command, interrupt_target_command): Export from infcmd.c.
4030 * frame.h (args_info, selected_frame_level_changed_hook,
4031 return_command): Export from stack.c.
4032 * v850ice.c (stepi_command, nexti_command, continue_command): use
4033 prototypes from inferior.h.
4034 * tracepoint.c (registers_info, args_info, locals_info): Use
4035 prototypes from frame.h and inferior.h.
4036 * Makefile.in (mi-main.o): Add dependency on frame.h.
4037
4038 2002-10-02 Andrew Cagney <ac131313@redhat.com>
4039
4040 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
4041 value in register 3 adjusted by ppc_gp0_regnum.
4042
4043 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
4044
4045 2002-10-02 Marko Mlinar <markom@opencores.org>
4046
4047 * MAINTAINERS: Add myself to the Write After Approval list.
4048
4049 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
4050
4051 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
4052 of the section for the N64 ABI, fixed.
4053
4054 * config/mips/tm-irix6.h: Include solib.h.
4055
4056 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
4057
4058 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
4059 GNU operators.
4060
4061 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4062
4063 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
4064 and that "mi0" syntax has been removed.
4065
4066 2002-09-30 David Carlton <carlton@math.stanford.edu>
4067
4068 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
4069 * ppc-sysv-tdep.c: #include "gdb_string.h".
4070 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
4071 pacify GCC.
4072
4073 2002-10-01 Andrew Cagney <ac131313@redhat.com>
4074
4075 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
4076 "vrsave"'s register number.
4077
4078 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4079
4080 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
4081 use frame_unwind_signed_register to obtain the PC.
4082 (mips_frame_chain): Handle a generic dummy frame.
4083 (mips_init_extra_frame_info): When a generic dummy frame, don't
4084 re-compute the frame base.
4085 (mips_pop_frame): Handle generic dummy frames.
4086 (mips_gdbarch_init): When generic dummy frames, set
4087 use_generic_dummy_frames, push_dummy_frame to
4088 generic_push_dummy_frame, pc_in_call_dummy to
4089 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
4090 generic_save_dummy_frame_tos.
4091
4092 2002-09-30 Andrew Cagney <ac131313@redhat.com>
4093
4094 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
4095 against TOP when TOP was explictly set.
4096 (generic_push_dummy_frame): Set TOP to zero.
4097
4098 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
4099
4100 * event-loop.c (start_event_loop): Rename variable 'result' to
4101 'gdb_result', to avoid conflicts with upcoming intepreters changes.
4102
4103 2002-09-30 Keith Seitz <keiths@redhat.com>
4104
4105 * gdb-events.sh (selected_thread_changed): New event.
4106 * gdb-events.c: Regenerated.
4107 * gdb-events.h: Regenerated.
4108
4109 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
4110
4111 * MAINTAINERS: Add self to Write After Approval list.
4112
4113 2002-09-30 Fernando Nasser <fnasser@redhat.com>
4114
4115 * disasm.c: New file.
4116 * disasm.h: New file.
4117 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
4118 (compare_lines): Ditto.
4119 (dump_insns): Ditto.
4120 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
4121 argument.
4122 (do_assembly_only): Ditto.
4123 (do_disassembly): Renamed to gdb_disassembly and moved to
4124 disasm.c. Sdded uiout argument.
4125 * Makefile.in: Add new files. Reorder SFILES list. Update
4126 dependencies. Include libgdb.a later in the insight executable.
4127
4128 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4129
4130 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
4131 bfd/elf64-alpha-fbsd.c.
4132
4133 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4134
4135 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
4136 i386gnu-tdep.c.
4137
4138 2002-09-29 Andrew Cagney <ac131313@redhat.com>
4139
4140 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
4141 __FUNCTION__.
4142 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
4143 function name.
4144 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4145 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4146 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4147 (S_msg_sig_post_reply): Ditto.
4148
4149 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4150
4151 * sh-tdep.c (sh_use_struct_convention): Use definition according
4152 to ABI.
4153 (sh_push_arguments): Store in register with correct endianess.
4154 (sh_default_store_return_value): Ditto.
4155 (sh_gdbarch_init): Set sizeof long double to 8.
4156
4157 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4158
4159 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4160 Fix some whitespace problems.
4161
4162 2002-09-27 David Carlton <carlton@math.stanford.edu>
4163
4164 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4165 (mcore-tdep.o): Ditto.
4166 (ns32k-tdep.o): Ditto.
4167 (ns32knbsd-tdep.o): Ditto.
4168 (sh3-rom.o): Ditto.
4169 (vax-tdep.o): Ditto.
4170 * cris-tdep.c: #include "gdb_string.h"
4171 * mcore-tdep.c: Ditto.
4172 * ns32k-tdep.c: Ditto.
4173 * ns32knbsd-tdep.c: Ditto.
4174 * sh3-rom.c: Ditto.
4175 * vax-tdep.c: Ditto.
4176
4177 2002-09-27 David Carlton <carlton@math.stanford.edu>
4178
4179 * config/djgpp/fnchange.lst: Add entries for
4180 gdb/testsuite/gdb.c++/m-static files.
4181
4182 2002-09-27 Jim Wilson <wilson@redhat.com>
4183
4184 * MAINTAINERS: Add myself to the Write After Approval list.
4185
4186 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4187
4188 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4189
4190
4191 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4192
4193 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4194 frame.
4195
4196 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4197
4198 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4199 (rs6000_struct_return_address): Delete variable.
4200 (rs6000_store_struct_return): Update.
4201 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4202 deprecated_extract_struct_value_address.
4203 (rs6000_frame_align): New function.
4204 (rs6000_gdbarch_init): Set frame_align.
4205
4206 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4207
4208 From Grace Sainsbury <graces@redhat.com>:
4209 * Makefile.in (gdbtk-main.o): New target.
4210 (gdb.o): New target.
4211 (main_h): Define.
4212 (main.o): Update dependencies.
4213 (gdb$(EXEEXT)): Add gdb.o.
4214 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4215 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4216 (SUBDIR_GDBTK_CLEAN): Set.
4217 (install-gdbtk): Install the insight binary.
4218 (uninstall-gdbtk): New target.
4219 (all-gdbtk, clean-gdbtk): New rule.
4220 * top.c (use_windows): Default to zero.
4221 * main.c: Include "main.h".
4222 (main): Delete.
4223 (struct captured_main_args): Delete.
4224 (gdb_main): New function.
4225 * main.h: New file.
4226 * gdb.c: New File.
4227
4228 2002-09-25 Andrew Cagney <cagney@redhat.com>
4229
4230 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4231 (frame_map_regnum_to_name): New function.
4232 (frame_map_name_to_regnum): New function.
4233 * frame.h (frame_map_name_to_regnum): Declare.
4234 (frame_map_regnum_to_name): Declare.
4235 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4236 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4237 * parse.c: Do not include "builtin-regs.h".
4238 (target_map_name_to_register): Delete function.
4239 (write_dollar_variable): Use frame_map_name_to_regnum.
4240 * parser-defs.h (target_map_name_to_register): Delete declaration.
4241 * expprint.c: Include "frame.h".
4242 (print_subexp): Use frame_map_regnum_to_name.
4243 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4244 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4245
4246 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4247
4248 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4249 wasn't saved, and the next innermost frame is a dummy, return the
4250 dummy frame's link register.
4251
4252 2002-09-24 Jim Blandy <jimb@redhat.com>
4253
4254 Fix from Paul Breed:
4255 * main.c (captured_main): Add a `break' after the case for 'b'.
4256
4257 2002-09-24 Keith Seitz <keiths@redhat.com>
4258
4259 * varobj.c (c_type_of_child): Use get_target_type instead
4260 of TYPE_TARGET_TYPE.
4261
4262 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4263
4264 * source.c (get_current_or_default_source_symtab_and_line): Remove
4265 function.
4266 (set_default_source_symtab_and_line): New function. Attempts to
4267 determine a source file to list lines from if one is not currently
4268 defined.
4269 (get_current_source_symtab_and_line): Initialize sal.pc and
4270 sal.end fields.
4271 (set_current_source_symtab_and_line): Mark argument as const.
4272 * source.h: Update declarations and comments.
4273 * linespec.c (decode_line_1): Replace call to removed routine above.
4274 * stack.c (print_frame_info_base): Ditto.
4275 * cli/cli-cmds.c (edit_command): Ditto.
4276 (list_command): Ditto.
4277
4278 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4279
4280 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4281 sal.pc and sal.end fields.
4282 (get_current_or_default_source_symtab_and_line): Ditto.
4283 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4284 so we do not cause a new source symtab to be searched for (reverting an
4285 unintentional change from the 2002-09-20 patch).
4286 * scm-lang.c (scm_unpac): Ditto.
4287
4288 2002-09-21 Andrew Cagney <cagney@redhat.com>
4289
4290 * complaints.c (symfile_explanations): Remove new-line from
4291 ``isolated_message''.
4292 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4293 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4294
4295 2002-09-20 Nick Clifton <nickc@redhat.com>
4296
4297 * NEWS: Announce that V850EA ISA is no longer supported.
4298 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4299
4300 2002-09-20 David Carlton <carlton@math.stanford.edu>
4301
4302 * Makefile.in (c-lang.o): Correct dependencies.
4303 (utils.o): Gather dependencies.
4304 (charset.o): Move.
4305 * c-lang.c: #include "gdb_string.h"
4306
4307 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4308
4309 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4310 * cli/cli-cmds.c (list_command): New function. Implements the new
4311 cli edit command.
4312 (_init_cli_cmds): Add new command definition.
4313 * gdb.1: Document edit command.
4314 * doc/gdb.texinfo: Document edit command.
4315
4316 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4317
4318 * source.c: Make global variables current_source_symtab and
4319 current_source_line static.
4320 (list_command): Moved to cli/cli-cmds.c.
4321 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4322 (get_first_line_listed): New accessor function.
4323 (get_lines_to_list): New accessor function.
4324 (get_current_source_symtab_and_line): New function. Retrieves the
4325 position in the source code that we consider current.
4326 (get_current_or_default_source_symtab_and_line): New function.
4327 Like the above but attempts to determine a default position if one
4328 is not currently defined.
4329 (set_current_source_symtab_and_line): New function. Sets the source
4330 code position considered current and returns the previously set one.
4331 (clear_current_source_symtab_and_line): Reset stored information about
4332 a current source line.
4333 (_initialize_source): Remove registration for the "list" command and
4334 its alias.
4335 * source.h: Add declarations for the new functions above.
4336 * symtab.h: Remove declarations for the global variables mentioned
4337 above.
4338 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4339 obtain current source line.
4340 * linespec.c (decode_line_1): Ditto.
4341 * macroscope.c (default_macro_scope): Ditto.
4342 * scm-lang.c (scm_unpac): Ditto.
4343 * stack.c (print_frame_info_base): Ditto.
4344 * symfile.c (clear_symtab_users): Ditto.
4345 * symtab.c (decode_line_spec): Ditto.
4346 * cli/cli-cmds.c (list_command): Moved here from source.c.
4347 (ambiguous_line_spec): Moved here from source.c.
4348 (_init_cli_cmds): Add definition for "list" and its alias.
4349 * Makefile.in: Update dependencies.
4350
4351 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4352
4353 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4354 with what gcc thinks is correct.
4355
4356 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4357
4358 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4359 multiple register push instruction.
4360
4361 2002-09-19 Jim Blandy <jimb@redhat.com>
4362
4363 Add support for distinct host and target character sets.
4364 * charset.c, charset.h: New files.
4365 * c-exp.y: #include "charset.h".
4366 (yylex): Convert character and string literals to the target
4367 character set, before returning them as the semantic value of the
4368 token.
4369 * c-lang.c: #include "charset.h".
4370 (c_emit_char): Use charset-specific methods to recognize
4371 characters with backslash escape forms, to decide which characters
4372 to print literally and which to print using numeric escape
4373 sequences, and to convert target characters to host characters
4374 before printing.
4375 * utils.c: #include "charset.h".
4376 (no_control_char_error): New function.
4377 (parse_escape): Use charset-specific methods to recognize
4378 backslash escapes, parse `control character' notation, and convert
4379 characters from the host character set to the target character set.
4380 * configure.in: Set the default host character set.
4381 Check where to find iconv, and what its argument types might be.
4382 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4383 * Makefile.in (SFILES): List charset.c.
4384 (COMMON_OBS): List charset.o.
4385 (charset.o): New rule.
4386 (charset_h): New header dependency variable.
4387 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4388 (LIBICONV): New variable, set by configure.
4389 (CLIBS): Include $(LIBICONV) here.
4390 * aclocal.m4, config.in, configure: Regenerated.
4391
4392 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4393
4394 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4395 bison 1.35 warning.
4396
4397 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4398
4399 * gdb_mbuild.sh: New file.
4400
4401 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4402
4403 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4404
4405 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4406
4407 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4408 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4409 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4410 valops.c, value.h: Revert previous change.
4411
4412 2002-09-18 Michael Snyder <msnyder@redhat.com>
4413
4414 Preliminary support for Objective-C:
4415 * defs.h (language_objc): New enum value.
4416 (puts_filtered_tabular): Declaration only, exported from utils.c.
4417 (skip_quoted): Delete, declared in completer.h.
4418 * c-exp.y: Include completer.h.
4419 * p-exp.y: Ditto.
4420 * jv-exp.y: Ditto.
4421 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4422 New operator enum values.
4423 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4424 * language.c (binop_result_type): Handle language_objc case.
4425 (integral_type, character_type, string_type, boolean_type,
4426 structured_type, binop_type_check): Ditto.
4427 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4428 (struct objc_specific): Add to general_symbol_info.
4429 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4430 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4431 * parser-defs.h (struct objc_class_str): New struct type.
4432 (start_msglist, end_msglist, add_msglist): Declaration only,
4433 exported from objc-lang.c.
4434 * value.h (value_of_local, value_nsstring,
4435 call_function_by_hand_expecting_type): Exported from valops.c.
4436 * valops.c (find_function_addr): Export.
4437 (call_function_by_hand_expecting_type): New function.
4438 (value_of_local): New function.
4439 * symfile.c (init_filename_language_table): Add ".m" extension
4440 for Objective-C.
4441 * utils.c (puts_filtered_tabular): New function.
4442 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4443 (set/show demangle): Extend help-string to refer to ObjC.
4444 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4445 * stabsread.c (symbol_reference_defined): Objective-C symbols
4446 may contain colons: make allowances when scanning stabs strings
4447 for colons.
4448 (objc_find_colon): New function.
4449 * printcmd.c (address_info): If language == objc then print
4450 "self" instead of "this".
4451 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4452 OP_NSSTRING, and OP_SELF.
4453 (prefixify_subexp): Ditto.
4454 * source.c (print_source_lines): Mention objc in comment.
4455 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4456 method names.
4457
4458 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4459
4460 * complaints.h: Update copyright.
4461 (struct complaints): Declare.
4462 (struct complaint): Make `message' constant.
4463 (internal_complaint): Declare.
4464 (complaint): Declare.
4465 (complaint_root): Delete declaration.
4466 (symfile_complaints): Delete declaration.
4467 (struct complaints): Add opaque declaration.
4468 (clear_complaints): Add a complaints parameter.
4469 * complaints.c: Update copyright.
4470 (enum complaint_series): Define.
4471 (complaint_root): Delete.
4472 (struct complaints): Define.
4473 (complaint_sentinel, symfile_complaint_book): New variables.
4474 (symfile_explanations, symfile_complaints): New variables.
4475 New variables.
4476 (get_complaints): New function.
4477 (vcomplaint): New function.
4478 (complaint): New function.
4479 (internal_complaint): New function.
4480 (complain): Call vcomplain with symfile_complaint.
4481 (clear_complaints): Rewrite.
4482 (_initialize_complaints): Use add_setshow_command.
4483 * Makefile.in (complaints.o): Update dependencies.
4484 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4485 to call to clear_complaints.
4486 (new_symfile_objfile, reread_symbols): Ditto.
4487 (oldsyms_complaint): Delete.
4488 (empty_symtab_complaint, unknown_option_complaint): Delete.
4489 (free_named_symtabs): Use complaint instead of complain.
4490
4491 2002-09-18 Michael Snyder <msnyder@redhat.com>
4492
4493 Contributed by Apple Computer, Inc. Merged with current sources
4494 by Adam Fedor <fedor@doc.com> [cagney].
4495
4496 * objc-lang.c: First clean-up round: comments, indentation.
4497 * objc-lang.h: Ditto.
4498 * objc-lang.y: Ditto.
4499
4500 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4501
4502 * maint.c (maintenance_internal_error): Print the parameter as the
4503 error message.
4504 (maintenance_internal_warning): New function.
4505 (_initialize_maint_cmds): Add command `maint internal-warning'.
4506
4507 * defs.h (internal_warning, internal_vwarning): Declare.
4508 * utils.c (struct internal_problem): Define.
4509 (internal_vproblem): New function.
4510 (internal_warning): New function.
4511 (internal_vwarning): New function.
4512 (internal_warning_problem, internal_error_problem): New variables.
4513 (internal_verror): Just call internal_vproblem.
4514
4515 2002-09-18 Michael Snyder <msnyder@redhat.com>
4516
4517 * objc-lang.c: New file, support for Objective-C.
4518 Preliminary check-in, not yet integrated into gdb.
4519 * objc-lang.h: New file.
4520 * objc-exp.y: New file.
4521
4522 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4523
4524 * infrun.c (signal_stop_update): Convert definition to ISO C.
4525 (signal_print_update): Ditto.
4526 (signal_pass_update): Ditto.
4527 * inflow.c (terminal_save_ours): Ditto.
4528
4529 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4530 comments.
4531
4532 * config/djgpp/fnchange.lst: Handle name clashes between
4533 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4534 bfd/coff-tic80.c.
4535
4536 * i386-linux-tdep.h: Fix tipo.
4537
4538 2002-09-18 Adam Fedor <fedor@gnu.org>
4539
4540 * MAINTAINERS: Add myself to the Write After Approval list.
4541
4542 2002-09-18 Jim Blandy <jimb@redhat.com>
4543
4544 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4545 texthigh and textlow to reader-specific structs caused
4546 objfile_relocate to miss them. This is fixable, but the work that
4547 the change was supposed to prepare GDB for never got done anyway.
4548
4549 2002-09-18 David Carlton <carlton@math.stanford.edu>
4550
4551 * MAINTAINERS: Alphabetize Write After Approval list.
4552
4553 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4554
4555 Fix PR gdb/709
4556 * values.c (value_static_field): Call read_var_value.
4557
4558 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4559
4560 * valops.c (hand_function_call): Align the initial stack pointer
4561 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4562 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4563 return value.
4564 * mips-tdep.c (mips_frame_align): New function.
4565 (mips_gdbarch_init): Set frame_align.
4566 * gdbarch.sh (FRAME_ALIGN): New method.
4567 * gdbarch.h, gdbarch.c: Re-generate.
4568
4569 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4570
4571 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4572 registers.
4573
4574 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4575
4576 * NEWS: Mention that MIPS $fp behavior changed.
4577 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4578 reference to FP_REGNUM.
4579 (mipsnbsd_cannot_store_register): Ditto.
4580 * mips-linux-nat.c: Update copyright.
4581 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4582 (mips_linux_cannot_store_register): Ditto.
4583 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4584 * config/mips/tm-mips.h: Update copyright.
4585 (FP_REGNUM): Delete macro.
4586 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4587 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4588 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4589 (mips_r3041_reg_names, mips_r3051_reg_names)
4590 (mips_r3081_reg_names): Replace "fp" with "".
4591 Fix PR gdb/480.
4592
4593 2002-09-17 Theodore A. Roth <troth@verinet.com>
4594
4595 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4596 generic_read_register_dummy() (PR gdb/703).
4597 (avr_push_return_address): #if 0 out unused vars.
4598 (avr_gdbarch_init): Enable use of avr_push_return_address().
4599
4600 2002-09-17 Michael Snyder <msnyder@redhat.com>
4601
4602 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4603 RTE will take care of it.
4604
4605 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4606
4607 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4608 invalid, return SP_REGNUM.
4609
4610 2002-09-17 Michael Snyder <msnyder@redhat.com>
4611
4612 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4613 point registers without sign extension.
4614
4615 2002-09-17 Andrew Cagney <cagney@redhat.com>
4616
4617 * blockframe.c (deprecated_read_register_dummy): Rename
4618 generic_read_register_dummy.
4619 * frame.c (frame_unwind_signed_register): New function.
4620 (frame_unwind_unsigned_register): New function.
4621 * frame.h (frame_unwind_signed_register): Declare.
4622 (frame_unwind_unsigned_register): Declare.
4623 (deprecated_read_register_dummy): Rename
4624 generic_read_register_dummy.
4625
4626 * h8300-tdep.c (h8300_frame_chain): Update.
4627 (h8300_frame_saved_pc): Update.
4628 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4629 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4630 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4631 (s390_frame_chain): Update.
4632 * v850-tdep.c (v850_find_callers_reg): Update.
4633 (v850_frame_saved_pc): Update.
4634 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4635 (m32r_find_callers_reg): Update.
4636 (m32r_frame_saved_pc): Update.
4637 * sh-tdep.c (sh_find_callers_reg): Update.
4638 (sh64_get_saved_pr): Update.
4639 (sh_init_extra_frame_info): Update.
4640 (sh_init_extra_frame_info): Update.
4641 (sh64_init_extra_frame_info): Update.
4642 (sh64_init_extra_frame_info): Update.
4643 * mcore-tdep.c (mcore_find_callers_reg): Update.
4644 (mcore_frame_saved_pc): Update.
4645 (mcore_init_extra_frame_info): Update.
4646 * i386-tdep.c (i386_frame_saved_pc): Update.
4647 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4648 (ia64_init_extra_frame_info): Update.
4649 (ia64_init_extra_frame_info): Update.
4650 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4651 * cris-tdep.c (cris_init_extra_frame_info): Update.
4652 * avr-tdep.c (avr_frame_chain): Update.
4653 (avr_init_extra_frame_info): Update.
4654 (avr_frame_saved_pc): Update.
4655 * arm-tdep.c (arm_find_callers_reg): Update.
4656 (arm_init_extra_frame_info): Update.
4657 (arm_frame_saved_pc): Update.
4658
4659 2002-09-17 Tom Tromey <tromey@redhat.com>
4660
4661 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4662 is "'".
4663
4664 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4665
4666 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4667 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4668 NEXT_PROLOGUE_INSN.
4669 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4670 NEXT_PROLOGUE_INSN.
4671
4672 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4673
4674 * osfsolib.c: Remove file, replaced by solib-osf.c.
4675 * Makefile.in: Remove compilation rules for osfsolib.c.
4676
4677 2002-09-16 David Carlton <carlton@math.stanford.edu>
4678
4679 * cp-valprint.c (cp_print_class_method): Correct args to
4680 check_stub_method_group.
4681
4682 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4683
4684 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4685 `set architecture'. Unify naming convention of functions.
4686 (h8300_skip_prologue): Improve prologue analysis.
4687 (h8300_push_arguments): Rewritten to more closely match GCC's
4688 bizarre argument-passing behavior, along with the comment describing
4689 said behavior.
4690 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4691 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4692 sim, remote-e7000.c, remote-hms.c and remote.c
4693
4694 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4695
4696 * i386-tdep.c (gdb_print_insn_i386): Removed.
4697 (i386_print_insn): New function.
4698 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4699 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4700 tm_print_insn_info.
4701
4702 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4703
4704 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4705 zero.
4706
4707 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4708
4709 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4710 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4711 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4712
4713 2002-09-13 Christopher Faylor <cgf@redhat.com>
4714
4715 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4716
4717 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4718
4719 * gdbtypes.c (check_stub_method): Make static.
4720 (check_stub_method_group): New function.
4721 * gdbtypes.h: Update prototypes.
4722 * cp-support.c: New file.
4723 * cp-support.h: New file.
4724
4725 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4726 (update_method_name_from_physname): New function.
4727 (read_member_functions): Correct method names for operators
4728 and v3 constructors/destructors. Separate v2 constructors and
4729 destructors.
4730 * Makefile.in (stabsread.o): Update dependencies.
4731 (SFILES): Add cp-support.c.
4732 (COMMON_OBS): Add cp-support.o.
4733 (cp_support_h, cp-support.o): Add.
4734
4735 * cp-valprint.c (cp_print_class_method): Call
4736 check_stub_method_group instead of check_stub_method. Remove
4737 extraneous QUITs.
4738 * p-valprint.c (pascal_object_print_class_method): Likewise.
4739 * valops.c (search_struct_method): Likewise.
4740 (find_method_list, value_struct_elt_for_reference): Likewise.
4741
4742 2002-09-13 Andrew Cagney <cagney@redhat.com>
4743
4744 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4745 * gdbarch.h, gdbarch.c: Regenerate.
4746
4747 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4748
4749 * frame.c (find_saved_register): Delete function.
4750 * frame.h (find_saved_register): Delete declaration.
4751 Fix PR gdb/631.
4752
4753 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4754
4755 * mips-tdep.c (read_next_frame_reg): Re-hack using
4756 frame_register_unwind.
4757
4758 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4759
4760 * mips-tdep.c (mips_get_saved_register): Re-hack using
4761 frame_register_unwind.
4762
4763 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4764
4765 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4766 vector. Will be useful for Interix.
4767 * gdbarch.h, gdbarch.c: Regenerate.
4768
4769 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4770 name of the malloc function by NAME_OF_MALLOC.
4771
4772 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4773
4774 * value.h (find_function_in_inferior): Add const keyword to
4775 one of the parameters. Allows us to invoke this function with
4776 a const char *.
4777 * valops.c (find_function_in_inferior): Likewise.
4778
4779 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4780
4781 * exec.c (xfer_memory): Fix compilation warning with old versions
4782 of GCC.
4783 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4784
4785 2002-09-12 David Carlton <carlton@math.stanford.edu>
4786
4787 * symtab.h: Run through gdb_indent.h.
4788 Add 2002 to Copyright year list.
4789
4790 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4791
4792 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4793 mach constants.
4794 * MAINTAINERS: Add myself to write after approval list.
4795
4796 2002-09-11 J. Brobecker <brobecker@gnat.com>
4797
4798 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4799
4800 2002-09-11 J. Brobecker <brobecker@gnat.com>
4801
4802 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4803 Interix.
4804
4805 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4806
4807 * procfs.c (do_detach): Clear current signal, not just fault.
4808 Corrects problem with breakpoint trap signal leaking to detached
4809 process on Tru64.
4810
4811 2002-09-10 Michael Snyder <msnyder@redhat.com>
4812
4813 * buildsym.c (finish_block): Protect against null pointer.
4814
4815 2002-09-10 Andrew Cagney <cagney@redhat.com>
4816
4817 * infcmd.c (default_print_registers_info): Send all output to
4818 ``file'' instead of ``gdb_stdout''.
4819
4820 2002-09-10 Michael Snyder <msnyder@redhat.com>
4821
4822 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4823 LONGEST, and use signed register read (addresses are sign-
4824 extended for mips).
4825
4826 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4827
4828 * event-loop.c (gdb_do_one_event): Make public.
4829 * event-loop.h (gdb_do_one_event): Declare.
4830
4831 2002-09-10 Jeff Law <law@redhat.com>
4832
4833 * infttrace.c (child_resume): Simplify and rework to avoid
4834 TT_PROC_CONTINUE.
4835
4836 2002-09-09 Fred Fish <fnf@intrinsity.com>
4837
4838 * printcmd.c (print_scalar_formatted): "len" is the number of
4839 target bytes, NOT the number of target bits.
4840
4841 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4842
4843 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4844 * top.c (init_main): Set rl_terminal_name.
4845
4846 2002-09-08 Aidan Skinner <aidan@velvet.net>
4847
4848 * ada-lang.c (ada_array_bound, ada_type_match,
4849 _initialize_ada_language): Fix K&R definitions.
4850 * ada-tasks.c (get_current_task): Fix K&R definitions.
4851 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4852
4853 2002-09-07 Christopher Faylor <cgf@redhat.com>
4854
4855 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4856 Add XP.
4857
4858 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4859
4860 * i386-tdep.c (i386_register_virtual_type,
4861 i386_register_convertible, i386_register_convert_to_virtual,
4862 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4863 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4864 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4865 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4866 Don't set push_arguments twice.
4867
4868 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4869 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4870 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4871 sigtramp_end to NULL.
4872 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4873 defines.
4874 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4875
4876 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4877 whitespace.
4878
4879 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4880 * gdbarch.h, gdbarch.c: Re-generate.
4881 * blockframe.c (find_pc_sect_partial_function): Convert to use
4882 SIGTRAMP_START_P predicate.
4883
4884 2002-09-05 Michael Snyder <msnyder@redhat.com>
4885
4886 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4887 generic_dummy_frame method and old method. Also distinguish
4888 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4889 (arm_extract_return_value): Use new regcache method.
4890
4891 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4892 adjustment that doesn't conform to the ABI.
4893 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4894 saved regcache, not from current regcache.
4895
4896 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4897
4898 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4899 * README: Update.
4900
4901 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4902
4903 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4904 if arm_apcs_32 is false.
4905
4906 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4907
4908 GDB 5.3 branch created.
4909
4910 2002-09-03 Theodore A. Roth <troth@verinet.com>
4911
4912 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4913 generic_unwind_get_saved_register.
4914
4915 2002-09-03 David Carlton <carlton@math.stanford.edu>
4916
4917 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4918 argument (PR gdb/653). Update call to smash_to_method_type.
4919 (read_structure_scope): Update call to dwarf2_add_member_fn.
4920
4921 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4922
4923 * x86-64-linux-tdep.c: Include gdb_string.h
4924 * x86-64-linux-nat.c: Ditto.
4925
4926 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4927
4928 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4929 when YYDEBUG is set to 1.
4930 * c-exp.y: Likewise.
4931 * f-exp.y: Likewise.
4932 * jv-exp.y: Likewise.
4933 * m2-exp.y: Likewise.
4934 * p-exp.y: Likewise.
4935
4936 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4937
4938 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4939 dependency list.
4940 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4941 solib_svr4_fetch_link_map_offsets to
4942 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4943 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4944 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4945 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4946 solib-svr4.o, and solib-legacy.o.
4947 * config/i386/tm-nbsd.h: Include solib.h.
4948
4949 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4950
4951 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4952 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4953 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4954 comment noting that this needs its own target configuration.
4955 * config/i386/nbsd.mt: New file.
4956 * config/i386/nbsdaout.mt: Remove.
4957 * config/i386/nbsdelf.mt: Ditto.
4958 * config/i386/tm-nbsdaout.h: Ditto.
4959
4960 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4961
4962 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4963 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4964 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4965 tdep->sigtramp_end.
4966 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4967 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4968 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4969
4970 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4971
4972 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4973 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4974 * i386-tdep.h (i386bsd_init_abi): New prototype.
4975 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4976 function declaration.
4977 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4978 for NetBSD-a.out or NetBSD-ELF.
4979 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4980 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4981 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4982 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4983 and nbsd-tdep.h.
4984 (i386nbsd_pc_in_sigtramp): New function.
4985 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4986 i386nbsd_pc_in_sigtramp.
4987 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4988 and i386nbsdelf_init_abi OS ABI handlers.
4989 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4990 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4991
4992 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4993
4994 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4995 registers if the target really has them.
4996
4997 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4998
4999 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
5000 than nbsd-tdep.h.
5001
5002 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5003
5004 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
5005 list.
5006 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
5007 (alphanbsd_skip_sigtramp_frame): New functions.
5008 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
5009 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
5010 to alphanbsd_sigcontext_addr.
5011
5012 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
5013
5014 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
5015 list.
5016 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
5017 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
5018 nbsd_pc_in_sigtramp.
5019 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
5020 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
5021 * nbsd-tdep.c: Include gdb_string.h.
5022 (nbsd_pc_in_sigtramp): New function.
5023 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
5024 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
5025 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5026 ppcnbsd_pc_in_sigtramp.
5027 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
5028 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
5029 shnbsd_pc_in_sigtramp.
5030 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
5031 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
5032 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
5033
5034 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
5035
5036 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
5037 watchpoints to NULL.
5038 (insert_breakpoints): set val field of watchpoints if NULL.
5039
5040
5041 2002-08-29 Jim Blandy <jimb@redhat.com>
5042
5043 * symtab.c (lookup_symbol_aux): In the cases where we find a
5044 minimal symbol of an appropriate name and use its address to
5045 select a symtab to read and search, use `name' (as passed to us)
5046 as the demangled name when searching the symtab's global and
5047 static blocks, not the minsym's name.
5048
5049 2002-08-29 Keith Seitz <keiths@redhat.com>
5050
5051 * stack.c (print_frame_info_base): Always set current_source_symtab
5052 and current_source_line.
5053
5054 2002-08-29 Donn Terry <donnte@microsoft.com>
5055
5056 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
5057
5058 2002-08-28 Keith Seitz <keiths@redhat.com>
5059
5060 * stack.c (select_frame): Add FIXME concerning selected-frame
5061 events.
5062 (select_frame_command): Send selected-frame-level-changed
5063 event notification, but only if the level actually changed.
5064 (up_silently_base): Add selected-frame-level-changed event
5065 notification.
5066 (down_silently_base): Likewise.
5067
5068 2002-08-28 Andrew Cagney <ac131313@redhat.com>
5069
5070 * Makefile.in: Update dependencies for all gdb/*.c files.
5071
5072 2002-08-27 Tom Tromey <tromey@redhat.com>
5073
5074 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
5075 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
5076 Update dependencies.
5077 * i387-tdep.c: Include gdb_string.h.
5078 * osabi.c: Likewise.
5079 * i386-linux-nat.c: Likewise.
5080 * lin-lwp.c: Likewise.
5081 * ax-gdb.c: Likewise.
5082 * signals/signals.c: Likewise.
5083 * jv-valprint.c: Likewise.
5084 * p-lang.c: Likewise.
5085 * c-valprint.c: Likewise.
5086 * cp-abi.c: Likewise.
5087
5088 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
5089
5090 * cli/cli-script.h (copy_command_lines): Export.
5091 * breakpoint.c: Include cli/cli-script.h.
5092 * Makefile.in (breakpoint.o): Update dependencies.
5093
5094 2002-08-26 Michael Snyder <msnyder@redhat.com>
5095
5096 * breakpoint.c (insert_breakpoints): Protect all references
5097 to 'process_warning'. Shorten long lines.
5098
5099 2002-08-26 Joel Brobecker <brobecker@gnat.com>
5100
5101 * cli/cli-script.c (copy_command_lines): New function.
5102 * defs.h (copy_command_lines): Export.
5103 * testsuite/gdb.base/commands.exp: New tests for commands
5104 attached to a temporary breakpoint, and for commands that
5105 delete the breakpoint they are attached to.
5106
5107 2002-08-26 Michael Snyder <msnyder@redhat.com>
5108
5109 * breakpoint.c (bpstat_stop_status): Instead of copying the
5110 pointer to the breakpoint commands struct, make a new copy
5111 of the struct and point to that.
5112 (bpstat_clear): Free the commands struct.
5113 (bpstat_clear_actions): Free the commands struct.
5114 (bpstat_do_actions): Free the command actions. Also execute
5115 the local cleanups, instead of deleting them.
5116 (delete_breakpoint): Leave the commands field of the bpstat
5117 chain alone -- it will be freed later.
5118
5119 2002-08-26 Kevin Buettner <kevinb@redhat.com>
5120
5121 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
5122 deleted in 2002-08-20 commit. This function is still used by
5123 ppc-linux-nat.c.
5124
5125 2002-08-26 Keith Seitz <keiths@redhat.com>
5126
5127 * gdb-events.sh: Add selected-frame-level-changed event.
5128 * gdb-events.c: Regenerated.
5129 * gdb-events.h: Regenerated.
5130
5131 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
5132
5133 Fix PR gdb/393:
5134 * inflow.c (terminal_save_ours): New function to save terminal
5135 settings.
5136 * inferior.h (terminal_save_ours): Declare.
5137 * target.c (debug_to_terminal_save_ours): New function.
5138 (cleanup_target): Defaults to_terminal_save_ours.
5139 (update_current_target): Inherit to_terminal_save_ours.
5140 (setup_target_debug): Set to_terminal_save_ours.
5141 * target.h (target_terminal_save_ours): New to save terminal settings.
5142 (target_ops): New member to_terminal_save_ours.
5143 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
5144 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5145 * inftarg.c (init_child_ops): Likewise.
5146 * m3-nat.c (init_m3_ops): Likewise.
5147 * procfs.c (init_procfs_ops): Likewise.
5148 * wince.c (init_child_ops): Likewise.
5149 * win32-nat.c (init_child_ops): Likewise.
5150 * sol-thread.c (init_sol_thread_ops): Likewise.
5151
5152 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5153
5154 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5155 use regcache_* functions.
5156 (i386_gdbarch_init): Set store_return_value instead of
5157 deprecated_store_return_value.
5158
5159 * regcache.c (regcache_raw_write_signed,
5160 regcache_raw_write_unsigned): New functions.
5161 * regcache.h (regcache_raw_write_signed,
5162 regcache_raw_write_unsigned): New prototypes.
5163
5164 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5165
5166 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5167 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5168 source file dependencies. Cleanup corresponding generator rules.
5169
5170 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5171
5172 * regcache.h (register_offset_hack): Declare.
5173 (regcache_cooked_read_using_offset_hack): Declare.
5174 (regcache_cooked_write_using_offset_hack): Declare.
5175
5176 * regcache.c (register_offset_hack): New function.
5177 (regcache_cooked_read_using_offset_hack): New function.
5178 (regcache_cooked_write_using_offset_hack): New function.
5179 (regcache_dump): Check that the registers, according to their
5180 offset, are packed hard against each other.
5181 (cooked_xfer_using_offset_hack): New function.
5182
5183 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5184
5185 * regcache.c (struct regcache_descr): Add field register_type.
5186 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5187 in as a parameter
5188 (init_regcache_descr): Initialize register_type. Pass the descr
5189 to init_legacy_regcache_descr. Use register_type instead of
5190 REGISTER_VIRTUAL_TYPE.
5191 (register_type): New function.
5192 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5193 * regcache.h (register_type): Declare.
5194
5195 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5196
5197 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5198 instead of deprecated_store_return_value. Fix fallout from
5199 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5200
5201 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5202
5203 * regcache.c (max_register_size): New function.
5204 (init_legacy_regcache_descr): Ensure that max_register_size is
5205 large enough for REGISTER_VIRTUAL_SIZE.
5206 * regcache.h (max_register_size): Declare.
5207
5208 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5209
5210 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5211 store_return_value.
5212 (e500_extract_return_value): Change type of valbuf pointer to
5213 void.
5214
5215 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5216
5217 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5218 workaround.
5219
5220 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5221 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5222 long long) to prevent compiler warning on 64-bit systems.
5223
5224 2002-08-23 Andrew Cagney <cagney@redhat.com>
5225
5226 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5227 (DEPRECATED_STORE_RETURN_VALUE): New method.
5228 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5229 * gdbarch.h, gdbarch.c: Re-generate.
5230
5231 * values.c (set_return_value): Pass current_regcache to
5232 STORE_RETURN_VALUE.
5233 * arch-utils.h (legacy_store_return_value): Declare.
5234 * arch-utils.c (legacy_store_return_value): New function.
5235 (legacy_extract_return_value): Update parameters.
5236
5237 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5238 STORE_RETURN_VALUE.
5239 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5240 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5241 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5242 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5243 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5244 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5245 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5246 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5247 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5248 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5249
5250 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5251 * i386-tdep.c (i386_extract_return_value): Update.
5252 * arch-utils.c (legacy_extract_return_value): Update.
5253 * frv-tdep.c (frv_gdbarch_init): Update.
5254 * cris-tdep.c (cris_gdbarch_init): Update.
5255 * d10v-tdep.c (d10v_gdbarch_init): Update.
5256 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5257 * m68k-tdep.c (m68k_gdbarch_init): Update.
5258 * mcore-tdep.c (mcore_gdbarch_init): Update.
5259 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5260 * s390-tdep.c (s390_gdbarch_init): Update.
5261 * sparc-tdep.c (sparc_gdbarch_init): Update.
5262 * sh-tdep.c (sh_gdbarch_init): Update.
5263 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5264 * v850-tdep.c (v850_gdbarch_init): Update.
5265 * avr-tdep.c (avr_gdbarch_init): Update.
5266 * ia64-tdep.c (ia64_gdbarch_init): Update.
5267 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5268 * vax-tdep.c (vax_gdbarch_init): Update.
5269 * alpha-tdep.c (alpha_gdbarch_init): Update.
5270 * arm-tdep.c (arm_gdbarch_init): Update.
5271 * mips-tdep.c (mips_gdbarch_init): Update.
5272 * i386-tdep.c (i386_gdbarch_init): Update.
5273
5274 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5275
5276 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5277 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5278
5279 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5280
5281 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5282 problems.
5283
5284 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5285
5286 * infrun.c (handle_inferior_event): Move a comment outside of a
5287 function call, in order to avoid indent reformatting this part
5288 of the code in an unreadable way.
5289
5290 2002-08-23 Grace Sainsbury <graces@redhat.com>
5291
5292 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5293 when breakpoints fail. Move general breakpoint error messages to
5294 insert_breakpoints.
5295 * breakpoint.c (insert_breakpoints): Change warnings when
5296 breakpoints are nto inserted to specify the type. Remove call to
5297 memory_error when hardware breakpoints can't be inserted. Remove
5298 multiple calls to warning so all messages are sent to the user at
5299 once.
5300 (delete_breakpoints): Make insert error messsages more explicit.
5301
5302 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5303
5304 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5305 gdbserver/ChangeLog.
5306
5307 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5308
5309 * i386-tdep.c: Include "objfiles.h".
5310 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5311 skip_trampoline_code.
5312 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5313 (CPLUS_MARKER): Define to '.'.
5314
5315 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5316 member.
5317 (linux_corefile_thread_callback): Increase args->num_notes.
5318 (linux_make_note_section): Initialize thread_args.num_notes, and
5319 use it to determine whether notes for any threads were created.
5320
5321 2002-08-23 Donn Terry <donnte@microsoft.com>
5322
5323 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5324 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5325 and PCUNKILL.
5326 (write_with_trace): Conditionalize out the switch branch handling
5327 PCSHOLD if the corresponding macro is not defined. Likewise for
5328 PRSABORT and PRSTOP.
5329 This change will be needed by the Interix port.
5330
5331 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5332
5333 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5334 write_register wherever possible instead of manipulating the
5335 register bytes directly.
5336 Assign VALUE_CONTENTS to a variable and use that.
5337 The GPR numbers are now dependent on the architecture.
5338
5339 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5340
5341 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5342 ev_offset fields.
5343 (skip_prologue): Add support for BookE/e500 instructions.
5344 (e500_extract_return_value): New function.
5345 (frame_get_saved_regs): Add support for saving ev registers and
5346 pseudo gpr's.
5347 (e500_store_return_value): New function.
5348 (rs6000_gdbarch_init): Move up default intializations of
5349 deprecated_extract_return_value and store_return_value. Overwrite
5350 init of store_return_value with e500 specific version.
5351 Set extract_return_value for e500.
5352
5353 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5354
5355 * blockframe.c (generic_call_dummy_register_unwind): Use
5356 regcache_cooked_read to catch cases in which the variable is
5357 stored in a pseudo register.
5358
5359 2002-08-22 Andrew Cagney <cagney@redhat.com>
5360
5361 * NEWS: Mention that the i960 has been made obsolete.
5362 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5363 i960-tdep.c
5364 (remote-nrom.o): Obsolete target.
5365 (remote-nindy.o, i960-tdep.o): Ditto.
5366 * remote-nrom.c: Make file obsolete.
5367 * remote-nindy.c, remote-vx960.c: Ditto.
5368 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5369 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5370 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5371 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5372 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5373 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5374 i960-*-vxworks* obsolete.
5375 * MAINTAINERS: Note that the i960 is obsolete.
5376
5377 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5378
5379 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5380 detach to allow reinitialization.
5381
5382 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5383
5384 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5385 attempt).
5386
5387 2002-08-22 Jim Blandy <jimb@redhat.com>
5388
5389 * coffread.c (coff_symfile_read): Don't try to read the line
5390 number table from disk if the image file doesn't have a symbol
5391 table; we'll never actually look at the info anyway, and Windows
5392 ships DLL's with bogus file offsets for the line number data.
5393
5394 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5395
5396 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5397 an e500 executable.
5398
5399 2002-08-21 Michael Snyder <msnyder@redhat.com>
5400
5401 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5402 (MSYMBOL_SIZE): Replace macro with function.
5403 (DEFAULT_MIPS_TYPE): Delete unused macro.
5404 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5405 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5406
5407 2002-08-21 Jim Blandy <jimb@redhat.com>
5408
5409 * valops.c (value_cast): Simplify and correct logic for doing a
5410 static cast from a pointer to a base class to a pointer to a
5411 derived class.
5412
5413 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5414
5415 * infcmd.c (default_print_registers_info): Replace
5416 do_registers_info.
5417 (registers_info): Use gdbarch_print_registers_info instead of
5418 DO_REGISTERS_INFO.
5419 * inferior.h (default_print_registers_info): Replace
5420 do_registers_info.
5421 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5422 (DO_REGISTERS_INFO): Change to a predicate function.
5423 * gdbarch.h, gdbarch.c: Regenerate.
5424
5425 2002-08-21 Keith Seitz <keiths@redhat.com>
5426
5427 * gdb-events.sh: Add target-changed event.
5428 * gdb-events.c: Regenerated.
5429 * gdb-events.c: Regenerated.
5430 * valops.c (value_assign): Add target-changed event notification
5431 to inlval_register, lval_memory, and lval_reg_frame_relative.
5432
5433 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5434
5435 * NEWS: Add an entry regarding the improvement of the next/step
5436 operation on Alpha Tru64 multi-processor machines.
5437
5438 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5439
5440 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5441 directores.
5442 * Makefile.in: Update all _h macro definitions.
5443 * Makefile.in (install-gdbtk): Move to install section.
5444 (rdi-share/libangsd.a): Move to end of file.
5445
5446 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5447
5448 * frame.c (frame_register_unwind): When a register, set addrp to
5449 the register's byte.
5450
5451 2002-08-20 Michael Snyder <msnyder@redhat.com>
5452
5453 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5454 used locally, so move them from the target machine header to here.
5455 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5456 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5457 Make static.
5458 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5459
5460 2002-08-20 Andrew Cagney <cagney@redhat.com>
5461
5462 * NEWS: Mention that the Apollo line was made obsolete.
5463 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5464 m68*-hp-hpux* obsolete.
5465 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5466 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5467 * buildsym.c (make_blockvector): Make static.
5468 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5469 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5470 (ALLDEPFILES): Remove dstread.c.
5471 (dstread.o): Obsolete make rule.
5472 * dstread.c: Makefile obsolete.
5473 * dst.h: Ditto.
5474 * config/m68k/hp300hpux.mt: Ditto.
5475 * config/m68k/hp300hpux.mh: Ditto.
5476 * config/m68k/hp300bsd.mt: Ditto.
5477 * config/m68k/hp300bsd.mh: Ditto.
5478 * config/m68k/apollo68b.mt: Ditto.
5479 * config/m68k/apollo68v.mh: Ditto.
5480 * config/m68k/apollo68b.mh: Ditto.
5481
5482 2002-08-20 Michael Snyder <msnyder@redhat.com>
5483
5484 * mips-tdep.c (mips_in_return_stub): Make static.
5485 (mips_gdbarch_init): Set in_solib_return_trampoline.
5486 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5487
5488 2002-08-20 Michael Snyder <msnyder@redhat.com>
5489
5490 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5491 * gdbarch.c, gdbarch.h: Regenerate.
5492 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5493 Add.
5494 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5495
5496 2002-08-20 Michael Snyder <msnyder@redhat.com>
5497
5498 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5499 (mips_gdbarch_init): Set skip_trampoline_code,
5500 in_solib_call_trampoline.
5501 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5502 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5503
5504 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5505
5506 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5507
5508 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5509 vector type for ev registers.
5510 (e500_pseudo_register_read): New function.
5511 (e500_pseudo_register_write): New function.
5512 (e500_dwarf2_reg_to_regnum): New function.
5513 (PPC_UISA_NOFP_SPRS): New macro.
5514 (PPC_EV_REGS): New macro.
5515 (PPC_GPRS_PSEUDO_REGS): New macro.
5516 (registers_e500): New register set for e500.
5517 (variants): Add e500 variant.
5518 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5519 before setting architectural dependent variations. Initialize ev
5520 registers numbers. Add case for e500 architecture. Set the
5521 number of pseudo registers.
5522
5523 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5524
5525 * rs6000-tdep.c: Clean up comments.
5526
5527 2002-08-20 Andrew Cagney <cagney@redhat.com>
5528
5529 * h8300-tdep.c: Re-indent file.
5530
5531 2002-08-20 Jim Blandy <jimb@redhat.com>
5532
5533 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5534 default for this.
5535
5536 2002-08-20 Keith Seitz <keiths@redhat.com>
5537
5538 * breakpoints.c (watch_command_1): Use internal breakpoint
5539 when setting a watchpoint_scope breakpoint.
5540
5541 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5542
5543 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5544 (build_builtin_type_vec64i): Ditto.
5545 (build_builtin_type_vec128): Ditto.
5546 (build_builtin_type_vec128i): Ditto.
5547
5548 2002-08-19 Michael Snyder <msnyder@redhat.com>
5549
5550 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5551 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5552 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5553 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5554 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5555 CALL_DUMMY_ADDRESS): Delete.
5556 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5557 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5558 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5559 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5560 push_return_address.
5561 (mips_register_raw_size, mips_eabi_use_struct_convention,
5562 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5563 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5564 mips_init_extra_frame_info, mips_eabi_push_arguments,
5565 mips_n32n64_push_arguments, mips_push_return_address,
5566 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5567 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5568
5569 2002-08-19 Michael Snyder <msnyder@redhat.com>
5570
5571 * mips-tdep.c (mips_frame_num_args): New function.
5572 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5573 frame_saved_pc, frame_args_address, frame_locals_address,
5574 frame_num_args, and frame_args_skip.
5575 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5576 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5577 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5578 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5579
5580 2002-08-20 Michael Snyder <msnyder@redhat.com>
5581
5582 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5583 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5584 * mips-tdep.c (mips_store_struct_return): New function.
5585 (mips_extract_struct_value_address): New function.
5586 (mips_gdbarch_init): Set store_struct_return and
5587 extract_struct_value_address.
5588
5589 2002-08-20 David Carlton <carlton@math.stanford.edu>
5590
5591 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5592 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5593 (read_file_scope): Check that line_header is nonzero before
5594 decoding macro information.
5595
5596 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5597
5598 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5599 flag the general-purpose registers as floating-point on targets
5600 that don't support the floating-point registers.
5601
5602 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5603
5604 * rs6000-tdep.c (altivec_register_p): Delete.
5605 (rs6000_do_altivec_registers): Delete.
5606 (rs6000_altivec_registers_info): Delete.
5607 (rs6000_do_registers_info): Delete.
5608 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5609 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5610
5611 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5612
5613 * infcmd.c (do_registers_info): Print vector registers in hex
5614 format only.
5615 (print_vector_info): Check that printing registers
5616 makes sense.
5617 (print_float_info): Ditto.
5618
5619 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5620
5621 * mips-tdep.c (mips_gdbarch_init): Update.
5622 (mips_o32_extract_return_value): Rewrite.
5623 (mips_o32_store_return_value): Rewrite.
5624 (mips_o32_xfer_return_value): New function.
5625 (mips_xfer_register): Tweak debug print message. Allow for
5626 buf_offset when dumping the value transfered.
5627
5628 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5629
5630 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5631 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5632 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5633 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5634 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5635
5636 2002-08-14 Michael Snyder <msnyder@redhat.com>
5637
5638 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5639
5640 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5641
5642 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5643 register.
5644 (P): New macro to define a register as a pseudo register.
5645 (R, R4, R8, R16, FR32, R64, R0): Updated.
5646 (struct variant): Add new fields for number of pseudo registers
5647 and number of total registers.
5648 (tot_num_registers): New macro replacing....
5649 (num_registers): ...deleted macro.
5650 (num_registers): New function.
5651 (num_pseudo_registers): New function.
5652 (variants): Update all variants to intialize new fields correctly.
5653 Postpone initialization of number of pseudo regs and real regs.
5654 (init_variants): New function.
5655 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5656 registers offsets.
5657
5658 2002-08-19 David Carlton <carlton@math.stanford.edu>
5659
5660 * valops.c (search_struct_field): Change error message to treat
5661 return value of 0 from value_static_field as meaning that field is
5662 optimized out.
5663 (value_struct_elt_for_reference): Ditto.
5664 * values.c (value_static_field): Treat an unresolved location the
5665 same as a nonexistent symbol. Fix PR gdb/635.
5666 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5667 enclosed. Fix PR gdb/574.
5668 * MAINTAINERS: Add self to Write After Approval list.
5669
5670 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5671
5672 * mips-tdep.c (mips_xfer_register): New function.
5673 (mips_n32n64_extract_return_value): Rewrite.
5674 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5675 instead of deprecated_extract_return_value.
5676
5677 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5678
5679 * rs6000-tdep.c (TDEP): Delete macro.
5680 (branch_dest): Replace use of TDEP macro with its body.
5681 (rs6000_pop_frame): Ditto.
5682 (rs6000_push_arguments): Ditto.
5683 (rs6000_skip_trampoline_code): Ditto.
5684 (rs6000_frame_saved_pc): Ditto.
5685 (rs6000_frame_chain): Ditto.
5686 (rs6000_register_name): Ditto.
5687 (rs6000_register_byte): Ditto.
5688 (rs6000_register_raw_size): Ditto.
5689 (rs6000_register_virtual_type): Ditto.
5690 (rs6000_register_convertible): Ditto.
5691 (rs6000_convert_from_func_ptr_addr): Ditto.
5692
5693 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5694
5695 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5696 conditionally.
5697 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5698 MIPS_LINUX_JB_ELEMENT_SIZE.
5699 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5700 for MAX_REGISTER_RAW_SIZE arrays.
5701 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5702 MIPS_LINUX_JB_ELEMENT_SIZE.
5703
5704 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5705
5706 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5707
5708 2002-08-19 Aidan Skinner <aidan@velvet.net>
5709
5710 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5711 ada-valprint.c ada-tasks.c.
5712 (YYFILES): Add ada-exp.y.
5713 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5714 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5715 (ada-exp.tab.o): New target.
5716
5717 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5718
5719 * regcache.c (regcache_xfer_part): New function.
5720 (regcache_raw_read_part): New function.
5721 (regcache_raw_write_part): New function.
5722 (regcache_cooked_read_part): New function.
5723 (regcache_cooked_write_part): New function.
5724 * regcache.h (regcache_raw_read_part): Declare.
5725 (regcache_raw_write_part): Declare.
5726 (regcache_cooked_read_part): Declare.
5727 (regcache_cooked_write_part): Declare.
5728
5729 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5730
5731 * remote.c (remote_open_1): Add async_p.
5732 (remote_async_open_1): Delete.
5733 (open_remote_target): Delete.
5734 (remote_open, extended_remote_open): Update calls to remote_open_1.
5735 (remote_async_open, extended_remote_async_open): Call
5736 remote_open_1 instead of remote_async_open_1.
5737
5738 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5739
5740 * blockframe.c: Fix a few coding standard violations.
5741
5742 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5743
5744 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5745 here from ...
5746 * config/i386/tm-i386sco5.h: ... here. File removed.
5747 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5748
5749 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5750 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5751 (TM_FILE): Set to tm-i386.h.
5752 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5753 * config/i386/tm-i386v.h: Remove file.
5754 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5755 instead of "i386/tm-i386v.h".
5756 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5757 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5758 "i386/tm-i386v.h".
5759 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5760 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5761 "i386/tm-i386.h".
5762
5763 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5764
5765 * config/i386/nm-i386v.h: Add protection against
5766 multiple-inclusion.
5767 (i386_register_u_addr): Remove prototype.
5768 (register_u_addr): New prototype.
5769 (REGISTER_U_ADDR): Redefine accordingly.
5770 * i386v-nat.c: Improve several comments.
5771 (i386_register_u_addr): Change signature and rename to
5772 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5773 ubase variable.
5774
5775 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5776
5777 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5778 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5779 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5780 deprecated_extract_return_value.
5781 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5782 rename mips_o32o64_push_arguments.
5783 (mips_gdbarch_init): Update.
5784 (mips_extract_return_value): Delete.
5785 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5786 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5787 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5788 (mips_n32n64_extract_return_value): Clone
5789 mips_extract_return_value.
5790 (mips_store_return_value): Delete.
5791 (mips_o32_store_return_value): Clone mips_store_return_value.
5792 (mips_o64_store_return_value): Clone mips_store_return_value.
5793 (mips_eabi_store_return_value): Clone mips_store_return_value.
5794 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5795
5796 2002-08-18 Aidan Skinner <aidan@velvet.net>
5797
5798 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5799 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5800
5801 2002-08-18 Aidan Skinner <aidan@velvet.net>
5802
5803 * ada-lang.c: Run through gdb_indent.sh.
5804 * ada-lang.h: Run through gdb_indent.sh.
5805 * ada-tasks.c: Run through gdb_indent.sh.
5806 * ada-typeprint.c: Run through gdb_indent.sh.
5807 * ada-valprint.c: Run through gdb_indent.sh.
5808
5809 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5810
5811 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5812 ABI.
5813
5814 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5815
5816 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5817
5818 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5819 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5820
5821 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5822 write_register_gen instead of write_register_bytes.
5823
5824 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5825 i[3456]-*-osf1mk* configurations have been made obsolete.
5826 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5827 i[3456]86-*-osf1mk* hosts obsolete.
5828 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5829 targets obsolete.
5830 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5831 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5832 config/i386/i386m3.mt, config/i386/nm-m3.h,
5833 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5834 config/i386/i386mk.mh, config/i386/i386mk.mt,
5835 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5836 obsolete.
5837 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5838 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5839 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5840
5841 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5842
5843 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5844 (hppa_value_returned_from_stack): Declare.
5845 (hppa_extract_return_value): Declare.
5846 * config/pa/hppa.mt: New file.
5847 * configure.tgt: Recognize hppa*-*-*.
5848 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5849
5850 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5851
5852 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5853 comment.
5854
5855 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5856
5857 * top.c (gdb_rl_operate_and_get_next): Make sure
5858 operate-and-get-next functions correctly even when the history
5859 list is completely filled.
5860
5861 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5862
5863 * MAINTAINERS (Target Instruction Set Architectures): Rename
5864 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5865 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5866 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5867 already listed under Host/Native.
5868
5869 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5870 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5871 mips*-*-*.
5872
5873 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5874
5875 * config/ia64/ia64.mt: New file.
5876 * config/alpha/alpha.mt: New file.
5877 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5878 ia64-linux-gnu. Mention that ia64-elf is broken.
5879 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5880
5881 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5882
5883 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5884 generic_func_frame_valid instead of func_frame_valid.
5885
5886 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5887
5888 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5889 procfs appears to be broken when debugging on multi-processor
5890 machines. So enable software single stepping in order to avoid
5891 using the procfs interface to do next/step operations, using
5892 internal breakpoints instead.
5893
5894 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5895 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5896 make this pc address equal to the value it would have if the
5897 system stepping capability was used. Also set a new flag used
5898 to ensure that we don't readjust the PC one more time later.
5899
5900 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5901 address by DECR_PC_AFTER_BREAK when software single step is
5902 in use for this architecture, as this has already been taken
5903 care of in handle_inferior_event().
5904
5905 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5906
5907 * infrun.c (handle_inferior_event): Minor reformatting, to make
5908 a rather long condition expression easier to read.
5909
5910 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5911
5912 * Makefile.in (gdbtk.o): Move to end of file.
5913 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5914 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5915 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5916 (gdbtk-wrapper.o, gdbres.o): Ditto.
5917
5918 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5919
5920 * Makefile.in (copying.o): Separate out compile rule.
5921 (hpux-thread.o, procfs.o, signals.o): Ditto.
5922 (v850ice.o, z8k-tdep.o): Ditto.
5923 (tui-file.o): Move to TUI section.
5924 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5925 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5926
5927 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5928
5929 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5930 skip_trampoline_code, for better namespace-proofing.
5931
5932 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5933
5934 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5935
5936 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5937
5938 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5939
5940 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5941 signal, check whether we hit a breakpoint before checking for a
5942 single step breakpoint. Otherwise, GDB fails to notice that a
5943 breakpoint has been hit when stepping onto a breakpoint.
5944
5945 2002-08-16 Keith Seitz <keiths@redhat.com>
5946
5947 * gdb-events.sh (clear_gdb_event_hooks): New function.
5948 * gdb-events.c: Regenerate.
5949 * gdb-events.h: Regenerate.
5950
5951 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5952
5953 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5954 not_a_sw_breakpoint.
5955 * breakpoint.h (bpstat_stop_status): Add parameter names.
5956
5957 2002-08-16 Grace Sainsbury <graces@redhat.com>
5958
5959 * remote.c (remote_insert_hw_breakpoint)
5960 (remote_remove_hw_breakpoint): Fix calculation of length field
5961 for Z-packet.
5962
5963 2002-08-15 Michael Snyder <msnyder@redhat.com>
5964
5965 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5966 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5967 (supply_fpregset): Ditto.
5968
5969 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5970 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5971 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5972 (TARGET_READ_SP): Delete.
5973 (DO_REGISTERS_INFO): Delete.
5974 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5975 Delete.
5976 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5977 from macros to functions.
5978
5979 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5980 (mips_register_convertible, mips_register_convert_to_virtual,
5981 mips_register_convert_to_raw): Make static.
5982 (mips_read_sp): New function.
5983 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5984 (mips_do_registers_info): Make static.
5985 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5986 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5987 (mips_register_convert_from_type, mips_register_convert_to_type):
5988 New functions.
5989 (mips_gdbarch_init): Set up function_start_offset,
5990 register_virtual_size, pc_in_sigtramp.
5991
5992 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5993
5994 * infcmd.c (vector_info): New function.
5995 (_initialize_infcmd): Add command "info vector".
5996 (print_vector_info): New function.
5997
5998 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5999 * gdbarch.h, gdbarch.c: Regenerate.
6000
6001 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6002
6003 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
6004 ``print_all''. Only print vector registers when ``print_all''.
6005
6006 2002-08-15 Andrew Cagney <ac131313@redhat.com>
6007
6008 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
6009 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
6010
6011 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
6012 Add `args' parameter.
6013 * gdbarch.h, gdbarch.c: Regenerate.
6014
6015 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
6016
6017 * infcmd.c (float_info): Call print_float_info.
6018 (print_float_info): New function. By default, print the
6019 floating-point registers.
6020
6021 * arch-utils.h (default_print_float_info): Delete declaration.
6022 * arch-utils.c (default_print_float_info): Delete function.
6023
6024 2002-08-16 Mark Kettenis <kettenis@gnu.org>
6025
6026 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
6027 out define.
6028
6029 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
6030 FRAME.
6031
6032 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
6033 * configure.host: Make i[3456]86-*-aix host obsolete.
6034 * configure.tgt: Make i[3456]86-*-aix target obsolete.
6035 * config/i386/i386aix.mh, config/i386/i386aix.mt,
6036 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
6037 config/i386/xm-i386aix.h: Make files obsolete.
6038 * i386aix-nat.c: Make file obsolete.
6039 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
6040 (i386aix-nat.o): Make target obsolete.
6041
6042 * config/i386/nm-gnu.h: Removed.
6043 * config/i386/nm-i386gnu.h: New file.
6044 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
6045 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
6046 Moved here from ...
6047 * config/i386/tm-i386gnu.h: ... here. Removed.
6048 * config/i386/xm-i386gnu.h: Removed.
6049 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
6050 (NAT_FILE): Set to nm-i386gnu.h.
6051 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
6052 * i386-tdep.c: New file.
6053 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
6054 (i386gnu-tdep.o): Specify dependencies.
6055
6056 2002-08-15 Mark Kettenis <kettenis@gnu.org>
6057
6058 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
6059 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
6060 Adjust a few comments to reflect reality a bit closer.
6061 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
6062 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
6063 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
6064 target_insert_watchpoint, target_remove_watchpoint):
6065 Move defines to ...
6066 * config/i386/nm-i386sco5.h: ... here.
6067 (kernel_u_size): Add prototype. Improve a few comments and add
6068 protection against multiple inclusion.
6069
6070 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
6071 out define.
6072
6073 * uw-thread.c (SP_ARG0): Define if not already defined.
6074 * config/i386/tm-i386.h (SO_ARG0): Remove define.
6075
6076 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
6077
6078 * config/i386/tm-i386.h: Don't include "regcache.h".
6079
6080 * i387-tdep.h (i387_print_float_info): New prototype.
6081 * i387-tdep.c (print_i387_value, print_i387_ext,
6082 print_i387_status_word, print_i387_control_word): Add `struct
6083 ui_file *' argument and use it for output.
6084 (i387_print_float_info): Renamed from i387_float_info. Add
6085 `struct gdbarch *' and `struct ui_file *' arguments and use the
6086 latter for output.
6087 * i386-tdep.c: Include "i387-tdep.h".
6088 (i386_gdbarch_init): Set print_float_info.
6089 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
6090 (FLOAT_INFO): Remove define.
6091
6092 2002-08-13 Michael Snyder <msnyder@redhat.com>
6093
6094 * mips-tdep.c (mips_push_arguments): Rename to
6095 mips_eabi_push_arguments, and tune for EABI.
6096 (MIPS_REGS_HAVE_HOME_P): Delete.
6097 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
6098 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
6099 Delete references to mips_regs_have_home_p.
6100
6101 2002-08-14 Keith Seitz <keiths@redhat.com>
6102
6103 * Makefile.in (install-gdbtk): Create insight plugin directory.
6104 Install plugins.tcl file.
6105
6106 2002-08-14 Keith Seitz <keiths@redhat.com>
6107
6108 * configure.in: Move SUBDIRS to near top of the file so that
6109 --enable options may add things to it.
6110 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
6111 * configure: Regenerate.
6112
6113 2002-08-13 Michael Snyder <msnyder@redhat.com>
6114
6115 * mips-tdep.c (mips_o32o64_push_arguments): New function,
6116 cloned from mips_push_arguments, tuned for o32/o64 ABI.
6117 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
6118
6119 2002-08-13 Andrew Cagney <ac131313@redhat.com>
6120
6121 * vax-tdep.c (vax_get_saved_register): Delete function.
6122 (vax_gdbarch_init): Update.
6123 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
6124 (ns32k_gdbarch_init): Update.
6125 * alpha-tdep.c (alpha_get_saved_register): Delete function.
6126 (alpha_gdbarch_init): Update.
6127
6128 2002-08-13 Andrew Cagney <cagney@redhat.com>
6129
6130 * regcache.c (init_regcache_descr): Overallocate the
6131 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
6132 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
6133 nr_raw_registers.
6134 (set_register_cached): Add range checking assertions. Use
6135 current_regcache.
6136
6137 2002-08-13 Mark Kettenis <kettenis@gnu.org>
6138
6139 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
6140 numbers for MMX registers.
6141
6142 2002-08-13 Andrew Cagney <cagney@redhat.com>
6143
6144 * i386-tdep.c (i386_gdbarch_init): Use
6145 generic_unwind_get_saved_register.
6146
6147 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6148
6149 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6150 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6151 target vector.
6152 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6153 Delete. Add comment regarding this now-deleted target method.
6154
6155 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6156
6157 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6158 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6159 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6160 real PC and the page number (if it's within the memory bank window).
6161 (m68hc11_pseudo_register_write): Likewise when saving.
6162 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6163 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6164 (m68hc11_register_raw_size): And use 32-bit for it.
6165 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6166 16K memory bank is used by the prog; also use the virtual pc.
6167
6168 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6169
6170 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6171 (m68hc11_gdbarch_init): Install it in gdbarch.
6172 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6173 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6174 (MSYMBOL_SIZE): New for documentation.
6175 (insn_return_kind): Enum to specify how a function returns.
6176 (frame_extra_info): Cleanup and record the return mode.
6177 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6178 register in address computation.
6179 (m68hc11_get_return_insn): New to obtain the return instruction used
6180 by the function.
6181 (m68hc11_frame_init_saved_regs): Take into account the return
6182 instruction used by the function for far and interrupt functions.
6183 (m68hc11_init_extra_frame_info): Take into account page register.
6184 (m68hc11_frame_args_address): Adjust according to the return mode.
6185 (show_regs): Print page register only when it's used.
6186
6187 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6188
6189 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6190 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6191 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6192 registers.
6193 (m68hc11_register_raw_size): Likewise.
6194
6195 2002-08-13 Andrew Cagney <cagney@redhat.com>
6196
6197 * i386-tdep.c (i386_register_name): Handle mmx registers.
6198 (mmx_regnum_p): New function.
6199 (i386_mmx_names): New array.
6200 (mmx_num_regs): New variable.
6201 (i386_pseudo_register_read): New function.
6202 (i386_pseudo_register_write): New function.
6203 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6204
6205 * regcache.c (regcache_raw_read_unsigned): New function.
6206 (regcache_raw_read_signed): New function.
6207 * regcache.h (regcache_raw_read_unsigned): Declare.
6208 (regcache_raw_read_signed): Declare.
6209
6210 2002-08-13 Andrew Cagney <cagney@redhat.com>
6211
6212 * regcache.c (regcache_raw_read_as_address): Delete function.
6213 (regcache_cooked_read_signed): New function.
6214 (regcache_cooked_read_unsigned): New function.
6215 * regcache.h (regcache_cooked_read_signed): Declare.
6216 (regcache_cooked_read_unsigned): Declare.
6217 (regcache_raw_read_as_address): Delete declaration.
6218
6219 * blockframe.c (generic_read_register_dummy): Use
6220 regcache_cooked_read_unsigned.
6221 * i386-tdep.c (i386_extract_struct_value_address): Use
6222 regcache_cooked_read_unsigned.
6223
6224 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6225
6226 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6227 double sizes according to ELF ABI flags.
6228 (gdbarch_tdep): Record elf_flags.
6229
6230 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6231
6232 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6233 (m6812_prolog): They can appear in 68HC12 function prologue.
6234 (m68hc11_frame_chain): Cleanup.
6235
6236 2002-08-12 Andrew Cagney <cagney@redhat.com>
6237
6238 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6239 declarations.
6240 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6241 (i386_linux_register_raw_size): Delete function.
6242 (i386_linux_init_abi): Update.
6243 * i386-tdep.c (i386_register_raw_size): Delete function.
6244 (i386_register_byte): Delete function.
6245 (i386_gdbarch_init): Update.
6246 (i386_register_size): Delete array.
6247 (i386_register_offset): Delete array.
6248
6249 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6250 (REGISTER_RAW_SIZE): Delete macro.
6251 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6252 (REGISTER_BYTE): Delete macro.
6253
6254 2002-08-11 Aidan Skinner <aidan@velvet.net>
6255
6256 * ada-lang.c (ada_lookup_partial_symbol)
6257 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6258 prototype names so that grep ^func works properly.
6259
6260 * ada-lang.c (ada_array_element_type)
6261 (ada_lookup_partial_symbol): Fix typos in parameter list.
6262
6263 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6264 Fix prototype names so that grep ^func works properly.
6265
6266 2002-08-10 Andrew Cagney <cagney@redhat.com>
6267 Elena Zannoni <ezannoni@redhat.com>
6268 Martin M. Hunt <hunt@redhat.com>
6269
6270 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6271 (build_builtin_type_vec128i): Set the vector bit.
6272 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6273 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6274 (build_builtin_type_vec64): New function.
6275 (build_builtin_type_vec64i): New function.
6276 (build_gdbtypes): Initialize builtin_type_vec64 and
6277 builtin_type_vec64i.
6278
6279 2002-08-09 Andrew Cagney <cagney@redhat.com>
6280
6281 * regcache.c (regcache_dump): Compare the register offset
6282 with REGISTER_BYTE.
6283 * arch-utils.c (generic_register_byte): New function.
6284 * arch-utils.h (generic_register_byte): Declare.
6285 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6286 * gdbarch.h, gdbarch.c: Regenerate.
6287
6288 2002-08-09 Andrew Cagney <cagney@redhat.com>
6289
6290 * regcache.c: Include "gdbcmd.h"
6291 (_initialize_regcache): Add commands "maintenance print
6292 registers", "maintenance print raw-registers" and "maintenance
6293 print cooked-registers".
6294 (enum regcache_dump_what): Define.
6295 (dump_endian_bytes): New function.
6296 (regcache_dump): New function.
6297 (regcache_print): New function.
6298 (maintenance_print_registers): New function.
6299 (maintenance_print_raw_registers): New function.
6300 (maintenance_print_cooked_registers): New function.
6301 * Makefile.in (regcache.o): Update dependencies.
6302
6303 2002-08-09 Michael Snyder <msnyder@redhat.com>
6304
6305 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6306 (mips_push_arguments): Correct some comments. Use paddr_nz
6307 for printing addresses in debug output. Replace static
6308 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6309 (mips_n32n64_push_arguments): New function, cloned from
6310 mips_push_arguments and tuned for the n32/n64 ABI.
6311 (mips_push_register): Buffer needs dynamic allocation.
6312 (mips_print_register): Ditto.
6313 (do_gp_register_row): Ditto.
6314 (mips_store_return_value): Ditto.
6315 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6316
6317 2002-08-09 Don Howard <dhoward@redhat.com>
6318
6319 * memattr.c (mem_info_command): Print special case of upper bound
6320 as max CORE_ADDR + 1.
6321
6322 2002-08-08 Michael Snyder <msnyder@redhat.com>
6323
6324 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6325 returns structs by ref if they're too big to fit in two registers.
6326
6327 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6328
6329 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6330 saved regs value.
6331 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6332 mips_find_saved_regs().
6333 (mips_pop_frame): Likewise.
6334
6335 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6336
6337 * blockframe.c (frame_saved_regs_register_unwind): Revise
6338 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6339 frames are in use.
6340
6341 2002-08-09 Grace Sainsbury <graces@redhat.com>
6342
6343 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6344 T-packets; the 'a' is not taken as a register number.
6345 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6346 (remote_stopped_data_address): New functions; add to target
6347 vector.
6348 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6349 prototypes to match other implementations of this
6350 function. replace integer argument with pointer -- the length
6351 field in the Z-packet is the length of what is pointed to or 1 if
6352 pointer is null. Add to target vector.
6353 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6354 target vector.
6355
6356 From Mark Salter:
6357 * remote.c (remote_wait): Add support to extract optional
6358 watchpoint information from T-packet. Ignore unrecognized
6359 optional info in T-packet.
6360 (remote_async_wait): Ditto.
6361
6362 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6363
6364 * cli/cli-dump.c: Change fopen modes to use binary open modes
6365 as defined in include/fopen-bin.h throughout.
6366
6367 2002-08-08 Michael Snyder <msnyder@redhat.com>
6368
6369 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6370
6371 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6372
6373 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6374 assertion failure by returning early after a warning.
6375
6376 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6377
6378 * mips-tdep.c (mips_find_saved_regs): Make static.
6379 (mips_frame_init_saved_regs): New function.
6380 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6381 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6382 (mips_find_saved_regs): Delete declaration.
6383
6384 2002-08-08 Grace Sainsbury <graces@redhat.com>
6385
6386 * remote.c (remote_wait, remote_async_wait): Change
6387 thread_num from int to ULONGEST.
6388 (unpack_varlen_hex): Change result parameter from
6389 int * to ULONGEST *.
6390
6391 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6392
6393 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6394 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6395 powerpc*-*-*.
6396 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6397
6398 2002-08-08 Andrew Cagney <cagney@redhat.com>
6399
6400 * gcore.c (override_derive_stack_segment): Delete variable.
6401 (preempt_derive_stack_segment): Delete function.
6402 (derive_stack_segment): Delete function.
6403 (default_derive_stack_segment): Renamed to derive_stack_segment.
6404 (override_derive_heap_segment): Delete variable.
6405 (preempt_derive_heap_segment): Delete function.
6406 (derive_heap_segment): Delete function.
6407 (default_derive_heap_segment): Rename to derive_heap_segment.
6408
6409 2002-08-06 Michael Snyder <msnyder@redhat.com>
6410
6411 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6412 * mips-tdep.c (mips_EABI_use_struct_convention,
6413 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6414 New functions. (mips_use_struct_convention): Delete.
6415 (mips_gdbarch_init): set use_gdbarch_convention.
6416
6417 2002-08-06 Michael Snyder <msnyder@redhat.com>
6418
6419 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6420 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6421 mips_o32_reg_struct_has_addr): New functions.
6422 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6423
6424 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6425
6426 * regcache.c (pseudo_register): Delete function.
6427 (fetch_register): Delete function.
6428 (store_register): Delete function.
6429 (regcache_raw_read, legacy_read_register_gen): Use
6430 target_fetch_registers instead of fetch_register.
6431 (legacy_write_register_gen, regcache_raw_write): Use
6432 target_store_register instead of store_register.
6433 (write_register_bytes): Ditto.
6434
6435 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6436 (STORE_PSEUDO_REGISTER): Delete.
6437 * gdbarch.h, gdbarch.c: Regenerate.
6438
6439 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6440
6441 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6442 write dump file binary.
6443
6444 2002-08-05 Michael Snyder <msnyder@redhat.com>
6445
6446 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6447 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6448 (mips_gdbarch_init): Set N32 target to be mips64.
6449
6450 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6451
6452 * frame.c (find_saved_register): Break out of loop once saved
6453 register address is found. Don't mention sparc in loop comment
6454 anymore.
6455
6456 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6457
6458 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6459 mips_default_saved_regsize to 8.
6460
6461 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6462
6463 * gcore.c: Do not include <sys/procfs.h>.
6464 * Makefile.in (gcore.o): Update dependencies.
6465
6466 2002-08-06 Andrew Cagney <cagney@redhat.com>
6467
6468 * configure.tgt: Make arc-*-* obsolete.
6469 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6470 * MAINTAINERS: Make arc-elf obsolete.
6471 * arc-tdep.c: Make file obsolete.
6472 * config/arc/arc.mt: Ditto.
6473 * config/arc/tm-arc.h: Ditto.
6474
6475 2002-08-05 Theodore A. Roth <troth@verinet.com>
6476
6477 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6478
6479 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6480
6481 * mcore-tdep.c (mcore_gdbarch_init): Use
6482 generic_unwind_get_saved_register instead of
6483 generic_get_saved_register.
6484 * v850-tdep.c (v850_gdbarch_init): Ditto.
6485 * frv-tdep.c (frv_gdbarch_init): Ditto.
6486 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6487 * s390-tdep.c (s390_gdbarch_init): Ditto.
6488 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6489 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6490 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6491
6492 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6493
6494 * objfiles.h: Add missing #include "symfile.h"
6495
6496 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6497
6498 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6499
6500 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6501 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6502 of FIELD_BITSIZE.
6503
6504 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6505
6506 * NEWS: Cleanup and nitpick.
6507
6508 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6509
6510 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6511
6512 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6513
6514 * Makefile.in (gdbtk-bp.o): Update dependencies.
6515 (gdbtk-register.o): Ditto.
6516 (gdbtk-varobj.o): Ditto.
6517
6518 2002-08-03 Andrew Cagney <cagney@redhat.com>
6519
6520 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6521 m68hc11_fetch_pseudo_register.
6522 (m68hc11_pseudo_register_write): Replace
6523 m68hc11_store_pseudo_register.
6524 (m68hc11_gdbarch_init): Update.
6525
6526 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6527
6528 * gdbarch.sh: Include "gdb_string.h".
6529 * gdbarch.c: Regenerate.
6530
6531 * regcache.c: Include "gdb_string.h".
6532 * ax-general.c: Ditto.
6533 * varobj.c: Ditto.
6534 * std-regs.c: Ditto.
6535 * fbsd-proc.c: Ditto.
6536 * thread.c: Ditto.
6537
6538 * Makefile.in (regcache.o): Update dependencies.
6539 (thread.o, gdbarch.o): Ditto.
6540 (ax-general.o, gdbarch.o): Ditto.
6541 (varobj.o, std-regs.o): Ditto.
6542 (fbsd-proc.o): Specify dependencies.
6543
6544 2002-08-02 Andrew Cagney <cagney@redhat.com>
6545
6546 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6547 regnum.
6548 (regcache_cooked_write): Ditto.
6549
6550 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6551
6552 * regcache.c (regcache_cooked_read): New function.
6553 (regcache_cooked_write): New function.
6554 (read_register_gen): Rewrite using regcache_cooked_read.
6555 (write_register_gen): Rewrite using regcache_cooked_write.
6556
6557 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6558 Declare.
6559
6560 2002-08-02 Andrew Cagney <cagney@redhat.com>
6561
6562 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6563 Replace the architecture methods register_read and register_write.
6564 * gdbarch.h, gdbarch.c: Regenerate.
6565 * regcache.c (init_regcache_descr): Update.
6566 (read_register_gen): Update.
6567 (write_register_gen): Update.
6568 (supply_register): Update comment.
6569
6570 * sh-tdep.c (sh_gdbarch_init): Update.
6571 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6572 `regcache' and `gdbarch' parameters. Make `buffer' a void
6573 pointer. Update code.
6574 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6575 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6576 void pointer. Update code.
6577 (sh64_register_write): Delete.
6578 (sh4_register_read): Delete.
6579 (sh64_register_read): Delete.
6580 (sh4_register_write): Delete.
6581 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6582 void pointer, `to' parameter a void pointer.
6583 (sh_sh64_register_convert_to_raw): Ditto.
6584
6585 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6586
6587 * mips-tdep.c (mips_register_virtual_type): Use architecture
6588 invariant return values.
6589
6590 2002-08-01 Andrew Cagney <cagney@redhat.com>
6591
6592 * linux-proc.c: Include "gdb_string.h".
6593 * Makefile.in (linux-proc.o): Update dependency list.
6594
6595 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6596
6597 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6598 comment.
6599
6600 2002-08-01 Grace Sainsbury <graces@redhat.com>
6601
6602 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6603 to_insert_watchpoint, to_remove_watchpoint,
6604 to_stopped_by_watchpoint, to_stopped_data_address,
6605 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6606 target vecctor. Define their corresponding macros so they call
6607 them.
6608
6609 * target.c: Add default and debug versions of for
6610 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6611 to_insert_watchpoint, to_remove_watchpoint,
6612 to_stopped_by_watchpoint, to_stopped_data_address,
6613 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6614
6615 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6616
6617 * mips-tdep.c (mips_register_virtual_type): New function.
6618 (mips_gdbarch_init): Register mips_register_virtual_type()
6619 with gdbarch machinery.
6620 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6621 this file instead of tm-bigmips.h.
6622 (MIPS_REGSIZE): Delete this macro.
6623 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6624 multiarch version in mips-tdep.c will be found.
6625
6626 2002-08-01 Andrew Cagney <cagney@redhat.com>
6627
6628 * NEWS: Menion that CHILL has been made obsolete.
6629
6630 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6631 * stabsread.c (read_range_type): Ditto.
6632 * gdbtypes.h: Ditto.
6633 * language.c (binop_type_check): Ditto.
6634 (binop_result_type): Ditto.
6635 (integral_type): Ditto.
6636 (character_type): Ditto.
6637 (string_type): Ditto.
6638 (boolean_type): Ditto.
6639 (structured_type): Ditto.
6640 (lang_bool_type): Ditto.
6641 (binop_type_check): Ditto.
6642 * language.h (_LANG_chill): Ditto.
6643 * dwarfread.c (set_cu_language): Ditto.
6644 * dwarfread.c (CHILL_PRODUCER): Ditto.
6645 * dwarfread.c (handle_producer): Ditto.
6646 * expression.h (enum exp_opcode): Ditto.
6647 * eval.c: Ditto for comments.
6648 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6649 * expprint.c (print_subexp): Ditto.
6650 (print_subexp): Ditto.
6651 * valops.c (value_cast): Ditto.
6652 (search_struct_field): Ditto.
6653 * value.h (COERCE_VARYING_ARRAY): Ditto.
6654 * symfile.c (init_filename_language_table): Ditto.
6655 (add_psymbol_with_dem_name_to_list): Ditto.
6656 * valarith.c (value_binop): Ditto.
6657 (value_neg): Ditto.
6658 * valops.c (value_slice): Ditto.
6659 * symtab.h (union language_specific): Ditto.
6660 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6661 (SYMBOL_DEMANGLED_NAME): Ditto.
6662 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6663 * defs.h (enum language): Ditto.
6664 * symtab.c (got_symtab): Ditto.
6665 * utils.c (fprintf_symbol_filtered): Ditto.
6666
6667 * ch-typeprint.c: Make file obsolete.
6668 * ch-valprint.c: Make file obsolete.
6669 * ch-lang.h: Make file obsolete.
6670 * ch-exp.c: Make file obsolete.
6671 * ch-lang.c: Make file obsolete.
6672
6673 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6674 CHILL_LIB.
6675 (TARGET_FLAGS_TO_PASS): Ditto.
6676 (CHILLFLAGS): Obsolete.
6677 (CHILL): Obsolete.
6678 (CHILL_FOR_TARGET): Obsolete.
6679 (CHILL_LIB): Obsolete.
6680 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6681 ch-valprint.c.
6682 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6683 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6684 ch-lang.o.
6685 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6686 targets.
6687
6688 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6689
6690 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6691 This does not change anything at the moment, but will be helpful
6692 later when full Ada support is integrated.
6693
6694 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6695
6696 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6697 help message.
6698
6699 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6700
6701 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6702 and save it in a local variable. Use variable in later test.
6703
6704 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6705
6706 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6707 test. (Thanks to Daniel Jacobowitz.)
6708
6709 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6710
6711 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6712 (mips_abi_strings): Add "n64".
6713 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6714
6715 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6716
6717 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6718 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6719
6720 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6721
6722 * utils.c (host_pointer_to_address, address_to_host_pointer):
6723 Use gdb_assert() instead of explicit call to internal_error().
6724
6725 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6726
6727 * Makefile.in (rs6000-nat.o): Update dependencies.
6728
6729 From Nicholas Duffek:
6730 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6731 (aix-thread.o): New rule.
6732 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6733 * config/powerpc/aix432.mh: New file.
6734
6735 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6736
6737 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6738 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6739 (fetch_core_registers, ppc_linux_supply_gregset)
6740 (ppc_linux_supply_fpregset): New functions.
6741 (ppc_linux_regset_core_fns): New.
6742 (_initialize_ppc_linux_tdep): Call add_core_fns.
6743 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6744 and ppc_linux_supply_gregset.
6745 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6746 (supply_fpregset): Call ppc_linux_supply_fpregset.
6747 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6748 corelow.o.
6749 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6750
6751 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6752
6753 * symtab.c (lookup_symbol): Demangle before lowercasing.
6754
6755 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6756
6757 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6758 declaration.
6759 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6760 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6761 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6762 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6763 "gdb_string.h".
6764 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6765 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6766 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6767 (avr-tdep.o, mon960-rom.o): Ditto.
6768 (aout_stabs_gnu_h): Define.
6769 (symtab_h): Remove $(gdb_obstack_h).
6770
6771 2002-07-30 Jim Blandy <jimb@redhat.com>
6772
6773 Patch from David Carlton <carlton@math.stanford.edu>:
6774 * gdbinit.in: Move the `dir' commands that add GDB's own source
6775 directory to the search path to the end, so that the `gdb' source
6776 directory will be searched first.
6777
6778 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6779
6780 * gdb_obstack.h: New file.
6781 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6782 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6783 * objfiles.h: Include "gdb_obstack.h".
6784 * Makefile.in (gdb_obstack_h): Define.
6785 (symtab_h): Add $(gdb_obstack_h).
6786 (objfiles_h): Add $(gdb_obstack_h).
6787
6788 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6789 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6790 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6791 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6792 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6793 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6794 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6795 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6796
6797 * Makefile.in (bcache.o): Update dependencies.
6798 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6799 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6800 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6801 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6802 (stabsread.o, symfile.o, symmisc.o): Ditto.
6803 (symtab.o, typeprint.o, macroexp.o): Ditto.
6804 (macrotab.o, mdebugread.o): Ditto.
6805 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6806 (coff_ecoff_h, aout_aout64_h): Define.
6807 (aout_stabs_gnu_h, libaout_h): Define.
6808
6809 2002-07-29 Andrew Cagney <cagney@redhat.com>
6810
6811 * regcache.c (struct regcache_descr): Rename nr_registers to
6812 nr_cooked_registers. Revise comments describing the structure
6813 member fields.
6814 (init_regcache_descr): Update.
6815 (init_legacy_regcache_descr): Update.
6816 (read_register_gen, write_register_gen): When a cooked register in
6817 the raw register range, directly access the value from the raw
6818 register cache.
6819
6820 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6821
6822 * z8k-tdep.c: Do not include "obstack.h".
6823 * h8300-tdep.c, h8500-tdep.c: Ditto.
6824 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6825 * valprint.c, v850-tdep.c: Ditto.
6826 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6827 * mn10200-tdep.c: Ditto.
6828
6829 * Makefile.in (z8k-tdep.o): Update dependencies.
6830 (m68hc11-tdep.o, valprint.o): Ditto.
6831 (v850-tdep.o, d10v-tdep.o): Ditto.
6832 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6833 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6834 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6835 (sh_opc_h, gdb_sim_sh_h): Define.
6836 (elf_sh_h, elf_bfd_h): Define.
6837 (opcode_m68hc11_h): Define.
6838 (OPCODES_SRC, OPCODES_DIR): define.
6839 (OPCODES): Use $(OPCODES_DIR).
6840 (gdb_sim_d10v_h): Rename sim_d10v_h.
6841 (gdb_sim_arm_h): Rename sim_arm_h.
6842
6843 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6844
6845 * utils.c (host_pointer_to_address, address_to_host_pointer):
6846 Change internal_error() message to indicate function responsible
6847 for the error.
6848
6849 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6850
6851 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6852 calls to local_hex_string_custom().
6853
6854 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6855
6856 * irix5-nat.c: Move IRIX shared library support from here...
6857 * solib-irix.c: ...to here. Revised substantially to work with
6858 generic solib framework.
6859
6860 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6861 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6862 * mips-irix-tdep.c: New file.
6863
6864 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6865 (mips-irix-tdep.o, solib-irix.o): New rules.
6866 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6867 solib-irix.o.
6868 * config/mips/irix6.mt (TDEPFILES): Likewise.
6869 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6870
6871 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6872
6873 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6874 disabled (via ``#if 0'') includes.
6875
6876 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6877
6878 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6879 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6880 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6881 Add support for the fpscr register.
6882 * rs6000-nat.c (regmap, fetch_inferior_registers)
6883 (store_inferior_registers, fetch_core_registers): Likewise.
6884
6885 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6886
6887 * rs6000-nat.c (language.h): Include.
6888 (special_regs): Delete this array.
6889 (regmap): New function.
6890 (fetch_register, store_register): Use regmap() to map gdb
6891 register numbers to ptrace register numbers. Also, use
6892 outputs from regmap() to make decisions regarding type of
6893 ptrace() call to make. In particular, don't compare against
6894 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6895 (fetch_inferior_registers, store_inferior_registers): Where
6896 possible, obtain register numbers from tdep struct. Don't
6897 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6898 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6899 (LAST_UISA_SP_REGNUM): Delete.
6900
6901 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6902
6903 * rs6000-nat.c (ppc-tdep.h): Include.
6904 (fetch_registers, store_register, fetch_core_registers): Don't
6905 access registers[] directly. Instead, use supply_register() or
6906 regcache_collect() as appropriate.
6907 (find_toc_address): Format hex address with local_hex_string().
6908
6909 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6910
6911 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6912 bfd/elf32-frv.c.
6913
6914 2002-07-24 Tom Tromey <tromey@redhat.com>
6915
6916 * jv-exp.y: Marked all strings with _().
6917 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6918 internal_error.
6919 (MethodInvocation, CastExpression, parse_number, yyerror,
6920 java_type_from_name, push_expression_name, yylex): Typo fixes.
6921
6922 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6923
6924 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6925 (tee_file_flush, tee_file_write, tee_file_fputs)
6926 (tee_file_isatty): New.
6927 * ui-file.h (tee_file_new): Add prototype.
6928
6929 2002-07-24 Aidan Skinner <aidan@velvet.net>
6930
6931 * ada-lang.c: Change k&r style function definitions to prototyped
6932 form.
6933 * ada-typeprint.c: Change k&r style function definitions to prototyped
6934 form.
6935 * ada-valprint.c: Change k&r style function definitions to prototyped
6936 form.
6937
6938 2002-07-24 Andrew Cagney <cagney@redhat.com>
6939
6940 * README: Remove reference to remote-bug.
6941 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6942 remote-bug.c.
6943 (m88k-nat.o): Delete rule.
6944 (m88k-tdep.o): Delete rule.
6945 (remote-bug.o): Delete rule.
6946 * MAINTAINERS: Mark as obsolete.
6947 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6948 * m88k-tdep.c: Make file obsolete.
6949 * config/m88k/m88k.mh: Ditto.
6950 * config/m88k/delta88v4.mh: Ditto.
6951 * config/m88k/delta88v4.mt: Ditto.
6952 * config/m88k/delta88.mt: Ditto.
6953 * config/m88k/delta88.mh: Ditto.
6954 * remote-bug.c: Ditto.
6955 * config/m88k/tm-delta88.h: Ditto.
6956 * config/m88k/nm-delta88v4.h: Ditto.
6957 * config/m88k/xm-delta88.h: Ditto.
6958 * config/m88k/xm-dgux.h: Ditto.
6959 * config/m88k/tm-m88k.h: Ditto.
6960 * config/m88k/nm-m88k.h: Ditto.
6961 * config/m88k/tm-delta88v4.h: Ditto.
6962 * m88k-nat.c: Ditto.
6963 * cxux-nat.c: Ditto.
6964 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6965 and m88*-*-* obsolete.
6966 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6967 m88*-*-* obsolete.
6968
6969 2002-07-24 Andrew Cagney <cagney@redhat.com>
6970
6971 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6972 constant. Same for local pointer variables.
6973 (extract_signed_integer): Ditto.
6974 * defs.h (extract_unsigned_integer): Update.
6975 (extract_signed_integer): Update.
6976
6977 2002-07-24 Andrew Cagney <cagney@redhat.com>
6978
6979 * regcache.c (regcache_raw_write): Change buf parameter to a
6980 constant void pointer.
6981 (regcache_raw_read): Change buf parameter to a void pointer.
6982 (legacy_write_register_gen): Change myaddr parameter a constant
6983 void pointer.
6984 (supply_register): Change val parameter to a const void pointer.
6985 * regcache.h (regcache_raw_write): Update declaration.
6986 (regcache_raw_read): Update declaration.
6987 (supply_register): Update declaration.
6988
6989 2002-07-24 Tom Tromey <tromey@redhat.com>
6990
6991 * defs.h (gdb_readline_wrapper): Declare.
6992 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6993 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6994 * top.c (gdb_readline_wrapper): New function.
6995 (command_line_input): Use it.
6996
6997 2002-07-24 Andrew Cagney <cagney@redhat.com>
6998
6999 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
7000 regcache_read and regcache_write.
7001 (regcache_raw_read_as_address): Replace regcache_read_as_address.
7002 * regcache.c: Update.
7003 * sh-tdep.c (sh64_push_arguments): Update comment.
7004 (sh_pseudo_register_read): Update.
7005 (sh_pseudo_register_write): Update.
7006 (sh4_register_read): Update.
7007 (sh4_register_write): Update.
7008 (sh64_pseudo_register_read): Update.
7009 (sh64_pseudo_register_write): Update.
7010 (sh64_register_read): Update.
7011 (sh64_register_write): Update.
7012 * i386-tdep.c (i386_extract_return_value): Update.
7013 (i386_extract_struct_value_address): Update.
7014 (i386_extract_return_value): Update.
7015 * blockframe.c (generic_read_register_dummy): Update.
7016 (generic_call_dummy_register_unwind): Update
7017 * infrun.c (write_inferior_status_register): Update.
7018
7019 2002-07-23 Jim Blandy <jimb@redhat.com>
7020
7021 * parser-defs.h (expression_context_pc): Make this extern.
7022 (Thanks to Michael Snyder.)
7023
7024 2002-07-23 Andrew Cagney <ac131313@redhat.com>
7025
7026 GDB 5.2.1 released from 5.2 branch.
7027 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
7028 * README: Update to mention 5.2.1.
7029
7030 2002-07-23 Mark Salter <msalter@redhat.com>
7031
7032 * remote.c (remote_read_bytes): Fix check for error.
7033
7034 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7035
7036 * aix-thread.c (language.h): Include.
7037 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7038 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
7039 Print newlines at end of debug messages.
7040 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
7041 (pdc_write_data): Use local_hex_string() instead of %llx formats.
7042
7043 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7044
7045 * aix-thread.c (ppc-tdep.h): Include.
7046 (special_register_p): New function.
7047 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
7048 (store_regs_user_thread): Use register number information from
7049 gdbarch_tdep struct instead of hardcoded offsets relative to
7050 FIRST_UISA_SP_REGNUM.
7051 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
7052 special_register_p() instead of using FPLAST_REGNUM and
7053 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
7054 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
7055 will be MQ's register number.
7056
7057 2002-07-22 Michael Snyder <msnyder@redhat.com>
7058
7059 * aix-thread.c (ops): Rename to aix_thread_ops.
7060 (base_ops): Rename to base_target.
7061 (ops_attach): Rename to aix_thread_attach.
7062 (ops_detach): Rename to aix_thread_detach.
7063 (ops_resume): Rename to aix_thread_detach.
7064 (ops_wait): Rename to aix_thread_wait.
7065 (ops_kill): Rename to aix_thread_kill.
7066 (init_ops): Rename to init_aix_thread_ops.
7067 (ops_fetch_register): Rename to aix_thread_fetch_register.
7068 (ops_store_register): Rename to aix_thread_store_register.
7069 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
7070 (ops_thread_alive): Rename to aix_thread_thread_alive.
7071 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
7072 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
7073 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
7074 (fetch_regs_lib): Rename to fetch_regs_user_thread.
7075 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
7076 (store_regs_lib): Rename to store_regs_user_thread.
7077 (store_regs_kern): Rename to store_regs_kernel_thread.
7078
7079 2002-07-22 Michael Snyder <msnyder@redhat.com>
7080
7081 * aix-thread.c (ops_prepare_to_store): Eliminate.
7082 (init_ops): Don't initialize ops.prepare_to_store.
7083 (store_regs_kern): Pre-fetch register buffers from child,
7084 because some registers may not be in the cache. Copy
7085 regs from register cache only if they are cached.
7086 (store_regs_lib): Copy regs from register cache only
7087 if they are cached.
7088 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
7089 fill_gprs64): Ditto.
7090
7091 2002-07-22 Kevin Buettner <kevinb@redhat.com>
7092
7093 * aix-thread.c (gdb_assert.h): Include.
7094 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
7095 register sizes (from register cache) match size of buffer holding
7096 register data.
7097 (fill_sprs32): Change parameter types to match those in the ptrace()
7098 buffer.
7099 (store_regs_lib): Likewise, but for 32-bit temporary variables.
7100 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
7101
7102 2002-07-22 Michael Snyder <msnyder@redhat.com>
7103
7104 * aix-thread.c (supply_sprs64): Cosmetic change.
7105 (supply_sprs32): Cosmetic change.
7106 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
7107 (fill_sprs64): Use regcache_collect instead of read_register.
7108 (store_regs_lib): Use regcache_collect instead of
7109 read_register. Use fill_sprs32 instead of fill_sprs64,
7110 if debugging a 32-bit architecture.
7111 (store_regs_kern): Use fill_gprs64 etc. to pull the values
7112 out of the register cache, instead of passing a pointer into
7113 the register cache directly to ptrace. Use regcache_collect
7114 insteaad of read_register.
7115 (ops_prepare_to_store): Use target_read_registers instead
7116 of read_register_bytes.
7117
7118 2002-07-20 Aidan Skinner <aidan@velvet.net>
7119
7120 * MAINTAINERS: Add self under write after approval.
7121
7122 2002-07-20 Aidan Skinner <aidan@velvet.net>
7123
7124 * ada-tasks.c: Change k&r style function definitions to prototyped
7125 form.
7126
7127 2002-07-19 Andrew Cagney <ac131313@redhat.com>
7128
7129 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
7130 * x86-64-tdep.c: Include "objfiles.h".
7131 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
7132 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
7133
7134 2002-07-17 Michal Ludvig <michal@suse.cz>
7135
7136 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
7137 (update_context): Initialise cfa variable.
7138
7139 2002-07-17 Michael Snyder <msnyder@redhat.com>
7140
7141 * aix-thread.c: Shorten some long lines.
7142 Bring comments into line with code spec.
7143
7144 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7145
7146 * infrun.c: Re-indent using gdb_indent.sh.
7147
7148 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7149
7150 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7151 Leave the indentation temporarily untouched, to minimize the diffs.
7152
7153 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7154
7155 * stabsread.c: Make os9k sections of the code obsolete,
7156 for real this time.
7157 * stabsread.h: Make os9k sections of the code obsolete.
7158
7159 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7160
7161 * linux-low.c (regsets_store_inferior_registers): Add free()
7162 at the end of a loop to prevent memory leak.
7163 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7164 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7165 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7166 line a comment.
7167 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7168
7169 2002-07-17 Jim Blandy <jimb@redhat.com>
7170
7171 * macrocmd.c (info_macro_command): Remove newline from error
7172 message.
7173
7174 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7175
7176 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7177 (sh_gdbarch_init): Use it for sh-dsp.
7178
7179 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7180
7181 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7182 64-bit DWARF2 format.
7183
7184 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7185
7186 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7187 <sys/proc.h> when not available.
7188
7189 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7190
7191 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7192 * stabsread.c: Make os9k sections of the code obsolete.
7193 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7194 * config/i386/i386os9k.mt: Make file obsolete.
7195 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7196 (COMMON_OBS): Remove os9kread.o
7197 (SFILES): Remove os9kread.c.
7198 (os9kread.o, remote-os9k.o): Make target obsolete.
7199 * remote-os9k.c: Make file obsolete.
7200 * os9kread.c: Make file obsolete.
7201 * Makefile.in
7202
7203 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7204
7205 * NEWS: Mention that the FR30 has been made obsolete.
7206 * fr30-tdep.c: Make file obsolete.
7207 * config/fr30/tm-fr30.h: Ditto.
7208 * config/fr30/fr30.mt: Ditto.
7209 * configure.tgt: Make fr30-*-elf obsolete.
7210 * MAINTAINERS: Make fr30-elf obsolete.
7211
7212 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7213
7214 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7215 found is not inside a section.
7216
7217 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7218
7219 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7220 strerror().
7221 (pdc_realloc): Use xrealloc() instead of realloc().
7222
7223 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7224
7225 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7226 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7227 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7228 macros.
7229
7230 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7231
7232 * aix-thread.c (ptrace_check): Eliminate goto.
7233 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7234 problem.
7235
7236 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7237
7238 * aix-thread.c (gdbcmd.h): Include.
7239 (DEBUG, DBG, DBG2, dbg): Eliminate.
7240 (debug_aix_thread): New static global.
7241 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7242 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7243 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7244 invocations to DBG and DBG2 macros to test against
7245 ``debug_aix_thread'' and call fprintf_unfiltered().
7246 (_initialize_aix_thread): Add new command "set debug aix-thread".
7247
7248 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7249
7250 From Gerhard Tonn <TON@de.ibm.com>:
7251 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7252 instead of supply_register.
7253
7254 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7255
7256 * dwarf2cfi.c: Include "gdb_assert.h".
7257 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7258 non-NULL.
7259 (update_context): Do not use __func__. Add missing ``break''.
7260 (update_context): Do not use __func__.
7261
7262 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7263
7264 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7265 and its setting. Set gdbarch instruction printing functions
7266 directly. For non-rs6000 case use new function
7267 gdb_print_insn_powerpc.
7268 (gdb_print_insn_powerpc): New function.
7269
7270 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7271
7272 * NEWS: Mention that the d30v has been marked obsolete.
7273 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7274 * configure.tgt: Mark d30v-*-* as obsolete.
7275 * d30v-tdep.c: Mark file as obsolete.
7276 * config/d30v/d30v.mt: Ditto.
7277 * config/d30v/tm-d30v.h: Ditto.
7278
7279 2002-07-13 Aidan Skinner <aidan@velvet.net>
7280
7281 * ada-tasks.c (add_task_entry): replace calls to
7282 malloc() with xmalloc
7283 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7284
7285 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7286 ada_finish_decode_line_1, all_sals_for_line
7287 ada_breakpoint_rewrite): replace calls to free() with xfree()
7288
7289 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7290
7291 From Nicholas Duffek (with minor changes by Martin Hunt,
7292 Louis Hamilton, and Kevin Buettner):
7293 * aix-thread.c: New file.
7294
7295 2002-07-12 Petr Sorfa <petrs@caldera.com>
7296
7297 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7298 complaint for invalid attribute class or form.
7299 (read_func_scope): DW_AT_frame_base
7300 better handling of DW_AT_block*.
7301 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7302 better handling of DW_AT_block*.
7303 (read_common_block): DW_AT_location
7304 better handling of DW_AT_block*.
7305 (read_partial_die): DW_AT_location better handling
7306 of DW_AT_block*.
7307 (new_symbol): DW_AT_external better handling of
7308 DW_AT_block*. Proper initialization of variable
7309 "addr".
7310 (attr_form_is_block): New function that returns true
7311 if the attribute's form is of DW_FORM_block*.
7312
7313 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7314
7315 * valops.c (find_method_list): Remove comment about
7316 removed STATIC_MEMFUNCP argument.
7317 (value_find_oload_method_list): Likewise.
7318
7319 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7320
7321 From Nicholas Duffek:
7322 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7323 target_new_objfile_hook.
7324
7325 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7326
7327 From Nicholas Duffek:
7328 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7329 csect.
7330
7331 2002-07-12 Andrew Cagney <cagney@redhat.com>
7332
7333 * MAINTAINERS: Mention --enable-sim-build-warnings.
7334 (m68hc11-elf): Disable sim build warnings.
7335 (m32r-elf): Mark as broken obsolete candidate.
7336 (x86_64-linux-gnu): Mark as buildable with -Werror.
7337 (arm-elf): Change -w to ``,'' which enables warnings but not
7338 -Werror.
7339
7340 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7341
7342 * bcache.h: Update copyright.
7343 (struct bstring, struct bcache): Move definition to "bcache.c".
7344 Replaced by opaque declaration.
7345 (bcache_xfree): Replace free_bcache.
7346 (bcache_xmalloc, bcache_memory_used): Declare.
7347
7348 * bcache.c: Update copyright.
7349 (struct bstring, struct bcache): Moved to here from "bcache.h".
7350 Update comments.
7351 (bcache_xmalloc, bcache_memory_used): New functions.
7352 (bcache_xfree): Replace function free_bcache.
7353
7354 * Makefile.in (objfiles.o): Add $(bcache_h).
7355 (objfiles_h): Remove $(bcache_h).
7356 (symfile.o): Add $(bcache_h).
7357
7358 * symmisc.c: Update copyright.
7359 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7360 (print_objfile_statistics): Use bcache_memory_used.
7361
7362 * symfile.c: Include "bcache.h".
7363 (reread_symbols): Use bcache_xfree.
7364 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7365 (add_psymbol_to_list): Pass psymbol_cache by value.
7366 (add_psymbol_with_dem_name_to_list): Ditto.
7367
7368 * objfiles.h: Update copyright.
7369 (struct bcache): Declare opaque. Do not include "bcache.h".
7370 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7371 bcache'' pointers.
7372 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7373
7374 * objfiles.c: Include "bcache.h". Update copyright.
7375 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7376 macro_cache.
7377 (free_objfile): Use bcache_xfree.
7378
7379 2002-07-11 Grace Sainsbury <graces@redhat.com>
7380
7381 * monitor.c (monitor_fetch_register): Make name a constant.
7382 (monitor_store_register): Same.
7383
7384 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7385
7386 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7387 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7388 (finish_block) For non-function blocks, hash the symbol table. For
7389 function blocks, mark the symbol table as unhashed.
7390 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7391 (msymbol_hash_iw): Likewise.
7392 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7393 value.
7394 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7395 (lookup_minimal_symbol): Likewise for both.
7396 * symtab.h (struct block): Add `hashtable' flag. Comment the
7397 hashtable.
7398 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7399 (ALL_BLOCK_SYMBOLS): Update.
7400 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7401 (struct symbol): Add `hash_next' pointer.
7402 * symtab.c (lookup_block_symbol): Search using the hash table when
7403 possible.
7404 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7405 (search_symbols, find_addr_symbol): Likewise.
7406
7407 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7408 (read_dst_symtab): Likewise.
7409 * jv-lang.c (get_java_class_symtab): Likewise.
7410 * mdebugread.c: Include "gdb_assert.h".
7411 (shrink_block): Assert that the block being modified is not hashed.
7412 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7413 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7414 symbols.
7415 (dump_symtab): Recognize hashed blocks.
7416 * printcmd.c (print_frame_args): Assert that function blocks do not
7417 have hashed symbol tables.
7418 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7419 (fill_in_ada_prototype, debug_print_block): Likewise.
7420 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7421
7422 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7423
7424 * stack.c (print_frame): Use result of frame_address_in_block()
7425 instead of fi->pc when evaluating symbols.
7426 (backtrace_command_1): Ditto.
7427
7428 2002-07-11 Andrew Cagney <cagney@redhat.com>
7429
7430 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7431 Make static.
7432
7433 * arm-tdep.c (arm_register_name): Make return type constant.
7434
7435 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7436
7437 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7438 prototype.
7439 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7440 * s390-tdep.c (s390_fp_regnum): Ditto.
7441 (s390_read_fp): Ditto.
7442 (s390_pop_frame): Ditto.
7443 (_initialize_s390_tdep): Ditto.
7444 * remote.c (get_remote_state): Ditto.
7445 * procfs.c (mappingflags): Ditto.
7446 * memattr.c (_initialize_mem): Ditto.
7447 * mcore-tdep.c (mcore_pop_frame): Ditto.
7448 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7449 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7450 * language.c (set_case_str): Ditto.
7451 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7452 * frv-tdep.c (new_variant): Ditto.
7453 (frv_stopped_data_address): Ditto.
7454 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7455 (context_alloc): Ditto.
7456 (frame_state_alloc): Ditto.
7457 (unwind_tmp_obstack_init): Ditto.
7458 (unwind_tmp_obstack_free): Ditto.
7459 (cfi_read_fp): Ditto.
7460 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7461 (cris_pop_frame): Ditto.
7462 * c-lang.c (scanning_macro_expansion): Ditto.
7463 (finished_macro_expansion): Ditto.
7464 (c_preprocess_and_parse): Ditto.
7465 * gdbarch.sh: Ditto.
7466 * gdbarch.h, gdbarch.c: Regenerate.
7467 * config/mn10200/tm-mn10200.h: Adjust indentation.
7468 * target.c: Adjust indentation.
7469 * symtab.h: Adjust indentation.
7470 * stabsread.h: Adjust indentation.
7471 * remote-es.c: Adjust indentation.
7472 * os9kread.c: Adjust indentation.
7473
7474 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7475
7476 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7477 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7478
7479 2002-07-10 Grace Sainsbury <graces@redhat.com>
7480
7481 * NEWS: Mention m68k, mcore multi-arching.
7482 * MAINTAINERS: Change status of m68k, mcore to reflect
7483 multi-arching.
7484
7485 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7486
7487 * valops.c (find_overload_match): Free oload_syms.
7488
7489 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7490
7491 Define HAVE_SYS_PROC_H if sys/proc.h exists
7492 * configure.in: Add check for sys/proc.h
7493 * config.in: Regenerate.
7494 * configure: Regenerate.
7495
7496 2002-07-09 Grace Sainsbury <graces@redhat.com>
7497
7498 * config/m68k/tm-m68k.h: Remove macros wrapped in
7499 #if !GDB_MULTI_ARCH.
7500
7501 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7502
7503 * config.in, configure: Regenerate.
7504
7505 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7506
7507 * dwarf2cfi.c: Include "gcore.h".
7508 (execute_stack_op): Fix implementation of the
7509 DW_OP_deref and DW_OP_deref_size operators by letting do their
7510 lookup in the target.
7511
7512 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7513
7514 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7515 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7516 tdep->sc_sp_offset.
7517
7518 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7519
7520 Fix PR gdb/595, gdb/602
7521 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7522 Don't call value_cast, just read the vtable pointer; update comments
7523 to match.
7524
7525 2002-07-05 Grace Sainsbury <graces@redhat.com>
7526
7527 * config/mcore/tm-mcore.h: Remove file.
7528 * config/mcore/mcore.mt: Remove definition of TM_FILE
7529 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7530
7531 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7532
7533 * i386bsd-tdep.c: Include "gdb_string.h".
7534
7535 2002-07-04 Grace Sainsbury <graces@redhat.com>
7536
7537 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7538 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7539 mcore-tdep.
7540 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7541 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7542 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7543 (RETVAL_REGNUM): Move macros from tm-mcore.h
7544 (mcore_reg_struct_has_addr): New function.
7545 (mcore_gdbarch_init): Added initializations for the macros removed
7546 from tm-mcore.h.
7547
7548 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7549
7550 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7551 traditonal string branding within the ELF header.
7552
7553 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7554
7555 * symtab.c (remove_params): New function.
7556 (make_symbol_overload_list): Use it instead of cplus_demangle.
7557 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7558
7559 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7560
7561 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7562
7563 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7564 New variables.
7565 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7566 and tdep->sigtramp_end.
7567 * i386obsd-nat.c: New file.
7568 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7569
7570 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7571 Don't call get_current_frame().
7572
7573 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7574
7575 * i386-nat.c (child_post_startup_inferior): New function
7576 calling i386_cleanup_dregs if
7577 I386_USE_GENERIC_WATCHPOINTS is defined.
7578 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7579 conditional to acknowledge that i386-nat.c has its
7580 own child_post_startup_inferior function.
7581
7582 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7583
7584 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7585 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7586 instead of MAX_REGISTER_RAW_SIZE.
7587 (i386_extract_return_value, i386_extract_struct_value_address):
7588 Convert to use regcache.
7589 (i386_gdbarch_init): Set max_register_raw_size and
7590 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7591 Set extract_return_value and extract_struct_value_address instead
7592 of their deprecated variants.
7593
7594 Convert i386 target to generic dummy frames.
7595 * i386-tdep.c: Include "symfile.h".
7596 (i386_frameless_signal_p): Consider a function to be frameless if
7597 the pc points at the first instruction of the function.
7598 (i386_frame_chain): Handle (generic) call dummies.
7599 (i386_frame_saved_pc): Likewise.
7600 (i386_frame_init_saved_regs): Remove code dealing with call
7601 dummies on the stack.
7602 (i386_push_dummy_frame): Removed.
7603 (i386_call_dummy_words): Removed.
7604 (i386_fix_call_dummy): Removed.
7605 (i386_push_return_address): New function.
7606 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7607 parameter, and don't call get_current_frame.
7608 (i386_pop_frame): New function.
7609 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7610 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7611 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7612 call_dummy_length to 0, set call_dummy_words to NULL, set
7613 sizeof_call_dummy_words to 0, set fix_call_dummy to
7614 generic_fix_call_dummy, set pc_in_call_dummy to
7615 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7616 generic_push_dummy_frame, set push_return_address to
7617 i386_push_return_address and set frame_chain_valid to
7618 generic_file_frame_chain_valid.
7619
7620 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7621
7622 * gdbarch.sh (struct regcache): Add opaque declaration.
7623 (EXTRACT_RETURN_VALUE): New architecture method.
7624 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7625 * gdbarch.h, gdbarch.c: Regenerate.
7626 * arch-utils.c (legacy_extract_return_value): New function.
7627 * arch-utils.h (legacy_extract_return_value): Declare.
7628 * values.c (value_being_returned): Re-enable code handling
7629 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7630 deprecated_grub_regcache_for_registers call to block handling
7631 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7632 (EXTRACT_RETURN_VALUE): Do not define.
7633
7634 2002-07-03 Grace Sainsbury <graces@redhat.com>
7635
7636 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7637 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7638 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7639 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7640 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7641 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7642 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7643 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7644 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7645 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7646 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7647 argument so the function fits the prototype in the architecture
7648 vector.
7649 (mcore_pop_frame): Remove argument so the function fits the
7650 prototype. Use get_current_frame instead of the argument.
7651 (mcore_push_arguments): Change type of struct_return so the
7652 function can be used in the architecture vector.
7653 (mcore_store_struct_return): Add.
7654 (mcore_frame_init_saved_regs): Add.
7655 (mcore_gdbarch_init): Add function calls to replace the macros
7656 removed from tm-mcore.h
7657
7658 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7659
7660 * infcmd.c (print_return_value): Remove compatibility code calling
7661 deprecated_grub_regcache_for_registers.
7662
7663 * values.c: Include "regcache.h".
7664 (value_being_returned): Update. Use
7665 deprecated_grub_regcache_for_registers to extract the register
7666 buffer address.
7667 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7668 ``struct regcache''.
7669 * Makefile.in (values.o): Add dependency on $(regcache_h).
7670
7671 * inferior.h (run_stack_dummy): Change type of second parameter to
7672 a ``struct regcache''.
7673 * valops.c (hand_function_call): Change type of retbuf to ``struct
7674 regcache''. Allocate using regcache_xmalloc, clean using
7675 make_cleanup_regcache_xfree.
7676 * infcmd.c (run_stack_dummy): Update. Use
7677 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7678
7679 * regcache.c (do_regcache_xfree): New function.
7680 (make_cleanup_regcache_xfree): New function.
7681 * regcache.h (make_cleanup_regcache_xfree): Declare.
7682
7683 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7684
7685 * event-top.c (command_line_handler): Don't read past
7686 beginning of buffer.
7687
7688 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7689
7690 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7691 struct frame_id.
7692 (varobj_create): Store frame_id for root.
7693 (varobj_gen_name): Use xasprintf.
7694 (varobj_update): Save and restore frame using get_frame_id() and
7695 frame_find_by_id().
7696 (create_child): Use xasprintf.
7697 (new_root_variable): Initialize frame_id.
7698 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7699 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7700 to prevent memory leak.
7701
7702 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7703
7704 * valops.c (hand_function_call): Move declaration of retbuf to
7705 start of function, allocate using malloc, add a cleanup but before
7706 the inf_status cleanup, cleanup the buffer. Rename local variable
7707 old_chain to inf_status_cleanup.
7708
7709 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7710
7711 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7712
7713 * cli/cli-decode.c (cmd_func_p): New function.
7714 (cmd_func): New function.
7715
7716 * command.h: Add cmd_func() and cmd_func_p().
7717
7718 2002-07-03 Grace Sainsbury <graces@redhat.com>
7719
7720 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7721 (REGISTER_SIZE): Remove.
7722 (MAX_REGISTER_RAW_SIZE): Remove.
7723 (REGISTER_VIRTUAL_TYPE): Remove.
7724 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7725 (REGISTER_NAME): Remove.
7726 (USE_GENERIC_DUMMY_FRAMES): Remove.
7727 (CALL_DUMMY): Remove.
7728 (CALL_DUMMY_START_OFFSET): Remove.
7729 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7730 (CALL_DUMMY_LOCATION): Remove.
7731 (FIX_CALL_DUMMY): Remove.
7732 (CALL_DUMMY_ADDRESS): Remove.
7733 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7734 (SAVE_DUMMY_FRAME_TOS): Remove.
7735 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7736 (mcore_register_virtual_type): New function.
7737 (mcore_register_byte): New function.
7738 (mcore_register_size): New function.
7739 (mcore_register_name): New function.
7740 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7741 macros removed from tm-mcore.h.
7742 (mcore_dump_tdep): Add.
7743 (_initialize_mcore_tdep): Add gdbarch_register call.
7744
7745 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7746
7747 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7748 frameless_look_for_prologue, such that we actually call this
7749 function.
7750
7751 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7752
7753 * frame.h (frame_address_in_block): New function.
7754
7755 * blockframe.c (frame_address_in_block): New function extracted
7756 from get_frame_block().
7757 (get_frame_block): Use frame_address_in_block().
7758 (block_innermost_frame): Use frame_address_in_block() to match
7759 the frame pc address against the block boundaries rather than
7760 the frame pc directly. This prevents a failure when a frame pc
7761 is actually a return-address pointing immediately after the end
7762 of the given block.
7763
7764 2002-07-02 Grace Sainsbury <graces@redhat.com>
7765
7766 * MAINTAINERS: Add self under write after approval.
7767
7768 2002-07-02 Grace Sainsbury <graces@redhat.com>
7769
7770 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7771 used in architecture vector. The default is
7772 m68k_local_breakpoint_from_pc.
7773 (m68k_local_breakpoint_from_pc): Add.
7774 (enum): Add register numbers from tm-m68k.h.
7775 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7776 vector.
7777 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7778 GDB_MULTI_ARCH_PARTIAL.
7779 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7780 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7781 m68k-tdep.c.
7782 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7783 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7784 to enum in m68k-tdep.c
7785
7786 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7787
7788 * solib-osf.c (open_map): Compute the list of shared libraries
7789 loaded by the inferior, rather than the list of libraries loaded
7790 by GDB itself. Otherwise, GDB ends up reading the symbols from
7791 the wrong shared libraries...
7792
7793 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7794
7795 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7796 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7797 macros.
7798 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7799 Remove functions.
7800 (FRAMELESS_SIGNAL): Remove function.
7801 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7802 i386_linux_saved_pc_after_call): Removed.
7803 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7804 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7805 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7806
7807 * i386-tdep.c (i386_frameless_signal_p): New function.
7808 (i386_frame_chain): Deal with frameless signals.
7809 (i386_sigtramp_saved_sp): New function.
7810 (i386_frame_saved_pc): Deal with frameless signals.
7811 (i386_saved_pc_after_call): Make sure the correct value is
7812 returned just after entry into a sigtramp.
7813 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7814 i386fbsd4_sc_sp_offset): New variables.
7815 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7816 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7817 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7818 similiar to what we already did for sc_pc_offset.
7819 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7820 tdep->sc_sp_offset.
7821
7822 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7823
7824 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7825
7826 * config/i386/tm-x86-64linux.h: New.
7827 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7828 definitions.
7829 * config/i386/nm-x86-64.h: Rename to ...
7830 * config/i386/nm-x86-64linux.h: ... this one.
7831 * config/i386/x86-64linux.mh: Reflect the above change.
7832
7833 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7834
7835 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7836 with sigcontext_addr. Add sc_sp_offset.
7837 (i386bsd_sigtramp_saved_pc): Remove prototype.
7838 (i386bsd_sicontext_addr): Add prototype.
7839 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7840 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7841 (i386_svr4_sigtramp_saved_pc): Removed.
7842 (i386_svr4_sigcontext_addr): New function.
7843 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7844 Initialize tdep->sigcontext_addr instead. Initialize
7845 tdep->sc_pc_offset and tdep->sc_sp_offset.
7846 (i386_gdbarch_init): Likewise.
7847 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7848 any more.
7849 (i386bsd_sigtramp_saved_pc): Remove function.
7850 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7851 Initialize tdep->sigcontext_addr instead. Initialize
7852 tdep->sc_pc_offset.
7853 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7854 of tdep->sigtramp_saved_pc.
7855 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7856 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7857 instead.
7858
7859 * i386-tdep.c (i386_frameless_function_invocation,
7860 i386_frame_num_args, i386_frame_init_saved_regs,
7861 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7862 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7863 i386_extract_return_value, i386_store_return_value,
7864 i386_extract_struct_value_address, i386_register_virtual_type,
7865 i386_register_convertible, i386_register_convert_to_virtual,
7866 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7867 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7868 static.
7869
7870 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7871
7872 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7873
7874 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7875 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7876 this macro. Include "value.h".
7877
7878 2002-06-30 Aidan Skinner <aidan@velvet.net>
7879
7880 * ada-exp.tab.c: remove as it's a generated file
7881 * ada-lex.c: remove as it's a generated file
7882
7883 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7884
7885 * config/i386/tm-i386.h (struct frame_info, struct
7886 frame_saved_regs, struct value, struct type): Remove forward
7887 declarations.
7888
7889 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7890 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7891 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7892 (FILL_FPXREGSET): Define.
7893
7894 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7895
7896 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7897 i[3456]86-*-netbsd* case.
7898 * config/i386/tm-obsd.h: Removed.
7899 * config/i386/obsd.mt: Removed.
7900 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7901 core-aout.o.
7902 (MH_CFLAGS): Add -DYYDEBUG=0.
7903
7904 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7905 i386nbsd_sc_pc_offset on OpenBSD too.
7906
7907 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7908 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7909 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7910 define.
7911 * i386bsd-tdep.c: Include "arch-utils.h".
7912 (i386bsd_aout_in_solib_call_trampoline): New function.
7913 (i386bsd_init_abi): Set in_solib_call_trampoline to
7914 i386bsd_aout_in_solib_call_trampoline.
7915 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7916 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7917
7918 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7919
7920 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7921 (struct obstack, struct bcache): Add opaque declarations.
7922 * Makefile.in (macrotab_h): Update
7923
7924 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7925
7926 * blockframe.c (generic_find_dummy_frame): Change return type to
7927 ``struct regcache''.
7928 (struct dummy_frame): Replace field ``registers'' with regcache, a
7929 struct regcache object.
7930 (generic_find_dummy_frame): Update.
7931 (generic_push_dummy_frame): Update. Use regcache_xfree,
7932 regcache_xmalloc and regcache_cpy.
7933 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7934 regcache_xfree.
7935 (deprecated_generic_find_dummy_frame): Update.
7936 (generic_read_register_dummy): Update. Use
7937 regcache_read_as_address.
7938 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7939 (generic_get_saved_register): Update. Use regcache_read.
7940
7941 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7942
7943 * Makefile.in (objfiles_h): Add $(bcache_h).
7944 * objfiles.h: Include "bcache.h".
7945
7946 * Makefile.in (symtab_h): Remove $(bcache_h).
7947 * symtab.h: Do not include "bcache.h".
7948
7949 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7950
7951 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7952 generic_func_frame_chain_valid.
7953
7954 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7955
7956 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7957 * config/i386/tm-fbsd.h: Likewise.
7958
7959 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7960
7961 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7962 generic_unwind_get_saved_register.
7963
7964 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7965
7966 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7967 * regcache.c (supply_register): Add missing argument to
7968 register_buffer call.
7969
7970 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7971
7972 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7973 Solaris /bin/grep does not not like it. From Peter Schauer.
7974
7975 2002-06-26 Tom Tromey <tromey@redhat.com>
7976
7977 * command.h (add_setshow_cmd): Declare.
7978 (add_setshow_cmd_full): Declare.
7979 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7980 returns void. Use add_setshow_cmd_full.
7981 (add_setshow_cmd_full): New function.
7982 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7983 (add_setshow_boolean_cmd): Likewise.
7984
7985 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7986
7987 * config/vax/tm-vax.h: Protect from multiple inclusion.
7988 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7989 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7990 * config/vax/tm-vaxbsd.h: ...here. New file.
7991 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7992
7993 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7994
7995 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7996 (BELIEVE_PCC_PROMOTION): Remove.
7997 (AP_REGNUM): Move to...
7998 * config/vax/nm-vax.h: ...here.
7999 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
8000 (vax_breakpoint_from_pc): New function.
8001 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
8002 and gdbarch_believe_pcc_promotion.
8003
8004 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
8005
8006 * Makefile.in (vax_tdep_h): Define.
8007 (vax-tdep.o): Use $(vax_tdep_h).
8008 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
8009 (vax_dump_tdep): New function.
8010 (_initialize_vax_tdep): Register vax_dump_tdep.
8011 * vax-tdep.h: Include osabi.h.
8012 (struct gdbarch_tdep): New.
8013
8014 2002-06-26 Andrew Cagney <cagney@redhat.com>
8015
8016 * frame.h (deprecated_generic_find_dummy_frame): Rename
8017 generic_find_dummy_frame.
8018 * blockframe.c (generic_find_dummy_frame): Make static.
8019 (deprecated_generic_find_dummy_frame): New function.
8020 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
8021 generic_find_dummy_frame with deprecated_find_dummy_frame.
8022 (sh64_nofp_frame_init_saved_regs): Ditto.
8023 (sh_fp_frame_init_saved_regs): Ditto.
8024 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
8025 (s390_frame_chain): Ditto.
8026 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
8027
8028 2002-06-26 Grace Sainsbury <graces@redhat.com>
8029
8030 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
8031 gdbarch vector are at the top.
8032 (NUM_REGS): Remove.
8033 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
8034 (FRAME_ARGS_ADDRESS): Remove.
8035 (FRAME_LOCALS_ADDRESS): Remove.
8036 (FRAME_NUM_ARGS): Remove.
8037 (FRAME_ARGS_SKIP): Remove.
8038 * m68k-tdep.c (enum): Add eumeration of special register numbers.
8039 (m68k_gdbarch_init): Add gdbarch initializations for macros
8040 undefined in tm-m68k.h
8041
8042 2002-06-26 Grace Sainsbury <graces@redhat.com>
8043
8044 * monitor.h: Add the function regname to monitor_ops
8045 structure. This way NUM_REGS does not have to be a constant.
8046 * monitor.c (monitor_fetch_register): Added support for regname
8047 function. The function is called if the array regnames is NULL.
8048 (monitor_store_register): Same.
8049 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
8050 regnames array.
8051 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
8052 cpu32bug_cmds.regname to point to new function.
8053 * abug-rom.c (abug_regname): Same as above.
8054 (init_abug_cmds): Same.
8055 * dbug-rom.c (dbug_regname): Same as above.
8056 (init_dbug_cmds): Same.
8057 * remote-est.c (est_regname): Same.
8058 (init_est_cmds): Same.
8059 * rom68k-rom.c (rom68k_regname): Same.
8060 (init_rom68k_cmds): Same.
8061
8062 2002-06-25 Tom Tromey <tromey@redhat.com>
8063
8064 * breakpoint.c (delete_command): Don't repeat `delete' commands.
8065
8066 2002-06-25 Andrew Cagney <cagney@redhat.com>
8067
8068 * infrun.c (stop_registers): Change variable's type to ``struct
8069 regcache'''.
8070 (xmalloc_inferior_status): Delete function.
8071 (free_inferior_status): Delete function.
8072 (normal_stop): Use regcache_cpy.
8073 (struct inferior_status): Change type of fields ``stop_registers''
8074 and ``registers'' to ``struct regcache''.
8075 (write_inferior_status_register): Use regcache_write.
8076 (save_inferior_status): Instead of calling
8077 xmalloc_inferior_status, allocate the inf_status buffer directly.
8078 Use regcache_dup_no_passthrough and regcache_dup to save the
8079 buffers.
8080 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
8081 Replace the stop_registers regcache instead of overriding it. Use
8082 regcache_xfree. Instead of calling free_inferior_status, xfree
8083 the buffer directly.
8084 (discard_inferior_status): Use regcache_xfree. Instead of calling
8085 free_inferior_status, xfree the buffer directly.
8086 (build_infrun): Use regcache_xmalloc.
8087 (_initialize_infrun): Delete redundant call to build_infrun.
8088
8089 * Makefile.in (infcmd.o): Add $(regcache_h).
8090
8091 * infcmd.c: Include "regcache.h".
8092 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
8093 obtain the address of `stop_registers' register buffer.
8094 (print_return_value): Ditto.
8095
8096 * inferior.h (struct regcache): Add opaque declaration.
8097 (stop_registers): Change variable's declared type to ``struct
8098 regcache''.
8099
8100 2002-06-24 Tom Tromey <tromey@redhat.com>
8101
8102 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
8103 * target.c (initialize_targets): Fixed typo in
8104 trust-readonly-sections `show' documentation.
8105
8106 * main.c: Marked all strings with _().
8107
8108 2002-06-24 Don Howard <dhoward@redhat.com>
8109
8110 * memattr.c (create_mem_region): Treat hi == 0 as a special case
8111 that means max CORE_ADDR+1.
8112 (lookup_mem_region): Ditto.
8113 (mem_info_command): Ditto.
8114
8115 2002-06-24 Grace Sainsbury <graces@redhat.com>
8116
8117 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
8118 (REGISTER_BYTES_OK): Remove.
8119 (REGISTER_BYTES): Remove.
8120 (STORE_STRUCT_RETURN): Remove.
8121 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
8122 (STORE_RETURN_VALUE): Remove.
8123 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
8124 (FRAME_CHAIN): Remove.
8125 (FRAMELESS_FUNCTION_INVOCATION): Remove.
8126 (FRAME_SAVED_PC): Remove.
8127 * m68k-tdep.c (m68k_register_bytes_ok):Add.
8128 (m68k_store_struct_return): Add.
8129 (m68k_deprecated_extract_return_value): Add.
8130 (m68k_deprecated_extract_struct_value_address): Add.
8131 (m68k_store_return_value): Add.
8132 (m68k_frame_chain): Add.
8133 (m68k_frameless_function_invocation): Add.
8134 (m68k_frame_saved_pc): Add.
8135 (m68k_gdbarch_init): added set_gdbarch calls for new
8136 functions and deleted macros.
8137
8138 2002-06-23 Tom Tromey <tromey@redhat.com>
8139
8140 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
8141 (ALLDEPFILES): Likewise.
8142 (udiheaders): Removed.
8143 (udip2soc.o): Likewise.
8144 (udi2go32.o): Likewise.
8145 (udr.o): Likewise.
8146 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8147
8148 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8149
8150 * infrun.c (_initialize_infrun): Delete unnecessary call to
8151 build_infrun.
8152
8153 * regcache.h: Update comments describing the regcache_cpy family
8154 of functions.
8155 (regcache_save, regcache_restore): Delete declaration.
8156 (regcache_save_no_passthrough): Delete declaration.
8157 (regcache_restore_no_passthrough): Delete declaration.
8158 * regcache.c (regcache_save): Delete function.
8159 (regcache_save_no_passthrough): Delete function.
8160 (regcache_restore): Delete function.
8161 (regcache_restore_no_passthrough): Delete function.
8162
8163 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8164
8165 * config/m68k/tm-m68k.h: Fix typo.
8166 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8167 (m68k_frame_init_saved_regs): Declare.
8168
8169 2002-06-21 Jim Blandy <jimb@redhat.com>
8170
8171 Remove some vestiges of Harris 88k support.
8172 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8173 register numbering quirk.
8174 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8175 odd symbols occurring in Harris 88k ELF targets.
8176
8177 2002-06-21 Tom Tromey <tromey@redhat.com>
8178
8179 * gdb_locale.h: New file.
8180 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8181 (defs_h): Added gdb_locale.h.
8182 * configure, config.in: Rebuilt.
8183 * configure.in (PACKAGE): Define.
8184 * defs.h: Include gdb_locale.h.
8185 * main.c (captured_main): Call setlocale, bindtextdomain,
8186 textdomain.
8187
8188 2002-06-21 Dave Brolley <brolley@redhat.com>
8189
8190 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8191 * config/frv/frv.mt: New file.
8192 * config/frv/tm-frv.h: New file.
8193 * configure.tgt: Support frv-*-*.
8194 * Makefile.in (frv-tdep.o): New target.
8195 * frv-tdep.c: New file.
8196 * NEWS: Mention frv.
8197
8198 2002-06-21 Dave Brolley <brolley@redhat.com>
8199
8200 * MAINTAINERS: Add self to "Write After Approval" list.
8201
8202 2002-06-21 Grace Sainsbury <graces@redhat.com>
8203
8204 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8205 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8206 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8207 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8208 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8209
8210 * m68k-tdep.c: Include arch-utils.h
8211 (m68k_register_raw_size): Add.
8212 (m68k_register_virtual_size): Add.
8213 (m68k_register_virtual_type): Add.
8214 (m68k_register_name): Add.
8215 (m68k_stack_align): Add.
8216 (m68k_register_byte): Add.
8217 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8218 tm-m68k.h.
8219
8220 2002-06-21 Grace Sainsbury <graces@redhat.com>
8221
8222 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8223 m68k_find_saved_regs.
8224 (m68k_pop_frame): Removed saved_regs structure, and replaced
8225 references to it with frame->saved_regs.
8226 (m68k_gdbarch_init): Added function calls to initialize the
8227 gdbarch structure.
8228 (m68k_fix_call_dummy): Add.
8229 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8230 (CALL_DUMMY): Remove.
8231 (CALL_DUMMY_LENGTH): Remove.
8232 (CALL_DUMMY_START_OFFSET): Remove.
8233 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8234 (FIX_CALL_DUMMY): Remove.
8235 (PUSH_DUMMY_FRAME): Remove.
8236 (POP_FRAME): Remove.
8237
8238 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8239
8240 * parse.c (parse_fprintf): New function used to avoid calls to
8241 fprintf in bison parser generated debug code.
8242 * parser-defs.h: Declaration of new parse_fprintf function.
8243 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8244 Set YYDEBUG to 1 by default.
8245 Set YYFPRINTF as parse_fprintf.
8246
8247 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8248
8249 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8250 encoding anymore.
8251 (pointer_encoding, enum ptr_encoding): New.
8252 (execute_cfa_program): Take care about pointer encoding.
8253 (dwarf2_build_frame_info): Only call parse_frame_info for
8254 .debug_frame and .eh_frame.
8255 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8256 fixed augmentation handling, added relative addressing,
8257 ignore duplicate FDEs. Added comments.
8258 * dwarf2cfi.c: Reindented.
8259
8260 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8261
8262 * event-top.c (command_handler): Don't use space_at_cmd_start
8263 unless there is sbrk() on the host. Assign time and space data
8264 to union fields of the appropriate length.
8265
8266 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8267
8268 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8269 x86_64_register_name. Return type changed to 'const char *'.
8270 (x86_64_register_name2nr): Rename to x86_64_register_number.
8271 (x86_64_gdbarch_init): Update to reflect the change.
8272 * x86-64-tdep.h: Ditto.
8273 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8274 (supply_fpregset): Ditto.
8275
8276 2002-06-19 Andrew Cagney <cagney@redhat.com>
8277
8278 * regcache.h: Update copyright.
8279 (struct regcache, struct gdbarch): Add opaque declarations.
8280 (current_regcache): Declare global variable.
8281 (regcache_read, regcache_write): Add gdbarch parameter.
8282 (regcache_save, regcache_save_no_passthrough)
8283 (regcache_restore, regcache_restore_no_passthrough)
8284 (regcache_dup, regcache_dup_no_passthrough)
8285 (regcache_cpy, regcache_cpy_no_passthrough)
8286 (deprecated_grub_regcache_for_registers)
8287 (deprecated_grub_regcache_for_register_valid)
8288 (regcache_valid_p): Add function declarations.
8289
8290 * regcache.c: Update copyright.
8291 (regcache_descr_handle): New global variable.
8292 (struct regcache_descr): Define.
8293 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8294 (regcache_descr, xfree_regcache_descr): New functions.
8295 (struct regcache): Define.
8296 (regcache_xmalloc, regcache_xfree): New functions.
8297 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8298 (regcache_dup, regcache_dup_no_passthrough): New functions.
8299 (regcache_valid_p, regcache_read_as_address): New functions.
8300 (deprecated_grub_regcache_for_registers): New function.
8301 (deprecated_grub_regcache_for_register_valid): New function.
8302 (current_regcache): New global variable.
8303 (register_buffer): Add regcache parameter. Update calls.
8304 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8305 (read_register_gen, write_register_gen): Update register_buffer
8306 call. Test for legacy_p instead of gdbarch_register_read_p or
8307 gdbarch_register_write_p.
8308 (regcache_collect): Update register_buffer call.
8309 (build_regcache): Rewrite. Use deprecated grub functions.
8310 (regcache_save, regcache_save_no_passthrough): New functions.
8311 (regcache_restore, regcache_restore_no_passthrough): New
8312 functions.
8313 (_initialize_regcache): Create the regcache_data_handle. Swap
8314 current_regcache global variable.
8315
8316 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8317 parameter to regcache_read and regcache_write calls.
8318 (sh4_register_read): Ditto.
8319 (sh64_pseudo_register_read): Ditto.
8320 (sh64_register_read): Ditto.
8321 (sh_pseudo_register_write): Ditto.
8322 (sh4_register_write): Ditto.
8323 (sh64_pseudo_register_write): Ditto.
8324 (sh64_register_write): Ditto.
8325
8326 * defs.h (XCALLOC): Define.
8327
8328 2002-06-19 Grace Sainsbury <graces@redhat.com>
8329
8330 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8331 * m68k-tdep.c (m68k_gdbarch_init): Added.
8332 (m68k_dump_tdep): Added.
8333
8334 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8335
8336 * ada-lang.c (fill_in_ada_prototype): Update comment.
8337
8338 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8339
8340 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8341 MIPS_ABI_LAST.
8342 (mips_abi_string, mips_abi_strings): New.
8343 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8344 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8345 tdep->mips_abi_string. Honor mips_abi_string. Default to
8346 O32 if no ABI is found.
8347 (mips_dump_tdep): Use mips_abi_strings.
8348 (mips_abi_update): New function.
8349 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8350 ``set mips abi'' and ``show mips abi''. Check the size of
8351 mips_abi_strings.
8352
8353 2002-06-19 Andrew Cagney <cagney@redhat.com>
8354
8355 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8356 constant.
8357
8358 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8359
8360 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8361 current frame using only the first stack size adjustment. All
8362 subsequent size adjustments are not considered to be part of
8363 the "static" part of the current frame.
8364 Compute the address of the saved registers relative to the
8365 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8366 in use in this frame.
8367
8368 2002-06-18 Don Howard <dhoward@redhat.com>
8369
8370 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8371 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8372 suggesting this solution.
8373
8374 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8375
8376 * config/romp/xm-rtbsd.h: Delete file.
8377 * config/romp/rtbsd.mh: Delete file.
8378
8379 2002-06-18 Keith Seitz <keiths@redhat.com>
8380
8381 * breakpoint.c (condition_command): Post breakpoint_modify
8382 when a condition is added to an existing breakpoint.
8383 (commands_command): Likewise for commands.
8384 (set_ignore_count): Likewise for ignore counts.
8385 If no tty, do not simply return, still need to send event
8386 notification.
8387 (ignore_command): Only print a newline if the command came
8388 from a tty.
8389 Don't call breakpoints_changed, since this is now properly
8390 handled by set_ignore_count.
8391
8392 2002-06-18 Andrew Cagney <cagney@redhat.com>
8393
8394 * MAINTAINERS: Note that cris-elf target can be compiled with
8395 -Werror.
8396 * cris-tdep.c (cris_register_name): Make return type constant.
8397 (cris_breakpoint_from_pc): Ditto.
8398
8399 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8400
8401 * frame.h (struct frame_info): Change type of context to
8402 'struct context'.
8403
8404 2002-06-17 Andrew Cagney <cagney@redhat.com>
8405
8406 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8407 pointer.
8408 * gdbarch.h, gdbarch.c: Regenerate.
8409 * config/mips/tm-mips.h (mips_register_name): Update.
8410 * i386-tdep.h (i386_register_name): Update.
8411 * mips-tdep.c (mips_register_name): Update
8412 * alpha-tdep.c (alpha_register_name): Update.
8413 * arch-utils.c (legacy_register_name): Update.
8414 * arch-utils.h (legacy_register_name): Update.
8415 * avr-tdep.c (avr_register_name): Update.
8416 * ia64-tdep.c (ia64_register_name): Update.
8417 * i386-tdep.c (i386_register_name): Update.
8418 * sparc-tdep.c (sparc32_register_name): Update.
8419 (sparc64_register_name): Update.
8420 (sparclite_register_name): Update.
8421 (sparclet_register_name): Update.
8422 * sh-tdep.c (sh_generic_register_name): Update.
8423 (sh_sh_register_name): Update.
8424 (sh_sh3_register_name): Update.
8425 (sh_sh3e_register_name): Update.
8426 (sh_sh_dsp_register_name): Update.
8427 (sh_sh3_dsp_register_name): Update.
8428 (sh_sh4_register_name): Update.
8429 (sh_sh64_register_name): Update.
8430 * s390-tdep.c (s390_register_name): Update.
8431 * rs6000-tdep.c (rs6000_register_name): Update.
8432 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8433 (ns32k_register_name_32382): Update.
8434 * d10v-tdep.c (d10v_ts2_register_name): Update.
8435 (d10v_ts3_register_name): Update.
8436 * xstormy16-tdep.c (xstormy16_register_name): Update.
8437 * vax-tdep.c (vax_register_name): Update.
8438 * v850-tdep.c (v850_register_name): Update.
8439 * m68hc11-tdep.c (m68hc11_register_name): Update.
8440 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8441 (am33_register_name): Update.
8442
8443 2002-06-17 Grace Sainsbury <graces@redhat.com>
8444
8445 * m68k-tdep.c: Reindented.
8446
8447 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8448
8449 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8450 list of predefined types.
8451
8452 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8453
8454 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8455 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8456 REGISTER_CONVERT_TO_RAW): Remove defines.
8457 (i386_register_virtual_type, i386_register_convertible,
8458 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8459 Remove prototypes.
8460 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8461 macros mentioned above.
8462
8463 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8464 (i386lynx_saved_pc_after_call): Remove prototype.
8465 * i386ly-tdep.c: Include "i386-tdep.h".
8466 (i386lynx_saved_pc_after_call): Make static. Use
8467 read_memory_nobpt instead of read_memory. Use
8468 read_memory_unsigned_integer instead of read_memory_integer.
8469 (i386lynx_init_abi): New function.
8470 (i386lynx_coff_osabi_sniffer): New function.
8471 (_initialize_i386bsd_tdep): New function.
8472
8473 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8474 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8475 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8476 (i386_fix_call_dummy): Remove prototype.
8477 * i386-tdep.c (i386_call_dummy_words): New variable.
8478 (i386_gdbarch_init): Adjust for removal of the
8479 macros mentioned above.
8480
8481 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8482
8483 * command.h (add_setshow_auto_boolean_cmd): Replace
8484 add_set_auto_boolean_cmd.
8485 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8486 add_set_auto_boolean_cmd.
8487 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8488 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8489 mask-address'' command.
8490 (show_mask_address): Add cmd parameter.
8491 * remote.c (add_packet_config_cmd): Update. Change type of
8492 set_func and show_func to cmd_sfunc_ftype.
8493 (_initialize_remote): Update `set remote Z-packet'
8494 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8495 (show_remote_protocol_e_packet_cmd): Ditto.
8496 (show_remote_protocol_E_packet_cmd): Ditto.
8497 (show_remote_protocol_P_packet_cmd): Ditto.
8498 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8499 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8500 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8501 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8502 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8503 (show_remote_protocol_Z_packet_cmd): Ditto.
8504 (show_remote_protocol_binary_download_cmd): Ditto.
8505 (show_remote_cmd): Pass NULL to all of above.
8506
8507 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8508
8509 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8510 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8511 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8512 POP_FRAME): Remove defines.
8513 (i386_push_arguments, i386_store_struct_return,
8514 i386_extract_return_value, i386_store_return_value,
8515 i386_extract_struct_value_address, i386_push_dummy_frame,
8516 i386_pop_frame): Renove prototypes.
8517 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8518 macros mentioned above.
8519
8520 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8521
8522 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8523 add_set_boolean_cmd.
8524 (add_setshow_cmd): New function.
8525 * command.h (add_setshow_boolean_cmd): Replace
8526 add_set_boolean_cmd.
8527 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8528 and ``set rdiromatzero''.
8529 * maint.c (_initialize_maint_cmds): Update commented out code.
8530 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8531 * target.c (initialize_targets): Update `set
8532 trust-readonly-sections'.
8533 * remote.c (_initialize_remote): Update `set remotebreak'.
8534
8535 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8536
8537 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8538 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8539 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8540 fit into multi-arch framework.
8541 (i386_breakpoint_from_pc): New function.
8542 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8543 above.
8544
8545 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8546 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8547 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8548 (i386_frameless_function_invocation, i386_frame_num_args,
8549 i386_frame_init_saved_regs): Remove prototypes.
8550 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8551 macros mentioned above.
8552
8553 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8554
8555 * cli/cli-decode.c (set_cmd_cfunc): Update.
8556 (set_cmd_sfunc): Update.
8557 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8558 (set_cmd_sfunc, set_cmd_cfunc): Update.
8559 * cli/cli-decode.h: Update.
8560
8561 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8562
8563 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8564 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8565
8566 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8567
8568 * defs.h (auto_boolean): Declare enum.
8569 * command.h (cmd_auto_boolean): Delete enum.
8570 * mips-tdep.c (mask_address_var): Update.
8571 (mips_mask_address_p): Update.
8572 (show_mask_address): Update.
8573 * remote.c (struct packet_config): Update.
8574 (update_packet_config): Update.
8575 (show_packet_config_cmd): Update.
8576 (packet_ok): Update.
8577 (add_packet_config_cmd): Update.
8578 (_initialize_remote):
8579 * command.h: Update.
8580 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8581 (do_setshow_command): Update.
8582 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8583 * cli/cli-decode.h: Update.
8584
8585 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8586
8587 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8588 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8589 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8590 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8591 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8592 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8593
8594 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8595 list of DJGPP COFF targets.
8596
8597 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8598 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8599 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8600 (FP0_REGNUM): Remove define.
8601 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8602 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8603 (i386_register_virtual_size): Remove protoype.
8604 * i386-tdep.c (i386_register_virtual_size): Removed.
8605 (i386_extract_return_value, i386_store_return_value): Use
8606 FP0_REGNUM instead of NUM_FREGS to determine whether the
8607 floating-point registers are available.
8608 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8609 Adjust for removal of macros mentioned above.
8610
8611 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8612
8613 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8614 comments.
8615 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8616 Remove prototypes.
8617 (supply_gregset, fill_gregset): Remove use of register keyword and
8618 remove declaration for regmap. Use I386_NUM_GREGS instead of
8619 NUM_REGS and NUM_FREGS.
8620 (FPREGSET_FSAVE_OFFSET): Remove.
8621 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8622 NUM_FREGS to determine whether the floating-point registers are
8623 available.
8624
8625 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8626 gnu_store_registers): Replace usage of NUM_GREGS with
8627 I386_NUM_GREGS.
8628
8629 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8630 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8631 usage of NUM_GREGS with I386_NUM_GREGS.
8632
8633 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8634
8635 * i386bsd-nat.c: Include "i386-tdep.h".
8636 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8637 I386_NUM_GREGS.
8638
8639 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8640 and associated comment. They no longer make any sense, since we
8641 don't use this file anymore on Linux.
8642
8643 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8644 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8645 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8646 elements in these arrays.
8647 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8648 MAX_NUM_REGS.
8649
8650 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8651
8652 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8653 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8654
8655 2002-06-14 Andrew Cagney <cagney@redhat.com>
8656
8657 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8658 EXTRACT_RETURN_VALUE.
8659 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8660 EXTRACT_STRUCT_VALUE_ADDRESS.
8661 * gdbarch.h, gdbarch.c: Regenerate.
8662
8663 * values.c (value_being_returned): Handle
8664 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8665 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8666
8667 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8668 * arm-tdep.c (arm_gdbarch_init): Update.
8669 * avr-tdep.c (avr_gdbarch_init): Update.
8670 * cris-tdep.c (cris_gdbarch_init): Update.
8671 * d10v-tdep.c (d10v_gdbarch_init): Update.
8672 * ia64-tdep.c (ia64_gdbarch_init): Update.
8673 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8674 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8675 * s390-tdep.c (s390_gdbarch_init): Update.
8676 * sh-tdep.c (sh_gdbarch_init): Update.
8677 * s390-tdep.c (s390_gdbarch_init): Update.
8678 * sparc-tdep.c (sparc_gdbarch_init): Update.
8679 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8680 * v850-tdep.c (v850_gdbarch_init): Update.
8681 * vax-tdep.c (vax_gdbarch_init): Update.
8682 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8683 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8684
8685 * config/arc/tm-arc.h: Update.
8686 * config/d30v/tm-d30v.h: Update.
8687 * config/fr30/tm-fr30.h: Update.
8688 * config/h8300/tm-h8300.h: Update.
8689 * config/h8500/tm-h8500.h: Update.
8690 * config/i386/tm-i386.h: Update.
8691 * config/i386/tm-ptx.h: Update.
8692 * config/i386/tm-symmetry.h: Update.
8693 * config/i960/tm-i960.h: Update.
8694 * config/m32r/tm-m32r.h: Update.
8695 * config/m68k/tm-delta68.h: Update.
8696 * config/m68k/tm-linux.h: Update.
8697 * config/m68k/tm-m68k.h: Update.
8698 * config/m88k/tm-m88k.h: Update.
8699 * config/mcore/tm-mcore.h: Update.
8700 * config/mips/tm-mips.h: Update.
8701 * config/mn10200/tm-mn10200.h: Update.
8702 * config/pa/tm-hppa.h: Update.
8703 * config/pa/tm-hppa64.h: Update.
8704 * config/sparc/tm-sp64.h: Update.
8705 * config/sparc/tm-sparc.h: Update.
8706 * config/sparc/tm-sparclet.h: Update.
8707 * config/z8k/tm-z8k.h: Update.
8708
8709 2002-06-14 Andrew Cagney <cagney@redhat.com>
8710
8711 * Makefile.in (i386_linux_tdep_h): Define.
8712 (i386_tdep_h, i387_tdep_h): Define.
8713 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8714 $(i386_tdep_h) and $(i387_tdep_h).
8715 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8716
8717 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8718
8719 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8720 Already covered by the default.
8721
8722 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8723 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8724 (i386_gdbarch_init): Initialize long_double_format and long_double
8725 bit.
8726
8727 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8728 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8729 Move these to ...
8730 * config/i386/i386sol2.mh: ... here.
8731 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8732 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8733 (SIGCONTEXT_PC_OFFSET): Remove define.
8734 (IN_SIGTRAMP): Remove define.
8735 * i386-sol2-tdep.c: New file.
8736
8737 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8738 * config/i386/tm-i386nw.h: Removed.
8739
8740 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8741 USE_STRUCT_CONVENTION): Remove defines.
8742 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8743 (get_longjmp_target): Remove prototype.
8744 (IN_SIGTRAMP): Remove define.
8745 (i386bsd_in_sigtramp): Remove prototype.
8746 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8747 function. Update comment accordingly
8748 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8749 (FRAME_SAVED_PC): Remove define.
8750 (i386bsd_frame_saved_pc): Remove prototype.
8751 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8752 GET_LONGJMP_TARGET): Remove defines.
8753 (get_longjmp_target): Remove prototype.
8754 (IN_SIGTRAMP): Remove define.
8755 (i386bsd_in_sigtramp): Remove prototype.
8756 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8757 function. Update comment accordingly
8758 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8759 (FRAME_SAVED_PC): Remove define.
8760 (i386bsd_frame_saved_pc): Remove prototype.
8761 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8762 Remove prototype.
8763 (USE_STRUCT_CONVENTION): Remove prototype.
8764 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8765 declaration.
8766 (_initialize_i386bsd_nat): Revise logic to determine some
8767 constants at compile time when compiling a native GDB. Warn if
8768 things don't match up with what we expect.
8769 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8770 Remove variables.
8771 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8772 to use date stored in `struct gdbarch_tdep'.
8773 (i386bsd_sigcontext_offset): Remove varaible.
8774 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8775 stored in `struct gdbarch_tdep'.
8776 (i386bsd_frame_saved_pc): Make static.
8777 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8778 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8779 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8780 i386fbsd4_sc_pc_offset): New variables.
8781 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8782 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8783 functions.
8784 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8785 functions.
8786 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8787 Modify the value of i386fbsd_sigtramp_start and
8788 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8789 i386fbsd_sigtramp_end.
8790 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8791 function.
8792
8793 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8794 define to i386-linux-tdep.h.
8795 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8796 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8797 defines.
8798 (i386_linux_register_name, i386_linux_register_byte,
8799 i386_linux_register_raw_size): Remove prototypes.
8800 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8801 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8802 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8803 TARGET_WRITE_PC): Remove defines.
8804 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8805 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8806 i386_linux_write_pc): Remove prototypes.
8807 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8808 (get_longjmp_target): Remove prototype.
8809 * i386-linux-tdep.h: New file.
8810 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8811 * i386-linux-tdep.c: Include "i386-tdep.h" and
8812 "i386-linux-tdep.h".
8813 (i386_linux_register_name, i386_linux_register_byte,
8814 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8815 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8816 Make static.
8817 (i386_linux_init_abi): New function.
8818 (_initialize_i386_linux_tdep): New function.
8819
8820 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8821 (i386_saved_pc_after_call): Remove prototype.
8822 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8823 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8824 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8825 (i386_register_name, i386_stab_reg_to_regnum,
8826 i386_dwarf_reg_to_regnum): Remove prototypes.
8827 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8828 SIZEOF_SSE_REGS): Remove defines.
8829 (REGISTER_BYTES): Remove define.
8830 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8831 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8832 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8833 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8834 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8835 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8836 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8837 (get_longjmp_target): Remove prototype.
8838 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8839 (sigtramp_saved_pc): Remove define.
8840 (i386v4_sigtramp_saved_pc): Remove prototype.
8841 * config/i386/tm-go32.h (FRAME_CHAIN,
8842 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8843 (i386go32_frame_saved_pc): Remove prototype.
8844 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8845 (get_longjmp_target): Remove prototype.
8846 * i386-tdep.h: Include "osabi.h".
8847 (enum i386_abi): Removed.
8848 (enum struct_return): New enum.
8849 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8850 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8851 sc_pc_offset members.
8852 (i386_gdbarch_register_os_abi): Remove prototype.
8853 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8854 I386_SSE_NUM_REGS): New defines.
8855 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8856 I386_SSE_SIZEOF_REGS): New defines.
8857 (i386_register_name, i386_register_byte, i386_register_raw_size):
8858 New prototypes.
8859 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8860 (i386bsd_sigtramp_saved_pc): New prototype.
8861 * i386-tdep.c: Don't include "elf-bfd.h".
8862 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8863 i386_frame_chain, i386_saved_pc_after_call): Make static.
8864 (i386_frame_saved_pc): Rewrite to call architecture dependent
8865 function to deal with signal handlers. Make static.
8866 (i386go32_frame_saved_pc): Removed.
8867 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8868 Removed.
8869 (i386_get_longjmp_target): New function.
8870 (default_struct_convention, pcc_struct_convention,
8871 reg_struct_convention, valid_conventions, struct_convention): New
8872 variables.
8873 (i386_use_struct_convention): New function.
8874 (i386v4_sigtramp_saved_pc): Renamed to
8875 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8876 (i386_pc_in_sigtramp): New function.
8877 (i386_abi_names): Removed.
8878 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8879 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8880 Removed.
8881 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8882 i386_gdbarch_register_os_abi): Removed.
8883 (struct i386_abi_handler): Removed.
8884 (i386_abi_handler_list): Removed.
8885 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8886 functions.
8887 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8888 i386_nw_init_abi): New functions.
8889 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8890 Use set_gdbarch_xxx() calls instead of relying on macros for a
8891 number of calls.
8892 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8893 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8894 Register the various architecture variants defined in this file.
8895
8896 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8897
8898 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8899 (struct main_type): Remove arg_types member. Update comments for
8900 struct field.
8901 (TYPE_ARG_TYPES): Remove.
8902 (TYPE_FN_FIELD_ARGS): Update.
8903 (smash_to_method_type): Update prototype.
8904
8905 * c-typeprint.c (cp_type_print_method_args): Take method type
8906 instead of argument list. Use new argument layout. Simplify.
8907 (c_type_print_args): Use new argument layout. Simplify.
8908 (c_type_print_base): Update call to cp_type_print_method_args.
8909 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8910 argument; use die->type instead. Update call to
8911 smash_to_method_type.
8912 (read_structure_scope): Update call to dwarf2_add_member_fn.
8913 * gdbtypes.c (allocate_stub_method): Update comment.
8914 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8915 Use new argument layout.
8916 (check_stub_method): Use new argument layout. Don't count
8917 void as an argument.
8918 (print_arg_types): Update comments. Use new argument layout.
8919 (recursive_dump_type): Don't print arg_types member.
8920 * hpread.c (hpread_read_struct_type): Use new argument layout.
8921 (fixup_class_method_type): Likewise.
8922 (hpread_type_lookup): Likewise.
8923 * stabsread.c (read_type): Update calls to read_args and
8924 smash_to_method_type.
8925 (read_args): Use new argument layout. Simplify.
8926 * valops.c (typecmp): Use new argument layout. Update parameters
8927 and comments. Simplify.
8928 (hand_function_call): Use new argument layout.
8929 (search_struct_method): Update call to typecmp.
8930 (find_overload_match): Use new argument layout.
8931
8932 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8933
8934 * NEWS: Mention multithreaded debug support for gdbserver.
8935
8936 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8937
8938 * MAINTAINERS: Mention NEWS.
8939
8940 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8941
8942 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8943 (struct mips_objfile_private, compare_pdr_entries): New.
8944 (non_heuristic_proc_desc): Read the ".pdr" section if it
8945 is present.
8946
8947 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8948
8949 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8950 (arm_debug): New static variable.
8951 (_initialize_arm_tdep): Add ``set debug arm'' command.
8952
8953 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8954
8955 * Makefile.in (sim_arm_h): Define.
8956 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8957 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8958 (arm_register_sim_regno): New function, map an internal REGNUM
8959 onto a simulator register number.
8960 (arm_gdbarch_init): Set register_sim_regno.
8961
8962 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8963
8964 * MAINTAINERS: Add self.
8965
8966 2002-06-11 Jim Blandy <jimb@redhat.com>
8967
8968 * source.c (source_info): Mention whether the symtab has
8969 information about preprocessor macros.
8970
8971 Call the command `info macro', not `show macro'.
8972 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8973 Fix error message.
8974 (_initialize_macrocmd): Register `info_macro_command' in
8975 `infolist', not `showlist'.
8976
8977 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8978
8979 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8980 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8981 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8982 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8983 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8984 unconditionally.
8985 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8986 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8987 (_initialize_mips_tdep): Remove dead code.
8988 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8989 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8990 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8991 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8992 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8993 MIPS_LAST_FP_ARG_REGNUM): Remove.
8994
8995 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8996
8997 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8998 (unwind_tmp_obstack_free, parse_frame_info)
8999 (update_context, cfi_read_fp, cfi_write_fp)
9000 (cfi_frame_chain, cfi_init_extra_frame_info)
9001 (cfi_virtual_frame_pointer): Use the above function.
9002 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
9003
9004 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
9005
9006 * v850-tdep.c (v850_type_is_scalar): New function.
9007 (v850_use_struct_convention): Match current gcc implementation
9008 as close as possible.
9009 (v850_push_arguments): Fix stack_offset handling. Don't write
9010 struct_addr into register. This is done by v850_store_struct_return.
9011 (v850_extract_return_value): Care for structs.
9012 (v850_store_return_value): Ditto.
9013 (v850_store_struct_return): Actually write address.
9014
9015 2002-06-11 Michal Ludvig <mludvig@suse.cz>
9016
9017 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
9018 without debug information too.
9019
9020 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9021
9022 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
9023 Make multi-arch pure.
9024 * gdbarch.h, gdbarch.c: Re-generate.
9025 * arm-tdep.c (arm_print_float_info): Update.
9026 * arch-utils.h (default_print_float_info): Update.
9027 * arch-utils.c (default_print_float_info): Update.
9028 * infcmd.c (float_info): Update call.
9029
9030 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9031
9032 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
9033 the front of the initialize list.
9034
9035 2002-06-10 Andrew Cagney <ac131313@redhat.com>
9036
9037 * infrun.c (struct inferior_status): Replace fields
9038 selected_frame_address and selected_level with field
9039 selected_frame_id.
9040 (save_inferior_status): Update. Use get_frame_id.
9041 (struct restore_selected_frame_args): Delete.
9042 (restore_selected_frame): Update. Use frame_find_by_id.
9043 (restore_inferior_status): Update.
9044
9045 * breakpoint.h (struct breakpoint): Change type of
9046 watchpoint_frame to frame_id.
9047 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
9048 call to get_current_frame.
9049 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
9050 get_current_frame.
9051 (watchpoint_check): Use frame_find_by_id.
9052
9053 * frame.h (record_selected_frame): Delete declaration.
9054 * stack.c (record_selected_frame): Delete function.
9055
9056 * frame.h (struct frame_id): Define.
9057 (get_frame_id): Declare.
9058 (frame_find_by_id): Declare.
9059 * frame.c (frame_find_by_id): New function.
9060 (get_frame_id): New function.
9061
9062 2002-06-10 Andrey Volkov <avolkov@transas.com>
9063
9064 * ser-e7kpc.c: Fix duplicated define and call of
9065 _initialize_ser_e7000pc
9066
9067 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9068
9069 * signals/signals.c (target_signal_from_host): Fix #ifdef
9070 SIGRTMIN case.
9071 (do_target_signal_to_host): Likewise.
9072
9073 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
9074
9075 * mips-tdep.c (mips_find_abi_section): New function.
9076 (mips_gdbarch_init): Call it.
9077
9078 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9079
9080 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
9081 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
9082 after Andrew's 2002-06-08 gdbarch change.
9083
9084 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9085
9086 * i386-linux-nat.c (suppy_gregset): Don't supply
9087 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
9088 register cache.
9089 (fill_gregset): Don't fetch it under the same circumstances.
9090
9091 2002-06-09 Andrew Cagney <cagney@redhat.com>
9092
9093 * Makefile.in (callback_h): Define.
9094 (remote_sim_h): Update path to remote-sim.h.
9095 (remote-rdp.o): Add $(callback_h).
9096 (remote-sim.o): Use $(callback_h).
9097 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
9098 * remote-rdp.c: Include "gdb/callback.h".
9099
9100 2002-06-09 Mark Kettenis <kettenis@gnu.org>
9101
9102 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
9103 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
9104
9105 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9106
9107 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
9108 * rdi-share/serpardr.c: Ditto.
9109 * rdi-share/unixcomm.c: Ditto.
9110 * rdi-share/serdrv.c: Ditto.
9111 * rdi-share/hostchan.h: Ditto.
9112 * rdi-share/hostchan.c: Ditto.
9113 * rdi-share/host.h: Ditto.
9114 * rdi-share/devsw.c: Ditto.
9115
9116 * objfiles.h: Change type of obj_private to void pointer.
9117 * pa64solib.c: Update copyright. Don't include "assert.h", use
9118 strcmp instead of STREQ, use LONGEST, do not use PTR
9119 * somsolib.c: Ditto.
9120
9121 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
9122 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
9123 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
9124
9125 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9126
9127 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
9128 (default_get_saved_register): Delete function.
9129 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
9130 generic_unwind_get_saved_register.
9131 * gdbarch.h, gdbarch.c: Re-generate.
9132
9133 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9134
9135 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
9136 generic_func_frame_chain_valid.
9137 * gdbarch.h, gdbarch.c: Re-generate.
9138 * blockframe.c (generic_func_frame_chain_valid): Only check
9139 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
9140 passing FP to PC_IN_CALL_DUMMY.
9141 Fix PR gdb/360.
9142
9143 2002-06-08 Andrew Cagney <ac131313@redhat.com>
9144
9145 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9146 (register_gdbarch_data): Initialize init_p.
9147 (gdbarch_data): Initialize data pointer using the init function.
9148 (init_gdbarch_data): Delete function.
9149 (gdbarch_update_p): Update.
9150 (initialize_non_multiarch): Update.
9151 (struct gdbarch): Add field initialized_p.
9152 * gdbarch.h, gdbarch.c: Re-generate.
9153
9154 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9155
9156 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9157 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9158 better do the things actually here.
9159 * x86-64-tdep.c (x86_64_register_name2nr): New.
9160 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9161 (x86_64_gdbarch_init): Respect the above change.
9162 * x86-64-tdep.h (x86_64_register_name2nr)
9163 (x86_64_register_nr2name): Add prototypes.
9164 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9165
9166 2002-06-06 Michael Snyder <msnyder@redhat.com>
9167
9168 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9169 Delete extra braces and re-indent.
9170 (d10v_store_return_value): Char return values
9171 must be shifted over by one byte in R0.
9172 (d10v_extract_return_value): Delete extra braces, re-indent.
9173
9174 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9175
9176 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9177 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9178 (d10v_integer_to_address): Rewrite.
9179 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9180 the d10v specific functions which take care of converting to the
9181 correct space.
9182
9183 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9184
9185 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9186 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9187
9188 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9189
9190 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9191 includes.
9192 * config/tm-linux.h: Ditto.
9193 * config/alpha/tm-alphalinux.h: Ditto.
9194 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9195 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9196 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9197 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9198 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9199 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9200 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9201 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9202 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9203 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9204 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9205 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9206 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9207 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9208 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9209 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9210 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9211 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9212 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9213 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9214 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9215 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9216 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9217 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9218 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9219 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9220 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9221 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9222 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9223 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9224 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9225 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9226 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9227 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9228 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9229 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9230 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9231
9232 2002-05-04 Aidan Skinner <aidan@velvet.net>
9233
9234 * ada-exp.tab.c: New file
9235 * ada-exp.y: New file
9236 * ada-lang.c: New file
9237 * ada-lang.h: New file
9238 * ada-lex.c: New file
9239 * ada-lex.l: New file
9240 * ada-tasks.c: New file
9241 * ada-typeprint.c: New file
9242 * ada-valprint.c: New file
9243
9244 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9245
9246 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9247 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9248
9249 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9250
9251 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9252 insetead of ppc-linux-tdep.o.
9253 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9254 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9255
9256 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9257
9258 2002-05-07 Christian Groessler <chris@groessler.org>
9259 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9260 bit register contents for little endian hosts.
9261
9262 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9263
9264 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9265 any maintainer.
9266
9267 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9268
9269 * gdbarch.h: Regenerate.
9270
9271 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9272
9273 * MAINTAINERS: Add everyone to write-after-approval list.
9274
9275 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9276
9277 * stack.c (frame_info): Use frame_register_unwind instead of
9278 saved_regs. Mention when the SP is on the stack or in a register.
9279
9280 * frame.h (frame_register_unwind_ftype): Define. Document.
9281 (struct frame_info): Add field register_unwind and
9282 register_unwind_cache.
9283 (frame_register_unwind): Declare.
9284 (generic_unwind_get_saved_register): Declare.
9285
9286 * frame.c (frame_register_unwind): New function.
9287 (generic_unwind_get_saved_register): New function.
9288
9289 * blockframe.c (generic_call_dummy_register_unwind): New function.
9290 (frame_saved_regs_register_unwind): New function.
9291 (set_unwind_by_pc): New function.
9292 (create_new_frame): New function.
9293 (get_prev_frame): New function.
9294
9295 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9296
9297 * a29k-share/: Delete directory.
9298 * remote-vx29k.c: Delete file.
9299
9300 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9301
9302 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9303 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9304
9305 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9306
9307 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9308 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9309 (sparc64nbsd-nat.o)
9310 (sparcnbsd-nat.o)
9311 (sparcnbsd-tdep.o): New dependency lists.
9312 * NEWS: Note new UltraSPARC NetBSD native configuration.
9313 * configure.host (sparc64-*-netbsd*): New host.
9314 * configure.tgt (sparc-*-netbsdelf*)
9315 (sparc-*-netbsd*): Set gdb_target to nbsd.
9316 (sparc64-*-netbsd*): New target.
9317 * sparc64nbsd-nat.c: New file.
9318 * sparcnbsd-nat.c: New file.
9319 * sparcnbsd-tdep.c: New file.
9320 * sparcnbsd-tdep.h: New file.
9321 * config/sparc/nbsd.mt: New file.
9322 * config/sparc/nbsd64.mh: New file.
9323 * config/sparc/nbsd64.mt: New file.
9324 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9325 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9326 (HOST_IPC): Remove.
9327 * config/sparc/nbsdaout.mt: Remove.
9328 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9329 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9330 (HOST_IPC): Remove.
9331 * config/sparc/nbsdelf.mt: Remove.
9332 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9333 sparc-nat.c compatiblity defines.
9334 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9335 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9336 * config/sparc/tm-nbsd64.h: New file.
9337 * config/sparc/tm-nbsdaout.h: Remove.
9338 * config/sparc/xm-nbsd.h: Remove.
9339
9340 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9341
9342 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9343 * sparc-tdep.c: Include osabi.h.
9344 (gdbarch_tdep): Add osabi member.
9345 (_initialize_sparc_tdep): Use gdbarch_register.
9346 (sparc_gdbarch_init): Use generic OS ABI framework.
9347 (sparc_dump_tdep): New function.
9348
9349 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9350
9351 * corefile.c (do_captured_read_memory_integer): Return non-zero
9352 result.
9353 (safe_read_memory_integer): Copy result of memory read when
9354 status is non-zero. Also, add comments.
9355
9356 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9357
9358 * Makefile.in (ppc_tdep_h): Define.
9359 (ppc-linux-nat.o)
9360 (ppc-linux-tdep.o)
9361 (rs6000-tdep.o): Use $(ppc_tdep_h).
9362 (ppc-sysv-tdep.o)
9363 (ppcnbsd-nat.o)
9364 (ppcnbsd-tdep.o): New dependency lists.
9365 * ppc-tdep.h: Use generic OS ABI framework.
9366 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9367 (ppc_linux_init_abi): New functions.
9368 (ppc_sysv_abi_broken_use_struct_convention)
9369 (ppc_sysv_abi_use_struct_convention)
9370 (ppc_sysv_abi_push_arguments): Move to...
9371 * ppc-sysv-tdep.c: ...here.
9372 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9373 * rs6000-tdep.c (process_note_abi_tag_sections)
9374 (get_elfosabi): Remove.
9375 (rs6000_gdbarch_init): Use generic OS ABI framework.
9376 (rs6000_dump_tdep): New function.
9377 (_initialize_rs6000_tdep): Use gdbarch_register.
9378 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9379 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9380 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9381 of ppc-linux-tdep.o.
9382 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9383 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9384 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9385 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9386 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9387 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9388
9389 2002-05-29 Jim Blandy <jimb@redhat.com>
9390
9391 * macroscope.c (default_macro_scope): Put `void' in empty argument
9392 list.
9393
9394 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9395
9396 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9397 * arch-utils.c: Include "sim-regno.h".
9398 * gdbarch.sh: Don't include "sim-regno.h".
9399 * gdbarch.h, gdbarch.c: Regenerate.
9400 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9401 here.
9402 * arch-utils.h (legacy_register_sim_regno): To here.
9403 * remote-sim.c (legacy_register_sim_regno): Move function from
9404 here.
9405 * arch-utils.c (legacy_register_sim_regno): To here.
9406
9407 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9408
9409 * sim-regno.h: New file.
9410 * Makefile.in (sim_regno_h): Define.
9411 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9412 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9413 (legacy_register_sim_regno): New function.
9414 (one2one_register_sim_regno): New function.
9415 (gdbsim_fetch_register): Rewrite.
9416 (gdbsim_store_register): Only store a register when
9417 REGISTER_SIM_REGNO is valid.
9418 * d10v-tdep.c: Include "sim-regno.h".
9419 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9420 (d10v_ts3_register_sim_regno): Ditto.
9421 * gdbarch.sh: Include "sim-regno.h".
9422 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9423 * gdbarch.h, gdbarch.c: Regenerate.
9424 * arch-utils.h (default_register_sim_regno): Delete declaration.
9425 * arch-utils.c (default_register_sim_regno): Delete function.
9426
9427 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9428
9429 * ppcnbsd-nat.c: Rewrite.
9430 * ppcnbsd-tdep.c: New file.
9431 * ppcnbsd-tdep.h: New file.
9432 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9433 solib.o, and solib-svr4.o.
9434 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9435 nbsd-tdep.o, and corelow.o.
9436
9437 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9438
9439 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9440 `tr' and `sed'. Mention that `broken' targets are not expected to
9441 build.
9442
9443 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9444
9445 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9446 Let PC point right after the prologue before looking up symbols.
9447
9448 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9449
9450 * i386-tdep.c (i386_register_virtual_type): Return
9451 builtin_type_vec128i for SSE registers.
9452
9453 * gdbtypes.h (builtin_type_vec128i): Declare.
9454
9455 * gdbtypes.c (build_builtin_type_vec128i): New function.
9456 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9457 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9458 (build_gdbtypes): Initialize new builtin vector types.
9459 (_initialize_gdbtypes): Register new vector types with gdbarch.
9460
9461 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9462
9463 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9464 since it has been multi-arch'd.
9465 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9466 Move Alpha and VAX multi-arch news entries to same section
9467 as other multi-arch news.
9468
9469 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9470
9471 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9472 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9473 static. Rename some register numbers to put them in ns32k-tdep
9474 private namespace.
9475 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9476 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9477 functions.
9478 (_initialize_ns32k_tdep): Use gdbarch_register.
9479 * ns32k-tdep.h: New file.
9480 * ns32knbsd-tdep.c: New file.
9481 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9482 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9483 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9484 REGISTER_BYTES, REGISTER_BYTE): Remove.
9485 * config/ns32k/tm-ns32k.h: New file.
9486 * config/ns32k/tm-umax.h: Remove.
9487
9488 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9489
9490 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9491 ns32k_store_struct_return, ns32k_extract_return_value,
9492 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9493 functions.
9494 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9495 ns32k_saved_pc_after_call.
9496 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9497 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9498 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9499 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9500 ns32k_extract_struct_value_address.
9501
9502 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9503
9504 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9505 ns32k_fix_call_dummy): New.
9506 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9507 ns32k_call_dummy_words.
9508 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9509 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9510 CALL_DUMMY_NARGS): Remove.
9511 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9512
9513 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9514
9515 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9516 ns32k_frame_saved_pc, ns32k_frame_args_address,
9517 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9518 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9519 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9520 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9521 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9522 (BREAKPOINT): Remove..
9523 (FRAME_CHAIN): Define as ns32k_frame_chain.
9524 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9525 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9526 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9527 (FRAME_FIND_SAVED_REGS): Remove.
9528 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9529 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9530 (POP_FRAME): Define as ns32k_pop_frame.
9531
9532 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9533
9534 * ns32k-tdep.c (ns32k_register_byte_32082,
9535 ns32k_register_byte_32382, ns32k_register_raw_size,
9536 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9537 functions.
9538 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9539 ns32k_register_byte_32382.
9540 * config/ns32k/tm-umax.h: Update copyright years.
9541 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9542 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9543 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9544 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9545 (ns32k_get_enter_addr): Fix prototype.
9546
9547 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9548
9549 * ns32k-tdep.c: Update copyright years.
9550 (ns32k_register_name_32082): New function.
9551 (ns32k_register_name_32382): Ditto.
9552 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9553 (REGISTER_NAME): Define as ns32k_register_name_32382.
9554 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9555 (REGISTER_NAME): Define as ns32k_register_name_32082.
9556
9557 2002-05-24 Jim Blandy <jimb@redhat.com>
9558
9559 * dwarf2read.c (free_line_header): Use xfree, not free.
9560
9561 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9562
9563 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9564 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9565
9566 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9567
9568 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9569
9570 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9571
9572 From Ross Alexander at NEC Europe:
9573 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9574
9575 2002-05-23 Michael Snyder <msnyder@redhat.com>
9576
9577 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9578 for input, rather than parse_and_eval_address.
9579
9580 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9581
9582 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9583 * Makefile.in (sim_d10v_h): Update definition.
9584
9585 2002-05-24 Andrew Cagney <cagney@redhat.com>
9586
9587 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9588 change `2002-05-22 Michael Snyder' below.
9589 (d10v_push_arguments): Ditto.
9590 (d10v_extract_return_value): Ditto.
9591
9592 2002-05-23 Jim Blandy <jimb@redhat.com>
9593
9594 * macrotab.c (check_for_redefinition): Don't complain if the new
9595 definition is the same as the previous one. Take more arguments
9596 to allow the comparison.
9597 (macro_define_object, macro_define_function): Pass more arguments
9598 to check_for_redefinition.
9599
9600 2002-05-22 Michael Snyder <msnyder@redhat.com>
9601
9602 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9603 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9604 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9605 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9606 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9607 Add a temp variable to save a call (and a memory read).
9608 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9609 if possible (so that PC_IN_CALL_DUMMY will work).
9610
9611 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9612
9613 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9614
9615 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9616
9617 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9618 fde->cie_ptr.
9619 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9620 (dwarf2_build_frame_info): Add offset to fde->initial_location
9621 so that frames of shared libraries are mapped correctly.
9622 (execute_stack_op): Change type of 'result' from ULONGEST to
9623 CORE_ADDR.
9624
9625 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9626
9627 * config/alpha/tm-nbsd.h: Include solib.h.
9628
9629 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9630
9631 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9632 assumptions about the host's byte order.
9633
9634 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9635
9636 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9637 to dependency list.
9638 * alphanbsd-tdep.c: Include solib-svr4.h.
9639 * shnbsd-tdep.c: Ditto.
9640
9641 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9642
9643 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9644 nbsd-tdep.h to dependency list.
9645 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9646 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9647 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9648 nbsdaout.mh and nbsdelf.mh consistently.
9649 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9650 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9651 nbsdaout.mt and nbsdelf.mh consistently.
9652 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9653 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9654 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9655 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9656 a.out shared library stuff from here...
9657 * config/nm-nbsdaout.h: ...to here.
9658 * config/tm-nbsd.h: Remove.
9659 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9660 * config/arm/nbsd.mh: Remove.
9661 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9662 nbsd-tdep.o.
9663 * config/arm/nbsdaout.mh: New file.
9664 * config/arm/nbsdelf.mh: New file.
9665 * config/arm/nm-nbsdaout.h: New file.
9666 * config/i386/nbsd.mh: Remove.
9667 * config/i386/nbsd.mt: Remove.
9668 * config/i386/nbsdaout.mh: New file.
9669 * config/i386/nbsdaout.mt: New file.
9670 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9671 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9672 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9673 i386_register_u_addr): Remove.
9674 * config/i386/nm-nbsdaout.h: New file.
9675 * config/i386/nm-nbsdelf.h: Remove.
9676 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9677 (USE_STRUCT_CONVENTION): Remove.
9678 * config/i386/tm-nbsdaout.h: New file.
9679 * config/i386/tm-nbsdelf.h: Remove.
9680 * config/m68k/nbsd.mh: Remove.
9681 * config/m68k/nbsd.mt: Remove.
9682 * config/m68k/nbsdaout.mh: New file.
9683 * config/m68k/nbsdaout.mt: New file.
9684 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9685 * config/m68k/nm-nbsdaout.h: New file.
9686 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9687 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9688 * config/ns32k/nbsd.mh: Remove.
9689 * config/ns32k/nbsd.mt: Remove.
9690 * config/ns32k/nbsdaout.mh: New file.
9691 * config/ns32k/nbsdaout.mt: New file.
9692 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9693 * config/ns32k/nm-nbsdaout.h: New file.
9694 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9695 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9696 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9697 (SVR4_SHARED_LIBS): Remove.
9698 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9699 * config/sparc/nbsd.mh: Remove.
9700 * config/sparc/nbsd.mt: Remove.
9701 * config/sparc/nbsdaout.mh: New file.
9702 * config/sparc/nbsdaout.mt: New file.
9703 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9704 * config/sparc/nbsdelf.mt: New file.
9705 * config/sparc/nm-nbsdaout.h: New file.
9706 * config/sparc/nm-nbsdelf.h: Remove.
9707 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9708 * config/sparc/tm-nbsdaout.h: New file.
9709
9710 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9711
9712 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9713 mipsnbsd-tdep.c
9714 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9715
9716 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9717
9718 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9719 shnbsd-nat.c.
9720 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9721
9722 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9723
9724 * NEWS: Note new MIPS NetBSD native configuration.
9725 * configure.host (mips*-*-netbsd*): New host.
9726 * configure.tgt (mips*-*-netbsd*): New target.
9727 * mipsnbsd-nat.c: New file.
9728 * mipsnbsd-tdep.c: New file.
9729 * mipsnbsd-tdep.h: New file.
9730 * config/mips/nbsd.mh: New file.
9731 * config/mips/nbsd.mt: New file.
9732 * config/mips/nm-nbsd.h: New file.
9733 * config/mips/tm-nbsd.h: New file.
9734
9735 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9736
9737 * Makefile.in (SFILES): Add osabi.c.
9738 (COMMON_OBS): Add osabi.o.
9739 (osabi.o): New dependency list.
9740 * osabi.c: New file.
9741 * osabi.h: New file.
9742 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9743
9744 * Makefile.in (alpha_tdep_h): Define and use instead of
9745 alpha-tdep.h.
9746 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9747 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9748 Remove.
9749 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9750 * alpha-tdep.h: Include osabi.h.
9751 (alpha_abi): Remove.
9752 (gdbarch_tdep): Use generic OS ABI framework.
9753 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9754 gdbarch_register_osabi.
9755 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9756 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9757 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9758
9759 * Makefile.in (sh_tdep_h): Add osabi.h.
9760 * sh-tdep.h (sh_osabi): Remove.
9761 (gdbarch_tdep): Use generic OS ABI framework.
9762 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9763 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9764 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9765 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9766
9767 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9768 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9769 gdbarch_register_osabi.
9770 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9771 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9772 (get_elfosabi): Rename to...
9773 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9774 ABI framework support routines.
9775 (arm_gdbarch_init): Use generic OS ABI framework.
9776 (arm_dump_tdep): Likewise.
9777 (_initialize_arm_tdep): Likewise.
9778 * arm-tdep.h: Include osabi.h.
9779 (arm_abi): Remove.
9780 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9781 osabi member.
9782 (arm_gdbarch_register_os_abi): Remove prototype.
9783 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9784 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9785
9786 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9787 * mips-tdep.c: Include osabi.h.
9788 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9789 OS ABI framework.
9790
9791 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9792
9793 * h8300-tdep.c: Fix formatting.
9794
9795 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9796
9797 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9798 printing vector registers.
9799
9800 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9801
9802 From Fernando Nasser:
9803 * remote.c (remote_async_open_1): Re-throw the exception when the
9804 connection fails.
9805 (remote_cisco_open): Ditto.
9806 (remote_open_1): Ditto.
9807
9808 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9809
9810 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9811 (remote_start_remote): Add uiout parameter. Pass through to
9812 remote_start_remote_dummy.
9813 (remote_open_1): Use catch_exception instead of catch_errors.
9814 (remote_async_open_1): Ditto.
9815 (remote_cisco_open): Ditto.
9816
9817 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9818
9819 * remote.c (remote_start_remote): Replace PTR with void pointer.
9820 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9821 static.
9822
9823 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9824
9825 * gdb_indent.sh: Allow the script to be run in the sim directory.
9826
9827 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9828
9829 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9830 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9831
9832 * corelow.c (core_open): Only call set_gdbarch_from_file if
9833 exec_bfd is NULL.
9834
9835 2002-05-17 Andrey Volkov <avolkov@transas.com>
9836
9837 * h8300-tdep.c: Add support of EXR register
9838 * config/h8300/tm-h8300.h: Ditto.
9839
9840 2002-05-17 Andrey Volkov <avolkov@transas.com>
9841
9842 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9843
9844 2002-05-17 Andrey Volkov <avolkov@transas.com>
9845
9846 * h8300-tdep.c: Change literal regnums to REGNO.
9847
9848 2002-05-17 Jim Blandy <jimb@redhat.com>
9849
9850 * NEWS: Note addition of macro support.
9851
9852 Expand preprocessor macros in C expressions.
9853 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9854 (scan_macro_expansion, scanning_macro_expansion,
9855 finished_macro_expansion): New function declarations.
9856 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9857 variable declarations.
9858 * parser-defs.h (expression_context_pc): New declaration.
9859 * parse.c (expression_context_pc): New variable.
9860 (parse_exp_1): Set expression_context_pc, as well as
9861 expression_context_block.
9862 * c-exp.y (yylex): If we're not already reading the result of a
9863 macro expansion, try to macro-expand the next token. When we're
9864 done scanning a macro expansion, switch back to the mainline text.
9865 Commas and `if's in a macro's expansion don't terminate the input.
9866 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9867 (macro_original_text, macro_expanded_text,
9868 expression_macro_lookup_func, expression_macro_lookup_baton): New
9869 variables.
9870 (scan_macro_expansion, scanning_macro_expansion,
9871 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9872 c_preprocess_and_parse): New functions.
9873 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9874 c_preprocess_and_parse, instead of c_parse.
9875 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9876 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9877
9878 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9879
9880 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9881 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9882 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9883
9884 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9885
9886 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9887
9888 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9889
9890 * Makefile.in (sh_tdep_h): Define and use.
9891 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9892 register enum): Move to...
9893 * * sh-tdep.h: ...here.
9894 * sh-tdep.c: Include sh-tdep.h.
9895 * sh3-rom.c: Likewise.
9896 * shnbsd-tdep.c: Likewise.
9897
9898 2002-05-16 Michael Snyder <msnyder@redhat.com>
9899
9900 * arm-tdep.c: Spelling fix in comment.
9901
9902 2002-05-16 Jim Blandy <jimb@redhat.com>
9903
9904 Add commands for manually expanding macros and showing their
9905 definitions.
9906 * macrocmd.c, macroscope.c, macroscope.h: New files.
9907 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9908 (macroscope_h): New variable.
9909 (HFILES_NO_SRCDIR): Add macroscope.h.
9910 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9911 (macroscope.o, macrocmd.o): New rules.
9912
9913 Teach the Dwarf 2 reader to read macro information.
9914 * dwarf2read.c: #include "macrotab.h".
9915 (dwarf_macinfo_buffer): New variable.
9916 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9917 dwarf_macinfo_size.
9918 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9919 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9920 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9921 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9922 dwarf2_macro_spaces_in_definition): New complaints.
9923 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9924 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9925 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9926 the partial symbol table.
9927 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9928 from what's recorded in the partial symbol table.
9929 (read_file_scope): If the compilation unit has a
9930 `DW_AT_macro_info' attribute, read its macro information.
9931 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9932
9933 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9934
9935 Fix PR gdb/546
9936 * ser-tcp.c: Don't include <netinet/udp.h>.
9937
9938 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9939
9940 * MAINTAINERS: Update my email address.
9941
9942 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9943
9944 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9945 include file of the same name.
9946
9947 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9948
9949 * configure.tgt: Mark v850 as multi-arched.
9950 * config/v850/tm-v850.h: Remove file.
9951 * config/v850/v850.mt: Eliminate TM_FILE.
9952
9953 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9954
9955 * v850-tdep.c: Full multi-arch.
9956 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9957 Define GDB_MULTI_ARCH to 2.
9958
9959 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9960
9961 * p-exp.y (current_type): New static variable.
9962 Carries the type of the expression at the position that is parsed.
9963 (push_current_type, pop_current_type): Two new functions. Used
9964 to store/restore current_type in expression on specific tokens.
9965 (search_field): New static variable. Set to one after parsing a point
9966 as at that point only a FIELDNAME token should be searched.
9967 (FIELDNAME): New token. After a point only a token belonging to
9968 current_type type definition is allowed.
9969 (all over token rules): reset and change current_type according
9970 to rules.
9971 (exp '[' rule): insert implicit array index field if
9972 exp is a pascal string type.
9973
9974 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9975
9976 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9977 frame info. Use frame_info's saved_regs instead of matching member
9978 in extra_frame_info throughout.
9979 (v850_frame_init_saved_regs): New function.
9980 (v850_init_extra_frame_info): Move most functionality into
9981 v850_frame_init_saved_regs().
9982 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9983 (v850_frame_find_saved_regs): Remove declaration.
9984 (FRAME_FIND_SAVED_REGS): Remove definition.
9985 (v850_frame_init_saved_regs): Add declaration.
9986 (FRAME_INIT_SAVED_REGS): Add definition.
9987
9988 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9989
9990 * v850-tdep.c: Begin multi-arch'ing v850.
9991 (v850_target_architecture_hook): Remove function.
9992 (v850_gdbarch_init): New function. Add code previously in
9993 v850_target_architecture_hook().
9994 (_initialize_v850_tdep): Don't set target_architecture_hook.
9995 Call register_gdbarch_init() instead.
9996
9997 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9998
9999 * gdbtypes.h (struct cplus_struct_type): Remove args field.
10000 * hpread.c (hpread_read_struct_type): Remove assignments to args.
10001 (fixup_class_method_type): Likewise.
10002
10003 2002-05-15 Jim Blandy <jimb@redhat.com>
10004
10005 Add macro structures to GDB's symbol tables. Nobody puts anything
10006 in them yet.
10007 * symtab.h (struct symtab): New member: `macro_table'.
10008 * buildsym.h (pending_macros): New global variable.
10009 * buildsym.c: #include "macrotab.h".
10010 (buildsym_init): Initialize `pending_macros'.
10011 (end_symtab): If we found macro information while reading a CU's
10012 debugging info, do build a symtab structure for it. Make the
10013 symtab point to the macro information, and clear the
10014 `pending_macros' pointer which held it while we were reading the
10015 debug info.
10016 (really_free_pendings): Free any pending macro table.
10017 * objfiles.h (struct objfile): New member: `macro_cache'.
10018 * objfiles.c (allocate_objfile): Set allocate and free functions
10019 for the macro cache's objstack.
10020 (free_objfile): Empty the macro cache's obstack.
10021 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
10022 set new allocate and free functions for it.
10023 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
10024 free functions for the macro cache's objstack. (Why is this
10025 function building its own objfile?)
10026 * symmisc.c (print_objfile_statistics): Print statistics on the
10027 macro bcache.
10028 * Makefile.in: Note that buildsym.o depends on macrotab.h.
10029
10030 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10031
10032 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
10033 (REGISTER_U_ADDR): Delete definition.
10034 (arm_register_u_addr): Delete declaration.
10035
10036 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
10037
10038 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
10039 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
10040
10041 2002-05-14 Andrew Cagney <ac131313@redhat.com>
10042
10043 * regcache.c (register_valid): Revise comments refering to "Not
10044 available" and "unavailable".
10045 * frame.c (frame_register_read): Ditto.
10046 * findvar.c (value_of_register): Ditto.
10047
10048 2002-05-15 Andrew Cagney <cagney@redhat.com>
10049
10050 * Makefile.in (remote_sim_h): Replace remote-sim_h.
10051 (remote-sim.o): Update dependencies.
10052 (d10v-tdep.o): Specify dependencies.
10053 (sim_d10v_h): Define.
10054
10055 2002-05-14 Jim Blandy <jimb@redhat.com>
10056
10057 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
10058 * macrotab.c (macro_lookup_inclusion, find_definition,
10059 new_macro_table): Same.
10060
10061 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
10062 not `! strcmp ()'. This is a dubious improvement.
10063 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
10064
10065 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
10066 although it's not necessary, to avoid a warning.
10067
10068 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10069
10070 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
10071 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
10072 TYPE_INSTANCE_FLAGS.
10073 (struct main_type): New.
10074 (struct type): Move most members to struct main_type. Change
10075 cv_type and as_type to new type_chain member. Add instance_flags.
10076 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
10077 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
10078 (finish_cv_type): Remove prototype.
10079 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
10080 Set TYPE_CHAIN.
10081 (alloc_type_instance): New function.
10082 (smash_type): New function.
10083 (make_pointer_type, make_reference_type, make_function_type)
10084 (smash_to_member_type, smash_to_method_type): Call smash_type.
10085 (make_qualified_type): New function.
10086 (make_type_with_address_space): Call make_qualified_type.
10087 (make_cv_type): Likewise.
10088 (finish_cv_type): Remove unnecessary function.
10089 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
10090 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
10091 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
10092 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
10093 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
10094 * hpread.c (hpread_read_struct_type): Likewise.
10095 * stabsread.c (read_struct_type): Likewise.
10096
10097 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
10098
10099 * configure.tgt: Add a catch all sh* target, for cases like
10100 sh[2,3,4]-elf and sh-hms.
10101
10102 2002-05-14 Keith Seitz <keiths@redhat.com>
10103
10104 * event-loop.c (create_file_handler): Don't do anything but
10105 update data when we are given a fd which we are already
10106 monitoring.
10107
10108 2002-05-14 Michal Ludvig <mludvig@suse.cz>
10109
10110 * dwarf2cfi.c (context_cpy): Copy registers correctly.
10111 (update_context): Use __func__ in warnings.
10112
10113 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
10114
10115 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
10116 and tcp_close to net_open and net_close.
10117 (net_open): Accept "udp:" and "tcp:" specifications. Connect
10118 using UDP if requested. Don't try to disable Nagle on UDP
10119 sockets.
10120 * remote.c (remote_serial_open): New function. Warn about UDP.
10121 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
10122
10123 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10124
10125 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
10126
10127 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
10128
10129 * configure.tgt: Remove sh-hms target.
10130 * MAINTAINERS: Don't list sh-hms as a separate target.
10131
10132 2002-05-13 Jim Blandy <jimb@redhat.com>
10133
10134 Add first preprocessor macro-expansion files.
10135 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10136 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10137 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10138 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10139 (COMMON_OBS): Add macrotab.o, macroexp.o.
10140 (macroexp.o, macrotab.o): New rules.
10141
10142 2002-05-13 Andrew Cagney <ac131313@redhat.com>
10143
10144 * config/m88k/tm-m88k.h: Update copyright.
10145 (m88k_target_write_pc): Declare
10146 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10147 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10148 (SHIFT_INST_REGS): Update definition.
10149 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10150 using old definition of TARGET_WRITE_PC.
10151 * regcache.c (generic_target_write_pc): Delete code handling
10152 NNPC_REGNUM.
10153 * gdbarch.sh (NNPC_REGNUM): Delete.
10154 * gdbarch.h, gdbarch.c: Regenerate.
10155
10156 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10157
10158 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10159 builtin reg number.
10160
10161 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10162
10163 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10164 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10165 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10166 access macros.
10167 * c-typeprint.c (cp_type_print_method_args): Likewise.
10168 (c_type_print_args): Likewise.
10169 * d10v-tdep.c (d10v_push_arguments): Likewise.
10170 (d10v_extract_return_value): Likewise.
10171 * expprint.c (print_subexp): Likewise.
10172 * gdbtypes.c (lookup_primitive_typename): Likewise.
10173 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10174 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10175 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10176 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10177 (TYPE_VECTOR): Likewise.
10178 * hpread.c (hpread_read_struct_type)
10179 (fix_static_member_physnames, fixup_class_method_type)
10180 (hpread_type_lookup): Likewise.
10181 * mdebugread.c (parse_symbol, parse_type): Likewise.
10182 * p-lang.c (is_pascal_string_type): Likewise.
10183 * valops.c (hand_function_call): Likewise.
10184 * x86-64-tdep.c (classify_argument): Likewise.
10185
10186 * hpread.c (hpread_read_function_type)
10187 (hpread_read_doc_function_type): Call replace_type.
10188 * dstread.c (create_new_type): Delete.
10189 (decode_dst_structure, process_dst_function): Call alloc_type.
10190 Use type access macros.
10191
10192 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10193
10194 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10195 the're not supported by the current architecture.
10196 (i387_fill_fxsave): Likewise.
10197
10198 2002-05-12 Fred Fish <fnf@redhat.com>
10199
10200 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10201 sect_index_xxx members to index the first slot in section_offsets
10202 if all of the section_offsets are zero.
10203
10204 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10205
10206 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10207 checked in with last change.
10208
10209 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10210
10211 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10212 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10213 config.sub.
10214
10215 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10216
10217 * Makefile.in: Update dependencies.
10218
10219 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10220
10221 * language.c (local_hex_string_custom): Simplify. Do not depend
10222 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10223
10224 * memattr.c (mem_info_command): Replace calls to
10225 longest_local_hex_string and longest_local_hex_string_custom.
10226 * buildsym.c (make_blockvector): Ditto.
10227 * solib.c (info_sharedlibrary_command): Ditto.
10228 * tracepoint.c (tracepoints_info): Ditto.
10229 * symtab.c (print_msymbol_info): Ditto.
10230
10231 * language.c (local_hex_string): Delete.
10232 (local_hex_string_custom): Delete.
10233 (longest_local_hex_string): Rename to local_hex_string.
10234 (longest_local_hex_string_custom): Rename to
10235 local_hex_string_custom.
10236 * language.h (local_hex_string): Change parameter type to LONGEST.
10237 (local_hex_string_custom): Ditto.
10238 (longest_local_hex_string): Delete declaration.
10239 (longest_local_hex_string_custom): Ditto.
10240
10241 * solib.c: Update copyright.
10242 * memattr.c: Update copyright.
10243
10244 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10245
10246 * arch-utils.h (legacy_register_to_value): Declare.
10247 (legacy_value_to_register): Declare.
10248 (legacy_convert_register_p): Declare.
10249 * arch-utils.c (legacy_register_to_value): New function.
10250 (legacy_value_to_register): New function.
10251 (legacy_convert_register_p): New function.
10252
10253 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10254 (VALUE_TO_REGISTER): Define.
10255 (CONVERT_REGISTER_P): Define.
10256 * gdbarch.h, gdbarch.c: Regenerate.
10257
10258 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10259 VALUE_TO_REGISTER.
10260 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10261 CONVERT_REGISTER_P.
10262
10263 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10264 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10265
10266 * Makefile.in: Update dependencies for valops.c.
10267 * valops.c: Include "gdb_assert.h".
10268 (typecmp): Skip THIS parameter to methods.
10269 (find_method_list): Remove static_memfuncp argument,
10270 update callers. Check for stub methods.
10271 (find_value_oload_method_list): Don't set *static_memfuncp.
10272 (find_overload_match): Don't check for stub methods. Assert
10273 that methods are not stubbed. Handle static methods.
10274 (value_find_oload_method_list): Remove static_memfuncp argument.
10275 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10276 to the argument list for static stub methods.
10277 * value.h (value_find_oload_method_list): Update prototype.
10278
10279 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10280
10281 * arch-utils.h (generic_register_size): Declare.
10282 (generic_register_raw_size, generic_register_virtual_size): Delete
10283 declarations.
10284 * arch-utils.c (generic_register_raw_size): Delete.
10285 (generic_register_size): New function.
10286 (generic_register_virtual_size): Delete.
10287
10288 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10289 default generic_register_size.
10290 * gdbarch.h, gdbarch.c: Re-generate.
10291
10292 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10293 register_virtual_size.
10294 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10295 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10296
10297 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10298
10299 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10300 * gdbarch.h, gdbarch.c: Regenerate.
10301 * gnu-v3-abi.c: Update copyright.
10302 (vtable_address_point_offset): Update.
10303 (gnuv3_rtti_type): Update.
10304 (gnuv3_baseclass_offset): Update.
10305 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10306 (init_fetch_link_map_offsets): Update.
10307 * remote.c (get_remote_state): Update.
10308
10309 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10310
10311 * TODO: Remove value_headof/value_from_vtable_info comment.
10312 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10313 * values.c (value_headof, value_from_vtable_info): Delete.
10314 * value.h (value_from_vtable_info): Delete prototype.
10315
10316 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10317
10318 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10319 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10320 $(gdb_regex_h).
10321 (gdb_assert_h): Define.
10322 (gdb_wait_h): Define.
10323 (gdb_regex_h): Define.
10324
10325 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10326
10327 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10328 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10329
10330 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10331
10332 * nbsd-tdep.c: Fix comment.
10333
10334 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10335
10336 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10337 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10338 (nbsd-tdep.o): New dependency list.
10339 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10340 nbsd-tdep.h.
10341 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10342 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10343 * nbsd-tdep.c: New file.
10344 * nbsd-tdep.h: New file.
10345 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10346 nbsd-tdep.h.
10347 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10348 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10349 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10350 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10351
10352 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10353
10354 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10355 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10356 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10357 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10358 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10359 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10360
10361 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10362
10363 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10364 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10365 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10366 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10367 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10368 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10369 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10370
10371 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10372
10373 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10374 fetch_elfcore_registers to...
10375 * i386nbsd-tdep.c: ...here.
10376 (i386nbsd_use_struct_convention): Rename to...
10377 (i386nbsd_aout_use_struct_convention): ...this.
10378 (i386nbsd_supply_reg): New function.
10379 (i386nbsd_fill_reg): New function.
10380 (fetch_core_registers): Use i386nbsd_supply_reg.
10381 (fetch_elfcore_registers): Likewise.
10382 (_initialize_i386nbsd_tdep): New function.
10383 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10384 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10385 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10386 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10387 (i386nbsd_aout_use_struct_convention): ...this.
10388
10389 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10390
10391 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10392 (store_inferior_registers): Use shnbsd_fill_reg.
10393 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10394 sh_nbsd_supply_register): Collapse into...
10395 (shnbsd_supply_reg): ...this.
10396 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10397 (shnbsd_fill_reg): ...this.
10398 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10399 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10400 (fetch_core_registers): Use shnbsd_supply_reg.
10401 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10402 (sh_nbsd_core_fns): Rename to...
10403 (shnbsd_core_fns): ...this.
10404 (sh_nbsd_elfcore_fns): Rename to...
10405 (shnbsd_elfcore_fns): ...this.
10406 (sh_nbsd_init_abi): Rename to...
10407 (shnbsd_init_abi): ...this.
10408 (_initialize_sh_nbsd_tdep): Rename to...
10409 (_initialize_shnbsd_tdep): ...this.
10410 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10411 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10412 sh_nbsd_fill_register): Remove prototypes.
10413 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10414
10415 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10416
10417 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10418 (i387-nat.o): Delete dependency list.
10419 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10420 (x86-64-linux-nat.o): Likewise.
10421 * i387-nat.c: Delete file, moving contents to...
10422 * i387-tdep.c: ...here.
10423 * i387-nat.h: Rename...
10424 * i387-tdep.h: ...to this.
10425 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10426 * i386-linux-nat.c: Likewise.
10427 * i386bsd-nat.c: Likewise.
10428 * i386gnu-nat.c: Likewise.
10429 * i386nbsd-nat.c: Likewise.
10430 * i386v4-nat.c: Likewise.
10431 * x86-64-linux-nat.c: Likewise.
10432 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10433 * config/i386/go32.mh (NATDEPFILES): Likewise.
10434 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10435 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10436 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10437 * config/i386/linux.mh (NATDEPFILES): Likewise.
10438 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10439 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10440 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10441 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10442
10443 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10444
10445 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10446 (alphanbsd-nat.o): Remove dependency list.
10447 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10448 * alphanbsd-nat.c: Delete. Contents moved to...
10449 * alphanbsd-tdep.c: ...here.
10450 (_initialize_alphanbsd_tdep): Register core functions.
10451 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10452
10453 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10454
10455 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10456 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10457 (alphanbsd-nat.o): Likewise.
10458 (alphabsd-tdep.o): New dependency list.
10459 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10460 (fill_gregset): Use alphabsd_fill_reg.
10461 (supply_fpregset): Use alphabsd_supply_fpreg.
10462 (fill_fpregset): Use alphabsd_fill_fpreg.
10463 (fetch_inferior_registers): Use struct reg and struct fpreg
10464 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10465 and alphabsd_supply_fpreg.
10466 (store_inferior_registers): Use struct reg and struct fpreg
10467 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10468 and alphabsd_fill_fpreg.
10469 * alphabsd-tdep.c: New file.
10470 * alphabsd-tdep.h: New file.
10471 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10472 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10473 alphabsd_supply_fpreg.
10474 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10475 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10476
10477 2002-05-11 Eric Christopher <echristo@redhat.com>
10478
10479 * mips-tdep.c (mips_double_register_type): Fix thinko.
10480 (mips_single_register_type): Ditto.
10481 * MAINTAINERS: Add self.
10482
10483 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10484
10485 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10486 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10487 right thing on architectures with different endianness and/or
10488 integer sizes.
10489
10490 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10491
10492 From Christian Limpach <chris@Pin.LU>
10493 * configure.in: Change sed expression which comments out
10494 NATDEPFILES to also comment out continuation lines.
10495 * configure: Regenerate.
10496
10497 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10498
10499 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10500 big patch.
10501
10502 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10503
10504 * sh-tdep.c: Include correct file.
10505
10506 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10507
10508 New support for sh64-elf (sh5) target.
10509
10510 * configure.tgt: For sh64-elf target, default to sh-elf.
10511
10512 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10513 (struct gdbarch_tdep): Add new fields for new registers and ABI
10514 info.
10515
10516 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10517 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10518 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10519 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10520 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10521 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10522 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10523 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10524 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10525 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10526 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10527 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10528 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10529 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10530 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10531 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10532 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10533 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10534 sign_extend, sh64_nofp_frame_init_saved_regs,
10535 sh64_init_extra_frame_info, sh64_get_saved_register,
10536 sh64_extract_struct_value_address, sh64_pop_frame,
10537 sh64_push_arguments, sh64_extract_return_value,
10538 sh64_store_return_value, sh64_show_media_regs,
10539 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10540 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10541 sh_sh64_register_virtual_type,
10542 sh_sh64_register_convert_to_virtual,
10543 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10544 sh64_register_read, sh64_pseudo_register_write,
10545 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10546 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10547 sh64_do_pseudo_register, sh_compact_do_registers_info,
10548 sh64_do_registers_info, sh_gdbarch_init): New functions.
10549
10550 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10551
10552 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10553
10554 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10555
10556 * linespec.c (decode_line_1): Check for a double quote after
10557 a filename correctly.
10558
10559 2002-05-10 Jim Blandy <jimb@redhat.com>
10560
10561 Properly track the size of the current objfile's .debug_line section.
10562 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10563 (DWARF_LINE_SIZE): New macro.
10564 (dwarf2_build_psymtabs_hard): Record the line section's size in
10565 the partial symbol table.
10566 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10567 symbol table.
10568
10569 2002-05-10 Petr Sorfa <petrs@caldera.com>
10570
10571 * ia64-tdep.c: Handle breakpoints on L instruction type
10572 in MLX instruction bundle by moving the breakpoint to
10573 the third slot (X instruction type) as L holds only data.
10574
10575 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10576
10577 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10578 (process_one_symbol): Complain about discarding local symbols
10579 due to a misplaced N_LBRAC entry.
10580
10581 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10582
10583 From Daniel Berlin <dan@cgsoftware.com>
10584 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10585 decrease the depth we are at, in the case of templates.
10586
10587 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10588
10589 * mips-tdep.c (mips_float_register_type): New function.
10590 (mips_double_register_type): New function.
10591 (mips_print_register): Use them.
10592 (do_fp_register_row): Likewise.
10593
10594 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10595
10596 * signals/signals.c (signals): Remove conditional compilation around
10597 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10598 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10599
10600 2002-05-09 Michael Snyder <msnyder@redhat.com>
10601
10602 * remote-rdp.c (remote_rdp_can_run): Remove.
10603
10604 2002-05-09 Tom Tromey <tromey@redhat.com>
10605
10606 * jv-valprint.c (java_val_print): Handle `char' as a special case
10607 of TYPE_CODE_INT.
10608
10609 2002-05-09 Michael Snyder <msnyder@redhat.com>
10610
10611 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10612 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10613 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10614 str r(0123),[sp,#nn].
10615 (arm_skip_prologue): Ditto. Also make disassembly
10616 order-independent by placing it in a loop.
10617
10618 2002-05-06 Michael Snyder <msnyder@redhat.com>
10619
10620 * stabsread.c (read_type): Add recognition for new attribute:
10621 "@V;" means that an array type is actually a vector.
10622 This is analogous to the vector flag that's been added to dwarf2.
10623
10624 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10625
10626 * i386-tdep.h (i386_abi): New enum.
10627 (struct gdbarch_tdep): Replace os_ident member with abi.
10628 (i386_gdbarch_register_os_abi): New prototype.
10629 * i386-tdep.c (i386_abi_names): New array.
10630 (process_note_abi_tag_sections): Removed.
10631 (process_note_sections): New function.
10632 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10633 (struct i386_abi_handler): New struct.
10634 (i386_abi_handler_list): New variable.
10635 (i386_gdbarch_register_os_abi): New function.
10636 (i386_gdbarch_init): Adapt for the changes given above.
10637
10638 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10639
10640 * gregset.h: Say "GNU/Linux".
10641
10642 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10643
10644 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10645 (build_gdbtypes): Build builtin_type_v2_float.
10646 (_initialize_gdbtypes): Register new builtin type.
10647
10648 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10649
10650 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10651 (clear_gdbarch_swap): New function.
10652 (initialize_non_multiarch): Call.
10653 (gdbarch_update_p): Before calling init(), swap out and clear the
10654 existing architecture.
10655 * gdbarch.c: Regenerate.
10656
10657 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10658
10659 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10660 alphanbsd-tdep.c.
10661
10662 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10663
10664 * sh-nbsd-nat.c: Rename to...
10665 * shnbsd-nat.c: ...this.
10666 * sh-nbsd-tdep.c: Rename to...
10667 * shnbsd-tdep.c: ...this.
10668 * sh-nbsd-tdep.h: Rename to...
10669 * shnbsd-tdep.h: ...this.
10670 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10671 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10672
10673 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10674
10675 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10676 concatenation for command help messages.
10677
10678 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10679
10680 * NEWS: Note new sh*-*-netbsdelf* configuration.
10681 * configure.host: Set gdb_host_cpu to sh for all sh*.
10682 (sh*-*-netbsdelf*): New host.
10683 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10684 (sh*-*-netbsdelf*): New target.
10685 * sh-nbsd-nat.c: New file.
10686 * sh-nbsd-tdep.c: New file.
10687 * sh-nbsd-tdep.h: New file.
10688 * config/sh/nbsd.mh: New file.
10689 * config/sh/nbsd.mt: New file.
10690 * config/sh/nm-nbsd.h: New file.
10691 * config/sh/tm-nbsd.h: New file.
10692
10693 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10694
10695 * sh-tdep.c (sh_osabi_names): Declare.
10696 (process_note_abi_tag_sections): New function.
10697 (get_elfosabi): Ditto.
10698 (sh_gdbarch_register_os_abi): Ditto.
10699 (sh_dump_tdep): Ditto.
10700 _initialize_sh_tdep): Use gdbarch_register to register
10701 sh_gdbarch_init and sh_dump_tdep.
10702 * config/sh/tm-sh.h (sh_osabi): Declare.
10703 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10704
10705 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10706
10707 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10708 (thumb_scan_prologue): Ditto.
10709 (arm_find_callers_reg): Ditto.
10710 (arm_frame_chain): Ditto.
10711 (arm_init_extra_frame_info): Ditto.
10712 (arm_frame_saved_pc): Ditto.
10713 (arm_pop_frame): Ditto.
10714 (arm_push_return_address): New function.
10715 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10716 call_dummy_location, call_dummy_breakpoint_offset_p,
10717 call_dummy_breakpoint_offset, call_dummy_p,
10718 call_dummy_stack_adjust_p, call_dummy_words,
10719 sizeof_call_dummy_words, call_dummy_start_offset,
10720 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10721 call_dummy_address, push_return_address and push_dummy_frame for
10722 generic dummy frames.
10723
10724 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10725
10726 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10727 size computation for alloca.
10728 (sh_fp_frame_init_saved_regs): Likewise.
10729
10730 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10731
10732 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10733 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10734 * arm-tdep.c (arm_store_return_value): Use them.
10735 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10736 * remote-rdp.c (remote_rdp_fetch_register): Use
10737 ARM_MAX_REGISTER_RAW_SIZE.
10738 (remote_rdp_store_register): Likewise.
10739
10740 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10741
10742 * dwarf2cfi.c: Code cleanup, removed unused variables,
10743 added default labels to switch {} statements.
10744 * x86-64-tdep.c: Ditto.
10745 * x86-64-linux-nat.c: Ditto.
10746
10747 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10748
10749 * solib.h: Protect against multiple inclusion.
10750
10751 2002-05-06 Jim Blandy <jimb@redhat.com>
10752
10753 Add first preprocessor macro-expansion files.
10754 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10755 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10756 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10757 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10758 (COMMON_OBS): Add macrotab.o, macroexp.o.
10759 (macroexp.o, macrotab.o): New rules.
10760
10761 Separate the job of reading the line number info statement program
10762 header (...expialidocious) out into its own function.
10763 * dwarf2read.c (struct line_head, struct filenames, struct
10764 directories): Replace with...
10765 (struct line_header): New structure, containing the full
10766 contents of the statement program header, including the
10767 include directory and file name tables.
10768 (read_file_scope): If we have line number info, instead of just
10769 calling dwarf_decode_lines to do all the work, call
10770 dwarf_decode_line_header first to get a `struct line_header'
10771 containing the data in the statement program header, and then
10772 pass that to dwarf_decode_lines, which will pick up where that
10773 left off. Be sure to clean up the `struct line_header' object.
10774 (dwarf_decode_line_header, free_line_header, add_include_dir,
10775 add_file_name): New functions.
10776 (dwarf_decode_lines): Move all the code to read the statement
10777 program header into dwarf_decode_line_header. Take the line
10778 header it built as the first argument, instead of the offset to
10779 the compilation unit's line number info. Use the new `struct
10780 line_header' type instead of the old structures. No need to do
10781 cleanups here now, since we don't allocate anything.
10782 (dwarf2_statement_list_fits_in_line_number_section,
10783 dwarf2_line_header_too_long): New complaints.
10784
10785 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10786
10787 * gdbtypes.c (init_vector_type): New function.
10788 (build_builtin_type_vec128): Simplify the representation of SIMD
10789 registers.
10790 (build_gdbtypes): Initialize new builtin vector types.
10791 (_initialize_gdbtypes): Register new vector types with gdbarch.
10792 (builtin_type_v4_float, builtin_type_v4_int32,
10793 builtin_type_v8_int16, builtin_type_v16_int8,
10794 builtin_type_v2_int32, builtin_type_v4_int16,
10795 builtin_type_v8_int8): New (renamed) SIMD types.
10796
10797 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10798
10799 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10800 (i387_fill_fxsave): Likewise.
10801
10802 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10803
10804 * alpha-tdep.c (alpha_extract_return_value): Don't use
10805 non-constant array size in prototype.
10806
10807 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10808
10809 From Brian Taylor <briant at model dot com>:
10810 * ui-out.c (ui_out_field_core_addr): Use the function
10811 longest_local_hex_string_custom'to format addresses > 32 bits
10812 wide.
10813
10814 * ui-out.c (ui_out_field_core_addr): Update comment.
10815
10816 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10817
10818 * stack.c (select_and_print_frame): Make static. Delete the
10819 parameter `level'.
10820 (func_command): Update call.
10821 (select_frame_command): Delete code computing the frame level.
10822 * frame.h (select_and_print_frame): Delete declaration.
10823
10824 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10825
10826 * sparc-tdep.c (sparc_get_saved_register): Comment why
10827 get_prev_frame call is safe.
10828
10829 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10830
10831 * frame.h (select_frame): Delete level parameter.
10832 * stack.c (select_frame): Update. Use frame_relative_level to
10833 obtain the frame's level.
10834 (select_and_print_frame): Update call.
10835 (select_frame_command): Ditto.
10836 (up_silently_base): Ditto.
10837 (down_silently_base): Ditto.
10838 * ocd.c (ocd_start_remote): Ditto.
10839 * remote-rdp.c (remote_rdp_open): Ditto.
10840 * remote-mips.c (mips_initialize): Ditto.
10841 (common_open): Ditto.
10842 * remote-e7000.c (e7000_start_remote): Ditto.
10843 * m3-nat.c (select_thread): Ditto.
10844 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10845 (child_get_current_exception_event): Ditto.
10846 * varobj.c (varobj_create): Ditto.
10847 (varobj_update): Ditto.
10848 (c_value_of_root): Ditto.
10849 * tracepoint.c (finish_tfind_command): Ditto.
10850 * corelow.c (core_open): Ditto.
10851 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10852 * thread.c (info_threads_command): Ditto.
10853 (switch_to_thread): Ditto.
10854 * infrun.c (normal_stop): Ditto.
10855 (restore_selected_frame): Ditto.
10856 (restore_inferior_status): Ditto.
10857 * breakpoint.c (insert_breakpoints): Ditto.
10858 (watchpoint_check): Ditto.
10859 (bpstat_stop_status): Ditto.
10860 (do_enable_breakpoint): Ditto.
10861 * blockframe.c (flush_cached_frames): Ditto.
10862 (reinit_frame_cache): Ditto.
10863
10864 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10865
10866 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10867 maintainer.
10868
10869 2002-05-04 Jim Blandy <jimb@redhat.com>
10870
10871 * gdbtypes.c (replace_type): Doc fix.
10872
10873 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10874
10875 * valprint.c (strcat_longest): Delete commented out function.
10876 Update copyright.
10877
10878 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10879
10880 * MAINTAINERS: Mark a29k as deleted.
10881 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10882 Move new configurations to the top.
10883 * configure.tgt: Remove a29k.
10884 * config/a29k/tm-vx29k.h: Delete.
10885 * config/a29k/vx29k.mt: Delete.
10886 * config/a29k/tm-a29k.h: Delete.
10887 * config/a29k/a29k-udi.mt: Delete.
10888 * config/a29k/a29k.mt: Delete.
10889 * a29k-tdep.c: Delete.
10890 * remote-udi.c: Delete.
10891 * remote-mm.c: Delete.
10892 * remote-eb.c: Delete.
10893 * remote-adapt.c: Delete.
10894 * Makefile.in: Remove obsolete code.
10895 * config/s390/s390x.mt: Ditto.
10896 * config/s390/s390.mt: Ditto.
10897 * config/sparc/sparclynx.mh: Ditto.
10898 * config/sparc/linux.mh: Ditto.
10899 * config/pa/hppaosf.mh: Ditto.
10900 * config/pa/hppabsd.mh: Ditto.
10901 * config/ns32k/nbsd.mt: Ditto.
10902 * config/mips/vr5000.mt: Ditto.
10903 * config/m68k/sun3os4.mh: Ditto.
10904 * config/m68k/nbsd.mt: Ditto.
10905 * config/m68k/m68klynx.mh: Ditto.
10906 * config/m32r/m32r.mt: Ditto.
10907 * config/i386/x86-64linux.mt: Ditto.
10908 * config/i386/nbsdelf.mt: Ditto.
10909 * config/i386/nbsd.mt: Ditto.
10910 * config/i386/i386lynx.mh: Ditto.
10911
10912 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10913
10914 * target.c (debug_print_register): New function. Handle oversize
10915 registers.
10916 (debug_to_fetch_registers): Call.
10917 (debug_to_store_registers): Call.
10918
10919 2002-05-03 Jim Blandy <jimb@redhat.com>
10920
10921 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10922 (read_type): Doc fix.
10923 * gdbtypes.c (replace_type): Doc fix.
10924
10925 * stabsread.c (multiply_defined_struct): New complaint.
10926 (read_struct_type): If the type we were passed isn't empty, or
10927 incomplete, don't read the new struct type into it; complain,
10928 and return the original type unchanged. Take a new `type_code'
10929 argument, which is the type code for the new type.
10930 (read_type): Rather than storing the type's type code here, pass
10931 it as an argument to read_struct_type, and let that take care of
10932 storing it. That way, we don't overwrite the original type code,
10933 so read_struct_type can use it to decide whether we're overwriting
10934 something we shouldn't.
10935 (complain_about_struct_wipeout): New function.
10936
10937 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10938
10939 * gdbarch.sh: Assert that gdbarch is non-NULL.
10940 * gdbarch.c: Regenerate.
10941
10942 2002-05-03 Jason Merrill <jason@redhat.com>
10943
10944 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10945 and return NULL.
10946
10947 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10948
10949 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10950 (x86_64_dwarf2gdb_regno_map_length),
10951 (x86_64_dwarf2_reg_to_regnum): Added.
10952 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10953 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10954 (_initialize_x86_64_tdep): Synced with the change above.
10955 (x86_64_skip_prologue): Reformulated message.
10956
10957 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10958
10959 * f-exp.y: Also use new prev_lexptr variable
10960 to improve error reporting. Based on Michael Snyder
10961 2002-04-24 dated patch to c-exp.y.
10962 * jv-exp.y: Likewise.
10963 * m2-exp.y: Likewise.
10964
10965 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10966
10967 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10968 we are dealing with vectors.
10969
10970 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10971
10972 * config/m68k/tm-nbsd.h: Obvious fix,
10973 correct machine name.
10974
10975 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10976
10977 * p-typeprint.c (pascal_type_print_base): Add support
10978 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10979
10980 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10981
10982 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10983 for fondamental pascal 'char' type.
10984
10985 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10986
10987 * p-lang.h (is_pascal_string_type): Declaration changed,
10988 new sixth argument of type char ** added.
10989 * p-lang.c (is_pascal_string_type): Implementation
10990 changed. Args length_pos, length_size, string_pos, char_size
10991 can now be NULL. New argument arrayname set to the field
10992 name of the char array. Return value set to char array
10993 field index plus one.
10994 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10995 is_pascal_string_type function.
10996
10997 2002-05-02 Andrew Cagney <cagney@redhat.com>
10998
10999 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
11000 <cagney@redhat.com> change.
11001 * gdbarch.c: Regenerate.
11002
11003 2002-05-02 Andrew Cagney <cagney@redhat.com>
11004
11005 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
11006 before probing for a new one. Detect errorenous gdbarch_init
11007 functions.
11008 * gdbarch.c: Regenerate.
11009
11010 2002-05-01 Andrew Cagney <cagney@redhat.com>
11011
11012 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
11013 * config/mcore/tm-mcore.h: Ditto. Update copyright.
11014 * config/v850/tm-v850.h: Ditto. Update copyright.
11015
11016 2002-04-30 Andrew Cagney <ac131313@redhat.com>
11017
11018 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
11019 current_gdbarch.
11020
11021 2002-04-30 Michael Snyder <msnyder@redhat.com>
11022
11023 * arm-tdep.c: Whitespace clean-ups.
11024 (arm_skip_prologue): Fix thinko; two lines
11025 should have been removed as part of 4/24 change.
11026
11027 2002-04-30 Kevin Buettner <kevinb@redhat.com>
11028
11029 * rs6000-tdep.c: Added comment describing how fpscr register
11030 numbers were chosen.
11031
11032 2002-04-30 Michael Snyder <msnyder@redhat.com>
11033
11034 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
11035
11036 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11037
11038 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
11039 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
11040 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
11041
11042 2002-04-29 Kevin Buettner <kevinb@redhat.com>
11043
11044 From Louis Hamilton <hamilton@redhat.com>:
11045 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
11046 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
11047 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
11048 not bfd-private xcoff data, to determine wordsize.
11049 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
11050
11051 2002-04-29 Andrew Cagney <ac131313@redhat.com>
11052
11053 GDB 5.2 released from 5.2 branch.
11054
11055 2002-04-29 Michal Ludvig <mludvig@suse.cz>
11056
11057 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
11058 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
11059 (x86_64_register_info_table): Added comments with register numbers.
11060
11061 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
11062
11063 * rs6000-tdep.c (rs6000_extract_return_value,
11064 rs6000_store_return_value): Handle returning vectors.
11065 (rs6000_gdbarch_init): Use
11066 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
11067 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
11068 New function.
11069 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
11070 vectors.
11071 (ppc_sysv_abi_push_arguments): Handle vector parameters.
11072 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
11073
11074 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11075
11076 * hpread.c (hpread_psymtab_to_symtab_1,
11077 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
11078 with fprintf_unfiltered (gdb_stderr,...).
11079
11080 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11081
11082 * remote-array.c (printf_monitor, write_monitor,
11083 array_insert_breakpoint, array_remove_breakpoint ):
11084 Replace fprintf (stderr,...
11085 with fprintf_unfiltered (gdb_stderr,....
11086 * remote-es.c: Likewise.
11087 * remote-os9k.c: Likewise.
11088 * remote-st.c: Likewise.
11089
11090 2002-04-28 Andreas Schwab <schwab@suse.de>
11091
11092 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
11093 linux-proc.o and gcore.o.
11094
11095 2002-04-26 Michal Ludvig <mludvig@suse.cz>
11096
11097 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
11098 code without frame pointers.
11099
11100 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11101
11102 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
11103 ON_STACK is needed.
11104
11105 2002-04-26 Ben Elliston <bje@redhat.com>
11106
11107 * target.c (do_xfer_memory): Correct reference to the new option
11108 "trust-readonly-sections".
11109
11110 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
11111
11112 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
11113 * gdbtypes.c (recursive_dump_type): Output the vector flag.
11114 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
11115 vectors.
11116 (read_array_type): Record the fact that this array type is really a
11117 vector (i.e. are passed in by value).
11118
11119 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
11120
11121 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
11122 * alpha-tdep.c (alpha_sigcontext_addr): New function.
11123 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
11124 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
11125 * alpha-linux-tdep.c: Include frame.h.
11126 (alpha_linux_sigcontext_addr): New function.
11127 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
11128 alpha_linux_sigcontext_addr.
11129 * alpha-osf1-tdep.c: Include gdbcore.h.
11130 (alpha_osf1_sigcontext_addr): New function.
11131 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
11132 alpha_osf1_sigcontext_addr.
11133 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
11134 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
11135
11136 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11137
11138 * stack.c (selected_frame_level):
11139 (select_frame): Do not set selected_frame_level.
11140 * frame.h (selected_frame_level): Delete declaration.
11141
11142 2002-04-26 Andrew Cagney <ac131313@redhat.com>
11143
11144 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11145 convert_from_func_ptr-addr when AIX / PowerOpen.
11146
11147 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11148
11149 * valops.c (hand_function_call): Call
11150 generic_save_call_dummy_addr.
11151 * frame.h (generic_save_call_dummy_addr): Declare.
11152 * blockframe.c (struct dummy_frame): Add fields call_lo and
11153 call_hi.
11154 (generic_find_dummy_frame): Check for PC in range call_lo to
11155 call_hi instead of entry_point_address.
11156 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11157 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11158 (generic_save_call_dummy_addr): New function.
11159
11160 2002-04-24 David S. Miller <davem@redhat.com>
11161
11162 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11163 sparc_skip_prologue.
11164 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11165 information to find prologue when possible.
11166 (sparc_prologue_frameless_p): Call examine_prologue directly.
11167 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11168 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11169 second argument.
11170 (SKIP_PROLOGUE): Likewise.
11171
11172 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11173
11174 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11175 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11176 indicate that the condition it was testing is always true.
11177 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11178 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11179 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11180
11181 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11182
11183 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11184 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11185 tdep->jb_pc and tdep->jb_elt_size.
11186 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11187 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11188 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11189 * alpha-nat.c (get_longjmp_target): Remove.
11190 (JB_ELEMENT_SIZE): Ditto.
11191 (JB_PC): Ditto.
11192 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11193 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11194 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11195 to alpha_get_longjmp_target.
11196 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11197 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11198 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11199
11200 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11201
11202 * README: Update to GDB 5.2.
11203
11204 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11205
11206 * gdbarch.sh (LC_ALL): Set to `c'.
11207
11208 2002-04-25 Theodore A. Roth <troth@verinet.com>
11209
11210 * avr-tdep.c: Ran through gdb_indent.sh.
11211
11212 2002-04-25 Theodore A. Roth <troth@verinet.com>
11213
11214 * MAINTAINERS: Add myself as AVR maintainer.
11215 * NEWS: Note new target avr.
11216
11217 2002-04-25 Theodore A. Roth <troth@verinet.com>
11218
11219 * Makefile.in: Add support for AVR target.
11220 * configure.tgt: Add support for AVR target.
11221 * avr-tdep.c: New file
11222 * config/avr/avr.mt: New file.
11223
11224 2002-04-25 Theodore A. Roth <troth@verinet.com>
11225
11226 * MAINTAINERS: Add myself to write-after-approval.
11227
11228 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11229
11230 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11231 with fprintf_unfiltered (gdb_stderr,....
11232
11233 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11234
11235 Fix PR gdb/508.
11236 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11237
11238 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11239
11240 * p-exp.y: Also use new prev_lexptr variable
11241 to improve error reporting. Based on Michael Snyder
11242 2002-04-24 dated patch to c-exp.y.
11243
11244 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11245
11246 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11247 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11248 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11249 to 0.
11250 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11251 and struct value.
11252 (FUNCTION_START_OFFSET): Remove.
11253 (BREAKPOINT): Ditto.
11254
11255 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11256
11257 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11258 * NEWS: Ditto.
11259
11260 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11261
11262 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11263 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11264 alpha_linux_pc_in_sigtramp.
11265 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11266 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11267 alpha_osf1_pc_in_sigtramp.
11268 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11269 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11270 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11271 alphafbsd_pc_in_sigtramp.
11272 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11273 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11274 alphanbsd_pc_in_sigtramp.
11275 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11276 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11277
11278 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11279
11280 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11281
11282 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11283
11284 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11285 alphanbsd-tdep.c.
11286 (alphanbsd-nat.o): New dependency list.
11287 (alphanbsd-tdep.o): Ditto.
11288 * NEWS: Note new native NetBSD/alpha configuration.
11289 * alphanbsd-nat.c: New file.
11290 * alphanbsd-tdep.c: Ditto.
11291 * configure.host (alpha*-*-netbsd*): New host.
11292 * configure.tgt (alpha*-*-netbsd*): New target.
11293 * config/alpha/nbsd.mh: New file.
11294 * config/alpha/nbsd.mt: Ditto.
11295 * config/alpha/nm-nbsd.h: Ditto.
11296 * config/alpha/tm-nbsd.h: Ditto.
11297
11298 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11299
11300 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11301 (alpha-osf1-tdep.o): New dependency list.
11302 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11303 and skip_sigtramp_frame members.
11304 * alpha-linux-tdep.c: Include gdbcore.h.
11305 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11306 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11307 * alpha-osf1-tdep.c: New file.
11308 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11309 alpha-osf1-dep.c.
11310 (alpha_frame_past_sigtramp_frame): New function.
11311 (alpha_dynamic_sigtramp_offset): Ditto.
11312 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11313 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11314 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11315 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11316 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11317 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11318 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11319 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11320 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11321 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11322 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11323 to find_solib_trampoline_target.
11324 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11325 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11326 (SKIP_TRAMPOLINE_CODE): Remove.
11327 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11328 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11329 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11330 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11331 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11332 (PROC_SIGTRAMP_MAGIC): Ditto.
11333 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11334 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11335 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11336 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11337 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11338
11339 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11340
11341 * NEWS: Note that Alpha targets are now multi-arch.
11342
11343 2002-04-24 Michael Snyder <msnyder@redhat.com>
11344
11345 * parser-defs.h (prev_lexptr): New external variable.
11346 * parse.c (parse_exp_1): Set prev_lexptr to null before
11347 calling the language-specific parser.
11348 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11349 (yyerror): Use prev_lexptr in error reporting.
11350
11351 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11352
11353 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11354 * gregset.h: If FILL_FPXREGSET is defined, provide
11355 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11356 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11357 is defined, call fill_fpxregset.
11358
11359 2002-04-24 Roland McGrath <roland@frob.com>
11360
11361 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11362 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11363 (supply_gregset, supply_fpregset): New functions.
11364
11365 * gnu-nat.c (gnu_find_memory_regions): New function.
11366 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11367 (gnu_xfer_memory): Add a cast.
11368
11369 2002-04-24 Michael Snyder <msnyder@redhat.com>
11370
11371 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11372 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11373 of argument regs ("str r(0123), [r11, #-nn"]).
11374 (arm_skip_prologue): Better handling for frameless functions.
11375 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11376 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11377
11378 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11379
11380 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11381 NUM_PSEUDO_REGS can be used.
11382
11383 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11384
11385 * arch-utils.h: Update copyright.
11386
11387 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11388 * gdbarch.h, gdbarch.c: Re-generate.
11389
11390 * inferior.h (IN_SIGTRAMP): Delete definition.
11391 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11392 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11393
11394 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11395 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11396 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11397 (find_proc_framesize): Ditto.
11398 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11399 (alpha_init_extra_frame_info): Ditto.
11400 * infrun.c (handle_inferior_event): Ditto.
11401 (handle_inferior_event): Ditto.
11402 (check_sigtramp2): Ditto.
11403 * blockframe.c (create_new_frame): Ditto.
11404 (get_prev_frame): Ditto.
11405 * ppc-linux-tdep.c: Update comments.
11406 * i386-linux-tdep.c: Update comments.
11407 * breakpoint.c (bpstat_what): Update comment.
11408
11409 2002-04-24 David S. Miller <davem@redhat.com>
11410
11411 * i960-tdep.c (register_in_window_p): New function.
11412 (i960_find_saved_register): Use it instead of
11413 REGISTER_IN_WINDOW_P.
11414 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11415
11416 * symtab.h (find_stab_function_addr): Kill extern.
11417 * minsyms.c (find_stab_function_addr): Remove from here...
11418 * dbxread.c: ... to here, and mark it static.
11419
11420 2002-04-20 David S. Miller <davem@redhat.com>
11421
11422 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11423 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11424
11425 2002-04-21 David S. Miller <davem@redhat.com>
11426
11427 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11428 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11429 (vx_write_register): Likewise.
11430
11431 2002-04-23 J. Brobecker <brobecker@gnat.com>
11432
11433 * source.c (is_regular_file): New function.
11434 (openp): Check wether file to open is a regular file
11435 to avoid opening directories.
11436
11437 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11438
11439 * findvar.c (extract_signed_integer): Cast printf argument
11440 to suppress format warning.
11441 (extract_unsigned_integer): Likewise.
11442 * infcmd.c (registers_info): Likewise.
11443 * top.c (get_prompt_1): Likewise.
11444 * valops.c (value_assign): Likewise.
11445 * valprint.c (print_decimal): Likewise.
11446
11447 2002-04-22 H.J. Lu (hjl@gnu.org)
11448
11449 * c-exp.y (typebase): Support
11450
11451 [long|long long|short] [signed|unsigned] [int|]
11452
11453 and
11454
11455 signed [long|long long|short] int
11456
11457 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11458
11459 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11460 and vax-tdep.h.
11461 * vax-tdep.h: New file.
11462 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11463 Make several routines static.
11464 (vax_get_saved_register): New function.
11465 (vax_gdbarch_init): New function.
11466 (_initialize_vax_tdep): Register vax_gdbarch_init.
11467 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11468 Remove macros now under the control of gdbarch.
11469
11470 2002-04-22 Michael Snyder <msnyder@redhat.com>
11471
11472 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11473 Some whitespace and coding standards tweaks.
11474
11475 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11476
11477 * vax-tdep.c: Include regcache.h.
11478 (vax_call_dummy_words): New.
11479 (sizeof_vax_call_dummy_words): New.
11480 (vax_fix_call_dummy): New function.
11481 (vax_saved_pc_after_call): Ditto.
11482 * config/vax/tm-vax.h: Don't include regcache.h.
11483 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11484 (CALL_DUMMY): Remove.
11485 (CALL_DUMMY_WORDS): Define.
11486 (SIZEOF_CALL_DUMMY_WORDS): Define.
11487 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11488
11489 2002-04-18 Michael Snyder <msnyder@redhat.com>
11490
11491 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11492
11493 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11494
11495 * vax-tdep.c (vax_frame_chain): New function.
11496 (vax_push_dummy_frame): Ditto.
11497 (vax_pop_frame): Ditto.
11498 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11499 (FRAMELESS_FUNCTION_INVOCATION): Use
11500 generic_frameless_function_invocation_not.
11501 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11502 (POP_FRAME): Use vax_pop_frame.
11503
11504 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11505
11506 * vax-tdep.c (vax_store_struct_return): New function.
11507 (vax_extract_return_value): Ditto.
11508 (vax_store_return_value): Ditto.
11509 (vax_extract_struct_value_address): Ditto.
11510 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11511 vax_store_struct_return.
11512 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11513 (STORE_RETURN_VALUE): Use vax_store_return_value.
11514 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11515
11516 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11517
11518 * vax-tdep.c (vax_frame_saved_pc): New function.
11519 (vax_frame_args_address_correct): Ditto.
11520 (vax_frame_args_address): Ditto.
11521 (vax_frame_locals_address): Ditto.
11522 (vax_frame_num_args): Move code to be in proximity to
11523 other frame-related functions.
11524 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11525 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11526 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11527 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11528 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11529
11530 2002-04-22 H.J. Lu (hjl@gnu.org)
11531
11532 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11533 includedir.
11534
11535 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11536
11537 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11538 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11539 (FRAME_INIT_SAVED_REGS): New macro.
11540
11541 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11542
11543 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11544
11545 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11546
11547 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11548 where needed.
11549 (fetch_osf_core_registers): Likewise.
11550 (supply_gregset): Likewise.
11551
11552 2002-04-22 J. Brobecker <brobecker@gnat.com>
11553
11554 * symfile.h (get_section_index): Define.
11555 * symfile.c (get_section_index): New function.
11556 * mdebugread.c (SC_IS_SBSS): New macro.
11557 (SC_IS_BSS): Return true for the scBss storage class only, as
11558 the scSBss storage class refers to the .sbss section.
11559 (parse_partial_symbols): Discard the symbols which associated
11560 section does not exist.
11561 Make sure to use the .sbss section index for symbols which
11562 storage class is scBss, rather than using the .bss section index.
11563
11564 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11565
11566 * vax-tdep.c: Update copyright years.
11567 (vax_register_name): New function.
11568 (vax_register_byte): Ditto.
11569 (vax_register_raw_size): Ditto.
11570 (vax_register_virtual_size): Ditto.
11571 (vax_register_virtual_type): Ditto.
11572 * config/vax/tm-vax.h: Update copyright years.
11573 (REGISTER_NAMES): Remove.
11574 (REGISTER_NAME): Define.
11575 (REGISTER_BYTE): Use vax_register_byte.
11576 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11577 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11578 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11579
11580 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11581
11582 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11583 declaration
11584 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11585
11586 2002-04-21 David S. Miller <davem@redhat.com>
11587
11588 * arch-utils.c (generic_prologue_frameless_p): Kill
11589 SKIP_PROLOGUE_FRAMELESS_P code.
11590 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11591 references.
11592 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11593 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11594 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11595 references.
11596 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11597 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11598 (sparc_gdbarch_init): Pass it to
11599 set_gdbarch_prologue_frameless_p.
11600
11601 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11602
11603 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11604 (alphabsd-nat.o): New dependency list.
11605
11606 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11607
11608 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11609 alphafbsd-tdep.c.
11610 (alpha-linux-tdep.o): New dependency list.
11611 (alphafbsd-tdep.o): Likewise.
11612
11613 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11614
11615 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11616 to here...
11617 * alpha-tdep.c: ...from here.
11618 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11619
11620 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11621
11622 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11623 prototype from here...
11624 * alpha-tdep.h: ...to here.
11625
11626 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11627
11628 * frame.h (selected_frame_level): Document as deprecated.
11629 (frame_relative_level): Declare.
11630 * stack.c (frame_relative_level): New function.
11631 (selected_frame_level): Document as deprecated.
11632 (select_frame): Do not set the selected_frame_level.
11633
11634 * stack.c (frame_info, record_selected_frame): Update.
11635 (frame_command, current_frame_command): Update.
11636 (up_silently_base, up_command, down_silently_base): Update.
11637 (down_command): Update.
11638 * inflow.c (kill_command): Update.
11639 * tracepoint.c (finish_tfind_command): Update.
11640 * corelow.c (core_open): Update.
11641 * thread.c (info_threads_command): Update.
11642 (do_captured_thread_select): Update.
11643 * infcmd.c (finish_command): Update.
11644 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11645
11646 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11647
11648 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11649
11650 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11651
11652 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11653 type const.
11654
11655 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11656
11657 * alphafbsd-tdep.c: Update copyright years. Include
11658 alpha-tdep.h.
11659 (alphafbsd_use_struct_convention): Make static.
11660 (alphafbsd_init_abi): New function.
11661 (_initialize_alphafbsd_tdep): New function.
11662 * config/alpha/tm-fbsd.h: Update copyright years.
11663 (USE_STRUCT_CONVENTION): Remove.
11664
11665 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11666
11667 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11668 an Alpha ABI variant.
11669 (alpha_abi_handler_list): Declare.
11670 (alpha_gdbarch_register_os_abi): New function.
11671 (alpha_gdbarch_init): Give registered ABI variant handlers a
11672 chance to tweak the gdbarch once we have set up defaults.
11673 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11674
11675 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11676
11677 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11678 to standard_coerce_float_to_double.
11679 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11680
11681 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11682
11683 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11684 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11685 from gdbarch_tdep rather than a constant.
11686 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11687 the default text address for all Alpha Unix ABIs.
11688 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11689 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11690
11691 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11692
11693 * alpha-tdep.h: New file. Includes several Alpha target constants
11694 taken from...
11695 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11696 let gdbarch deal with.
11697 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11698 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11699 to dependency list.
11700 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11701 Alpha target register names.
11702 * alphabsd-nat.c: Likewise.
11703 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11704 Alpha target register names. Make serveral routines static.
11705 (alpha_get_saved_register): New function.
11706 (alpha_abi_names): New.
11707 (process_note_abi_tag_sections): New function.
11708 (get_elfosabi): New function.
11709 (alpha_gdbarch_init): New function.
11710 (alpha_dump_tdep): New function.
11711 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11712
11713 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11714
11715 * frame.c (find_saved_register): Delete #ifdef
11716 HAVE_REGISTER_WINDOWS code.
11717 * config/sparc/tm-sparc.h: Update comments.
11718 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11719
11720 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11721
11722 * i960-tdep.c (i960_find_saved_register): New function.
11723 (i960_get_saved_register): New function.
11724 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11725 (i960_get_saved_register): Declare.
11726 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11727
11728 2002-04-20 David S. Miller <davem@redhat.com>
11729
11730 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11731
11732 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11733
11734 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11735 instead of NUM_PSEUDO_REGS.
11736
11737 2002-04-20 David S. Miller <davem@redhat.com>
11738
11739 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11740 GDB_MULTI_ARCH_PARTIAL
11741 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11742 define, let tm-sp64.h do it.
11743
11744 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11745
11746 * frame.c (find_saved_register): Avoid a NULL pointer
11747 dereference and actually walk the frame list.
11748
11749 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11750
11751 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11752 sorted in most most-recent-used order. Document.
11753 * gdbarch.h, gdbarch.c: Regenerate.
11754
11755 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11756
11757 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11758 instead of ->prev.
11759 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11760 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11761 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11762 instead of ->prev.
11763
11764 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11765
11766 Fix PR gdb/471.
11767 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11768 (build_builtin_type_vec128): Ditto.
11769 (append_composite_type_field): Fix calculation of type length in
11770 union case.
11771
11772 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11773
11774 * config/djgpp/README: Update.
11775
11776 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11777 compiler warnings.
11778
11779 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11780
11781 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11782 (alpha_setup_arbitrary_frame): ...to this.
11783 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11784 for alpha_setup_arbitrary_frame.
11785
11786 2002-04-18 Andrew Cagney <cagney@redhat.com>
11787
11788 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11789 * gdbarch.h, gdbarch.c: Regenerate.
11790
11791 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11792 * target.h (memory_breakpoint_from_pc): Update declaration.
11793 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11794
11795 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11796 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11797 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11798 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11799 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11800 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11801 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11802 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11803 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11804 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11805 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11806 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11807
11808 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11809 const pointer.
11810 * monitor.c (monitor_insert_breakpoint): Ditto.
11811 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11812
11813 * config/mcore/tm-mcore.h: Update copyright.
11814 * mem-break.c: Ditto.
11815 * xstormy16-tdep.c: Ditto.
11816
11817 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11818
11819 * p-exp.y: Add precedence rule for '^' token.
11820 This removes the shift/reduce conflicts.
11821 Remove the comment concerning these shift/reduce conflicts.
11822
11823 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11824
11825 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11826 (registers_powerpc_nofp): New register set for processors
11827 without floating point unit.
11828
11829 2002-04-18 David S. Miller <davem@redhat.com>
11830
11831 * MAINTAINERS: Add myself to write-after-approval.
11832
11833 2002-04-17 Michael Snyder <msnyder@redhat.com>
11834
11835 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11836
11837 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11838
11839 * rs6000-tdep.c (frame_initial_stack_address): Use
11840 frame_register_read to read the alloca_reg.
11841
11842 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11843
11844 * frame.c (find_saved_register): Find saved registers in the next
11845 not prev frame.
11846 Fix PR gdb/365.
11847
11848 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11849
11850 * gdbarch.sh (LANG): Set to ``c''.
11851
11852 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11853
11854 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11855
11856 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11857
11858 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11859 Update copyright.
11860
11861 * hpread.c (hpread_get_lntt): Add declaration.
11862 Also fix PR gdb/391.
11863
11864 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11865
11866 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11867 * aclocal.m4, configure: Re-generate.
11868 Fix PR gdb/391.
11869
11870 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11871
11872 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11873 instead of tm_print_insn.
11874
11875 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11876
11877 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11878
11879 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11880
11881 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11882 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11883 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11884
11885 2002-04-12 Don Howard <dhoward@redhat.com>
11886
11887 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11888 max_user_call_depth.
11889 (init_cmd_lists): Initialize the new value;
11890 * cli/cli-script.c (execute_user_command): Limit the call depth of
11891 user defined commands. This avoids a core-dump when user commands
11892 are infinitly recursive.
11893
11894 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11895
11896 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11897 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11898 from tdep struct instead of DEFAULT_LR_SAVE.
11899 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11900 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11901 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11902
11903 2002-04-12 Michael Snyder <msnyder@redhat.com>
11904
11905 * Remote.c: Spelling fix.
11906 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11907 If no symbol found for "sbrk", try "_sbrk".
11908 (make_output_phdrs): Use bfd_section_name.
11909 (gcore_copy_callback): Use bfd_section_name.
11910 * eval.c: Indentation fix-ups.
11911 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11912 in case it gets applied to an address that is already
11913 in the instruction space.
11914 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11915 * symfile.c: Fix indentation, long lines.
11916 * source.c: White space fix-up.
11917
11918 2002-04-12 Andrew Cagney <cagney@redhat.com>
11919
11920 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11921 * frame.c (frame_register_read): New function. Return non-zero on
11922 success.
11923 (read_relative_register_raw_bytes_for_frame): Delete.
11924 (read_relative_register_raw_bytes): Delete.
11925 * frame.h (frame_register_read): Declare.
11926 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11927 * sh-tdep.c: Ditto.
11928 * infcmd.c (do_registers_info): Ditto.
11929 * hppa-tdep.c: Ditto.
11930 * rs6000-tdep.c: Ditto.
11931 * h8500-tdep.c: Ditto.
11932 * mips-tdep.c: Ditto.
11933 * h8300-tdep.c: Ditto.
11934 * z8k-tdep.c: Ditto.
11935
11936 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11937
11938 From Jimi X <jimix@watson.ibm.com>:
11939 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11940 64-bit SysV ABI.
11941
11942 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11943
11944 From Jimi X <jimix@watson.ibm.com>:
11945 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11946 bfd info.
11947
11948 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11949
11950 From Jimi X <jimix@watson.ibm.com>:
11951 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11952 register sets for these processor variants.
11953
11954 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11955
11956 * regformats/reg-ppc.dat: Support FPSCR.
11957
11958 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11959
11960 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11961 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11962 Add fpscr as an invalid/unfetchable register.
11963 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11964 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11965 (fill_fpregset): Add support for register fpscr.
11966 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11967 (fill_gregset): Account for the fact that register ``mq'' might
11968 not exist.
11969 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11970 (registers_power): Add fpscr to register set at slot 71.
11971 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11972 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11973
11974 2002-04-11 Michael Snyder <msnyder@redhat.com>
11975
11976 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11977 * configure: Regenerate.
11978 * config.in: Regenerate.
11979 * acconfig.h: Add define for _SYSCALL32.
11980 * core-sol2.c: Remove #define _SYSCALL32.
11981 * solib-legacy.c: Remove #define _SYSCALL32.
11982
11983 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11984
11985 * stack.c (select_frame): Cleanup internal error message, do not
11986 use %p.
11987
11988 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11989
11990 * stack.c (select_frame): Check that selected_frame and the
11991 specified level are as expected.
11992 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11993 Update copyright.
11994 * frame.h (struct frame_info): Add field `level'. Update
11995 copyright.
11996 Work-in-progress PR gdb/464.
11997
11998 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11999
12000 * maint.c (maint_print_section_info): Rename print_section_info.
12001 (print_bfd_section_info, print_objfile_section_info): Update.
12002 * inferior.h (struct gdbarch): Add opaque declaration.
12003 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
12004 * gdbarch.h: Regenerate.
12005
12006 2002-04-10 Michal Ludvig <mludvig@suse.cz>
12007
12008 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
12009 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
12010 (kernel_u_size): Added.
12011 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
12012 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
12013
12014 2002-04-04 Jim Ingham <jingham@apple.com>
12015
12016 * valarith.c (find_size_for_pointer_math): New function, either returns
12017 the size for a pointer's target, returns 1 for void *, or errors for
12018 incomplete types.
12019 (value_add, value_sub): use find_size_for_pointer_math.
12020
12021 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12022
12023 * linux-low.c (linux_look_up_symbols): New hook.
12024 (linux_target_ops): Add linux_look_up_symbols.
12025 * remote-utils.c (decode_address): New function.
12026 (look_up_one_symbol): New function.
12027 * server.c (handle_query): Call target look_up_symbols hook.
12028 * server.h (look_up_one_symbol): Add prototype.
12029 * target.h (struct target_ops): Add look_up_symbols hook.
12030
12031 2002-04-09 Andrew Cagney <ac131313@redhat.com>
12032
12033 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
12034 override FP_REGNUM with frame->fp. Update copyright.
12035 * parse.c (num_std_regs, std_regs): Delete.
12036 (target_map_name_to_register): Do not search std_regs. Update
12037 function description.
12038 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
12039 declarations. Update copyright.
12040 Fix PR gdb/251.
12041
12042 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
12043
12044 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
12045 after the last symbol in a block.
12046
12047 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
12048
12049 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
12050 is non zero as a found symbol.
12051
12052 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12053
12054 * findvar.c: Include "builtin-regs.h".
12055 (value_of_register): Call value_of_builtin_reg when applicable.
12056 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
12057 (target_map_name_to_register): Call
12058 builtin_reg_map_name_to_regnum.
12059 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
12060 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
12061 (builtin_regs_h): Define.
12062 (builtin-regs.o): New target.
12063 (findvar.o): Add $(builtin_regs_h).
12064 * builtin-regs.c, builtin-regs.h: New files.
12065 * std-regs.c: New file.
12066 Partial fix for PR gdb/251.
12067
12068 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12069
12070 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
12071 it's no longer required.
12072
12073 2002-04-08 Andrew Cagney <ac131313@redhat.com>
12074
12075 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
12076
12077 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12078
12079 From Jimi X <jimix@watson.ibm.com>:
12080 * rs6000-tdep.c (rs6000_software_single_step): Use
12081 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
12082 and size. Use target_insert_breakpoint() and
12083 target_remove_breakpoint() to insert and remove breakpoints
12084 instead of explicit memory reads and writes.
12085
12086 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12087
12088 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
12089 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
12090 ELF_OBJECT_FORMAT ifdef.
12091
12092 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12093
12094 From Jimi X <jimix@watson.ibm.com>:
12095 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
12096
12097 2002-04-08 Kevin Buettner <kevinb@redhat.com>
12098
12099 From Jimi X <jimix@watson.ibm.com>:
12100 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
12101 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
12102
12103 2002-04-07 Mark Kettenis <kettenis@gnu.org>
12104
12105 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
12106 s/asprintf/xasprintf/.
12107 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
12108
12109 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12110
12111 I believe Jeff Law denies responsability for this one:
12112 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
12113 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
12114 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
12115 Work-around for PR gdb/366.
12116
12117 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12118
12119 * remote-e7000.c (write_small, e7000_read_inferior_memory,
12120 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
12121 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
12122
12123 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
12124
12125 * sh-tdep.c (sh_fp_frame_init_saved_regs,
12126 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
12127 information.
12128
12129 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12130
12131 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
12132 maintainer.
12133
12134 2002-04-07 Andrew Cagney <ac131313@redhat.com>
12135
12136 * README (Reporting Bugs in GDB): Document the bug web page as the
12137 prefered way of submitting bugs.
12138 Fix PR gdb/402.
12139
12140 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12141
12142 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
12143 -1. Update comment.
12144 * gdbarch.h, gdbarch.c: Re-generate.
12145
12146 2002-04-07 Andreas Schwab <schwab@suse.de>
12147
12148 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12149 buffer to regcache_collect.
12150
12151 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12152
12153 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12154 * gdbarch.c, gdbarch.h: Re-generate.
12155
12156 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12157
12158 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12159 declaration. Fix -Werror.
12160
12161 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12162
12163 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12164 * gdbarch.c: Regenerate.
12165
12166 2002-04-05 Michael Snyder <msnyder@redhat.com>
12167
12168 * breakpoint.c (clear_command): Rewrite middle section to
12169 combine two loops with identical control conditions.
12170 Add a cleanup to eliminate a memory leak.
12171 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12172
12173 2002-04-05 H.J. Lu (hjl@gnu.org)
12174
12175 * solib-svr4.c (bkpt_names): Add "__start".
12176
12177 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12178
12179 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12180 as test for 64 bit target.
12181
12182 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12183
12184 * h8500-tdep.c (h8500_write_fp): Delete function.
12185 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12186 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12187 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12188 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12189 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12190 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12191 (s390_write_fp):
12192 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12193 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12194 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12195 (d10v_write_fp): Delete function.
12196 * inferior.h (write_fp, generic_target_write_fp): Delete
12197 declarations.
12198 * regcache.c (generic_target_write_fp): Delete function.
12199 (write_fp): Delete function.
12200 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12201 * gdbarch.h, gdbarch.c: Regenerate.
12202 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12203 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12204 (sparc64_write_fp): Delete declaration.
12205 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12206 (h8500_write_fp): Delete declaration.
12207
12208 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12209
12210 * sparc-tdep.c (sparc64_write_fp): Delete.
12211 (sparc_push_dummy_frame): Replace write_fp call with code to store
12212 the FP directly.
12213 (sparc_gdbarch_init): Do not initialize write_fp.
12214
12215 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12216
12217 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12218 clause.
12219
12220 2002-03-29 Jim Blandy <jimb@redhat.com>
12221
12222 * stack.c (get_selected_block): Add new argument `addr_in_block',
12223 used to return the exact code address we used to select the block,
12224 not just the block.
12225 * blockframe.c (get_frame_block, get_current_block): Same.
12226 * frame.h (get_frame_block, get_current_block,
12227 get_selected_block): Update declarations.
12228 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12229 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12230
12231 2002-04-05 Michael Snyder <msnyder@redhat.com>
12232
12233 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12234 warning message.
12235
12236 2002-04-05 J. Brobecker <brobecker@gnat.com>
12237
12238 * utils.c (xfullpath): New function.
12239 * defs.h (xfullpath): Add declaration.
12240 * source.c (openp): Use xfullpath in place of gdb_realpath to
12241 avoid resolving the basename part of filenames when the
12242 associated file is a symbolic link. This fixes a potential
12243 inconsistency between the filenames known to GDB and the
12244 filenames it prints in the annotations.
12245 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12246 to be able to match a filename with either the real filename, or
12247 the name of any symbolic link to this file.
12248 (lookup_partial_symtab): Ditto.
12249
12250 2002-04-04 Michael Snyder <msnyder@redhat.com>
12251
12252 * breakpoint.c: Add support for hardware breakpoints in overlays.
12253 (overlay_events_enabled): New state variable.
12254 (insert_breakpoints): Use overlay_events_enabled to decide
12255 whether to attempt to set a breakpoint at the overlay load addr.
12256 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12257 (remove_breakpoint): Use overlay_events_enabled to decide
12258 whether breakpoints need to be removed from overlay load addr.
12259 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12260 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12261 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12262 disable_overlay_breakpoints): Update overlay_events_enabled.
12263
12264 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12265
12266 * dwarf2read.c (struct function_range): New.
12267 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12268 (check_cu_functions): New.
12269 (read_file_scope): Initialize global function lists.
12270 Call dwarf_decode_line after processing children.
12271 (read_func_scope): Add to global function list.
12272 (dwarf_decode_lines): Call check_cu_functions everywhere
12273 record_line is called. Call record_line with a linenumber
12274 of 0 to mark sequence ends.
12275
12276 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12277
12278 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12279 change sync with glibc.
12280
12281 2002-04-03 Jim Blandy <jimb@redhat.com>
12282
12283 * configure.in: Call AC_C_INLINE.
12284 * configure: Regenerated.
12285
12286 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12287
12288 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12289 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12290
12291 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12292
12293 * NEWS: Mention gcore support on FreeBSD/i386.
12294
12295 * fbsd-proc.c: New file.
12296 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12297 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12298
12299 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12300 while statement.
12301
12302 2002-03-29 Jim Blandy <jimb@redhat.com>
12303
12304 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12305 unescaped newlines in string literals, but newer ones don't. So
12306 escape them.
12307
12308 2002-03-26 Michael Snyder <msnyder@redhat.com>
12309 Andrew Cagney <cagney@redhat.com>
12310
12311 * cli/cli-dump.c: New file. Dump memory to file,
12312 restore file to memory.
12313 * cli/cli-dump.h: New file.
12314 * Makefile.in: Add rules, dependencies for cli-dump.o.
12315 * NEWS: Mention new commands.
12316
12317 2002-03-28 Michael Snyder <msnyder@redhat.com>
12318
12319 * symfile.c (symbol_file_add): Move test for null symbols to later.
12320
12321 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12322
12323 From veksler at il.ibm.com:
12324 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12325 the xstrduped original path.
12326 Fix PR gdb/417.
12327
12328 2002-03-27 Michael Snyder <msnyder@redhat.com>
12329
12330 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12331 * infcmd.c (_initialize_infcmd): Ditto.
12332 * language.c (_initialize_language): Ditto.
12333 * symfile.c (_initialize_symfile): Ditto.
12334 * top.c (_init_main): Ditto.
12335 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12336
12337 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12338
12339 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12340 vector registers handling.
12341 (skip_prologue): Handle new AltiVec instructions. Fill in new
12342 fields of frame data.
12343 (frame_get_saved_regs): Fill in information for AltiVec registers.
12344
12345 2002-03-27 Jim Blandy <jimb@redhat.com>
12346
12347 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12348 a function; leave this macro here to invoke that function.
12349 (symbol_init_mangled_name): Declaration for that function.
12350 * symtab.c (symbol_init_mangled_name): New function.
12351
12352 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12353
12354 * valarith.c: Replace strerror with safe_strerror.
12355 * tracepoint.c: Ditto.
12356 * lin-lwp.c: Ditto.
12357 * go32-nat.c: Ditto.
12358 * inflow.c: Ditto.
12359 * gnu-nat.c: Ditto.
12360
12361 2002-03-27 Andreas Schwab <schwab@suse.de>
12362
12363 * event-top.c (command_line_handler): Remove useless if.
12364
12365 2002-03-27 Andreas Jaeger <aj@suse.de>
12366
12367 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12368 comment.
12369
12370 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12371
12372 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12373 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12374 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12375 (x86_64_linux_dr_get_status, supply_gregset),
12376 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12377 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12378 (x86_64_register_info_table): Add.
12379 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12380 (x86_64_register_raw_size, x86_64_register_virtual_type),
12381 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12382 general x86_64_register_info_table.
12383 (i386_gdbarch_init): gdbarch_register_bytes is now set
12384 dynamicaly during initialization.
12385 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12386 * gdbserver/linux-x86-64-low.c: Ditto.
12387
12388 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12389
12390 * gdbserver/server.c (main): Call target_signal_to_host_p
12391 and target_signal_to_host on signals received from the remote.
12392 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12393 target_signal_from_host on signals sent to the remote.
12394 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12395 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12396
12397 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12398
12399 * signals/signals.c: Include "server.h" in gdbserver build.
12400 (target_signal_from_name): Don't use STREQ.
12401 (_initialize_signals): Likewise. Don't include function in
12402 gdbserver build.
12403
12404 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12405
12406 * signals.c: Moved to...
12407 * signals/signals.c: Here.
12408 * Makefile (signals.o): Update.
12409
12410 2002-03-26 Jeff Law (law@redhat.com)
12411
12412 * somread.c (som_symtab_read): Remove some commented out code and
12413 updated related comments. Do not set the minimal symbol table to
12414 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12415 in a dynamic executable.
12416 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12417 where we are unable to find the minimal symbol for the given
12418 PC value.
12419
12420 2002-03-25 Jeff Law (law@redhat.com)
12421
12422 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12423
12424 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12425
12426 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12427
12428 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12429
12430 * command.h: Update copyright.
12431 (struct cmd_list_element): Replace definition with opaque
12432 declaration.
12433 (enum cmd_types): Document that it will eventually be moved to
12434 cli/cli-decode.h
12435 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12436 (MALLOCED_REPLACEMENT): Delete macro.
12437 * Makefile.in (cli_decode_h): Add $(command_h).
12438 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12439 * top.c: Include "cli/cli-decode.h".
12440 * completer.c: Include "cli/cli-decode.h".
12441 * maint.c: Include "cli/cli-decode.h".
12442 * cli/cli-decode.h: Include "command.h".
12443 (enum command_class): Delete.
12444 (enum cmd_types): Comment out.
12445 (enum cmd_auto_boolean): Delete.
12446 (enum var_types): Delete.
12447
12448 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12449
12450 * cli/cli-decode.c: Include "gdb_assert.h".
12451 (add_set_or_show_cmd): New static function.
12452 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12453 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12454 all fields, such as func, from the set command.
12455
12456 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12457
12458 * MAINTAINERS (sh-elf): Change warning flag to -w.
12459
12460 2002-03-23 Andrew Cagney <cagney@redhat.com>
12461
12462 * defs.h (error): Add printf format attribute.
12463 * thread-db.c (thread_from_lwp): Fix error format string.
12464 * stack.c (parse_frame_specification): Ditto.
12465 * cli/cli-decode.c (undef_cmd_error): Ditto.
12466 * scm-lang.c (scm_lookup_name): Ditto.
12467 * tracepoint.c (trace_error): Ditto.
12468 * remote-utils.c (usage): Ditto.
12469 * remote.c (compare_sections_command): Ditto.
12470 Fix PR gdb/328.
12471
12472 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12473
12474 * gdbtypes.c (append_composite_type_field): New function.
12475 (init_composite_type): New function.
12476 * gdbtypes.h (append_composite_type_field): Declare.
12477 (init_composite_type): Ditto.
12478
12479 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12480
12481 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12482 function.
12483 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12484 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12485 structure returning convention for SYSV ABI case, but not
12486 for GNU/Linux, FreeBSD, or NetBSD.
12487
12488 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12489
12490 * symtab.h (lookup_block_symbol): Add mangled_name argument
12491 to prototype.
12492
12493 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12494 with new mangled_name argument.
12495 * linespec.c (decode_line_1): Likewise.
12496 * valops (value_of_this): Likewise.
12497 * symtab.c (lookup_transparent_type): Likewise.
12498 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12499 (lookup_symbol): If we are given a mangled name, pass it down
12500 to lookup_symbol_aux.
12501 (lookup_block_symbol): If we are given a mangled name to check
12502 against, only return symbols which match it.
12503
12504 2002-03-22 Christopher Faylor <cgf@redhat.com>
12505
12506 * win32-nat.c (child_create_inferior): Check for proper shell to use
12507 here, in case the user changes it on the fly.
12508 (_initialize_inftarg): Remove shell path considerations.
12509
12510 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12511
12512 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12513 for gdbarch_max_register_raw_size and max_register_virtual_size.
12514 Adjust copyright year.
12515
12516 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12517
12518 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12519 in a function to cover the entire beginning of the function
12520 as well if it does not already.
12521
12522 2002-03-21 Tom Rix <trix@redhat.com>
12523
12524 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12525 (rs6000_ptrace64): Renamed from ptrace64.
12526
12527 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12528
12529 * gdbserver/remote-utils.c (remote_open): Don't call
12530 getprotobyname, we're all using TCP here so just use
12531 IPPROTO_TCP.
12532 * gdbserver/gdbreplay.c (remote_open): Ditto.
12533
12534 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12535
12536 * regcache.c (_initialize_regcache): No need to call
12537 build_regcache() at this time; it gets called whenever
12538 the gdbarch changes.
12539
12540 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12541
12542 * sparc-nat.c: Include sys/param.h where possible.
12543
12544 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12545
12546 Fix PR gdb/422.
12547 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12548 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12549 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12550 complex types.
12551 * stabsread.c (rs6000_builtin_type): Likewise.
12552 (read_sun_floating_type): Likewise.
12553
12554 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12555
12556 * stabsread.c (read_member_functions): Remove skip code for duplicate
12557 constructor/destructor methods. Use standard parsing for these
12558 methods and just do not chain them to the list of methods after
12559 parsing.
12560
12561 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12562
12563 * coffread.c: Remove redundant static declarations. Replace
12564 occurrences of `PTR' with `void *'.
12565 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12566 * top.h (quit_cover): Likewise.
12567 * defs.h (catch_errors): Likewise.
12568
12569 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12570
12571 * defs.h (XMALLOC): Define.
12572 * gdb-events.sh (XMALLOC): Delete macro.
12573 * gdb-events.c, gdb-events.h: Regenerate.
12574 * gdbarch.sh (XMALLOC): Delete macro.
12575 * gdbarch.c: Regenerate.
12576 * serial.c (XMALLOC): Delete macro.
12577 * ui-file.c (XMALLOC): Ditto.
12578 * ser-unix.h (XMALLOC): Ditto.
12579 * sh-tdep.c (XMALLOC): Ditto.
12580 * ui-out.c (XMALLOC): Ditto.
12581 * utils.c (XMALLOC): Ditto.
12582 * i386-tdep.c (XMALLOC): Ditto.
12583 * gdb-events.c (XMALLOC): Ditto.
12584 * d10v-tdep.c (XMALLOC): Ditto.
12585 * cli-out.c (XMALLOC): Ditto.
12586
12587 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12588 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12589 * ui-file.c, ui-out.c: Ditto.
12590
12591 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12592
12593 * command.h (struct cmd_list_element): Add field context.
12594 (set_cmd_context, get_cmd_context): Declare.
12595 * cli/cli-decode.h: Ditto.
12596 * cli/cli-decode.c (get_cmd_context): New function.
12597 (set_cmd_context): New function.
12598 (add_cmd): Initialize context.
12599 Part of fixing PR gdb/145 and PR gdb/146.
12600
12601 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12602
12603 * cli/cli-decode.c (cmd_type): New function.
12604 * command.h (cmd_type): Declare.
12605 * infrun.c (set_schedlock_func): Call function cmd_type.
12606 * kod.c (kod_set_os): Call cmd_type.
12607 * cris-tdep.c (cris_version_update): Use function cmd_type.
12608 (cris_mode_update, cris_abi_update): Ditto.
12609
12610 * command.h: (execute_cmd_post_hook): Declare.
12611 (execute_cmd_pre_hook): Declare.
12612 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12613 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12614 functions. Execute pre/post hook while ensuring that afterwords
12615 hook_in is cleared.
12616 * top.c (execute_command): Use execute_cmd_post_hook, and
12617 execute_cmd_pre_hook to execute pre/post commands.
12618 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12619 hook_stop_stub.
12620 (hook_stop_stub): Call execute_cmd_pre_hook.
12621
12622 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12623
12624 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12625 set'' and this leads to a core dump. Move xstrdup of
12626 operating_system to after check that it is not NULL.
12627
12628 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12629
12630 * kod.c (kod_set_os): Remove unnecessary check that
12631 ``command->type'' is set_cmd.
12632
12633 * valprint.c (set_input_radix): Use input_radix.
12634 (set_output_radix): Use output_radix.
12635 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12636 isn't reverted.
12637
12638 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12639
12640 * value.h (struct value): Delete field ``substring_addr''. Change
12641 aligner fields to force_doublest_align, force_longest_align,
12642 force_core_addr_align and force_pointer_aligh.
12643
12644 * value.h (struct value): Fix typo in above change.
12645
12646 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12647
12648 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12649 to fix internal_error from ``maintenance print architecture''.
12650
12651 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12652
12653 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12654 for gcc versions after gcc-2.8.1.
12655
12656 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12657
12658 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12659 for method resolution. Restore adjustment of ``this'' pointer after
12660 calling value_struct_elt, which was accidentally removed during the
12661 HP merge.
12662
12663 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12664
12665 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12666 value_of_register.
12667 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12668 get_saved_register.
12669 * value.h (value_of_register): Update.
12670
12671 2002-03-14 Richard Henderson <rth@redhat.com>
12672
12673 * configure.in: Detect declaration for canonicalize_file_name.
12674 * utils.c (canonicalize_file_name): Declare, if needed.
12675 (gdb_realpath): Prefer realpath if available and usable.
12676 * config.in, configure: Rebuild.
12677
12678 2002-03-14 Richard Henderson <rth@redhat.com>
12679
12680 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12681 a constant array bound.
12682
12683 * MAINTAINERS: Add myself to write-after-approval.
12684
12685 2002-03-14 Michael Snyder <msnyder@redhat.com>
12686
12687 * symfile.c (syms_from_objfile): Return immediately if no syms.
12688 (symbol_file_add): Return immediately if no syms.
12689 (find_sym_fns): Return immediately if no syms.
12690
12691 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12692
12693 * gdbserver/remote-util.c (remote_open): Print remote-side's
12694 IP address when remote debugging over the network.
12695
12696 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12697
12698 * config/sparc/fbsd.mh: Fix copyright.
12699 * config/sparc/fbsd.mt: Likewise.
12700
12701 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12702
12703 * MAINTAINERS: Fix typo in name of gdb warnings option.
12704 (x86-64): Fix formating so that this can be parsed by awk.
12705
12706 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12707
12708 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12709 * defs.h: Include "gdb/signals.h".
12710 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12711
12712 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12713
12714 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12715 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12716 from x86-64-tdep.h
12717
12718 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12719 Don Howard <dhoward@redhat.com>
12720
12721 * mips-tdep.c (ST0_FR): Define.
12722 (mips2_fp_compat): New function, temporarily disabled.
12723 (mips_read_fp_register_single): New function.
12724 (mips_read_fp_register_double): New function.
12725 (mips_print_register): Use them.
12726 (do_fp_register_row): Likewise.
12727
12728 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12729
12730 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12731 approval''.
12732
12733 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12734
12735 * stabsread.c (read_member_functions): Fix is_stub test for
12736 static member functions, improve comment.
12737
12738 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12739
12740 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12741 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12742 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12743 commands that set boolean values.
12744 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12745 (arm_rdi_resume): Always initialize PC.
12746 (arm_rdi_open): Don't use rslt as a boolean.
12747 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12748 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12749 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12750 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12751
12752 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12753
12754 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12755 * configure: Rebuilt.
12756
12757 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12758
12759 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12760 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12761
12762 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12763
12764 * cli/cli-decode.c (set_cmd_completer): New function.
12765 * command.h (set_cmd_completer): Declare.
12766 * cli/cli-decode.h (set_cmd_completer): Ditto.
12767
12768 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12769 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12770 * win32-nat.c (_initialize_inftarg): Ditto.
12771 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12772 * proc-api.c (_initialize_proc_api): Ditto.
12773 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12774 * source.c (_initialize_source): Ditto.
12775 * exec.c (_initialize_exec): Ditto.
12776 * solib.c (_initialize_solib): Ditto.
12777 * top.c (init_main): Ditto.
12778 * tracepoint.c (_initialize_tracepoint): Ditto.
12779 * symfile.c (_initialize_symfile): Ditto.
12780 * printcmd.c (_initialize_printcmd): Ditto.
12781 * infcmd.c (_initialize_infcmd): Ditto.
12782 * corefile.c (_initialize_core): Ditto.
12783
12784 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12785
12786 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12787
12788 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12789
12790 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12791
12792 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12793
12794 * NEWS: Update headings, 5.2 has branched.
12795
12796 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12797
12798 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12799 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12800 (register_addr, REGISTER_RAW_SIZE): Likewise.
12801 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12802 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12803
12804 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12805
12806 * MAINTAINERS (x86-64): Add myself.
12807 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12808 changed value_ptr -> struct value *
12809
12810 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12811
12812 * configure.host (sparc64-*-freebsd): Add.
12813 * configure.tgt: Likewise.
12814 * config/sparc/fbsd.mh: New file.
12815 * config/sparc/fbsd.mt: Likewise.
12816 * config/sparc/nm-fbsd.h: Likewise.
12817 * config/sparc/tm-fbsd.h: Likewise.
12818
12819 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12820
12821 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12822 regformats/reg-s390x.dat.
12823
12824 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12825
12826 * utils.c: Add FIXME explaining true/false problem.
12827
12828 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12829
12830 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12831
12832 2002-02-28 Michael Chastain <mec@shout.net>
12833
12834 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12835
12836 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12837
12838 * gdbserver/linux-s390-low.c: New file.
12839 * regformats/reg-s390.dat: New file.
12840 * regformats/reg-s390x.dat: New file.
12841 * gdbserver/configure.srv: Add S/390.
12842 * gdbserver/Makefile.in: Add S/390.
12843 * configure.tgt: Enable gdbserver for S/390.
12844
12845 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12846
12847 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12848 first line of the doc string for "info dos", except at the end of
12849 the sentence, since the short help stops at the first period.
12850
12851 2002-02-28 Jason Merrill <jason@redhat.com>
12852
12853 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12854
12855 2002-02-27 Fred Fish <fnf@redhat.com>
12856
12857 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12858 comment (dumy -> dummy).
12859
12860 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12861
12862 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12863
12864 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12865
12866 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12867
12868 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12869
12870 * gdbserver/acconfig.h: New file.
12871 * gdbserver/i387-fp.c: New file.
12872 * gdbserver/i387-fp.h: New file.
12873 * gdbserver/linux-x86-64.c: New file.
12874 * regformats/reg-x86-64.dat: New file.
12875 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12876 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12877 * gdbserver/configure.in: Add support for regsets.
12878 * gdbserver/config.in: Regenerate.
12879 * gdbserver/configure: Regenerate.
12880 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12881 * gdbserver/linux-low.h: New file.
12882 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12883 for regsets.
12884 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12885 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12886 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12887 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12888 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12889 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12890 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12891 "i387-fp.h". Add PTRACE_GETREGS and friends.
12892 * gdbserver/regcache.c (supply_register): New function.
12893 (supply_register_by_name): New function.
12894 (collect_register): New function.
12895 (collect_register_by_name): New function.
12896
12897 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12898
12899 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12900 (config.status): Add configure.srv dependency.
12901 (server_h): Add config.h dependency.
12902
12903 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12904
12905 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12906 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12907 * gdbserver/configure.srv: Change i386-*-linux* to use
12908 reg-i386-linux.o.
12909
12910 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12911
12912 * x86-64-tdep.c: Re-indent. Update copyright date.
12913
12914 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12915
12916 From Michal Ludvig <mludvig@suse.cz>:
12917 * x86-64-tdep.c (value.h): Delete.
12918 (gdb_assert.h): Include.
12919 (x86_64_register_convert_to_virtual,
12920 x86_64_register_convert_to_raw ): Add check which lets only
12921 floating-point values to be converted.
12922 (value_push): Delete.
12923 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12924 (i386_gdbarch_init): Number of register_bytes fixed.
12925
12926 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12927
12928 * MAINTAINERS: Add x86-64 target.
12929
12930 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12931
12932 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12933 * osfsolib.c (solib_map_sections): Ditto.
12934 * irix5-nat.c (solib_map_sections): Ditto.
12935 * corelow.c (gdb_check_format): Ditto.
12936 * symfile.c (symfile_bfd_open): Ditto.
12937 * solib.c (solib_map_sections): Ditto.
12938 Fix PR gdb/354.
12939
12940 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12941
12942 * remote.c (_initialize_remote): By default, disable ``e'' and
12943 ``E'' step out-of-range packets.
12944
12945 2002-02-26 Andreas Schwab <schwab@suse.de>
12946
12947 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12948 m68k_linux_frame_saved_pc.
12949 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12950 in_sigtramp.
12951 (SIGCONTEXT_PC_OFFSET): Remove.
12952 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12953 m68k_linux_sigtramp_saved_pc): New functions.
12954 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12955 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12956 (UCONTEXT_PC_OFFSET): Define.
12957 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12958 non-RT and RT signal trampolines.
12959
12960 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12961
12962 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12963 (TARGET_NBPG, STACK_END_ADDR): Delete
12964 (VARIABLES_INSIDE_BLOCK): Delete.
12965
12966 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12967
12968 * utils.c (perror_with_name): Make string parameter constant.
12969 (print_sys_errmsg): Ditto.
12970 (query): Ditto.
12971 * defs.h (perror_with_name): Update.
12972 (print_sys_errmsg): Update.
12973 (query): Update.
12974
12975 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12976
12977 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12978 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12979
12980 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12981
12982 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12983 if it already matches the current architecture from the exec file.
12984 Include arch-utils.h for gdbarch_info_init prototype.
12985 * Makefile.in (rs6000-nat.o): Update dependencies.
12986
12987 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12988
12989 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12990 list of exported variables.
12991
12992 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12993
12994 * gdbserver/configure.srv: New file.
12995 * gdbserver/configure.in: Use configure.srv instead
12996 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12997 from it.
12998 * gdbserver/configure: Regenerated.
12999 * gdbserver/terminal.h: New file.
13000 * gdbserver/Makefile.in: Update for configure changes. Remove
13001 more unneeded include paths.
13002
13003 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13004
13005 From wiz at danbala:
13006 * config/sparc/tm-sp64.h: Fix grammar and typos.
13007 Fix PR gdb/287.
13008
13009 2002-02-24 Andrew Cagney <ac131313@redhat.com>
13010
13011 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
13012 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
13013 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
13014 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
13015 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
13016 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
13017 * s390-tdep.c: Ditto.
13018 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
13019 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
13020 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
13021 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
13022 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
13023 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
13024 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
13025 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
13026 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
13027 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
13028 Fix PR gdb/378.
13029
13030 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13031
13032 * lin-thread.c: Delete file.
13033 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
13034 to gdb_proc_service.h.
13035 * configure: Re-generate.
13036
13037 * ocd.c (ocd_open): Do not try to open the "ocd" device.
13038 * serial.c (serial_open): Delete check for "ocd".
13039 Fix PR gdb/349.
13040
13041 * Makefile.in (linux-thread.o): Delete target.
13042 * linux-thread.c: Delete file.
13043
13044 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
13045 renamed SH files to be consistent.
13046
13047 * symtab.c (sort_search_symbols): Use xfree.
13048
13049 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13050
13051 * arm-linux-tdep.c (arm_linux_init_abi): Register
13052 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
13053 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
13054 definition with undef, since we don't want the sysvr4 definition.
13055 (SKIP_TRAMPOLINE_CODE): Likewise.
13056
13057 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13058
13059 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
13060
13061 * configure.in: (AC_CHECK_FUNCS) Added test for
13062 canonicalize_file_name Regenerated.
13063 * config.in, configure: Regenerated.
13064 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
13065 defined use canonicalize_file_name.
13066
13067 2002-02-23 Michael Chastain <mec@shout.net>
13068
13069 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
13070
13071 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13072
13073 * README: Remove references to cygnus.com.
13074 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
13075 dot com'' form. Remove references to cygnus.com and sourceware.
13076
13077 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13078
13079 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
13080 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
13081 1003.1-2001 no longer allows "head -1".
13082 * gdb/Makefile.in (version.c): Likewise.
13083 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
13084 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
13085 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
13086
13087 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13088
13089 * cli/cli-decode.c (cmd_cfunc_eq): New function.
13090 * command.h (cmd_cfunc_eq): Declare.
13091 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
13092
13093 * cli/cli-cmds.h (is_complete_command): Change parameter to a
13094 ``struct cmd_list_element *''.
13095 * cli/cli-cmds.c (is_complete_command): Update. Use
13096 cmd_cfunc_eq.
13097 * top.c (execute_command): Pass the command to
13098 is_complete_command.
13099 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
13100
13101 2002-02-23 Andrew Cagney <ac131313@redhat.com>
13102
13103 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
13104 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
13105 architecture defines.
13106 * s390-tdep.c (s390_gdbarch_init): Likewise.
13107
13108 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13109
13110 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
13111 (arm_linux_push_arguments): Likewise.
13112 (arm_linux_init_abi): Register them. Also register linux-specific
13113 call_dummy_words.
13114 (find_minsym_and_objfile): Use strcmp, not STREQ.
13115 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
13116 (arm_linux_call_dummy_words): Delete declaration.
13117 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
13118 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
13119 declarations.
13120 (LOWEST_PC): Delete.
13121
13122 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13123
13124 * maint.c (print_section_info): Do not prepend `0x' to filepos
13125 output, it will be handled by local_hex_string_custom.
13126
13127 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
13128
13129 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
13130 (store_newfpe_double, store_newfpe_extended, store_fpregister)
13131 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
13132
13133 2002-02-22 Jim Blandy <jimb@redhat.com>
13134
13135 Indicate that the bcache functions don't change the strings
13136 they're passed.
13137 * bcache.h (bcache, hash): Add `const' keywords to declarations.
13138 * bcache.c (bcache, hash): Add `const' keywords to definitions.
13139
13140 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
13141
13142 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
13143
13144 2002-02-21 Christopher Faylor <cgf@redhat.com>
13145
13146 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13147 find the complete path to a loaded DLL.
13148
13149 2002-02-21 Fred Fish <fnf@redhat.com>
13150
13151 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13152 that marks the end of the range of a function, enter a line number
13153 entry that has a line number of zero and a PC offset that matches
13154 the end of the function. This starts a range of PC's for which no
13155 line number information is known.
13156 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13157 PC's for which no line number info is found (line number is zero)
13158 then we didn't find any valid line information.
13159 * symtab.h: Document use of zero line number entry.
13160
13161 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13162
13163 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13164 (have_ptrace_getvrregs): Define for run time checks.
13165 (gdb_vrregset_t): New type for Altivec register handling.
13166 (fetch_register, store_register): Fetch/store altivec register
13167 when needed.
13168 (fetch_altivec_register, store_altivec_register): New functions.
13169 (supply_vrregset, fill_vrregset): New functions.
13170 (fetch_altivec_registers, store_altivec_registers): New functions.
13171 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13172 registers as well.
13173
13174 2002-02-21 Jiri Smid <smid@suse.cz>
13175
13176 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13177
13178 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13179
13180 * Makefile.in (armnbsd-nat.o): Update dependencies.
13181 * armnbsd-nat.c (supply_gregset): New function. Common code to
13182 supply the integer register set.
13183 (supply_fparegset): New function. Similar for FPA registers.
13184 (fetch_regs, fetch_fp_regs): Use them.
13185 (fetch_core_registers): Likewise.
13186 (fetch_elfcore_registers): New function.
13187 (arm_netbsd_elfcore_fns): New core-file type specification.
13188 (_initialize_arm_netbsd_nat): Register it.
13189
13190 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13191
13192 * armnbsd-nat.c: Include gdbcore.h.
13193 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13194 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13195 'void' to declaration, to shut up ARI.
13196 (fetch_core_registers): Make static. Rewrite using supply_register.
13197 (arm_netbsd_core_fns): New core-file type specification.
13198 (_initialize_arm_netbsd_nat): New function.
13199
13200 2002-02-21 Christopher Faylor <cgf@redhat.com>
13201
13202 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13203 value.
13204
13205 2002-02-20 Christopher Faylor <cgf@redhat.com>
13206
13207 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13208 fails.
13209
13210 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13211
13212 * jv-exp.y (parse_number): Change type of implicit longs
13213 to builtin_type_uint64.
13214
13215 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13216
13217 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13218 to be an integer instead of a `union wait'.
13219
13220 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13221
13222 * mips-linux-nat.c: Call the operating system GNU/Linux.
13223 * mips-linux-tdep.c: Likewise.
13224 * mips-tdep.c: Likewise.
13225
13226 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13227
13228 Fix PR gdb/265.
13229 * jv-exp.y (parse_number): Handle 64-bit integers.
13230
13231 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13232
13233 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13234 AC_STDC_HEADERS to AC_HEADER_STDC.
13235 * gdbserver/configure: Regenerated.
13236
13237 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13238
13239 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13240 is defined.
13241 * sparc-tdep.c (get_longjmp_target): Likewise.
13242
13243 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13244
13245 * News: Add news about ARM and Multi-arch. Mention the new target
13246 arm*-*-netbsd*.
13247
13248 2002-02-19 Jim Blandy <jimb@redhat.com>
13249
13250 * stabsread.c (error_type_complaint): Improve error message.
13251
13252 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13253
13254 * gdbserver/README: Update documentation.
13255 * gdbserver/configure.in: Update configury to match documentation.
13256 * gdbserver/Makefile.in: Likewise.
13257 * gdbserver/configure: Regenerated.
13258 * gdbserver/aclocal.m4: New file, generated by aclocal.
13259 * gdbserver/config.in: New file, generated by autoheader.
13260
13261 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13262
13263 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13264 armnbsd-nat.c.
13265
13266 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13267
13268 * arm-tdep.h (enum arm_float_model): New enum.
13269 (struct gdbarch_tdep): Add fp_model.
13270 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13271 up floating-point conversions until we know the floating-point model
13272 in use by the inferior. Don't complain about being unable to
13273 determine the ABI of the inferior when we don't have one.
13274 (arm_extract_return_value): Support different floating-point models.
13275 (arm_store_return_value): Likewise.
13276 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13277 ARM_FLOAT_SOFT.
13278 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13279
13280 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13281
13282 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13283 of ``current_gdbarch''.
13284
13285 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13286
13287 * armnbsd-nat.c : ANSIfy all function declarations.
13288 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13289 (fetch_inferior_registers): Re-implement in terms of above.
13290 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13291 (store_inferior_registers): Re-implement in terms of above.
13292
13293 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13294
13295 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13296 kernel.
13297 * arm-linux-tdep.c: Likewise.
13298 * config/arm/tm-linux.h: Likewise.
13299
13300 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13301
13302 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13303 * config/arm/nbsd.mt (TM_FILE): Delete.
13304 * config/arm/tm-nbsd.h: Delete.
13305
13306 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13307
13308 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13309 Initialize CALL_DUMMY_LENGTH.
13310
13311 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13312
13313 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13314 function.
13315 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13316 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13317 defines one thing and that is incorrect for this port.
13318 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13319
13320 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13321
13322 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13323
13324 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13325
13326 * win32-nat.c (display_selector): New function. Displays information
13327 about the information returned by GetThreadSelectorEntry API function.
13328 (display_selectors): New function. Displays the infomation of
13329 the selector given as argument, or of CS, DS ans FS selectors
13330 if no argument is given.
13331 ( _initialize_inftarg): Add "w32" as info prefix command.
13332 Add "info w32 selector" as command calling display_selectors.
13333
13334 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13335
13336 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13337 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13338 if not defined.
13339
13340 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13341
13342 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13343
13344 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13345
13346 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13347 (arm_fix_call_dummy): Call it.
13348 (arm_call_dummy_breakpoint_offset): Delete.
13349 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13350 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13351
13352 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13353
13354 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13355 Default to func_frame_chain_valid.
13356 * gdbarch.h, gdbarch.c: Re-generate.
13357 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13358
13359 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13360
13361 * ppc-linux-nat.c: Update copyright.
13362 (fetch_register, store_register): Add tid parameter, don't compute
13363 tid here.
13364 (fetch_ppc_registers, store_ppc_registers): Add tid
13365 parameter. Pass it along to callees.
13366 (fetch_inferior_registers, store_inferior_registers): Compute tid
13367 here, and pass it to calleed functions.
13368 (fill_gregset, supply_fpregset): Clean up formatting.
13369
13370 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13371
13372 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13373 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13374
13375 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13376
13377 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13378 * gdbarch.c gdbarch.h: Regenerate.
13379 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13380 function.
13381 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13382 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13383 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13384
13385 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13386 * arm-tdep.c (arm_get_longjmp_target): New function.
13387 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13388 this to a positive value register arm_get_longjmp_target as the
13389 longjmp handler.
13390 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13391 (arm_linux_init_abi): Set up longjmp description in tdep.
13392 * armnbsd-nat.c (get_longjmp_target): Delete.
13393 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13394 description in tdep.
13395 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13396 (get_longjmp_target): Delete declaration.
13397 (GET_LONGJMP_TARGET): Delete.
13398 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13399 (GET_LONGJMP_TARGET): Delete.
13400
13401 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13402
13403 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13404 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13405 of ``current_gdbarch''.
13406
13407 2002-02-17 Tom Tromey <tromey@redhat.com>
13408
13409 * cli/cli-cmds.c (compare_strings): New function.
13410 (complete_command): Only print each unique item once.
13411 * completer.h (complete_line): Declare.
13412 * completer.c (complete_line): New function.
13413 (line_completion_function): Use it.
13414
13415 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13416
13417 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13418 * gdbarch.h, gdbarch.c: Re-generate.
13419
13420 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13421
13422 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13423
13424 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13425
13426 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13427 * valops.c (value_arg_coerce): Don't take the address of a reference
13428 to convert an argument to a reference.
13429
13430 2002-02-15 Christopher Faylor <cgf@redhat.com>
13431
13432 * win32-nat.c (get_image_name): New function.
13433 (handle_load_dll): Use get_image_name function.
13434 (get_child_debug_event): Avoid registering debug events until possibly
13435 execed process is started.
13436 (child_create_inferior): Allow invocation via shell so that command
13437 line redirection, etc. works ok.
13438 (_initialize_inftarg): Add new command: "set shell" to control whether
13439 a shell is used to start a process.
13440
13441 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13442
13443 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13444 instead of find_register_by_number.
13445 (cannot_store_register): Likewise.
13446
13447 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13448
13449 * dwarf2read.c: Replace fprintf (stderr, ...) by
13450 fprintf_unfiltered (gdb_stderr, ...).
13451
13452 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13453
13454 * gdbserver/gdbserver.1: Document --attach.
13455
13456 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13457
13458 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13459 descriptions.
13460 * arm-tdep.c (arm_default_arm_le_breakpoint)
13461 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13462 (arm_default_thumb_be_breakpoint): New. Initialize them from
13463 traditional breakpoint defines.
13464 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13465 (arm_gdbarch_init): Initialize new breakpoint variables.
13466 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13467 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13468 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13469 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13470 code out to ...
13471 (arm_netbsd_init_abi_common): ... here; new function.
13472 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13473 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13474 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13475 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13476
13477 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13478
13479 * arm-tdep.h (enum arm_abi): New enum.
13480 (struct gdbarch_tdep): New structure.
13481 (LOWEST_PC): Provide a default.
13482 (arm_gdbarch_register_os_abi): Declare new function.
13483 * arm-tdep.c (arm_abi_names): New array.
13484 (process_note_abi_tag_sections): New function.
13485 (get_elfosabi): New function.
13486 (arm_gdbarch_register_os_abi): New function.
13487 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13488 support for that ABI has been built in, then call the appropriate
13489 configuration routine. Use gdbarch_num_regs() to get the number
13490 of registers.
13491 (arm_dump_tdep): New function.
13492 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13493 place-holder functions.
13494 (_initialize_arm_tdep): Register them.
13495 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13496
13497 * armnbsd-tdep.c: New file.
13498 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13499 * config/arm/nbsd.mt (TDEPFILES): Add it.
13500 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13501
13502 * armnbsd-nat.c: Include regcache.h.
13503 * Makefile.in (armnbsd-nat.o): Update dependency list.
13504
13505 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13506
13507 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13508
13509 * gdbserver/Makefile.in: Fix typos in target rules.
13510
13511 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13512
13513 Fix part of PR gdb/267.
13514 * linespec.c (find_methods): Handle constructors specially for now.
13515
13516 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13517
13518 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13519 handling.
13520 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13521 standard_coerce_float_to_double().
13522
13523 2002-02-14 Christopher Faylor <cgf@redhat.com>
13524
13525 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13526 GDBINIT_FILENAME.
13527
13528 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13529
13530 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13531 find_variant_by_name, because it confuses the multiarch
13532 framework. Return NULL if there isn't an architecture with the
13533 user supplied name, instead of forcing a different one without
13534 recording the change with the multiarch machinery.
13535 (find_variant_by_name): Delete.
13536
13537 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13538
13539 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13540 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13541
13542 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13543
13544 * stack.c (print_frame_info_base): When calling
13545 print_frame_info_listing_hook, set current_source_symtab.
13546
13547 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13548
13549 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13550 and remove unused $(INCLUDE_DIR).
13551 Add regcache.c to OBS.
13552 Add generated register protocol files to clean target.
13553 Update dependencies for new objects, obsolete old target code.
13554
13555 * gdbserver/linux-low.c: Remove all platform-specific code to
13556 new files. Remove various dead code. Update to use regcache
13557 functionality.
13558 * gdbserver/remote-utils.c (fromhex): Add return statement
13559 to quiet warning.
13560 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13561 constant.
13562 (input_interrupt): Add integer parameter to match prototype
13563 of a signal handler.
13564 (outreg): Use register_data ().
13565 (prepare_resume_reply): Use gdbserver_expedite_regs.
13566 * gdbserver/server.c (main): Dynamically allocate own_buf because
13567 PBUFSIZ is no longer constant. Use registers_to_string () and
13568 registers_from_string ().
13569 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13570 for error (), fatal (), and warning (). Update definition of
13571 PBUFSIZ to use regcache functionality. Add include guard.
13572 * gdbserver/utils.c (fatal): Add missing ``const''.
13573 (warning): New function.
13574
13575 * regformats/regdat.sh: Include "regcache.h" in generated files.
13576 Provide init_registers () function.
13577 * regformats/regdef.h: Add prototype for set_register_cache ().
13578 Add include guard.
13579
13580 * gdbserver/linux-arm-low.c: New file.
13581 * gdbserver/linux-i386-low.c: New file.
13582 * gdbserver/linux-ia64-low.c: New file.
13583 * gdbserver/linux-m68k-low.c: New file.
13584 * gdbserver/linux-mips-low.c: New file.
13585 * gdbserver/linux-ppc-low.c: New file.
13586 * gdbserver/linux-sh-low.c: New file.
13587
13588 * gdbserver/regcache.c: New file.
13589 * gdbserver/regcache.h: New file.
13590
13591 * gdbserver/low-linux.c: Removed obsolete file.
13592
13593 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13594
13595 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13596 * config/i386/linux.mt: Likewise.
13597 * config/ia64/linux.mt: Likewise.
13598 * config/m68k/linux.mh: Likewise.
13599 * config/powerpc/linux.mh: Likewise.
13600 * config/mips/linux.mt: Likewise.
13601
13602 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13603
13604 * config/i386/i386lynx.mh: Mark gdbserver variables
13605 as (currently) obsolete for this target.
13606 * config/i386/nbsd.mt: Likewise.
13607 * config/i386/nbsdelf.mt: Likewise.
13608 * config/m32r/m32r.mt: Likewise.
13609 * config/m68k/m68klynx.mh: Likewise.
13610 * config/m68k/nbsd.mt: Likewise.
13611 * config/m68k/sun3os4.mh: Likewise.
13612 * config/mips/vr5000.mt: Likewise.
13613 * config/ns32k/nbsd.mt: Likewise.
13614 * config/pa/hppabsd.mh: Likewise.
13615 * config/pa/hppaosf.mh: Likewise.
13616 * config/powerpc/nbsd.mt: Likewise.
13617 * config/rs6000/rs6000lynx.mh: Likewise.
13618 * config/s390/s390.mt: Likewise.
13619 * config/s390/s390x.mt: Likewise.
13620 * config/sparc/sparclynx.mh: Likewise.
13621 * config/sparc/sun4os4.mh: Likewise.
13622 * config/i386/x86-64linux.mt: Likewise.
13623 * config/sparc/linux.mh: Likewise.
13624
13625 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13626
13627 * configure.tgt: Configure gdbserver only for known working
13628 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13629 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13630 SUBDIRS if it is configured. Update comment for ${nativefile}.
13631 * configure: Regenerated.
13632
13633 2002-02-13 Michael Snyder <msnyder@redhat.com>
13634
13635 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13636
13637 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13638 (default_gcore_mach): Just return 0, work around a problem in bfd.
13639 (default_gcore_target): OK to return NULL if exec_bfd is null.
13640 (make_mem_sec): Use a cast, avoid a warning.
13641
13642 * procfs.c (find_memory_regions_callback): Use a cast instead of
13643 calling host_pointer_to_address (which complains if
13644 sizeof (host pointer) != sizeof (target pointer)).
13645 (procfs_make_note_section): Avoid overflow in psargs string.
13646
13647 * procfs.c (procfs_make_note_section): Make the default
13648 implementation return an error.
13649
13650 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13651
13652 * procfs.c (procfs_make_note_section): Provide a default definition
13653 (for alpha-dec-osf4.0f). Fix typos.
13654
13655 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13656
13657 * linux-proc.c: Add include of regcache.h.
13658 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13659
13660 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13661
13662 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13663 * memattr.c (create_mem_region): Disallow useless empty region.
13664 Regions are half-open intervals, so allow [A..B) [B..C) as
13665 non-overlapping.
13666
13667 2002-02-13 Michael Chastain <mec@shout.net>
13668
13669 * defs.h: Kill CONST_PTR.
13670 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13671 * c-lang.c (c_builtin_types): Likewise.
13672 * ch-lang.c (ch_builtin_types): Likewise.
13673 * f-lang.c (f_builtin_types): Likewise.
13674 * language.c (unknown_builtin_types): Likewise.
13675 * m2-lang.c (m2_builtin_types): Likewise.
13676 * p-lang.c (pascal_builtin_types): Likewise.
13677 * scm-lang.c (c_builtin_types): Likewise.
13678
13679 2002-02-13 Keith Seitz <keiths@redhat.com>
13680
13681 * arm-tdep.h (arm_get_next_pc): Add declaration.
13682
13683 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13684
13685 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13686 with other related struct-returning functions.
13687 (arm_extract_struct_value_address): New function.
13688 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13689 initialize float_format, double_format and long_double_format as
13690 appropriate to the endianness of the target.
13691 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13692 (arm_use_struct_convention): Delete declaration.
13693 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13694
13695 2002-02-13 Keith Seitz <keiths@redhat.com>
13696
13697 * defs.h (core_addr_to_string_nz): New function.
13698
13699 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13700
13701 Apply missing bits of 2002-01-15 patch.
13702 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13703 (fill_fpregset): Use i387_fill_fsave.
13704
13705 2002-02-12 Keith Seitz <keiths@redhat.com>
13706
13707 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13708 (core_addr_to_string_nz): New function.
13709
13710 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13711
13712 * arm-linux-nat.c: Really include arm-tdep.h.
13713 * config/arm/tm-linux.h (struct type, struct value): Declare.
13714
13715 2002-02-11 Michael Snyder <msnyder@redhat.com>
13716
13717 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13718 (gcore section): Ifdef for Solaris and Unixware only.
13719 (procfs_do_thread_registers): Unixware needs one lwpstatus
13720 per thread (not one prstatus or pstatus).
13721 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13722 not over all gdb threads. For unixware, call elfcore_write_pstatus
13723 once before iterating over threads.
13724
13725 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13726
13727 * arm-tdep.h: New file.
13728 * arm-tdep.c: Include arm-tdep.h.
13729 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13730 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13731 (arm_print_float_info, arm_register_type, convert_to_extended)
13732 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13733 (arm_extract_return_value, arm_register_name): Make static.
13734 (arm_software_single_step): Similarly. Fix types in declaration.
13735 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13736 (arm_store_return_value, arm_store_struct_return): New functions.
13737 (arm_gdbarch_init): Register the above functions. Also register
13738 call_dummy_start_offset, sizeof_call_dummy_words,
13739 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13740 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13741 max_register_virtual_size, register_size. Set up
13742 prologue_cache.saved_regs here, rather than ...
13743 (_initialize_arm_tdep): ... here.
13744 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13745 declarations.
13746 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13747 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13748 (arm_print_float_info, arm_register_type, convert_to_extended)
13749 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13750 (arm_extract_return_value, arm_register_name): Delete declarations.
13751 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13752 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13753 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13754 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13755 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13756 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13757 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13758 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13759 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13760 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13761 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13762 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13763 interface.
13764 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13765 * remote-rdi.c remote-rdp.c: Likewise.
13766 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13767 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13768 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13769 definition.
13770
13771 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13772 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13773 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13774 from non-ARM_ prefixed definitions.
13775 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13776 all uses of above.
13777 * remote-rdi.c remote-rdp.c: Likewise.
13778 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13779
13780 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13781
13782 * arm-tdep.c (arm_frameless_function_invocation)
13783 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13784 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13785 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13786 (arm_pop_frame, arm_get_next_pc): Make static.
13787 (arm_gdbarch_init): Register above in gdbarch structure.
13788 (arm_read_fp): Renamed from arm_target_read_fp.
13789 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13790 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13791 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13792 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13793 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13794 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13795 (arm_pc_is_thumb_dummy): Delete declarations.
13796 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13797 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13798 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13799 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13800
13801 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13802
13803 * symtab.c (compare_search_syms): New function.
13804 (sort_search_symbols): New function.
13805 (search_symbols): Sort symbols after searching rather than
13806 before.
13807
13808 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13809
13810 * NEWS: Linux -> GNU/Linux.
13811
13812 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13813
13814 * gdbarch.sh: For for level one methods, disallow a definition
13815 when partially multi-arched. Add comments explaining rationale.
13816 * gdbarch.h: Re-generate.
13817
13818 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13819
13820 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13821 multi-arch partial.
13822
13823 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13824
13825 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13826 field. Use diff -u.
13827 * gdbarch.c: Re-generate.
13828
13829 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13830
13831 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13832 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13833 partial.
13834
13835 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13836
13837 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13838 multi-arch partial.
13839 (PUSH_ARGUMENTS): Switch to using predefault.
13840 * gdbarch.c: Regenerate.
13841
13842 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13843
13844 * valops.c (PUSH_ARGUMENTS): Delete definition.
13845 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13846 partial. Default to default_push_arguments.
13847 * gdbarch.h, gdbarch.c: Regenerate.
13848
13849 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13850
13851 * defs.h (throw_exception): Rename return_to_top_level. Update
13852 comments.
13853 * utils.c (error_stream, internal_verror, quit): Ditto.
13854 * top.c (throw_exception, catcher): Ditto.
13855 * sparclet-rom.c (sparclet_load): Ditto.
13856 * remote.c (interrupt_query, minitelnet): Ditto.
13857 * remote-sds.c (interrupt_query): Ditto.
13858 * remote-mips.c (mips_error, mips_kill): Ditto.
13859 * ocd.c (interrupt_query): Ditto.
13860 * monitor.c (monitor_interrupt_query): Ditto.
13861 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13862 * target.h: Update comment.
13863
13864 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13865
13866 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13867
13868 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13869 default_double_format.
13870 * gdbarch.h, gdbarch.c: Re-generate.
13871 * findvar.c (floatformat_unknown): Delete variable definition.
13872 * doublest.h (floatformat_unknown): Delete variable declaration.
13873
13874 2002-02-09 Jim Blandy <jimb@redhat.com>
13875
13876 * stabsread.c (read_type): Add code to parse Sun's syntax for
13877 prototyped function types.
13878
13879 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13880
13881 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13882 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13883
13884 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13885
13886 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13887 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13888 now _initialize_xcoffsolib gets called again and overrides the
13889 commands from solib.c in a native configuration.
13890
13891 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13892
13893 * doublest.c (store_typed_floating): Don't try to return a value.
13894 Fixes PR gdb/290.
13895
13896 2002-02-08 Jim Blandy <jimb@redhat.com>
13897
13898 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13899 is prototyped and has no arguments, print its argument list as
13900 `(void)'.
13901
13902 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13903
13904 * MAINTAINERS (write-after-approval): Add myself.
13905 (paper-trail): I've escaped!
13906
13907 2002-02-08 Christopher Faylor <cgf@redhat.com>
13908
13909 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13910 changes.
13911 (_initialize_check_for_gdb_ini): Ditto.
13912
13913 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13914
13915 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13916 xaprintf -> xasprintf.
13917
13918 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13919
13920 * win32-nat.c: Remove use of printf and sprintf functions.
13921
13922 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13923
13924 * arm-tdep.c (arm_frame_chain_valid): Make static.
13925 (arm_push_arguments): Likewise.
13926 (arm_gdbarch_init): New function.
13927 (_initialize_arm_tdep): Call it.
13928 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13929 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13930 (FRAME_CHAIN_VALID): Delete.
13931 (arm_frame_chain_valid): Delete declaration.
13932 (PUSH_ARGUMENTS): Delete.
13933 (arm_push_arguments): Delete declaration.
13934 (CALL_DUMMY_P): Delete.
13935
13936 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13937 Corinna Vinschen <vinschen@redhat.com>
13938
13939 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13940 on builtin float types.
13941
13942 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13943
13944 * utils.c: Include <curses.h> before "bfd.h".
13945 * tui/tui-hooks.c: Likewise.
13946 * tui/tui.c: Likewise.
13947 * tui/tuiCommand.c: Likewise.
13948 * tui/tuiData.c: Likewise.
13949 * tui/tuiDataWin.c: Likewise.
13950 * tui/tuiDisassem.c: Likewise.
13951 * tui/tuiGeneralWin.c: Likewise.
13952 * tui/tuiIO.c: Likewise.
13953 * tui/tuiLayout.c: Likewise.
13954 * tui/tuiRegs.c: Likewise.
13955 * tui/tuiSource.c: Likewise.
13956 * tui/tuiSourceWin.c: Likewise.
13957 * tui/tuiStack.c: Likewise.
13958 * tui/tuiWin.c: Likewise.
13959
13960 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13961
13962 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13963 to include space for pseudoregs as well. Update loops accordingly.
13964 (sh_fp_frame_init_saved_regs): Ditto.
13965 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13966
13967 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13968
13969 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13970 Add Richard Earnshaw to Arm maintainers.
13971
13972 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13973
13974 * defs.h (warning_begin): Delete declaration.
13975
13976 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13977 Delete macro.
13978
13979 2002-02-07 Michael Snyder <msnyder@redhat.com>
13980
13981 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13982 Logic bug, remove misplaced else.
13983
13984 2002-02-07 Klee Dienes <klee@apple.com>
13985
13986 * fork-inferior.c (fork_inferior): Add '!' to the list of
13987 characters that need to be quoted when building a string for the
13988 shell. Quote '!' specifically with a backslash, since CSH chokes
13989 when trying to evaluate "str!str".
13990
13991 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13992
13993 * rdi-share/host.h: Only provide a typedef for bool if it is not
13994 defined.
13995
13996 2002-02-04 Michael Snyder <msnyder@redhat.com>
13997
13998 * breakpoint.h (enum bptype): Add new overlay event bp type.
13999 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
14000
14001 * breakpoint.c (create_internal_breakpoint): New function.
14002 (internal_breakpoint_number): Moved into create_internal_breakpoint.
14003 (create_longjmp_breakpoint): Use create_internal_breakpoint.
14004 (create_thread_event_breakpoint): Ditto.
14005 (create_solib_event_breakpoint): Ditto.
14006 (create_overlay_event_breakpoint): New function.
14007 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
14008 (update_breakpoints_after_exec): Delete and re-initialize
14009 overlay event breakpoints after an exec. Add FIXME comment
14010 about longjmp breakpoint.
14011 (print_it_typical): Ignore overlay event breakpoints.
14012 (print_one_breakpoint): Ditto.
14013 (mention): Ditto.
14014 (bpstat_what): Do not stop for overlay event breakpoints.
14015 (delete_breakpoint): Don't delete overlay event breakpoints.
14016 (breakpoint_re_set_one): Delete the overlay event breakpoint.
14017 (breakpoint_re_set): Re-create overlay event breakpoint.
14018
14019 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
14020 (overlay_manual_command): Disable overlay breakpoints.
14021 (overlay_off_command): Disable overlay breakpoints.
14022
14023 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14024
14025 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
14026 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
14027 to here from config/tm-arm.h.
14028 (coff_sym_is_thumb): Make static.
14029 (arm_elf_make_msymbol_special): New function.
14030 (arm_coff_make_msymbol_special): New function.
14031 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
14032 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
14033 (coff_sym_is_thumb): Delete declaration.
14034 (arm_elf_make_msymbol_special): Declare.
14035 (arm_coff_make_msymbol_special): Declare.
14036 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
14037 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
14038
14039 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14040
14041 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
14042
14043 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
14044
14045 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
14046 * gdbarch.c gdbarch.h: Regenerate.
14047 * arch-utils.c (default_print_float_info): New function.
14048 * arch-utils.h (default_print_float_info): Prototype it.
14049 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
14050 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
14051 (PRINT_FLOAT_INFO): Document it.
14052
14053 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
14054 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
14055 (PRINT_FLOAT_INFO): Define.
14056
14057 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
14058
14059 * win32-nat.c (_initialize_check_for_gdb_ini):
14060 Add typecast to sprintf argument to suppress a warning.
14061
14062 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
14063
14064 * win32-nat.c (last_sig): Changed type of variable to target_signal,
14065 to allow easier handling of pass state.
14066 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
14067 that gives exception name and address.
14068 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
14069 and set last_sig value to ourstatus->value.sig. Some missing
14070 exceptions added.
14071 (child_continue): Correctly report continue_status.
14072 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
14073 TARGET_SIGNAL_0 (new default value).
14074 (child_resume): consider sig argument passed to decide if
14075 the exception should be passed to debuggee or not.
14076
14077 2002-02-05 Michael Snyder <msnyder@redhat.com>
14078
14079 * regcache.c (fetch_register): Call target_fetch_register
14080 only if we don't call FETCH_PSEUDO_REGISTER.
14081 (store_register): Call target_store_register only if we
14082 don't call STORE_PSEUDO_REGISTER.
14083
14084 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
14085
14086 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
14087 ELF_MAKE_MSYMBOL_SPECIAL.
14088 * gdbarch.c, gdbarch.h: Regenerate.
14089 * arch-utils.c (default_make_msymbol_special): New function.
14090 * arch-utils.h (default_make_msymbol_special): Export.
14091 * elfread.c (elf_symtab_read): Compile use of
14092 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
14093 multiarched.
14094 * coffread.c (coff_symtab_read): Ditto, for
14095 COFF_MAKE_MSYMBOL_SPECIAL.
14096
14097 2002-02-05 Jim Blandy <jimb@redhat.com>
14098
14099 * solib-svr4.c (svr4_truncate_ptr): New function.
14100 (svr4_relocate_section_addresses): Do the address arithmetic with
14101 the appropriate truncation for target addresses, even when
14102 CORE_ADDR is larger than a target address.
14103
14104 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14105
14106 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
14107 to (int *).
14108
14109 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14110
14111 * gdbserver/linux-low.c (kill_inferior): Remove commented out
14112 code.
14113
14114 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14115
14116 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
14117
14118 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14119
14120 * gdbserver/linux-low.c: Remove unused include files.
14121
14122 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14123
14124 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
14125 (read_inferior_memory): Use it.
14126 (write_inferior_memory): Likewise.
14127
14128 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14129
14130 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
14131 grubbing through sys_errlist.
14132
14133 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
14134
14135 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
14136
14137 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14138 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
14139
14140 2002-02-04 Andrew Cagney <ac131313@redhat.com>
14141
14142 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
14143 (do_sfunc, set_cmd_sfunc): New functions.
14144
14145 * command.h (struct cmd_list_element): Add field func.
14146 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14147 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14148 * cli/cli-decode.h: Ditto.
14149
14150 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14151 (help_all, help_cmd_list): Ditto.
14152 (find_cmd, complete_on_cmdlist): Ditto.
14153 * top.c (execute_command): Ditto.
14154
14155 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14156 function.sfunc.
14157
14158 * infcmd.c (notice_args_read): Fix function signature.
14159
14160 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14161 * cli/cli-decode.c (add_set_cmd): Ditto.
14162 * utils.c (initialize_utils): Ditto.
14163 * maint.c (_initialize_maint_cmds): Ditto.
14164 * infrun.c (_initialize_infrun): Ditto.
14165 * demangle.c (_initialize_demangler): Ditto.
14166 * remote.c (add_packet_config_cmd): Ditto.
14167 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14168 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14169 * proc-api.c (_initialize_proc_api): Ditto.
14170 * kod.c (_initialize_kod): Ditto.
14171 * valprint.c (_initialize_valprint): Ditto.
14172 * top.c (init_main): Ditto.
14173 * infcmd.c (_initialize_infcmd): Ditto.
14174 * corefile.c (_initialize_core): Ditto.
14175 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14176 * arch-utils.c (initialize_current_architecture): Ditto.
14177 (_initialize_gdbarch_utils): Ditto.
14178 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14179
14180 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14181 * wince.c (_initialize_inftarg): Ditto.
14182 * symfile.c (_initialize_symfile): Ditto.
14183 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14184 * language.c (_initialize_language): Ditto.
14185 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14186
14187 2002-02-04 Michael Snyder <msnyder@redhat.com>
14188
14189 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14190
14191 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14192
14193 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14194 Add rules for building the register data files.
14195
14196 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14197
14198 * regformats/regdat.sh: Add braces to the definition of
14199 expedite_regs_${arch}.
14200
14201 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14202
14203 * regformats/regdef.h (struct reg): Add comment describing the
14204 requirements for offset and size fields.
14205
14206 2002-02-04 Andreas Schwab <schwab@suse.de>
14207
14208 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14209 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14210
14211 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14212
14213 * gdbarch.sh (copyright): Update years in generated header.
14214 (SMASH_TEXT_ADDRESS): Add rule.
14215 * gdbarch.h, gdbarch.c: Re-generate.
14216 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14217 * dbxread.c: Likewise.
14218 * dwarfread.c: Likewise.
14219 * elfread.c: Likewise.
14220 * somread.c: Likewise.
14221
14222 * arm-tdep.c (arm_smash_text_address): New function.
14223 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14224
14225 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14226
14227 Add support for hardware watchpoints on win32 native.
14228 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14229 CONTEXT_DEBUG_REGISTERS.
14230 (dr variable): New variable. Static array containing a local copy
14231 of debug registers.
14232 (debug_registers_changed): New variable. Reflects when debug registers
14233 are changed and need to be written to inferior.
14234 (debug_registers_used): New variable. Reflects when any debug register
14235 was set, used when new threads are created.
14236 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14237 i386-nat code.
14238 (thread_rec): Set dr array if id is the thread of current_event .
14239 (child_continue, child_resume): Change the debug registers for all
14240 threads if debug_registers_changed.
14241 (child_add_thread): Change the debug registers if debug_registers_used.
14242 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14243 Link nm.h to new nm-cygwin.h file.
14244 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14245 of hardware registers.
14246
14247 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14248
14249 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14250 Restore behavour broken by 2002-01-20 Andrew Cagney
14251 <ac131313@redhat.com> IEEE_FLOAT removal.
14252
14253 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14254
14255 * c-valprint.c (c_val_print): Pass a proper valaddr to
14256 cp_print_class_method.
14257 * valops.c (search_struct_method): If there is only one method
14258 and args is NULL, return that method.
14259
14260 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14261
14262 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14263 accessing tag_name directly.
14264
14265 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14266
14267 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14268 of accessing tag_name directly.
14269
14270 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14271
14272 PR gdb/280
14273 * gdbtypes.c (replace_type): New function.
14274 * gdbtypes.h (replace_type): Add prototype.
14275 * stabsread.c (read_type): Use replace_type.
14276
14277 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14278
14279 * Makefile.in (memattr.o): Add missing dependencies rule.
14280
14281 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14282
14283 * breakpoint.c (break_at_finish_command): Really export.
14284 (break_at_finish_at_depth_command): Ditto.
14285 (tbreak_at_finish_command): Ditto.
14286 * hppa-tdep.c: Include completer.h.
14287 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14288 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14289
14290 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14291
14292 * utils.c (do_write): New function.
14293 (error_stream): Rewrite combining the code from error_begin and
14294 verror.
14295 (verror): Rewrite using error_stream.
14296 (error_begin): Delete function.
14297
14298 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14299
14300 * utils.c (error_begin): Make static.
14301 * defs.h (error_begin): Delete declaration.
14302
14303 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14304 (decode_line_1): Use cplusplus_error instead of error_begin,
14305 cplusplus_hint and return_to_top_level.
14306 * coffread.c (coff_symfile_read): Use error instead of error_begin
14307 and return_to_top_level.
14308 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14309
14310 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14311
14312 * language.h (type_error, range_error): Make string parameter
14313 constant.
14314 * language.c (warning_pre_print): Delete extern declaration.
14315 * dwarfread.c (warning_pre_print): Ditto.
14316 * language.c (type_error, range_error): Rewrite to use verror and
14317 vwarning instead of warning_begin.
14318
14319 2002-02-01 Michael Snyder <msnyder@redhat.com>
14320
14321 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14322 (set_ignore_count): Move misplaced comment back where it belongs.
14323
14324 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14325
14326 * command.h (NO_FUNCTION): Delete macro.
14327 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14328 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14329 * tracepoint.c (_initialize_tracepoint): Ditto.
14330 * cli/cli-decode.c (add_set_cmd): Ditto.
14331 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14332
14333 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14334
14335 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14336 Update ``this'' pointer when calling virtual functions.
14337
14338 2002-02-01 Michael Snyder <msnyder@redhat.com>
14339
14340 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14341 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14342
14343 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14344
14345 * regformats/reg-arm.dat: New file.
14346 * regformats/reg-i386.dat: New file.
14347 * regformats/reg-ia64.dat: New file.
14348 * regformats/reg-m68k.dat: New file.
14349 * regformats/reg-mips.dat: New file.
14350 * regformats/reg-ppc.dat: New file.
14351 * regformats/reg-sh.dat: New file.
14352 * regformats/regdef.h: New file.
14353 * regformats/regdat.sh: New file.
14354
14355 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14356
14357 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14358 (arm_frame_args_address, arm_frame_locals_address): New functions.
14359 (arm_frame_num_args): New function.
14360 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14361 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14362 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14363
14364 2002-01-31 Michael Snyder <msnyder@redhat.com>
14365
14366 * breakpoint.c (break_at_finish_command): Export.
14367 (break_at_finish_at_depth_command): Export.
14368 (tbreak_at_finish_command): Export.
14369 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14370 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14371 "txbreak" commands, which are HPPA specific.
14372
14373 * printcmd.c (disassemble_command): Remove an ancient
14374 artifact of an old merge.
14375
14376 * symfile.h (enum overlay_debugging_state):
14377 Define enum constant values for overlay mode.
14378 * symfile.c (overlay_debugging): Use enums instead of literals.
14379 (overlay_is_mapped, overlay_auto_command,
14380 overlay_manual_command): Ditto.
14381
14382 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14383 breakpoint_here_p, breakpoint_inserted_here_p,
14384 breakpoint_thread_match, bpstat_stop_status,
14385 describe_other_breakpoints, check_duplicates, clear_command):
14386 Coding standard fixes.
14387
14388 * target.c (target_xfer_memory): Add spaces, coding standard.
14389 (do_xfer_memory): Add missing line to trust-readonly
14390 code: check bfd SEC_READONLY flag for section.
14391
14392 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14393
14394 * PROBLEMS: Fix typo, 5.1->5.1.1.
14395
14396 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14397
14398 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14399 data symbols, since we search based on textlow and texthigh.
14400 (find_pc_sect_symtab): Likewise.
14401
14402 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14403
14404 * defs.h (vwarning): Declare.
14405 * utils.c (vwarning): New function.
14406 (warning): Call vwarning.
14407 (warning_begin): Delete function.
14408
14409 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14410 the warning message.
14411 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14412 warning_begin.
14413
14414 2002-01-30 Michael Snyder <msnyder@redhat.com>
14415
14416 * NEWS: Mention "set trust-readonly-sections" command.
14417 Mention generate-core-file command.
14418
14419 2002-01-15 Michael Snyder <msnyder@redhat.com>
14420
14421 * target.c: New command, "set trust-readonly-sections on".
14422 (do_xfer_memory): Honor the suggestion to trust readonly sections
14423 by reading them from the object file instead of from the target.
14424 (initialize_targets): Register command "set trust-readonly-sections".
14425
14426 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14427
14428 * parse.c (target_map_name_to_register): Simplify, search regs and
14429 pseudo-regs using a single loop.
14430
14431 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14432
14433 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14434
14435 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14436
14437 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14438 * config/i386/i386v42mp.mh: Add i387-nat.o .
14439 * i386v4-nat.c: Include i387-nat.h.
14440 (supply_fpregset): Use i387_supply_fsave.
14441 (fill_fpregset): Use i387_fill_fsave.
14442
14443 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14444
14445 * arm-tdep.c (arm_call_dummy_words): Define.
14446 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14447 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14448 (CALL_DUMMY_WORDS): Define.
14449 (arm_call_dummy_words): Declare.
14450 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14451 (arm_linux_call_dummy_words): Declare.
14452
14453 2002-01-30 Andreas Schwab <schwab@suse.de>
14454
14455 * m68klinux-nat.c: Fix last change to use regcache_collect
14456 instead of referencing registers[] directly.
14457
14458 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14459
14460 * parse.c (target_map_name_to_register): Delete code wrapped in
14461 #ifdef REGISTER_NAME_ALIAS_HOOK.
14462
14463 2002-01-28 Michael Snyder <msnyder@redhat.com>
14464
14465 * regcache.c (legacy_read_register_gen): Need to be able to
14466 read pseudo-register as well as real register.
14467 (legacy_write_register_gen): Ditto.
14468
14469 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14470
14471 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14472 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14473 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14474 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14475 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14476 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14477 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14478 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14479 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14480 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14481 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14482 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14483 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14484 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14485 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14486 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14487 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14488 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14489 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14490 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14491
14492 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14493
14494 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14495 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14496 (initialize_current_architecture): Update target_byte_order using
14497 information from BFD.
14498 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14499 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14500
14501 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14502
14503 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14504 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14505
14506 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14507 #ifdef INVALID_FLOAT.
14508 * infcmd.c (do_registers_info): Ditto.
14509 * values.c (unpack_double): Ditto. Add comment.
14510
14511 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14512 already commented out.
14513
14514 2002-01-26 Andreas Schwab <schwab@suse.de>
14515
14516 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14517 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14518 registers and add support for PTRACE_GETREGS.
14519
14520 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14521
14522 GDB 5.1.1 released from 5.1 branch.
14523 * NEWS: Add 5.1.1 news.
14524 * README: Sync with 5.1 branch.
14525
14526 2002-01-23 Fred Fish <fnf@redhat.com>
14527
14528 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14529 stabstring on initial malloc. Reallocing will copy it for us,
14530 if necessary.
14531
14532 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14533
14534 * Makefile.in (hpread_h): Delete.
14535 (HFILES_NO_SRCDIR): Remove hpread.h.
14536 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14537 (hpread.o): Update dependencies.
14538 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14539
14540 * hp-psymtab-read.c: Remove file.
14541 * hp-symtab-read.c: Remove file.
14542 * hpread.h: Remove file.
14543
14544 * hpread.c: Merge all contents of hp-psymtab-read.c,
14545 hp-symtab-read.c and hpread.h into this file, as it was prior to
14546 January 1999.
14547
14548 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14549 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14550 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14551 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14552
14553 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14554
14555 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14556 fill_gregset): Call gdbarch_tdep() just once, assign result to
14557 variable and use that, instead of calling the function several
14558 times.
14559
14560 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14561
14562 * configure.host: Accept sparcv9 as alias for sparc64.
14563 * configure.tgt: Likewise.
14564
14565 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14566
14567 * solib-aix5.c (build_so_list_from_mapfile)
14568 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14569 arguments is not reversed.
14570 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14571 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14572
14573 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14574
14575 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14576 modified version of obsolete sh_fetch_pseudo_register.
14577 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14578 (sh4_register_read): New function.
14579 (sh_pseudo_register_write): New function. Renamed and modified
14580 version of obsolete sh_store_pseudo_register.
14581 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14582 (sh4_register_write): New function.
14583 (sh_gdbarch_init): Remove setting of gdbarch function
14584 fetch_pseudo_register and store_pseudo_register. Remove setting of
14585 register_convert_to_raw, register_convert_to_virtual,
14586 register_convertible.
14587 (sh_sh4_register_convertible): Delete. No longer needed. All is
14588 taken care by architecture specific functions
14589 register_read/register_write.
14590 (sh_sh4_register_convert_to_virtual): Make static.
14591 (sh_sh4_register_convert_to_raw): Ditto.
14592
14593 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14594
14595 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14596 (floatformat_is_nan, floatformat_mantissa): Ditto.
14597
14598 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14599 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14600 builtin_type_ieee_double_little,
14601 builtin_type_ieee_double_littlebyte_bigword,
14602 builtin_type_m68881_ext, builtin_type_i960_ext,
14603 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14604 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14605 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14606 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14607
14608 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14609
14610 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14611 parameter. Set frameless flag if it exists and depended of
14612 whether the scanned function is frameless or not.
14613 (xstormy16_skip_prologue): If function is frameless, return
14614 result of xstormy16_scan_prologue().
14615 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14616 call.
14617
14618 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14619
14620 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14621 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14622 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14623 sh_sh4_register_byte, sh_sh4_register_raw_size,
14624 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14625 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14626 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14627 sh_store_pseudo_register, sh_do_pseudo_register): Call
14628 gdbarch_tdep() just once, assign result to variable and use that,
14629 instead of calling the function several times.
14630
14631 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14632
14633 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14634 macros instead of LAST_FPU_CTRL_REGNUM.
14635 (store_register): Likewise.
14636
14637 2002-01-21 Jim Blandy <jimb@redhat.com>
14638
14639 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14640 is up-to-date before running the program, not just when a program
14641 exits.
14642
14643 2002-01-21 Fred Fish <fnf@redhat.com>
14644
14645 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14646 when we have found all instructions we are looking for.
14647
14648 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14649
14650 * arm-tdep.c (arm_register_name): New function.
14651 (arm_registers_names): Make static.
14652 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14653 (arm_register_name): Declare.
14654 (REGISTER_NAME): Use it.
14655
14656 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14657 Kevin Buettner <kevinb@redhat.com>
14658
14659 Convert arm targets to new FRAME interface.
14660 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14661 (arm_frame_find_save_regs): Delete.
14662 (arm_frame_init_saved_regs): New.
14663 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14664 Allocate extra_info as required. Convert all uses of fsr.regs
14665 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14666 to use extra_info.
14667 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14668 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14669 (check_prologue_cache, save_prologue_cache): Likewise.
14670 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14671 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14672 (FRAME_FIND_SAVED_REGS): Delete.
14673 (arm_frame_find_saved_regs): Delete prototype.
14674 (arm_frame_init_saved_regs): New prototype.
14675 (FRAME_INIT_SAVED_REGS): Define.
14676
14677 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14678
14679 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14680
14681 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14682
14683 From Jeff Law <law@redhat.com>:
14684 * infttrace.c: Include <sys/pstat.h>.
14685 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14686 exec file if the ttrace equivalent fails.
14687
14688 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14689
14690 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14691 (closeLogFile): Ditto.
14692
14693 2002-01-20 Michael Chastain <mec@shout.net>
14694
14695 * top.c (print_gdb_version): Bump copyright year to 2002.
14696
14697 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14698
14699 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14700 Zannoni and Eli Zaretskii.
14701
14702 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14703
14704 * buildsym.c: Update copyright years.
14705 * c-typeprint.c: Likewise.
14706 * dwarf2read.c: Likewise.
14707 * f-typeprint.c: Likewise.
14708 * gdbtypes.c: Likewise.
14709 * gdbtypes.h: Likewise.
14710 * hp-symtab-read.c: Likewise.
14711 * hpread.c: Likewise.
14712 * mdebugread.c: Likewise.
14713 * p-typeprint.c: Likewise.
14714
14715 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14716
14717 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14718 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14719 byte-order selectable.
14720 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14721 * arch-utils.c: Ditto.
14722 (set_endian): Ditto.
14723 (set_endian_from_file): Ditto.
14724 * gdbserver/low-sim.c (create_inferior): Ditto.
14725 * gdbarch.sh: Ditto.
14726 * gdbarch.h: Re-generate.
14727 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14728 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14729 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14730 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14731 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14732 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14733 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14734 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14735 macro definition.
14736 * config/mips/tm-wince.h: Remove #undef of macro
14737 TARGET_BYTE_ORDER_SELECTABLE.
14738 * config/sh/tm-wince.h: Ditto.
14739
14740 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14741
14742 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14743 member function fields. Add accessor macro
14744 TYPE_FN_FIELD_ARTIFICIAL.
14745 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14746 * c-typeprint.c (c_type_print_base): Skip artificial member
14747 functions.
14748
14749 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14750
14751 * f-typeprint.c: Delete unused function f_type_print_args.
14752 * p-typeprint.c: Delete unused function pascal_type_print_args.
14753
14754 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14755
14756 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14757 comment. Add ``artificial'' to ``union field_location''.
14758
14759 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14760
14761 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14762 * mdebugread.c (parse_symbol): Likewise.
14763 * stabsread.c (define_symbol): Likewise.
14764 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14765 initializing TYPE_FIELD_BITPOS to n (obsolete).
14766 (hpread_doc_function_type): Likewise.
14767 * hpread.c (hpread_function_type): Likewise.
14768
14769 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14770
14771 * configure.in (host_makefile_frag): Only require a host makefile
14772 fragment when a native build.
14773 * configure: Re-generate.
14774
14775 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14776
14777 * doublest.h (floatformat_from_type): Declare.
14778 * doublest.c (floatformat_from_type): New function.
14779 (convert_typed_floating): Use.
14780
14781 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14782 call to function floatformat_from_type.
14783
14784 * gdbarch.sh (IEEE_FLOAT): Delete.
14785 * gdbarch.h, gdbarch.c: Re-generate.
14786 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14787 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14788 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14789 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14790 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14791 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14792 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14793 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14794 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14795 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14796 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14797 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14798
14799 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14800 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14801 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14802 * sh-tdep.c (sh_gdbarch_init): Ditto.
14803 * mips-tdep.c (mips_gdbarch_init): Ditto.
14804 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14805 * cris-tdep.c (cris_gdbarch_init): Ditto.
14806
14807 2002-01-20 Jiri Smid <smid@suse.cz>
14808
14809 * configure.host, configure.tgt: Support x86-64.
14810 * NEWS: Note new target x86-64.
14811
14812 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14813 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14814 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14815 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14816 x86-64-linux-nat.o): Fix dependencies.
14817
14818 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14819
14820 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14821 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14822 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14823 * config/sparc/xm-sun4os4.h: Delete file.
14824 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14825
14826 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14827
14828 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14829 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14830 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14831 * config/i386/i386lynx.mh (XM_FILE): Delete.
14832 * config/rs6000/xm-rs6000ly.h: Delete file.
14833 * config/sparc/xm-sparclynx.h: Delete file.
14834 * config/m68k/xm-m68klynx.h: Delete file.
14835 * config/i386/xm-i386lynx.h: Delete file.
14836 * config/xm-lynx.h: Delete file.
14837 * config/djgpp/fnchange.lst: Update.
14838
14839 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14840
14841 * alpha-tdep.c (alpha_register_byte): New function.
14842 (alpha_register_raw_size): Ditto.
14843 (alpha_register_virtual_size): Ditto.
14844 (alpha_skip_prologue_internal): Renamed from
14845 alpha_skip_prologue.
14846 (alpha_skip_prologue): New version that calls
14847 alpha_skip_prologue_internal.
14848 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14849 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14850 second argument from alpha_skip_prologue.
14851 (REGISTER_BYTE): Use alpha_register_byte.
14852 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14853 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14854 (FRAMELESS_FUNCTION_INVOCATION): Use
14855 generic_frameless_function_invocation_not.
14856 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14857 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14858
14859 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14860
14861 * config/mips/xm-news-mips.h: Delete file.
14862 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14863
14864 * config/m88k/xm-m88k.h: Delete file.
14865 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14866 * config/m88k/xm-delta88v4.h: Ditto.
14867 * config/m88k/xm-delta88.h: Ditto.
14868
14869 * config/alpha/xm-fbsd.h: Delete file.
14870 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14871
14872 * config/sparc/xm-sparc.h: Delete file.
14873 * Makefile.in (xm-sun4os4.h): Delete dependency.
14874 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14875 * config/sparc/xm-sun4os4.h: Ditto.
14876 * config/sparc/xm-linux.h: Ditto.
14877
14878 * config/i386/xm-windows.h: Delete file.
14879
14880 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14881
14882 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14883 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14884
14885 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14886
14887 * alpha-tdep.c (alpha_call_dummy_words): New.
14888 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14889 (CALL_DUMMY_P): Define.
14890 (CALL_DUMMY_WORDS): Define.
14891 (SIZEOF_CALL_DUMMY_WORDS): Define.
14892
14893 2002-01-19 Per Bothner <per@bothner.com>
14894
14895 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14896 isn't NULL, which can happen with some gcj-3.x-produced code.
14897
14898 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14899
14900 * alpha-tdep.c (alpha_register_virtual_type): New function.
14901 (alpha_init_frame_pc_first): Ditto.
14902 (alpha_fix_call_dummy): Ditto.
14903 (alpha_store_struct_return): Ditto.
14904 (alpha_extract_struct_value_address): Ditto.
14905 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14906 alpha_register_virtual_type.
14907 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14908 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14909 alpha_extract_struct_value_address.
14910 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14911 (INIT_FRAME_PC): Use init_frame_pc_noop.
14912 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14913
14914 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14915
14916 * i386gnu-nat.c: Include "i386-tdep.h".
14917 (fetch_fpregs): Simplify code dealing with uninitialized floating
14918 point states such that it doesn't require FP7_REGNUM.
14919
14920 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14921
14922 * alpha-tdep.c (frame_extra_info): New.
14923 (alpha_find_saved_regs): Make static. Use
14924 frame->extra_info.
14925 (alpha_frame_init_saved_regs): New function.
14926 (alpha_frame_saved_pc): Use frame->extra_info.
14927 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14928 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14929 (init_extra_frame_info): Rename to...
14930 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14931 (alpha_print_extra_frame_info): New function.
14932 (alpha_frame_locals_address): Ditto.
14933 (alpha_frame_args_address): Ditto.
14934 (alpha_pop_frame): Use frame->extra_info.
14935 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14936 alpha_frame_args_address.
14937 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14938 (alpha_find_saved_regs): Remove prototype.
14939 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14940 (EXTRA_FRAME_INFO): Remove.
14941 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14942 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14943
14944 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14945
14946 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14947 (alpha_cannot_fetch_register): Ditto.
14948 (alpha_cannot_store_register): Ditto.
14949 (alpha_register_convertible): Ditto.
14950 (alpha_use_struct_convention): Ditto.
14951 * config/alpha/tm-alpha.h: Update copyright years.
14952 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14953 (INNER_THAN): Use core_addr_lessthan.
14954 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14955 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14956 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14957 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14958 (FRAME_CHAIN): Remove unnecessary cast.
14959
14960 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14961
14962 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14963 obsolete.
14964
14965 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14966
14967 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14968 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14969 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14970 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14971 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14972 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14973 * x86-64-linux-nat.c: Ditto.
14974
14975 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14976
14977 * alpha-tdep.c (alpha_register_name): New function.
14978 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14979 (REGISTER_NAME): Define.
14980
14981 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14982
14983 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14984
14985 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14986
14987 * alpha-tdep.c: Update copyright years.
14988 (alpha_next_pc): New function.
14989 (alpha_software_single_step): Ditto.
14990 * config/alpha/tm-alpha.h: Add prototype for
14991 alpha_software_single_step.
14992
14993 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14994
14995 * alphabsd-nat.c: Update copyright years.
14996 (fill_gregset): Use regcache_collect.
14997 (fill_fpregset): Likewise.
14998 (fetch_inferior_registers): Only fetch integer registers
14999 if requested to do so.
15000 (store_inferior_registers): Only store integer registers
15001 if requested to do so.
15002
15003 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15004
15005 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
15006 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
15007 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
15008 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
15009 * config/alpha/fbsd.mh (XDEPFILES): Delete.
15010 * config/arm/linux.mh (XDEPFILES): Delete.
15011 * config/arm/nbsd.mh (XDEPFILES): Delete.
15012 * config/i386/i386dgux.mh (XDEPFILES): Delete.
15013 * config/i386/i386sol2.mh (XDEPFILES): Delete.
15014 * config/i386/i386m3.mh (XDEPFILES): Delete.
15015 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
15016 * config/i386/i386gnu.mh (XDEPFILES): Delete.
15017 * config/i386/fbsd.mh (XDEPFILES): Delete.
15018 * config/i386/i386bsd.mh (XDEPFILES): Delete.
15019 * config/i386/i386sco5.mh (XDEPFILES): Delete.
15020 * config/i386/i386v4.mh (XDEPFILES): Delete.
15021 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
15022 * config/i386/i386sco4.mh (XDEPFILES): Delete.
15023 * config/i386/i386aix.mh (XDEPFILES): Delete.
15024 * config/i386/go32.mh (XDEPFILES): Delete.
15025 * config/i386/cygwin.mh (XDEPFILES): Delete.
15026 * config/i386/i386lynx.mh (XDEPFILES): Delete.
15027 * config/i386/i386mach.mh (XDEPFILES): Delete.
15028 * config/i386/i386v32.mh (XDEPFILES): Delete.
15029 * config/i386/linux.mh (XDEPFILES): Delete.
15030 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
15031 * config/i386/ncr3000.mh (XDEPFILES): Delete.
15032 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
15033 * config/i386/i386sco.mh (XDEPFILES): Delete.
15034 * config/i386/i386v.mh (XDEPFILES): Delete.
15035 * config/i386/nbsd.mh (XDEPFILES): Delete.
15036 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
15037 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
15038 * config/i386/symmetry.mh (XDEPFILES): Delete.
15039 * config/i386/obsd.mh (XDEPFILES): Delete.
15040 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
15041 * config/ia64/linux.mh (XDEPFILES): Delete.
15042 * config/ia64/aix.mh (XDEPFILES): Delete.
15043 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
15044 * config/m68k/dpx2.mh (XDEPFILES): Delete.
15045 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
15046 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
15047 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
15048 * config/m68k/linux.mh (XDEPFILES): Delete.
15049 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
15050 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
15051 * config/m68k/nbsd.mh (XDEPFILES): Delete.
15052 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
15053 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
15054 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
15055 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
15056 * config/m88k/delta88.mh (XDEPFILES): Delete.
15057 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
15058 * config/m88k/m88k.mh (XDEPFILES): Delete.
15059 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
15060 * config/mips/linux.mh (XDEPFILES): Delete.
15061 * config/mips/irix6.mh (XDEPFILES): Delete.
15062 * config/mips/irix5.mh (XDEPFILES): Delete.
15063 * config/mips/irix4.mh (XDEPFILES): Delete.
15064 * config/mips/irix3.mh (XDEPFILES): Delete.
15065 * config/mips/decstation.mh (XDEPFILES): Delete.
15066 * config/mips/mipsm3.mh (XDEPFILES): Delete.
15067 (NATDEPFILES): Move core-aout.o to here.
15068 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
15069 * config/pa/hpux1020.mh (XDEPFILES): Delete.
15070 * config/pa/hppabsd.mh (XDEPFILES): Delete.
15071 * config/pa/hppahpux.mh (XDEPFILES): Delete.
15072 * config/pa/hpux11w.mh (XDEPFILES): Delete.
15073 * config/pa/hppaosf.mh (XDEPFILES): Delete.
15074 * config/pa/hpux11.mh (XDEPFILES): Delete.
15075 * config/powerpc/aix.mh (XDEPFILES): Delete.
15076 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
15077 * config/powerpc/linux.mh (XDEPFILES): Delete.
15078 * config/romp/rtbsd.mh: Rename XDEPFILES.
15079 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
15080 * config/rs6000/aix4.mh (XDEPFILES): Delete.
15081 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
15082 * config/s390/s390.mh (XDEPFILES): Delete.
15083 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
15084 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
15085 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
15086 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
15087 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
15088 * config/sparc/nbsd.mh (XDEPFILES): Delete.
15089 * config/sparc/linux.mh (XDEPFILES): Delete.
15090 * config/vax/vaxult.mh (XDEPFILES): Delete.
15091 * config/vax/vaxult2.mh (XDEPFILES): Delete.
15092 * Makefile.in (DEPFILES): Remove XDEPFILES.
15093
15094 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15095
15096 * utils.c (internal_verror): Fix comments, default is yes not no.
15097 Update queries to match. Default to quit and dump core.
15098
15099 2002-01-17 Andrew Cagney <ac131313@redhat.com>
15100
15101 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
15102 copyright.
15103 * defs.h, event-top.c, gdbcmd.h: Ditto.
15104 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
15105 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
15106 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
15107 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
15108 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
15109 * mi/mi-main.c:Ditto.
15110
15111 * stack.c, symfile.c: Update copyright.
15112
15113 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15114
15115 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
15116 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
15117 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
15118 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
15119
15120 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
15121
15122 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
15123 * gdbserver/low-lynx.c (myattach): Likewise.
15124 * gdbserver/low-nbsd.c (myattach): Likewise.
15125 * gdbserver/low-sim.c (myattach): Likewise.
15126 * gdbserver/low-sparc.c (myattach): Likewise.
15127 * gdbserver/low-sun3.c (myattach): Likewise.
15128
15129 * gdbserver/low-linux.c (myattach): New function.
15130
15131 * gdbserver/server.c (attach_inferior): New function.
15132 (main): Handle "--attach".
15133
15134 2002-01-16 Andrew Cagney <ac131313@redhat.com>
15135
15136 * MAINTAINERS (language support): Daniel Jacobwitz is C++
15137 maintainer.
15138
15139 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
15140
15141 * c-typeprint.c (is_type_conversion_operator): Add additional
15142 check for non-conversion operators.
15143
15144 2002-01-15 Michael Snyder <msnyder@redhat.com>
15145
15146 * linux-proc.c: Add "info proc" command, a la procfs.c.
15147 (read_mapping): New function, abstract and re-use code.
15148 (linux_find_memory_regions): Use new func read_mapping.
15149 (linux_info_proc_cmd): New function, implement "info proc".
15150 (_initialize_linux_proc): Add new command "info proc".
15151
15152 2002-01-15 Michael Snyder <msnyder@redhat.com>
15153
15154 * symfile.c (generic_load): Use bfd_map_over_sections method
15155 instead of manipulating bfd structure members directly.
15156 (add_section_size_callback): New function, bfd sections callback
15157 used by generic_load.
15158 (load_sections_callback): New function, bfd sections callback
15159 used by generic_load.
15160
15161 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15162
15163 [Based on work by Jim Blandy]
15164 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15165 (builtin_type_vec128): Export.
15166 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15167 types.
15168 (builtin_type_vec128): New builtin type for 128 bit vector
15169 registers.
15170 (build_gdbtypes): Initialize builtin_type_v16qi and
15171 builtin_type_v8hi. Create the vec128 register builtin type
15172 structure.
15173 (build_builtin_type_vec128): New function.
15174 (_initialize_gdbtypes): Register builtin_type_v16qi and
15175 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15176 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15177 AltiVec register to new builtin type.
15178
15179 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15180
15181 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15182 to make_cv_type.
15183
15184 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15185
15186 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15187 CLEAN_UP_REGISTER_VALUE.
15188 * regcache.c (supply_register): Update only call.
15189
15190 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15191
15192 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15193 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15194 a29k-*-vxworks* targets as obsolete.
15195
15196 2002-01-14 Michael Snyder <msnyder@redhat.com>
15197
15198 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15199 until we can resolve portability issues.
15200 * gregset.h: Remove references to fpxregs.
15201 * gcore.c (gcore_command): Initialize note_sec to NULL.
15202
15203 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15204
15205 * signals.c (target_signal_to_name): Rewrite. Only use
15206 signals[].name when in bounds and non-NULL.
15207
15208 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15209
15210 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15211 * signals.c (target_signal_to_name): Verify that SIG is within the
15212 bounds of the signals array.
15213
15214 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15215
15216 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15217
15218 2002-01-13 Keith Seitz <keiths@redhat.com>
15219
15220 * stack.c (print_frame_info_base): Print the frame's pc
15221 only if when print_frame_info_listing_hook is not defined.
15222
15223 2002-01-13 Keith Seitz <keiths@redhat.com>
15224
15225 * varobj.c (varobj_set_value): Make sure that there were no
15226 errors evaluating the object before attempting to set its
15227 value.
15228 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15229 so this offset adjustment is no longer necessary.
15230 (create_child): Don't set the error flag if the child is
15231 a CPLUS_FAKE_CHILD.
15232 (value_of_child): If value_fetch_lazy fails, return NULL
15233 so that callers will be notified that an error occurred.
15234 (c_value_of_variable): Delay check of variable's validity
15235 until later. We actually want all structs and unions to have
15236 the value "{...}".
15237 Do not return "???" for variables which could not be evaluated.
15238 This error condition must be returned to the caller so that it
15239 can get the error condition from gdb.
15240 (cplus_name_of_child): Adjust index for vptr before figuring
15241 out the name of the child.
15242 (cplus_value_of_child): If a child's (real) parent is not valid,
15243 don't even bother trying to give a value for it. Just return
15244 an error. Change all instances in this function.
15245 (cplus_type_of_child): If our parent is one of the "fake"
15246 parents, we need to get at the type of the real parent, and
15247 derive the child's true type using this information.
15248
15249 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15250
15251 From 2002-01-09 John Marshall <johnm@falch.net>:
15252 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15253 sources.redhat.com, and tweak some related URLs which had
15254 suffered from linkrot.
15255
15256 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15257
15258 From Jeff law:
15259 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15260 structures passed in registers.
15261
15262 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15263
15264 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15265 white space which prevented compilation. Reported by DSK
15266 <dsk@student.unsw.edu.au>.
15267
15268 2002-01-11 Michael Snyder <msnyder@redhat.com>
15269
15270 * symfile.c (build_section_addr_info_from_section_tab):
15271 Use bfd access method instead of manipulating bfd directly.
15272 (syms_from_objfile): Ditto.
15273 (simple_overlay_update_1): Ditto.
15274 (simple_overlay_update): Ditto.
15275 (generic_load): Ditto.
15276 (overlay_unmapped_address): FIXME comment, bfd access methods.
15277 (sections_overlap): FIXME comment, bfd access methods.
15278 (pc_in_mapped_range): FIXME comment, bfd access methods.
15279 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15280 (section_is_mapped): FIXME comment, bfd access methods.
15281 (section_is_overlay): FIXME comment, bfd access methods.
15282
15283 * symfile.c (generic_load): Whitespace and long line cleanups.
15284 Remove duplicate variable, change several local variables to
15285 more appropriate data types.
15286 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15287
15288 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15289
15290 From Peter Schauer:
15291 * language.c (longest_local_hex_string_custom): Use phex_nz to
15292 convert NUM to a hex string.
15293
15294 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15295
15296 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15297 the function.
15298 Update Copyright year.
15299
15300 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15301
15302 * language.c (longest_raw_hex_string): Delete unused function.
15303
15304 2002-01-11 Petr Sorfa <petrs@caldera.com>
15305
15306 * MAINTAINERS (write-after-approval): Add myself.
15307 * dwarf2read.c (read_tag_string_type): Handling of
15308 DW_AT_byte_size.
15309 (read_tag_string_type): FORTRAN fix to prevent propagation of
15310 first string size.
15311 (set_cu_language): Handling of DW_LANG_Fortran95
15312
15313 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15314
15315 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15316 GETPID(inferior_ptid).
15317 (store_inferior_registers): Likewise.
15318
15319 2002-01-10 Jason Merrill <jason@redhat.com>
15320
15321 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15322 Fix DW_OP_minus.
15323
15324 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15325
15326 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15327 and bfd/elf32-sh-nbsd.c.
15328
15329 2002-01-10 Michael Snyder <msnyder@redhat.com>
15330
15331 * NEWS: Mention --pid and corefile/proc-id behavior change.
15332
15333 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15334 * gcore.c: Include cli/cli-decode.h instead of command.h.
15335
15336 * main.c (captured_main): Add new command line option "--pid".
15337 If the second command line argument (following the symbol-file)
15338 begins with a digit, try to attach to it before trying to open
15339 it as a corefile.
15340 (print_gdb_help): Document the "--pid" argument.
15341
15342 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15343
15344 * completer.c (command_completer): New function.
15345
15346 * completer.h <command_completer>: Add prototype.
15347
15348 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15349 completer for the "help" command.
15350
15351 2002-01-09 Jason Merrill <jason@redhat.com>
15352
15353 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15354
15355 2002-01-09 Michael Snyder <msnyder@redhat.com>
15356
15357 * i386-linux-nat.c (fill_fpxregset): Make global.
15358 (store_fpxregset): Ditto.
15359
15360 * gregset.h (gdb_fpxregset_t): Define.
15361 (supply_fpxregset): Prototype.
15362 (fill_fpxregset): Prototype.
15363
15364 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15365
15366 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15367
15368 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15369 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15370 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15371
15372 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15373
15374 * MAINTAINERS: Update target maintainer rules so that any
15375 Maintainer can approve a tested patch for a maintenance-only
15376 target.
15377
15378 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15379
15380 * MAINTAINERS (write-after-approval): Add myself.
15381
15382 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15383 IN_SIGTRAMP.
15384
15385 2002-01-08 Michael Snyder <msnyder@redhat.com>
15386
15387 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15388 real name of the executable, rather than the /proc name.
15389
15390 2002-01-03 Michael Snyder <msnyder@redhat.com>
15391
15392 Implement a "generate-core-file" command in gdb, save target state.
15393 * gcore.c: New file. Implement new command 'generate-core-file'.
15394 Save a corefile image of the current state of the inferior.
15395 * linux-proc.c: Add linux-specific code for saving corefiles.
15396 * target.h (struct target_ops): Add new target vectors for saving
15397 corefiles; to_find_memory_regions and to_make_corefile_notes.
15398 (target_find_memory_regions): New macro.
15399 (target_make_corefile_notes): New macro.
15400 * target.c (update_current_target): Inherit new target methods.
15401 (dummy_find_memory_regions): New place-holder method.
15402 (dummy_make_corefile_notes): New place-holder method.
15403 (init_dummy_target): Initialize new dummy target vectors.
15404 * exec.c (exec_set_find_memory_regions): New function.
15405 Allow the exec_ops vector for memory regions to be taken over.
15406 (exec_make_note_section): New function, target vector method.
15407 * defs.h (exec_set_find_memory_regions): Export prototype.
15408 * procfs.c (proc_find_memory_regions): New function, corefile method.
15409 (procfs_make_note_section): New function, corefile method.
15410 (init_procfs_ops): Set new target vector pointers.
15411 (find_memory_regions_callback): New function.
15412 (procfs_do_thread_registers): New function.
15413 (procfs_corefile_thread_callback): New function.
15414 * sol-thread.c (sol_find_memory_regions): New function.
15415 (sol_make_note_section): New function.
15416 (init_sol_thread_ops): Initialize new target vectors.
15417 * inftarg.c (inftarg_set_find_memory_regions): New function.
15418 Allow to_find_memory_regions vector to be taken over.
15419 (inftarg_set_make_corefile_notes): New function.
15420 Allow to_make_corefile_notes vector to be taken over.
15421 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15422 interface layer if not target_has_execution (may be a corefile).
15423 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15424 * config/sparc/sun4sol2.mh: Ditto.
15425 * config/alpha/alpha-linux.mh: Ditto.
15426 * config/arm/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-07 Michael Snyder <msnyder@redhat.com>
15435
15436 * arm-linux-nat.c: Remove references to regcache.c internal data
15437 (registers[] and register_valid[]).
15438
15439 2002-01-07 Michael Snyder <msnyder@redhat.com>
15440
15441 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15442 so that attaching to a pid will automatically read the process's
15443 symbol file and shlibs.
15444 * Makefile.in: Add rule for linux-proc.o.
15445 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15446 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15447 * config/arm/linux.mh: Ditto.
15448 * config/i386/linux.mh: Ditto.
15449 * config/i386/x86-64linux.mh: Ditto.
15450 * config/ia64/linux.mh: Ditto.
15451 * config/m68k/linux.mh: Ditto.
15452 * config/mips/linux.mh: Ditto.
15453 * config/powerpc/linux.mh: Ditto.
15454 * config/sparc/linux.mh: Ditto.
15455
15456 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15457
15458 * win32-nat.c: Add i386-tdep.h dependency.
15459
15460 2002-01-07 Michael Snyder <msnyder@redhat.com>
15461
15462 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15463 instead of bfd_get_arch_size. Don't bail out just because
15464 there's no exec_bfd.
15465
15466 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15467 * p-valprint.c (pascal_object_print_value): Ditto.
15468 * somread.c (som_symtab_read): Ditto.
15469 * symfile.c (simple_free_overlay_region_table): Ditto.
15470 * valops.c (value_assign): Ditto.
15471
15472 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15473 use tilde_expand and strerror for opening save-tracepoints file.
15474
15475 * thread-db.c (thread_db_new_objfile): Indendation fix.
15476
15477 * infptrace.c (GDB_MAX_ALLOCA): New define.
15478 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15479 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15480 can be overridden with whatever value is appropriate to the host).
15481 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15482 alloca to allocate potentially large buffer.
15483 * rs6000-nat.c (child_xfer_memory): Ditto.
15484 * symm-nat.c (child_xfer_memory): Ditto.
15485 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15486
15487 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15488
15489 From Nick Clifton <nickc@redhat.com>
15490 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15491
15492 2002-01-07 Michael Snyder <msnyder@redhat.com>
15493
15494 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15495 Don't use exec_bfd if it's NULL.
15496
15497 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15498
15499 * valops.c (value_arg_coerce): Fix formatting.
15500
15501 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15502
15503 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15504 * gnu-nat.c: Ditto.
15505
15506 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15507
15508 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15509 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15510 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15511 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15512 z8k-coff have not been multi-arched. Update z8k-coff build
15513 status.
15514
15515 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15516
15517 * MAINTAINERS: Mark a29k target as obsolete.
15518 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15519 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15520 comments.
15521 * NEWS: Note that a29k targets are obsolete.
15522 * a29k-tdep.c: Mark as obsolete.
15523 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15524 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15525 a29k-*-vxworks* targets as obsolete.
15526 * remote-adapt.c: Obsolete.
15527 * remote-eb.c: Obsolete.
15528 * remote-mm.c: Obsolete.
15529 * remote-udi.c: Obsolete.
15530 * config/a29k/a29k-udi.mt: Obsolete.
15531 * config/a29k/a29k.mt: Obsolete.
15532 * config/a29k/tm-a29k.h: Obsolete.
15533 * config/a29k/tm-vx29k.h: Obsolete.
15534 * config/a29k/vx29k.mt: Obsolete.
15535
15536 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15537
15538 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15539 with BFD_ENDIAN_BIG.
15540
15541 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15542
15543 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15544 * configure, config.in: Re-generate.
15545 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15546 * defs.h: Do not include <endian.h>.
15547
15548 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15549
15550 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15551 * config.in: Regenerate.
15552 * configure.in: Update copyright years.
15553 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15554 * configure: Regenerate.
15555 * i386bsd-nat.c: Update copyright years.
15556 (fill_gregset): Use regcache_collect.
15557 (fetch_inferior_registers): Only fetch integer registers
15558 if requested to do so. Add support for XMM registers
15559 using PT_GETXMMREGS.
15560 (store_inferior_registers): Only store integer registers
15561 if requested to do so. Add support for XMM registers
15562 using PT_SETXMMREGS.
15563 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15564 (store_inferior_registers): Remove.
15565 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15566 (fetch_elfcore_registers): New function.
15567 (i386nbsd_elfcore_fns): New.
15568 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15569 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15570 i386bsd-nat.o.
15571 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15572 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15573 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15574 * config/i386/tm-nbsd.h: Update copyright years.
15575 (HAVE_SSE_REGS): Define.
15576 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15577 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15578 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15579 (SIGCONTEXT_PC_OFFSET): Remove.
15580 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15581
15582 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15583
15584 * configure.tgt: Remove powerpc-*-macos* target.
15585 * config/m68k/xm-mpw.h: Delete file.
15586 * config/xm-mpw.h: Delete file.
15587 * ser-mac.c: Delete file.
15588 * mpw-make.sed: Delete file.
15589 * mpw-config.in: Delete file.
15590 * mac-xdep.c: Delete file.
15591 * mac-gdb.r: Delete file.
15592 * mac-defs.h: Delete file.
15593 * mac-nat.c: Delete file.
15594 * config/powerpc/macos.mh: Delete file.
15595 * config/powerpc/macos.mt: Delete file.
15596 * config/powerpc/nm-macos.h: Delete file.
15597 * config/powerpc/tm-macos.h: Delete file.
15598 * source.c (openp, open_source_file): Remove obsolete code.
15599 * top.c (gdb_readline): Ditto.
15600 * utils.c (query): Ditto.
15601 * event-top.c (display_gdb_prompt): Ditto.
15602 * Makefile.in (ser-mac.o): Delete obsolete target.
15603 * NEWS: Update.
15604
15605 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15606
15607 * defs.h (BIG_ENDIAN): Delete macro definition.
15608 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15609 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15610 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15611 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15612 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15613 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15614 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15615 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15616 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15617 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15618 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15619 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15620 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15621 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15622 * gdbarch.c: Re-generate.
15623
15624 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15625
15626 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15627 for core files.
15628
15629 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15630
15631 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15632
15633 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15634
15635 * value.h (value_ptr): Delete typedef.
15636
15637 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15638
15639 * i386nbsd-nat.c: Update copyright years.
15640 Include i386-tdep.h.
15641
15642 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15643
15644 * stabsread.c: Update copyright years.
15645
15646 From Debashis Mahata <debashis.mahata@wipro.com>:
15647 (read_struct_fields): Deal with Sun C compiler erroneous stab
15648 output for structs and unions.
15649 Fix PR gdb/269.
15650
15651 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15652
15653 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15654 prototype.
15655
15656 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15657
15658 * cp-abi.c: Fix whitespace.
15659 (baseclass_offset): New wrapper function.
15660 * cp-abi.h (baseclass_offset): Add prototype.
15661 (struct cp_abi_ops): Add baseclass_offset pointer.
15662
15663 * valops.c (vb_match): Move to...
15664 * gnu-v2-abi.c (vb_match): here.
15665 * valops.c (baseclass_offset): Move to...
15666 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15667
15668 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15669
15670 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15671 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15672 * hpacc-abi.c (init_hpacc_ops): Likewise.
15673
15674 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15675
15676 * valops.c (find_overload_match): Accept obj as a
15677 reference parameter. Update it before returning.
15678 * value.h (find_overload_match): Update prototype.
15679 * eval.c (evaluate_subexp_standard): Pass object to
15680 find_overload_match by reference.
15681
15682 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15683
15684 * valarith.c: Replace value_ptr with struct value pointer. Remove
15685 register attribute from value declarations.
15686 * valops.c: Ditto.
15687 * value.h: Ditto.
15688 * scm-lang.c (scm_lookup_name): Ditto.
15689
15690 2002-01-03 Michael Snyder <msnyder@redhat.com>
15691
15692 Abstract the functionality of iterating over mapped memory
15693 regions into a general purpose iterator function.
15694 * procfs.c (iterate_over_mappings): New function, general purpose
15695 iterator for memory sections.
15696 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15697 (solib_mappings_callback): New function, callback for above.
15698 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15699 (info_mappings_callback): New function, callback for above.
15700
15701 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15702
15703 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15704
15705 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15706 * i386-tdep.c: Include "elf-bfd.h".
15707 (process_note_abi_tag_sections): New function.
15708 (i386_gdbarch_init): Add code to recognize various OS/ABI
15709 combinations.
15710
15711 * maint.c (_initialize_maint_cmds): Add missing \ in
15712 string-literal.
15713
15714 For older changes see ChangeLog-2001
15715 \f
15716 Local Variables:
15717 mode: change-log
15718 left-margin: 8
15719 fill-column: 74
15720 version-control: never
15721 End:
This page took 0.576132 seconds and 5 git commands to generate.