chael Snyder <msnyder@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2003-01-06 Michael Snyder <msnyder@redhat.com>
2
3 * lin-lwp.c: Added or elaborated on "debug lin-lwp" info.
4
5 2003-01-06 Andrew Cagney <ac131313@redhat.com>
6
7 * frame.h (deprecated_frame_xmalloc_with_cleanup): Declare.
8 * frame.c (deprecated_frame_xmalloc_with_cleanup): New function.
9 * arm-tdep.c (arm_frame_chain): Allocate caller_fi using
10 deprecated_frame_xmalloc_with_cleanup.
11 * m32r-tdep.c (m32r_virtual_frame_pointer): Allocate `fi' using
12 deprecated_frame_xmalloc.
13 * mcore-tdep.c (analyze_dummy_frame): Ditto for dummy.
14 * mn10200-tdep.c (mn10200_frame_chain): Ditto for dummy_frame.
15
16 2003-01-06 Andrew Cagney <cagney@redhat.com>
17
18 * x86-64-linux-tdep.c: Include "osabi.h".
19 * Makefile.in (x86-64-linux-tdep.o): Update dependencies.
20
21 * sparc-tdep.c (sparc_dump_tdep): Fix typo, match -> mach.
22
23 2003-01-06 Andrew Cagney <cagney@redhat.com>
24
25 * MAINTAINERS (Target Instruction Set Architectures): Update
26 arm-elf. Can be built with -Werror, has been multiarched.
27
28 * value.h (unpack_long): Make buffer parameter constant.
29 (unpack_double, unpack_pointer, unpack_field_as_long): Ditto.
30 * scm-lang.h (scm_parse): Ditto.
31 * defs.h (extract_typed_address, extract_address): Ditto.
32 (extract_long_unsigned_integer): Ditto.
33 * inferior.h (unsigned_pointer_to_address): Ditto.
34 (signed_pointer_to_address): Ditto.
35 * gdbarch.sh (POINTER_TO_ADDRESS): Ditto.
36 * gdbarch.h, gdbarch.c: Regenerate.
37 * findvar.c (extract_long_unsigned_integer): Update.
38 (extract_address): Update.
39 (extract_typed_address): Update.
40 (unsigned_pointer_to_address): Update.
41 * values.c (unpack_long): Update.
42 (unpack_double): Update.
43 (unpack_pointer): Update.
44 (unpack_field_as_long): Update.
45 * d10v-tdep.c (d10v_pointer_to_address): Update.
46 * avr-tdep.c (avr_pointer_to_address): Update.
47 * scm-lang.c (scm_unpack): Update.
48 * findvar.c (signed_pointer_to_address): Update.
49
50 2003-01-06 Michal Ludvig <mludvig@suse.cz>
51
52 * x86-64-linux-nat.c (i386_sse_regnum_p): Deleted. Not needed anymore
53 since it is in i386-tdep.c.
54
55 2003-01-06 J. Brobecker <brobecker@gnat.com>
56
57 * alpha-tdep.c (alpha_gdbarch_init): Fix a small compilation
58 failure introduced in the previous change.
59
60 2003-01-05 Michael Chastain <mec@shout.net>
61
62 * README: Remove references to deleted remote-*.c files:
63 remote-adapt.c, remote-eb.c, remote-mm.c, remote-nindy.c,
64 remote-nrom.c, remote-os9k.c, remote-udi.c.
65
66 2003-01-05 Mark Kettenis <kettenis@gnu.org>
67
68 * i386-tdep.c (i386_get_longjmp_target): Make usable on x86-64.
69 * x86-64-tdep.c (x86_64_init_abi): Remove FIXME about
70 i386_get_longjmp_target.
71
72 2003-01-05 Andrew Cagney <ac131313@redhat.com>
73
74 * arm-tdep.c (prologue_cache): Change to a pointer.
75 (_initialize_arm_tdep): Allocate prologue_cache.
76 (check_prologue_cache): Update.
77 (save_prologue_cache): Update.
78 (arm_gdbarch_init): Update.
79
80 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
81
82 * stabsread.c (update_method_name_from_physname): Call complaint()
83 instead of error.
84
85 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
86
87 * arm-tdep.c (arm_frame_chain_valid): Remove unnecessary test.
88 * d10v-tdep.c (d10v_frame_chain_valid): Remove unnecessary tests.
89 * hppa-tdep.c (hppa_frame_chain_valid): Remove unnecessary test.
90
91 * blockframe.c: Include "gdbcmd.h" and "command.h".
92 (backtrace_below_main): New variable.
93 (file_frame_chain_valid, func_frame_chain_valid)
94 (nonnull_frame_chain_valid, generic_file_frame_chain_valid)
95 (generic_func_frame_chain_valid): Remove functions.
96 (frame_chain_valid, do_flush_frames_sfunc): New functions.
97 (_initialize_blockframe): New function.
98 * Makefile.in (blockframe.o): Update dependencies.
99 * frame.c (frame_saved_regs_id_unwind, get_prev_frame): Remove FIXME
100 comment. Call frame_chain_valid ().
101 * frame.h: Remove old prototypes. Add prototype for
102 frame_chain_valid and update comments to match.
103 * gdbarch.sh: Change FRAME_CHAIN_VALID into a predicated function.
104 Remove old comment.
105 * gdbarch.h: Regenerated.
106 * gdbarch.c: Regenerated.
107
108 * alpha-tdep.c (alpha_gdbarch_init): Don't call
109 set_gdbarch_frame_chain_valid.
110 * avr-tdep.c (avr_gdbarch_init): Likewise.
111 * cris-tdep.c (cris_gdbarch_init): Likewise.
112 * frv-tdep.c (frv_gdbarch_init): Likewise.
113 * h8300-tdep.c (h8300_gdbarch_init): Likewise.
114 * i386-tdep.c (i386_svr4_init_abi): Likewise.
115 (i386_nw_init_abi): Likewise.
116 (i386_gdbarch_init): Likewise.
117 * ia64-tdep.c (ia64_gdbarch_init): Likewise.
118 * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
119 * m68k-tdep.c (m68k_gdbarch_init): Likewise.
120 * mcore-tdep.c (mcore_gdbarch_init): Likewise.
121 * mips-tdep.c (mips_gdbarch_init): Likewise.
122 * mn10300-tdep.c (mn10300_gdbarch_init): Likewise.
123 * ns32k-tdep.c (ns32k_gdbarch_init): Likewise.
124 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Likewise.
125 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
126 * s390-tdep.c (s390_gdbarch_init): Likewise.
127 * sh-tdep.c (sh_gdbarch_init): Likewise.
128 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
129 * v850-tdep.c (v850_gdbarch_init): Likewise.
130 * vax-tdep.c (vax_gdbarch_init): Likewise.
131 * x86-64-tdep.c (x86_64_init_abi): Likewise.
132
133 * config/m32r/tm-m32r.h (FRAME_CHAIN_VALID): Don't define.
134 * config/m68k/tm-apollo68b.h (FRAME_CHAIN_VALID): Likewise.
135 * config/m68k/tm-m68kv4.h (FRAME_CHAIN_VALID): Likewise.
136 * config/m68k/tm-monitor.h (FRAME_CHAIN_VALID): Likewise.
137 * config/m68k/tm-os68k.h (FRAME_CHAIN_VALID): Likewise.
138 * config/m68k/tm-vx68.h (FRAME_CHAIN_VALID): Likewise.
139 * config/mn10200/tm-mn10200.h (FRAME_CHAIN_VALID): Likewise.
140 * config/sparc/tm-sparclite.h (FRAME_CHAIN_VALID): Likewise.
141
142 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
143
144 * Makefile.in (acconfig_h): Remove incorrect macro.
145 (config_h): Define.
146 (osabi.o): Update dependencies.
147 * configure.tgt: Set gdb_osabi based on target triplet.
148 * configure.in: Define GDB_OSABI_DEFAULT based on gdb_osabi.
149 * configure: Regenerated.
150 * config.in: Regenerated.
151 * osabi.c: Include "arch-utils.h", "gdbcmd.h", and "command.h".
152 (GDB_OSABI_DEFAULT): Define if not already defined.
153 (user_osabi_state, user_selected_osabi, gdb_osabi_available_names)
154 (set_osabi_string): New variables.
155 (gdbarch_register_osabi): Add new OS ABI to
156 gdb_osabi_available_names.
157 (gdbarch_lookup_osabi): Honor specified and default OS ABIs.
158 (set_osabi, show_osabi): New functions.
159 (_initialize_gdb_osabi): Add "set osabi" and "show osabi" commands.
160
161 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
162
163 * arch-utils.c (gdbarch_info_init): Set osabi to
164 GDB_OSABI_UNINITIALIZED.
165 * gdbarch.sh: Add osabi to struct gdbarch and to struct
166 gdbarch_info. Include "osabi.h" in gdbarch.c. Check osabi
167 in gdbarch_list_lookup_by_info and in gdbarch_update_p.
168 * gdbarch.c: Regenerated.
169 * gdbarch.h: Regenerated.
170 * osabi.c (gdbarch_lookup_osabi): Return GDB_OSABI_UNINITIALIZED if
171 there's no BFD.
172 (gdbarch_init_osabi): Remove osabi argument; use info.osabi.
173 * osabi.h (enum gdb_osabi): Move to defs.h.
174 (gdbarch_init_osabi): Update prototype.
175 * defs.h (enum gdb_osabi): Moved here.
176 * Makefile.in: Update dependencies.
177
178 * alpha-tdep.h: Don't include "osabi.h".
179 (struct gdbarch_tdep): Remove osabi member.
180 * alpha-tdep.c: Include "osabi.h".
181 (alpha_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
182 iterate over arches. Update call to gdbarch_init_osabi.
183 (alpha_dump_tdep): Don't dump osabi.
184 * alpha-linux-tdep.c: Include "osabi.h".
185 * alpha-osf1-tdep.c: Include "osabi.h".
186 * alphafbsd-tdep.c: Include "osabi.h".
187 * alphanbsd-tdep.c: Include "osabi.h".
188
189 * arm-tdep.h: Don't include "osabi.h".
190 (struct gdbarch_tdep): Remove osabi member.
191 * arm-tdep.c: Include "osabi.h".
192 (arm_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
193 iterate over arches. Update call to gdbarch_init_osabi.
194 (arm_dump_tdep): Don't dump osabi.
195 * arm-linux-tdep.c: Include "osabi.h".
196 * armnbsd-tdep.c: Include "osabi.h".
197
198 * hppa-tdep.c (hppa_gdbarch_init): Don't call gdbarch_lookup_osabi.
199 Update call to gdbarch_init_osabi.
200
201 * i386-tdep.h: Don't include "osabi.h".
202 (struct gdbarch_tdep): Remove osabi member.
203 * i386-tdep.c: Include "osabi.h".
204 (i386_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
205 iterate over arches. Update call to gdbarch_init_osabi.
206 (i386_dump_tdep): Don't dump osabi.
207 * i386-linux-tdep.c: Include "osabi.h".
208 * i386-sol2-tdep.c: Include "osabi.h".
209 * i386bsd-tdep.c: Include "osabi.h".
210 * i386gnu-tdep.c: Include "osabi.h".
211 * i386ly-tdep.c: Include "osabi.h".
212 * i386nbsd-tdep.c: Include "osabi.h".
213 * i386obsd-tdep.c: Include "osabi.h".
214
215 * mips-tdep.c (struct gdbarch_tdep): Remove osabi member.
216 (mips_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
217 check osabi when iterating over arches. Update call to
218 gdbarch_init_osabi.
219 (mips_dump_tdep): Don't dump osabi.
220
221 * ns32k-tdep.h: Don't include "osabi.h".
222 (struct gdbarch_tdep): Remove.
223 * ns32k-tdep.c (ns32k_gdbarch_init): Don't call
224 gdbarch_lookup_osabi. Don't iterate over arches. Don't
225 allocate tdep. Update call to gdbarch_init_osabi.
226 (ns32k_dump_tdep): Remove.
227 (_initialize_ns32k_tdep): Update call to gdbarch_register.
228 * ns32knbsd-tdep.c: Include "osabi.h".
229
230 * ppc-tdep.h: Don't include "osabi.h".
231 (struct gdbarch_tdep): Remove osabi member.
232 * rs6000-tdep.c: Include "osabi.h".
233 (rs6000_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't check
234 osabi when iterating over arches. Update call to
235 gdbarch_init_osabi.
236 (rs6000_dump_tdep): Don't dump osabi.
237 * ppc-linux-tdep.c: Include "osabi.h".
238 * ppcnbsd-tdep.c: Include "osabi.h".
239
240 * sh-tdep.h: Don't include "osabi.h".
241 (struct gdbarch_tdep): Remove osabi member.
242 * sh-tdep.c: Include "osabi.h".
243 (sh_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
244 iterate over arches. Update call to gdbarch_init_osabi.
245 (sh_dump_tdep): Don't dump osabi.
246 * shnbsd-tdep.c: Include "osabi.h".
247
248 * sparc-tdep.c: Include "osabi.h".
249 (sparc_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
250 iterate over arches. Update call to gdbarch_init_osabi.
251 (sparc_dump_tdep): Don't dump osabi. Do dump the rest of the
252 tdep structure.
253
254 * vax-tdep.h: Don't include "osabi.h".
255 (struct gdbarch_tdep): Remove.
256 * vax-tdep.c: Include "osabi.h".
257 (vax_gdbarch_init): Don't call gdbarch_lookup_osabi. Don't
258 iterate over arches. Don't allocate tdep. Update call
259 to gdbarch_init_osabi.
260 (vax_dump_tdep): Remove.
261 (_initialize_vax_tdep): Update call to gdbarch_register.
262
263 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
264
265 * breakpoint.c (insert_breakpoints): Skip disabled breakpoints
266 entirely.
267 (breakpoint_re_set_one): Don't fetch the value for a disabled
268 watchpoint.
269
270 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
271
272 * buildsym.h (processing_hp_compilation): Remove obsolete variable.
273 * gdbarch.sh Remove include of "value.h" in gdbarch.h.
274 (COERCE_FLOAT_TO_DOUBLE): Remove.
275 * gdbarch.c: Regenerate.
276 * gdbarch.h: Regenerate.
277 * Makefile.in: Remove value_h from gdbarch_h.
278 * valops.c (coerce_float_to_double): New variable.
279 (default_coerce_float_to_double): Remove.
280 (standard_coerce_float_to_double): Remove.
281 (value_arg_coerce): Use coerce_float_to_double.
282 (_initialize_valops): Add "set coerce-float-to-double".
283 * value.h (default_coerce_float_to_double): Remove prototype.
284 (standard_coerce_float_to_double): Remove prototype.
285
286 * hpread.c (hpread_process_one_debug_symbol): Mark C++ functions as
287 prototyped.
288 * mdebugread.c (parse_symbol): Likewise.
289 * stabsread.c (define_symbol): Mark all functions as prototyped.
290
291 * hppa-tdep.c (hppa_coerce_float_to_double): Remove.
292 * alpha-tdep.c (alpha_gdbarch_init): Remove call to
293 set_gdbarch_coerce_float_to_double.
294 * arm-tdep.c (arm_gdbarch_init): Likewise.
295 * frv-tdep.c (frv_gdbarch_init): Likewise.
296 * h8300-tdep.c (h8300_gdbarch_init): Likewise (commented out).
297 * i386-sol2-tdep.c (i386_sol2_init_abi): Likewise.
298 * mips-tdep.c (mips_gdbarch_init): Likewise.
299 (mips_coerce_float_to_double): Remove.
300 * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
301 (rs6000_coerce_float_to_double): Remove.
302 * s390-tdep.c (s390_gdbarch_init): Likewise.
303 * sh-tdep.c (sh_gdbarch_init): Likewise.
304 (sh_coerce_float_to_double): Remove.
305 * sparc-tdep.c (sparc_gdbarch_init): Likewise.
306 (sparc_coerce_float_to_double): Remove.
307 * v850-tdep.c (v850_gdbarch_init): Likewise.
308 * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
309 * config/m32r/tm-m32r.h (COERCE_FLOAT_TO_DOUBLE): Remove.
310 * config/pa/tm-hppa.h: (COERCE_FLOAT_TO_DOUBLE): Remove.
311 (hppa_coerce_float_to_double): Remove prototype.
312 * config/sparc/tm-sparc.h (COERCE_FLOAT_TO_DOUBLE): Remove.
313
314 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
315
316 * regformats/reg-m68k.dat: Remove fpcode and fpflags.
317
318 2003-01-04 Daniel Jacobowitz <drow@mvista.com>
319
320 Suggested by Stewart Brown <sb24@avaya.com>:
321 * c-typeprint.c (c_type_print_varspec_prefix): Pass value of show
322 in recursive calls. Handle TYPE_CODE_TYPEDEF.
323 (c_type_print_varspec_suffix): Likewise.
324
325 2003-01-04 Mark Kettenis <kettenis@gnu.org>
326
327 * configure.in: Don't set and AC_SUBST SUBDIRS.
328 * configure: Regenerated.
329
330 * configure.in: Remove code dealing with shared libraries.
331 * Makefile.in: Remove HLDFLAGS and HLDENV.
332 * configure: Regenerated.
333
334 2003-01-04 Andrew Cagney <ac131313@redhat.com>
335
336 * frame.c (deprecated_frame_xmalloc): New function.
337 (deprecated_set_frame_saved_regs_hack): New function.
338 (deprecated_set_frame_extra_info_hack): New function.
339 * frame.h (deprecated_frame_xmalloc): Declare.
340 (deprecated_set_frame_saved_regs_hack): Declare.
341 (deprecated_set_frame_extra_info_hack): Declare.
342
343 2003-01-04 Mark Kettenis <kettenis@gnu.org>
344
345 * configure.in: Move code that provides the --enable-gdbtk option
346 right after the code that handles the --enable-tui option, and
347 polish it somewhat.
348 * configure: Regenerated.
349
350 * configure.in: Call AC_GNU_SOURCE. Check for pread64 using
351 AC_CHECK_FUNCS and remove the old check for pread64.
352 * acinclude.m4 (AC_GNU_SOURCE): New macro.
353 * acconfig.h (_GNU_SOURCE): Add.
354 (HAVE_PREAD64): Remove.
355 * configure, aclocal.m4, config.in: Regenerated.
356
357 2003-01-03 Andrew Cagney <ac131313@redhat.com>
358
359 * alpha-tdep.c: Use get_frame_saved_regs.
360 * arm-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
361 * h8300-tdep.c, i386-tdep.c, ia64-tdep.c, m68hc11-tdep.c: Ditto.
362 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Ditto.
363 * ns32k-tdep.c, s390-tdep.c, sh-tdep.c, v850-tdep.c: Ditto.
364 * vax-tdep.c, xstormy16-tdep.c: Ditto.
365
366 2003-01-03 Mark Kettenis <kettenis@gnu.org>
367
368 * configure.in: Remove all use of the SUBDIRS variable; add
369 directories using the AC_CONFIG_SUBDIRS macro instead. Polish
370 code providing the --enable-multi-ice option, and move it right in
371 front of the code that checks whether gdbserver is supported.
372 Polish that too.
373 * configure: Regenerated.
374 * Makefile.in (SUBDIRS): Substitute @subdirs@ instead of
375 @SUBDIRS@.
376
377 2003-01-03 Andrew Cagney <cagney@redhat.com>
378
379 * alpha-tdep.c: Use deprecated_update_frame_base_hack.
380 * avr-tdep.c, cris-tdep.c: Ditto.
381 * mcore-tdep.c, mips-tdep.c, mn10200-tdep.c: Ditto.
382 * sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
383
384 2003-01-03 Mark Kettenis <kettenis@gnu.org>
385
386 * configure.in: Remove --enable-netrom option.
387 * configure: Regenerated.
388
389 2003-01-03 Mark Kettenis <kettenis@gnu.org>
390
391 * cli/cli-decode.h: Don't include "gdb_regex.h"; provide a forward
392 declaration for `struct re_pattern_buffer' instead.
393 * Makefile.in (cli_decode_h): Remove $(gdb_regex_h).
394
395 2003-01-03 J. Brobecker <brobecker@gnat.com>
396
397 * mdebugread.c (parse_symbol): Count until the stEnd matching
398 the structure name.
399
400 2003-01-02 Mark Kettenis <kettenis@gnu.org>
401
402 * configure.in: Remove --with-cpu option.
403 subscripts. Remove evil changequotes here.
404 * acconfig.h (TARGET_CPU_DEFAULT): Remove.
405 * config.in, configure: Regenerated.
406
407 * acconfig.h (DEFAULT_BFD_ARCH, DEFAULT_BFD_VEC): Remove.
408 * configure.in: Cleanup section that sources GDB and BFD configure
409 subscripts. Remove evil changequotes here.
410 * config.in, configure: Regenerated.
411
412 2003-01-02 Andrew Cagney <ac131313@redhat.com>
413
414 * arm-tdep.c: Use get_frame_pc and deprecated_update_frame_pc_hack
415 frame accessor methods.
416 * alpha-tdep.c, avr-tdep.c, cris-tdep.c, d10v-tdep.c: Ditto.
417 * dwarf2cfi.c, h8300-tdep.c, i386-tdep.c, ia64-tdep.c: Ditto.
418 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
419 * mn10200-tdep.c, mn10300-tdep.c, ns32k-tdep.c: Ditto.
420 * s390-tdep.c, sh-tdep.c, sparc-tdep.c, v850-tdep.c: Ditto.
421 * vax-tdep.c, x86-64-linux-tdep.c, xstormy16-tdep.c: Ditto.
422 * z8k-tdep.c: Ditto.
423
424 2003-01-02 Mark Kettenis <kettenis@gnu.org>
425
426 * configure.in: Remove UI_OUT configuration code.
427 * ada-lang.c: Update assuming UI_OUT is always true.
428 * Makefile.in (UIOUT_CFLAGS): Remove.
429 * configure: Regenerated.
430 * TODO: Remove blurb about elimination of -DUI_OUT.
431
432 * configure.in: Move code that provides the --enable-gdbcli,
433 --enable-gdbmi options right before the code that handles the
434 --enable-tui option. Polish a bit.
435 * configure: Regenerated.
436
437 * configure.in: Rewrite check for GNU regex and the
438 --without-included regex option, and move it into the "Checks for
439 library functions" section. This makes us use the system regex
440 again by default on systems with version 2 of the GNU C library.
441 This was apparently broken.
442 * gdb_regex.h [!USE_INCLUDED_REGEX] (_REGEX_RE_COMP): Define.
443 * acconfig.h (USE_INCLUDED_REGEX): Remove.
444 * config.in, configure: Regenerated.
445
446 * configure.in: Move code that provides the --enable-tui option
447 before the "Checks for libraries" section. Polish the code
448 somewhat and set need_curses to yes if we build the TUI. Rewrite
449 code that looks for a library providing termcap functionality to
450 match more closely what's done in the Readline library, and move
451 it into to the "Checks for libraries" section.
452 * configure: Regenerated.
453 * Makefile.in (TERMCAP): Remove variable.
454 * config/i386/go32.mh (TERMCAP): Remove variable.
455
456 2003-01-02 Andrew Cagney <ac131313@redhat.com>
457
458 * MAINTAINERS: Mention gdb_mbuild.sh.
459 * gdb_mbuild.sh: Rewrite.
460
461 2003-01-02 Mark Kettenis <kettenis@gnu.org>
462
463 * configure.in: Fix typo in last change.
464 * config.in, configure: Regenerated.
465
466 2003-01-02 Andrew Cagney <ac131313@redhat.com>
467
468 * valarith.c (value_binop): Delete obsolete code and comments.
469 * configure.host: Ditto.
470 * buildsym.h (make_blockvector): Ditto.
471 * buildsym.c (make_blockvector): Ditto.
472 * defs.h (enum language): Ditto.
473 (chill_demangle): Ditto.
474 * elfread.c (elf_symtab_read): Ditto.
475 * dwarfread.c (CHILL_PRODUCER): Ditto.
476 (set_cu_language): Ditto.
477 (handle_producer): Ditto.
478 * expprint.c (print_subexp): Ditto.
479 * gdbtypes.c (chill_varying_type): Ditto.
480 * gdbtypes.h (builtin_type_chill_bool): Ditto.
481 (builtin_type_chill_char, builtin_type_chill_long): Ditto.
482 (builtin_type_chill_ulong, builtin_type_chill_real): Ditto.
483 (chill_varying_type): Ditto.
484 * language.h (_LANG_chill): Ditto.
485 * language.c (binop_result_type, integral_type): Ditto.
486 (character_type, string_type, structured_type): Ditto.
487 (lang_bool_type, binop_type_check): Ditto.
488 * stabsread.h (os9k_stabs): Ditto.
489 * stabsread.c (os9k_type_vector, dbx_lookup_type): Ditto.
490 (define_symbol, read_type, read_struct_fields): Ditto.
491 (read_array_type, read_enum_type, read_huge_number): Ditto.
492 (read_range_type, start_stabs): Ditto.
493 * symfile.c (init_filename_language_table): Ditto.
494 (add_psymbol_with_dem_name_to_list): Ditto.
495 * symtab.c (symbol_init_language_specific): Ditto.
496 (symbol_init_demangled_name, symbol_demangled_name): Ditto.
497 * symtab.h (struct general_symbol_info): Ditto.
498 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
499 * typeprint.c (typedef_print): Ditto.
500 * utils.c (fprintf_symbol_filtered): Ditto.
501 * valops.c (value_cast, search_struct_field, value_slice): Delete
502 obsolete code.
503 (varying_to_slice): Delete function.
504 * value.h (COERCE_VARYING_ARRAY): Delete obsolete macro contents.
505 (varying_to_slice): Delete declaration.
506 * MAINTAINERS: Update.
507
508 2003-01-02 Mark Kettenis <kettenis@gnu.org>
509
510 * configure.in: Reorganize "Checks for library functions section"
511 a bit. Remove check for `btowc' and `isascii' functions.
512 * configure: Regenerated.
513
514 * acconfig.h (_MSE_INT_H): Remove.
515 * configure.in: Create "Checks for header files" section, and move
516 appropriate tests there. Don't check for objlist.h, wchar.h,
517 wctype.h and asm/debugreg.h. Rewrite Solaris 2.[78] <curses.h>
518 misdetection fix. Also add "Checks for types", "Checks for
519 compiler characteristics" and "Checks for library functions"
520 sections.
521 * config.in, configure: Regenerated.
522
523 * configure.in: Create "Checks for programs" section, and move
524 appropriate tests there.
525
526 2003-01-01 Mark Kettenis <kettenis@gnu.org>
527
528 * configure.in: Create "Checks for libraries" section, and move
529 appropriate tests there. Cleanup check for wctype in libw. Use
530 AC_SEARCH_LIBS to see whether we need libsocket.
531 * configure: Regenerated.
532
533 2002-12-31 Mark Kettenis <kettenis@gnu.org>
534
535 * configure.in: Remove bzero and bcopy from call to AC_CHECK_FUNCS.
536 * config.in, configure: Regenerated.
537
538 2002-12-31 Mark Kettenis <kettenis@gnu.org>
539
540 * gdb_dirent.h: Cleanup and update code to match the example in
541 the Autoconf manual.
542 * configure.in: Call AC_HEADER_DIRENT. Remove dirent.h,
543 sys/ndir.h, sys/dir.h and ndir.h from call to AC_CHECK_HEADERS.
544 * configure: Regenerated.
545
546 2002-12-30 Adam Fedor <fedor@gnu.org>
547
548 * objc-exp.y (parse_number): Cast sscanf arguments to proper type.
549 (yylex): Initialize c to avoid uninitialized warning.
550
551 2002-12-29 Kazu Hirata <kazu@cs.umass.edu>
552
553 * doc/fdl.texi: Revert the last change.
554
555 2002-12-29 Mark Kettenis <kettenis@gnu.org>
556
557 * tracepoint.c (ISATTY): Removed.
558
559 2002-12-26 J. Brobecker <brobecker@gnat.com>
560
561 Continuing work to convert the hppa targets to multiarch partil.
562
563 * hppa-tdep.c: Add some missing forward declarations.
564 (frameless_function_invocation): Prefix the function name
565 by "hppa_" to avoid polluting the namespace. Update all calls
566 to use the new function name.
567 (saved_pc_after_call): Ditto.
568 (init_extra_frame_info): Ditto.
569 (frame_chain): Ditto.
570 (push_dummy_frame): Ditto.
571 (target_read_pc): Ditto.
572 (target_write_pc): Ditto.
573 (in_solib_call_trampoline): Ditto.
574 (in_solib_return_trampoline): Ditto.
575 (skip_trampoline_code): Ditto.
576 (hppa_read_fp): New function, renamed from target_read_fp.
577 (hppa_target_read_fp): New function, using hppa_read_fp.
578 This function conforms to the function profile for the
579 READ_FP gdbarch method.
580 (hppa_extract_struct_value_address): New function, extracted
581 from the definition of the DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS
582 macro.
583 (hppa_frame_num_args): New function.
584 (hppa_gdbarch_init): Setup the gdbarch vector for the hppa target.
585
586 * config/pa/tm-hppa.h: Wrap around all gdbarch-eligible macros
587 inside "#if !GDB_MULTI_ARCH ... #endif" conditional, in preparation
588 for the switch to multiarch partial.
589 Update some of the macros definitions to match some changes
590 described above in the name of the function they are calling.
591 (PUSH_DUMMY_FRAME): Add a FIXME explaining why this macro will
592 not be straightforward to convert. Do now wrap it inside
593 "#if !... #endif" to remember that this macro has still not
594 been taken care of.
595 (FIX_CALL_DUMMY): Likewise.
596
597 2002-12-26 J. Brobecker <brobecker@gnat.com>
598
599 Continuing work to convert the hppa targets to multiarch partial.
600
601 * hppa-tdep.c (hppa_register_raw_size): New function replacing
602 the body of macro REGISTER_RAW_SIZE.
603 * hppa-hpux-tdep.c: Add new functions replacing macro bodies from
604 config/pa/tm-hppah.h. These functions will be used to initialize
605 the gdbarch structure.
606 (hppa_hpux_pc_in_sigtramp): New function.
607 (hppa_hpux_frame_saved_pc_in_sigtramp): New function.
608 (hppa_hpux_frame_base_before_sigtramp): New function.
609 (hppa_hpux_frame_find_saved_regs_in_sigtramp): New function.
610 Add gdbcore.h #include.
611 * config/pa/tm-hppa.h (REGISTER_RAW_SIZE): Change the definition
612 of this gdbarch-eligible macro to a call to the new associated
613 function.
614 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Likewise.
615 (FRAME_SAVED_PC_IN_SIGTRAMP): Change the definition of this macro
616 into a call to the new associated function.
617 (FRAME_BASE_BEFORE_SIGTRAMP): Likewise.
618 (FRAME_FIND_SAVED_REGS_IN_SIGTRAMP): Likewise.
619 * Makefile.in (hppa-hpux-tdep.o): Add dependency on gdbcore.h.
620
621 2002-12-24 David Carlton <carlton@math.stanford.edu>
622
623 * config/sparc/tm-sparc.h: Delete duplicate definition of
624 DEPRECATED_PC_IN_CALL_DUMMY.
625
626 2002-12-24 Kevin Buettner <kevinb@redhat.com>
627
628 * Makefile.in (mips-linux-tdep.o): Add $(mips_tdep_h) and
629 $(gdb_assert_h).
630 * configure.tgt: Recognize mips64*-*-linux*.
631 * mips-linux-tdep.c (mips-tdep.h, gdb_assert.h): Include.
632 (supply_32_bit_reg): New function.
633 (supply_gregset): Call supply_32bit_reg() instead of supply_register().
634 (fill_gregset): Use regcache_collect() instead of
635 deprecated_registers[].
636 (register_addr): Change name to mips_linux_register_addr().
637 (MIPS64_ELF_NGREG, MIPS64_ELF_NFPREG, MIPS64_FPR_BASE, MIPS64_PC)
638 (MIPS64_CAUSE, MIPS64_BADVADDR, MIPS64_MMHI, MIPS64_MMLO)
639 (MIPS64_FPC_CSR, MIPS64_FPC_EIR, MIPS64_EF_REG0, MIPS64_EF_REG31)
640 (MIPS64_EF_LO, MIPS64_EF_HI, MIPS64_EF_CP0_EPC, MIPS64_EF_CP0_BADVADDR)
641 (MIPS64_EF_CP0_STATUS, MIPS64_EF_CP0_CAUSE, MIPS64_EF_SIZE)
642 (MIPS64_LINUX_JB_PC): New defines.
643 (mips64_elf_greg_t, mips64_elf_gregset_t, mips64_elf_fpreg_t)
644 (mips64_elf_fpregset_t): New typedefs.
645 (mips64_linux_get_longhmp_target, mips64_supply_gregset)
646 (mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset)
647 (mips64_linux_register_addr, set_mips_linux_register_addr)
648 (register_addr, mips64_linux_svr4_fetch_link_map_offsets):
649 (init_register_addr_data)
650 New functions.
651 (fetch_core_registers): Add support for core file formats with 64-bit
652 registers.
653 (mips_linux_init_abi): Distinguish o32, n32, and n64 ABIs.
654 (register_addr_data): New static global variable.
655 (_initialize_mips_linux_tdep): Initialize register_addr_data. Invoke
656 gdbarch_register_osabi() for each MIPS machine.
657 * config/mips/linux64.mt: New file.
658 * config/mips/tm-linux64.h: New file.
659
660 2002-12-23 Adam Fedor <fedor@gnu.org>
661
662 * maint.c (maintenance_demangle): Add switch to demangle
663 ObjC language symbols as well.
664
665 2002-12-23 Adam Fedor <fedor@gnu.org>
666
667 * objc-lang.c (lookup_objc_class, lookup_child_selector): Remove
668 last argument from complaint function call.
669
670 2002-12-23 Kevin Buettner <kevinb@redhat.com>
671
672 * exec.c (print_section_info): Add FIXME comments regarding format
673 string choices.
674
675 2002-12-23 Daniel Jacobowitz <drow@mvista.com>
676
677 * config/pa/nm-hppab.h: Delete duplicate CANNOT_STORE_REGISTER decl.
678 * config/pa/nm-hppao.h: Delete duplicate CANNOT_STORE_REGISTER decl.
679
680 2002-12-23 Rodney Brown <rbrown64@csc.com.au>
681
682 * config/pa/nm-hppah.h: Delete duplicate CANNOT_STORE_REGISTER decl.
683
684 2002-12-23 David Carlton <carlton@math.stanford.edu>
685
686 * symtab.c (lookup_symbol_aux): Delete 'force_return' variable.
687 (lookup_symbol_aux_minsyms): Delete 'force_return' argument.
688 (search_symbols): Call lookup_symbol_aux_minsyms to find debugging
689 information associated to a minsym, not lookup_symbol.
690
691 2002-12-21 Mark Kettenis <kettenis@gnu.org>
692
693 * x86-64-tdep.h (x86_64_init_abi): New prototype.
694 * x86-64-tdep.c (i386_fp_regnum_p): Remove function.
695 (x86_64_init_abi): Make non-static. Set number of pseudo
696 registers to 0.
697 (x86_64_gdbarch_init): Remove function.
698 (_initialize_x86_64_tdep): Renove register_gdbarch_init call.
699 Remove code dealing with dissambly.
700 * x86-64-linux-tdep.c (x86_64_linux_init_abi): New function.
701 (_initialize_x86_64_linux_tdep): New function.
702 * config/i386/x86-64linux.mt (TDEPFILES): Add i386-tdep.o and
703 i386-tdep.o.
704
705 2002-12-14 Mark Kettenis <kettenis@gnu.org>
706
707 * osabi.c: Include "gdb_assert.h" and "gdb_string.h".
708 (struct gdb_osabi_handler): Remove member `arch'. Add member
709 `arch_info'.
710 (gdbarch_register_osabi): Add new argument `machine'. Use ot to
711 construct a `struct bfd_arch_info' and store it in the `struct
712 gdb_osabi_handler' that is created.
713 (gdbarch_init_osabi): Check for compatibility based on machine
714 type and architecture.
715 * osabi.h (gdbarch_register_osabi): Adjust prototype and update
716 comment.
717 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Add 0 as
718 second argument in call to gdbarch_register_osabi.
719 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
720 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
721 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
722 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Likewise.
723 * arm-tdep.c (_initialize_arm_tdep): Likewise.
724 * armnbsd-tdep.c (_initialize_armnbsd_tdep): Likewise.
725 * hppa-hpux-tdep.c (_initialize_hppa_hpux_tdep): Likewise.
726 * i386-interix-tdep.c (_initialize_i386_interix_tdep): Likewise.
727 * i386-linux-tdep.c (_initialize_i386_linux_tdep): Likewise.
728 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Likewise.
729 * i386-tdep.c (_initialize_i386_tdep): Likewise.
730 * i386bsd-tdep.c (_initialize_i386bsd_tdep): Likewise.
731 * i386gnu-tdep.c (_initialize_i386gnu_tdep): Likewise.
732 * i386ly-tdep.c (_initialize_i386lynx_tdep): Renamed from
733 _initialize_i386bsd_tdep and updated likewise.
734 * i386nbsd-tdep.c (_initialize_i386nbsd_tdep): Likewise.
735 * i386obsd-tdep.c (_initialize_i386obsd_tdep): Likewise.
736 * mips-irix-tdep.c (_initialize_mips_irix_tdep): Likewise.
737 * mips-linux-tdep.c (_initialize_mips_linux_tdep): Likewise.
738 * mipsnbsd-tdep.c (_initialize_mipsnbsd__tdep): Likewise.
739 * ns32knbsd-tdep.c (_initialize_ns32kmnsd_tdep): Likewise.
740 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep): Likewise.
741 * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Likewise.
742 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Likewise.
743 * sparcnbsd-tdep.c (_initialize_sparcnbsd_tdep): Likewise.
744
745 2002-12-20 Kevin Buettner <kevinb@redhat.com>
746
747 * solib-svr4.c (elf_locate_base): Fix sizeof() related bug. Add
748 DT_MIPS_RLD_MAP case for 64-bit targets.
749
750 2002-12-20 Kevin Buettner <kevinb@redhat.com>
751
752 * mips-tdep.c (heuristic_proc_desc): Clear memory associated with
753 ``temp_saved_regs'', not the pointer or other storage contiguous
754 to this pointer.
755
756 2002-12-20 Kevin Buettner <kevinb@redhat.com>
757
758 * Makefile.in (mips-linux-tdep.o): Add $(osabi_h) and $(gdb_string_h).
759 * config/mips/tm-linux.h (mips_linux_svr4_fetch_link_map_offsets)
760 (mips_linux_get_longjmp_target): Delete declarations.
761 (SVR4_FETCH_LINK_MAP_OFFSETS, GET_LONGJMP_TARGET)
762 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Delete definitions.
763 * mips-linux-tdep.c (osabi.h, gdb_string.h): Include.
764 (MIPS_LINUX_JB_ELEMENT_SIZE, MIPS_LINUX_JB_PC): Define.
765 (mips_linux_get_longjmp_target)
766 (mips_linux_svr4_fetch_link_map_offsets): Make static.
767 (mips_linux_init_abi): New function.
768 (_initialize_mips_linux_tdep): Register mips_linux_init_abi().
769
770 2002-12-19 Keith Seitz <keiths@redhat.com>
771
772 patch committed by Elena Zannoni <ezannoni@redhat.com>
773 * thread.c (do_captured_list_thread_ids): Call prune_threads and
774 target_find_new_threads. Fix for PR mi/669.
775
776 2002-12-19 David Carlton <carlton@math.stanford.edu>
777
778 * linespec.c (decode_line_1): Move code into decode_all_digits.
779 (decode_all_digits): New function.
780
781 2002-12-19 Kevin Buettner <kevinb@redhat.com>
782
783 * exec.c (print_section_info): Select a format string to use with
784 local_hex_string_custom() based upon the value of TARGET_ADDR_BIT.
785
786 2002-12-18 Andrew Cagney <ac131313@redhat.com>
787
788 * frame.c (deprecated_update_current_frame_pc_hack): Replace
789 deprecated_update_current_frame_pc_hack.
790 (deprecated_update_frame_base_hack): New function.
791 * frame.h (deprecated_update_frame_pc_hack): Replace
792 (deprecated_update_frame_base_hack): Declare.
793 * infrun.c (normal_stop): Update.
794
795 2002-12-18 Andrew Cagney <ac131313@redhat.com>
796
797 * rs6000-tdep.c (rs6000_init_extra_frame_info): Use
798 frame_extra_info_zalloc.
799 (rs6000_frame_args_address): Use get_frame_extra_info.
800 (frame_get_saved_regs): Use get_frame_saved_regs.
801 (frame_initial_stack_address): Use get_frame_saved_regs and
802 get_frame_extra_info.
803 (frame_initial_stack_address): Use get_frame_extra_info.
804
805 2002-12-17 Kevin Buettner <kevinb@redhat.com>
806
807 * dve3900-rom.c (r3900_regnames): Don't use NUM_REGS to determine
808 array size.
809 (fetch_bitmapped_register, store_bitmapped_register): Add bounds
810 checks for r3900_regnames[].
811
812 2002-12-17 Richard Earnshaw <rearnsha@arm.com>
813
814 * armnbsd-tdep.c (ARM_NBSD_JB_PC): Renamed from JB_PC.
815 All uses changed
816 (ARM_NBSD_JB_ELELMENT_SIZE): Similarly.
817
818 2002-12-17 David Carlton <carlton@math.stanford.edu>
819
820 * symtab.c (lookup_partial_symbol): Don't search past the end of
821 the partial symbols.
822
823 2002-12-17 Andrew Cagney <ac131313@redhat.com>
824
825 * stack.c (frame_info): Use get_frame_saved_regs.
826 * breakpoint.c (until_break_command): Use get_frame_pc.
827
828 2002-12-16 Kevin Buettner <kevinb@redhat.com>
829
830 * buildsym.c (block_end_complaint, anon_block_end_complaint)
831 (innerblock_complaint, innerblock_anon_complaint)
832 (blockvector_complaint): Delete deprecated complaint structs.
833 (finish_block, make_blockvector, end_symtab): Replace calls
834 to complain() with calls to complaint().
835 * coffread.c (ef_complaint, ef_stack_complaint, eb_stack_complaint)
836 (bf_no_aux_complaint, ef_no_aux_complaint, lineno_complaint)
837 (unexpected_type_complaint, bad_sclass_complaint)
838 (misordered_blocks_complaint, tagndx_bad_complaint, eb_complaint):
839 Delete deprecated complaint structs.
840 (coff_symtab_read, enter_linenos, decode_type, decode_base_type):
841 Replace calls to complain() with calls to complaint().
842 * dbxread.c (lbrac_complaint, string_table_offset_complaint)
843 (unknown_symtype_complaint, unknown_symchar_complaint)
844 (lbrac_rbrac_complaint, lbrac_unmatched_complaint)
845 (lbrac_mismatch_complaint, repeated_header_complaint)
846 (unclaimed_bincl_complaint, discarding_local_symbols_complaint):
847 Delete deprecated complaint structs.
848 (unknown_symtype_complaint, lbrac_mismatch_complaint)
849 (repeated_header_complaint)
850 (function_outside_compiliation_unit_complaint): New functions.
851 (add_old_header_file, find_corresponding_bincl_psymtab)
852 (set_namestring, find_stab_function_addr, read_dbx_symtab)
853 (process_one_symbol): Replace calls to complain() with, possibly
854 indirect, calls to complaint().
855 * dwarfread.c (no_bfd_get_N, malformed_die, bad_die_ref)
856 (unknown_attribute_form, unknown_attribute_length)
857 (unexpected_fund_type, unknown_type_modifier, volatile_ignored)
858 (const_ignored, botched_modified_type, op_deref2, op_deref4)
859 (basereg_not_handled, dup_user_type_allocation)
860 (dup_user_type_definition, missing_tag, bad_array_element_type)
861 (subscript_data_items, unhandled_array_subscript_format)
862 (unknown_array_subscript_format, not_row_major)
863 (missing_at_name): Delete deprecated complaint structs.
864 (bad_die_ref_complaint, unknown_attribute_form_complaint)
865 (dup_user_type_definition_complaint)
866 (bad_array_element_type_complaint): New functions.
867 (lookup_utype, alloc_utype, struct_type, decode_array_element_type)
868 (decode_subscript_data_item, dwarf_read_array_type)
869 (read_tag_string_type, read_subroutine_type, read_func_scope)
870 (locval, scan_partial_symbols, decode_modified_type)
871 (decode_func_type, basicdieinfo, completeddieinfo, target_to_host)
872 (attribute_size): Replace calls to complain() with, possibly
873 indirect, calls to complaint().
874 * elfread.c (section_info_complaint, section_info_dup_complaint)
875 (stab_info_mismatch_complaint, stab_info_questionable_complaint):
876 Delete deprecated complaint structs.
877 (elf_symtab_read, elfstab_offset_sections): Replace calls to
878 complain() with calls to complaint().
879 * gdbtypes.c (stub_noname_complaint): Delete deprecated complaint
880 struct.
881 (stub_noname_complaint): New function.
882 (check_typedef, add_mangled_type): Replace calls to complain()
883 with calls to complaint().
884 * hpread.c (string_table_offset_complaint, lbrac_unmatched_complaint)
885 (lbrac_mismatch_complaint, hpread_unhandled_end_common_complaint)
886 (hpread_unhandled_type_complaint, hpread_struct_complaint)
887 (hpread_array_complaint, hpread_type_lookup_complaint)
888 (hpread_unexpected_end_complaint, hpread_tagdef_complaint)
889 (hpread_unhandled_common_complaint)
890 (hpread_unhandled_blockdata_complaint): Delete deprecated complaint
891 struct definitions and declarations.
892 (lbrac_unmatched_complaint, lbrac_mismatch_complaint): New functions.
893 (SET_NAMESTRING, hpread_type_lookup, hpread_process_one_debug_symbol):
894 Replace calls to complain() with, possibly indirect, calls to
895 complaint().
896 * macrotab.c (macro_include, check_for_redefinition, macro_undef):
897 Likewise.
898 * mdebugread.c (bad_file_number_complaint, index_complaint)
899 (aux_index_complaint, block_index_complaint)
900 (unknown_ext_complaint, unknown_sym_complaint)
901 (unknown_st_complaint, block_overflow_complaint)
902 (basic_type_complaint, unknown_type_qual_complaint)
903 (array_index_type_complaint, bad_tag_guess_complaint)
904 (block_member_complaint, stEnd_complaint)
905 (unknown_mdebug_symtype_complaint, stab_unknown_complaint)
906 (pdr_for_nonsymbol_complaint, pdr_static_symbol_complaint)
907 (bad_setjmp_pdr_complaint, bad_fbitfield_complaint)
908 (bad_continued_complaint, bad_rfd_entry_complaint)
909 (unexpected_type_code_complaint, unable_to_cross_ref_complaint)
910 (bad_indirect_xref_complaint, illegal_forward_tq0_complaint)
911 (illegal_forward_bt_complaint, bad_linetable_guess_complaint)
912 (bad_ext_ifd_complaint, bad_ext_iss_complaint): Delete deprecated
913 complaint structs.
914 (index_complaint, unknown_ext_complaint, basic_type_complaint)
915 (bad_tag_guess_complaint, bad_rfd_entry_complaint)
916 (unexpected_type_code_complaint)
917 (function_outside_compilation_unit_complaint): New functions.
918 (parse_symbol, parse_type, upgrade_type, parse_procedure)
919 (parse_partial_symbols, psymtab_to_symtab_1, cross_ref, add_symbol):
920 Replace calls to complain() with, possibly indirect calls to
921 complaint().
922 * objc-lang.c (noclass_lookup_complaint, nosel_lookup_complaint):
923 Delete deprecated complaint structs.
924 (lookup__objc_class, lookup_child_selector): Replace complain()
925 with complaint().
926 * remote-vx.c (cant_contact_target): Delete deprecated complaint
927 struct.
928 (vx_lookup_symbol): Replace complain() with complaint().
929 * stabsread.c (invalid_cpp_abbrev_complaint)
930 (invalid_cpp_type_complaint, member_fn_complaint)
931 (const_vol_complaint, error_type_complaint)
932 (invalid_member_complaint, range_type_base_complaint)
933 (reg_value_complaint, vtbl_notfound_complaint)
934 (unrecognized_cplus_name_complaint, rs6000_builtin_complaint)
935 (unresolved_sym_chain_complaint, stabs_general_complaint)
936 (lrs_general_complaint, multiply_defined_struct): Delete
937 deprecated complaint structs.
938 (invalid_cpp_abbrev_complaint, ref_value_complaint)
939 (stabs_general_complaint, lrs_general_complaint)
940 (msg_unknown_complaint): New functions.
941 (dbx_lookup_type, read_cfront_baseclasses)
942 (read_cfront_member_functions, resolve_symbol_reference)
943 (define_symbol, resolve_live_range, add_live_range, read_type)
944 (rs6000_builtin_type, read_member_functions, read_cpp_abbrev)
945 (read_one_struct_field, read_baseclasses, read_tilde_fields)
946 (read_cfront_static_fields, attach_fields_to_type)
947 (complain_about_struct_wipeout, read_range_type)
948 (common_block_start, common_block_end, cleanup_undefined_types)
949 (scan_file_globals): Replace complain() with complaint().
950 * stabsread.h (unknown_symtype_complaint, unknown_symchar_complaint):
951 Delete deprecated complaint struct declarations.
952 * xcoffread.c (storclass_complaint, bf_notfound_complaint)
953 (ef_complaint, eb_complaint): Delete deprecated complaint structs.
954 (bf_not_found_complaint, ef_complaint, eb_complaint)
955 (function_outside_compilation_unit_complaint): New functions.
956 (record_include_begin, record_include_end, enter_line_range)
957 (xcoff_next_symbol_text, read_xcoff_symtab, process_xcoff_symbol)
958 (read_symbol, read_symbol_lineno, scan_xcoff_symtab) Replace
959 complain() with complaint().
960
961 2002-12-16 Andrew Cagney <ac131313@redhat.com>
962
963 * config/arc/arc.mt, config/arc/tm-arc.h: Delete.
964 * config/d30v/d30v.mt, config/d30v/tm-d30v.h: Delete.
965 * config/fr30/fr30.mt, config/fr30/tm-fr30.h: Delete.
966 * config/i386/i386aix.mh, config/i386/i386aix.mt: Delete.
967 * config/i386/i386m3.mh, config/i386/i386m3.mt: Delete.
968 * config/i386/i386mach.mh, config/i386/i386os9k.mt: Delete.
969 * config/i386/nm-i386aix.h, config/i386/nm-i386mach.h: Delete.
970 * config/i386/nm-m3.h, config/i386/tm-i386aix.h: Delete.
971 * config/i386/tm-i386m3.h, config/i386/tm-i386mk.h: Delete.
972 * config/i386/xm-i386aix.h, config/i386/xm-i386m3.h: Delete.
973 * config/i386/xm-i386mach.h, config/i386/xm-i386mk.h: Delete.
974 * config/i960/mon960.mt, config/i960/nindy960.mt: Delete.
975 * config/i960/tm-i960.h, config/i960/tm-mon960.h: Delete.
976 * config/i960/tm-nindy960.h, config/i960/tm-vx960.h: Delete.
977 * config/i960/vxworks960.mt, config/m68k/apollo68b.mh: Delete.
978 * config/m68k/apollo68b.mt, config/m68k/apollo68v.mh: Delete.
979 * config/m68k/hp300bsd.mh, config/m68k/hp300bsd.mt: Delete.
980 * config/m68k/hp300hpux.mh, config/m68k/hp300hpux.mt: Delete.
981 * config/m88k/delta88.mh, config/m88k/delta88.mt: Delete.
982 * config/m88k/delta88v4.mh, config/m88k/delta88v4.mt: Delete.
983 * config/m88k/m88k.mh, config/m88k/m88k.mt: Delete.
984 * config/m88k/nm-delta88v4.h, config/m88k/nm-m88k.h: Delete.
985 * config/m88k/tm-delta88.h, config/m88k/tm-delta88v4.h: Delete.
986 * config/m88k/tm-m88k.h, config/m88k/xm-delta88.h: Delete.
987 * config/m88k/xm-dgux.h: Delete.
988 * fr30-tdep.c, i386aix-nat.c, i386m3-nat.c: Delete.
989 * i386mach-nat.c, i960-tdep.c, m88k-nat.c: Delete.
990 * os9kread.c, remote-bug.c, remote-nindy.c: Delete.
991 * remote-nrom.c, remote-os9k.c, remote-vx960.c: Delete.
992 * d30v-tdep.c, arc-tdep.c, cxux-nat.c, dst.h, dstread.c: Delete.
993 * ch-exp.c, ch-lang.c, ch-lang.h, ch-typeprint.c: Delete.
994 * ch-valprint.c: Delete.
995
996 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
997
998 * infrun.c (handle_inferior_event): Rearrange code to resume if
999 no catchpoint triggers for an event.
1000
1001 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1002
1003 * infrun.c (handle_inferior_event): Merge TARGET_WAITKIND_FORKED
1004 and TARGET_WAITKIND_VFORKED cases.
1005
1006 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1007
1008 * infrun.c (handle_inferior_event): Assume that catchpoints
1009 are not affected by DECR_PC_AFTER_BREAK.
1010
1011 2002-12-15 Daniel Jacobowitz <drow@mvista.com>
1012
1013 * target.c (update_current_target): Don't inherit DONT_USE.
1014 * target.h (struct target_ops): Remove DONT_USE.
1015 (target_next): Remove macro.
1016
1017 2002-12-15 Mark Kettenis <kettenis@gnu.org>
1018
1019 * ui-out.c (MAX_UI_OUT_LEVELS): Raise to 6. Fixes PR cli/654.
1020
1021 2002-12-14 Richard Earnshaw <rearnsha@arm.com>
1022
1023 * arm-tdep.c (convert_from_extended): New argument to hold the
1024 type of floating point result we want to convert to. Make input
1025 argument const. Fix all callers.
1026 (convert_to_extended): Similarly.
1027 (arm_extract_return_value): Now takes a regcache argument. Change
1028 code to use regcache accessor functions. Correctly extract
1029 smaller-than-word results on big-endian machines.
1030 (arm_store_return_value): Now takes a regcache argument. Change
1031 code to use regcache accessor functions. Correctly zero/sign extend
1032 smaller than word results before storing into r0.
1033 (arm_gdbarch_init): Register new-style extract_return_value and
1034 store_return_value functions.
1035
1036 2002-12-13 Michael Snyder <msnyder@to-limbo.toronto.redhat.com>
1037
1038 * thread-db.c (thread_from_lwp): Uniquify error msg.
1039 (lwp_from_thread): Ditto.
1040 (check_event): Ditto.
1041 (find_new_threads_callback): Ditto.
1042 (thread_db_pid_to_str): Ditto.
1043
1044 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1045
1046 * frame.h (get_frame_saved_regs): Declare.
1047 (frame_saved_regs_zalloc): Change return type to CORE_ADDR
1048 pointer.
1049 * frame.c (get_frame_saved_regs): New function.
1050 (frame_saved_regs_zalloc): Return the allocated saved_regs.
1051
1052 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1053
1054 * frame.c (deprecated_update_current_frame_pc_hack): New
1055 function.
1056 * frame.h (deprecated_update_current_frame_pc_hack): Declare.
1057 * infrun.c (normal_stop): Use said function instead of directly
1058 modifying the frame's PC.
1059
1060 2002-12-13 Alexandre Oliva <aoliva@redhat.com>
1061
1062 * frame.h (frame_id_unwind_ftype): Fix typo in return type.
1063
1064 2002-12-13 Kevin Buettner <kevinb@redhat.com>
1065
1066 * config/mips/tm-mips.h, config/mips/tm-irix3.h,
1067 config/mips/tm-irix6.h (NUM_REGS): Delete.
1068 * mips-tdep.c (mips_gdbarch_init): Call set_gdbarch_num_regs().
1069 (temp_saved_regs): Declare as a pointer rather than an array.
1070 (mips32_heuristic_proc_desc, heuristic_proc_desc): Make sure
1071 that ``temp_saved_regs'' has storage allocated to it and that
1072 it's the correct size.
1073
1074 2002-12-13 Jeff Johnston <jjohnstn@redhat.com>
1075
1076 * defs.h (init_last_source_visited): New prototype.
1077 (add_path): Ditto.
1078 * source.c (add_path): New function that adds to a specified path.
1079 (mod_path): Change to call add_path.
1080 (init_last_source_visited): New function to allow interfaces to
1081 initialize static variable: last_source_visited. Part of fix
1082 for PR gdb/741.
1083 * Makefile.in: Add support for mi/mi-cmd-env.c.
1084
1085 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1086
1087 * frame.h (frame_id_unwind): Declare.
1088 (struct frame_info): Add fields id_unwind, id_unwind_cache_p and
1089 id_unwind_cache.
1090 (frame_id_unwind_ftype): Declare.
1091 * frame.c (frame_id_unwind): New function.
1092 (set_unwind_by_pc): Add unwind_id parameter. Initialized.
1093 (create_new_frame, get_prev_frame): Pass id_unwind to
1094 set_unwind_by_pc.
1095 (frame_saved_regs_id_unwind): New function.
1096 (frame_saved_regs_id_unwind): New function.
1097 * dummy-frame.c (dummy_frame_id_unwind): New function.
1098 (struct dummy_frame): Add field id.
1099 (generic_push_dummy_frame): Initialize `id'.
1100 * dummy-frame.h (dummy_frame_id_unwind): Declare.
1101
1102 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1103
1104 * infcmd.c (run_stack_dummy): Create a frame ID directly and then
1105 pass that to set_momentary_breakpoint. Move comments to where they
1106 belong.
1107 * frame.h (set_current_frame): Delete declaration.
1108 * frame.c (set_current_frame): Delete function.
1109
1110 2002-12-13 Andrew Cagney <ac131313@redhat.com>
1111
1112 * frame.c (frame_extra_info_zalloc): New function.
1113 * frame.h (frame_extra_info_zalloc): Declare.
1114
1115 2002-12-13 Joel Brobecker <brobecker@gnat.com>
1116
1117 * hppa-tdep.c (hppa_pop_frame): Fix a compilation error introduced
1118 in the previous prototype change to set_momentary_breakpoint.
1119
1120 2002-12-12 Daniel Jacobowitz <drow@mvista.com>
1121
1122 * infrun.c (pending_follow): Remove saw_parent_fork, saw_child_fork,
1123 and saw_child_exec.
1124 (follow_fork, init_wait_for_inferior, handle_inferior_event): Remove
1125 references to saw_parent_fork, saw_child_fork, and saw_child_exec.
1126 (stop_stepping): Remove outdated check for child vfork events.
1127
1128 2002-12-12 Andrew Cagney <ac131313@redhat.com>
1129
1130 * GDB 5.3 released from gdb_5_3-branch.
1131
1132 2002-12-11 Daniel Jacobowitz <drow@mvista.com>
1133
1134 * corelow.c (init_core_ops): Delete references to to_require_attach
1135 and to_require_detach.
1136 * exec.c (init_exec_ops): Likewise.
1137 * hppah-nat.c (child_follow_fork): Call hppa_require_attach and
1138 hppa_require_detach directly.
1139 * inferior.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1140 * inftarg.c (child_detach): Remove.
1141 (child_detach_from_process): Rename to child_detach, remove
1142 after_fork argument.
1143 (child_attach): Remove.
1144 (child_attach_to_process): Rename to child_attach, remove after_fork
1145 argument.
1146 (init_child_ops): Delete references to to_require_attach
1147 and to_require_detach.
1148 * infttrace.c (hppa_require_attach): Update comment.
1149 * target.c (cleanup_target, update_current_target)
1150 (init_dummy_target, setup_target_debug): Delete references to
1151 to_require_attach and to_require_detach.
1152 (find_default_require_detach, find_default_require_attach)
1153 (debug_to_require_attach, debug_to_require_detach): Remove
1154 functions.
1155 * target.h (struct target_ops): Remove to_require_attach
1156 and to_require_detach.
1157 (target_require_attach, target_require_detach): Delete macros.
1158 (find_default_require_detach, find_default_require_attach): Delete
1159 prototypes.
1160 * config/pa/nm-hppah.h (REQUIRE_ATTACH, REQUIRE_DETACH): Delete.
1161
1162 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1163
1164 * frame.c (get_frame_extra_info): New function.
1165 * frame.h (get_frame_extra_info): Declare.
1166
1167 2002-12-11 Andrew Cagney <ac131313@redhat.com>
1168
1169 * breakpoint.h (struct breakpoint): Replace frame with frame_id.
1170 (set_momentary_breaokpoint): Replace `struct frame_info' parameter
1171 with `struct frame_id'.
1172 (set_longjmp_resume_breakpoint): Ditto.
1173 * infrun.c (handle_inferior_event): Update.
1174 * breakpoint.c (watch_command_1, until_break_command): Update.
1175 * infrun.c (handle_inferior_event, check_sigtramp2): Update.
1176 (handle_inferior_event, step_over_function): Update.
1177 * breakpoint.c (bpstat_stop_status, print_one_breakpoint): Update.
1178 (set_raw_breakpoint, set_longjmp_resume_breakpoint): Update.
1179 (set_momentary_breakpoint, deprecated_frame_in_dummy): Update.
1180 * infcmd.c (finish_command, run_stack_dummy): Update.
1181
1182 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1183
1184 * dwarf2read.c (dwarf2_const_ignored, dwarf2_volatile_ignored)
1185 (dwarf2_non_const_array_bound_ignored)
1186 (dwarf2_missing_line_number_section)
1187 (dwarf2_statement_list_fits_in_line_number_section)
1188 (dwarf2_mangled_line_number_section, dwarf2_unsupported_die_ref_attr)
1189 (dwarf2_unsupported_stack_op, dwarf2_complex_location_expr)
1190 (dwarf2_unsupported_tag, dwarf2_unsupported_at_encoding)
1191 (dwarf2_unsupported_at_frame_base, dwarf2_unexpected_tag)
1192 (dwarf2_missing_at_frame_base, dwarf2_bad_static_member_name)
1193 (dwarf2_unsupported_accessibility, dwarf2_bad_member_name_complaint)
1194 (dwarf2_missing_member_fn_type_complaint)
1195 (dwarf2_vtbl_not_found_complaint, dwarf2_absolute_sibling_complaint)
1196 (dwarf2_const_value_length_mismatch)
1197 (dwarf2_unsupported_const_value_attr, dwarf2_misplaced_line_number)
1198 (dwarf2_line_header_too_long, dwarf2_missing_macinfo_section)
1199 (dwarf2_macros_too_long, dwarf2_macros_not_terminated)
1200 (dwarf2_macro_outside_file, dwarf2_macro_unmatched_end_file)
1201 (dwarf2_macro_malformed_definition, dwarf2_macro_spaces_in_definition)
1202 (dwarf2_invalid_attrib_class, dwarf2_invalid_pointer_size): Delete
1203 complaints using deprecated struct..
1204 (dwarf2_non_const_array_bound_ignored_complaint)
1205 (dwarf2_complex_location_expr_complaint)
1206 (dwarf2_unsupported_at_frame_base_complaint)
1207 (dwarf2_const_value_length_mismatch_complaint)
1208 (dwarf2_macros_too_long_complaint)
1209 (dwarf2_macro_malformed_definition_complaint)
1210 (dwarf2_invalid_attrib_class_complaint): New functions.
1211 (read_func_scope, dwarf2_attach_fields_to_type, dwarf2_add_member_fn)
1212 (read_structure_scope, read_array_type, read_common_block)
1213 (read_tag_pointer_type, read_base_type, read_partial_die)
1214 (dwarf_decode_line_header, check_cu_functions, dwarf_decode_lines)
1215 (new_symbol, dwarf2_const_value, read_type_die)
1216 (dwarf2_get_ref_die_offset, decode_locdesc, consume_improper_spaces)
1217 (parse_macro_definition, dwarf_decode_macros): Replace calls to
1218 complain() with, possibly indirect, calls to complaint().
1219
1220 2002-12-11 Andrew Cagney <cagney@redhat.com>
1221
1222 * frame.c (deprecated_get_frame_saved_regs): Rename
1223 get_frame_saved_regs.
1224 * frame.h (deprecated_get_frame_saved_regs): Update declaration.
1225 * sparc-tdep.c: Update.
1226 * hppa-tdep.c: Update.
1227 * h8500-tdep.c: Update.
1228
1229 2002-12-11 Kevin Buettner <kevinb@redhat.com>
1230
1231 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME)
1232 (ADDRESS_CLASS_NAME_TO_TYPE_FLAGS): Use ``const char *'' instead of
1233 ``char *'' for return and parameter types.
1234 * gdbarch.h, gdbarch.c: Regenerate.
1235 * gdbtypes.h, gdbtypes.c (address_space_int_to_name): Change
1236 return type from ``char *'' to ``const char *''.
1237 * c-typeprint.c (c_type_print_modifier): Make ``address_space_id''
1238 const.
1239
1240 2002-12-11 Mark Kettenis <kettenis@gnu.org>
1241
1242 * i386-tdep.c: Include "dummy-frame.h".
1243 (i386_frame_chain, i386_frame_saved_pc): Replace
1244 DEPRECATED_PC_IN_CALL_DUMMY with call to pc_in_dummy_frame.
1245 (i386_gdbarch_init): Don't set deprecated_pc_in_call_dummy.
1246
1247 2002-12-10 Andrew Cagney <cagney@redhat.com>
1248
1249 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1250 Change to a function with predicate.
1251 * gdbarch.h, gdbarch.c: Re-generate.
1252 * frame.c (get_prev_frame): Update. Test
1253 DEPRECATED_INIT_FRAME_PC_P.
1254 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC): Update.
1255 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC): Update.
1256 * config/mn10200/tm-mn10200.h (DEPRECATED_INIT_FRAME_PC): Update.
1257 * alpha-tdep.c (alpha_gdbarch_init): Update.
1258 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1259 * mips-tdep.c (mips_gdbarch_init): Update.
1260 * i386-interix-tdep.c (i386_interix_init_abi): Update.
1261 * arm-tdep.c: Update comments.
1262 * h8300-tdep.c (h8300_gdbarch_init): Explicitly set init_frame_pc.
1263 * config/m32r/tm-m32r.h (DEPRECATED_INIT_FRAME_PC): Ditto.
1264 * frv-tdep.c (frv_gdbarch_init): Ditto.
1265 * x86-64-tdep.c (x86_64_init_abi): Ditto.
1266 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1267 * s390-tdep.c (s390_gdbarch_init): Ditto.
1268 * v850-tdep.c (v850_gdbarch_init): Ditto.
1269 * vax-tdep.c (vax_gdbarch_init): Ditto.
1270 * sh-tdep.c (sh_gdbarch_init): Ditto.
1271 * ns32k-tdep.c (ns32k_gdbarch_init): Ditto.
1272 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1273 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1274 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1275 * i386-tdep.c (i386_gdbarch_init): Ditto.
1276 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1277 * cris-tdep.c (cris_gdbarch_init): Ditto.
1278 * avr-tdep.c (avr_gdbarch_init): Ditto.
1279 * arm-tdep.c (arm_gdbarch_init): Ditto.
1280 * config/z8k/tm-z8k.h (INIT_FRAME_PC_FIRST): Delete macro.
1281 (DEPRECATED_INIT_FRAME_PC): Rename INIT_FRAME_PC.
1282
1283 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1284
1285 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_VFORK): Change to
1286 CHILD_FOLLOW_FORK.
1287 * hppah-nat.c (saved_vfork_pid): Add.
1288 (child_post_follow_vfork): Remove.
1289 (child_follow_fork): New function.
1290 (child_wait): Call detach_breakpoints after receiving the child vfork.
1291 Call child_resume directly instead of going through resume ().
1292 Make sure we have the exec before reporting the vfork.
1293 * inferior.h (follow_inferior_reset_breakpoints): Add prototype.
1294 * infrun.c (follow_fork, follow_vfork, follow_inferior_fork): Remove.
1295 (follow_fork): New function. Call target_follow_fork.
1296 (follow_inferior_reset_breakpoints): New function broken out from
1297 old follow_inferior_fork.
1298 (resume): Remove hack to follow exec after vfork.
1299 * inftarg.c (child_post_follow_vfork): Remove.
1300 (child_follow_fork): New function.
1301 (init_child_ops): Replace to_post_follow_vfork with to_follow_fork.
1302 * target.c (cleanup_target): Replace to_post_follow_vfork with
1303 to_follow_fork.
1304 (update_current_target): Likewise.
1305 (setup_target_debug): Likewise.
1306 (debug_to_post_follow_vfork): Remove.
1307 (debug_to_follow_fork): New function.
1308 * target.h (struct target_ops): Replace to_post_folow_vfork with
1309 to_follow_fork.
1310 (child_post_follow_vfork): Remove prototype.
1311 (child_follow_fork): Add prototype.
1312 (target_post_follow_vfork): Remove macro.
1313 (target_follow_fork): Add macro.
1314
1315 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1316
1317 * hppah-nat.c (saved_child_execd_pathname, saved_vfork_state): New.
1318 (child_post_follow_vfork): Cancel pending exec event if we follow
1319 the parent.
1320 (child_wait): Only return TARGET_WAITKIND_VFORKED when all necessary
1321 events have been processed. Return a fake TARGET_WAITKIND_EXECD
1322 event at the following wait call if necessary.
1323 * infrun.c (follow_vfork): Don't follow_exec here.
1324 (handle_inferior_event): Add comment to TARGET_WAITKIND_EXECD
1325 case about HP/UX 10.20. Remove code pushed down to
1326 hppah-nat.c:child_wait.
1327 * infttrace.c (child_resume): Use TT_PROC_CONTINUE if
1328 vfork_in_flight is set.
1329
1330 2002-12-10 Daniel Jacobowitz <drow@mvista.com>
1331
1332 * hppah-nat.c (child_wait): Return TARGET_WAITKIND_IGNORE
1333 for the parent's fork event.
1334 * infrun.c (handle_inferior_event): Only expect one fork event.
1335 Call prepare_to_wait for TARGET_WAITKIND_IGNORE. Update comment.
1336 * target.h: Update comment for TARGET_WAITKIND_IGNORE.
1337
1338 2002-12-10 Andrew Cagney <ac131313@redhat.com>
1339
1340 * PROBLEMS: Delete reference to PR gdb/725.
1341
1342 * MAINTAINERS (gdb.c++): Add David Carlton.
1343
1344 2002-12-09 David Carlton <carlton@math.stanford.edu>
1345
1346 * cli/cli-setshow.c: #include <readline/tilde.h> after defs.h.
1347 * cli/cli-cmds.c: Ditto.
1348
1349 2002-12-09 Andrew Cagney <cagney@redhat.com>
1350
1351 * gdbarch.sh (gdbarch_dump): Print NAME_OF_MALLOC using %s. Wrap
1352 function address in <>.
1353 * gdbarch.c: Re-generate.
1354
1355 2002-12-09 David Carlton <carlton@math.stanford.edu>
1356
1357 * p-exp.y: Rename TRUE and FALSE to TRUEKEYWORD and FALSEKEYWORD.
1358
1359 2002-12-09 David Carlton <carlton@math.stanford.edu>
1360
1361 * linespec.c (symtab_from_filename): New function.
1362 (decode_line_1): Move code into symtab_from_filename.
1363
1364 2002-12-09 Kevin Buettner <kevinb@redhat.com>
1365
1366 * lin-lwp.c (strsignal): Make extern declaration match that of glibc.
1367
1368 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1369
1370 * f-valprint.c (info_common_command): Use get_frame_pc.
1371 * std-regs.c (value_of_builtin_frame_pc_reg): Ditto.
1372 * ax-gdb.c (agent_command): Ditto.
1373 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1374 (rs6000_pop_frame): Ditto.
1375 (rs6000_frameless_function_invocation): Ditto.
1376 (rs6000_frame_saved_pc, frame_get_saved_regs): Ditto.
1377 (frame_initial_stack_address, rs6000_frame_chain): Ditto.
1378 * macroscope.c (default_macro_scope): Ditto.
1379 * stack.c (print_frame_info_base): Ditto.
1380 (print_frame, frame_info, print_frame_label_vars): Ditto.
1381 (return_command, func_command, get_frame_language): Ditto.
1382 * infcmd.c (finish_command): Ditto.
1383 * dummy-frame.c (cached_find_dummy_frame): Ditto.
1384 * breakpoint.c (deprecated_frame_in_dummy): Ditto.
1385 (break_at_finish_at_depth_command_1): Ditto.
1386 (break_at_finish_command_1): Ditto.
1387 (until_break_command, get_catch_sals): Ditto.
1388 * blockframe.c (func_frame_chain_valid): Ditto.
1389 (frameless_look_for_prologue): Ditto.
1390 (frame_address_in_block, generic_func_frame_chain_valid): Ditto.
1391
1392 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1393
1394 * config/rs6000/tm-rs6000.h (init_frame_pc_noop): Add declaration.
1395 * dwarf2cfi.c (cfi_init_frame_pc): Cast the PC to a pointer.
1396
1397 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1398
1399 * gdbarch.sh (INIT_FRAME_PC_FIRST, INIT_FRAME_PC_DEFAULT): Convert
1400 to pure functions.
1401 * gdbarch.h, gdbarch.c: Re-generate.
1402 * frame.c (get_prev_frame): Explictly assign prev's pc with value
1403 returned by INIT_FRAME_PC_FIRST and INIT_EXTRA_FRAME_INFO.
1404
1405 * arch-utils.h (init_frame_pc_default, init_frame_pc_noop): Change
1406 declaration to a function returning a CORE_ADDR.
1407 * x86-64-tdep.h (x86_64_init_frame_pc): Ditto.
1408 * arch-utils.c (init_frame_pc_noop): Return the PC value.
1409 (init_frame_pc_default): Ditto.
1410 * x86-64-linux-tdep.c (x86_64_init_frame_pc): Ditto.
1411 * s390-tdep.c (s390_init_frame_pc_first): Ditto.
1412 * mips-tdep.c (mips_init_frame_pc_first): Ditto.
1413 * dwarf2cfi.h (cfi_init_frame_pc): Ditto.
1414 * dwarf2cfi.c (cfi_init_frame_pc): Ditto.
1415 * alpha-tdep.c (alpha_init_frame_pc_first): Ditto.
1416
1417 * i386-interix-tdep.c (i386_interix_init_abi): Set init_frame_pc
1418 to init_frame_pc_noop.
1419 (i386_interix_init_frame_pc): Delete function.
1420 * z8k-tdep.c (init_frame_pc): Delete function.
1421 * config/z8k/tm-z8k.h (INIT_FRAME_PC): Define as init_frame_pc_noop.
1422 (INIT_FRAME_PC_FIRST): Ditto.
1423 * config/mn10200/tm-mn10200.h (INIT_FRAME_PC): Ditto.
1424 (INIT_FRAME_PC_FIRST): Ditto.
1425 * config/sparc/tm-sparc.h (INIT_FRAME_PC): Ditto.
1426 * config/rs6000/tm-rs6000.h (INIT_FRAME_PC): Redefine as
1427 init_frame_pc_noop.
1428 (INIT_FRAME_PC_FIRST): Convert to an expression.
1429 * config/sparc/tm-sparc.h (INIT_FRAME_PC_FIRST): Ditto.
1430
1431 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1432
1433 * blockframe.c: Use get_frame_base instead of directly accessing
1434 the `struct frame_info' member frame.
1435 * f-valprint.c, std-regs.c, rs6000-tdep.c: Ditto.
1436 * stack.c, dummy-frame.c, breakpoint.c: Ditto.
1437
1438 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1439
1440 * Makefile.in (readline_h): Define.
1441 (completer.o): Depend on readline_h.
1442 (corelow.o): Ditto.
1443 (event-top.o): Ditto.
1444 (exec.o): Ditto.
1445 (solib.o): Ditto.
1446 (source.o): Ditto.
1447 (symfile.o): Ditto.
1448 (symmisc.o): Ditto.
1449 (top.o): Ditto.
1450 (tracepoint.o): Ditto.
1451 (utils.o): Ditto.
1452 (cli-dump.o): Ditto.
1453 (tui-hooks.o): Ditto.
1454 (tuiWin.o): Ditto.
1455
1456 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1457
1458 More cleanup from import of readline 4.3.
1459 * completer.h (complete_line, readline_line_completion_function):
1460 Update prototypes.
1461 (line_completion_function): Removed, not used outside of completer.c.
1462 * completer.c (readline_line_completion_function,
1463 complete_function, line_completion_function): Use const for first
1464 parameter.
1465 (line_completion_function): Make static.
1466 (filename_completer): filename_completion_function is now called
1467 rl_filename_completion_function
1468 * corelow.c: Include <readline/readline.h>.
1469 * exec.c: Ditto.
1470 * solib.c: Ditto.
1471 * source.c: Ditto.
1472 * symfile.c: Ditto.
1473 * symmisc.c: Ditto.
1474 * top.c (init_main): No need to coerce
1475 readline_line_completion_function anymore.
1476 * cli/cli-dump.c: Include <readline/readline.h>.
1477
1478 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1479
1480 * stack.c (frame_info): Use get_prev_frame.
1481 * blockframe.c (frame_address_in_block): Ditto.
1482 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
1483 (rs6000_frameless_function_invocation): Ditto.
1484 (rs6000_frame_saved_pc): Ditto.
1485 (rs6000_frame_chain): Ditto.
1486 * arch-utils.c (init_frame_pc_default): Ditto.
1487
1488 2002-12-08 Andrew Cagney <ac131313@redhat.com>
1489
1490 * config/mn10200/tm-mn10200.h (DEPRECATED_PC_IN_CALL_DUMMY):
1491 Delete redundant definition.
1492
1493 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1494
1495 Import of readline 4.3:
1496 * cli/cli-cmds.c: Include readline/tilde.h.
1497 * cli/cli-setshow.c: Ditto.
1498 * defs.h: Don't declare tilde_expand anymore, since readline
1499 exports it.
1500
1501 2002-12-08 Elena Zannoni <ezannoni@redhat.com>
1502
1503 * Makefile.in (thread-db.o): Add explicit rule to ignore the use of
1504 -Werror on this file.
1505
1506 2002-12-07 Andrew Cagney <ac131313@redhat.com>
1507
1508 * gdbarch.sh (TARGET_FLOAT_FORMAT): Use the macro when printing
1509 the format name.
1510 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1511 * gdbarch.c: Regenerate.
1512
1513 2002-12-06 Andrew Cagney <ac131313@redhat.com>
1514
1515 * gdbarch.sh (DEPRECATED_INIT_FRAME_PC_FIRST): Rename
1516 INIT_FRAME_PC_FIRST. Change to a function with predicate. Do not
1517 provide a default value.
1518 * gdbarch.h, gdbarch.c: Regenerate.
1519 * frame.c (get_prev_frame): Update. Check
1520 DEPRECATED_INIT_FRAME_PC_FIRST_P.
1521 * s390-tdep.c (s390_gdbarch_init): Update.
1522 * mips-tdep.c (mips_gdbarch_init): Update.
1523 * config/sparc/tm-sparc.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1524 * config/rs6000/tm-rs6000.h (DEPRECATED_INIT_FRAME_PC_FIRST): Update.
1525 * alpha-tdep.c (alpha_gdbarch_init): Update.
1526
1527 2002-12-06 Elena Zannoni <ezannoni@redhat.com>
1528
1529 * ia64-linux-nat.c: Include gdb_string.h.
1530 * alpha-nat.c: Ditto.
1531 * ppc-linux-nat.c: Ditto.
1532 * Makefile.in (ia64-linux-nat.o, alpha-nat.o, ppc-linux-nat.o):
1533 Update dependencies.
1534
1535 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1536
1537 * gdbthread.h: Include "frame.h".
1538 (struct thread_info): Replace step_frame_address with
1539 step_frame_id.
1540 * inferior.h: Include "frame.h".
1541 (step_frame_id): Replace external variable step_frame_address.
1542 * gdbthread.h (save_infrun_state): Replace step_frame_address
1543 parameter with step_frame_id parameter.
1544 (load_infrun_state): Ditto.
1545 * Makefile.in (gdbthread_h, inferior_h): Add $(frame_h).
1546 * infcmd.c (step_frame_id, step_1, step_once): Update.
1547 * thread.c (load_infrun_state, save_infrun_state): Update.
1548 * infrun.c (clear_proceed_status, save_inferior_status): Update.
1549 (handle_inferior_event, step_over_function): Update.
1550 (normal_stop, context_switch, restore_inferior_status): Update.
1551 (struct inferior_status): Replace step_frame_address with
1552 step_frame_id.
1553
1554 2002-12-05 David Carlton <carlton@math.stanford.edu>
1555
1556 * dwarf2read.c (dwarf2_add_field): Treat a field that is a
1557 DW_TAG_member as well as a declaration as being a C++ static data
1558 member.
1559 (read_structure_scope): Combine tests for DW_TAG_member and
1560 DW_TAG_variable.
1561
1562 2002-12-05 David Carlton <carlton@math.stanford.edu>
1563
1564 * linespec.c (decode_compound): New function.
1565 (decode_line_1): Move code into decode_compound.
1566
1567 2002-12-05 David Carlton <carlton@math.stanford.edu>
1568
1569 * symtab.c (lookup_symbol_aux_local): Add 'static_block'
1570 argument.
1571 (lookup_symbol_aux): Do the 'field_of_this' check before checking
1572 the static block. See PR gdb/804.
1573
1574 2002-12-05 David Carlton <carlton@math.stanford.edu>
1575
1576 * symtab.c (lookup_symbol_aux_block): New function.
1577 (lookup_symbol_aux_local): Move code into lookup_symbol_aux_block.
1578
1579 2002-12-05 Andrew Cagney <ac131313@redhat.com>
1580
1581 * gdbarch.sh: Dump the predicate function and macro values.
1582 (read): Print error on standard error.
1583 * gdbarch.c: Regenerate.
1584
1585 2002-12-04 Kevin Buettner <kevinb@redhat.com>
1586
1587 * Makefile.in (mips_tdep_h): Define.
1588 (mips-tdep.o): Add mips_tdep_h to dependency list.
1589 * mips-tdep.h: New file.
1590 * mips-tdep.c (mips-tdep.h): Include.
1591 (enum mips_abi): Move to mips-tdep.h.
1592 (mips_abi): New function.
1593
1594 2002-12-04 David Carlton <carlton@math.stanford.edu>
1595
1596 * Makefile.in (f-exp.tab.c): Don't depend on c-exp.tab.c.
1597
1598 2002-12-04 David Carlton <carlton@math.stanford.edu>
1599
1600 * symtab.c (lookup_symbol_aux): Move minsym code into a separate
1601 function.
1602 (lookup_symbol_aux_minsyms): New function.
1603
1604 2002-12-04 J. Brobecker <brobecker@gnat.com>
1605
1606 * pa64solib.c: s/boolean/int/. Fixes a build failure on hppa64-hpux.
1607
1608 2002-12-04 J. Brobecker <brobecker@gnat.com>
1609
1610 * config/pa/tm-hppah.h (PC_IN_SIGTRAMP): Renamed from IN_SIGTRAMP,
1611 which is an obsolete macro name.
1612
1613 2002-12-04 Daniel Jacobowitz <drow@mvista.com>
1614
1615 * doublest.c (convert_floatformat_to_doublest): Cast exp_bias to int.
1616 * config/alpha/alpha-linux.mh (MH_CFLAGS): Add -mieee.
1617
1618 2002-12-03 H.J. Lu (hjl@gnu.org)
1619
1620 * breakpoint.c (create_thread_event_breakpoint): Use xasprintf.
1621 (create_breakpoints): Make sure the addr_string field is not
1622 NULL.
1623
1624 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1625
1626 * sparc-nat.c (fetch_inferior_registers)
1627 (store_inferior_registers): Add comment on problem of LWP vs
1628 threads.
1629
1630 From 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
1631 * lin-lwp.c (lin_lwp_fetch_registers): Remove.
1632 (lin_lwp_store_registers): Remove.
1633 (init_lin_lwp_ops): Use fetch_inferior_registers
1634 and store_inferior_registers directly.
1635 * sparc-nat.c (fetch_inferior_registers): Honor LWP ID.
1636 (store_inferior_registers): Likewise.
1637 Fix PR gdb/725.
1638
1639 2002-12-03 Andrew Cagney <ac131313@redhat.com>
1640
1641 * frame.h (get_frame_id): Convert to a function.
1642 (null_frame_id, frame_id_p): Declare.
1643 (frame_id_eq, frame_id_inner): Declare.
1644 (frame_id_build): New function.
1645 * frame.c (get_frame_id): Update. Use null_frame_id.
1646 (frame_find_by_id): Rewrite using frame_id_p, frame_id_eq and
1647 frame_id_inner.
1648 (null_frame_id, frame_id_p): Define.
1649 (frame_id_eq, frame_id_inner): Define.
1650 (frame_id_build): New function.
1651 * varobj.c (varobj_create): Update.
1652 (varobj_update): Update.
1653 * valops.c (value_assign): Update.
1654 (new_root_variable): Update.
1655 * infrun.c (save_inferior_status): Update.
1656 * breakpoint.c (watch_command_1): Update.
1657
1658 2002-12-03 J. Brobecker <brobecker@gnat.com>
1659
1660 * config/pa/tm-hppah.h (SNAP1): Remove unused macro.
1661 (SNAP2): Likewise.
1662
1663 2002-12-03 Andrew Cagney <cagney@redhat.com>
1664
1665 * NEWS: Mention Daniel Jacobowitz's multi-threaded shared library
1666 patch.
1667
1668 * PROBLEMS: Mention PR gdb/725.
1669
1670 2002-12-03 Andreas Schwab <schwab@suse.de>
1671
1672 * infcmd.c (construct_inferior_arguments): Handle empty arguments.
1673
1674 2002-12-02 Adam Fedor <fedor@gnu.org>
1675 Klee Dienes <kdienes@apple.com>
1676
1677 * objc-lang.c (objc_printstr): Add width arg to match
1678 printstr prototype.
1679 (compare_selectors): Add 'const' to arg types.
1680 (compare_classes): Likewise.
1681 (find_imps): Cast msym pointer to avoid compiler warning.
1682 (print_object_command): Validate the address before
1683 passing it to the print routine.
1684 (find_objc_msgcall_submethod): Change function argument to
1685 return an int.
1686 * objc-lang.h: Add 'extern' to all function declarations.
1687 (value_nsstring): Add declaration.
1688
1689 2002-12-02 J. Brobecker <brobecker@gnat.com>
1690
1691 * somsolib.c (dld_cache): Replace boolean by int for field is_valid.
1692 Fixes a build failure on HP/UX.
1693
1694 * hpread.c (told_objfile): Replace boolean type by int. Fixes a build
1695 failure on HP/UX.
1696 (hpread_has_name): Advance declaration to avoid a compilation warning.
1697 (pst_syms_count): Add missing variable type. By change, the compiler
1698 was defaulting to int, which seems a good choice. Fixes a compilation
1699 warning.
1700 (pst_syms_size): Likewise.
1701
1702 2002-12-02 J. Brobecker <brobecker@gnat.com>
1703
1704 * hppa-tdep.c: Add #include "osabi.h" (for hppa_gdbarch_init).
1705 (hppa_gdbarch_init): Detect osabi from objfile. Will be needed
1706 later to set the proper gdbarch methods depending on the osabi.
1707 * Makefile.in (hppa-tdep.o): Add dependency on osabi.h.
1708
1709 2002-12-02 J. Brobecker <brobecker@gnat.com>
1710
1711 * osabi.h (gdb_osabi): Add two new enum values for HPUX ELF and SOM.
1712 * osabi.c (gdb_osabi_name): Add strings images for the two new
1713 enum values.
1714 (generic_elf_osabi_sniffer): Handle HPUX objfiles.
1715
1716 2002-12-02 Andrew Cagney <ac131313@redhat.com>
1717
1718 * MAINTAINERS (Java): Global maintainers are responible for Java.
1719 (Past Maintainers): Mention both Anthony Green and Per Bothner as
1720 part Java maintainers.
1721
1722 2002-12-02 J. Brobecker <brobecker@gnat.com>
1723
1724 * xcoffread.c (read_symbol_lineno): Replace boolean by int.
1725 Fixes a compilation failure on AiX.
1726
1727 2002-12-02 J. Brobecker <brobecker@gnat.com>
1728
1729 * config/powerpc/aix432.mh (NATDEPFILES): Add a comment explaining
1730 why aix-thread.o is not listed.
1731
1732 2002-12-01 Andrew Cagney <ac131313@redhat.com>
1733
1734 * gdbarch.sh (DEPRECATED_PC_IN_CALL_DUMMY): Rename
1735 PC_IN_CALL_DUMMY. Change to predicate. Always allow call.
1736 * gdbarch.h, gdbarch.c: Re-generate.
1737 * config/sparc/tm-sparc.h, config/sparc/tm-sp64.h: Update.
1738 * config/mn10200/tm-mn10200.h, config/h8500/tm-h8500.h: Update.
1739 * config/pa/tm-hppa.h, frame.h: Update.
1740 * x86-64-tdep.c, vax-tdep.c, sparc-tdep.c: Update.
1741 * s390-tdep.c, ns32k-tdep.c, mn10300-tdep.c: Update.
1742 * m68k-tdep.c, i386-tdep.c, frv-tdep.c: Update.
1743 * cris-tdep.c, alpha-tdep.c: Update.
1744 * frame.c (set_unwind_by_pc, create_new_frame): Use either
1745 DEPRECATED_PC_IN_CALL_DUMMY or pc_in_dummy_frame.
1746 (get_prev_frame): Ditto.
1747
1748 2002-11-30 Andrew Cagney <cagney@redhat.com>
1749
1750 * exec.c (xfer_memory): Replace boolean with int.
1751 * p-exp.y: Use 0 instead of false.
1752 * corelow.c (gdb_check_format): Change return type to int from
1753 boolean.
1754 * utils.c: Don't include <curses.h> or <term.h> first.
1755
1756 2002-11-29 Stephane Carrez <stcarrez@nerim.fr>
1757
1758 * m68hc11-tdep.c (m68hc11_register_raw_size): Remove.
1759 (m68hc11_register_byte): Remove.
1760 (m68hc11_gdbarch_init): Don't set the above.
1761
1762 2002-11-29 Andrew Cagney <cagney@redhat.com>
1763
1764 * remote-mips.c (mips_initialize): Force a selected frame rebuild
1765 by calling get_selected_frame.
1766 * ocd.c (ocd_start_remote): Use get_selected frame instead of
1767 set_current_frame, create_new_frame, select_frame and
1768 get_current_frame.
1769 * remote-e7000.c (e7000_start_remote): Ditto.
1770 * remote-mips.c (common_open): Ditto
1771 * remote-rdp.c (remote_rdp_open): Ditto.
1772
1773 2002-11-29 Andreas Schwab <schwab@suse.de>
1774
1775 * m68k-tdep.c (m68k_frame_chain, m68k_frame_saved_pc)
1776 (altos_skip_prologue, delta68_frame_saved_pc, isi_frame_num_args)
1777 (delta68_frame_num_args, news_frame_num_args, m68k_skip_prologue)
1778 (m68k_frame_init_saved_regs, m68k_saved_pc_after_call): Use
1779 read_memory_unsigned_integer instead of read_memory_integer when
1780 dealing with addresses and instruction opcodes.
1781 * m68klinux-tdep.c (m68k_linux_sigtramp_saved_pc)
1782 (m68k_linux_frame_saved_pc): Likewise.
1783
1784 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1785
1786 * stack.c (selected_frame, select_frame): Move from here ...
1787 * frame.c (selected_frame, select_frame): ... to here. Include
1788 "language.h".
1789 * Makefile.in (frame.o): Update dependencies.
1790 * frame.c (get_selected_frame): New function.
1791 * frame.h (get_selected_frame): Declare.
1792 (deprecated_selected_frame): Rename selected_frame.
1793 * ada-lang.c, ada-tasks.c, breakpoint.c, corelow.c: Update.
1794 * eval.c, f-valprint.c, findvar.c, frame.c, frame.h: Update.
1795 * h8300-tdep.c, h8500-tdep.c, hppa-tdep.c, infcmd.c: Update.
1796 * inflow.c, infrun.c, macroscope.c, mips-tdep.c: Update.
1797 * mn10300-tdep.c, ocd.c, regcache.h, remote-e7000.c: Update.
1798 * remote-mips.c, remote-rdp.c, sh-tdep.c, sparc-tdep.c: Update.
1799 * stack.c, thread.c, tracepoint.c, valops.c, varobj.c: Update.
1800 * z8k-tdep.c, cli/cli-cmds.c: Update.
1801
1802 2002-11-29 Andrew Cagney <ac131313@redhat.com>
1803
1804 * frame.h (get_selected_block): Add comments.
1805
1806 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1807
1808 * frame.c (pc_notcurrent): New function.
1809 (find_frame_sal): New function.
1810 * frame.h (find_frame_sal): Declare.
1811 (struct symtab_and_line): Add opaque declaration.
1812 * stack.c (print_frame_info_base): Use find_frame_sal instead of
1813 find_pc_line.
1814 (frame_info): Ditto.
1815 * ada-lang.c (find_printable_frame): Ditto.
1816
1817 2002-11-28 J. Brobecker <brobecker@gnat.com>
1818
1819 * configure.in: Check that the pthdebug library is recent enough
1820 before enabling thread support on native AiX.
1821 * configure: Regenerate.
1822
1823 * config/powerpc/aix432.mh (NATDEPFILES): Remove aix-thread.o
1824 from the list of object files as it is now appended by configure
1825 if thread support is enabled.
1826 (NAT_CLIBS): Removed as -lpthdebug is also appended by configure
1827 if thread support is enabled.
1828
1829 2002-11-28 Andrew Cagney <cagney@redhat.com>
1830
1831 * stack.c (get_selected_block): In-line get_current_block.
1832 * frame.h (get_current_block): Delete declaration.
1833 * blockframe.c (get_current_block): Delete function.
1834
1835 2002-11-28 Andrew Cagney <ac131313@redhat.com>
1836
1837 * gdbarch.sh (DEPRECATED_USE_GENERIC_DUMMY_FRAMES): Rename
1838 USE_GENERIC_DUMMY_FRAMES.
1839 * gdbarch.h, gdbarch.c: Regenerate.
1840 * valops.c, frame.c: Update.
1841 * config/z8k/tm-z8k.h, config/mn10200/tm-mn10200.h: Update.
1842 * config/m32r/tm-m32r.h, config/h8500/tm-h8500.h: Update.
1843 * config/pa/tm-hppa.h, blockframe.c: Update.
1844 * vax-tdep.c, sparc-tdep.c, ns32k-tdep.c: Ditto.
1845 * m68k-tdep.c, alpha-tdep.c: Ditto.
1846
1847 * arm-tdep.c: Eliminate USE_GENERIC_DUMMY_FRAMES as always 1.
1848 * mips-tdep.c: Ditto.
1849
1850 2002-11-27 Andrew Cagney <ac131313@redhat.com>
1851
1852 * gdbarch.sh (CALL_DUMMY_LOCATION): Default to AT_ENTRY_POINT.
1853 (USE_GENERIC_DUMMY_FRAMES): Default to true.
1854 (PC_IN_CALL_DUMMY): Default to generic_pc_in_call_dummy.
1855 * gdbarch.c, gdbarch.h: Re-generate.
1856 * inferior.h (USE_GENERIC_DUMMY_FRAMES): Delete macro definition.
1857 (CALL_DUMMY_LOCATION): Delete macro definition.
1858 (PC_IN_CALL_DUMMY): Delete macro definitions.
1859
1860 * arm-tdep.c (arm_gdbarch_init): Do not set pc_in_call_dummy,
1861 default is already generic_pc_in_call_dummy.
1862 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1863 * v850-tdep.c (v850_gdbarch_init): Ditto.
1864 * sh-tdep.c (sh_gdbarch_init): Ditto.
1865 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1866 * mips-tdep.c (mips_gdbarch_init): Ditto.
1867 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1868 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1869 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1870 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1871 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1872 * avr-tdep.c (avr_gdbarch_init): Ditto.
1873
1874 * arm-tdep.c (arm_gdbarch_init): Do not set
1875 use_generic_dummy_frames, default is already 1.
1876 * xstormy16-tdep.c (xstormy16_gdbarch_init): Ditto.
1877 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1878 * v850-tdep.c (v850_gdbarch_init): Ditto.
1879 * sh-tdep.c (sh_gdbarch_init): Ditto.
1880 * s390-tdep.c (s390_gdbarch_init): Ditto.
1881 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1882 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1883 * mips-tdep.c (mips_gdbarch_init): Ditto.
1884 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1885 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1886 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1887 * i386-tdep.c (i386_gdbarch_init): Ditto.
1888 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1889 * frv-tdep.c (frv_gdbarch_init): Ditto.
1890 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1891 * cris-tdep.c (cris_gdbarch_init): Ditto.
1892 * avr-tdep.c (avr_gdbarch_init): Ditto.
1893
1894 * xstormy16-tdep.c (xstormy16_gdbarch_init): Do not set
1895 call_dummy_location, default is already AT_ENTRY_POINT.
1896 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
1897 * v850-tdep.c (v850_gdbarch_init): Ditto.
1898 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
1899 * sh-tdep.c (sh_gdbarch_init): Ditto.
1900 * s390-tdep.c (s390_gdbarch_init): Ditto.
1901 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
1902 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
1903 * mips-tdep.c (mips_gdbarch_init): Ditto.
1904 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
1905 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
1906 * ia64-tdep.c (ia64_gdbarch_init): Ditto.
1907 * i386-tdep.c (i386_gdbarch_init): Ditto.
1908 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
1909 * frv-tdep.c (frv_gdbarch_init): Ditto.
1910 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
1911 * cris-tdep.c (cris_gdbarch_init): Ditto.
1912 * avr-tdep.c (avr_gdbarch_init): Ditto.
1913 * arm-tdep.c (arm_gdbarch_init): Ditto.
1914 * alpha-tdep.c (alpha_gdbarch_init): Ditto.
1915
1916 2002-11-28 Andrew Cagney <cagney@redhat.com>
1917
1918 * frame.h: Update comments on set_current_frame, create_new_frame,
1919 flush_cached_frames, reinit_frame_cache, select_frame and
1920 selected_frame.
1921
1922 2002-11-27 Andrew Cagney <cagney@redhat.com>
1923
1924 * config/z8k/tm-z8k.h (PC_IN_CALL_DUMMY): Update definition to use
1925 deprecated pc_in_call_dummy function.
1926 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Ditto.
1927 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Ditto.
1928 * config/pa/tm-hppa.h (PC_IN_CALL_DUMMY): Ditto.
1929 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Ditto.
1930 * config/h8500/tm-h8500.h (PC_IN_CALL_DUMMY): Ditto.
1931
1932 2002-11-26 Martin M. Hunt <hunt@redhat.com>
1933
1934 * Makefile.in: Remove Tix dependencies.
1935 * acinclude.m4: Ditto.
1936 * aclocal.m4: Ditto.
1937 * configure.in: Ditto.
1938 * configure: Regenerated.
1939
1940 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1941
1942 * gdbarch.sh (TARGET_FLOAT_FORMAT): Print the float format name.
1943 (TARGET_DOUBLE_FORMAT, TARGET_LONG_DOUBLE_FORMAT): Ditto.
1944 * gdbarch.c: Re-generate.
1945
1946 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1947
1948 * config/h8500/tm-h8500.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1949 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1950 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1951 * config/mn10200/tm-mn10200.h (PC_IN_CALL_DUMMY): Define as
1952 pc_in_call_dummy_at_entry_point.
1953 * config/pa/tm-hppa.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1954 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1955 (PC_IN_CALL_DUMMY): Define as pc_in_call_dummy_on_stack.
1956 * config/pa/tm-hppa64.h (CALL_DUMMY_LOCATION): Delete undefine.
1957 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Define as
1958 pc_in_call_dummy_on_stack.
1959 * config/sparc/tm-sp64.h (PC_IN_CALL_DUMMY): Redefine as
1960 pc_in_call_dummy_at_entry_point and pc_in_call_dummy_on_stack.
1961 * config/z8k/tm-z8k.h (CALL_DUMMY_LOCATION): Define as ON_STACK.
1962 (USE_GENERIC_DUMMY_FRAMES): Define as zero.
1963 (PC_IN_CALL_DUMMY): Defile as pc_in_call_dummy_on_stack.
1964
1965 2002-11-26 Andrew Cagney <ac131313@redhat.com>
1966
1967 * inferior.h (deprecated_pc_in_call_dummy_before_text_end): Rename
1968 pc_in_call_dummy_before_text_end
1969 (deprecated_pc_in_call_dummy_after_text_end): Rename
1970 pc_in_call_dummy_after_text_end.
1971 (deprecated_pc_in_call_dummy_on_stack): Rename
1972 pc_in_call_dummy_on_stack.
1973 (deprecated_pc_in_call_dummy_at_entry_point): Rename
1974 pc_in_call_dummy_at_entry_point.
1975 * m68k-tdep.c (m68k_gdbarch_init): Update.
1976 * s390-tdep.c (s390_gdbarch_init): Update.
1977 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
1978 * vax-tdep.c (vax_gdbarch_init): Update.
1979 * sparc-tdep.c (sparc_gdbarch_init): Update.
1980 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
1981 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
1982 * i386-tdep.c (i386_gdbarch_init): Update.
1983 * frv-tdep.c (frv_gdbarch_init): Update.
1984 * cris-tdep.c (cris_gdbarch_init): Update.
1985 * config/sparc/tm-sparc.h (PC_IN_CALL_DUMMY): Update.
1986 * blockframe.c (deprecated_pc_in_call_dummy_before_text_end)
1987 (deprecated_pc_in_call_dummy_after_text_end)
1988 (deprecated_pc_in_call_dummy_on_stack)
1989 (deprecated_pc_in_call_dummy_at_entry_point): Update.
1990 * alpha-tdep.c (alpha_gdbarch_init): Update.
1991
1992 2002-11-25 Daniel Jacobowitz <drow@mvista.com>
1993
1994 * acconfig.h (HAVE_PREAD64): Add.
1995 * configure.in: Check for pread64.
1996 * config.in: Regenerated.
1997 * configure: Regenerated.
1998 * lin-lwp.c (lin_lwp_xfer_memory): Call linux_proc_xfer_memory.
1999 * linux-proc.c (linux_proc_xfer_memory): New function.
2000 * config/nm-linux.h (linux_proc_xfer_memory): Add prototype.
2001
2002 2002-11-25 David Carlton <carlton@math.stanford.edu>
2003
2004 * dwarf2read.c (scan_partial_symbols): Descend into namespace
2005 pdi's with no name.
2006
2007 2002-11-25 Andrew Cagney <ac131313@redhat.com>
2008
2009 * MAINTAINERS: Mark h8500 as broken. Breakage occured Fri Nov 5
2010 16:32:04 1999 Andrew Cagney <cagney@b1.cygnus.com>.
2011
2012 2002-11-25 Jim Blandy <jimb@redhat.com>
2013
2014 * symfile.c (init_objfile_sect_indices): New function.
2015 (default_symfile_offsets): Move the section-index-initializing
2016 stuff into init_objfile_sect_indices, and call that.
2017
2018 * symtab.h (SIZEOF_N_SECTION_OFFSETS): New macro.
2019 (SIZEOF_SECTION_OFFSETS): Use SIZEOF_N_SECTION_OFFSETS.
2020
2021 * symfile.c (syms_from_objfile): Adjust indentation.
2022
2023 * symfile.c (symbol_file_add): Flush gdb_stdout even if from_tty
2024 || info_verbose isn't true.
2025
2026 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2027
2028 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Change
2029 default to get_frame_base.
2030 * gdbarch.h, gdbarch.c: Regenerate.
2031 * arch-utils.c (default_frame_address): Delete function.
2032 * arch-utils.h (default_frame_address): Delete declaration
2033
2034 2002-11-24 Pierre Muller <muller@ics.u-strasbg.fr>
2035
2036 * varobj.c (find_frame_addr_in_frame_chain):
2037 Use get_frame_base instead of FRAME_FP,
2038 obvious fix.
2039
2040 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2041
2042 * frame.h (FRAME_FP): Delete macro.
2043 (get_frame_base): New function declaration.
2044 * frame.c (get_frame_base): New function.
2045 (get_frame_id): Use ->frame.
2046 (frame_find_by_id): Rewrite to use get_frame_id.
2047 * blockframe.c: Use get_frame_base instead of FRAME_FP.
2048 * cris-tdep.c, d10v-tdep.c, findvar.c, h8500-tdep.c: Ditto.
2049 * hppa-tdep.c, i386-tdep.c, infcmd.c, infrun.c: Ditto.
2050 * m68hc11-tdep.c, m68k-tdep.c, mcore-tdep.c, mips-tdep.c: Ditto.
2051 * mn10200-tdep.c, mn10300-tdep.c, rs6000-tdep.c: Ditto.
2052 * sh-tdep.c, sparc-tdep.c, stack.c, tracepoint.c: Ditto.
2053 * v850-tdep.c, valops.c, z8k-tdep.c: Ditto.
2054
2055 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2056
2057 * arm-tdep.c (arm_gdbarch_init): Do not set get_saved_register.
2058
2059 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2060
2061 * frame.c (set_unwind_by_pc): Revert change below, use
2062 PC_IN_CALL_DUMMY.
2063 (get_prev_frame): Ditto.
2064
2065 2002-11-24 Andrew Cagney <ac131313@redhat.com>
2066
2067 * dummy-frame.c (pc_in_dummy_frame): New function.
2068 (generic_pc_in_call_dummy): Call pc_in_dummy_frame.
2069 (find_dummy_frame): Update comment.
2070 (generic_pop_current_frame): Use get_frame_type.
2071 * dummy-frame.h (pc_in_dummy_frame): Declare.
2072 * frame.c (set_unwind_by_pc): Use pc_in_dummy_frame.
2073 (create_new_frame): Use pc_in_dummy_frame.
2074 (get_prev_frame): Use pc_in_dummy_frame.
2075 (frame_saved_regs_register_unwind): Use get_prev_frame.
2076 (deprecated_generic_get_saved_register): Use get_prev_frame.
2077
2078 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2079
2080 * blockframe.c (find_frame_addr_in_frame_chain): Move function
2081 from here ...
2082 * varobj.c (find_frame_addr_in_frame_chain): ... to here.
2083 (varobj_create): Note that frame ID should be used.
2084 * frame.h (find_frame_addr_in_frame_chain): Delete declaration.
2085
2086 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2087
2088 * breakpoint.c: Include "gdb_assert.h".
2089 (deprecated_frame_in_dummy): Assert that generic dummy frames are
2090 not being used.
2091 * Makefile.in (breakpoint.o): Update dependencies.
2092 * ada-lang.c (find_printable_frame): Use get_frame_type instead of
2093 deprecated_frame_in_dummy.
2094 * stack.c (print_frame_info_base): Ditto.
2095 (frame_info): Ditto.
2096 (print_frame_info_base): Ditto. Delete dead code.
2097
2098 2002-11-23 Andreas Schwab <schwab@suse.de>
2099
2100 * Makefile.in (m68k_tdep_h): Define.
2101 (abug-rom.o, cpu32bug-rom.o, dbug-rom.o, m68k-tdep.o, m68klinux-nat.o)
2102 (remote-est.o, rom68k-rom.o): Add $(m68k_tdep_h).
2103 * m68k-tdep.c: Move register number enum ...
2104 * m68k-tdep.h: ... to this new file and rename the constants from
2105 E_* to M68K_*. All uses changed.
2106 * config/m68k/tm-m68k.h (D0_REGNUM, A0_REGNUM): Remove definitions.
2107 * abug-rom.c: Include "m68k-tdep.h". Use
2108 M68K_D0_REGNUM/M68K_A0_REGNUM instead of D0_REGNUM/A0_REGNUM.
2109 * cpu32bug-rom.c: Likewise.
2110 * dbug-rom.c: Likewise.
2111 * m68k-tdep.c: Likewise.
2112 * m68klinux-nat.c: Likewise.
2113 * remote-est.c: Likewise.
2114 * rom68k-rom.c: Likewise.
2115 * config/m68k/tm-linux.h: Likewise.
2116
2117 2002-11-23 Andrew Cagney <ac131313@redhat.com>
2118
2119 * arm-tdep.c (arm_gdbarch_init): Remove old style non-generic
2120 dummy frame initialization code.
2121 * mips-tdep.c (mips_gdbarch_init): Ditto.
2122
2123 2002-11-22 Christopher Faylor <cgf@redhat.com>
2124
2125 * win32-nat.c (child_attach): Reset saw_create counter or subsequent
2126 attach will hang.
2127
2128 2002-11-22 Andrew Cagney <ac131313@redhat.com>
2129
2130 * gdbarch.sh (FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS): Default
2131 to default_frame_address.
2132 * gdbarch.h, gdbarch.c: Re-generate.
2133
2134 * d10v-tdep.c (d10v_gdbarch_init): Do not set frame_args_address
2135 or frame_locals_address to default_frame_address.
2136 * m68k-tdep.c (m68k_gdbarch_init): Update.
2137 * i386-tdep.c (i386_gdbarch_init): Update.
2138 * frv-tdep.c (frv_gdbarch_init): Update.
2139 * sh-tdep.c (sh_gdbarch_init): Update.
2140 * v850-tdep.c (v850_gdbarch_init): Update.
2141 * sparc-tdep.c (sparc_gdbarch_init): Update.
2142 * mips-tdep.c (mips_gdbarch_init): Update.
2143 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
2144 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
2145 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
2146
2147 * cris-tdep.c (cris_frame_args_address): Delete function.
2148 (cris_frame_locals_address): Delete function.
2149 (cris_gdbarch_init): Do not set frame_args_address or
2150 frame_locals_address.
2151
2152 2002-11-22 Michael Snyder <msnyder@redhat.com>
2153
2154 * thread-db.c (thread_db_load): Tell the user what's going on
2155 if dlopen fails on libthread_db.
2156
2157 2002-11-23 Andreas Schwab <schwab@suse.de>
2158
2159 * m68k-tdep.c (m68k_register_virtual_type): Use architecture
2160 invariant return values.
2161
2162 2002-11-22 Andreas Schwab <schwab@suse.de>
2163
2164 * valops.c (value_slice): Move declaration of `offset' to avoid
2165 warning.
2166
2167 2002-11-22 Christopher Faylor <cgf@redhat.com>
2168
2169 * win32-nat.c (psapi_get_dll_name): Fix a compiler warning.
2170 (struct so_stuff): Add end_addr field.
2171 (register_loaded_dll): Calculate and store end address of loaded dll.
2172 (solib_address): New function.
2173 (child_solib_loaded_library_pathname): Pass carefully constructed
2174 section info to safe_symbol_file_add rather than ignoring it.
2175 (get_child_debug_event): Call re_enable_breakpoints_in_shlibs when a
2176 DLL is loaded.
2177 (do_initial_child_stuff): Call disable_breakpoints_in_shlibs.
2178 (child_create_inferior): Fix a compiler warning.
2179 * config/i386/tm-cygwin.h (PC_SOLIB): Define new macro.
2180 (solib_address): Declare new function.
2181
2182 2002-11-22 Andreas Schwab <schwab@suse.de>
2183
2184 * m68k-tdep.c (m68k_register_virtual_type): Return int for SR, FPC
2185 and FPS registers.
2186
2187 2002-11-21 Daniel Jacobowitz <drow@mvista.com>
2188
2189 * maint.c (_initialize_maint_cmds): Fix typo. From
2190 Francesco Potorti` <pot@gnu.org>.
2191
2192 2002-11-21 Andrew Cagney <cagney@redhat.com>
2193
2194 * mips-tdep.c (mips_dump_tdep): Delete references to
2195 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2196 * config/mips/tm-mips.h (GDB_TARGET_MASK_DISAS_PC): Delete macro.
2197 (GDB_TARGET_UNMASK_DISAS_PC): Delete macro.
2198 * printcmd.c (build_address_symbolic): Delete calls to
2199 GDB_TARGET_UNMASK_DISAS_PC and GDB_TARGET_MASK_DISAS_PC.
2200 (address_info): Ditto.
2201 Fix PR gdb/773.
2202
2203 2002-11-19 Klee Dienes <kdienes@apple.com>
2204 Adam Fedor <fedor@gnu.org>
2205
2206 * completer.c (skip_quoted_chars): Renamed from skip_chars. Add
2207 the ability to explicitly specify the quote characters and word
2208 break characters; if NULL is specified for either, use the old
2209 behavior of using the characters used by the completer.
2210 (skip_chars): New function. Convenience wrapper around
2211 skip_quoted_chars to provide the original skip_chars behavior.
2212 * completer.h (skip_quoted_chars): Add prototype.
2213
2214 2002-11-19 Andrew Cagney <ac131313@redhat.com>
2215
2216 Problems reported by Paul Eggert.
2217 * gdbarch.sh: Use `sort -k 3`. Fix PR gdb/527.
2218
2219 2002-11-19 Andreas Schwab <schwab@suse.de>
2220
2221 * m68klinux-nat.c (IS_SIGTRAMP, IS_RT_SIGTRAMP)
2222 (m68k_linux_in_sigtramp, SIGCONTEXT_PC_OFFSET)
2223 (UCONTEXT_PC_OFFSET, m68k_linux_sigtramp_saved_pc)
2224 (m68k_linux_frame_saved_pc): Move to ...
2225 * m68klinux-tdep.c: ... here. New file.
2226 * Makefile.in (m68klinux-tdep.o): Add dependencies.
2227 * config/m68k/linux.mt (TDEPFILES): Add m68klinux-tdep.o.
2228
2229 2002-11-19 Adam Fedor <fedor@gnu.org>
2230
2231 * objc-exp.y: Revert to old skip_quoted usage.
2232
2233 2002-11-19 Adam Fedor <fedor@gnu.org>
2234
2235 * Makefile.in (SFILES): Add objc-exp.y objc-lang.c.
2236 (objc_lang_h): Define.
2237 (YYFILES): Add objc-exp.tab.c.
2238 (local-maintainer-clean): Remove objc-exp.tab.c.
2239 (objc-exp.tab.c, objc-exp.tab.o, objc-lang.o): New target.
2240
2241 2002-11-19 Pierre Muller <muller@ics.u-strasbg.fr>
2242
2243 * p-exp.y (typecast rule): Add automatic dereference of
2244 pascal classes if needed.
2245 (THIS): Set current_type.
2246 Automatically dereference pascal classes.
2247 (typebase rule): Add ^typebase recognition.
2248
2249 2002-11-18 Adam Fedor <fedor@gnu.org>
2250
2251 * expprint.c (print_subexp): Handle OP_OBJC_NSSTRING,
2252 OP_OBJC_MSGCALL, and OP_OBJC_SELF.
2253 (op_name): Handle OP_OBJC_SELF.
2254 * Makefile.in (expprint.o): Add additional depends.
2255
2256 2002-11-18 Adam Fedor <fedor@gnu.org>
2257
2258 * expression.h: Rename ObjC ops to OP_OBJC_MSGCALL,
2259 OP_OBJC_SELECTOR, OP_OBJC_NSSTRING, and OP_OBJC_SELF.
2260 * parse.c (length_of_subexp, prefixify_subexp): Likewise.
2261 * objc-exp.y: Likewise.
2262
2263 2002-11-18 Adam Fedor <fedor@gnu.org>
2264
2265 * gdb/parser-defs.h: (struct objc_class_str): New structure
2266 for parsing ObjC classes.
2267
2268 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2269
2270 * stack.c (frame_relative_level): Copy function from here ...
2271 * frame.c (frame_relative_level): ...to here.
2272
2273 2002-11-18 Andrew Cagney <ac131313@redhat.com>
2274
2275 * frame.h (enum frame_type): Define.
2276 (get_frame_type): Declare.
2277 (struct frame_info): Add field `type'. Delete field
2278 signal_handler_caller.
2279 (deprecated_set_frame_signal_handler_caller): Declare.
2280 * frame.c (get_frame_type): New function.
2281 (deprecated_set_frame_type): New function.
2282 (create_new_frame): Set the frame's type.
2283 (get_prev_frame): Similar.
2284 * sparc-tdep.c: Use get_frame_type instead of signal_handler_caller.
2285 * s390-tdep.c: Ditto.
2286 * m68klinux-nat.c: Ditto.
2287 * ns32k-tdep.c: Ditto.
2288 * x86-64-linux-tdep.c: Ditto.
2289 * vax-tdep.c: Ditto.
2290 * rs6000-tdep.c: Ditto.
2291 * ppc-linux-tdep.c: Ditto.
2292 * i386-interix-tdep.c: Ditto.
2293 * mips-tdep.c: Ditto.
2294 * m68k-tdep.c: Ditto.
2295 * hppa-tdep.c: Ditto.
2296 * ia64-tdep.c: Ditto.
2297 * cris-tdep.c: Ditto.
2298 * arm-tdep.c: Ditto.
2299 * alpha-tdep.c: Ditto.
2300 * i386-tdep.c: Ditto.
2301 * stack.c: Ditto.
2302 * ada-lang.c: Ditto.
2303 * blockframe.c: Update.
2304 * i386-interix-tdep.c (i386_interix_back_one_frame): Use
2305 deprecated_set_frame_type instead of signal_handler_caller.
2306 * ppc-linux-tdep.c (ppc_linux_init_extra_frame_info): Ditto.
2307 * rs6000-tdep.c (rs6000_init_extra_frame_info): Ditto.
2308 * breakpoint.h: Delete FIXME suggesting get_frame_type.
2309
2310 2002-11-18 Klee Dienes <kdienes@apple.com>
2311
2312 * Makefile.in (buildsym.o): Add dependency for gdb_assert.h.
2313
2314 2002-11-18 Klee Dienes <kdienes@apple.com>
2315
2316 * buildsym.c (pop_context): Add comment.
2317
2318 2002-11-18 Klee Dienes <kdienes@apple.com>
2319
2320 * buildsym.h (pop_context): Convert to function, defined in
2321 buildsym.c.
2322 * buildsym.c: Include gdb_assert.h.
2323 (pop_context): Implement as C function. Add check for stack
2324 underflow.
2325 * dbxread.c (process_one_symbol): Complain and stop processing
2326 that symbol if we are already at the top of the context stack for
2327 a function-end N_FUN (this would imply an umatched RBRAC). Ditto
2328 when processing N_RBRAC.
2329
2330 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2331
2332 * config/pa/nm-hppah.h (CHILD_POST_FOLLOW_INFERIOR_BY_CLONE): Don't
2333 define.
2334 (struct target_waitstatus): Add opaque definition.
2335 * corelow.c (init_core_ops): Don't set to_clone_and_follow_inferior.
2336 * exec.c (init_exec_ops): Likewise.
2337 * fork-child.c (clone_and_follow_inferior): Remove.
2338 * hppah-nat.c (child_post_follow_inferior_by_clone): Remove.
2339 * inferior.h (clone_and_follow_inferior): Remove prototype.
2340 * infrun.c (follow_fork_mode_both): Remove.
2341 (follow_fork_mode_kind_names): Remove commented out "both".
2342 (follow_inferior_fork): Remove follow_fork_mode_both support.
2343 * inftarg.c (child_clone_and_follow_inferior): Remove.
2344 (child_post_follow_inferior_by_clone): Remove.
2345 (init_child_ops): Don't set to_clone_and_follow_inferior
2346 or to_post_follow_inferior_by_clone.
2347 * target.c (default_clone_and_follow_inferior): Remove.
2348 (cleanup_target): Don't set to_clone_and_follow_inferior
2349 or to_post_follow_inferior_by_clone.
2350 (find_default_clone_and_follow_inferior): Remove.
2351 (init_dummy_target): Don't set to_clone_and_follow_inferior.
2352 (debug_to_clone_and_follow_inferior): Remove.
2353 (debug_to_post_follow_inferior_by_clone): Remove.
2354 (setup_target_debug): Don't set to_clone_and_follow_inferior
2355 or to_post_follow_inferior_by_clone.
2356 * target.h (struct target_ops): Remove to_clone_and_follow_inferior
2357 and to_post_follow_inferior_by_clone.
2358 (child_clone_and_follow_inferior): Remove prototype.
2359 (child_post_follow_inferior_by_clone): Remove prototype.
2360 (target_clone_and_follow_inferior): Remove macro.
2361 (target_post_follow_inferior_by_clone): Remove macro.
2362 (find_default_clone_and_follow_inferior): Remove prototype.
2363
2364 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2365
2366 * breakpoint.c (bpstat_stop_status): Call inferior_has_forked,
2367 inferior_has_vforked, and inferior_has_execd instead of
2368 target_has_forked, target_has_vforked, and target_has_execd.
2369 * config/pa/nm-hppah.h (CHILD_HAS_FORKED, CHILD_HAS_VFORKED)
2370 (CHILD_HAS_EXECD, CHILD_HAS_SYSCALL_EVENT): Don't define.
2371 (CHILD_WAIT): Define.
2372 (child_wait): Add prototype.
2373 * hppah-nat.c (hpux_has_forked): Rename from child_has_forked.
2374 Add prototype.
2375 (hpux_has_vforked): Likewise, from child_has_vforked.
2376 (hpux_has_execd): Likewise, from child_has_execd.
2377 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2378 (not_same_real_pid, child_wait): New, copied from inftarg.c.
2379 Call hpux_has_forked, hpux_has_vforked, hpux_has_execd,
2380 and hpux_has_syscall_event instead of the target hooks.
2381 * infrun.c (inferior_has_forked, inferior_has_vforked)
2382 (inferior_has_execd): New functions.
2383 * inftarg.c (not_same_real_pid): Remove.
2384 (child_wait): Remove references to not_same_real_pid,
2385 target_has_forked, target_has_vforked, target_has_execd,
2386 and target_has_syscall_event.
2387 (child_has_forked, child_has_vforked, child_has_execd)
2388 (child_has_syscall_event): Remove.
2389 (init_child_ops): Remove references to child_has_forked,
2390 child_has_vforked, child_has_execd, and child_has_syscall_event.
2391 * infttrace.c (hpux_has_forked): Rename from child_has_forked.
2392 (hpux_has_vforked): Likewise, from child_has_vforked.
2393 (hpux_has_execd): Likewise, from child_has_execd.
2394 (hpux_has_syscall_event): Likewise, from child_has_syscall_event.
2395 * target.c (cleanup_target): Remove references to
2396 to_has_forked, to_has_vforked, to_has_execd, and
2397 to_has_syscall_event.
2398 (update_current_target): Likewise.
2399 (setup_target_debug): Likewise.
2400 (debug_to_has_forked): Remove.
2401 (debug_to_has_vforked): Remove.
2402 (debug_to_has_execd): Remove.
2403 (debug_to_has_syscall_event): Remove.
2404 * target.h (struct target_ops): Remove to_has_forked.
2405 to_has_vforked, to_has_execd, and to_has_syscall_event.
2406 (child_has_forked, child_has_vforked, child_has_execd)
2407 (child_has_syscall_event): Remove prototypes.
2408 (inferior_has_forked, inferior_has_vforked, inferior_has_execd): Add
2409 prototypes.
2410 (target_has_forked, target_has_vforked, target_has_execd)
2411 (target_has_syscall_event): Remove macros.
2412
2413 2002-11-16 Daniel Jacobowitz <drow@mvista.com>
2414
2415 * hppah-nat.c (child_can_follow_vfork_prior_to_exec): Remove.
2416 * inftarg.c (child_can_follow_vfork_prior_to_exec): Remove.
2417 (init_child_ops): Don't initialize to_can_follow_vfork_prior_to_exec.
2418 * infttrace.c (child_can_follow_vfork_prior_to_exec): Remove.
2419 * target.c (cleanup_target): Remove reference to
2420 to_can_follow_vfork_prior_to_exec.
2421 (update_current_target): Likewise.
2422 (debug_to_can_follow_vfork_prior_to_exec): Remove.
2423 (setup_target_debug): Remove reference to
2424 to_can_follow_vfork_prior_to_exec.
2425 * target.h (struct target_ops): Remove
2426 to_can_follow_vfork_prior_to_exec.
2427 (child_can_follow_vfork_prior_to_exec): Remove prototype.
2428 (target_can_follow_vfork_prior_to_exec): Remove definition.
2429 * config/pa/nm-hppah.h (CHILD_CAN_FOLLOW_VFORK_PRIOR_TO_EXEC): Don't
2430 define.
2431 * infrun.c (follow_vfork_when_exec): Remove.
2432 (follow_inferior_fork): Remove references to follow_vfork_when_exec.
2433 (follow_exec): Likewise.
2434 (handle_inferior_event): Likewise.
2435 (keep_going): Likewise.
2436
2437 2002-11-15 Andrew Cagney <cagney@redhat.com>
2438
2439 * frame.c (generic_unwind_get_saved_register): Make static.
2440 * frame.h (generic_unwind_get_saved_register): Delete declaration.
2441 * avr-tdep.c (avr_gdbarch_init): Do not set get_saved_register,
2442 defaults to generic_unwind_get_saved_register.
2443 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
2444 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
2445 * frv-tdep.c (frv_gdbarch_init): Ditto.
2446 * i386-tdep.c (i386_gdbarch_init): Ditto.
2447 * s390-tdep.c (s390_gdbarch_init): Ditto.
2448 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
2449 * v850-tdep.c (v850_gdbarch_init): Ditto.
2450 * mcore-tdep.c (mcore_gdbarch_init): Ditto.
2451 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
2452 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Delete macro.
2453
2454 2002-11-15 Andrew Cagney <cagney@redhat.com>
2455
2456 * x86-64-linux-nat.c (i386_sse_regnum_p): New function. Copy from
2457 i386-tdep.c.
2458
2459 2002-11-15 Andrew Cagney <cagney@redhat.com>
2460
2461 * frame.h (sigtramp_saved_pc): Delete declaration.
2462 * blockframe.c (sigtramp_saved_pc): Delete function.
2463 * ns32k-tdep.c (ns32k_sigtramp_saved_pc): New function.
2464 (ns32k_frame_saved_pc): Call ns32k_sigtramp_saved_pc.
2465 * vax-tdep.c (vax_sigtramp_saved_pc): New function.
2466 (vax_frame_saved_pc): Call vax_sigtramp_saved_pc.
2467
2468 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2469
2470 * frame.c (frame_pc_unwind): New function.
2471 (frame_saved_regs_pc_unwind): New function.
2472 (frame_register_unwind): Pass unwind_cache instead of
2473 register_unwind_cache.
2474 (set_unwind_by_pc): Add unwind_pc parameter, set.
2475 (create_new_frame): Pass frame->pc_unwind to set_unwind_by_pc.
2476 (get_prev_frame): Ditto.
2477 * frame.h (frame_pc_unwind_ftype): Declare.
2478 (struct frame_info): Add pc_unwind, pc_unwind_cache_p and
2479 pc_unwind_cache. Rename register_unwind_cache to unwind_cache.
2480 (frame_pc_unwind): Declare.
2481 * dummy-frame.c (dummy_frame_pc_unwind): New function.
2482 (struct dummy_frame): Add comment mentioning that values are for
2483 previous frame.
2484 * dummy-frame.h (dummy_frame_pc_unwind): Declare.
2485 * blockframe.c (file_frame_chain_valid): Use frame_pc_unwind.
2486 (generic_file_frame_chain_valid): Ditto.
2487 * stack.c (frame_info): Ditto.
2488
2489 2002-11-15 David Carlton <carlton@math.stanford.edu>
2490
2491 * linespec.c (locate_first_half): New function.
2492 (decode_line_1): Move code into locate_first_half.
2493
2494 2002-11-15 Andrew Cagney <ac131313@redhat.com>
2495
2496 * complaints.h: Add comment explaining how to eliminate a
2497 deprecated_complain call.
2498 * complaints.h: Fix spelling errors.
2499
2500 2002-11-15 David Carlton <carlton@math.stanford.edu>
2501
2502 * printcmd.c: Remove #include "disasm.h".
2503
2504 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2505
2506 * frame.h: Move the most relevant interface functions to the start
2507 of the file.
2508
2509 2002-11-14 Andrew Cagney <ac131313@redhat.com>
2510
2511 * regcache.h (deprecated_registers): Rename registers.
2512 * a68v-nat.c, alpha-nat.c, arch-utils.c, core-sol2.c: Update.
2513 * hp300ux-nat.c, hppab-nat.c, hppah-nat.c: Update.
2514 * hppam3-nat.c, hpux-thread.c, i386gnu-nat.c: Update.
2515 * ia64-aix-nat.c, ia64-linux-nat.c, ia64-tdep.c: Update.
2516 * irix4-nat.c, irix5-nat.c, lynx-nat.c, m68k-tdep.c: Update.
2517 * m68knbsd-nat.c, mips-linux-tdep.c, mipsm3-nat.c: Update.
2518 * mipsv4-nat.c, ns32knbsd-nat.c, ppc-bdm.c: Update.
2519 * ppc-sysv-tdep.c, ptx4-nat.c, regcache.c, remote-es.c: Update.
2520 * remote-sds.c, remote-vx68.c, remote-vxmips.c: Update.
2521 * remote-vxsparc.c, rs6000-tdep.c, sol-thread.c: Update.
2522 * sparc-nat.c, sparc-tdep.c, sun3-nat.c, symm-nat.c: Update.
2523 * v850ice.c: Update.
2524
2525 Wed Nov 13 19:51:05 2002 Andrew Cagney <cagney@redhat.com>
2526
2527 * utils.c (gdb_realpath): Add comment mentioning realpath with a
2528 NULL buffer.
2529
2530 2002-11-13 Andrew Cagney <cagney@redhat.com>
2531
2532 * regcache.h (deprecated_read_register_bytes): Rename
2533 read_register_bytes.
2534 (deprecated_write_register_bytes): Rename write_register_bytes.
2535 * alpha-tdep.c, arm-tdep.c, cris-tdep.c, d10v-tdep.c: Update.
2536 * dwarf2cfi.c, frv-tdep.c, hppa-tdep.c, ia64-tdep.c: Update.
2537 * m68k-tdep.c, mcore-tdep.c, mips-tdep.c, mn10300-tdep.c: Update.
2538 * ns32k-tdep.c, regcache.c, remote-sds.c, remote-vx.c: Update.
2539 * remote.c, rs6000-tdep.c, s390-tdep.c, sh-tdep.c: Update.
2540 * sparc-tdep.c, v850-tdep.c, vax-tdep.c, x86-64-tdep.c: Update.
2541 * xstormy16-tdep.c, z8k-tdep.c, config/nm-gnu.h: Update.
2542 * config/nm-m3.h, config/h8500/tm-h8500.h: Update.
2543 * config/i386/nm-ptx4.h, config/i386/nm-symmetry.h: Update.
2544 * config/m32r/tm-m32r.h, config/m68k/nm-sun3.h: Update.
2545 * config/m68k/tm-delta68.h, config/m68k/tm-linux.h: Update.
2546 * config/mn10200/tm-mn10200.h, config/pa/tm-hppa64.h: Update.
2547 * config/sparc/nm-nbsd.h, config/sparc/nm-sun4os4.h: Update.
2548 * config/sparc/nm-sun4sol2.h, config/sparc/tm-sparclet.h: Update.
2549
2550 2002-11-13 Jim Blandy <jimb@redhat.com>
2551
2552 * findvar.c (read_var_value): Doc fix.
2553
2554 2002-11-13 Andrew Cagney <cagney@redhat.com>
2555
2556 * regcache.c (struct regcache): Replace passthough_p with
2557 readonly_p.
2558 (regcache_xmalloc): Initialize readonly_p.
2559 (build_regcache): Initialize readonly_p.
2560 (regcache_save): New function.
2561 (regcache_restore): New function.
2562 (regcache_cpy): Re-implement using regcache_save and
2563 regcache_restore.
2564 (regcache_raw_read): Update.
2565 (regcache_cooked_read): When a read-only cache, checked for cached
2566 pseudo register values.
2567 (regcache_raw_write): Assert that the cache is not read-only.
2568 Remove code handling a non-passthrough cache.
2569 * regcache.h (regcache_save): Declare.
2570 (regcache_restore): Declare.
2571
2572 2002-11-13 Andrew Cagney <cagney@redhat.com>
2573
2574 * regcache.c (struct regcache_descr): Add fields
2575 sizeof_cooked_registers and sizeof_cooked_register_valid_p.
2576 (init_legacy_regcache_descr): Compute the size of a cooked
2577 register cache and then assign that to sizeof_raw_registers. Set
2578 sizeof_raw_register_valid_p to sizeof_cooked_register_valid_p
2579 (init_legacy_regcache_descr): Ditto.
2580
2581 2002-11-13 Andrew Cagney <cagney@redhat.com>
2582
2583 * regcache.c (register_buffer): Move to near start of file, update
2584 description.
2585 (regcache_raw_read): Use.
2586 (regcache_raw_write): Use.
2587 (struct regcache): Rename raw_registers to registers and
2588 raw_register_valid_p to register_valid_p.
2589 (regcache_xmalloc): Update.
2590 (regcache_xfree): Update.
2591 (register_buffer): Update.
2592 (regcache_cpy): Update.
2593 (regcache_cpy_no_passthrough): Update.
2594 (regcache_valid_p): Update.
2595 (deprecated_grub_regcache_for_registers): Update.
2596 (deprecated_grub_regcache_for_register_valid): Update.
2597 (set_register_cached): Update.
2598 (regcache_raw_write): Update.
2599
2600 2002-11-13 Pierre Muller <muller@ics.u-strasbg.fr>
2601
2602 * p-exp.y (name_not_typename): Use copy_name to
2603 set current_type variable for fields of THIS.
2604
2605 2002-11-12 Daniel Jacobowitz <drow@mvista.com>
2606
2607 * gnu-nat.c (init_gnu_ops): Remove NULL initializations.
2608 * monitor.c (init_base_monitor_ops): Likewise.
2609 * ppc-bdm.c (init_bdm_ppc_ops): Likewise.
2610 * remote-array.c (init_array_ops): Likewise.
2611 * remote-e7000.c (init_e7000_ops): Likewise.
2612 * remote-es.c (init_es1800_ops): Likewise.
2613 (init_es1800_child_ops): Likewise.
2614 * remote-rdp.c (init_remote_rdp_ops): Likewise.
2615 * remote-sim.c (init_gdbsim_ops): Likewise.
2616 * remote-st.c (init_st2000_ops): Likewise.
2617 * sol-thread.c (init_sol_core_ops): Likewise.
2618 (init_sol_thread_ops): Likewise.
2619 * v850ice.c (init_850ice_ops): Likewise.
2620 * win32-nat.c (init_child_ops): Likewise.
2621 * wince.c (init_child_ops): Likewise.
2622
2623 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2624
2625 * utils.c (gdb_realpath): Make rp a constant pointer.
2626
2627 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2628
2629 * utils.c (gdb_realpath): Rewrite. Try, in order: realpath() with
2630 a constant buffer; cannonicalize_file_name(); realpath() with a
2631 pathconf() defined buffer, xstrdup().
2632
2633 2002-11-12 Andrew Cagney <ac131313@redhat.com>
2634
2635 * config/djgpp/fnchange.lst: Fix typo, hang1.c to hang1.C; hang2.c
2636 to hang2.C; hang3.c to hang3.C.
2637
2638 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2639
2640 * findvar.c (read_var_value): Reenable TLS code.
2641
2642 2002-11-11 Elena Zannoni <ezannoni@redhat.com>
2643 Jim Blandy <jimb@redhat.com>
2644
2645 * gdb_thread_db.h (enum): Add TD_NOTALLOC.
2646 * target.c (update_current_target): Add
2647 to_get_thread_local_address.
2648 * target.h (to_get_thread_local_address): Export.
2649 (target_get_thread_local_address): Define.
2650 (target_get_thread_local_address_p): Define.
2651 * thread-db.c: Include solib-svr4.h.
2652 (td_thr_tls_get_addr_p): Define.
2653 (thread_db_load): Get a pointer to td_thr_tls_get_addr.
2654 (thread_db_get_thread_local_address): New function.
2655 (init_thread_db_ops): Initialize to_get_thread_local_address.
2656 * configure.in: Add test for TD_NOTALLOC in thread_db.h.
2657 * configure: Regenerate.
2658 * config.in: Regenerate.
2659
2660 2002-11-11 David Carlton <carlton@math.stanford.edu>
2661
2662 * linespec.c (set_flags): New function.
2663 (decode_line_1): Move code into set_flags.
2664
2665 2002-11-11 David Carlton <carlton@math.stanford.edu>
2666
2667 * linespec.c (decode_line_1): Move chunks of code to separate
2668 functions.
2669 (initialize_defaults): New function.
2670 (decode_indirect): New function.
2671
2672 2002-11-11 Andrew Cagney <ac131313@redhat.com>
2673
2674 * blockframe.c (sigtramp_saved_pc): Fix tipo. void_func_ptr
2675 instead of void_code_ptr.
2676 (sigtramp_saved_pc): Ditto.
2677
2678 * x86-64-tdep.c (i386_fp_regnum_p): Copy i386-tdep.c's
2679 i386_fp_regnum_p.
2680
2681 2002-11-10 Daniel Jacobowitz <drow@mvista.com>
2682
2683 * gdbtypes.h (struct main_type): Move artificial flag out of
2684 loc. New member of ``struct field'' named static_kind. Reduce
2685 overloaded meaning of bitsize.
2686 (FIELD_ARTIFICIAL, SET_FIELD_PHYSNAME, SET_FIELD_PHYSADDR)
2687 (TYPE_FIELD_STATIC, TYPE_FIELD_STATIC_HAS_ADDR): Likewise.
2688 (FIELD_STATIC_KIND, TYPE_FIELD_STATIC_KIND): New macros.
2689
2690 * ada-lang.c (fill_in_ada_prototype): Initialize static_kind for
2691 new fields.
2692 (template_to_fixed_record_type, template_to_static_fixed_type)
2693 (to_record_with_fixed_variant_part): Likewise.
2694 * coffread.c (coff_read_struct_type, coff_read_enum_type): Likewise.
2695 * dwarf2read.c (dwarf2_add_field, read_enumeration): Likewise.
2696 * dwarfread.c (struct_type, enum_type): Likewise.
2697 * hpread.c (hpread_read_enum_type)
2698 (hpread_read_function_type, hpread_read_doc_function_type)
2699 (hpread_read_struct_type): Likewise.
2700 * mdebugread.c (parse_symbol): Likewise.
2701
2702 2002-11-10 Andrew Cagney <ac131313@redhat.com>
2703
2704 * breakpoint.h (deprecated_frame_in_dummy): Rename frame_in_dummy.
2705 * stack.c (print_frame_info_base): Update.
2706 (print_frame_info_base, frame_info): Update.
2707 * sparc-tdep.c (sparc_init_extra_frame_info): Update.
2708 (sparc_frame_saved_pc): Update.
2709 * ada-lang.c (find_printable_frame): Update.
2710 * breakpoint.c (deprecated_frame_in_dummy): Update.
2711
2712 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2713
2714 * i386-linux-nat.c (ORIG_EAX): Define to -1 if not already
2715 defined.
2716 (regmap): Extend to cover all registers.
2717 (PT_READ_U, PT_WRITE_U, PTRACE_XFER_TYPE,
2718 OLD_CANNOT_FETCH_REGISTERS, OLD_CANNOT_STORE_REGISTERS): Remove
2719 definitions.
2720 (fetch_register, sore_register): Simplify.
2721 (old_fetch_inferior_registers, old_store_inferior_registers):
2722 Remove functions.
2723 (cannot_fetch_register, cannot_store_register): Change
2724 implementation to use regmap array to decide which registers
2725 cannot be fetched/stored. This removes $orig_eax from the
2726 registers that cannot be fetched/stored.
2727 (fetch_inferior_registers): Call fetch_register directly instead
2728 of calling old_fetch_inferior_registers.
2729 (store_inferior_registers): Call store_register directly instead
2730 of calling old_store_inferior_registers.
2731 (i386_linux_dr_get): Replace PT_READ_U with PTRACE_PEEKUSER.
2732 (i386_linux_dr_set): Replace PT_WRITE_U with PTRACE_POKEUSER.
2733 * config/i386/nm-linux.h (U_REGS_OFFSET): Remove definition.
2734
2735 2002-11-09 Klee Dienes <kdienes@apple.com>
2736
2737 * i387-tdep.c (i387_supply_register): When called with NULL as a
2738 buffer, mark the register as not provided (to mirror the behavior
2739 of supply_register).
2740 (i387_supply_fxsave): Ditto.
2741 (i387_supply_fsave): Ditto (inherits the behavior from
2742 i387_supply_register).
2743
2744 2002-11-09 Klee Dienes <kdienes@apple.com>
2745
2746 * blockframe.c (sigtramp_saved_pc): Use
2747 builtin_type_void_code_ptr, not builtin_type_void_data_ptr (we are
2748 extracting the PC). Use TYPE_LENGTH (builtin_type_void_code_ptr)
2749 instead of (TARGET_PTR_BIT / TARGET_CHAR_BIT).
2750
2751 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2752
2753 * frame.c (get_prev_frame): Test prev_p to identify a previously
2754 unwound frame. Initialize prev_p.
2755 * frame.h (struct frame_info): Add field prev_p. Expand prev/next
2756 comment.
2757
2758 2002-11-09 Andrew Cagney <ac131313@redhat.com>
2759
2760 * frame.c (get_prev_frame): Cleanups. Eliminate redundant tests
2761 for a NULL NEXT_FRAME. Simplify fromleaf initialization. Add
2762 more comments. Zap dead code.
2763
2764 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2765
2766 * infcmd.c (print_vector_info, print_float_info): Move code that
2767 checks whether the target has any registers and whether there is a
2768 selected frame up, such that it is also used if a target provides
2769 multi-arch definitions of these functions.
2770
2771 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2772
2773 * Makefile.in (DESTDIR): Define.
2774 (install-only, install-gdbtk, uninstall-gdbtk): Add $(DESTDIR)
2775 prefix.
2776
2777 * config/djgpp/fnchange.lst: 8.3 proof i386obsd-nat.c and
2778 i386obsd-tdep.c. Rename to "gdb.cxx", paths containing "gdb.c++".
2779
2780 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2781
2782 * i386-linux-tdep.c: Include "reggroups.h".
2783 (i386_linux_register_reggroup_p): New function.
2784 (i386_linux_init_abi): Set register_reggroup_p to
2785 i386_linux_register_reggroup_p.
2786 * i386-tdep.h (i386_register_reggroup_p): Declare.
2787 * i386-tdep.c: Include "reggroups.h".
2788 (i386_init_reggroups): New function.
2789 (i386_add_reggroups): New function.
2790 (i386_register_reggroup_p): New function.
2791 (i386_sse_reggroup, i386_mmx_reggroup): New variables.
2792 (_initialize_i386_tdep): Call i386_init_reggroups.
2793 (i386_gdbarch_init): Set register_reggroup_p and add in the i386
2794 specific reggroups.
2795
2796 2002-11-09 Mark Kettenis <kettenis@gnu.org>
2797
2798 * infptrace.c (child_xfer_memory): Make use of the new PT_IO
2799 request that's available in *BSD.
2800
2801 * i386-tdep.h (IS_FPU_CTRL_REGNUM): Remove.
2802
2803 * i387-tdep.c (i387_fill_fxsave): Use FOOFF_REGNUM instead of
2804 FDOFF_REGNUM.
2805
2806 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2807
2808 * frame.c (set_unwind_by_pc): Use dummy_frame_register_unwind.
2809 * dummy-frame.c (find_dummy_frame): Rename
2810 generic_find_dummy_frame, make static. Return the dummy frame
2811 instead of the regcache.
2812 (generic_find_dummy_frame): Re-implement using find_dummy_frame,
2813 (cached_find_dummy_frame): New function. Use find_dummy_frame.
2814 (dummy_frame_register_unwind): Rename
2815 generic_call_dummy_register_unwind. Use cached_find_dummy_frame.
2816 * dummy-frame.h (dummy_frame_register_unwind): Rename
2817 generic_call_dummy_register_unwind.
2818
2819 2002-11-08 Mark Kettenis <kettenis@gnu.org>
2820
2821 * config/i386/tm-i386v42mp.h: Remove file. Move its contents,
2822 except the inclusion of "i386/tm-i386.h", to...
2823 * config/i386/nm-i386v42mp.h: ...here.
2824 * config/i386/i386v42mp.mt (TM_FILE): Set to tm-i386.h.
2825
2826 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2827
2828 * Makefile.in (frame.o): Update dependencies.
2829 * blockframe.c (current_frame, frame_obstack_alloc)
2830 (frame_saved_regs_zalloc, get_current_frame)
2831 (set_current_frame, create_new_frame)
2832 (set_unwind_by_pc, get_next_frame)
2833 (flush_cached_frames, reinit_frame_cache)
2834 (frame_saved_regs_register_unwind)
2835 (deprecated_generic_get_saved_register)
2836 (get_prev_frame, get_frame_pc, get_frame_saved_regs)
2837 (_initialize_blockframe): Move frame code from here...
2838 * frame.c: ...to here. Include "gdb_obstack.h", "gdbcore.h",
2839 "annotate.h" and "dummy-frame.h".
2840 (_initialize_frame): New function.
2841
2842 2002-11-08 Jim Blandy <jimb@redhat.com>
2843
2844 * dwarf2read.c (read_func_scope): Restore list_in_scope properly
2845 when we finish a function a context.
2846 * buildsym.h (outermost_context_p): New macro.
2847 (Bug analyzed by David Edelsohn.)
2848
2849 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2850
2851 * blockframe.c: Include "dummy-frame.h".
2852 (struct dummy_frame, dummy_frame_stack)
2853 (generic_find_dummy_frame, deprecated_generic_find_dummy_frame)
2854 (generic_pc_in_call_dummy, deprecated_read_register_dummy)
2855 (generic_push_dummy_frame, generic_save_dummy_frame_tos)
2856 (generic_save_call_dummy_addr, generic_pop_current_frame)
2857 (generic_pop_dummy_frame, generic_fix_call_dummy)
2858 (generic_fix_call_dummy, generic_call_dummy_register_unwind): Move
2859 dummy frame code from here...
2860 * dummy-frame.c: ...to here. New file.
2861 * dummy-frame.h: New file.
2862 (generic_call_dummy_register_unwind): Declare.
2863 (generic_find_dummy_frame): Declare.
2864 * Makefile.in (SFILES): Add dummy-frame.c.
2865 (dummy-frame.o): Specify dependencies.
2866 (dummy_frame_h): Define.
2867 (COMMON_OBS): Add dummy-frame.o.
2868 (blockframe.o): Update dependencies.
2869
2870 2002-11-08 Jim Blandy <jimb@redhat.com>
2871
2872 * dwarf2read.c (read_func_scope): Restore local_symbols and
2873 param_symbols after we finish the function context. (Based on a
2874 patch from David Edelsohn.)
2875
2876 2002-11-08 David Carlton <carlton@math.stanford.edu>
2877
2878 * linespec.c (symbol_found): New function.
2879 (minsym_found): New function.
2880 (decode_line_1): Separate out some code into separate functions.
2881
2882 2002-11-08 Joel Brobecker <brobecker@gnat.com>
2883
2884 * i386-tdep.c (i386_frameless_signal_p): Make non static for
2885 the benefit of the interix target.
2886 * i386-tdep.h (i386_frameless_signal_p): Declare.
2887
2888 2002-11-08 Andrew Cagney <ac131313@redhat.com>
2889
2890 * i386-tdep.h (i386_linux_orig_eax_regnum_p): Delete stray
2891 declaration that snuck in from change below.
2892
2893 2002-11-06 Andrew Cagney <cagney@redhat.com>
2894
2895 * i386-tdep.c (i386_mmx_regnum_p): Rename mmx_regnum_p. Update
2896 all callers.
2897 (i386_fp_regnum_p): New function. Use instead of FP_REGNUM_P.
2898 (i386_fpc_regnum_p): New function. Use instead of FPC_REGNUM_P.
2899 (i386_sse_regnum_p): New function. Use instead of SSE_REGNUM_P.
2900 (i386_mxcsr_regnum_p): new function. Use instead of
2901 MXCSR_REGNUM_P.
2902 * i386-tdep.h (SSE_REGNUM_P): Delete macro.
2903 (i386_sse_regnum_p): Declare.
2904 (i386_mxcsr_regnum_p): Declare.
2905 (FP_REGNUM_P, FPC_REGNUM_P): Delete macros.
2906 (i386_fp_regnum_p, i386_fpc_regnum_p): Declare.
2907 (IS_FP_REGNUM): Update definition.
2908 (IS_FPU_CTRL_REGNUM): Update definition..
2909 (IS_SSE_REGNUM): Update definition..
2910 * i386v-nat.c (register_u_addr): Update.
2911 * go32-nat.c (fetch_register): Update.
2912 (store_register): Update.
2913
2914 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2915
2916 Preparation work to convert the hppa targets to multiarch partial.
2917
2918 * hppa-tdep.c: Add new functions replacing macro bodies from
2919 config/pa/tm-hppa.h. These function will be used to initialize
2920 the gdbarch structure. Import some comments from tm-hppa.h,
2921 and place them where appropriate, to avoid loosing them when
2922 we cleanup this file.
2923 (hppa_reg_struct_has_addr): New function.
2924 (hppa_inner_than): New function.
2925 (hppa_stack_align): New function.
2926 (hppa_pc_requires_run_before_use): New function.
2927 (hppa_instruction_nullified): New function.
2928 (hppa_register_byte): New function.
2929 (hppa_register_virtual_type): New function.
2930 (hppa_store_struct_return): New function.
2931 (hppa_cannot_store_register): New function.
2932 (hppa_frame_args_address): New function.
2933 (hppa_frame_locals_address): New function.
2934 (hppa_smash_text_address): New function.
2935 (hppa_coerce_float_to_double): New function. Requires the inclusion
2936 of "language.h".
2937
2938 * Makefile.in (hppa-tdep.o): Add dependency on language.h.
2939
2940 * tm-hppa.h (REG_STRUCT_HAS_ADDR): Change the definition of this
2941 gdbarch-eligible macro to a call to the new associated function
2942 created in hppa-tdep.c.
2943 (INNER_THAN): Likewise.
2944 (STACK_ALIGN): Likewise.
2945 (PC_REQUIRES_RUN_BEFORE_USE): Likewise.
2946 (INSTRUCTION_NULLIFIED): Likewise.
2947 (REGISTER_BYTE): Likewise.
2948 (REGISTER_VIRTUAL_TYPE): Likewise.
2949 (STORE_STRUCT_RETURN): Likewise.
2950 (CANNOT_STORE_REGISTER): Likewise.
2951 (FRAME_ARGS_ADDRESS): Likewise.
2952 (FRAME_LOCALS_ADDRESS): Likewise.
2953 (SMASH_TEXT_ADDRESS): Likewise.
2954 (COERCE_FLOAT_TO_DOUBLE): Likewise.
2955 (ABOUT_TO_RETURN): Delete, as no longer used.
2956
2957 2002-11-07 Fernando Nasser <fnasser@redhat.com>
2958
2959 * printcmd.c (disassemble_command): Remove obsolete function.
2960 (_initialize_printcmd): Do not create disassemble command here.
2961 * cli/cli-cmds.c (disassemble_command): New function. Implements
2962 disassemble command.
2963 (init_cli_cmds): Create disassemble command here instead.
2964
2965 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2966
2967 * MAINTAINERS: Add Daniel Jacobowitz to global maintainers list.
2968
2969 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2970
2971 * regcache.h (regcache_cooked_read_using_offset_hack)
2972 (regcache_cooked_write_using_offset_hack): Delete declarations.
2973 (register_changed): Delete declaration.
2974 * regcache.c (regcache_cooked_read_using_offset_hack)
2975 (regcache_cooked_write_using_offset_hack): Delete functions.
2976 (cooked_xfer_using_offset_hack): Delete function.
2977 (register_changed): Delete function.
2978
2979 2002-11-07 Jim Blandy <jimb@redhat.com>
2980
2981 * macroscope.c: #include "complaints.h".
2982 (sal_macro_scope): Cope with filenames that appear in the symtabs,
2983 but not in the macro table.
2984 * Makefile.in (macroscope.o): Record dependency.
2985
2986 2002-11-07 Joel Brobecker <brobecker@gnat.com>
2987
2988 * PROBLEMS: Document gdb/816 (unable to read core file on alpha-osf).
2989
2990 2002-11-07 Andrew Cagney <ac131313@redhat.com>
2991
2992 * regcache.c (deprecated_registers_fetched): Update.
2993 * regcache.h (deprecated_registers_fetched): Rename
2994 registers_fetched.
2995 * remote-vxsparc.c (vx_read_register): Update.
2996 * remote-vxmips.c (vx_read_register): Update.
2997 * remote-vx68.c (vx_read_register): Update.
2998 * irix5-nat.c (fetch_core_registers): Update.
2999 * mipsm3-nat.c (fetch_inferior_registers): Update.
3000 * sun3-nat.c (fetch_inferior_registers): Update.
3001 * symm-nat.c (fetch_inferior_registers): Update.
3002 * ns32knbsd-nat.c (fetch_inferior_registers): Update.
3003 (fetch_core_registers): Update.
3004 (fetch_kcore_registers): Update.
3005 * mips-nat.c (fetch_inferior_registers): Update.
3006 * corelow.c (get_core_registers): Update.
3007 * a68v-nat.c (fetch_inferior_registers): Update.
3008
3009 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3010
3011 Put in place the framework necessary for multiarching the hppa targets.
3012 * hppa-tdep.c (hppa_gdbarch_init): New function.
3013 (hppa_dump_tdep): New function.
3014 (_initialize_hppa_tdep): Register the hppa gdbarch init function and
3015 tdep structure dumper.
3016 * config/pa/tm-hppa.h (GDB_MULTI_ARCH): New macro, defined to 0
3017 until the multi-arching conversion has partially been completed.
3018
3019 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3020
3021 * valops.c (value_assign): Merge lval_register case into
3022 lval_reg_frame_relative. Use frame_register and
3023 regcache_cooked_write instead of get_saved_register and
3024 write_register_bytes. After flushing the register cache, try to
3025 re-select the selected frame.
3026
3027 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3028
3029 * regcache.h (deprecated_register_valid): Rename register_valid.
3030 * regcache.c: Update.
3031 * ia64-aix-nat.c: Update.
3032 * i386gnu-nat.c: Update.
3033 * alpha-nat.c: Update.
3034 * sparc-nat.c: Update.
3035 * lynx-nat.c: Update.
3036 * remote-mips.c: Update.
3037
3038 2002-11-06 Joel Brobecker <brobecker@gnat.com>
3039
3040 * hppa-tdep.c (_initialize_hppa_tdep): Move function body
3041 to end of file, to be more consistent with the pratice followed
3042 by other targets.
3043
3044 2002-11-06 Andrew Cagney <ac131313@redhat.com>
3045
3046 * infcmd.c: Include "reggroups.h" and <ctype.h>.
3047 (print_float_info): Print registers in float_reggroup.
3048 (print_vector_info): Print registers in vector_reggroup.
3049 (default_print_registers_info): When all, print registers in
3050 all_reggroup. Otherwize, print registers in general_reggroup.
3051 (registers_info): Rewrite. Add support for register groups.
3052 Eliminate a goto.
3053
3054 2002-11-06 Elena Zannoni <ezannoni@redhat.com>
3055
3056 * symtab.c (methods_info): Delete. It has been ifdeffed out for
3057 ages.
3058 (symtab_symbol_info): Remove eons old ifdeffed out code.
3059 (_initialize_symtab): Remove prehistoric disabled 'info methods'
3060 command.
3061
3062 2002-11-06 Theodore A. Roth <troth@openavr.org>
3063
3064 * c-exp.y: Add missing semi-colons.
3065 * f-exp.y: Add missing semi-colons.
3066 * m2-exp.y: Add missing semi-colons.
3067 * p-exp.y: Add missing semi-colons.
3068 Add empty action to start rule to avoid a type clash error when
3069 building with bison >= 1.50.
3070
3071 2002-11-06 Jim Blandy <jimb@redhat.com>
3072
3073 * macrotab.h (struct macro_source_file): Doc fix.
3074
3075 2002-11-05 Jeff Johnston <jjohnstn@redhat.com>
3076
3077 * varobj.c (child_exists, cplus_number_of_children): Change
3078 STREQ macro references to strcmp.
3079 (cplus_name_of_child): Change code to handle the fact that
3080 fields are not necessarily contiguous with regards to their
3081 access control. This is a fix for PR gdb/792.
3082
3083 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3084
3085 * gdbarch.sh (GET_SAVED_REGISTER): Change to a predicate function.
3086 * gdbarch.h, gdbarch.c: Regnerate.
3087 * frame.h (frame_register): Declare.
3088 * frame.c (frame_register): New function.
3089 (get_saved_register): Test GET_SAVED_REGISTER_P before calling
3090 GET_SAVED_REGISTER, otherwize call
3091 generic_unwind_get_saved_register.
3092 (frame_register_read): Use frame_register instead of
3093 get_saved_register.
3094
3095 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3096
3097 From Jim Ingham <jingham@apple.com>:
3098 * event-top.c (gdb_disable_readline): New function.
3099 (_initialize_event_loop): Move comment.
3100
3101 2002-11-05 Elena Zannoni <ezannoni@redhat.com>
3102
3103 * event-loop.c (start_event_loop): Add comment.
3104 Update copyright.
3105
3106 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3107
3108 * infcmd.c (default_print_registers_info): Do not call
3109 PRINT_REGISTER_HOOK.
3110
3111 2002-11-05 Andrew Cagney <ac131313@redhat.com>
3112
3113 * sparc-tdep.c (sparc_print_register_hook): Make static.
3114 (sparc_print_registers_info): New function.
3115 (sparc_do_registers_info): New function.
3116 (sparclet_print_registers_info): New function.
3117 (sparclet_do_registers_info): New function.
3118 (do_sparc_print_registers_info): New function.
3119 (sparc_print_registers): New static function, clone of infcmd.c's
3120 default_print_registers_info.
3121 * config/sparc/tm-sparclet.h (PRINT_REGISTER_HOOK): Delete macro.
3122 (sparclet_do_registers_info): Declare.
3123 (DEPRECATED_DO_REGISTERS_INFO): Re-define.
3124 * config/sparc/tm-sparc.h (DEPRECATED_DO_REGISTERS_INFO):
3125 Re-define.
3126 (sparc_do_registers_info): Declare.
3127 (PRINT_REGISTER_HOOK): Delete macro.
3128 (sparc_print_register_hook): Delete declaration.
3129
3130 2002-11-05 David Carlton <carlton@math.stanford.edu>
3131
3132 * symtab.c (lookup_symbol_aux): Move chunks of code into separate
3133 functions.
3134 (lookup_symbol_aux_local): New function.
3135 (lookup_symbol_aux_symtabs): New function.
3136 (lookup_symbol_aux_psymtabs): New function.
3137
3138 2002-11-05 David Carlton <carlton@math.stanford.edu>
3139
3140 * symtab.c (lookup_symbol_aux): In minsym sections, don't use the
3141 previous values of 'objfile' and 'block'.
3142
3143 2002-11-05 Pierre Muller <muller@ics.u-strasbg.fr>
3144
3145 * values.c (value_change_enclosing_type): Set
3146 enclosing_type field correctly also for the case where
3147 more memory needs to be allocated.
3148
3149 2002-11-03 Mark Kettenis <kettenis@gnu.org>
3150
3151 * i387-tdep.c (i387_print_float_info): Call fputs_filtered instead
3152 of puts_filtered.
3153
3154 * i387-tdep.c (i387_print_float_info): Replace calls to
3155 register_read and deprecated_read_register_gen with calls to
3156 frame_register_read, and make the necessary adjustments to the
3157 surrounding code.
3158
3159 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3160
3161 * gdbarch.sh (register_reggroup_p): Allow default value.
3162 * gdbarch.h, gdbarch.c: Regenerate.
3163
3164 2002-11-02 Andrew Cagney <ac131313@redhat.com>
3165
3166 * regcache.h: Add coment indicating replacements for deprecated
3167 functions.
3168
3169 2002-11-02 Andrew Cagney <cagney@redhat.com>
3170
3171 * reggroups.h, reggroups.c: New files.
3172 * regcache.c: Include "reggroups.h".
3173 (enum regcache_dump_what): Add `regcache_dump_groups'.
3174 (regcache_dump): Contract size of the "Type" column. When
3175 specified, dump the register's groups.
3176 (maintenance_print_register_groups): New function.
3177 (_initialize_regcache): Add command `maint print register-groups'.
3178 * Makefile.in (COMMON_OBS): Add reggroups.o
3179 (SFILES): Add reggroups.c.
3180 (reggroups_h): Define.
3181 (regcache.o, gdbarch.o): Update dependencies.
3182 (reggroups.o): Specify dependencies.
3183 * gdbarch.sh (register_reggroup_p): Add pure multi-arch method.
3184 Add opaque declaration for `struct reggroup' in generated .h file.
3185 Include "reggroups.h" in generated .c file.
3186 gdbarch.h, gdbarch.c: Re-generate.
3187
3188 2002-11-02 Andrew Cagney <cagney@redhat.com>
3189
3190 * regcache.h (deprecated_read_register_gen): Rename
3191 read_register_gen.
3192 (deprecated_write_register_gen): Rename write_register_gen.
3193 * i387-tdep.c: Update.
3194 * x86-64-linux-nat.c: Update
3195 * wince.c: Update.
3196 * thread-db.c: Update.
3197 * win32-nat.c: Update.
3198 * mips-tdep.c: Update.
3199 * d10v-tdep.c: Update.
3200 * cris-tdep.c: Update.
3201 * remote-sim.c: Update.
3202 * remote-rdi.c: Update.
3203 * remote-rdp.c: Update.
3204 * frame.c: Update.
3205 * target.c: Update.
3206 * blockframe.c: Update.
3207 * x86-64-tdep.c: Update.
3208 * xstormy16-tdep.c: Update.
3209 * sh-tdep.c: Update.
3210 * s390-tdep.c: Update.
3211 * rs6000-tdep.c: Update.
3212 * sparc-tdep.c: Update.
3213 * i386-tdep.c: Update.
3214 * dwarf2cfi.c: Update.
3215 * regcache.c: Update.
3216
3217 2002-11-01 Joel Brobecker <brobecker@gnat.com>
3218
3219 New interix-specific files:
3220 * config/i386/nm-interix.h: New file.
3221 * config/i386/interix.mh: New file.
3222 * config/i386/interix.mt: New file.
3223 * i386-interix-nat.c: New file.
3224 * i386-interix-tdep.c: New file.
3225
3226 2002-11-01 Andrew Cagney <cagney@redhat.com>
3227
3228 * frame.h (deprecated_generic_get_saved_register): Rename
3229 generic_get_saved_register.
3230 * blockframe.c (deprecated_generic_get_saved_register): Update.
3231 * xstormy16-tdep.c (xstormy16_get_saved_register): Update.
3232 (xstormy16_frame_saved_register): Update.
3233 * sh-tdep.c (sh_gdbarch_init): Update.
3234 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
3235 * ia64-tdep.c (ia64_get_saved_register): Update.
3236 * cris-tdep.c (cris_gdbarch_init): Update.
3237 * config/m32r/tm-m32r.h (GET_SAVED_REGISTER): Update.
3238 * arm-tdep.c (arm_gdbarch_init): Update.
3239
3240 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3241
3242 * lin-lwp.c (lin_lwp_resume): Remove resume_all test for !step.
3243
3244 2002-10-31 Daniel Jacobowitz <drow@mvista.com>
3245
3246 * i386-linux-tdep.c (i386_linux_pc_in_sigtramp): Check for
3247 trampolines in sigaction.
3248
3249 2002-10-31 Andrew Cagney <cagney@redhat.com>
3250
3251 * h8300-tdep.c: Include "gdb_assert.h".
3252 (h8300_print_register): Add gdbarch, file and frame parameters.
3253 Use frame_read_unsigned_register to read the register's value.
3254 Use fprintf_filtered to display output.
3255 (h8300_print_registers_info): Replace h8300_do_registers_info.
3256 (h8300_gdbarch_init): Set print_registers_info.
3257
3258 2002-10-31 Andrew Cagney <cagney@redhat.com>
3259
3260 * frame.c (frame_read_unsigned_register): New function.
3261 (frame_read_signed_register): New function.
3262 * frame.h (frame_read_unsigned_register): Declare.
3263 (frame_read_signed_register): Declare.
3264
3265 2002-10-31 Andrew Cagney <cagney@redhat.com>
3266
3267 * h8500-tdep.c (h8500_print_registers_info): New static function,
3268 clone of infcmd.c's default_print_registers_info.
3269 (h8500_do_registers_info): New funtion.
3270 (h8500_print_register_hook): Rename print_register_hook, make
3271 static.
3272
3273 * config/h8500/tm-h8500.h: Update copyright.
3274 (DEPRECATED_DO_REGISTERS_INFO): Define.
3275 (h8500_do_registers_info: Declare.
3276 (PRINT_REGISTER_HOOK): Delete macro.
3277 (print_register_hook): Delete function.
3278
3279 2002-10-31 Andrew Cagney <cagney@redhat.com>
3280
3281 * z8k-tdep.c (z8k_print_register_hook): Make static.
3282 (z8k_print_registers_info): New static function, clone of
3283 infcmd.c's default_print_registers_info.
3284 (z8k_do_registers_info): New function. Wrap
3285 z8k_print_registers_info.
3286 * config/z8k/tm-z8k.h: Update copyright.
3287 (PRINT_REGISTER_HOOK): Delete macro.
3288 (z8k_print_register_hook): Delete declaration.
3289 (DEPRECATED_DO_REGISTERS_INFO): Define.
3290 (z8k_do_registers_info): Declare.
3291
3292 2002-10-30 Joel Brobecker <brobecker@gnat.com>
3293
3294 * hppa-tdep.c (find_function_in_inferior): Remove this extern,
3295 as this is already provided by value.h, and was actually causing
3296 a compilation error because of a conflict in parameter type
3297 declaration due to a missing const keyword.
3298 (low_text_segment_addres): Fix a compilation warning.
3299
3300 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
3301
3302 * mips-linux-nat.c (mips_linux_cannot_fetch_register): Don't fetch
3303 registers without a name.
3304 (mips_linux_cannot_store_register): Don't store registers without
3305 a name.
3306
3307 2002-10-28 David Carlton <carlton@math.stanford.edu>
3308
3309 * symtab.c (find_addr_symbol): Delete. (It was already commented
3310 out.)
3311 * symtab.h: Delete prototype for find_addr_symbol.
3312
3313 2002-10-26 Andrew Cagney <cagney@redhat.com>
3314
3315 * gdbarch.sh (DEPRECATED_DO_REGISTERS_INFO): Rename
3316 DO_REGISTERS_INFO.
3317 gdbarch.h, gdbarch.c: Re-generate.
3318 * infcmd.c (default_print_registers_info): Update reference.
3319 * mips-tdep.c (mips_gdbarch_init): Set deprecated_do_registers_info.
3320 (mips_dump_tdep): Do not print DO_REGISTERS_INFO.
3321 * sh-tdep.c (sh_gdbarch_init): Ditto.
3322 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
3323 * h8300-tdep.c (h8300_gdbarch_init): Ditto.
3324
3325 2002-10-26 Mark Kettenis <kettenis@gnu.org>
3326
3327 * x86-64-tdep.c (x86_64_init_abi): Set init_extra_frame_info to
3328 cfi_init_extra_frame_info.
3329 * x86-64-tdep.h (x86_64_init_extra_frame_info): Remove prototype.
3330 * x86-64-linux-tdep.c (x86_64_init_extra_frame_info): Remove function.
3331
3332 * x86-64-tdep.c (x86_64_init_abi): Add calls to override the i386
3333 target where necessary. Add more comments and remove the ones
3334 that don't provide any useful information.
3335
3336 * i386-tdep.c (i386_frame_saved_pc): Replace call to
3337 deprecated_read_register_dummy with
3338 frame_unwind_unsigned_register.
3339
3340 * i386-tdep.c (i386_extract_struct_value_address): Use
3341 regcache_raw_read_unsigned instead of
3342 regcache_cooked_read_unsigned since we know that the register
3343 we're reading isn't a pseudo register. Rename variable 'val' into
3344 the more descriptive 'addr'.
3345
3346 * x86-64-tdep.c: Fix some formatting problems, mostly in comments.
3347 (x86_64_push_return_address): Add comment.
3348 (x86_64_pop_frame): Make static.
3349 (examine_argument): Clarify comment.
3350 (x86_64_skip_prologue): Make prolog_expact variable static.
3351
3352 * dwarf2cfi.c: Fix some formatting problems.
3353 (context_cpy, read_encoded_pointer): Clarify comments.
3354
3355 * x86-64-tdep.c (x86_64_breakpoint_from_pc): Constify.
3356 (x86_64_init_abi): Move set_gdbarch_* calls that overlap with the
3357 i386 target back into x86_64_gdbarch_init. Add some comments and
3358 remove meaningless ones.
3359
3360 2002-10-25 Andrew Cagney <cagney@redhat.com>
3361
3362 * complaints.h (struct deprecated_complaint): Rename `struct
3363 complaint'.
3364 * complaints.c (complain): Update.
3365 * remote-vx68.c, remote-vxmips.c, remote-vxsparc.c: Delete
3366 incorrect comment indicating that "symfile.h" was being included
3367 for the `struct complaint' definition.
3368 * remote-vx.c: Update.
3369 * objc-lang.c: Update.
3370 * xcoffread.c: Update.
3371 * hpread.c: Update.
3372 * mdebugread.c: Update.
3373 * stabsread.c: Update.
3374 * dwarf2read.c: Update.
3375 * dwarfread.c: Update.
3376 * elfread.c: Update.
3377 * coffread.c: Update.
3378 * stabsread.h: Update.
3379 * dbxread.c: Update.
3380 * buildsym.c: Update.
3381 * gdbtypes.c: Update.
3382 * macrotab.c: Update.
3383
3384 2002-10-25 Mark Kettenis <kettenis@gnu.org>
3385
3386 * x86-64-tdep.c (x86_64_gdbarch_init): Make a bit more similar to
3387 the version in i386-tdep.c. Move set_gdbarch_* calls out into...
3388 (x86_64_init_abi): ...new function.
3389
3390 * Makefile.in (i386v-nat.o): Add $(i386_tdep_h).
3391 * i386v-nat.c: Include "i386-tdep.h".
3392
3393 2002-10-25 Andrew Cagney <cagney@redhat.com>
3394
3395 * gdbtypes.c (address_space_name_to_int): Update.
3396 (address_space_int_to_name): Update.
3397 * gdbarch.sh (address_class_type_flags_to_name): Change to a pure
3398 multi-arch predicate.
3399 (address_class_name_to_type_flags): Ditto.
3400 * gdbarch.h, gdbarch.c: Re-generate.
3401
3402 * MAINTAINERS: Check all warnings when h8300hms and alpha-elf.
3403
3404 2002-10-24 Martin M. Hunt <hunt@redhat.com>
3405
3406 * utils.c (string_to_core_addr): Revert patch from 11 Oct.
3407
3408 2002-10-24 Elena Zannoni <ezannoni@redhat.com>
3409
3410 * symtab.h (INIT_SAL): Delete macro.
3411 (init_sal): Export.
3412 * symtab.c (init_sal): New function.
3413
3414 * ada-lang.c (ada_finish_decode_line_1): Change INIT_SAL macro
3415 to init_sal function call.
3416 (find_sal_from_funcs_and_line): Ditto.
3417 (all_sals_for_line): Ditto.
3418 * breakpoint.c (create_internal_breakpoint): Ditto.
3419 (create_fork_vfork_event_catchpoint): Ditto.
3420 (create_exec_event_catchpoint): Ditto.
3421 (parse_breakpoint_sals): Ditto.
3422 (watch_command_1): Ditto.
3423 (handle_gnu_4_16_catch_command): Ditto.
3424 (clear_command): Ditto.
3425 * hppa-tdep.c (child_enable_exception_callback): Ditto.
3426 * infcmd.c (run_stack_dummy): Ditto.
3427 * infrun.c (process_event_stop_test): Ditto.
3428 (check_sigtramp2): Ditto.
3429 (step_over_function): Ditto.
3430 * linespec.c (decode_line_2): Ditto.
3431 (decode_line_1): Ditto.
3432 * source.c (line_info): Ditto.
3433 * symtab.c (find_pc_sect_line): Ditto.
3434
3435 2002-10-24 Michal Ludvig <mludvig@suse.cz>
3436
3437 * dwarf2cfi.c (struct context)
3438 (struct context_reg): Moved to dwarf2cfi.h
3439 (context_alloc, frame_state_alloc, context_cpy):
3440 Made extern instead of static, removed prototypes.
3441 * dwarf2cfi.h (struct context)
3442 (struct context_reg): New, moved from dwarf2cfi.c
3443 (context_alloc, frame_state_alloc, context_cpy):
3444 New prototypes.
3445 * x86-64-linux-tdep.c (x86_64_linux_sigtramp_saved_pc):
3446 Changed from static to extern.
3447 (LINUX_SIGINFO_SIZE, LINUX_SIGCONTEXT_PC_OFFSET)
3448 (LINUX_SIGCONTEXT_FP_OFFSET)
3449 (LINUX_UCONTEXT_SIGCONTEXT_OFFSET): Adjusted.
3450 (x86_64_linux_in_sigtramp, x86_64_linux_frame_chain)
3451 (x86_64_init_frame_pc, x86_64_init_extra_frame_info): New.
3452 * x86-64-tdep.c (x86_64_gdbarch_init): Several
3453 set_gdbarch_*() calls now use x86-64 specific functions
3454 instead of DWARF2 CFI ones.
3455 * x86-64-tdep.h (x86_64_linux_in_sigtramp)
3456 (x86_64_linux_frame_chain, x86_64_init_frame_pc)
3457 (x86_64_init_extra_frame_info): New prototypes.
3458
3459 2002-10-23 David Carlton <carlton@math.stanford.edu>
3460
3461 * linespec.c: #include "parser-defs.h".
3462 Delete prototype for find_template_name_end.
3463 * Makefile.in (linespec.o): Depend on $(parser_defs_h).
3464
3465 2002-10-23 Jeff Johnston <jjohnstn@redhat.com>
3466
3467 * NEWS: add recent mi fixes.
3468 * varobj.c (struct varobj): Add new "updated" flag.
3469 (new_variable): Default "updated" flag to 0.
3470 (varobj_set_value): Set "updated" flag to 1 if value
3471 changes.
3472 (varobj_update): Check varobj "updated" flag before
3473 comparing old and refreshed values. Fix for
3474 PR gdb/702.
3475
3476 2002-10-23 David Carlton <carlton@math.stanford.edu>
3477
3478 * parse.c (parse_exp_1): Use BLOCK_START.
3479 * x86-64-tdep.c (x86_64_skip_prologue): Use BLOCK_END,
3480 SYMBOL_BLOCK_VALUE.
3481 * objc-lang.c (find_methods): Use BLOCK_START, BLOCK_END.
3482
3483 2002-10-23 David Carlton <carlton@math.stanford.edu>
3484
3485 * symtab.c: Delete cplusplus_hint.
3486 Delete prototype for find_template_name_end.
3487
3488 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3489
3490 * symtab.h: Update comment.
3491
3492 2002-10-23 Michael Snyder <msnyder@redhat.com>
3493
3494 * printcmd.c (address_info): Restore quotes in output.
3495 * valops.c (value_of_local): Restore quotes in error message.
3496
3497 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3498
3499 * symtab.c (symbol_demangled_name): New function.
3500 * symtab.h (SYMBOL_DEMANGLED_NAME): Simplify macro, by
3501 turning most of it into a function.
3502 (symbol_demangled_name): Export.
3503
3504 2002-10-23 Michael Snyder <msnyder@redhat.com>
3505
3506 * valops.c (value_of_local): Restore quotes in error message.
3507
3508 2002-10-23 Elena Zannoni <ezannoni@redhat.com>
3509
3510 * symtab.c (symbol_init_language_specific): New function.
3511 * symtab.h (SYMBOL_INIT_LANGUAGE_SPECIFIC): Simplify macro, by
3512 turning most of it into a function.
3513 (symbol_init_language_specific): Export.
3514
3515 2002-10-23 David Carlton <carlton@math.stanford.edu>
3516
3517 * dwarf2read.c (dwarf_tag_name): Add DWARF 3 names.
3518 (dwarf_attr_name): Ditto.
3519 (dwarf_type_encoding_name): Ditto.
3520 (scan_partial_symbols): Descend into DW_TAG_namespace entries.
3521 (process_die): Handle DW_TAG_namespace,
3522 DW_TAG_imported_declaration, DW_TAG_imported_module.
3523 (read_namespace): New function.
3524
3525 2002-10-22 Joel Brobecker <brobecker@gnat.com>
3526
3527 * configure.in: Define NEW_PROC_API on Interix too.
3528 * configure: Regenerate.
3529
3530 2002-10-21 Joel Brobecker <brobecker@gnat.com>
3531
3532 * configure: Regenerate using the proper version of autoconf.
3533
3534 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3535
3536 * findvar.c (read_var_value): Temporarily disable TLS code, until
3537 complete TLS support is added.
3538
3539 2002-10-21 Jim Blandy <jimb@redhat.com>
3540 Elena Zannoni <ezannoni@redhat.com>
3541
3542 * symtab.h (address_class): Re-add LOC_THREAD_LOCAL_STATIC
3543 for thread local storage locations.
3544 (struct symbol): Add objfile field.
3545 (SYMBOL_OBJFILE): Define.
3546 * dwarf2read.c (is_thread_local): New static variable.
3547 (new_symbol): If variable is in thread local fill in address class
3548 and objfile appropriately.
3549 (decode_locdesc): Recognize and handle DW_OP_GNU_push_tls_address
3550 stack operation.
3551 * printcmd.c (address_info): Print the information for thread
3552 local storage variable.
3553 * findvar.c (read_var_value): In case of thread local variable,
3554 defer to the target vector code to compute address.
3555
3556 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3557
3558 * solib-svr4.c (svr4_fetch_objfile_link_map): New function.
3559 * solib-svr4.h (svr4_fetch_objfile_link_map): Export.
3560
3561 2002-10-21 Elena Zannoni <ezannoni@redhat.com>
3562
3563 * symtab.h (address_class): Rename
3564 LOC_THREAD_LOCAL_STATIC to LOC_HP_THREAD_LOCAL_STATIC.
3565 * hpread.c (hpread_process_one_debug_symbol): Ditto.
3566 * printcmd.c (address_info): Ditto.
3567 * findvar.c (symbol_read_needs_frame, read_var_value): Ditto.
3568
3569 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3570
3571 * i386bsd-nat.c (i386bsd_dr_set, i386bsd_dr_get_status): Use
3572 DBREG_DRX macro to acces debug registers.
3573
3574 * Makefile.in (i386obsd-tdep.o): New target.
3575
3576 * solib-sunos.c: Include "bcache.h" and "regcache.h".
3577 * Makefile.in (solib-sunos.o): Add $(bcache_h) and $(regcache_h).
3578
3579 * configure.tgt (i[3456]86-*-openbsd*): Set gdb_target to obds.
3580 * config/i386/obsd.mt: New file.
3581 * i386bsd-nat.c (_initialize_i386bsd_nat): Introduce
3582 i386obsd_sc_pc_offset and i386obsd_sc_sp_offset;
3583 * i386obsd-nat.c (_initialize_i386obsd_nat): Set
3584 i386obsd_sigtramp_start and i386obsd_sigtramp_end instead of
3585 i386nbsd_sigtramp_start and i386nbsd_sigtramp_end.
3586 * i386obsd-tdep.c: New file.
3587
3588 2002-10-19 Adam Fedor <fedor@gnu.org>
3589
3590 * objc-exp.y (name_not_typename): Fix invalid comment.
3591
3592 2002-10-20 Mark Kettenis <kettenis@gnu.org>
3593
3594 * solib-sunos.c (allocate_rt_common_objfile): Use bcache_xmalloc
3595 to allocate partial syms and macro byte caches.
3596
3597 2002-10-18 David Carlton <carlton@math.stanford.edu>
3598
3599 * symtab.h: Delete 'struct source' and 'struct sourcevector'.
3600
3601 2002-10-18 Adam Fedor <fedor@gnu.org>
3602
3603 * stabsread.c (find_name_end): New function.
3604 (define_symbol): Use it.
3605
3606 2002-10-18 Daniel Jacobowitz <drow@mvista.com>
3607
3608 * config/alpha/nm-fbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3609 * config/alpha/nm-linux.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3610 * config/alpha/nm-nbsd.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3611 * config/alpha/nm-osf.h (CANNOT_STEP_BREAKPOINT): Define to 1.
3612
3613 2002-10-17 David Carlton <carlton@math.stanford.edu>
3614
3615 * symfile.h: Add opaque declaration for struct obstack.
3616 Declare obsavestring to take a const char *.
3617 * symfile.c (obsavestring): Make first argument a const char *.
3618
3619 2002-10-16 Adam Fedor <fedor@gnu.org>
3620
3621 * breakpoint.c (parse_breakpoint_sals): Ignore ObjC method
3622 names when matching breakpoints in current file.
3623
3624 2002-10-16 Kevin Buettner <kevinb@redhat.com>
3625
3626 * dwarf2read.c (dwarf2_invalid_pointer_size): New complaint.
3627 (read_tag_pointer_type): Add address class support.
3628 * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS)
3629 (ADDRESS_CLASS_TYPE_FLAGS_TO_NAME, ADDRESS_CLASS_NAME_TO_TYPE_FLAGS):
3630 New methods.
3631 * gdbarch.h, gdbarch.c: Regenerate.
3632 * gdbtypes.c (address_space_name_to_int, address_space_int_to_name)
3633 (make_type_with_address_space, recursive_type_dump): Add address
3634 class support.
3635 * gdbtypes.h (TYPE_FLAG_ADDRESS_CLASS_1, TYPE_FLAG_ADDRESS_CLASS_2)
3636 (TYPE_FLAG_ADDRESS_CLASS_ALL, TYPE_ADDRESS_CLASS_1)
3637 (TYPE_ADDRESS_CLASS_2, TYPE_ADDRESS_CLASS_ALL): New defines
3638
3639 2002-10-16 Klee Dienes <kdienes@apple.com>
3640
3641 * stabsread.c (read_tilde_fields): Use name[sizeof(vptr_name)-2]
3642 to get the last character of a char[] buffer, not
3643 name[sizeof(vptr_name)-1].
3644
3645 2002-10-14 Adam Fedor <fedor@gnu.org>
3646
3647 * symtab.h: New objc_specific struct.
3648 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Handle ObjC.
3649 (SYMBOL_DEMANGLED_NAME): Likewise.
3650
3651 2002-10-14 Adam Fedor <fedor@gnu.org>
3652
3653 * symfile.c (init_filename_language_table): Add ObjC file extension.
3654
3655 2002-10-14 Adam Fedor <fedor@gnu.org>
3656
3657 * utils.c (puts_filtered_tabular): New function.
3658 (fprintf_symbol_filtered): Get ObjC demangled name.
3659 * defs.h (puts_filtered_tabular): Declared.
3660
3661 2002-10-14 Kevin Buettner <kevinb@redhat.com>
3662
3663 * c-lang.h (c_type_print_varspec_prefix): Delete.
3664 * c-typeprint.c (c_type_print_varspec_prefix): Make static. Add
3665 ``need_post_space'' parameter. Adjust all callers.
3666
3667 2002-10-14 Daniel Jacobowitz <drow@mvista.com>
3668
3669 * config/mips/nm-irix4.h (HAVE_NONSTEPPABLE_WATCHPOINT): Define to 1.
3670 * config/mips/nm-irix5.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3671 * config/mips/tm-embed.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3672 * config/pa/nm-hppah.h (HAVE_NONSTEPPABLE_WATCHPOINT): Likewise.
3673
3674 2002-10-13 Adam Fedor <fedor@gnu.org>
3675
3676 * source.c (print_source_lines): Update comments.
3677
3678 2002-10-13 Adam Fedor <fedor@gnu.org>
3679
3680 * valops.c (value_of_local): New function.
3681 (value_of_this): Use it.
3682 * value.h (value_of_local): Declared.
3683
3684 2002-10-13 Adam Fedor <fedor@gnu.org>
3685
3686 * parse.c: (length_of_subexp, prefixify_subexp): Handle
3687 OP_MSGCALL, OP_SELECTOR, OP_NSSTRING, and OP_SELF.
3688
3689 2002-10-12 Adam Fedor <fedor@gnu.org>
3690
3691 * language.c (binop_result_type): Add language_objc to case.
3692 (integral_type): Likewise.
3693 (character_type): Likewise.
3694 (string_type): Likewise.
3695 (boolean_type): Likewise.
3696 (structured_type): Likewise.
3697 (binop_type_check): Likewise.
3698
3699 2002-10-11 Adam Fedor <fedor@gnu.org>
3700
3701 * printcmd.c (address_info): Print 'self' for ObjC.
3702
3703 2002-10-11 Adam Fedor <fedor@gnu.org>
3704
3705 * expression.h: New ops OP_NSSTRING, OP_SELECTOR, OP_MSGCALL, and
3706 OP_SELF.
3707
3708 2002-10-11 Adam Fedor <fedor@gnu.org>
3709
3710 * language.h (CAST_IS_CONVERSION): Add language_objc.
3711
3712 2002-10-11 Adam Fedor <fedor@gnu.org>
3713
3714 * defs.h (enum language): Add language_objc.
3715
3716 2002-10-11 Klee Dienes <kdienes@apple.com>
3717
3718 * corefile.c (read_memory_typed_address): New function.
3719 * gdbcore.h (read_memory_typed_address): Add prototype.
3720 * blockframe.c (sigtramp_saved_pc): Use read_memory_typed_address
3721 to read a value destined for a CORE_ADDR, not read_memory_integer.
3722 * f-valprint.c (f77_get_dynamic_upperbound): Ditto.
3723 (f77_get_dynamic_lowerbound): Ditto.
3724
3725 2002-10-11 Martin M. Hunt <hunt@redhat.com>
3726
3727 * utils.c (string_to_core_addr): After turning string into
3728 a number, convert to a CORE_ADDR using INTEGER_TO_ADDRESS
3729 which will do necessary sign-extension, etc.
3730
3731 2002-10-11 Daniel Jacobowitz <drow@mvista.com>
3732
3733 * c-exp.y (THIS): Delete token and grammar rule.
3734 (yylex): Don't return THIS.
3735 * cp-valprint.c (vtbl_ptr_name_old): Delete.
3736 (cp_is_vtbl_ptr_type): Don't check vtbl_ptr_name_old.
3737 * demangle.c (cplus_markers): Update comment. Put '$'
3738 first. Remove CPLUS_MARKER.
3739 (_initialize_demangler): Don't call set_cplus_marker_for_demangling.
3740 * jv-exp.y (THIS): Delete token and grammar rule.
3741 (yylex): Don't return THIS.
3742 * mips-tdep.c (mips_dump_tdep): Don't dump CPLUS_MARKER.
3743 * objc-exp.y (THIS): Delete token and grammar rule.
3744 (yylex): Don't return THIS.
3745 * p-exp.y (yylex): Remove reference to CPLUS_MARKER.
3746 * stabsread.c (vptr_name, vb_name): Replace CPLUS_MARKER with '$'.
3747 (read_member_functions): Likewise for opname.
3748 (read_tilde_fields): Use is_cplus_marker.
3749
3750 * defs.h (CPLUS_MARKER): Don't define.
3751 * config/tm-sysv4.h (CPLUS_MARKER): Likewise.
3752 * config/i386/xm-i386sco.h (CPLUS_MARKER): Likewise.
3753 * config/mips/tm-irix3.h (CPLUS_MARKER): Likewise.
3754 * config/mips/tm-irix6.h (CPLUS_MARKER): Likewise.
3755 * config/rs6000/tm-rs6000.h (CPLUS_MARKER): Likewise.
3756
3757 * config/i386/tm-i386v4.h: Delete file.
3758 * config/djgpp/fnchange.lst: Delete tm-i386v4.h.
3759 * config/i386/tm-i386sol2.h: Include "i386/tm-i386.h" instead.
3760 * config/i386/tm-i386v42mp.h: Include "i386/tm-i386.h" instead.
3761 * config/i386/tm-ptx.h: Include "i386/tm-i386.h" instead.
3762 * config/i386/i386gnu.mt (TM_FILE): Use tm-i386.h.
3763 * config/i386/i386sco5.mt (TM_FILE): Likewise.
3764 * config/i386/i386v4.mt (TM_FILE): Likewise.
3765 * config/i386/ncr3000.mt (TM_FILE): Likewise.
3766
3767 2002-10-10 Marko Mlinar <markom@opencores.org>
3768
3769 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C,
3770 accidentially not commited 2002-10-09
3771 * gdbarch.h, gdbarch.c: Re-generate.
3772
3773 2002-10-09 Marko Mlinar <markom@opencores.org>
3774
3775 * infrun.c (resume): Convert #ifdef HAVE_NONSTEPPABLE_WATCHPOINT into C.
3776 * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Add.
3777 * gdbarch.h, gdbarch.c: Re-generate.
3778
3779 2002-10-08 Petr Sorfa <petrs@caldera.com>
3780
3781 Revised and re-submitted by John Wolfe <jlw@caldera.com>
3782
3783 Move the Dwarf 2 abbrev table to a per-compilation-unit structure,
3784 so we can work on more than one compilation unit at a time. This
3785 helps prepare GDB to handle inter-CU die references.
3786 * dwarf2read.c (ABBREV_HASH_SIZE): moved definition forward in
3787 the code to be defined before struct comp_unit_head.
3788 (comp_unit_head): Added new members - offset, cu_head,
3789 begin_die, next and dwarf2_abbrevs.
3790 (dwarf2_abbrevs): Removed single static var; now member of
3791 struct comp_unit_head.
3792 dwarf2_build_psymtabs_hard): Complete new struct comp_unit_head
3793 members.
3794 (psymtab_to_symtab_1): Changed to work with the new
3795 struct comp_unit_head.
3796 (dwarf2_read_abbrevs): Now accepts a cu_header parameter and
3797 constructs the dwarf2_abbrevs[] inside the cu_header.
3798 (dwarf2_empty_abbrev_table): Now expects a ptr to a
3799 dwarf2_abbrev table to clean up.
3800 (dwarf2_lookup_abbrev): Now accepts a cu_header parameter and
3801 handling of dwarf2_abbrevs inside the cu_header.
3802 (read_partial_die): Now supports the call to the new
3803 dwarf2_lookup_abbrev.
3804 (read_full_die): Now supports the call to the new
3805 dwarf2_lookup_abbrev.
3806
3807 2002-10-06 Christopher Faylor <cgf@redhat.com>
3808
3809 * Makefile.in (install-gdbtk): Add missing continuation backslash to
3810 insure that shell variables, such as "transformed_name" are propagated
3811 to later shell statements in rule.
3812
3813 2002-10-06 Mark Kettenis <kettenis@gnu.org>
3814
3815 * config/i386/nm-i386sco.h: Add protection against
3816 multiple-inclusion. Include "i386/nm-i386v.h".
3817 (REGISTER_U_ADDR): Remove define.
3818 (i386_register_u_addr): Remove prototype.
3819
3820 2002-10-04 Michael Snyder <msnyder@redhat.com>
3821
3822 * m32r-stub.c (handle_exception): Make sure exception is "trap"
3823 before treating it as a single-step event.
3824
3825 2002-10-03 Adam Fedor <fedor@gnu.org>
3826
3827 * objc-lang.c: ARI fixes. Change string.h to gdb_string.h.
3828 (objc_demangle): Remove assignment in if statements, Replace
3829 free with xfree.
3830 (add_msglist): Likewise.
3831 (end_msglist): Likewise.
3832 (complare_selectors): Likewise.
3833 (selectors_info): Likewise.
3834 (compare_classes): Likewise.
3835 (classes_info): Likewise.
3836 (print_object_command): Likewise.
3837 (find_objc_msgcall_submethod): Replace PTR with void *.
3838 * objc-lang.h: Remove check for __STDC__.
3839
3840 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3841
3842 * ui-out.h (ui_out_field_fmt_int): New prototype.
3843 * ui-out.c (ui_out_field_fmt_int): New function allowing specification
3844 of field width and alignment.
3845 * stack.c (print_frame_info_base): When printing frame level, use
3846 ui_out_field_fmt_int with a width of 2 and left alignment. Fix for
3847 PR gdb/192
3848
3849 2002-10-03 Jeff Johnston <jjohnstn@redhat.com>
3850
3851 * MAINTAINERS: Add self to Write After Approval list.
3852
3853 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3854
3855 * infcmd.c (interrupt_target_command_wrapper): Delete.
3856 (interrupt_target_command): Make non static.
3857 (nofp_registers_info): Make static.
3858 * stack.c (return_command_wrapper): Delete.
3859 (return_command): Make non static.
3860
3861 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3862
3863 * event-top.c (gdb_setup_readline): New function. Code moved from
3864 _initialize_event_loop().
3865 (_initialize_event_loop): Call gdb_setup_readline().
3866
3867 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3868
3869 * infrun.c (resume): Convert #ifdef CANNOT_STEP_BREAKPOINT into C.
3870 * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Add.
3871 * gdbarch.h, gdbarch.c: Re-generate.
3872
3873 2002-10-02 Daniel Jacobowitz <drow@mvista.com>
3874
3875 Fix PR gdb/778
3876 * gdbtypes.c (fill_in_vptr_fieldno): Call check_typedef
3877 before recursing.
3878 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Check return value
3879 of fill_in_vptr_fieldno.
3880
3881 2002-10-02 Elena Zannoni <ezannoni@redhat.com>
3882
3883 * inferior.h (registers_info, stepi_command, nexti_command,
3884 continue_command, interrupt_target_command): Export from infcmd.c.
3885 * frame.h (args_info, selected_frame_level_changed_hook,
3886 return_command): Export from stack.c.
3887 * v850ice.c (stepi_command, nexti_command, continue_command): use
3888 prototypes from inferior.h.
3889 * tracepoint.c (registers_info, args_info, locals_info): Use
3890 prototypes from frame.h and inferior.h.
3891 * Makefile.in (mi-main.o): Add dependency on frame.h.
3892
3893 2002-10-02 Andrew Cagney <ac131313@redhat.com>
3894
3895 * rs6000-tdep.c (rs6000_store_struct_return): Store struct_return
3896 value in register 3 adjusted by ppc_gp0_regnum.
3897
3898 * rs6000-tdep.c (skip_prologue): Bias alloca_reg by ppc_gp0_regnum.
3899
3900 2002-10-02 Marko Mlinar <markom@opencores.org>
3901
3902 * MAINTAINERS: Add myself to the Write After Approval list.
3903
3904 2002-10-01 Alexandre Oliva <aoliva@redhat.com>
3905
3906 * mips-tdep.c (mips_find_abi_section): .mdebug.abi64 is the name
3907 of the section for the N64 ABI, fixed.
3908
3909 * config/mips/tm-irix6.h: Include solib.h.
3910
3911 2002-10-01 Elena Zannoni <ezannoni@redhat.com>
3912
3913 * dwarf2read.c (dwarf_stack_op_name): Recognize more dwarf3 and
3914 GNU operators.
3915
3916 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3917
3918 * NEWS: Mention that MI syntax, selected by "mi" changed to "mi2"
3919 and that "mi0" syntax has been removed.
3920
3921 2002-09-30 David Carlton <carlton@math.stanford.edu>
3922
3923 * Makefile.in (ppc-sysv-tdep.o): Depend on gdb_string_h.
3924 * ppc-sysv-tdep.c: #include "gdb_string.h".
3925 * remote-sds.c (getmessage): Add semicolon after 'retry' label to
3926 pacify GCC.
3927
3928 2002-10-01 Andrew Cagney <ac131313@redhat.com>
3929
3930 * rs6000-tdep.c (rs6000_gdbarch_init): For powerpc:7400, fix
3931 "vrsave"'s register number.
3932
3933 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3934
3935 * mips-tdep.c (mips_frame_saved_pc): When a generic dummy frame,
3936 use frame_unwind_signed_register to obtain the PC.
3937 (mips_frame_chain): Handle a generic dummy frame.
3938 (mips_init_extra_frame_info): When a generic dummy frame, don't
3939 re-compute the frame base.
3940 (mips_pop_frame): Handle generic dummy frames.
3941 (mips_gdbarch_init): When generic dummy frames, set
3942 use_generic_dummy_frames, push_dummy_frame to
3943 generic_push_dummy_frame, pc_in_call_dummy to
3944 generic_pc_in_call_dummy, and save_dummy_frame_top_of_stack to
3945 generic_save_dummy_frame_tos.
3946
3947 2002-09-30 Andrew Cagney <ac131313@redhat.com>
3948
3949 * blockframe.c (generic_find_dummy_frame): Rewrite. Only test
3950 against TOP when TOP was explictly set.
3951 (generic_push_dummy_frame): Set TOP to zero.
3952
3953 2002-09-30 Elena Zannoni <ezannoni@redhat.com>
3954
3955 * event-loop.c (start_event_loop): Rename variable 'result' to
3956 'gdb_result', to avoid conflicts with upcoming intepreters changes.
3957
3958 2002-09-30 Keith Seitz <keiths@redhat.com>
3959
3960 * gdb-events.sh (selected_thread_changed): New event.
3961 * gdb-events.c: Regenerated.
3962 * gdb-events.h: Regenerated.
3963
3964 2002-09-30 Hans-Peter Nilsson <hp@bitrange.com>
3965
3966 * MAINTAINERS: Add self to Write After Approval list.
3967
3968 2002-09-30 Fernando Nasser <fnasser@redhat.com>
3969
3970 * disasm.c: New file.
3971 * disasm.h: New file.
3972 * mi/mi-cmd-disas.c (gdb_dis_asm_read_memory): Moved to disasm.c.
3973 (compare_lines): Ditto.
3974 (dump_insns): Ditto.
3975 (do_mixed_source_and_assembly): Moved to disasm.c. Added uiout
3976 argument.
3977 (do_assembly_only): Ditto.
3978 (do_disassembly): Renamed to gdb_disassembly and moved to
3979 disasm.c. Sdded uiout argument.
3980 * Makefile.in: Add new files. Reorder SFILES list. Update
3981 dependencies. Include libgdb.a later in the insight executable.
3982
3983 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3984
3985 * config/djgpp/fnchange.lst: Rename bfd/elf64-alpha.c and
3986 bfd/elf64-alpha-fbsd.c.
3987
3988 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3989
3990 * config/djgpp/fnchange.lst: Rename i386gnu-nat.c and
3991 i386gnu-tdep.c.
3992
3993 2002-09-29 Andrew Cagney <ac131313@redhat.com>
3994
3995 * gnu-nat.h (debug): Use __FILE__ and __LINE__ instead of
3996 __FUNCTION__.
3997 * gnu-nat.c (do_mach_notify_no_senders): Replace __FUNCTION__ with
3998 function name.
3999 (do_mach_notify_port_deleted, do_mach_notify_msg_accepted): Ditto.
4000 (do_mach_notify_port_destroyed, do_mach_notify_send_once): Ditto.
4001 (S_proc_setmsgport_reply, S_proc_getmsgport_reply): Ditto.
4002 (S_msg_sig_post_reply): Ditto.
4003
4004 2002-09-28 Corinna Vinschen <vinschen@redhat.com>
4005
4006 * sh-tdep.c (sh_use_struct_convention): Use definition according
4007 to ABI.
4008 (sh_push_arguments): Store in register with correct endianess.
4009 (sh_default_store_return_value): Ditto.
4010 (sh_gdbarch_init): Set sizeof long double to 8.
4011
4012 2002-09-27 Mark Kettenis <kettenis@gnu.org>
4013
4014 * defs.h: Move inclusion of "ansidecl.h" before "gdb_locale.h".
4015 Fix some whitespace problems.
4016
4017 2002-09-27 David Carlton <carlton@math.stanford.edu>
4018
4019 * Makefile.in (cris-tdep.o): Depend on gdb_string_h.
4020 (mcore-tdep.o): Ditto.
4021 (ns32k-tdep.o): Ditto.
4022 (ns32knbsd-tdep.o): Ditto.
4023 (sh3-rom.o): Ditto.
4024 (vax-tdep.o): Ditto.
4025 * cris-tdep.c: #include "gdb_string.h"
4026 * mcore-tdep.c: Ditto.
4027 * ns32k-tdep.c: Ditto.
4028 * ns32knbsd-tdep.c: Ditto.
4029 * sh3-rom.c: Ditto.
4030 * vax-tdep.c: Ditto.
4031
4032 2002-09-27 David Carlton <carlton@math.stanford.edu>
4033
4034 * config/djgpp/fnchange.lst: Add entries for
4035 gdb/testsuite/gdb.c++/m-static files.
4036
4037 2002-09-27 Jim Wilson <wilson@redhat.com>
4038
4039 * MAINTAINERS: Add myself to the Write After Approval list.
4040
4041 2002-09-26 Martin M. Hunt <hunt@redhat.com>
4042
4043 * mips-tdep.c (find_proc_desc): Initialize startaddr.
4044
4045
4046 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4047
4048 * rs6000-tdep.c (rs6000_frame_chain): Don't chain past the dummy
4049 frame.
4050
4051 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4052
4053 * rs6000-tdep.c (rs6000_extract_struct_value_address): Return 0.
4054 (rs6000_struct_return_address): Delete variable.
4055 (rs6000_store_struct_return): Update.
4056 (rs6000_gdbarch_init): Set extract_struct_value_address instead of
4057 deprecated_extract_struct_value_address.
4058 (rs6000_frame_align): New function.
4059 (rs6000_gdbarch_init): Set frame_align.
4060
4061 2002-09-26 Andrew Cagney <ac131313@redhat.com>
4062
4063 From Grace Sainsbury <graces@redhat.com>:
4064 * Makefile.in (gdbtk-main.o): New target.
4065 (gdb.o): New target.
4066 (main_h): Define.
4067 (main.o): Update dependencies.
4068 (gdb$(EXEEXT)): Add gdb.o.
4069 (SUBDIR_GDBTK_SRCS): Add gdbtk-main.c.
4070 (SUBDIR_GDBTK_ALL, SUBDIR_GDBTK_UNINSTALL): Set.
4071 (SUBDIR_GDBTK_CLEAN): Set.
4072 (install-gdbtk): Install the insight binary.
4073 (uninstall-gdbtk): New target.
4074 (all-gdbtk, clean-gdbtk): New rule.
4075 * top.c (use_windows): Default to zero.
4076 * main.c: Include "main.h".
4077 (main): Delete.
4078 (struct captured_main_args): Delete.
4079 (gdb_main): New function.
4080 * main.h: New file.
4081 * gdb.c: New File.
4082
4083 2002-09-25 Andrew Cagney <cagney@redhat.com>
4084
4085 * frame.c: Include "gdb_string.h" and "builtin-regs.h".
4086 (frame_map_regnum_to_name): New function.
4087 (frame_map_name_to_regnum): New function.
4088 * frame.h (frame_map_name_to_regnum): Declare.
4089 (frame_map_regnum_to_name): Declare.
4090 * builtin-regs.c (builtin_reg_map_regnum_to_name): New function.
4091 * builtin-regs.h (builtin_reg_map_regnum_to_name): Declare.
4092 * parse.c: Do not include "builtin-regs.h".
4093 (target_map_name_to_register): Delete function.
4094 (write_dollar_variable): Use frame_map_name_to_regnum.
4095 * parser-defs.h (target_map_name_to_register): Delete declaration.
4096 * expprint.c: Include "frame.h".
4097 (print_subexp): Use frame_map_regnum_to_name.
4098 * eval.c (evaluate_subexp_standard): Use frame_map_regnum_to_name.
4099 * infcmd.c (registers_info): Use frame_map_name_to_regnum.
4100
4101 2002-09-25 Andrew Cagney <ac131313@redhat.com>
4102
4103 * rs6000-tdep.c (rs6000_frame_saved_pc): If the link register
4104 wasn't saved, and the next innermost frame is a dummy, return the
4105 dummy frame's link register.
4106
4107 2002-09-24 Jim Blandy <jimb@redhat.com>
4108
4109 Fix from Paul Breed:
4110 * main.c (captured_main): Add a `break' after the case for 'b'.
4111
4112 2002-09-24 Keith Seitz <keiths@redhat.com>
4113
4114 * varobj.c (c_type_of_child): Use get_target_type instead
4115 of TYPE_TARGET_TYPE.
4116
4117 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4118
4119 * source.c (get_current_or_default_source_symtab_and_line): Remove
4120 function.
4121 (set_default_source_symtab_and_line): New function. Attempts to
4122 determine a source file to list lines from if one is not currently
4123 defined.
4124 (get_current_source_symtab_and_line): Initialize sal.pc and
4125 sal.end fields.
4126 (set_current_source_symtab_and_line): Mark argument as const.
4127 * source.h: Update declarations and comments.
4128 * linespec.c (decode_line_1): Replace call to removed routine above.
4129 * stack.c (print_frame_info_base): Ditto.
4130 * cli/cli-cmds.c (edit_command): Ditto.
4131 (list_command): Ditto.
4132
4133 2002-09-22 Fernando Nasser <fnasser@redhat.com>
4134
4135 * source.c (get_current_or_default_source_symtab_and_line): Initialize
4136 sal.pc and sal.end fields.
4137 (get_current_or_default_source_symtab_and_line): Ditto.
4138 * breakpoint.c (parse_breakpoint_sals): Use correct accessor function
4139 so we do not cause a new source symtab to be searched for (reverting an
4140 unintentional change from the 2002-09-20 patch).
4141 * scm-lang.c (scm_unpac): Ditto.
4142
4143 2002-09-21 Andrew Cagney <cagney@redhat.com>
4144
4145 * complaints.c (symfile_explanations): Remove new-line from
4146 ``isolated_message''.
4147 (vcomplaint): When ISOLATED_MESSAGE, force a line break.
4148 (clear_complaints): When a SUBSEQUENT_MESSAGE, force a line break.
4149
4150 2002-09-20 Nick Clifton <nickc@redhat.com>
4151
4152 * NEWS: Announce that V850EA ISA is no longer supported.
4153 * v850-tdep.c: Remove reference to bfd_mach_v850ea.
4154
4155 2002-09-20 David Carlton <carlton@math.stanford.edu>
4156
4157 * Makefile.in (c-lang.o): Correct dependencies.
4158 (utils.o): Gather dependencies.
4159 (charset.o): Move.
4160 * c-lang.c: #include "gdb_string.h"
4161
4162 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4163
4164 From 2002-07-02 George Helffrich <george@gly.bris.ac.uk>
4165 * cli/cli-cmds.c (list_command): New function. Implements the new
4166 cli edit command.
4167 (_init_cli_cmds): Add new command definition.
4168 * gdb.1: Document edit command.
4169 * doc/gdb.texinfo: Document edit command.
4170
4171 2002-09-20 Fernando Nasser <fnasser@redhat.com>
4172
4173 * source.c: Make global variables current_source_symtab and
4174 current_source_line static.
4175 (list_command): Moved to cli/cli-cmds.c.
4176 (ambiguous_line_spec): Moved to cli/cli-cmds.c.
4177 (get_first_line_listed): New accessor function.
4178 (get_lines_to_list): New accessor function.
4179 (get_current_source_symtab_and_line): New function. Retrieves the
4180 position in the source code that we consider current.
4181 (get_current_or_default_source_symtab_and_line): New function.
4182 Like the above but attempts to determine a default position if one
4183 is not currently defined.
4184 (set_current_source_symtab_and_line): New function. Sets the source
4185 code position considered current and returns the previously set one.
4186 (clear_current_source_symtab_and_line): Reset stored information about
4187 a current source line.
4188 (_initialize_source): Remove registration for the "list" command and
4189 its alias.
4190 * source.h: Add declarations for the new functions above.
4191 * symtab.h: Remove declarations for the global variables mentioned
4192 above.
4193 * breakpoint.c (parse_breakpoint_sals): Use accessor functions to
4194 obtain current source line.
4195 * linespec.c (decode_line_1): Ditto.
4196 * macroscope.c (default_macro_scope): Ditto.
4197 * scm-lang.c (scm_unpac): Ditto.
4198 * stack.c (print_frame_info_base): Ditto.
4199 * symfile.c (clear_symtab_users): Ditto.
4200 * symtab.c (decode_line_spec): Ditto.
4201 * cli/cli-cmds.c (list_command): Moved here from source.c.
4202 (ambiguous_line_spec): Moved here from source.c.
4203 (_init_cli_cmds): Add definition for "list" and its alias.
4204 * Makefile.in: Update dependencies.
4205
4206 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4207
4208 * h8300-tdep.c (h8300_examine_prologue): Match saved regs location
4209 with what gcc thinks is correct.
4210
4211 2002-09-20 Corinna Vinschen <vinschen@redhat.com>
4212
4213 * h8300-tdep.c (h8300_examine_prologue): Fix loop for saved regs in
4214 multiple register push instruction.
4215
4216 2002-09-19 Jim Blandy <jimb@redhat.com>
4217
4218 Add support for distinct host and target character sets.
4219 * charset.c, charset.h: New files.
4220 * c-exp.y: #include "charset.h".
4221 (yylex): Convert character and string literals to the target
4222 character set, before returning them as the semantic value of the
4223 token.
4224 * c-lang.c: #include "charset.h".
4225 (c_emit_char): Use charset-specific methods to recognize
4226 characters with backslash escape forms, to decide which characters
4227 to print literally and which to print using numeric escape
4228 sequences, and to convert target characters to host characters
4229 before printing.
4230 * utils.c: #include "charset.h".
4231 (no_control_char_error): New function.
4232 (parse_escape): Use charset-specific methods to recognize
4233 backslash escapes, parse `control character' notation, and convert
4234 characters from the host character set to the target character set.
4235 * configure.in: Set the default host character set.
4236 Check where to find iconv, and what its argument types might be.
4237 * acinclude.m4 (AM_ICONV): New macro, borrowed from GCC.
4238 * Makefile.in (SFILES): List charset.c.
4239 (COMMON_OBS): List charset.o.
4240 (charset.o): New rule.
4241 (charset_h): New header dependency variable.
4242 (c-lang.o, utils.o, c-exp.tab.o): Note dependency on $(charset_h).
4243 (LIBICONV): New variable, set by configure.
4244 (CLIBS): Include $(LIBICONV) here.
4245 * aclocal.m4, config.in, configure: Regenerated.
4246
4247 2002-09-19 Joel Brobecker <brobecker@gnat.com>
4248
4249 * ada-exp.y: Add missing semicolons to end rules. Fixes a
4250 bison 1.35 warning.
4251
4252 2002-09-19 Richard Earnshaw <rearnsha@arm.com>
4253
4254 * gdb_mbuild.sh: New file.
4255
4256 2002-09-19 Andrew Cagney <ac131313@redhat.com>
4257
4258 * objc-exp.y, objc-lang.h, objc-lang.c: Fix copyright notice.
4259
4260 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4261
4262 * breakpoint.c, c-exp.y, defs.h, elfread.c, expression.h,
4263 jv-exp.y, language.c, language.h, p-exp.y, parse.c, parser-defs.h,
4264 printcmd.c, source.c, stabsread.c, symfile.c, symtab.h, utils.c,
4265 valops.c, value.h: Revert previous change.
4266
4267 2002-09-18 Michael Snyder <msnyder@redhat.com>
4268
4269 Preliminary support for Objective-C:
4270 * defs.h (language_objc): New enum value.
4271 (puts_filtered_tabular): Declaration only, exported from utils.c.
4272 (skip_quoted): Delete, declared in completer.h.
4273 * c-exp.y: Include completer.h.
4274 * p-exp.y: Ditto.
4275 * jv-exp.y: Ditto.
4276 * expression.h (OP_MSGCALL, OP_SELECTOR, OP_SELF, OP_NSSTRING):
4277 New operator enum values.
4278 * language.h (CAST_IS_CONVERSION): Test for language_objc.
4279 * language.c (binop_result_type): Handle language_objc case.
4280 (integral_type, character_type, string_type, boolean_type,
4281 structured_type, binop_type_check): Ditto.
4282 * symtab.h (SYMBOL_OBJC_DEMANGLED_NAME): Define.
4283 (struct objc_specific): Add to general_symbol_info.
4284 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Add objc initialization.
4285 (SYMBOL_DEMANGLED_NAME): Handle objc case.
4286 * parser-defs.h (struct objc_class_str): New struct type.
4287 (start_msglist, end_msglist, add_msglist): Declaration only,
4288 exported from objc-lang.c.
4289 * value.h (value_of_local, value_nsstring,
4290 call_function_by_hand_expecting_type): Exported from valops.c.
4291 * valops.c (find_function_addr): Export.
4292 (call_function_by_hand_expecting_type): New function.
4293 (value_of_local): New function.
4294 * symfile.c (init_filename_language_table): Add ".m" extension
4295 for Objective-C.
4296 * utils.c (puts_filtered_tabular): New function.
4297 (fprintf_symbol_filtered): Add objc demangling support (disabled).
4298 (set/show demangle): Extend help-string to refer to ObjC.
4299 * elfread.c (elf_symtab_read): Skip Objective-C special symbols.
4300 * stabsread.c (symbol_reference_defined): Objective-C symbols
4301 may contain colons: make allowances when scanning stabs strings
4302 for colons.
4303 (objc_find_colon): New function.
4304 * printcmd.c (address_info): If language == objc then print
4305 "self" instead of "this".
4306 * parse.c (length_of_subexp): Handle new operators OP_MSGCALL,
4307 OP_NSSTRING, and OP_SELF.
4308 (prefixify_subexp): Ditto.
4309 * source.c (print_source_lines): Mention objc in comment.
4310 * breakpoint.c (parse_breakpoint_sals): Recognize Objective-C
4311 method names.
4312
4313 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4314
4315 * complaints.h: Update copyright.
4316 (struct complaints): Declare.
4317 (struct complaint): Make `message' constant.
4318 (internal_complaint): Declare.
4319 (complaint): Declare.
4320 (complaint_root): Delete declaration.
4321 (symfile_complaints): Delete declaration.
4322 (struct complaints): Add opaque declaration.
4323 (clear_complaints): Add a complaints parameter.
4324 * complaints.c: Update copyright.
4325 (enum complaint_series): Define.
4326 (complaint_root): Delete.
4327 (struct complaints): Define.
4328 (complaint_sentinel, symfile_complaint_book): New variables.
4329 (symfile_explanations, symfile_complaints): New variables.
4330 New variables.
4331 (get_complaints): New function.
4332 (vcomplaint): New function.
4333 (complaint): New function.
4334 (internal_complaint): New function.
4335 (complain): Call vcomplain with symfile_complaint.
4336 (clear_complaints): Rewrite.
4337 (_initialize_complaints): Use add_setshow_command.
4338 * Makefile.in (complaints.o): Update dependencies.
4339 * symfile.c (syms_from_objfile): Add symfile_complaints parameter
4340 to call to clear_complaints.
4341 (new_symfile_objfile, reread_symbols): Ditto.
4342 (oldsyms_complaint): Delete.
4343 (empty_symtab_complaint, unknown_option_complaint): Delete.
4344 (free_named_symtabs): Use complaint instead of complain.
4345
4346 2002-09-18 Michael Snyder <msnyder@redhat.com>
4347
4348 Contributed by Apple Computer, Inc. Merged with current sources
4349 by Adam Fedor <fedor@doc.com> [cagney].
4350
4351 * objc-lang.c: First clean-up round: comments, indentation.
4352 * objc-lang.h: Ditto.
4353 * objc-lang.y: Ditto.
4354
4355 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4356
4357 * maint.c (maintenance_internal_error): Print the parameter as the
4358 error message.
4359 (maintenance_internal_warning): New function.
4360 (_initialize_maint_cmds): Add command `maint internal-warning'.
4361
4362 * defs.h (internal_warning, internal_vwarning): Declare.
4363 * utils.c (struct internal_problem): Define.
4364 (internal_vproblem): New function.
4365 (internal_warning): New function.
4366 (internal_vwarning): New function.
4367 (internal_warning_problem, internal_error_problem): New variables.
4368 (internal_verror): Just call internal_vproblem.
4369
4370 2002-09-18 Michael Snyder <msnyder@redhat.com>
4371
4372 * objc-lang.c: New file, support for Objective-C.
4373 Preliminary check-in, not yet integrated into gdb.
4374 * objc-lang.h: New file.
4375 * objc-exp.y: New file.
4376
4377 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4378
4379 * infrun.c (signal_stop_update): Convert definition to ISO C.
4380 (signal_print_update): Ditto.
4381 (signal_pass_update): Ditto.
4382 * inflow.c (terminal_save_ours): Ditto.
4383
4384 * h8300-tdep.c (h8300_gdbarch_init): Use C instead of C++
4385 comments.
4386
4387 * config/djgpp/fnchange.lst: Handle name clashes between
4388 bfd/coff-tic30.c, bfd/coff-tic4x.c, bfd/coff-tic54x.c and
4389 bfd/coff-tic80.c.
4390
4391 * i386-linux-tdep.h: Fix tipo.
4392
4393 2002-09-18 Adam Fedor <fedor@gnu.org>
4394
4395 * MAINTAINERS: Add myself to the Write After Approval list.
4396
4397 2002-09-18 Jim Blandy <jimb@redhat.com>
4398
4399 * dbxread.c, mdebugread.c: Revert my change of 2001-10-23. Moving
4400 texthigh and textlow to reader-specific structs caused
4401 objfile_relocate to miss them. This is fixable, but the work that
4402 the change was supposed to prepare GDB for never got done anyway.
4403
4404 2002-09-18 David Carlton <carlton@math.stanford.edu>
4405
4406 * MAINTAINERS: Alphabetize Write After Approval list.
4407
4408 2002-09-18 Daniel Jacobowitz <drow@mvista.com>
4409
4410 Fix PR gdb/709
4411 * values.c (value_static_field): Call read_var_value.
4412
4413 2002-09-18 Andrew Cagney <ac131313@redhat.com>
4414
4415 * valops.c (hand_function_call): Align the initial stack pointer
4416 and STRUCT_ADDR using frame_align. When STRUCT_RETURN and
4417 FRAME_ALIGN_P, use STRUCT_ADDR to obtain the called function's
4418 return value.
4419 * mips-tdep.c (mips_frame_align): New function.
4420 (mips_gdbarch_init): Set frame_align.
4421 * gdbarch.sh (FRAME_ALIGN): New method.
4422 * gdbarch.h, gdbarch.c: Re-generate.
4423
4424 2002-09-18 Michal Ludvig <mludvig@suse.cz>
4425
4426 * x86-64-linux-nat.c (x86_64_regmap): Added CS and SS
4427 registers.
4428
4429 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4430
4431 * NEWS: Mention that MIPS $fp behavior changed.
4432 * mipsnbsd-tdep.c (mipsnbsd_cannot_fetch_register): Delete
4433 reference to FP_REGNUM.
4434 (mipsnbsd_cannot_store_register): Ditto.
4435 * mips-linux-nat.c: Update copyright.
4436 (mips_linux_cannot_fetch_register): Delete reference to FP_REGNUM.
4437 (mips_linux_cannot_store_register): Ditto.
4438 * mips-linux-tdep.c (supply_gregset): Ditto. Update copyright.
4439 * config/mips/tm-mips.h: Update copyright.
4440 (FP_REGNUM): Delete macro.
4441 (MIPS_REGISTER_NAMES): Replace "fp" with "".
4442 * config/mips/tm-irix6.h (FP_REGNUM): Delete macro.
4443 * mips-tdep.c (mips_gdbarch_init): Set read_fp to mips_read_sp.
4444 (mips_r3041_reg_names, mips_r3051_reg_names)
4445 (mips_r3081_reg_names): Replace "fp" with "".
4446 Fix PR gdb/480.
4447
4448 2002-09-17 Theodore A. Roth <troth@verinet.com>
4449
4450 * gdb/avr-tdep.c(avr_scan_prologue): Fix bad call to
4451 generic_read_register_dummy() (PR gdb/703).
4452 (avr_push_return_address): #if 0 out unused vars.
4453 (avr_gdbarch_init): Enable use of avr_push_return_address().
4454
4455 2002-09-17 Michael Snyder <msnyder@redhat.com>
4456
4457 * m32r-stub.c (restore_and_return): Postpone restoring of PSW.
4458 RTE will take care of it.
4459
4460 2002-09-17 Andrew Cagney <ac131313@redhat.com>
4461
4462 * arch-utils.c (legacy_virtual_frame_pointer): If FP_REGNUM is
4463 invalid, return SP_REGNUM.
4464
4465 2002-09-17 Michael Snyder <msnyder@redhat.com>
4466
4467 * mips-tdep.c (mips_pop_frame): Read saved values of floating
4468 point registers without sign extension.
4469
4470 2002-09-17 Andrew Cagney <cagney@redhat.com>
4471
4472 * blockframe.c (deprecated_read_register_dummy): Rename
4473 generic_read_register_dummy.
4474 * frame.c (frame_unwind_signed_register): New function.
4475 (frame_unwind_unsigned_register): New function.
4476 * frame.h (frame_unwind_signed_register): Declare.
4477 (frame_unwind_unsigned_register): Declare.
4478 (deprecated_read_register_dummy): Rename
4479 generic_read_register_dummy.
4480
4481 * h8300-tdep.c (h8300_frame_chain): Update.
4482 (h8300_frame_saved_pc): Update.
4483 * xstormy16-tdep.c (xstormy16_frame_saved_pc): Update.
4484 * rs6000-tdep.c (rs6000_frame_saved_pc): Update.
4485 * s390-tdep.c (s390_frame_saved_pc_nofix): Update.
4486 (s390_frame_chain): Update.
4487 * v850-tdep.c (v850_find_callers_reg): Update.
4488 (v850_frame_saved_pc): Update.
4489 * m32r-tdep.c (m32r_init_extra_frame_info): Update.
4490 (m32r_find_callers_reg): Update.
4491 (m32r_frame_saved_pc): Update.
4492 * sh-tdep.c (sh_find_callers_reg): Update.
4493 (sh64_get_saved_pr): Update.
4494 (sh_init_extra_frame_info): Update.
4495 (sh_init_extra_frame_info): Update.
4496 (sh64_init_extra_frame_info): Update.
4497 (sh64_init_extra_frame_info): Update.
4498 * mcore-tdep.c (mcore_find_callers_reg): Update.
4499 (mcore_frame_saved_pc): Update.
4500 (mcore_init_extra_frame_info): Update.
4501 * i386-tdep.c (i386_frame_saved_pc): Update.
4502 * ia64-tdep.c (ia64_frame_saved_pc): Update.
4503 (ia64_init_extra_frame_info): Update.
4504 (ia64_init_extra_frame_info): Update.
4505 * d10v-tdep.c (d10v_frame_saved_pc): Update.
4506 * cris-tdep.c (cris_init_extra_frame_info): Update.
4507 * avr-tdep.c (avr_frame_chain): Update.
4508 (avr_init_extra_frame_info): Update.
4509 (avr_frame_saved_pc): Update.
4510 * arm-tdep.c (arm_find_callers_reg): Update.
4511 (arm_init_extra_frame_info): Update.
4512 (arm_frame_saved_pc): Update.
4513
4514 2002-09-17 Tom Tromey <tromey@redhat.com>
4515
4516 * c-lang.c (c_emit_char): Don't treat \0 specially unless quoter
4517 is "'".
4518
4519 2002-09-17 Corinna Vinschen <vinschen@redhat.com>
4520
4521 * MAINTAINERS: Remove "non multi-arched" text from h8300.
4522 * h8300-tdep.c (h8300_next_prologue_insn) Renamed from
4523 NEXT_PROLOGUE_INSN.
4524 (h8300_examine_prologue): Call h8300_next_prologue_insn instead of
4525 NEXT_PROLOGUE_INSN.
4526
4527 2002-09-16 Joel Brobecker <brobecker@gnat.com>
4528
4529 * osfsolib.c: Remove file, replaced by solib-osf.c.
4530 * Makefile.in: Remove compilation rules for osfsolib.c.
4531
4532 2002-09-16 David Carlton <carlton@math.stanford.edu>
4533
4534 * cp-valprint.c (cp_print_class_method): Correct args to
4535 check_stub_method_group.
4536
4537 2002-09-16 Corinna Vinschen <vinschen@redhat.com>
4538
4539 * h8300-tdep.c: Multiarch. Drop `set machine' command in favor of
4540 `set architecture'. Unify naming convention of functions.
4541 (h8300_skip_prologue): Improve prologue analysis.
4542 (h8300_push_arguments): Rewritten to more closely match GCC's
4543 bizarre argument-passing behavior, along with the comment describing
4544 said behavior.
4545 * remote-hms.c (hms_regnames): Don't use NUM_REGS in definition.
4546 * config/h8300/tm-h8300.h: Multiarch. Just keep stuff needed by
4547 sim, remote-e7000.c, remote-hms.c and remote.c
4548
4549 2002-09-15 Mark Kettenis <kettenis@gnu.org>
4550
4551 * i386-tdep.c (gdb_print_insn_i386): Removed.
4552 (i386_print_insn): New function.
4553 (i386_gdbarch_init): Set print_insn to i386_print_insns.
4554 (_initialize_i386_tdep): Don't initialize tm_print_insn and
4555 tm_print_insn_info.
4556
4557 2002-09-14 Mark Kettenis <kettenis@gnu.org>
4558
4559 * gdbtypes.c (check_stub_method_group): Initialize found_stub to
4560 zero.
4561
4562 2002-09-14 Corinna Vinschen <vinschen@redhat.com>
4563
4564 * arch-utils.c (legacy_pc_in_sigtramp): Move preprocessor expression
4565 for IN_SIGTRAMP to here. Use IN_SIGTRAMP only if it's defined.
4566 Guard usage of SIGTRAMP_START() by using SIGTRAMP_START_P.
4567
4568 2002-09-13 Christopher Faylor <cgf@redhat.com>
4569
4570 * win32-nat.c (child_create_inferior): Honor 'tty' command.
4571
4572 2002-09-13 Daniel Jacobowitz <drow@mvista.com>
4573
4574 * gdbtypes.c (check_stub_method): Make static.
4575 (check_stub_method_group): New function.
4576 * gdbtypes.h: Update prototypes.
4577 * cp-support.c: New file.
4578 * cp-support.h: New file.
4579
4580 * stabsread.c: Include "cp-abi.h" and "cp-support.h".
4581 (update_method_name_from_physname): New function.
4582 (read_member_functions): Correct method names for operators
4583 and v3 constructors/destructors. Separate v2 constructors and
4584 destructors.
4585 * Makefile.in (stabsread.o): Update dependencies.
4586 (SFILES): Add cp-support.c.
4587 (COMMON_OBS): Add cp-support.o.
4588 (cp_support_h, cp-support.o): Add.
4589
4590 * cp-valprint.c (cp_print_class_method): Call
4591 check_stub_method_group instead of check_stub_method. Remove
4592 extraneous QUITs.
4593 * p-valprint.c (pascal_object_print_class_method): Likewise.
4594 * valops.c (search_struct_method): Likewise.
4595 (find_method_list, value_struct_elt_for_reference): Likewise.
4596
4597 2002-09-13 Andrew Cagney <cagney@redhat.com>
4598
4599 * gdbarch.sh (SIGTRAMP_END): Change to a predicate function.
4600 * gdbarch.h, gdbarch.c: Regenerate.
4601
4602 2002-09-13 Andrew Cagney <ac131313@redhat.com>
4603
4604 * frame.c (find_saved_register): Delete function.
4605 * frame.h (find_saved_register): Delete declaration.
4606 Fix PR gdb/631.
4607
4608 Fri Sep 13 14:59:55 2002 Andrew Cagney <cagney@redhat.com>
4609
4610 * mips-tdep.c (read_next_frame_reg): Re-hack using
4611 frame_register_unwind.
4612
4613 Fri Sep 13 07:42:09 2002 Andrew Cagney <cagney@redhat.com>
4614
4615 * mips-tdep.c (mips_get_saved_register): Re-hack using
4616 frame_register_unwind.
4617
4618 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4619
4620 * gdbarch.sh (NAME_OF_MALLOC): New variable in the architecture
4621 vector. Will be useful for Interix.
4622 * gdbarch.h, gdbarch.c: Regenerate.
4623
4624 * valops.c (value_allocate_space_in_inferior): Replace hard-coded
4625 name of the malloc function by NAME_OF_MALLOC.
4626
4627 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4628
4629 * value.h (find_function_in_inferior): Add const keyword to
4630 one of the parameters. Allows us to invoke this function with
4631 a const char *.
4632 * valops.c (find_function_in_inferior): Likewise.
4633
4634 2002-09-12 Joel Brobecker <brobecker@gnat.com>
4635
4636 * exec.c (xfer_memory): Fix compilation warning with old versions
4637 of GCC.
4638 * tracepoint.c (trace_find_tracepoint_command): Likewise.
4639
4640 2002-09-12 David Carlton <carlton@math.stanford.edu>
4641
4642 * symtab.h: Run through gdb_indent.h.
4643 Add 2002 to Copyright year list.
4644
4645 2002-09-12 Alan Modra <amodra@bigpond.net.au>
4646
4647 * x86-64-tdep.c (_initialize_x86_64_tdep): Don't use hard-coded
4648 mach constants.
4649 * MAINTAINERS: Add myself to write after approval list.
4650
4651 2002-09-11 J. Brobecker <brobecker@gnat.com>
4652
4653 * osabi.c (gdb_osabi_name): Add entry for GDB_OSABI_INTERIX.
4654
4655 2002-09-11 J. Brobecker <brobecker@gnat.com>
4656
4657 * osabi.h (gdb_osabi): Add new GDB_OSABI_INTERIX enum value for
4658 Interix.
4659
4660 2002-06-05 Paul N. Hilfinger <hilfingr@otisco.mckusick.com>
4661
4662 * procfs.c (do_detach): Clear current signal, not just fault.
4663 Corrects problem with breakpoint trap signal leaking to detached
4664 process on Tru64.
4665
4666 2002-09-10 Michael Snyder <msnyder@redhat.com>
4667
4668 * buildsym.c (finish_block): Protect against null pointer.
4669
4670 2002-09-10 Andrew Cagney <cagney@redhat.com>
4671
4672 * infcmd.c (default_print_registers_info): Send all output to
4673 ``file'' instead of ``gdb_stdout''.
4674
4675 2002-09-10 Michael Snyder <msnyder@redhat.com>
4676
4677 * mips-tdep.c (mips_extract_struct_value_address): Make val a
4678 LONGEST, and use signed register read (addresses are sign-
4679 extended for mips).
4680
4681 2002-09-10 Stephane Carrez <stcarrez@nerim.fr>
4682
4683 * event-loop.c (gdb_do_one_event): Make public.
4684 * event-loop.h (gdb_do_one_event): Declare.
4685
4686 2002-09-10 Jeff Law <law@redhat.com>
4687
4688 * infttrace.c (child_resume): Simplify and rework to avoid
4689 TT_PROC_CONTINUE.
4690
4691 2002-09-09 Fred Fish <fnf@intrinsity.com>
4692
4693 * printcmd.c (print_scalar_formatted): "len" is the number of
4694 target bytes, NOT the number of target bits.
4695
4696 2002-09-09 Elena Zannoni <ezannoni@redhat.com>
4697
4698 From: Emmanuel Thome' <thome@lix.polytechnique.fr>
4699 * top.c (init_main): Set rl_terminal_name.
4700
4701 2002-09-08 Aidan Skinner <aidan@velvet.net>
4702
4703 * ada-lang.c (ada_array_bound, ada_type_match,
4704 _initialize_ada_language): Fix K&R definitions.
4705 * ada-tasks.c (get_current_task): Fix K&R definitions.
4706 * ada-valprint.c (adjust_type_signedness): Fix K&R definitions.
4707
4708 2002-09-07 Christopher Faylor <cgf@redhat.com>
4709
4710 * MAINTAINERS: Remove CE from list of maintainership responsibilities.
4711 Add XP.
4712
4713 2002-09-06 Mark Kettenis <kettenis@gnu.org>
4714
4715 * i386-tdep.c (i386_register_virtual_type,
4716 i386_register_convertible, i386_register_convert_to_virtual,
4717 i386_register_comvert_to_raw): Use FP_REGNUM_P and SSE_REGNUM_P
4718 instead of IS_FP_REGNUM and IS_SSE_REGNUM.
4719 (i386_gdbarch_init): Fix comment. Add comments on calls that set
4720 sp_regnum, fp_regnum, pc_regnum, ps_regnum and fp0_regnum.
4721 Don't set push_arguments twice.
4722
4723 * i386bsd-tdep.c (i386bsd_init_abi): Set sigtramp_start and
4724 sigtramp_end to i386bsd_sigtramp_start and i386bsd_sigtramp_end.
4725 * i386nbsd-tdep.c (i386nbsd_init_abi): Set sigtramp_start and
4726 sigtramp_end to NULL.
4727 * config/i386/tm-fbsd.h (SIGTRAMP_START, SIGTRAMP_END): Remove
4728 defines.
4729 (i386bsd_sigtramp_start, i386_sigtramp_end): Remove prototypes.
4730
4731 * i386nbsd-tdep.c (i386nbsd_pc_in_sigtramp): Remove spurious
4732 whitespace.
4733
4734 * gdbarch.sh (SIGTRAMP_START, SIGTRAMP_END): New methods.
4735 * gdbarch.h, gdbarch.c: Re-generate.
4736 * blockframe.c (find_pc_sect_partial_function): Convert to use
4737 SIGTRAMP_START_P predicate.
4738
4739 2002-09-05 Michael Snyder <msnyder@redhat.com>
4740
4741 * arm-tdep.c (arm_init_extra_frame_info): Distinguish between
4742 generic_dummy_frame method and old method. Also distinguish
4743 between ARM_FP_REGNUM and THUMB_FP_REGNUM.
4744 (arm_extract_return_value): Use new regcache method.
4745
4746 * mips-tdep.c (mips_n32n64_push_arguments): Remove alignment
4747 adjustment that doesn't conform to the ABI.
4748 (mips_extract_struct_value_address): Retrieve V0_REGNUM from
4749 saved regcache, not from current regcache.
4750
4751 2002-09-05 Andrew Cagney <ac131313@redhat.com>
4752
4753 * NEWS: Update for 5.3. Add new section ``Changes since 5.3''.
4754 * README: Update.
4755
4756 2002-09-04 Jason Thorpe <thorpej@wasabisystems.com>
4757
4758 * arm-tdep.c (arm_addr_bits_remove): Don't check for Thumb mode
4759 if arm_apcs_32 is false.
4760
4761 2002-09-04 Andrew Cagney <ac131313@redhat.com>
4762
4763 GDB 5.3 branch created.
4764
4765 2002-09-03 Theodore A. Roth <troth@verinet.com>
4766
4767 * gdb/avr-tdep.c (avr_gdbarch_init): Use
4768 generic_unwind_get_saved_register.
4769
4770 2002-09-03 David Carlton <carlton@math.stanford.edu>
4771
4772 * dwarf2read.c (dwarf2_add_member_fn): Add the 'type'
4773 argument (PR gdb/653). Update call to smash_to_method_type.
4774 (read_structure_scope): Update call to dwarf2_add_member_fn.
4775
4776 2002-09-03 Michal Ludvig <mludvig@suse.cz>
4777
4778 * x86-64-linux-tdep.c: Include gdb_string.h
4779 * x86-64-linux-nat.c: Ditto.
4780
4781 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4782
4783 * ada-exp.y (yyname, yyrule): Remap global variables that appear
4784 when YYDEBUG is set to 1.
4785 * c-exp.y: Likewise.
4786 * f-exp.y: Likewise.
4787 * jv-exp.y: Likewise.
4788 * m2-exp.y: Likewise.
4789 * p-exp.y: Likewise.
4790
4791 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4792
4793 * Makefile.in (i386nbsd-tdep.o): Add $(solib_svr4_h) to
4794 dependency list.
4795 * i386nbsd-tdep.c (i386nbsdelf_init_abi): Set
4796 solib_svr4_fetch_link_map_offsets to
4797 nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
4798 * config/i386/nbsd.mt (TDEPFILES): Add solib.o and solib-svr4.o.
4799 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4800 * config/i386/nbsdelf.mh (NATDEPFILES): Remove solib.o,
4801 solib-svr4.o, and solib-legacy.o.
4802 * config/i386/tm-nbsd.h: Include solib.h.
4803
4804 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4805
4806 * configure.tgt (i[3456]86-*-netbsdelf*): Merge with...
4807 (i[3456]86-*-netbsd*): ...this. Set gdb_target to nbsd.
4808 (i[3456]86-*-openbsd*): Make this a separate entry. Add a
4809 comment noting that this needs its own target configuration.
4810 * config/i386/nbsd.mt: New file.
4811 * config/i386/nbsdaout.mt: Remove.
4812 * config/i386/nbsdelf.mt: Ditto.
4813 * config/i386/tm-nbsdaout.h: Ditto.
4814
4815 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4816
4817 * i386nbsd-tdep.c (i386nbsd_sigtramp_offset): New function.
4818 (i386nbsd_pc_in_sigtramp): Rewrite to use i386nbsd_sigtramp_offset.
4819 (i386nbsd_init_abi): Don't initialize tdep->sigtramp_start or
4820 tdep->sigtramp_end.
4821 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end): Remove.
4822 * config/i386/tm-nbsd.h (SIGTRAMP_START, SIGTRAMP_END)
4823 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Remove.
4824
4825 2002-09-02 Jason Thorpe <thorpej@wasabisystems.com>
4826
4827 * Makefile.in (i386nbsd-tdep.o): Add $(arch_utils_h),
4828 $(i386_tdep_h), and $(nbsd_tdep_h) to dependency list.
4829 * i386-tdep.h (i386bsd_init_abi): New prototype.
4830 * i386bsd-tdep.c (i386bsd_init_abi): Remove "static" from
4831 function declaration.
4832 (_initialize_i386bsd_tdep): Don't register OS ABI handlers
4833 for NetBSD-a.out or NetBSD-ELF.
4834 (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end)
4835 (i386nbsd_sc_pc_offset, i386nbsd_sc_sp_offset)
4836 (i386nbsd_init_abi, i386nbsdelf_init_abi): Move to...
4837 * i386nbsd-tdep.c: ...here. Include arch-utils.h, i386-tdep.h,
4838 and nbsd-tdep.h.
4839 (i386nbsd_pc_in_sigtramp): New function.
4840 (i386nbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4841 i386nbsd_pc_in_sigtramp.
4842 (_initialize_i386nbsd_tdep): Register i386nbsd_init_abi
4843 and i386nbsdelf_init_abi OS ABI handlers.
4844 * config/i386/nbsdaout.mt (TDEPFILES): Add nbsd-tdep.o.
4845 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
4846
4847 2002-09-02 Mark Kettenis <kettenis@gnu.org>
4848
4849 * i386-linux-nat.c (dummy_sse_values): Only try to fill in the SSE
4850 registers if the target really has them.
4851
4852 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4853
4854 * Makefile.in (mipsnbsd-tdep.o): Use $(nbsd_tdep_h) rather
4855 than nbsd-tdep.h.
4856
4857 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4858
4859 * Makefile.in (alphanbsd-tdep.o): Add $(frame_h) to dependency
4860 list.
4861 * alphanbsd-tdep.c (alphanbsd_sigcontext_addr)
4862 (alphanbsd_skip_sigtramp_frame): New functions.
4863 (alphanbsd_init_abi): Set tdep->skip_sigtramp_frame to
4864 alphanbsd_skip_sigtramp_frame. Set tdep->sigcontext_addr
4865 to alphanbsd_sigcontext_addr.
4866
4867 2002-08-31 Jason Thorpe <thorpej@wasabisystems.com>
4868
4869 * Makefile.in (mipsnbsd-tdep.o): Add nbsd-tdep.h to dependency
4870 list.
4871 (nbsd-tdep.o): Add $(gdb_string_h) to dependency list.
4872 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): Use
4873 nbsd_pc_in_sigtramp.
4874 * mipsnbsd-tdep.c: Include nbsd-tdep.h.
4875 (mipsnbsd_pc_in_sigtramp): Use nbsd_pc_in_sigtramp.
4876 * nbsd-tdep.c: Include gdb_string.h.
4877 (nbsd_pc_in_sigtramp): New function.
4878 * nbsd-tdep.h (nbsd_pc_in_sigtramp): New prototype.
4879 * ppcnbsd-tdep.c (ppcnbsd_pc_in_sigtramp): New function.
4880 (ppcnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4881 ppcnbsd_pc_in_sigtramp.
4882 * shnbsd-tdep.c (shnbsd_pc_in_sigtramp): New function.
4883 (shnbsd_init_abi): Set gdbarch_pc_in_sigtramp to
4884 shnbsd_pc_in_sigtramp.
4885 * sparcnbsd-tdep.c (sparcnbsd_init_abi_elf): Set
4886 gdbarch_pc_in_sigtramp to nbsd_pc_in_sigtramp.
4887 * config/mips/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
4888
4889 2002-08-30 Pierre Muller <muller@ics.u-strasbg.fr>
4890
4891 * breakpoint.c (breakpoint_init_inferior): Reset the val field of
4892 watchpoints to NULL.
4893 (insert_breakpoints): set val field of watchpoints if NULL.
4894
4895
4896 2002-08-29 Jim Blandy <jimb@redhat.com>
4897
4898 * symtab.c (lookup_symbol_aux): In the cases where we find a
4899 minimal symbol of an appropriate name and use its address to
4900 select a symtab to read and search, use `name' (as passed to us)
4901 as the demangled name when searching the symtab's global and
4902 static blocks, not the minsym's name.
4903
4904 2002-08-29 Keith Seitz <keiths@redhat.com>
4905
4906 * stack.c (print_frame_info_base): Always set current_source_symtab
4907 and current_source_line.
4908
4909 2002-08-29 Donn Terry <donnte@microsoft.com>
4910
4911 * proc-api.c (rw_table): Fix typo in #ifdef PCSHOLD (missing S).
4912
4913 2002-08-28 Keith Seitz <keiths@redhat.com>
4914
4915 * stack.c (select_frame): Add FIXME concerning selected-frame
4916 events.
4917 (select_frame_command): Send selected-frame-level-changed
4918 event notification, but only if the level actually changed.
4919 (up_silently_base): Add selected-frame-level-changed event
4920 notification.
4921 (down_silently_base): Likewise.
4922
4923 2002-08-28 Andrew Cagney <ac131313@redhat.com>
4924
4925 * Makefile.in: Update dependencies for all gdb/*.c files.
4926
4927 2002-08-27 Tom Tromey <tromey@redhat.com>
4928
4929 * Makefile.in (osabi.o, i387-tdep.o, i386-linux-nat.o, lin-lwp.o,
4930 ax-gdb.o, signals.o, jv-valprint.o, c-valprint.o, cp-abi.o):
4931 Update dependencies.
4932 * i387-tdep.c: Include gdb_string.h.
4933 * osabi.c: Likewise.
4934 * i386-linux-nat.c: Likewise.
4935 * lin-lwp.c: Likewise.
4936 * ax-gdb.c: Likewise.
4937 * signals/signals.c: Likewise.
4938 * jv-valprint.c: Likewise.
4939 * p-lang.c: Likewise.
4940 * c-valprint.c: Likewise.
4941 * cp-abi.c: Likewise.
4942
4943 2002-08-27 Elena Zannoni <ezannoni@redhat.com>
4944
4945 * cli/cli-script.h (copy_command_lines): Export.
4946 * breakpoint.c: Include cli/cli-script.h.
4947 * Makefile.in (breakpoint.o): Update dependencies.
4948
4949 2002-08-26 Michael Snyder <msnyder@redhat.com>
4950
4951 * breakpoint.c (insert_breakpoints): Protect all references
4952 to 'process_warning'. Shorten long lines.
4953
4954 2002-08-26 Joel Brobecker <brobecker@gnat.com>
4955
4956 * cli/cli-script.c (copy_command_lines): New function.
4957 * defs.h (copy_command_lines): Export.
4958 * testsuite/gdb.base/commands.exp: New tests for commands
4959 attached to a temporary breakpoint, and for commands that
4960 delete the breakpoint they are attached to.
4961
4962 2002-08-26 Michael Snyder <msnyder@redhat.com>
4963
4964 * breakpoint.c (bpstat_stop_status): Instead of copying the
4965 pointer to the breakpoint commands struct, make a new copy
4966 of the struct and point to that.
4967 (bpstat_clear): Free the commands struct.
4968 (bpstat_clear_actions): Free the commands struct.
4969 (bpstat_do_actions): Free the command actions. Also execute
4970 the local cleanups, instead of deleting them.
4971 (delete_breakpoint): Leave the commands field of the bpstat
4972 chain alone -- it will be freed later.
4973
4974 2002-08-26 Kevin Buettner <kevinb@redhat.com>
4975
4976 * rs6000-tdep.c (altivec_register_p): Restore function inadvertently
4977 deleted in 2002-08-20 commit. This function is still used by
4978 ppc-linux-nat.c.
4979
4980 2002-08-26 Keith Seitz <keiths@redhat.com>
4981
4982 * gdb-events.sh: Add selected-frame-level-changed event.
4983 * gdb-events.c: Regenerated.
4984 * gdb-events.h: Regenerated.
4985
4986 2002-08-26 Stephane Carrez <stcarrez@nerim.fr>
4987
4988 Fix PR gdb/393:
4989 * inflow.c (terminal_save_ours): New function to save terminal
4990 settings.
4991 * inferior.h (terminal_save_ours): Declare.
4992 * target.c (debug_to_terminal_save_ours): New function.
4993 (cleanup_target): Defaults to_terminal_save_ours.
4994 (update_current_target): Inherit to_terminal_save_ours.
4995 (setup_target_debug): Set to_terminal_save_ours.
4996 * target.h (target_terminal_save_ours): New to save terminal settings.
4997 (target_ops): New member to_terminal_save_ours.
4998 * gnu-nat.c (init_gnu_ops): Set to_terminal_save_ours.
4999 * hpux-thread.c (init_hpux_thread_ops): Likewise.
5000 * inftarg.c (init_child_ops): Likewise.
5001 * m3-nat.c (init_m3_ops): Likewise.
5002 * procfs.c (init_procfs_ops): Likewise.
5003 * wince.c (init_child_ops): Likewise.
5004 * win32-nat.c (init_child_ops): Likewise.
5005 * sol-thread.c (init_sol_thread_ops): Likewise.
5006
5007 2002-08-26 Mark Kettenis <kettenis@gnu.org>
5008
5009 * i386-tdep.c (i386_store_return_value): Undeprecate. Convert to
5010 use regcache_* functions.
5011 (i386_gdbarch_init): Set store_return_value instead of
5012 deprecated_store_return_value.
5013
5014 * regcache.c (regcache_raw_write_signed,
5015 regcache_raw_write_unsigned): New functions.
5016 * regcache.h (regcache_raw_write_signed,
5017 regcache_raw_write_unsigned): New prototypes.
5018
5019 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5020
5021 * Makefile.in (c-exp.tab.o, jv-exp.tab.o, f-exp.tab.o)
5022 (m2-exp.tab.o, p-exp.tab.o, ada-exp.tab.o): Move to before the
5023 source file dependencies. Cleanup corresponding generator rules.
5024
5025 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5026
5027 * regcache.h (register_offset_hack): Declare.
5028 (regcache_cooked_read_using_offset_hack): Declare.
5029 (regcache_cooked_write_using_offset_hack): Declare.
5030
5031 * regcache.c (register_offset_hack): New function.
5032 (regcache_cooked_read_using_offset_hack): New function.
5033 (regcache_cooked_write_using_offset_hack): New function.
5034 (regcache_dump): Check that the registers, according to their
5035 offset, are packed hard against each other.
5036 (cooked_xfer_using_offset_hack): New function.
5037
5038 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5039
5040 * regcache.c (struct regcache_descr): Add field register_type.
5041 (init_legacy_regcache_descr): Pass a pre-allocated regcache_descr
5042 in as a parameter
5043 (init_regcache_descr): Initialize register_type. Pass the descr
5044 to init_legacy_regcache_descr. Use register_type instead of
5045 REGISTER_VIRTUAL_TYPE.
5046 (register_type): New function.
5047 (regcache_dump): Replace REGISTER_VIRTUAL_TYPE with register_type.
5048 * regcache.h (register_type): Declare.
5049
5050 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5051
5052 * rs6000-tdep.c (rs6000_gdbarch_init): Set store_struct_return
5053 instead of deprecated_store_return_value. Fix fallout from
5054 2002-08-23 Andrew Cagney <cagney@redhat.com>.
5055
5056 2002-08-25 Andrew Cagney <ac131313@redhat.com>
5057
5058 * regcache.c (max_register_size): New function.
5059 (init_legacy_regcache_descr): Ensure that max_register_size is
5060 large enough for REGISTER_VIRTUAL_SIZE.
5061 * regcache.h (max_register_size): Declare.
5062
5063 2002-08-24 Andrew Cagney <ac131313@redhat.com>
5064
5065 * rs6000-tdep.c (rs6000_gdbarch_init): Use deprecated version of
5066 store_return_value.
5067 (e500_extract_return_value): Change type of valbuf pointer to
5068 void.
5069
5070 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5071
5072 * PROBLEMS: Clarify problems with FreeBSD's compiler and suggest
5073 workaround.
5074
5075 * valprint.c (print_longest) [CC_HAS_LONG_LONG &&
5076 PRINTF_HAS_LONG_LONG]: Cast val_long to (long long) or (unsigned
5077 long long) to prevent compiler warning on 64-bit systems.
5078
5079 2002-08-23 Andrew Cagney <cagney@redhat.com>
5080
5081 * gdbarch.sh (STORE_RETURN_VALUE): Add regcache parameter.
5082 (DEPRECATED_STORE_RETURN_VALUE): New method.
5083 (EXTRACT_RETURN_VALUE): Make buffer parameter a void pointer.
5084 * gdbarch.h, gdbarch.c: Re-generate.
5085
5086 * values.c (set_return_value): Pass current_regcache to
5087 STORE_RETURN_VALUE.
5088 * arch-utils.h (legacy_store_return_value): Declare.
5089 * arch-utils.c (legacy_store_return_value): New function.
5090 (legacy_extract_return_value): Update parameters.
5091
5092 * config/pa/tm-hppa.h (DEPRECATED_STORE_RETURN_VALUE): Rename
5093 STORE_RETURN_VALUE.
5094 * config/pa/tm-hppa64.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5095 * config/sparc/tm-sparc.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5096 * config/z8k/tm-z8k.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5097 * config/sparc/tm-sparclet.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5098 * config/mn10200/tm-mn10200.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5099 * config/m68k/tm-linux.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5100 * config/m68k/tm-delta68.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5101 * config/m32r/tm-m32r.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5102 * config/h8500/tm-h8500.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5103 * config/h8300/tm-h8300.h (DEPRECATED_STORE_RETURN_VALUE): Ditto.
5104
5105 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
5106 * i386-tdep.c (i386_extract_return_value): Update.
5107 * arch-utils.c (legacy_extract_return_value): Update.
5108 * frv-tdep.c (frv_gdbarch_init): Update.
5109 * cris-tdep.c (cris_gdbarch_init): Update.
5110 * d10v-tdep.c (d10v_gdbarch_init): Update.
5111 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
5112 * m68k-tdep.c (m68k_gdbarch_init): Update.
5113 * mcore-tdep.c (mcore_gdbarch_init): Update.
5114 * mn10300-tdep.c (mn10300_gdbarch_init): Update.
5115 * s390-tdep.c (s390_gdbarch_init): Update.
5116 * sparc-tdep.c (sparc_gdbarch_init): Update.
5117 * sh-tdep.c (sh_gdbarch_init): Update.
5118 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
5119 * v850-tdep.c (v850_gdbarch_init): Update.
5120 * avr-tdep.c (avr_gdbarch_init): Update.
5121 * ia64-tdep.c (ia64_gdbarch_init): Update.
5122 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
5123 * vax-tdep.c (vax_gdbarch_init): Update.
5124 * alpha-tdep.c (alpha_gdbarch_init): Update.
5125 * arm-tdep.c (arm_gdbarch_init): Update.
5126 * mips-tdep.c (mips_gdbarch_init): Update.
5127 * i386-tdep.c (i386_gdbarch_init): Update.
5128
5129 2002-08-23 Andrew Cagney <ac131313@redhat.com>
5130
5131 * config/djgpp/fnchange.lst: Add entries for bfd/elf32-ppcqnx.c,
5132 bfd/elf32-ppc.c, bfd/elf32-sh.c and bfd/elf32-shqnx.c.
5133
5134 2002-08-24 Mark Kettenis <kettenis@gnu.org>
5135
5136 * PROBLEMS: Refer to GDB 5.3 instead of 5.2. Mention FreeBSD
5137 problems.
5138
5139 2002-08-23 Joel Brobecker <brobecker@gnat.com>
5140
5141 * infrun.c (handle_inferior_event): Move a comment outside of a
5142 function call, in order to avoid indent reformatting this part
5143 of the code in an unreadable way.
5144
5145 2002-08-23 Grace Sainsbury <graces@redhat.com>
5146
5147 * infrun.c (normal_stop, proceed): Remove call to print_sys_errmsg
5148 when breakpoints fail. Move general breakpoint error messages to
5149 insert_breakpoints.
5150 * breakpoint.c (insert_breakpoints): Change warnings when
5151 breakpoints are nto inserted to specify the type. Remove call to
5152 memory_error when hardware breakpoints can't be inserted. Remove
5153 multiple calls to warning so all messages are sent to the user at
5154 once.
5155 (delete_breakpoints): Make insert error messsages more explicit.
5156
5157 2002-08-23 Daniel Jacobowitz <drow@mvista.com>
5158
5159 * ChangeLog: Move gdbserver entries after GDB 5.2 to
5160 gdbserver/ChangeLog.
5161
5162 2002-08-23 Mark Kettenis <kettenis@gnu.org>
5163
5164 * i386-tdep.c: Include "objfiles.h".
5165 (i386_svr4_init_abi): Set in_solib_call_trampoline and
5166 skip_trampoline_code.
5167 * config/i386/tm-i386v4.h: Don't include "config/tm-sysv4.h".
5168 (CPLUS_MARKER): Define to '.'.
5169
5170 * linux-proc.c (struct linux_corefile_thread_data): Add num_notes
5171 member.
5172 (linux_corefile_thread_callback): Increase args->num_notes.
5173 (linux_make_note_section): Initialize thread_args.num_notes, and
5174 use it to determine whether notes for any threads were created.
5175
5176 2002-08-23 Donn Terry <donnte@microsoft.com>
5177
5178 * proc-api.c (rw_table): Do not include a row for PCDSTOP if the
5179 corresponding macro is not defined. Likewise for PCNICE, PCSHOLD
5180 and PCUNKILL.
5181 (write_with_trace): Conditionalize out the switch branch handling
5182 PCSHOLD if the corresponding macro is not defined. Likewise for
5183 PRSABORT and PRSTOP.
5184 This change will be needed by the Interix port.
5185
5186 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5187
5188 * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): use
5189 write_register wherever possible instead of manipulating the
5190 register bytes directly.
5191 Assign VALUE_CONTENTS to a variable and use that.
5192 The GPR numbers are now dependent on the architecture.
5193
5194 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5195
5196 * rs6000-tdep.c (struct rs6000_framedata): Add saved_ev and
5197 ev_offset fields.
5198 (skip_prologue): Add support for BookE/e500 instructions.
5199 (e500_extract_return_value): New function.
5200 (frame_get_saved_regs): Add support for saving ev registers and
5201 pseudo gpr's.
5202 (e500_store_return_value): New function.
5203 (rs6000_gdbarch_init): Move up default intializations of
5204 deprecated_extract_return_value and store_return_value. Overwrite
5205 init of store_return_value with e500 specific version.
5206 Set extract_return_value for e500.
5207
5208 2002-08-22 Elena Zannoni <ezannoni@redhat.com>
5209
5210 * blockframe.c (generic_call_dummy_register_unwind): Use
5211 regcache_cooked_read to catch cases in which the variable is
5212 stored in a pseudo register.
5213
5214 2002-08-22 Andrew Cagney <cagney@redhat.com>
5215
5216 * NEWS: Mention that the i960 has been made obsolete.
5217 * Makefile.in (SFILES): Delete remote-nrom.c, remote-nindy.c and
5218 i960-tdep.c
5219 (remote-nrom.o): Obsolete target.
5220 (remote-nindy.o, i960-tdep.o): Ditto.
5221 * remote-nrom.c: Make file obsolete.
5222 * remote-nindy.c, remote-vx960.c: Ditto.
5223 * config/i960/vxworks960.mt, config/i960/nindy960.mt: Ditto.
5224 * config/i960/mon960.mt, config/i960/tm-i960.h: Ditto.
5225 * config/i960/tm-vx960.h, config/i960/tm-nindy960.h: Ditto.
5226 * config/i960/tm-mon960.h, i960-tdep.c: Ditto.
5227 * configure.tgt: Make i960-*-bout*, i960-nindy-coff*,
5228 i960-*-coff*, i960-nindy-elf*, i960-*-elf*, i960-*-nindy* and
5229 i960-*-vxworks* obsolete.
5230 * MAINTAINERS: Note that the i960 is obsolete.
5231
5232 2002-08-21 Corinna Vinschen <vinschen@redhat.com
5233
5234 * aix-thread.c (aix_thread_detach): Disable thread debugging on
5235 detach to allow reinitialization.
5236
5237 2002-08-22 Andrew Cagney <ac131313@redhat.com>
5238
5239 * MAINTAINERS: Change the s390 target to s390-linux-gnu (second
5240 attempt).
5241
5242 2002-08-22 Jim Blandy <jimb@redhat.com>
5243
5244 * coffread.c (coff_symfile_read): Don't try to read the line
5245 number table from disk if the image file doesn't have a symbol
5246 table; we'll never actually look at the info anyway, and Windows
5247 ships DLL's with bogus file offsets for the line number data.
5248
5249 2002-08-21 Elena Zannoni <ezannoni@redhat.com>
5250
5251 * rs6000-tdep.c (rs6000_gdbarch_init): Figure out whether we have
5252 an e500 executable.
5253
5254 2002-08-21 Michael Snyder <msnyder@redhat.com>
5255
5256 * mips-tdep.c (MSYMBOL_IS_SPECIAL): Replace macro with function.
5257 (MSYMBOL_SIZE): Replace macro with function.
5258 (DEFAULT_MIPS_TYPE): Delete unused macro.
5259 * config/mips/tm-mips.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5260 * config/mips/tm-embed.h (DEFAULT_MIPS_TYPE): Delete unused macro.
5261
5262 2002-08-21 Jim Blandy <jimb@redhat.com>
5263
5264 * valops.c (value_cast): Simplify and correct logic for doing a
5265 static cast from a pointer to a base class to a pointer to a
5266 derived class.
5267
5268 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5269
5270 * infcmd.c (default_print_registers_info): Replace
5271 do_registers_info.
5272 (registers_info): Use gdbarch_print_registers_info instead of
5273 DO_REGISTERS_INFO.
5274 * inferior.h (default_print_registers_info): Replace
5275 do_registers_info.
5276 * gdbarch.sh (PRINT_REGISTERS_INFO): New method.
5277 (DO_REGISTERS_INFO): Change to a predicate function.
5278 * gdbarch.h, gdbarch.c: Regenerate.
5279
5280 2002-08-21 Keith Seitz <keiths@redhat.com>
5281
5282 * gdb-events.sh: Add target-changed event.
5283 * gdb-events.c: Regenerated.
5284 * gdb-events.c: Regenerated.
5285 * valops.c (value_assign): Add target-changed event notification
5286 to inlval_register, lval_memory, and lval_reg_frame_relative.
5287
5288 2002-08-21 Joel Brobecker <brobecker@gnat.com>
5289
5290 * NEWS: Add an entry regarding the improvement of the next/step
5291 operation on Alpha Tru64 multi-processor machines.
5292
5293 2002-08-21 Andrew Cagney <ac131313@redhat.com>
5294
5295 * Makefile.in: Update dependencies for mi/ cli/ and tui/
5296 directores.
5297 * Makefile.in: Update all _h macro definitions.
5298 * Makefile.in (install-gdbtk): Move to install section.
5299 (rdi-share/libangsd.a): Move to end of file.
5300
5301 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5302
5303 * frame.c (frame_register_unwind): When a register, set addrp to
5304 the register's byte.
5305
5306 2002-08-20 Michael Snyder <msnyder@redhat.com>
5307
5308 * mips-tdep.c (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): These are only
5309 used locally, so move them from the target machine header to here.
5310 (mips_set_processor_type, mips_register_name, mips32_next_pc,
5311 mips16_next_pc, cached_proc_desc, mips_set_processor_type):
5312 Make static.
5313 * config/mips/tm-mips.h (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Delete.
5314
5315 2002-08-20 Andrew Cagney <cagney@redhat.com>
5316
5317 * NEWS: Mention that the Apollo line was made obsolete.
5318 * configure.tgt: Make m68*-apollo*-bsd*, m68*-hp-bsd*, and
5319 m68*-hp-hpux* obsolete.
5320 * configure.host: Make m68*-apollo*-sysv*, m68*-apollo*-bsd*,
5321 m68*-hp-bsd* and m68*-hp-hpux* obsolete.
5322 * buildsym.c (make_blockvector): Make static.
5323 * buildsym.h (make_blockvector): Make extern declaration obsolete.
5324 * Makefile.in (HFILES_NO_SRCDIR): Remove dst.h
5325 (ALLDEPFILES): Remove dstread.c.
5326 (dstread.o): Obsolete make rule.
5327 * dstread.c: Makefile obsolete.
5328 * dst.h: Ditto.
5329 * config/m68k/hp300hpux.mt: Ditto.
5330 * config/m68k/hp300hpux.mh: Ditto.
5331 * config/m68k/hp300bsd.mt: Ditto.
5332 * config/m68k/hp300bsd.mh: Ditto.
5333 * config/m68k/apollo68b.mt: Ditto.
5334 * config/m68k/apollo68v.mh: Ditto.
5335 * config/m68k/apollo68b.mh: Ditto.
5336
5337 2002-08-20 Michael Snyder <msnyder@redhat.com>
5338
5339 * mips-tdep.c (mips_in_return_stub): Make static.
5340 (mips_gdbarch_init): Set in_solib_return_trampoline.
5341 * config/mips/tm-mips.h (IN_SOLIB_RETURN_TRAMPOLINE): Delete.
5342
5343 2002-08-20 Michael Snyder <msnyder@redhat.com>
5344
5345 * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Add.
5346 * gdbarch.c, gdbarch.h: Regenerate.
5347 * arch-utils.c, arch-utils.h (generic_in_solib_return_trampoline):
5348 Add.
5349 * infrun.c (IN_SOLIB_RETURN_TRAMPOLINE): Delete default definition.
5350
5351 2002-08-20 Michael Snyder <msnyder@redhat.com>
5352
5353 * mips-tdep.c (mips_skip_stub, mips_in_call_stub): Make static.
5354 (mips_gdbarch_init): Set skip_trampoline_code,
5355 in_solib_call_trampoline.
5356 * config/mips/tm-mips.h (REGISTER_NAME): Delete.
5357 (IN_SOLIB_CALL_TRAMPOLINE, SKIP_TRAMPOLINE_CODE): Delete.
5358
5359 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5360
5361 * ppc-tdep.h (struct gdbarch_tdep): Add ev registers.
5362
5363 * rs6000-tdep.c (rs6000_register_virtual_type): Return 64 bit
5364 vector type for ev registers.
5365 (e500_pseudo_register_read): New function.
5366 (e500_pseudo_register_write): New function.
5367 (e500_dwarf2_reg_to_regnum): New function.
5368 (PPC_UISA_NOFP_SPRS): New macro.
5369 (PPC_EV_REGS): New macro.
5370 (PPC_GPRS_PSEUDO_REGS): New macro.
5371 (registers_e500): New register set for e500.
5372 (variants): Add e500 variant.
5373 (rs6000_gdbarch_init): Move setting of pc, sp, fp regnums to
5374 before setting architectural dependent variations. Initialize ev
5375 registers numbers. Add case for e500 architecture. Set the
5376 number of pseudo registers.
5377
5378 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5379
5380 * rs6000-tdep.c: Clean up comments.
5381
5382 2002-08-20 Andrew Cagney <cagney@redhat.com>
5383
5384 * h8300-tdep.c: Re-indent file.
5385
5386 2002-08-20 Jim Blandy <jimb@redhat.com>
5387
5388 * Makefile.in (LDFLAGS): Allow the configure script to establish a
5389 default for this.
5390
5391 2002-08-20 Keith Seitz <keiths@redhat.com>
5392
5393 * breakpoints.c (watch_command_1): Use internal breakpoint
5394 when setting a watchpoint_scope breakpoint.
5395
5396 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5397
5398 * gdbtypes.c (build_builtin_type_vec64): Add name to type.
5399 (build_builtin_type_vec64i): Ditto.
5400 (build_builtin_type_vec128): Ditto.
5401 (build_builtin_type_vec128i): Ditto.
5402
5403 2002-08-19 Michael Snyder <msnyder@redhat.com>
5404
5405 * config/mips/tm-mips.h (ELF_MAKE_MSYMBOL_SPECIAL): Delete.
5406 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Change into functions.
5407 (FIX_CALL_DUMMY, PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME,
5408 POP_FRAME, INIT_EXTRA_FRAME_INFO): Delete.
5409 (CALL_DUMMY_START_OFFSET, CALL_DUMMY_BREAKPOINT_OFFSET,
5410 CALL_DUMMY_ADDRESS): Delete.
5411 * mips-tdep.c (mips_elf_make_msymbol_special, mips_msymbol_size,
5412 mips_msymbol_is_special, mips_fix_call_dummy): New functions.
5413 (mips_gdbarch_init): Set elf_make_msymbol_special, pop_frame,
5414 push_dummy_frame, fix_call_dummy, init_extra_frame_info,
5415 push_return_address.
5416 (mips_register_raw_size, mips_eabi_use_struct_convention,
5417 mips_n32n64_use_struct_convention, mips_o32_use_struct_convention,
5418 mips_o32_reg_struct_has_addr, mips_frame_saved_pc, mips_frame_chain,
5419 mips_init_extra_frame_info, mips_eabi_push_arguments,
5420 mips_n32n64_push_arguments, mips_push_return_address,
5421 mips_push_dummy_frame, mips_pop_frame, mips_skip_prologue,
5422 mips_breakpoint_from_pc, mips_call_dummy_address): Make static.
5423
5424 2002-08-19 Michael Snyder <msnyder@redhat.com>
5425
5426 * mips-tdep.c (mips_frame_num_args): New function.
5427 (mips_gdbarch_init): Set frame_chain, frameless_function_invocation,
5428 frame_saved_pc, frame_args_address, frame_locals_address,
5429 frame_num_args, and frame_args_skip.
5430 * config/mips/tm-mips.h (FRAME_CHAIN, FRAMELESS_FUNCTION_INVOCATION,
5431 FRAME_SAVED_PC, FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS,
5432 FRAME_NUM_ARGS, FRAME_ARGS_SKIP): Delete.
5433 * config/mips/tm-mipsv4.h (FRAME_CHAIN_VALID): Delete.
5434
5435 2002-08-20 Michael Snyder <msnyder@redhat.com>
5436
5437 * config/mips/tm-mips.h (STORE_STRUCT_RETURN): Delete.
5438 (EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
5439 * mips-tdep.c (mips_store_struct_return): New function.
5440 (mips_extract_struct_value_address): New function.
5441 (mips_gdbarch_init): Set store_struct_return and
5442 extract_struct_value_address.
5443
5444 2002-08-20 David Carlton <carlton@math.stanford.edu>
5445
5446 * dwarf2read.c (dwarf2_build_psymtabs): Check that
5447 dwarf_line_offset is nonzero before creating dwarf_line_buffer.
5448 (read_file_scope): Check that line_header is nonzero before
5449 decoding macro information.
5450
5451 2002-08-20 Mark Kettenis <kettenis@gnu.org>
5452
5453 * i386-tdep.h (FP_REGNUM_P): Change such that we don't incorrectly
5454 flag the general-purpose registers as floating-point on targets
5455 that don't support the floating-point registers.
5456
5457 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5458
5459 * rs6000-tdep.c (altivec_register_p): Delete.
5460 (rs6000_do_altivec_registers): Delete.
5461 (rs6000_altivec_registers_info): Delete.
5462 (rs6000_do_registers_info): Delete.
5463 (_initialize_rs6000_tdep): Remove command 'info powerpc altivec'.
5464 (rs6000_gdbarch_init): Remove setting of do_registers_info.
5465
5466 2002-08-20 Elena Zannoni <ezannoni@redhat.com>
5467
5468 * infcmd.c (do_registers_info): Print vector registers in hex
5469 format only.
5470 (print_vector_info): Check that printing registers
5471 makes sense.
5472 (print_float_info): Ditto.
5473
5474 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5475
5476 * mips-tdep.c (mips_gdbarch_init): Update.
5477 (mips_o32_extract_return_value): Rewrite.
5478 (mips_o32_store_return_value): Rewrite.
5479 (mips_o32_xfer_return_value): New function.
5480 (mips_xfer_register): Tweak debug print message. Allow for
5481 buf_offset when dumping the value transfered.
5482
5483 2002-08-20 Andrew Cagney <ac131313@redhat.com>
5484
5485 * config/mips/tm-nbsd.h (MIPS_DEFAULT_ABI): Delete.
5486 * config/mips/tm-linux.h (MIPS_DEFAULT_ABI): Delete.
5487 * config/mips/tm-irix5.h (MIPS_DEFAULT_ABI): Delete.
5488 * config/mips/tm-irix6.h (MIPS_DEFAULT_ABI): Delete.
5489 * mips-tdep.c (mips_gdbarch_init) [MIPS_DEFAULT_ABI]: Delete code.
5490
5491 2002-08-14 Michael Snyder <msnyder@redhat.com>
5492
5493 * mips-tdep.c (mips_frame_chain): Check for call-dummy frames.
5494
5495 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5496
5497 * rs6000-tdep.c (struct reg): Add field to indicate a pseudo
5498 register.
5499 (P): New macro to define a register as a pseudo register.
5500 (R, R4, R8, R16, FR32, R64, R0): Updated.
5501 (struct variant): Add new fields for number of pseudo registers
5502 and number of total registers.
5503 (tot_num_registers): New macro replacing....
5504 (num_registers): ...deleted macro.
5505 (num_registers): New function.
5506 (num_pseudo_registers): New function.
5507 (variants): Update all variants to intialize new fields correctly.
5508 Postpone initialization of number of pseudo regs and real regs.
5509 (init_variants): New function.
5510 (rs6000_gdbarch_init): Initialize variants. Update calculation of
5511 registers offsets.
5512
5513 2002-08-19 David Carlton <carlton@math.stanford.edu>
5514
5515 * valops.c (search_struct_field): Change error message to treat
5516 return value of 0 from value_static_field as meaning that field is
5517 optimized out.
5518 (value_struct_elt_for_reference): Ditto.
5519 * values.c (value_static_field): Treat an unresolved location the
5520 same as a nonexistent symbol. Fix PR gdb/635.
5521 * gnu-v2-abi.c (gnuv2_value_rtti_type): Eliminate test for being
5522 enclosed. Fix PR gdb/574.
5523 * MAINTAINERS: Add self to Write After Approval list.
5524
5525 2002-08-19 Andrew Cagney <ac131313@redhat.com>
5526
5527 * mips-tdep.c (mips_xfer_register): New function.
5528 (mips_n32n64_extract_return_value): Rewrite.
5529 (mips_gdbarch_init): For N32 and N64, set extract_return_value
5530 instead of deprecated_extract_return_value.
5531
5532 2002-08-19 Elena Zannoni <ezannoni@redhat.com>
5533
5534 * rs6000-tdep.c (TDEP): Delete macro.
5535 (branch_dest): Replace use of TDEP macro with its body.
5536 (rs6000_pop_frame): Ditto.
5537 (rs6000_push_arguments): Ditto.
5538 (rs6000_skip_trampoline_code): Ditto.
5539 (rs6000_frame_saved_pc): Ditto.
5540 (rs6000_frame_chain): Ditto.
5541 (rs6000_register_name): Ditto.
5542 (rs6000_register_byte): Ditto.
5543 (rs6000_register_raw_size): Ditto.
5544 (rs6000_register_virtual_type): Ditto.
5545 (rs6000_register_convertible): Ditto.
5546 (rs6000_convert_from_func_ptr_addr): Ditto.
5547
5548 2002-08-19 Daniel Jacobowitz <drow@mvista.com>
5549
5550 * config/mips/tm-linux.h (REALTIME_LO, REALTIME_HI): Define
5551 conditionally.
5552 (JB_PC, JB_ELEMENT_SIZE): Rename to MIPS_LINUX_JB_PC and
5553 MIPS_LINUX_JB_ELEMENT_SIZE.
5554 * mips-linux-tdep.c (supply_gregset, fill_gregset): Use alloca
5555 for MAX_REGISTER_RAW_SIZE arrays.
5556 (mips_linux_get_longjmp_target): Use MIPS_LINUX_JB_PC and
5557 MIPS_LINUX_JB_ELEMENT_SIZE.
5558
5559 2002-08-19 Pierre Muller <muller@ics.u-strasbg.fr>
5560
5561 * i387-tdep.c (i387_print_float_info): Fix typo in comment.
5562
5563 2002-08-19 Aidan Skinner <aidan@velvet.net>
5564
5565 * Makefile.in (SFILES): Add ada-exp.y ada-lang.c ada-typeprint.c
5566 ada-valprint.c ada-tasks.c.
5567 (YYFILES): Add ada-exp.y.
5568 (ada-exp.tab.c ada-lex.c ada-lang.o): New target.
5569 (ada-tasks.o ada-typeprint.o ada-valprint.o): New target.
5570 (ada-exp.tab.o): New target.
5571
5572 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5573
5574 * regcache.c (regcache_xfer_part): New function.
5575 (regcache_raw_read_part): New function.
5576 (regcache_raw_write_part): New function.
5577 (regcache_cooked_read_part): New function.
5578 (regcache_cooked_write_part): New function.
5579 * regcache.h (regcache_raw_read_part): Declare.
5580 (regcache_raw_write_part): Declare.
5581 (regcache_cooked_read_part): Declare.
5582 (regcache_cooked_write_part): Declare.
5583
5584 2002-08-18 Daniel Jacobowitz <drow@mvista.com>
5585
5586 * remote.c (remote_open_1): Add async_p.
5587 (remote_async_open_1): Delete.
5588 (open_remote_target): Delete.
5589 (remote_open, extended_remote_open): Update calls to remote_open_1.
5590 (remote_async_open, extended_remote_async_open): Call
5591 remote_open_1 instead of remote_async_open_1.
5592
5593 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5594
5595 * blockframe.c: Fix a few coding standard violations.
5596
5597 2002-08-19 Mark Kettenis <kettenis@gnu.org>
5598
5599 * config/i386/nm-i386sco5.h (START_INFERIOR_TRAPS_EXPECTED): Moved
5600 here from ...
5601 * config/i386/tm-i386sco5.h: ... here. File removed.
5602 * config/i386/i386sco5.mt (TM_FILE): Set to tm-i386v4.h.
5603
5604 * config/i386/nm-i386v.h (START_INFERIOR_TRAPS_EXPECTED): New define.
5605 * config/i386/i386aout.mt (TDEPFILES): Add i387-tdep.o
5606 (TM_FILE): Set to tm-i386.h.
5607 * config/i386/i386v.mt (TM_FILE): Set to tm-i386.h.
5608 * config/i386/tm-i386v.h: Remove file.
5609 * config/i386/tm-ptx.h [!SEQUENT_PTX4]: Include "i386/tm-i386.h"
5610 instead of "i386/tm-i386v.h".
5611 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5612 * config/i386/tm-symmetry: Include "i386/tm-i386.h" instead of
5613 "i386/tm-i386v.h".
5614 (START_INFERIOR_TRAPS_EXPECTED): Remove define.
5615 * config/i386/tm-vxworks.h: Include "i386/tm-i386.h" instead of
5616 "i386/tm-i386.h".
5617
5618 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5619
5620 * config/i386/nm-i386v.h: Add protection against
5621 multiple-inclusion.
5622 (i386_register_u_addr): Remove prototype.
5623 (register_u_addr): New prototype.
5624 (REGISTER_U_ADDR): Redefine accordingly.
5625 * i386v-nat.c: Improve several comments.
5626 (i386_register_u_addr): Change signature and rename to
5627 register_u_addr. Use FP_REGNUM_P. Rewrite slightly to get rid of
5628 ubase variable.
5629
5630 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5631
5632 * config/mips/tm-mips.h (STORE_RETURN_VALUE): Delete macro.
5633 (DEPRECATED_EXTRACT_RETURN_VALUE): Delete macro.
5634 * mips-tdep.c (mips_gdbarch_init): Set store_return_value and
5635 deprecated_extract_return_value.
5636 (mips_o32_push_arguments, mips_o64_push_arguments): Clone and
5637 rename mips_o32o64_push_arguments.
5638 (mips_gdbarch_init): Update.
5639 (mips_extract_return_value): Delete.
5640 (mips_o32_extract_return_value): Clone mips_extract_return_value.
5641 (mips_o64_extract_return_value): Clone mips_extract_return_value.
5642 (mips_eabi_extract_return_value): Clone mips_extract_return_value.
5643 (mips_n32n64_extract_return_value): Clone
5644 mips_extract_return_value.
5645 (mips_store_return_value): Delete.
5646 (mips_o32_store_return_value): Clone mips_store_return_value.
5647 (mips_o64_store_return_value): Clone mips_store_return_value.
5648 (mips_eabi_store_return_value): Clone mips_store_return_value.
5649 (mips_n32n64_store_return_value): Clone mips_store_return_value.
5650
5651 2002-08-18 Aidan Skinner <aidan@velvet.net>
5652
5653 * ada-lang.c: Use gdb_string.h instead of <string.h>.
5654 * ada-typeprint.c: Use gdb_string.h instead of <string.h>.
5655
5656 2002-08-18 Aidan Skinner <aidan@velvet.net>
5657
5658 * ada-lang.c: Run through gdb_indent.sh.
5659 * ada-lang.h: Run through gdb_indent.sh.
5660 * ada-tasks.c: Run through gdb_indent.sh.
5661 * ada-typeprint.c: Run through gdb_indent.sh.
5662 * ada-valprint.c: Run through gdb_indent.sh.
5663
5664 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5665
5666 * osabi.c (gdbarch_init_osabi): Don't complain about an unknown
5667 ABI.
5668
5669 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5670
5671 * i386b-nat.c [FETCH_INFERIOR_REGISTERS]: Remove dead code.
5672
5673 * config/i386/nm-i386bsd.h (FLOAT_INFO): Remove redundant #undef.
5674 * i386b-nat.c [FLOAT_INFO]: Remove dead code.
5675
5676 * i386-tdep.c (i386_do_pop_frame, i386_store_return_value): Call
5677 write_register_gen instead of write_register_bytes.
5678
5679 * NEWS: Mention that the i[3456]-*mach3*, i[3456]-*-mach* and
5680 i[3456]-*-osf1mk* configurations have been made obsolete.
5681 * configure.host: Make i[3456]86-*-mach3*, i[3456]86-*mach* and
5682 i[3456]86-*-osf1mk* hosts obsolete.
5683 * confighure.tgt: Make i[3456]86-*-mach3*, i[3456]86-*-osf1mk*
5684 targets obsolete.
5685 * config/i386/i386mach.mh, config/i386/nm-i386mach.h,
5686 config/i386/xm-i386mach.h, config/i386/i386m3.mh,
5687 config/i386/i386m3.mt, config/i386/nm-m3.h,
5688 config/i386/tm-i386m3.h, config/i386/xm-i386m3.h,
5689 config/i386/i386mk.mh, config/i386/i386mk.mt,
5690 config/i386/tm-i386mk.h, config/i386/xm-i386mk.h: Make files
5691 obsolete.
5692 * i386mach-nat.c, i386m3-nat.c: Make files obsolete.
5693 * Makefile.in (ALLDEPFILES): Remove i386mach.c i386m3-nat.c
5694 (i386mach-nat.o, i386m3-nat.o):Make targets obsolete.
5695
5696 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5697
5698 * config/pa/tm-hppa.h (hppa_store_return_value): Declare.
5699 (hppa_value_returned_from_stack): Declare.
5700 (hppa_extract_return_value): Declare.
5701 * config/pa/hppa.mt: New file.
5702 * configure.tgt: Recognize hppa*-*-*.
5703 * MAINTAINERS: Change HPPA target to hppa-elf. Still broken.
5704
5705 2002-08-18 Mark Kettenis <kettenis@gnu.org>
5706
5707 * i386-sol2-tdep.c (_initialize_i386_sol2_tdep): Fix typo in
5708 comment.
5709
5710 2002-08-17 Mark Kettenis <kettenis@gnu.org>
5711
5712 * top.c (gdb_rl_operate_and_get_next): Make sure
5713 operate-and-get-next functions correctly even when the history
5714 list is completely filled.
5715
5716 2002-08-18 Andrew Cagney <ac131313@redhat.com>
5717
5718 * MAINTAINERS (Target Instruction Set Architectures): Rename
5719 Target/Architectures. Replace vax-dec-vms5.5 with vax-netbsd.
5720 Replace s390-linux with s390-linux-gnu. Remove i386-aout,
5721 mcore-pe, mips64-elf, sparc64-elf. Remove i586-pc-msdosdjgpp,
5722 already listed under Host/Native.
5723
5724 * configure.tgt: Combine i[3456]86-*-coff*, i[3456]86-*-elf*,
5725 i[3456]86-*-pe*, and i[3456]86-*-aout* into i[3456]86-*-*. Add
5726 mips*-*-*.
5727
5728 2002-08-17 Andrew Cagney <ac131313@redhat.com>
5729
5730 * config/ia64/ia64.mt: New file.
5731 * config/alpha/alpha.mt: New file.
5732 * MAINTAINERS: Change the alpha target to alpha-elf and IA-64 to
5733 ia64-linux-gnu. Mention that ia64-elf is broken.
5734 * configure.tgt: Add alpha*-*-* and ia64*-*-* patterns.
5735
5736 2002-08-17 Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
5737
5738 * i386-tdep.c (i386_svr4_init_abi, i386_nw_init_abi): Use
5739 generic_func_frame_valid instead of func_frame_valid.
5740
5741 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5742
5743 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Unfortunately,
5744 procfs appears to be broken when debugging on multi-processor
5745 machines. So enable software single stepping in order to avoid
5746 using the procfs interface to do next/step operations, using
5747 internal breakpoints instead.
5748
5749 * infrun.c (handle_inferior_event): Readjust the stop_pc by
5750 DECR_PC_AFTER_BREAK when hitting a single step breakpoint, to
5751 make this pc address equal to the value it would have if the
5752 system stepping capability was used. Also set a new flag used
5753 to ensure that we don't readjust the PC one more time later.
5754
5755 * breakpoint.c (bpstat_stop_status): Do not adjust the PC
5756 address by DECR_PC_AFTER_BREAK when software single step is
5757 in use for this architecture, as this has already been taken
5758 care of in handle_inferior_event().
5759
5760 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5761
5762 * infrun.c (handle_inferior_event): Minor reformatting, to make
5763 a rather long condition expression easier to read.
5764
5765 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5766
5767 * Makefile.in (gdbtk.o): Move to end of file.
5768 (gdbtk-bp.o, gdbtk-cmds.o): Ditto.
5769 (gdbtk-hooks.o, gdbtk-register.o): Ditto.
5770 (gdbtk-stack.o, gdbtk-varobj.o): Ditto.
5771 (gdbtk-wrapper.o, gdbres.o): Ditto.
5772
5773 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5774
5775 * Makefile.in (copying.o): Separate out compile rule.
5776 (hpux-thread.o, procfs.o, signals.o): Ditto.
5777 (v850ice.o, z8k-tdep.o): Ditto.
5778 (tui-file.o): Move to TUI section.
5779 (xdr_ptrace.o, xdr_rdb.o, xdr_ld.o): Move to separate section.
5780 (nindy.o, Onindy.o, ttyflush.o): Move to separate section.
5781
5782 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5783
5784 * i386-tdep.c (i386_pe_skip_trampoline_code): renamed from
5785 skip_trampoline_code, for better namespace-proofing.
5786
5787 * i386-tdep.h (i386_pe_skip_trampoline_code): Add declaration.
5788
5789 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5790
5791 * config/i386/tm-cygwin.h: Remove some "#if 0"'ed macros.
5792
5793 2002-08-16 Joel Brobecker <brobecker@gnat.com>
5794
5795 * infrun.c (handle_inferior_event): When receiving a SIGTRAP
5796 signal, check whether we hit a breakpoint before checking for a
5797 single step breakpoint. Otherwise, GDB fails to notice that a
5798 breakpoint has been hit when stepping onto a breakpoint.
5799
5800 2002-08-16 Keith Seitz <keiths@redhat.com>
5801
5802 * gdb-events.sh (clear_gdb_event_hooks): New function.
5803 * gdb-events.c: Regenerate.
5804 * gdb-events.h: Regenerate.
5805
5806 2002-08-16 Andrew Cagney <ac131313@redhat.com>
5807
5808 * breakpoint.c (bpstat_stop_status): Rename not_a_breakpoint to
5809 not_a_sw_breakpoint.
5810 * breakpoint.h (bpstat_stop_status): Add parameter names.
5811
5812 2002-08-16 Grace Sainsbury <graces@redhat.com>
5813
5814 * remote.c (remote_insert_hw_breakpoint)
5815 (remote_remove_hw_breakpoint): Fix calculation of length field
5816 for Z-packet.
5817
5818 2002-08-15 Michael Snyder <msnyder@redhat.com>
5819
5820 * irix5-nat.c (supply_gregset): Allocate plenty-big buffer
5821 (32 bytes) instead of using MAX_REGISTER_RAW_SIZE.
5822 (supply_fpregset): Ditto.
5823
5824 * config/mips/tm-mips.h (REGISTER_CONVERT_TO_VIRTUAL,
5825 REGISTER_CONVERT_TO_RAW, REGISTER_CONVERTIBLE,
5826 MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE): Delete.
5827 (TARGET_READ_SP): Delete.
5828 (DO_REGISTERS_INFO): Delete.
5829 (FUNCTION_START_OFFSET, IN_SIGTRAMP, REGISTER_VIRTUAL_SIZE):
5830 Delete.
5831 (REGISTER_CONVERT_FROM_TYPE, REGISTER_CONVERT_TO_TYPE): Convert
5832 from macros to functions.
5833
5834 * mips-tdep.c (mips_gdbarch_init): Set the above in the gdbarch.
5835 (mips_register_convertible, mips_register_convert_to_virtual,
5836 mips_register_convert_to_raw): Make static.
5837 (mips_read_sp): New function.
5838 (mips_gdbarch_init): Set gdbarch read_sp to mips_read_sp.
5839 (mips_do_registers_info): Make static.
5840 (mips_gdbarch_init): Insert mips_do_registers_info into gdbarch.
5841 (in_sigtramp): Make static, rename to mips_pc_in_sigtramp.
5842 (mips_register_convert_from_type, mips_register_convert_to_type):
5843 New functions.
5844 (mips_gdbarch_init): Set up function_start_offset,
5845 register_virtual_size, pc_in_sigtramp.
5846
5847 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5848
5849 * infcmd.c (vector_info): New function.
5850 (_initialize_infcmd): Add command "info vector".
5851 (print_vector_info): New function.
5852
5853 * gdbarch.sh (PRINT_VECTOR_INFO): New method
5854 * gdbarch.h, gdbarch.c: Regenerate.
5855
5856 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5857
5858 * infcmd.c (do_registers_info): Rename parameter ``fpregs'' to
5859 ``print_all''. Only print vector registers when ``print_all''.
5860
5861 2002-08-15 Andrew Cagney <ac131313@redhat.com>
5862
5863 * i387-tdep.h (i387_print_float_info): Add `args' parameter.
5864 * i387-tdep.c (i387_print_float_info): Add `args' parameter.
5865
5866 * gdbarch.sh (PRINT_FLOAT_INFO): Change to a predicate method.
5867 Add `args' parameter.
5868 * gdbarch.h, gdbarch.c: Regenerate.
5869
5870 * arm-tdep.c (arm_print_float_info): Add the parameter `args'.
5871
5872 * infcmd.c (float_info): Call print_float_info.
5873 (print_float_info): New function. By default, print the
5874 floating-point registers.
5875
5876 * arch-utils.h (default_print_float_info): Delete declaration.
5877 * arch-utils.c (default_print_float_info): Delete function.
5878
5879 2002-08-16 Mark Kettenis <kettenis@gnu.org>
5880
5881 * config/i386/nm-i386v.h (FLOAT_INFO): Remove already commented
5882 out define.
5883
5884 * i387-tdep.c (i387_print_float_info): Add comment about ignoring
5885 FRAME.
5886
5887 * NEWS: Mention that the i[3456]-*-aix target has been made obsolete.
5888 * configure.host: Make i[3456]86-*-aix host obsolete.
5889 * configure.tgt: Make i[3456]86-*-aix target obsolete.
5890 * config/i386/i386aix.mh, config/i386/i386aix.mt,
5891 config/i386/nm-i386aix.h, condig/i386/tm-i386aix.h,
5892 config/i386/xm-i386aix.h: Make files obsolete.
5893 * i386aix-nat.c: Make file obsolete.
5894 * Makefile.in (ALLDEPFILES): Remove i386aix-nat.c.
5895 (i386aix-nat.o): Make target obsolete.
5896
5897 * config/i386/nm-gnu.h: Removed.
5898 * config/i386/nm-i386gnu.h: New file.
5899 (THREAD_STATE_FLAVOR, THREAD_STATE_SIZE,
5900 THREAD_STATE_SET_TRACED, THREAD_STATE_CLEAR_STATE, ATTACH_DETACH):
5901 Moved here from ...
5902 * config/i386/tm-i386gnu.h: ... here. Removed.
5903 * config/i386/xm-i386gnu.h: Removed.
5904 * config/i386/i386gnu.mh (XM_FILE): Set to xm-i386.h.
5905 (NAT_FILE): Set to nm-i386gnu.h.
5906 * config/i386/i386gnu.mt (TDEPFILES): Add i386gnu-tdep.o.
5907 * i386-tdep.c: New file.
5908 * Makefile.in (ALLDEPFILES): Add i386gnu-nat.c and i386gnu-tdep.c.
5909 (i386gnu-tdep.o): Specify dependencies.
5910
5911 2002-08-15 Mark Kettenis <kettenis@gnu.org>
5912
5913 * config/i386/tm-i386sco5.h: Include "i386/tm-i386v4.h" instead of
5914 "i386/tm-i386.h", "i386/tm-i386v.h" and "config/tm-sysv.h".
5915 Adjust a few comments to reflect reality a bit closer.
5916 (KERNEL_U_SIZE, TARGET_HAS_HARDWARE_WATCHPOINTS,
5917 TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_CONTINUEABLE_WATCHPOINT,
5918 HAVE_STEPPABLE_WATCHPOINT, STOPPED_BY_WATCHPOINT,
5919 target_insert_watchpoint, target_remove_watchpoint):
5920 Move defines to ...
5921 * config/i386/nm-i386sco5.h: ... here.
5922 (kernel_u_size): Add prototype. Improve a few comments and add
5923 protection against multiple inclusion.
5924
5925 * config/i386/nm-i386sco.h (FLOAT_INFO): Remove already commented
5926 out define.
5927
5928 * uw-thread.c (SP_ARG0): Define if not already defined.
5929 * config/i386/tm-i386.h (SO_ARG0): Remove define.
5930
5931 * config/i386/tm-i386v4.h (HAVE_I387_REGS): Remove define.
5932
5933 * config/i386/tm-i386.h: Don't include "regcache.h".
5934
5935 * i387-tdep.h (i387_print_float_info): New prototype.
5936 * i387-tdep.c (print_i387_value, print_i387_ext,
5937 print_i387_status_word, print_i387_control_word): Add `struct
5938 ui_file *' argument and use it for output.
5939 (i387_print_float_info): Renamed from i387_float_info. Add
5940 `struct gdbarch *' and `struct ui_file *' arguments and use the
5941 latter for output.
5942 * i386-tdep.c: Include "i387-tdep.h".
5943 (i386_gdbarch_init): Set print_float_info.
5944 * config/i386/tm-i386.h (i387_float_info): Remove prototype.
5945 (FLOAT_INFO): Remove define.
5946
5947 2002-08-13 Michael Snyder <msnyder@redhat.com>
5948
5949 * mips-tdep.c (mips_push_arguments): Rename to
5950 mips_eabi_push_arguments, and tune for EABI.
5951 (MIPS_REGS_HAVE_HOME_P): Delete.
5952 (struct gdbarch_tdep): Remove mips_regs_have_home_p field.
5953 (mips_gdbarch_init): Set gdbarch push_arguments for eabi.
5954 Delete references to mips_regs_have_home_p.
5955
5956 2002-08-14 Keith Seitz <keiths@redhat.com>
5957
5958 * Makefile.in (install-gdbtk): Create insight plugin directory.
5959 Install plugins.tcl file.
5960
5961 2002-08-14 Keith Seitz <keiths@redhat.com>
5962
5963 * configure.in: Move SUBDIRS to near top of the file so that
5964 --enable options may add things to it.
5965 If gdbtk is enabled, add gdbtk directory to SUBDIRS and configdirs.
5966 * configure: Regenerate.
5967
5968 2002-08-13 Michael Snyder <msnyder@redhat.com>
5969
5970 * mips-tdep.c (mips_o32o64_push_arguments): New function,
5971 cloned from mips_push_arguments, tuned for o32/o64 ABI.
5972 (mips_gdbarch_init): Set gdbarch_push_arguments to new func.
5973
5974 2002-08-13 Andrew Cagney <ac131313@redhat.com>
5975
5976 * vax-tdep.c (vax_get_saved_register): Delete function.
5977 (vax_gdbarch_init): Update.
5978 * ns32k-tdep.c (ns32k_get_saved_register): Delete function.
5979 (ns32k_gdbarch_init): Update.
5980 * alpha-tdep.c (alpha_get_saved_register): Delete function.
5981 (alpha_gdbarch_init): Update.
5982
5983 2002-08-13 Andrew Cagney <cagney@redhat.com>
5984
5985 * regcache.c (init_regcache_descr): Overallocate the
5986 raw_register_valid_p array including space for NUM_PSEUDO_REGS.
5987 (registers_changed): Replace NUM_REGS+NUM_PSEUDO_REGS with
5988 nr_raw_registers.
5989 (set_register_cached): Add range checking assertions. Use
5990 current_regcache.
5991
5992 2002-08-13 Mark Kettenis <kettenis@gnu.org>
5993
5994 * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
5995 numbers for MMX registers.
5996
5997 2002-08-13 Andrew Cagney <cagney@redhat.com>
5998
5999 * i386-tdep.c (i386_gdbarch_init): Use
6000 generic_unwind_get_saved_register.
6001
6002 2002-08-13 Kevin Buettner <kevinb@redhat.com>
6003
6004 * procfs.c (procfs_can_use_hw_breakpoint): New function.
6005 (init_procfs_ops): Define ``to_can_use_hw_breakpoint'' for procfs
6006 target vector.
6007 * config/mips/nm-irix5.h (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
6008 Delete. Add comment regarding this now-deleted target method.
6009
6010 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6011
6012 * m68hc11-tdep.c (M68HC12_NUM_PSEUDO_REGS): New define.
6013 (M68HC12_HARD_PC_REGNUM): Define specific PC for 68HC12 (pseudo reg).
6014 (m68hc11_pseudo_register_read): Compute the 68HC12 PC using the
6015 real PC and the page number (if it's within the memory bank window).
6016 (m68hc11_pseudo_register_write): Likewise when saving.
6017 (m68hc11_register_name): Name the virtual pc 'pc' and the real one ppc.
6018 (m68hc11_register_virtual_type): Return uint32 for virtual pc.
6019 (m68hc11_register_raw_size): And use 32-bit for it.
6020 (m68hc11_gdbarch_init): Use 32-bit address for 68HC12 if the
6021 16K memory bank is used by the prog; also use the virtual pc.
6022
6023 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6024
6025 * m68hc11-tdep.c (m68hc11_elf_make_msymbol_special): New function.
6026 (m68hc11_gdbarch_init): Install it in gdbarch.
6027 (MSYMBOL_SET_RTC, MSYMBOL_SET_RTI): New to set symbol specific flags.
6028 (MSYMBOL_IS_RTC, MSYMBOL_IS_RTI): New to test these flags.
6029 (MSYMBOL_SIZE): New for documentation.
6030 (insn_return_kind): Enum to specify how a function returns.
6031 (frame_extra_info): Cleanup and record the return mode.
6032 (gdbarch_tdep, USE_PAGE_REGISTER): New to control the use of page
6033 register in address computation.
6034 (m68hc11_get_return_insn): New to obtain the return instruction used
6035 by the function.
6036 (m68hc11_frame_init_saved_regs): Take into account the return
6037 instruction used by the function for far and interrupt functions.
6038 (m68hc11_init_extra_frame_info): Take into account page register.
6039 (m68hc11_frame_args_address): Adjust according to the return mode.
6040 (show_regs): Print page register only when it's used.
6041
6042 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6043
6044 * m68hc11-tdep.c (HARD_PAGE_REGNUM): Define for 68HC12 page register.
6045 (M68HC11_LAST_HARD_REG, m68hc11_register_names): Update.
6046 (m68hc11_register_virtual_type): Return a 8-bit type for 8-bit
6047 registers.
6048 (m68hc11_register_raw_size): Likewise.
6049
6050 2002-08-13 Andrew Cagney <cagney@redhat.com>
6051
6052 * i386-tdep.c (i386_register_name): Handle mmx registers.
6053 (mmx_regnum_p): New function.
6054 (i386_mmx_names): New array.
6055 (mmx_num_regs): New variable.
6056 (i386_pseudo_register_read): New function.
6057 (i386_pseudo_register_write): New function.
6058 (mmx_regnum_to_fp_regnum): New function. Code from Fernando Nasser.
6059
6060 * regcache.c (regcache_raw_read_unsigned): New function.
6061 (regcache_raw_read_signed): New function.
6062 * regcache.h (regcache_raw_read_unsigned): Declare.
6063 (regcache_raw_read_signed): Declare.
6064
6065 2002-08-13 Andrew Cagney <cagney@redhat.com>
6066
6067 * regcache.c (regcache_raw_read_as_address): Delete function.
6068 (regcache_cooked_read_signed): New function.
6069 (regcache_cooked_read_unsigned): New function.
6070 * regcache.h (regcache_cooked_read_signed): Declare.
6071 (regcache_cooked_read_unsigned): Declare.
6072 (regcache_raw_read_as_address): Delete declaration.
6073
6074 * blockframe.c (generic_read_register_dummy): Use
6075 regcache_cooked_read_unsigned.
6076 * i386-tdep.c (i386_extract_struct_value_address): Use
6077 regcache_cooked_read_unsigned.
6078
6079 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6080
6081 * m68hc11-tdep.c (m68hc11_gdbarch_init): Set int, double and long
6082 double sizes according to ELF ABI flags.
6083 (gdbarch_tdep): Record elf_flags.
6084
6085 2002-08-13 Stephane Carrez <stcarrez@nerim.fr>
6086
6087 * m68hc11-tdep.c (M6812_OP_PSHX, M6812_OP_PSHY): New defines.
6088 (m6812_prolog): They can appear in 68HC12 function prologue.
6089 (m68hc11_frame_chain): Cleanup.
6090
6091 2002-08-12 Andrew Cagney <cagney@redhat.com>
6092
6093 * i386-tdep.h (i386_register_byte, i386_register_raw_size): Delete
6094 declarations.
6095 * i386-linux-tdep.c (i386_linux_register_byte): Delete function.
6096 (i386_linux_register_raw_size): Delete function.
6097 (i386_linux_init_abi): Update.
6098 * i386-tdep.c (i386_register_raw_size): Delete function.
6099 (i386_register_byte): Delete function.
6100 (i386_gdbarch_init): Update.
6101 (i386_register_size): Delete array.
6102 (i386_register_offset): Delete array.
6103
6104 * config/i386/tm-symmetry.h (REGISTER_BYTE): Delete macro.
6105 (REGISTER_RAW_SIZE): Delete macro.
6106 * config/i386/tm-ptx.h (REGISTER_RAW_SIZE): Delete macro.
6107 (REGISTER_BYTE): Delete macro.
6108
6109 2002-08-11 Aidan Skinner <aidan@velvet.net>
6110
6111 * ada-lang.c (ada_lookup_partial_symbol)
6112 (to_fixed_variant_branch_type) (find_line_in_linetable): Fix
6113 prototype names so that grep ^func works properly.
6114
6115 * ada-lang.c (ada_array_element_type)
6116 (ada_lookup_partial_symbol): Fix typos in parameter list.
6117
6118 * ada-valprint.c (val_print_packed_array_elements) (ada_val_print_1):
6119 Fix prototype names so that grep ^func works properly.
6120
6121 2002-08-10 Andrew Cagney <cagney@redhat.com>
6122 Elena Zannoni <ezannoni@redhat.com>
6123 Martin M. Hunt <hunt@redhat.com>
6124
6125 * gdbtypes.c (build_builtin_type_vec128): Set the vector bit.
6126 (build_builtin_type_vec128i): Set the vector bit.
6127 * gdbtypes.h (builtin_type_vec64, builtin_type_vec64i): Declare.
6128 * gdbtypes.c (builtin_type_vec64, builtin_type_vec64i): Define.
6129 (build_builtin_type_vec64): New function.
6130 (build_builtin_type_vec64i): New function.
6131 (build_gdbtypes): Initialize builtin_type_vec64 and
6132 builtin_type_vec64i.
6133
6134 2002-08-09 Andrew Cagney <cagney@redhat.com>
6135
6136 * regcache.c (regcache_dump): Compare the register offset
6137 with REGISTER_BYTE.
6138 * arch-utils.c (generic_register_byte): New function.
6139 * arch-utils.h (generic_register_byte): Declare.
6140 * gdbarch.sh (REGISTER_BYTE): Default to generic_register_byte.
6141 * gdbarch.h, gdbarch.c: Regenerate.
6142
6143 2002-08-09 Andrew Cagney <cagney@redhat.com>
6144
6145 * regcache.c: Include "gdbcmd.h"
6146 (_initialize_regcache): Add commands "maintenance print
6147 registers", "maintenance print raw-registers" and "maintenance
6148 print cooked-registers".
6149 (enum regcache_dump_what): Define.
6150 (dump_endian_bytes): New function.
6151 (regcache_dump): New function.
6152 (regcache_print): New function.
6153 (maintenance_print_registers): New function.
6154 (maintenance_print_raw_registers): New function.
6155 (maintenance_print_cooked_registers): New function.
6156 * Makefile.in (regcache.o): Update dependencies.
6157
6158 2002-08-09 Michael Snyder <msnyder@redhat.com>
6159
6160 * mips-tdep.c (ROUND_DOWN, ROUND_UP): Move to global scope.
6161 (mips_push_arguments): Correct some comments. Use paddr_nz
6162 for printing addresses in debug output. Replace static
6163 allocation using MAX_REGISTER_RAW_SIZE with alloca.
6164 (mips_n32n64_push_arguments): New function, cloned from
6165 mips_push_arguments and tuned for the n32/n64 ABI.
6166 (mips_push_register): Buffer needs dynamic allocation.
6167 (mips_print_register): Ditto.
6168 (do_gp_register_row): Ditto.
6169 (mips_store_return_value): Ditto.
6170 (mips_gdbarch_init): Set gdbarch_push_arguments per ABI.
6171
6172 2002-08-09 Don Howard <dhoward@redhat.com>
6173
6174 * memattr.c (mem_info_command): Print special case of upper bound
6175 as max CORE_ADDR + 1.
6176
6177 2002-08-08 Michael Snyder <msnyder@redhat.com>
6178
6179 * mips-tdep.c (mips_n32n64_use_struct_convention): N32 only
6180 returns structs by ref if they're too big to fit in two registers.
6181
6182 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6183
6184 * mips-tdep.c (mips_init_extra_frame_info): Initialize SP_REGNUM's
6185 saved regs value.
6186 (read_next_frame_reg): Call FRAME_INIT_SAVED_REGS instead of
6187 mips_find_saved_regs().
6188 (mips_pop_frame): Likewise.
6189
6190 2002-08-09 Kevin Buettner <kevinb@redhat.com>
6191
6192 * blockframe.c (frame_saved_regs_register_unwind): Revise
6193 PC_IN_CALL_DUMMY assertion to only apply when generic dummy
6194 frames are in use.
6195
6196 2002-08-09 Grace Sainsbury <graces@redhat.com>
6197
6198 * remote.c: (remote_wait, remote_async_wait): Add check for awatch
6199 T-packets; the 'a' is not taken as a register number.
6200 (remote_check_watch_resources, remote_stopped_by_watchpoint)
6201 (remote_stopped_data_address): New functions; add to target
6202 vector.
6203 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint): Change
6204 prototypes to match other implementations of this
6205 function. replace integer argument with pointer -- the length
6206 field in the Z-packet is the length of what is pointed to or 1 if
6207 pointer is null. Add to target vector.
6208 (remote_insert_watchpoint, remote_remove_watchpoint): Add to
6209 target vector.
6210
6211 From Mark Salter:
6212 * remote.c (remote_wait): Add support to extract optional
6213 watchpoint information from T-packet. Ignore unrecognized
6214 optional info in T-packet.
6215 (remote_async_wait): Ditto.
6216
6217 2002-08-09 Corinna Vinschen <vinschen@redhat.com>
6218
6219 * cli/cli-dump.c: Change fopen modes to use binary open modes
6220 as defined in include/fopen-bin.h throughout.
6221
6222 2002-08-08 Michael Snyder <msnyder@redhat.com>
6223
6224 * mips-tdep.c: Minor whitespace and indentation clean-ups.
6225
6226 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6227
6228 * doublest.c (store_floating): Avoid floatformat_from_doublest()
6229 assertion failure by returning early after a warning.
6230
6231 2002-08-08 Kevin Buettner <kevinb@redhat.com>
6232
6233 * mips-tdep.c (mips_find_saved_regs): Make static.
6234 (mips_frame_init_saved_regs): New function.
6235 (mips_gdbarch_init): Setup FRAME_INIT_SAVED_REGS method.
6236 * config/mips/tm-mips.h (FRAME_INIT_SAVED_REGS): Delete macro.
6237 (mips_find_saved_regs): Delete declaration.
6238
6239 2002-08-08 Grace Sainsbury <graces@redhat.com>
6240
6241 * remote.c (remote_wait, remote_async_wait): Change
6242 thread_num from int to ULONGEST.
6243 (unpack_varlen_hex): Change result parameter from
6244 int * to ULONGEST *.
6245
6246 2002-08-08 Andrew Cagney <ac131313@redhat.com>
6247
6248 * configure.tgt: Replace powerpc-*-sysv*, powerpc-*-elf*,
6249 powerpcle-*-eabi*, powerpcle-*-sysv* and powerpcle-*-elf* with
6250 powerpc*-*-*.
6251 * MAINTAINERS: Remove redundant rs6000-ibm-aix4.1 target.
6252
6253 2002-08-08 Andrew Cagney <cagney@redhat.com>
6254
6255 * gcore.c (override_derive_stack_segment): Delete variable.
6256 (preempt_derive_stack_segment): Delete function.
6257 (derive_stack_segment): Delete function.
6258 (default_derive_stack_segment): Renamed to derive_stack_segment.
6259 (override_derive_heap_segment): Delete variable.
6260 (preempt_derive_heap_segment): Delete function.
6261 (derive_heap_segment): Delete function.
6262 (default_derive_heap_segment): Rename to derive_heap_segment.
6263
6264 2002-08-06 Michael Snyder <msnyder@redhat.com>
6265
6266 * config/mips/tm-mips.h: Remove #define USE_STRUCT_CONVENTION.
6267 * mips-tdep.c (mips_EABI_use_struct_convention,
6268 mips_OABI_use_struct_convention, mips_NABI_use_struct_convention):
6269 New functions. (mips_use_struct_convention): Delete.
6270 (mips_gdbarch_init): set use_gdbarch_convention.
6271
6272 2002-08-06 Michael Snyder <msnyder@redhat.com>
6273
6274 * mips-tdep.c: gdbarch-ify reg_struct_has_addr.
6275 (mips_eabi_reg_struct_has_addr, mips_n32n64_reg_struct_has_addr,
6276 mips_o32_reg_struct_has_addr): New functions.
6277 (mips_gdbarch_init): Set gdbarch reg_struct_has_addr.
6278
6279 2002-08-07 Andrew Cagney <ac131313@redhat.com>
6280
6281 * regcache.c (pseudo_register): Delete function.
6282 (fetch_register): Delete function.
6283 (store_register): Delete function.
6284 (regcache_raw_read, legacy_read_register_gen): Use
6285 target_fetch_registers instead of fetch_register.
6286 (legacy_write_register_gen, regcache_raw_write): Use
6287 target_store_register instead of store_register.
6288 (write_register_bytes): Ditto.
6289
6290 * gdbarch.sh (FETCH_PSEUDO_REGISTER): Delete.
6291 (STORE_PSEUDO_REGISTER): Delete.
6292 * gdbarch.h, gdbarch.c: Regenerate.
6293
6294 2002-08-06 Corinna Vinschen <vinschen@redhat.com>
6295
6296 * cli/cli-dump.c (add_dump_command): Explicitely use "b" flag to
6297 write dump file binary.
6298
6299 2002-08-05 Michael Snyder <msnyder@redhat.com>
6300
6301 * mips-tdep.c (mips_find_saved_regs): Adjust stack according
6302 to MIPS_SAVED_REGSIZE, not GDB_TARGET_IS_MIPS64. Enhance comment.
6303 (mips_gdbarch_init): Set N32 target to be mips64.
6304
6305 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6306
6307 * frame.c (find_saved_register): Break out of loop once saved
6308 register address is found. Don't mention sparc in loop comment
6309 anymore.
6310
6311 2002-08-06 Kevin Buettner <kevinb@redhat.com>
6312
6313 * mips-tdep.c (mips_gdbarch_init): For the N32 ABI, set
6314 mips_default_saved_regsize to 8.
6315
6316 2002-08-06 Andrew Cagney <ac131313@redhat.com>
6317
6318 * gcore.c: Do not include <sys/procfs.h>.
6319 * Makefile.in (gcore.o): Update dependencies.
6320
6321 2002-08-06 Andrew Cagney <cagney@redhat.com>
6322
6323 * configure.tgt: Make arc-*-* obsolete.
6324 * NEWS: Mention that arc-*-* has been identifed as obsolete.
6325 * MAINTAINERS: Make arc-elf obsolete.
6326 * arc-tdep.c: Make file obsolete.
6327 * config/arc/arc.mt: Ditto.
6328 * config/arc/tm-arc.h: Ditto.
6329
6330 2002-08-05 Theodore A. Roth <troth@verinet.com>
6331
6332 * avr-tdep.c (avr_skip_prologue): Fix to return the correct pc.
6333
6334 2002-08-05 Andrew Cagney <ac131313@redhat.com>
6335
6336 * mcore-tdep.c (mcore_gdbarch_init): Use
6337 generic_unwind_get_saved_register instead of
6338 generic_get_saved_register.
6339 * v850-tdep.c (v850_gdbarch_init): Ditto.
6340 * frv-tdep.c (frv_gdbarch_init): Ditto.
6341 * mn10300-tdep.c (mn10300_gdbarch_init): Ditto.
6342 * s390-tdep.c (s390_gdbarch_init): Ditto.
6343 * d10v-tdep.c (d10v_gdbarch_init): Ditto.
6344 * config/mn10200/tm-mn10200.h (GET_SAVED_REGISTER): Ditto.
6345 * config/h8300/tm-h8300.h (GET_SAVED_REGISTER): Ditto.
6346
6347 2002-08-05 Joel Brobecker <brobecker@gnat.com>
6348
6349 * objfiles.h: Add missing #include "symfile.h"
6350
6351 * Makefile.in (objfiles_h): Add dependency on symfile.h and dependents.
6352
6353 2002-08-04 Andrew Cagney <ac131313@redhat.com>
6354
6355 From 2002-08-01 david carlton <carlton@math.stanford.edu>:
6356 * hpread.c (hpread_read_struct_type): Deleted superfluous setting
6357 of FIELD_BITSIZE.
6358
6359 2002-08-04 Daniel Jacobowitz <drow@mvista.com>
6360
6361 * NEWS: Cleanup and nitpick.
6362
6363 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6364
6365 * NEWS: Cleanup. Use *-linux*-gnu*. Only use `*' for headings.
6366
6367 2002-08-03 Andrew Cagney <ac131313@redhat.com>
6368
6369 * Makefile.in (gdbtk-bp.o): Update dependencies.
6370 (gdbtk-register.o): Ditto.
6371 (gdbtk-varobj.o): Ditto.
6372
6373 2002-08-03 Andrew Cagney <cagney@redhat.com>
6374
6375 * m68hc11-tdep.c (m68hc11_pseudo_register_read): Replace
6376 m68hc11_fetch_pseudo_register.
6377 (m68hc11_pseudo_register_write): Replace
6378 m68hc11_store_pseudo_register.
6379 (m68hc11_gdbarch_init): Update.
6380
6381 Fri Aug 2 15:53:50 2002 Andrew Cagney <cagney@redhat.com>
6382
6383 * gdbarch.sh: Include "gdb_string.h".
6384 * gdbarch.c: Regenerate.
6385
6386 * regcache.c: Include "gdb_string.h".
6387 * ax-general.c: Ditto.
6388 * varobj.c: Ditto.
6389 * std-regs.c: Ditto.
6390 * fbsd-proc.c: Ditto.
6391 * thread.c: Ditto.
6392
6393 * Makefile.in (regcache.o): Update dependencies.
6394 (thread.o, gdbarch.o): Ditto.
6395 (ax-general.o, gdbarch.o): Ditto.
6396 (varobj.o, std-regs.o): Ditto.
6397 (fbsd-proc.o): Specify dependencies.
6398
6399 2002-08-02 Andrew Cagney <cagney@redhat.com>
6400
6401 * regcache.c (regcache_cooked_read): Rename rawnum parameter to
6402 regnum.
6403 (regcache_cooked_write): Ditto.
6404
6405 2002-08-02 Andrew Cagney <ac131313@redhat.com>
6406
6407 * regcache.c (regcache_cooked_read): New function.
6408 (regcache_cooked_write): New function.
6409 (read_register_gen): Rewrite using regcache_cooked_read.
6410 (write_register_gen): Rewrite using regcache_cooked_write.
6411
6412 * regcache.h (regcache_cooked_read, regcache_cooked_write):
6413 Declare.
6414
6415 2002-08-02 Andrew Cagney <cagney@redhat.com>
6416
6417 * gdbarch.sh (pseudo_register_read, pseudo_register_write):
6418 Replace the architecture methods register_read and register_write.
6419 * gdbarch.h, gdbarch.c: Regenerate.
6420 * regcache.c (init_regcache_descr): Update.
6421 (read_register_gen): Update.
6422 (write_register_gen): Update.
6423 (supply_register): Update comment.
6424
6425 * sh-tdep.c (sh_gdbarch_init): Update.
6426 (sh_pseudo_register_read, sh64_pseudo_register_read): Add
6427 `regcache' and `gdbarch' parameters. Make `buffer' a void
6428 pointer. Update code.
6429 (sh_pseudo_register_write, sh64_pseudo_register_write): Add
6430 `regcache' and `gdbarch' parameters. Make `buffer' a constant
6431 void pointer. Update code.
6432 (sh64_register_write): Delete.
6433 (sh4_register_read): Delete.
6434 (sh64_register_read): Delete.
6435 (sh4_register_write): Delete.
6436 (sh_sh4_register_convert_to_raw): Make `from' parameter a constant
6437 void pointer, `to' parameter a void pointer.
6438 (sh_sh64_register_convert_to_raw): Ditto.
6439
6440 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6441
6442 * mips-tdep.c (mips_register_virtual_type): Use architecture
6443 invariant return values.
6444
6445 2002-08-01 Andrew Cagney <cagney@redhat.com>
6446
6447 * linux-proc.c: Include "gdb_string.h".
6448 * Makefile.in (linux-proc.o): Update dependency list.
6449
6450 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6451
6452 * mips-tdep.c (mips_gdbarch_init): Add comments. Fix typo in
6453 comment.
6454
6455 2002-08-01 Grace Sainsbury <graces@redhat.com>
6456
6457 * target.h: Add to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6458 to_insert_watchpoint, to_remove_watchpoint,
6459 to_stopped_by_watchpoint, to_stopped_data_address,
6460 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint to
6461 target vecctor. Define their corresponding macros so they call
6462 them.
6463
6464 * target.c: Add default and debug versions of for
6465 to_insert_hw_breakpoint, to_remove_hw_breakpoint,
6466 to_insert_watchpoint, to_remove_watchpoint,
6467 to_stopped_by_watchpoint, to_stopped_data_address,
6468 to_region_size_ok_for_hw_watchpoint, to_can_use_hw_breakpoint.
6469
6470 2002-08-01 Kevin Buettner <kevinb@redhat.com>
6471
6472 * mips-tdep.c (mips_register_virtual_type): New function.
6473 (mips_gdbarch_init): Register mips_register_virtual_type()
6474 with gdbarch machinery.
6475 * config/mips/tm-irix6.h (mips/tm-bigmips64.h): Include
6476 this file instead of tm-bigmips.h.
6477 (MIPS_REGSIZE): Delete this macro.
6478 (REGISTER_VIRTUAL_TYPE): Delete macro. Undef macro so that
6479 multiarch version in mips-tdep.c will be found.
6480
6481 2002-08-01 Andrew Cagney <cagney@redhat.com>
6482
6483 * NEWS: Menion that CHILL has been made obsolete.
6484
6485 * gdbtypes.c (chill_varying_type): Make chill references obsolete.
6486 * stabsread.c (read_range_type): Ditto.
6487 * gdbtypes.h: Ditto.
6488 * language.c (binop_type_check): Ditto.
6489 (binop_result_type): Ditto.
6490 (integral_type): Ditto.
6491 (character_type): Ditto.
6492 (string_type): Ditto.
6493 (boolean_type): Ditto.
6494 (structured_type): Ditto.
6495 (lang_bool_type): Ditto.
6496 (binop_type_check): Ditto.
6497 * language.h (_LANG_chill): Ditto.
6498 * dwarfread.c (set_cu_language): Ditto.
6499 * dwarfread.c (CHILL_PRODUCER): Ditto.
6500 * dwarfread.c (handle_producer): Ditto.
6501 * expression.h (enum exp_opcode): Ditto.
6502 * eval.c: Ditto for comments.
6503 * typeprint.c (typedef_print) [_LANG_chill]: Ditto.
6504 * expprint.c (print_subexp): Ditto.
6505 (print_subexp): Ditto.
6506 * valops.c (value_cast): Ditto.
6507 (search_struct_field): Ditto.
6508 * value.h (COERCE_VARYING_ARRAY): Ditto.
6509 * symfile.c (init_filename_language_table): Ditto.
6510 (add_psymbol_with_dem_name_to_list): Ditto.
6511 * valarith.c (value_binop): Ditto.
6512 (value_neg): Ditto.
6513 * valops.c (value_slice): Ditto.
6514 * symtab.h (union language_specific): Ditto.
6515 (SYMBOL_INIT_LANGUAGE_SPECIFIC): Ditto.
6516 (SYMBOL_DEMANGLED_NAME): Ditto.
6517 (SYMBOL_CHILL_DEMANGLED_NAME): Ditto.
6518 * defs.h (enum language): Ditto.
6519 * symtab.c (got_symtab): Ditto.
6520 * utils.c (fprintf_symbol_filtered): Ditto.
6521
6522 * ch-typeprint.c: Make file obsolete.
6523 * ch-valprint.c: Make file obsolete.
6524 * ch-lang.h: Make file obsolete.
6525 * ch-exp.c: Make file obsolete.
6526 * ch-lang.c: Make file obsolete.
6527
6528 * Makefile.in (FLAGS_TO_PASS): Do not pass CHILL or CHILLFLAGS or
6529 CHILL_LIB.
6530 (TARGET_FLAGS_TO_PASS): Ditto.
6531 (CHILLFLAGS): Obsolete.
6532 (CHILL): Obsolete.
6533 (CHILL_FOR_TARGET): Obsolete.
6534 (CHILL_LIB): Obsolete.
6535 (SFILES): Remove ch-exp.c, ch-lang.c, ch-typeprint.c and
6536 ch-valprint.c.
6537 (HFILES_NO_SRCDIR): Remove ch-lang.h.
6538 (COMMON_OBS): Remove ch-valprint.o, ch-typeprint.o, ch-exp.o and
6539 ch-lang.o.
6540 (ch-exp.o, ch-lang.o, ch-typeprint.o, ch-valprint.o): Delete
6541 targets.
6542
6543 2002-07-31 Joel Brobecker <brobecker@gnat.com>
6544
6545 * dwarf2read.c (set_cu_language): Add handler for LANG_Ada95.
6546 This does not change anything at the moment, but will be helpful
6547 later when full Ada support is integrated.
6548
6549 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6550
6551 * mips-tdep.c (_initialize_mips_tdep): Add "n64" to "set mips abi"
6552 help message.
6553
6554 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6555
6556 * mips-tdep.c (mips_push_arguments): Fetch gdbarch_tdep struct
6557 and save it in a local variable. Use variable in later test.
6558
6559 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6560
6561 * mips-tdep.c (mips_find_abi_section): Add N64 ABI recognition
6562 test. (Thanks to Daniel Jacobowitz.)
6563
6564 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6565
6566 * mips-tdep.c (enum mips_abi): Add MIPS_ABI_N64.
6567 (mips_abi_strings): Add "n64".
6568 (mips_gdbarch_init): Add test for n64 abi. Add MIPS_ABI_N64 case.
6569
6570 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6571
6572 * config/mips/tm-irix6.h (MIPS_REGSIZE): Define to be 8.
6573 (REGISTER_VIRTUAL_TYPE): Some registers are now 64 bits wide.
6574
6575 2002-07-31 Kevin Buettner <kevinb@redhat.com>
6576
6577 * utils.c (host_pointer_to_address, address_to_host_pointer):
6578 Use gdb_assert() instead of explicit call to internal_error().
6579
6580 2002-07-30 Kevin Buettner <kevinb@redhat.com>
6581
6582 * Makefile.in (rs6000-nat.o): Update dependencies.
6583
6584 From Nicholas Duffek:
6585 * Makefile.in (ALLDEPFILES): Add aix-thread.c.
6586 (aix-thread.o): New rule.
6587 * configure.host (gdb_host): Set to aix432 on AIX 4.3.2+.
6588 * config/powerpc/aix432.mh: New file.
6589
6590 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6591
6592 * ppc-linux-tdep.c (ELF_NGREG, ELF_NFPREG, ELF_NVRREG)
6593 (ELF_FPREGSET_SIZE, ELF_GREGSET_SIZE): New enums.
6594 (fetch_core_registers, ppc_linux_supply_gregset)
6595 (ppc_linux_supply_fpregset): New functions.
6596 (ppc_linux_regset_core_fns): New.
6597 (_initialize_ppc_linux_tdep): Call add_core_fns.
6598 * ppc-tdep.h: Add prototypes for ppc_linux_supply_fpregset
6599 and ppc_linux_supply_gregset.
6600 * ppc-linux-nat.c (supply_gregset): Call ppc_linux_supply_gregset.
6601 (supply_fpregset): Call ppc_linux_supply_fpregset.
6602 * config/powerpc/linux.mh (NATDEPFILES): Remove core-regset.o and
6603 corelow.o.
6604 * config/powerpc/linux.mt (TDEPFILES): Add corelow.o.
6605
6606 2002-07-30 Daniel Jacobowitz <drow@mvista.com>
6607
6608 * symtab.c (lookup_symbol): Demangle before lowercasing.
6609
6610 2002-07-30 Andrew Cagney <ac131313@redhat.com>
6611
6612 * symtab.h: Replace #include "gdb_obstack.h" with opaque
6613 declaration.
6614 * cli/cli-cmds.c, cli/cli-script.c: Include "gdb_string.h".
6615 * gnu-v3-abi.c, arc-tdep.c, cli/cli-decode.c: Ditto.
6616 * avr-tdep.c, mon960-rom.c, i960-tdep.c: Ditto.
6617 * arch-utils.c, cli/cli-setshow.c: Unconditionally include
6618 "gdb_string.h".
6619 * Makefile.in (cli-script.o, cli-cmds.o): Update dependencies.
6620 (gnu-v3-abi.o, cli-setshow.o, i960-tdep.o): Ditto.
6621 (cli-decode.o, mi-cmd-var.o, mi-cmd-disas.o): Ditto.
6622 (avr-tdep.o, mon960-rom.o): Ditto.
6623 (aout_stabs_gnu_h): Define.
6624 (symtab_h): Remove $(gdb_obstack_h).
6625
6626 2002-07-30 Jim Blandy <jimb@redhat.com>
6627
6628 Patch from David Carlton <carlton@math.stanford.edu>:
6629 * gdbinit.in: Move the `dir' commands that add GDB's own source
6630 directory to the search path to the end, so that the `gdb' source
6631 directory will be searched first.
6632
6633 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6634
6635 * gdb_obstack.h: New file.
6636 * symtab.h: Include "gdb_obstack.h" instead of "obstack.h".
6637 (obstack_chunk_alloc, obstack_chunk_free): Delete macros.
6638 * objfiles.h: Include "gdb_obstack.h".
6639 * Makefile.in (gdb_obstack_h): Define.
6640 (symtab_h): Add $(gdb_obstack_h).
6641 (objfiles_h): Add $(gdb_obstack_h).
6642
6643 * objfiles.c: Include "gdb_obstack.h" instead of "obstack.h".
6644 * macrotab.c, cp-valprint.c, dbxread.c: Ditto.
6645 * ch-typeprint.c, ch-valprint.c, dstread.c: Ditto.
6646 * macroexp.c, p-typeprint.c, stabsread.c: Ditto.
6647 * symtab.c, f-typeprint.c, mdebugread.c: Ditto.
6648 * p-valprint.c, symmisc.c, typeprint.c: Ditto.
6649 * symfile.c, coffread.c, c-typeprint.c: Ditto.
6650 * buildsym.c, bcache.c, ada-typeprint.c: Ditto.
6651
6652 * Makefile.in (bcache.o): Update dependencies.
6653 (buildsym.o, c-typeprint.o, ch-typeprint.o): Ditto.
6654 (ch-valprint.o, coffread.o, cp-valprint.o): Ditto.
6655 (dbxread.o, dstread.o, f-typeprint.o): Ditto.
6656 (objfiles.o, p-typeprint.o, p-valprint.o): Ditto.
6657 (stabsread.o, symfile.o, symmisc.o): Ditto.
6658 (symtab.o, typeprint.o, macroexp.o): Ditto.
6659 (macrotab.o, mdebugread.o): Ditto.
6660 (f_lang_h, coff_sym_h, coff_symconst_h): Define.
6661 (coff_ecoff_h, aout_aout64_h): Define.
6662 (aout_stabs_gnu_h, libaout_h): Define.
6663
6664 2002-07-29 Andrew Cagney <cagney@redhat.com>
6665
6666 * regcache.c (struct regcache_descr): Rename nr_registers to
6667 nr_cooked_registers. Revise comments describing the structure
6668 member fields.
6669 (init_regcache_descr): Update.
6670 (init_legacy_regcache_descr): Update.
6671 (read_register_gen, write_register_gen): When a cooked register in
6672 the raw register range, directly access the value from the raw
6673 register cache.
6674
6675 2002-07-29 Andrew Cagney <ac131313@redhat.com>
6676
6677 * z8k-tdep.c: Do not include "obstack.h".
6678 * h8300-tdep.c, h8500-tdep.c: Ditto.
6679 * m68hc11-tdep.c, sh-tdep.c: Ditto.
6680 * valprint.c, v850-tdep.c: Ditto.
6681 * d10v-tdep.c, mn10300-tdep.c: Ditto.
6682 * mn10200-tdep.c: Ditto.
6683
6684 * Makefile.in (z8k-tdep.o): Update dependencies.
6685 (m68hc11-tdep.o, valprint.o): Ditto.
6686 (v850-tdep.o, d10v-tdep.o): Ditto.
6687 (mn10300-tdep.o, sparc-tdep.o): Ditto.
6688 (sh-tdep.o, h8500-tdep.o, h8300-tdep.o): Ditto.
6689 (m32r-tdep.o, mn10200-tdep.o): Specify dependencies.
6690 (sh_opc_h, gdb_sim_sh_h): Define.
6691 (elf_sh_h, elf_bfd_h): Define.
6692 (opcode_m68hc11_h): Define.
6693 (OPCODES_SRC, OPCODES_DIR): define.
6694 (OPCODES): Use $(OPCODES_DIR).
6695 (gdb_sim_d10v_h): Rename sim_d10v_h.
6696 (gdb_sim_arm_h): Rename sim_arm_h.
6697
6698 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6699
6700 * utils.c (host_pointer_to_address, address_to_host_pointer):
6701 Change internal_error() message to indicate function responsible
6702 for the error.
6703
6704 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6705
6706 * ui-out.c (ui_out_field_core_addr): Remove unnecessary cast in
6707 calls to local_hex_string_custom().
6708
6709 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6710
6711 * irix5-nat.c: Move IRIX shared library support from here...
6712 * solib-irix.c: ...to here. Revised substantially to work with
6713 generic solib framework.
6714
6715 * osabi.h (gdb_osabi): Add new enum constant GDB_OSABI_IRIX.
6716 * osabi.c (gdb_osabi_names): Add corresponding string for Irix.
6717 * mips-irix-tdep.c: New file.
6718
6719 * Makefile.in (ALLDEPFILES): Add mips-irix-tdep.c and solib-irix.c.
6720 (mips-irix-tdep.o, solib-irix.o): New rules.
6721 * config/mips/irix5.mt (TDEPFILES): Add mips-irix-tdep.o, solib.o,
6722 solib-irix.o.
6723 * config/mips/irix6.mt (TDEPFILES): Likewise.
6724 * config/mips/irix6.mh (NATDEPFILES): Remove solib.o.
6725
6726 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6727
6728 * aix-thread.c (coff/internal.h, bfd/libcoff.h, pthread.h): Remove
6729 disabled (via ``#if 0'') includes.
6730
6731 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6732
6733 * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
6734 (fetch_regs_user_thread, fetch_regs_kernel_thread, fill_sprs64)
6735 (fill_sprs32, store_regs_user_thread, store_regs_kernel_thread):
6736 Add support for the fpscr register.
6737 * rs6000-nat.c (regmap, fetch_inferior_registers)
6738 (store_inferior_registers, fetch_core_registers): Likewise.
6739
6740 2002-07-26 Kevin Buettner <kevinb@redhat.com>
6741
6742 * rs6000-nat.c (language.h): Include.
6743 (special_regs): Delete this array.
6744 (regmap): New function.
6745 (fetch_register, store_register): Use regmap() to map gdb
6746 register numbers to ptrace register numbers. Also, use
6747 outputs from regmap() to make decisions regarding type of
6748 ptrace() call to make. In particular, don't compare against
6749 FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6750 (fetch_inferior_registers, store_inferior_registers): Where
6751 possible, obtain register numbers from tdep struct. Don't
6752 refer to FIRST_UISA_SP_REGNUM or LAST_UISA_SP_REGNUM.
6753 * config/rs6000/tm-rs6000.h (FIRST_UISA_SP_REGNUM)
6754 (LAST_UISA_SP_REGNUM): Delete.
6755
6756 2002-07-25 Kevin Buettner <kevinb@redhat.com>
6757
6758 * rs6000-nat.c (ppc-tdep.h): Include.
6759 (fetch_registers, store_register, fetch_core_registers): Don't
6760 access registers[] directly. Instead, use supply_register() or
6761 regcache_collect() as appropriate.
6762 (find_toc_address): Format hex address with local_hex_string().
6763
6764 2002-07-25 Andrew Cagney <ac131313@redhat.com>
6765
6766 * config/djgpp/fnchange.lst: Rename bfd/elf32-fr30.c and
6767 bfd/elf32-frv.c.
6768
6769 2002-07-24 Tom Tromey <tromey@redhat.com>
6770
6771 * jv-exp.y: Marked all strings with _().
6772 (ClassInstanceCreationExpression, ArrayCreationExpression): Use
6773 internal_error.
6774 (MethodInvocation, CastExpression, parse_number, yyerror,
6775 java_type_from_name, push_expression_name, yylex): Typo fixes.
6776
6777 2002-07-24 Daniel Jacobowitz <drow@mvista.com>
6778
6779 * ui-file.c (struct tee_file, tee_file_new, tee_file_delete)
6780 (tee_file_flush, tee_file_write, tee_file_fputs)
6781 (tee_file_isatty): New.
6782 * ui-file.h (tee_file_new): Add prototype.
6783
6784 2002-07-24 Aidan Skinner <aidan@velvet.net>
6785
6786 * ada-lang.c: Change k&r style function definitions to prototyped
6787 form.
6788 * ada-typeprint.c: Change k&r style function definitions to prototyped
6789 form.
6790 * ada-valprint.c: Change k&r style function definitions to prototyped
6791 form.
6792
6793 2002-07-24 Andrew Cagney <cagney@redhat.com>
6794
6795 * README: Remove reference to remote-bug.
6796 * Makefile.in (ALLDEPFILES): Remove m88k-nat.c, m88k-tdep.c and
6797 remote-bug.c.
6798 (m88k-nat.o): Delete rule.
6799 (m88k-tdep.o): Delete rule.
6800 (remote-bug.o): Delete rule.
6801 * MAINTAINERS: Mark as obsolete.
6802 * elfread.c (elf_symtab_read): Mention that m88k is obsolete.
6803 * m88k-tdep.c: Make file obsolete.
6804 * config/m88k/m88k.mh: Ditto.
6805 * config/m88k/delta88v4.mh: Ditto.
6806 * config/m88k/delta88v4.mt: Ditto.
6807 * config/m88k/delta88.mt: Ditto.
6808 * config/m88k/delta88.mh: Ditto.
6809 * remote-bug.c: Ditto.
6810 * config/m88k/tm-delta88.h: Ditto.
6811 * config/m88k/nm-delta88v4.h: Ditto.
6812 * config/m88k/xm-delta88.h: Ditto.
6813 * config/m88k/xm-dgux.h: Ditto.
6814 * config/m88k/tm-m88k.h: Ditto.
6815 * config/m88k/nm-m88k.h: Ditto.
6816 * config/m88k/tm-delta88v4.h: Ditto.
6817 * m88k-nat.c: Ditto.
6818 * cxux-nat.c: Ditto.
6819 * configure.host: Make m88*-motorola-sysv4*, m88*-motorola-sysv*
6820 and m88*-*-* obsolete.
6821 * configure.tgt: Make m88*-motorola-sysv4*, m88*-motorola-* and
6822 m88*-*-* obsolete.
6823
6824 2002-07-24 Andrew Cagney <cagney@redhat.com>
6825
6826 * findvar.c (extract_unsigned_integer): Make `addr' parameter
6827 constant. Same for local pointer variables.
6828 (extract_signed_integer): Ditto.
6829 * defs.h (extract_unsigned_integer): Update.
6830 (extract_signed_integer): Update.
6831
6832 2002-07-24 Andrew Cagney <cagney@redhat.com>
6833
6834 * regcache.c (regcache_raw_write): Change buf parameter to a
6835 constant void pointer.
6836 (regcache_raw_read): Change buf parameter to a void pointer.
6837 (legacy_write_register_gen): Change myaddr parameter a constant
6838 void pointer.
6839 (supply_register): Change val parameter to a const void pointer.
6840 * regcache.h (regcache_raw_write): Update declaration.
6841 (regcache_raw_read): Update declaration.
6842 (supply_register): Update declaration.
6843
6844 2002-07-24 Tom Tromey <tromey@redhat.com>
6845
6846 * defs.h (gdb_readline_wrapper): Declare.
6847 * utils.c (prompt_for_continue): Use gdb_readline_wrapper.
6848 * tracepoint.c (read_actions): Use gdb_readline_wrapper.
6849 * top.c (gdb_readline_wrapper): New function.
6850 (command_line_input): Use it.
6851
6852 2002-07-24 Andrew Cagney <cagney@redhat.com>
6853
6854 * regcache.h (regcache_raw_read, regcache_raw_write): Replace
6855 regcache_read and regcache_write.
6856 (regcache_raw_read_as_address): Replace regcache_read_as_address.
6857 * regcache.c: Update.
6858 * sh-tdep.c (sh64_push_arguments): Update comment.
6859 (sh_pseudo_register_read): Update.
6860 (sh_pseudo_register_write): Update.
6861 (sh4_register_read): Update.
6862 (sh4_register_write): Update.
6863 (sh64_pseudo_register_read): Update.
6864 (sh64_pseudo_register_write): Update.
6865 (sh64_register_read): Update.
6866 (sh64_register_write): Update.
6867 * i386-tdep.c (i386_extract_return_value): Update.
6868 (i386_extract_struct_value_address): Update.
6869 (i386_extract_return_value): Update.
6870 * blockframe.c (generic_read_register_dummy): Update.
6871 (generic_call_dummy_register_unwind): Update
6872 * infrun.c (write_inferior_status_register): Update.
6873
6874 2002-07-23 Jim Blandy <jimb@redhat.com>
6875
6876 * parser-defs.h (expression_context_pc): Make this extern.
6877 (Thanks to Michael Snyder.)
6878
6879 2002-07-23 Andrew Cagney <ac131313@redhat.com>
6880
6881 GDB 5.2.1 released from 5.2 branch.
6882 * NEWS: Mention changes in 5.2.1 including addition of AVR target.
6883 * README: Update to mention 5.2.1.
6884
6885 2002-07-23 Mark Salter <msalter@redhat.com>
6886
6887 * remote.c (remote_read_bytes): Fix check for error.
6888
6889 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6890
6891 * aix-thread.c (language.h): Include.
6892 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
6893 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc):
6894 Print newlines at end of debug messages.
6895 (pdc_symbol_addrs, pdc_read_regs, pdc_write_regs, pdc_read_data)
6896 (pdc_write_data): Use local_hex_string() instead of %llx formats.
6897
6898 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6899
6900 * aix-thread.c (ppc-tdep.h): Include.
6901 (special_register_p): New function.
6902 (supply_sprs64, supply_sprs32, fill_sprs64, fill_sprs32)
6903 (store_regs_user_thread): Use register number information from
6904 gdbarch_tdep struct instead of hardcoded offsets relative to
6905 FIRST_UISA_SP_REGNUM.
6906 (fetch_regs_kernel_thread, store_regs_kernel_thread): Call
6907 special_register_p() instead of using FPLAST_REGNUM and
6908 LAST_UISA_SP_REGNUM as lower and upper bounds on the special
6909 register numbers. Also, don't assume that LAST_UISA_SP_REGNUM
6910 will be MQ's register number.
6911
6912 2002-07-22 Michael Snyder <msnyder@redhat.com>
6913
6914 * aix-thread.c (ops): Rename to aix_thread_ops.
6915 (base_ops): Rename to base_target.
6916 (ops_attach): Rename to aix_thread_attach.
6917 (ops_detach): Rename to aix_thread_detach.
6918 (ops_resume): Rename to aix_thread_detach.
6919 (ops_wait): Rename to aix_thread_wait.
6920 (ops_kill): Rename to aix_thread_kill.
6921 (init_ops): Rename to init_aix_thread_ops.
6922 (ops_fetch_register): Rename to aix_thread_fetch_register.
6923 (ops_store_register): Rename to aix_thread_store_register.
6924 (ops_mourn_inferior): Rename to aix_thread_mourn_inferior.
6925 (ops_thread_alive): Rename to aix_thread_thread_alive.
6926 (ops_extra_thread_info: Rename to aix_thread_extra_thread_info.
6927 (ops_pid_to_str): Rename to aix_thread_pid_to_str.
6928 (ops_xfer_memory): Rename to aix_thread_xfer_memory.
6929 (fetch_regs_lib): Rename to fetch_regs_user_thread.
6930 (fetch_regs_kern): Rename to fetch_regs_kernel_thread.
6931 (store_regs_lib): Rename to store_regs_user_thread.
6932 (store_regs_kern): Rename to store_regs_kernel_thread.
6933
6934 2002-07-22 Michael Snyder <msnyder@redhat.com>
6935
6936 * aix-thread.c (ops_prepare_to_store): Eliminate.
6937 (init_ops): Don't initialize ops.prepare_to_store.
6938 (store_regs_kern): Pre-fetch register buffers from child,
6939 because some registers may not be in the cache. Copy
6940 regs from register cache only if they are cached.
6941 (store_regs_lib): Copy regs from register cache only
6942 if they are cached.
6943 (fill_sprs32, (fill_sprs64, fill_fprs, fill_gprs32,
6944 fill_gprs64): Ditto.
6945
6946 2002-07-22 Kevin Buettner <kevinb@redhat.com>
6947
6948 * aix-thread.c (gdb_assert.h): Include.
6949 (fill_sprs64, fill_sprs32): Add selected asserts to make sure that
6950 register sizes (from register cache) match size of buffer holding
6951 register data.
6952 (fill_sprs32): Change parameter types to match those in the ptrace()
6953 buffer.
6954 (store_regs_lib): Likewise, but for 32-bit temporary variables.
6955 (ops_prepare_to_store): Rename loop variable ``i'' to ``regno''.
6956
6957 2002-07-22 Michael Snyder <msnyder@redhat.com>
6958
6959 * aix-thread.c (supply_sprs64): Cosmetic change.
6960 (supply_sprs32): Cosmetic change.
6961 (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs32): New funcs.
6962 (fill_sprs64): Use regcache_collect instead of read_register.
6963 (store_regs_lib): Use regcache_collect instead of
6964 read_register. Use fill_sprs32 instead of fill_sprs64,
6965 if debugging a 32-bit architecture.
6966 (store_regs_kern): Use fill_gprs64 etc. to pull the values
6967 out of the register cache, instead of passing a pointer into
6968 the register cache directly to ptrace. Use regcache_collect
6969 insteaad of read_register.
6970 (ops_prepare_to_store): Use target_read_registers instead
6971 of read_register_bytes.
6972
6973 2002-07-20 Aidan Skinner <aidan@velvet.net>
6974
6975 * MAINTAINERS: Add self under write after approval.
6976
6977 2002-07-20 Aidan Skinner <aidan@velvet.net>
6978
6979 * ada-tasks.c: Change k&r style function definitions to prototyped
6980 form.
6981
6982 2002-07-19 Andrew Cagney <ac131313@redhat.com>
6983
6984 * Makefile.in (x86-64-tdep.o): Add $(objfiles_h).
6985 * x86-64-tdep.c: Include "objfiles.h".
6986 (x86_64_gdbarch_init): Set in_solib_call_trampoline to
6987 in_plt_section. From 2002-07-18 Michal Ludvig <mludvig@suse.cz>.
6988
6989 2002-07-17 Michal Ludvig <michal@suse.cz>
6990
6991 * dwarf2cfi.c (execute_stack_op): Complain on unknown DW_OP_ value.
6992 (update_context): Initialise cfa variable.
6993
6994 2002-07-17 Michael Snyder <msnyder@redhat.com>
6995
6996 * aix-thread.c: Shorten some long lines.
6997 Bring comments into line with code spec.
6998
6999 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7000
7001 * infrun.c: Re-indent using gdb_indent.sh.
7002
7003 2002-07-18 Joel Brobecker <brobecker@gnat.com>
7004
7005 * infrun.c (handle_inferior_event): Remove unneeded extra brace.
7006 Leave the indentation temporarily untouched, to minimize the diffs.
7007
7008 2002-07-18 Elena Zannoni <ezannoni@redhat.com>
7009
7010 * stabsread.c: Make os9k sections of the code obsolete,
7011 for real this time.
7012 * stabsread.h: Make os9k sections of the code obsolete.
7013
7014 2002-07-18 Michal Ludvig <mludvig@suse.cz>
7015
7016 * linux-low.c (regsets_store_inferior_registers): Add free()
7017 at the end of a loop to prevent memory leak.
7018 * linux-x86-64-low.c (x86_64_regmap): Add CS, SS registers.
7019 (X86_64_NUM_GREGS): Count it from the size of x86_64_regmap.
7020 * config/sparc/tm-sp64linux.h: Make the rest of #endif
7021 line a comment.
7022 * Makefile.in (x86-64-linux-nat.o): Remove dependency on i387-tdep.h
7023
7024 2002-07-17 Jim Blandy <jimb@redhat.com>
7025
7026 * macrocmd.c (info_macro_command): Remove newline from error
7027 message.
7028
7029 2002-07-17 J"orn Rennecke <joern.rennecke@superh.com>
7030
7031 * sh-tdep.c (sh_dsp_register_sim_regno): New function.
7032 (sh_gdbarch_init): Use it for sh-dsp.
7033
7034 2002-07-16 Kevin Buettner <kevinb@redhat.com>
7035
7036 * dwarf2read.c (read_initial_length): Handle older, non-standard,
7037 64-bit DWARF2 format.
7038
7039 2002-07-16 Joel Brobecker <brobecker@gnat.com>
7040
7041 * proc-api.c: use HAVE_SYS_PROC_H macro to avoid including
7042 <sys/proc.h> when not available.
7043
7044 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7045
7046 * NEWS: Mention that the i[34]86-*-os9k has been made obsolete.
7047 * stabsread.c: Make os9k sections of the code obsolete.
7048 * configure.tgt: Make i[3456]86-*-os9k target obsolete.
7049 * config/i386/i386os9k.mt: Make file obsolete.
7050 * Makefile.in (ALLDEPFILES): Remove remote-os9k.c.
7051 (COMMON_OBS): Remove os9kread.o
7052 (SFILES): Remove os9kread.c.
7053 (os9kread.o, remote-os9k.o): Make target obsolete.
7054 * remote-os9k.c: Make file obsolete.
7055 * os9kread.c: Make file obsolete.
7056 * Makefile.in
7057
7058 2002-07-16 Andrew Cagney <ac131313@redhat.com>
7059
7060 * NEWS: Mention that the FR30 has been made obsolete.
7061 * fr30-tdep.c: Make file obsolete.
7062 * config/fr30/tm-fr30.h: Ditto.
7063 * config/fr30/fr30.mt: Ditto.
7064 * configure.tgt: Make fr30-*-elf obsolete.
7065 * MAINTAINERS: Make fr30-elf obsolete.
7066
7067 2002-07-16 Pierre Muller <muller@ics.u-strasbg.fr>
7068
7069 * blockframe.c (get_pc_function_start): return 0 if the minimal symbol
7070 found is not inside a section.
7071
7072 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7073
7074 * aix-thread.c (ptrace_check): Use safe_strerror() instead of
7075 strerror().
7076 (pdc_realloc): Use xrealloc() instead of realloc().
7077
7078 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7079
7080 * aix-thread.c (PD_ERROR, CALL_BASE): Delete.
7081 (ops_resume, ops_wait, fetch_regs_lib, store_regs_lib)
7082 (ops_xfer_memory, ops_kill): Don't use PD_ERROR or CALL_BASE
7083 macros.
7084
7085 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7086
7087 * aix-thread.c (ptrace_check): Eliminate goto.
7088 (sync_threadlists): Eliminate gotos. Also, fix array overrun
7089 problem.
7090
7091 2002-07-15 Kevin Buettner <kevinb@redhat.com>
7092
7093 * aix-thread.c (gdbcmd.h): Include.
7094 (DEBUG, DBG, DBG2, dbg): Eliminate.
7095 (debug_aix_thread): New static global.
7096 (ptrace_check, pdc_symbol_addrs, pdc_read_regs, pdc_write_regs)
7097 (pdc_read_data, pdc_write_data, pdc_alloc, pdc_realloc, pdc_dealloc)
7098 (fetch_regs_lib, store_regs_lib, store_regs_kern): Rewrite
7099 invocations to DBG and DBG2 macros to test against
7100 ``debug_aix_thread'' and call fprintf_unfiltered().
7101 (_initialize_aix_thread): Add new command "set debug aix-thread".
7102
7103 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7104
7105 From Gerhard Tonn <TON@de.ibm.com>:
7106 * s390-nat.c (fill_fpregset, fill_gregset): Use regcache_collect
7107 instead of supply_register.
7108
7109 2002-07-15 Andrew Cagney <ac131313@redhat.com>
7110
7111 * dwarf2cfi.c: Include "gdb_assert.h".
7112 (frame_state_for): Use gdb_assert to check that fde->cie_ptr is
7113 non-NULL.
7114 (update_context): Do not use __func__. Add missing ``break''.
7115 (update_context): Do not use __func__.
7116
7117 2002-07-15 Elena Zannoni <ezannoni@redhat.com>
7118
7119 * rs6000-tdep.c (rs6000_gdbarch_init): Remove variable print_insn
7120 and its setting. Set gdbarch instruction printing functions
7121 directly. For non-rs6000 case use new function
7122 gdb_print_insn_powerpc.
7123 (gdb_print_insn_powerpc): New function.
7124
7125 2002-07-13 Andrew Cagney <ac131313@redhat.com>
7126
7127 * NEWS: Mention that the d30v has been marked obsolete.
7128 * MAINTAINERS: Note that d30v / d30v-elf has been made obsolete.
7129 * configure.tgt: Mark d30v-*-* as obsolete.
7130 * d30v-tdep.c: Mark file as obsolete.
7131 * config/d30v/d30v.mt: Ditto.
7132 * config/d30v/tm-d30v.h: Ditto.
7133
7134 2002-07-13 Aidan Skinner <aidan@velvet.net>
7135
7136 * ada-tasks.c (add_task_entry): replace calls to
7137 malloc() with xmalloc
7138 * ada-tasks.c (init_task_list): replace calls to free with xfree()
7139
7140 * ada-lang.c (replace_operator_with_call, fill_in_ada_prototype,
7141 ada_finish_decode_line_1, all_sals_for_line
7142 ada_breakpoint_rewrite): replace calls to free() with xfree()
7143
7144 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7145
7146 From Nicholas Duffek (with minor changes by Martin Hunt,
7147 Louis Hamilton, and Kevin Buettner):
7148 * aix-thread.c: New file.
7149
7150 2002-07-12 Petr Sorfa <petrs@caldera.com>
7151
7152 * dwarf2read.c (dwarf2_invalid_attrib_class): New
7153 complaint for invalid attribute class or form.
7154 (read_func_scope): DW_AT_frame_base
7155 better handling of DW_AT_block*.
7156 (dwarf2_add_member_fn): DW_AT_vtable_elem_location
7157 better handling of DW_AT_block*.
7158 (read_common_block): DW_AT_location
7159 better handling of DW_AT_block*.
7160 (read_partial_die): DW_AT_location better handling
7161 of DW_AT_block*.
7162 (new_symbol): DW_AT_external better handling of
7163 DW_AT_block*. Proper initialization of variable
7164 "addr".
7165 (attr_form_is_block): New function that returns true
7166 if the attribute's form is of DW_FORM_block*.
7167
7168 2002-07-12 Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>
7169
7170 * valops.c (find_method_list): Remove comment about
7171 removed STATIC_MEMFUNCP argument.
7172 (value_find_oload_method_list): Likewise.
7173
7174 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7175
7176 From Nicholas Duffek:
7177 * rs6000-nat.c (vmap_ldinfo, xcoff_relocate_core): Call
7178 target_new_objfile_hook.
7179
7180 2002-07-12 Kevin Buettner <kevinb@redhat.com>
7181
7182 From Nicholas Duffek:
7183 * xcoffread.c (scan_xcoff_symtab): Recognize XMC_TD as a data storage
7184 csect.
7185
7186 2002-07-12 Andrew Cagney <cagney@redhat.com>
7187
7188 * MAINTAINERS: Mention --enable-sim-build-warnings.
7189 (m68hc11-elf): Disable sim build warnings.
7190 (m32r-elf): Mark as broken obsolete candidate.
7191 (x86_64-linux-gnu): Mark as buildable with -Werror.
7192 (arm-elf): Change -w to ``,'' which enables warnings but not
7193 -Werror.
7194
7195 2002-07-12 Andrew Cagney <ac131313@redhat.com>
7196
7197 * bcache.h: Update copyright.
7198 (struct bstring, struct bcache): Move definition to "bcache.c".
7199 Replaced by opaque declaration.
7200 (bcache_xfree): Replace free_bcache.
7201 (bcache_xmalloc, bcache_memory_used): Declare.
7202
7203 * bcache.c: Update copyright.
7204 (struct bstring, struct bcache): Moved to here from "bcache.h".
7205 Update comments.
7206 (bcache_xmalloc, bcache_memory_used): New functions.
7207 (bcache_xfree): Replace function free_bcache.
7208
7209 * Makefile.in (objfiles.o): Add $(bcache_h).
7210 (objfiles_h): Remove $(bcache_h).
7211 (symfile.o): Add $(bcache_h).
7212
7213 * symmisc.c: Update copyright.
7214 (print_symbol_bcache_statistics): Pass psymbol_cache by value.
7215 (print_objfile_statistics): Use bcache_memory_used.
7216
7217 * symfile.c: Include "bcache.h".
7218 (reread_symbols): Use bcache_xfree.
7219 (reread_symbols): Use bcache_xmalloc and bcache_xfree.
7220 (add_psymbol_to_list): Pass psymbol_cache by value.
7221 (add_psymbol_with_dem_name_to_list): Ditto.
7222
7223 * objfiles.h: Update copyright.
7224 (struct bcache): Declare opaque. Do not include "bcache.h".
7225 (struct objfile): Change psymbol_cache and macro_cache to ``struct
7226 bcache'' pointers.
7227 * dwarf2read.c (macro_start_file): Pass macro_cache by value.
7228
7229 * objfiles.c: Include "bcache.h". Update copyright.
7230 (allocate_objfile): Use bcache_xmalloc to create psymbol_cache and
7231 macro_cache.
7232 (free_objfile): Use bcache_xfree.
7233
7234 2002-07-11 Grace Sainsbury <graces@redhat.com>
7235
7236 * monitor.c (monitor_fetch_register): Make name a constant.
7237 (monitor_store_register): Same.
7238
7239 2002-07-11 Daniel Jacobowitz <drow@mvista.com>
7240
7241 Based on patch from Daniel Berlin <dberlin@dberlin.org>.
7242 * buildsym.c: Include "demangle.h" for SYMBOL_INIT_DEMANGLED_NAME.
7243 (finish_block) For non-function blocks, hash the symbol table. For
7244 function blocks, mark the symbol table as unhashed.
7245 * minsyms.c (msymbol_hash): Return hash value without taking modulus.
7246 (msymbol_hash_iw): Likewise.
7247 (add_minsym_to_hash_table): Take modulus of msymbol_hash's return
7248 value.
7249 (add_minsym_to_demangled_hash_table): Likewise for msymbol_hash_iw.
7250 (lookup_minimal_symbol): Likewise for both.
7251 * symtab.h (struct block): Add `hashtable' flag. Comment the
7252 hashtable.
7253 (BLOCK_HASHTABLE, BLOCK_BUCKETS, BLOCK_BUCKET): New macro.
7254 (ALL_BLOCK_SYMBOLS): Update.
7255 (BLOCK_SHOULD_SORT): Do not sort hashed blocks.
7256 (struct symbol): Add `hash_next' pointer.
7257 * symtab.c (lookup_block_symbol): Search using the hash table when
7258 possible.
7259 (find_pc_sect_symtab): Use ALL_BLOCK_SYMBOLS.
7260 (search_symbols, find_addr_symbol): Likewise.
7261
7262 * dstread.c (process_dst_block): Clear hashtable bit for new block.
7263 (read_dst_symtab): Likewise.
7264 * jv-lang.c (get_java_class_symtab): Likewise.
7265 * mdebugread.c: Include "gdb_assert.h".
7266 (shrink_block): Assert that the block being modified is not hashed.
7267 * coffread.c (patch_opaque_types): Use ALL_BLOCK_SYMBOLS.
7268 * symmisc.c (free_symtab_block): Walk the hash table when freeing
7269 symbols.
7270 (dump_symtab): Recognize hashed blocks.
7271 * printcmd.c (print_frame_args): Assert that function blocks do not
7272 have hashed symbol tables.
7273 * ada-lang.c (symtab_for_sym): Use ALL_BLOCK_SYMBOLS.
7274 (fill_in_ada_prototype, debug_print_block): Likewise.
7275 (ada_add_block_symbols): Use ALL_BLOCK_SYMBOLS. Handle hash tables.
7276
7277 2002-07-11 Corinna Vinschen <vinschen@redhat.com>
7278
7279 * stack.c (print_frame): Use result of frame_address_in_block()
7280 instead of fi->pc when evaluating symbols.
7281 (backtrace_command_1): Ditto.
7282
7283 2002-07-11 Andrew Cagney <cagney@redhat.com>
7284
7285 * cris-tdep.c (cris_saved_pc_after_call): Fix parameter type.
7286 Make static.
7287
7288 * arm-tdep.c (arm_register_name): Make return type constant.
7289
7290 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7291
7292 * win32-nat.c (has_detach_ability): Convert to strict ISO C
7293 prototype.
7294 * top.c (gdb_rl_operate_and_get_next_completion): Ditto.
7295 * s390-tdep.c (s390_fp_regnum): Ditto.
7296 (s390_read_fp): Ditto.
7297 (s390_pop_frame): Ditto.
7298 (_initialize_s390_tdep): Ditto.
7299 * remote.c (get_remote_state): Ditto.
7300 * procfs.c (mappingflags): Ditto.
7301 * memattr.c (_initialize_mem): Ditto.
7302 * mcore-tdep.c (mcore_pop_frame): Ditto.
7303 * m68klinux-nat.c (_initialize_m68k_linux_nat): Ditto.
7304 * m68k-tdep.c (m68k_register_bytes_ok): Ditto.
7305 * language.c (set_case_str): Ditto.
7306 * gnu-v3-abi.c (vtable_address_point_offset): Ditto.
7307 * frv-tdep.c (new_variant): Ditto.
7308 (frv_stopped_data_address): Ditto.
7309 * dwarf2cfi.c (fde_chunks_need_space): Ditto.
7310 (context_alloc): Ditto.
7311 (frame_state_alloc): Ditto.
7312 (unwind_tmp_obstack_init): Ditto.
7313 (unwind_tmp_obstack_free): Ditto.
7314 (cfi_read_fp): Ditto.
7315 * cris-tdep.c (cris_saved_pc_after_call): Ditto.
7316 (cris_pop_frame): Ditto.
7317 * c-lang.c (scanning_macro_expansion): Ditto.
7318 (finished_macro_expansion): Ditto.
7319 (c_preprocess_and_parse): Ditto.
7320 * gdbarch.sh: Ditto.
7321 * gdbarch.h, gdbarch.c: Regenerate.
7322 * config/mn10200/tm-mn10200.h: Adjust indentation.
7323 * target.c: Adjust indentation.
7324 * symtab.h: Adjust indentation.
7325 * stabsread.h: Adjust indentation.
7326 * remote-es.c: Adjust indentation.
7327 * os9kread.c: Adjust indentation.
7328
7329 2002-07-10 Andrew Cagney <ac131313@redhat.com>
7330
7331 * wince.c (_initialize_wince): Rename _initialize_inftarg.
7332 * win32-nat.c (_initialize_win32_nat): Rename _initialize_inftarg.
7333
7334 2002-07-10 Grace Sainsbury <graces@redhat.com>
7335
7336 * NEWS: Mention m68k, mcore multi-arching.
7337 * MAINTAINERS: Change status of m68k, mcore to reflect
7338 multi-arching.
7339
7340 2002-07-10 Daniel Jacobowitz <drow@mvista.com>
7341
7342 * valops.c (find_overload_match): Free oload_syms.
7343
7344 2002-07-09 Joel Brobecker <brobecker@gnat.com>
7345
7346 Define HAVE_SYS_PROC_H if sys/proc.h exists
7347 * configure.in: Add check for sys/proc.h
7348 * config.in: Regenerate.
7349 * configure: Regenerate.
7350
7351 2002-07-09 Grace Sainsbury <graces@redhat.com>
7352
7353 * config/m68k/tm-m68k.h: Remove macros wrapped in
7354 #if !GDB_MULTI_ARCH.
7355
7356 2002-07-08 Andrew Cagney <ac131313@redhat.com>
7357
7358 * config.in, configure: Regenerate.
7359
7360 2002-07-08 Mark Kettenis <kettenis@gnu.org>
7361
7362 * dwarf2cfi.c: Include "gcore.h".
7363 (execute_stack_op): Fix implementation of the
7364 DW_OP_deref and DW_OP_deref_size operators by letting do their
7365 lookup in the target.
7366
7367 2002-07-07 Mark Kettenis <kettenis@gnu.org>
7368
7369 From Peter Schauer <Peter.Schauer@regent.e-technik.tu-muenchen.de>:
7370 * i386-sol2-tdep.c (i386_sol2_init_abi): Correct value for
7371 tdep->sc_sp_offset.
7372
7373 2002-07-05 Daniel Jacobowitz <drow@mvista.com>
7374
7375 Fix PR gdb/595, gdb/602
7376 * gnu-v3-abi.c (gnuv3_baseclass_offset): Remove unused variables.
7377 Don't call value_cast, just read the vtable pointer; update comments
7378 to match.
7379
7380 2002-07-05 Grace Sainsbury <graces@redhat.com>
7381
7382 * config/mcore/tm-mcore.h: Remove file.
7383 * config/mcore/mcore.mt: Remove definition of TM_FILE
7384 * configure.tgt: Set gdb_multi_arch to yes for the mcore target.
7385
7386 2002-07-05 Mark Kettenis <kettenis@gnu.org>
7387
7388 * i386bsd-tdep.c: Include "gdb_string.h".
7389
7390 2002-07-04 Grace Sainsbury <graces@redhat.com>
7391
7392 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Set to 2.
7393 (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG,RETVAL_REGNUM): Move to
7394 mcore-tdep.
7395 (REG_STRUCT_HAS_ADDR, USE_STRUCT_CONVENTION, GET_SAVED_REGISTER)
7396 (TARGET_VIRTUAL_FRAME_POINTER, BELIEVE_PCC_PROMOTION): Remove.
7397 * mcore-tdep.c (PR_REGNUM, FIRST_ARGREG, LAST_ARGREG)
7398 (RETVAL_REGNUM): Move macros from tm-mcore.h
7399 (mcore_reg_struct_has_addr): New function.
7400 (mcore_gdbarch_init): Added initializations for the macros removed
7401 from tm-mcore.h.
7402
7403 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7404
7405 * osabi.c (generic_elf_osabi_sniffer): Add check for FreeBSD 3.x's
7406 traditonal string branding within the ELF header.
7407
7408 2002-07-04 Daniel Jacobowitz <drow@mvista.com>
7409
7410 * symtab.c (remove_params): New function.
7411 (make_symbol_overload_list): Use it instead of cplus_demangle.
7412 (overload_list_add_symbol): Likewise. Reorder. Fix memory leak.
7413
7414 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7415
7416 * i386obsd-nat.c (_initialize_i386obsd_nat): Fix typo in prototype.
7417
7418 * i386bsd-tdep.c (i386nbsd_sigtramp_start, i386nbsd_sigtramp_end):
7419 New variables.
7420 (i386nbsd_init_abi): Use these to initialize tdep->sigtramp_start
7421 and tdep->sigtramp_end.
7422 * i386obsd-nat.c: New file.
7423 * config/i386/obsd.mh (NATDEPFILES): Add i386obsd-nat.o.
7424
7425 * dwarf2cfi.c (cfi_pop_frame): Use alloca() for regbuf.
7426 Don't call get_current_frame().
7427
7428 2002-07-04 Pierre Muller <muller@ics.u-strasbg.fr>
7429
7430 * i386-nat.c (child_post_startup_inferior): New function
7431 calling i386_cleanup_dregs if
7432 I386_USE_GENERIC_WATCHPOINTS is defined.
7433 * config/i386/nm-i386.h: define CHILD_POST_STARTUP_INFERIOR
7434 conditional to acknowledge that i386-nat.c has its
7435 own child_post_startup_inferior function.
7436
7437 2002-07-04 Mark Kettenis <kettenis@gnu.org>
7438
7439 * i386-tdep.h (I386_MAX_REGISTER_SIZE): New define.
7440 * i386-tdep.c (i386_do_pop_frame): Use I386_MAX_REGISTER_SIZE
7441 instead of MAX_REGISTER_RAW_SIZE.
7442 (i386_extract_return_value, i386_extract_struct_value_address):
7443 Convert to use regcache.
7444 (i386_gdbarch_init): Set max_register_raw_size and
7445 max_register_virtual_size to I386_MAX_REGISTER_SIZE.
7446 Set extract_return_value and extract_struct_value_address instead
7447 of their deprecated variants.
7448
7449 Convert i386 target to generic dummy frames.
7450 * i386-tdep.c: Include "symfile.h".
7451 (i386_frameless_signal_p): Consider a function to be frameless if
7452 the pc points at the first instruction of the function.
7453 (i386_frame_chain): Handle (generic) call dummies.
7454 (i386_frame_saved_pc): Likewise.
7455 (i386_frame_init_saved_regs): Remove code dealing with call
7456 dummies on the stack.
7457 (i386_push_dummy_frame): Removed.
7458 (i386_call_dummy_words): Removed.
7459 (i386_fix_call_dummy): Removed.
7460 (i386_push_return_address): New function.
7461 (i386_do_pop_frame): Renamed from i386_pop_frame. Add FRAME
7462 parameter, and don't call get_current_frame.
7463 (i386_pop_frame): New function.
7464 (i386_gdbarch_init): Set use_generic_dummy_frames to 1, set
7465 call_dummy_location to AT_ENTRY_POINT, set call_dummy_address to
7466 entry_point_address, set call_dummy_breakpoint_offset to 0, set
7467 call_dummy_length to 0, set call_dummy_words to NULL, set
7468 sizeof_call_dummy_words to 0, set fix_call_dummy to
7469 generic_fix_call_dummy, set pc_in_call_dummy to
7470 pc_in_call_dummy_at_entry_point, set push_dummy_frame to
7471 generic_push_dummy_frame, set push_return_address to
7472 i386_push_return_address and set frame_chain_valid to
7473 generic_file_frame_chain_valid.
7474
7475 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7476
7477 * gdbarch.sh (struct regcache): Add opaque declaration.
7478 (EXTRACT_RETURN_VALUE): New architecture method.
7479 (EXTRACT_STRUCT_VALUE_ADDRESS): Ditto.
7480 * gdbarch.h, gdbarch.c: Regenerate.
7481 * arch-utils.c (legacy_extract_return_value): New function.
7482 * arch-utils.h (legacy_extract_return_value): Declare.
7483 * values.c (value_being_returned): Re-enable code handling
7484 EXTRACT_STRUCT_VALUE_ADDRESS. Move
7485 deprecated_grub_regcache_for_registers call to block handling
7486 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
7487 (EXTRACT_RETURN_VALUE): Do not define.
7488
7489 2002-07-03 Grace Sainsbury <graces@redhat.com>
7490
7491 * config/mcore/tm-mcore.h (REGISTER_BYTES, NUM_REGS, PC_REGNUM)
7492 (SP_REGNUM, FP_REGNUM, FUNCTION_START_OFFSET, DECR_PC_AFTER_BREAK)
7493 (BREAKPOINT_FROM_PC, INNER_THAN, SAVED_PC_AFTER_CALL)
7494 (INIT_EXTRA_FRAME_INFO, FRAME_INIT_SAVED_REGS, INIT_FRAME_PC)
7495 (FRAME_CHAIN, FRAME_CHAIN_VALID, FRAME_SAVED_PC)
7496 (STORE_RETURN_VALUE, DEPRECATED_EXTRACT_RETURN_VALUE)
7497 (STORE_STRUCT_RETURN, DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS)
7498 (SKIP_PROLOGUE, FRAME_ARGS_SKIP, FRAME_ARGS_ADDRESS)
7499 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, POP_FRAME)
7500 (PUSH_RETURN_ADDRESS, PUSH_DUMMY_FRAME, PUSH_ARGUMENTS): Remove.
7501 * mcore-tdep.c (mcore_init_extra_frame_info): Add fromleaf
7502 argument so the function fits the prototype in the architecture
7503 vector.
7504 (mcore_pop_frame): Remove argument so the function fits the
7505 prototype. Use get_current_frame instead of the argument.
7506 (mcore_push_arguments): Change type of struct_return so the
7507 function can be used in the architecture vector.
7508 (mcore_store_struct_return): Add.
7509 (mcore_frame_init_saved_regs): Add.
7510 (mcore_gdbarch_init): Add function calls to replace the macros
7511 removed from tm-mcore.h
7512
7513 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7514
7515 * infcmd.c (print_return_value): Remove compatibility code calling
7516 deprecated_grub_regcache_for_registers.
7517
7518 * values.c: Include "regcache.h".
7519 (value_being_returned): Update. Use
7520 deprecated_grub_regcache_for_registers to extract the register
7521 buffer address.
7522 * value.h (value_being_returned): Change ``retbuf'' parameter to a
7523 ``struct regcache''.
7524 * Makefile.in (values.o): Add dependency on $(regcache_h).
7525
7526 * inferior.h (run_stack_dummy): Change type of second parameter to
7527 a ``struct regcache''.
7528 * valops.c (hand_function_call): Change type of retbuf to ``struct
7529 regcache''. Allocate using regcache_xmalloc, clean using
7530 make_cleanup_regcache_xfree.
7531 * infcmd.c (run_stack_dummy): Update. Use
7532 regcache_cpu_no_passthrough instead of memcpy to copy the buffer.
7533
7534 * regcache.c (do_regcache_xfree): New function.
7535 (make_cleanup_regcache_xfree): New function.
7536 * regcache.h (make_cleanup_regcache_xfree): Declare.
7537
7538 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7539
7540 * event-top.c (command_line_handler): Don't read past
7541 beginning of buffer.
7542
7543 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7544
7545 * varobj.c (struct varobj_root): Change frame from CORE_ADDR to
7546 struct frame_id.
7547 (varobj_create): Store frame_id for root.
7548 (varobj_gen_name): Use xasprintf.
7549 (varobj_update): Save and restore frame using get_frame_id() and
7550 frame_find_by_id().
7551 (create_child): Use xasprintf.
7552 (new_root_variable): Initialize frame_id.
7553 (c_name_of_child): Use xasprintf. Call find_frame_by_id().
7554 (c_value_of_variable): Use xasprintf. Move mem_fileopen call
7555 to prevent memory leak.
7556
7557 2002-07-03 Andrew Cagney <ac131313@redhat.com>
7558
7559 * valops.c (hand_function_call): Move declaration of retbuf to
7560 start of function, allocate using malloc, add a cleanup but before
7561 the inf_status cleanup, cleanup the buffer. Rename local variable
7562 old_chain to inf_status_cleanup.
7563
7564 2002-07-03 Martin M. Hunt <hunt@redhat.com>
7565
7566 * top.c (execute_command): Use cmd_func() and cmd_func_p().
7567
7568 * cli/cli-decode.c (cmd_func_p): New function.
7569 (cmd_func): New function.
7570
7571 * command.h: Add cmd_func() and cmd_func_p().
7572
7573 2002-07-03 Grace Sainsbury <graces@redhat.com>
7574
7575 * config/mcore/tm-mcore.h (GDB_MULTI_ARCH): Add macro. Set to 0.
7576 (REGISTER_SIZE): Remove.
7577 (MAX_REGISTER_RAW_SIZE): Remove.
7578 (REGISTER_VIRTUAL_TYPE): Remove.
7579 (MAX_REGISTER_VIRTUAL_SIZE): Remove.
7580 (REGISTER_NAME): Remove.
7581 (USE_GENERIC_DUMMY_FRAMES): Remove.
7582 (CALL_DUMMY): Remove.
7583 (CALL_DUMMY_START_OFFSET): Remove.
7584 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
7585 (CALL_DUMMY_LOCATION): Remove.
7586 (FIX_CALL_DUMMY): Remove.
7587 (CALL_DUMMY_ADDRESS): Remove.
7588 (SIZEOF_CALL_DUMMY_WORDS): Remove.
7589 (SAVE_DUMMY_FRAME_TOS): Remove.
7590 * mcore-tdep.c (MCORE_REG_SIZE, MCORE_NUM_REGS): Add macros.
7591 (mcore_register_virtual_type): New function.
7592 (mcore_register_byte): New function.
7593 (mcore_register_size): New function.
7594 (mcore_register_name): New function.
7595 (mcore_gdbarch_init): New function. Add set_gdbarch calls for
7596 macros removed from tm-mcore.h.
7597 (mcore_dump_tdep): Add.
7598 (_initialize_mcore_tdep): Add gdbarch_register call.
7599
7600 2002-07-03 Mark Kettenis <kettenis@gnu.org>
7601
7602 * i386-tdep.c (i386_frameless_signal_p): Provide an argument in to
7603 frameless_look_for_prologue, such that we actually call this
7604 function.
7605
7606 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7607
7608 * frame.h (frame_address_in_block): New function.
7609
7610 * blockframe.c (frame_address_in_block): New function extracted
7611 from get_frame_block().
7612 (get_frame_block): Use frame_address_in_block().
7613 (block_innermost_frame): Use frame_address_in_block() to match
7614 the frame pc address against the block boundaries rather than
7615 the frame pc directly. This prevents a failure when a frame pc
7616 is actually a return-address pointing immediately after the end
7617 of the given block.
7618
7619 2002-07-02 Grace Sainsbury <graces@redhat.com>
7620
7621 * MAINTAINERS: Add self under write after approval.
7622
7623 2002-07-02 Grace Sainsbury <graces@redhat.com>
7624
7625 * m68k-tdep.c (m68k_remote_breakpoint_from_pc): Add. Currently not
7626 used in architecture vector. The default is
7627 m68k_local_breakpoint_from_pc.
7628 (m68k_local_breakpoint_from_pc): Add.
7629 (enum): Add register numbers from tm-m68k.h.
7630 (m68k_gdbarch_init): Add breakpoint_from_pc to architecture
7631 vector.
7632 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Set to
7633 GDB_MULTI_ARCH_PARTIAL.
7634 (BPT_VECTOR, REGISTER_BYTES_FP, REGISTER_BYTES_NOFP)
7635 (NUM_FREGS, SIG_PC_FP_OFFSET, SP_ARG0, REMOTE_BPT_VECTOR): Move to
7636 m68k-tdep.c.
7637 (BREAKPOINT, REMOTE_BREAKPOINT): Remove.
7638 (A1_REGNUM, FP0_REGNUM, FPC_REGNUM, FPS_REGNUM, FPI_REGNUM): Move
7639 to enum in m68k-tdep.c
7640
7641 2002-07-02 Joel Brobecker <brobecker@gnat.com>
7642
7643 * solib-osf.c (open_map): Compute the list of shared libraries
7644 loaded by the inferior, rather than the list of libraries loaded
7645 by GDB itself. Otherwise, GDB ends up reading the symbols from
7646 the wrong shared libraries...
7647
7648 2002-07-02 Mark Kettenis <kettenis@gnu.org>
7649
7650 * i386-linux-tdep.c (i386_linux_sigcontext_addr): Make static.
7651 (LINUX_SIGCONTEXT_PC_OFFSET, LINUX_SIGCONEXT_SP_OFFSET): Remove
7652 macros.
7653 (i386_linux_sigtramp_saved_pc, i386_linux_sigtramp_saved_sp):
7654 Remove functions.
7655 (FRAMELESS_SIGNAL): Remove function.
7656 (i386_linux_frame_chain, i386_linux_frame_saved_pc,
7657 i386_linux_saved_pc_after_call): Removed.
7658 (i386_linux_init_abi): Initialize tdep->sigcontext_addr,
7659 tdep->sc_pc_offset and tdep->sc_sp_offset. Don't override
7660 frame_chain, frame_saved_pc and saved_pc_after_call any longer.
7661
7662 * i386-tdep.c (i386_frameless_signal_p): New function.
7663 (i386_frame_chain): Deal with frameless signals.
7664 (i386_sigtramp_saved_sp): New function.
7665 (i386_frame_saved_pc): Deal with frameless signals.
7666 (i386_saved_pc_after_call): Make sure the correct value is
7667 returned just after entry into a sigtramp.
7668 * i386bsd-tdep.c (i386bsd_sc_sp_offset, i386nbsd_sc_sp_offset,
7669 i386fbsd4_sc_sp_offset): New variables.
7670 (i386bsd_init_abi, i386nbsd_init_abi, i386fbsd4_init_abi): Use
7671 these variables to initialize tdep->sc_sp_offset. * i386bsd-nat.c
7672 (_initialize_i386bsd_nat): Add sanity check for sc_sp_offset
7673 similiar to what we already did for sc_pc_offset.
7674 * i386-sol2-tdep.c (i386_sol2_init_abi): Initialize
7675 tdep->sc_sp_offset.
7676
7677 * i386nbsd-tdep.c (fetch_elfcore_registers): Wrap long line.
7678
7679 2002-07-02 Michal Ludvig <mludvig@suse.cz>
7680
7681 * config/i386/tm-x86-64linux.h: New.
7682 * config/i386/x86-64linux.mt: Add GDB_MULTI_ARCH and TM_FILE
7683 definitions.
7684 * config/i386/nm-x86-64.h: Rename to ...
7685 * config/i386/nm-x86-64linux.h: ... this one.
7686 * config/i386/x86-64linux.mh: Reflect the above change.
7687
7688 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7689
7690 * i386-tdep.h (struct gdbarch_tdep): Replace sigtramp_saved_pc
7691 with sigcontext_addr. Add sc_sp_offset.
7692 (i386bsd_sigtramp_saved_pc): Remove prototype.
7693 (i386bsd_sicontext_addr): Add prototype.
7694 * i386-tdep.c (i386_sigtramp_saved_pc): New function.
7695 (i386_frame_saved_pc): Rewrite to call i386_sigtramp_saved_pc.
7696 (i386_svr4_sigtramp_saved_pc): Removed.
7697 (i386_svr4_sigcontext_addr): New function.
7698 (i386_svr4_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7699 Initialize tdep->sigcontext_addr instead. Initialize
7700 tdep->sc_pc_offset and tdep->sc_sp_offset.
7701 (i386_gdbarch_init): Likewise.
7702 * i386bsd-tdep.c (i386bsd_sigcontext_addr): Don't make it static
7703 any more.
7704 (i386bsd_sigtramp_saved_pc): Remove function.
7705 (i386bsd_init_abi): Don't initialize tdep->sigtramp_saved_pc.
7706 Initialize tdep->sigcontext_addr instead. Initialize
7707 tdep->sc_pc_offset.
7708 * i386-linux-tdep.c (i386_linux_init_abi): Remove initialization
7709 of tdep->sigtramp_saved_pc.
7710 * i386-sol2-tdep.c (i386_sol2_init_abi): Don't initialize
7711 tdep->sigtramp_saved_pc. Initialize tdep->sigcontext_addr
7712 instead.
7713
7714 * i386-tdep.c (i386_frameless_function_invocation,
7715 i386_frame_num_args, i386_frame_init_saved_regs,
7716 i386_skip_prologue, i386_push_dummy_frame, i386_fix_call_dummy,
7717 i386_pop_frame, i386_push_arguments, i386_store_struct_return,
7718 i386_extract_return_value, i386_store_return_value,
7719 i386_extract_struct_value_address, i386_register_virtual_type,
7720 i386_register_convertible, i386_register_convert_to_virtual,
7721 i386_register_convert_to_raw, i386_svr4_sigtramp_saved_pc,
7722 i386_go32_init_abi, i386_nw_init_abi, i386_gdbarch_init): Make
7723 static.
7724
7725 2002-07-01 Mark Kettenis <kettenis@gnu.org>
7726
7727 * i386bsd-tdep.c (i386bsd_frame_saved_pc): Removed.
7728
7729 * config/i386/tm-i386sol2.h (COERCE_FLOAT_TO_DOUBLE): Removed.
7730 * i386-sol2-tdep.c (i386_sol2_init_abi): Adjust for the removal of
7731 this macro. Include "value.h".
7732
7733 2002-06-30 Aidan Skinner <aidan@velvet.net>
7734
7735 * ada-exp.tab.c: remove as it's a generated file
7736 * ada-lex.c: remove as it's a generated file
7737
7738 2002-06-30 Mark Kettenis <kettenis@gnu.org>
7739
7740 * config/i386/tm-i386.h (struct frame_info, struct
7741 frame_saved_regs, struct value, struct type): Remove forward
7742 declarations.
7743
7744 * config/i386/tm-linux.h [HAVE_PTRACE_GETFPXREGS]
7745 (FILL_FPXREGSET, HAVE_SSE_REGS): Remove define.
7746 * config/i386/nm-linux.h [HAVE_PTRACE_GETFPXREGS]
7747 (FILL_FPXREGSET): Define.
7748
7749 * config/i386/tm-nbsd.h (HAVE_SSE_REGS): Remove define.
7750
7751 * configure.tgt (i[3456]86-*-openbsd*): Fold into
7752 i[3456]86-*-netbsd* case.
7753 * config/i386/tm-obsd.h: Removed.
7754 * config/i386/obsd.mt: Removed.
7755 * config/i386/obsd.mh (NATDEPFILES): Remove corelow.o and
7756 core-aout.o.
7757 (MH_CFLAGS): Add -DYYDEBUG=0.
7758
7759 * i386bsd-nat.c (_initialize_i386bsd_nat): Define SC_PC_OFFSET to
7760 i386nbsd_sc_pc_offset on OpenBSD too.
7761
7762 * config/i386/tm-fbsd.h [!SVR4_SHARED_LIBS]
7763 (IN_SOLIB_CALL_TRAMPOLINE): Remove define.
7764 * config/i386/tm-nbsdaout.h (IN_SOLIB_CALL_TRAMPOLINE): Remove
7765 define.
7766 * i386bsd-tdep.c: Include "arch-utils.h".
7767 (i386bsd_aout_in_solib_call_trampoline): New function.
7768 (i386bsd_init_abi): Set in_solib_call_trampoline to
7769 i386bsd_aout_in_solib_call_trampoline.
7770 (i386nbsdelf_init_abi, i386fbsd_init_abi): Set
7771 in_solib_call_trampoline to generic_in_solib_call_trampoline.
7772
7773 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7774
7775 * macrotab.h: Do not include "obstack.h" or "bcache.h".
7776 (struct obstack, struct bcache): Add opaque declarations.
7777 * Makefile.in (macrotab_h): Update
7778
7779 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7780
7781 * blockframe.c (generic_find_dummy_frame): Change return type to
7782 ``struct regcache''.
7783 (struct dummy_frame): Replace field ``registers'' with regcache, a
7784 struct regcache object.
7785 (generic_find_dummy_frame): Update.
7786 (generic_push_dummy_frame): Update. Use regcache_xfree,
7787 regcache_xmalloc and regcache_cpy.
7788 (generic_pop_dummy_frame): Update. Use regcache_cpy and
7789 regcache_xfree.
7790 (deprecated_generic_find_dummy_frame): Update.
7791 (generic_read_register_dummy): Update. Use
7792 regcache_read_as_address.
7793 (generic_call_dummy_register_unwind): Update. Use regcache_read.
7794 (generic_get_saved_register): Update. Use regcache_read.
7795
7796 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7797
7798 * Makefile.in (objfiles_h): Add $(bcache_h).
7799 * objfiles.h: Include "bcache.h".
7800
7801 * Makefile.in (symtab_h): Remove $(bcache_h).
7802 * symtab.h: Do not include "bcache.h".
7803
7804 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7805
7806 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Set frame_chain_valid to
7807 generic_func_frame_chain_valid.
7808
7809 2002-06-28 David O'Brien <obrien@FreeBSD.org>
7810
7811 * config/i386/nm-fbsd.h: Include <sys/param.h>.
7812 * config/i386/tm-fbsd.h: Likewise.
7813
7814 2002-06-28 Andrew Cagney <ac131313@redhat.com>
7815
7816 * rs6000-tdep.c (rs6000_gdbarch_init): Use
7817 generic_unwind_get_saved_register.
7818
7819 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7820
7821 From 2002-06-27 John David Anglin <dave@hiauly1.hia.nrc.ca>:
7822 * regcache.c (supply_register): Add missing argument to
7823 register_buffer call.
7824
7825 2002-06-27 Andrew Cagney <ac131313@redhat.com>
7826
7827 * Makefile.in (init.c): Drop -e option to grep. Not necessary and
7828 Solaris /bin/grep does not not like it. From Peter Schauer.
7829
7830 2002-06-26 Tom Tromey <tromey@redhat.com>
7831
7832 * command.h (add_setshow_cmd): Declare.
7833 (add_setshow_cmd_full): Declare.
7834 * cli/cli-decode.c (add_setshow_cmd): No longer static. Now
7835 returns void. Use add_setshow_cmd_full.
7836 (add_setshow_cmd_full): New function.
7837 (add_setshow_auto_boolean_cmd): Use add_setshow_cmd_full.
7838 (add_setshow_boolean_cmd): Likewise.
7839
7840 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7841
7842 * config/vax/tm-vax.h: Protect from multiple inclusion.
7843 (TARGET_UPAGES, TARGET_NBPG, STACK_END_ADDR)
7844 (SIGTRAMP_START, SIGTRAMP_END, SIGCONTEXT_PC_OFFSET): Move to...
7845 * config/vax/tm-vaxbsd.h: ...here. New file.
7846 * config/vax/vax.mt (TM_FILE): Set to tm-vaxbsd.h.
7847
7848 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7849
7850 * config/vax/tm-vax.h (BREAKPOINT): Remove.
7851 (BELIEVE_PCC_PROMOTION): Remove.
7852 (AP_REGNUM): Move to...
7853 * config/vax/nm-vax.h: ...here.
7854 * vax-tdep.c: Use VAX_AP_REGNUM instead of AP_REGNUM.
7855 (vax_breakpoint_from_pc): New function.
7856 (vax_gdbarch_init): Initialize gdbarch_breakpoint_from_pc
7857 and gdbarch_believe_pcc_promotion.
7858
7859 2002-06-26 Jason Thorpe <thorpej@wasabisystems.com>
7860
7861 * Makefile.in (vax_tdep_h): Define.
7862 (vax-tdep.o): Use $(vax_tdep_h).
7863 * vax-tdep.c (vax_gdbarch_init): Use generic OS ABI framework.
7864 (vax_dump_tdep): New function.
7865 (_initialize_vax_tdep): Register vax_dump_tdep.
7866 * vax-tdep.h: Include osabi.h.
7867 (struct gdbarch_tdep): New.
7868
7869 2002-06-26 Andrew Cagney <cagney@redhat.com>
7870
7871 * frame.h (deprecated_generic_find_dummy_frame): Rename
7872 generic_find_dummy_frame.
7873 * blockframe.c (generic_find_dummy_frame): Make static.
7874 (deprecated_generic_find_dummy_frame): New function.
7875 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Replace
7876 generic_find_dummy_frame with deprecated_find_dummy_frame.
7877 (sh64_nofp_frame_init_saved_regs): Ditto.
7878 (sh_fp_frame_init_saved_regs): Ditto.
7879 * s390-tdep.c (s390_frame_saved_pc_nofix): Ditto.
7880 (s390_frame_chain): Ditto.
7881 * cris-tdep.c (cris_frame_init_saved_regs): Ditto.
7882
7883 2002-06-26 Grace Sainsbury <graces@redhat.com>
7884
7885 * config/m68k/tm-m68k.h: Rearrange code so macros not in the
7886 gdbarch vector are at the top.
7887 (NUM_REGS): Remove.
7888 (FP_REGNUM, SP_REGNUM, PS_REGNUM, PC_REGNUM, FP0_REGNUM): Remove.
7889 (FRAME_ARGS_ADDRESS): Remove.
7890 (FRAME_LOCALS_ADDRESS): Remove.
7891 (FRAME_NUM_ARGS): Remove.
7892 (FRAME_ARGS_SKIP): Remove.
7893 * m68k-tdep.c (enum): Add eumeration of special register numbers.
7894 (m68k_gdbarch_init): Add gdbarch initializations for macros
7895 undefined in tm-m68k.h
7896
7897 2002-06-26 Grace Sainsbury <graces@redhat.com>
7898
7899 * monitor.h: Add the function regname to monitor_ops
7900 structure. This way NUM_REGS does not have to be a constant.
7901 * monitor.c (monitor_fetch_register): Added support for regname
7902 function. The function is called if the array regnames is NULL.
7903 (monitor_store_register): Same.
7904 * cpu32bug-rom.c (cpu32bug_regname): Add function. Replaces
7905 regnames array.
7906 (init_cpu32bug_cmds): set cpu32bug_cmds.regnames to NULL,
7907 cpu32bug_cmds.regname to point to new function.
7908 * abug-rom.c (abug_regname): Same as above.
7909 (init_abug_cmds): Same.
7910 * dbug-rom.c (dbug_regname): Same as above.
7911 (init_dbug_cmds): Same.
7912 * remote-est.c (est_regname): Same.
7913 (init_est_cmds): Same.
7914 * rom68k-rom.c (rom68k_regname): Same.
7915 (init_rom68k_cmds): Same.
7916
7917 2002-06-25 Tom Tromey <tromey@redhat.com>
7918
7919 * breakpoint.c (delete_command): Don't repeat `delete' commands.
7920
7921 2002-06-25 Andrew Cagney <cagney@redhat.com>
7922
7923 * infrun.c (stop_registers): Change variable's type to ``struct
7924 regcache'''.
7925 (xmalloc_inferior_status): Delete function.
7926 (free_inferior_status): Delete function.
7927 (normal_stop): Use regcache_cpy.
7928 (struct inferior_status): Change type of fields ``stop_registers''
7929 and ``registers'' to ``struct regcache''.
7930 (write_inferior_status_register): Use regcache_write.
7931 (save_inferior_status): Instead of calling
7932 xmalloc_inferior_status, allocate the inf_status buffer directly.
7933 Use regcache_dup_no_passthrough and regcache_dup to save the
7934 buffers.
7935 (restore_inferior_status): Use regcache_xfree and regcache_cpy.
7936 Replace the stop_registers regcache instead of overriding it. Use
7937 regcache_xfree. Instead of calling free_inferior_status, xfree
7938 the buffer directly.
7939 (discard_inferior_status): Use regcache_xfree. Instead of calling
7940 free_inferior_status, xfree the buffer directly.
7941 (build_infrun): Use regcache_xmalloc.
7942 (_initialize_infrun): Delete redundant call to build_infrun.
7943
7944 * Makefile.in (infcmd.o): Add $(regcache_h).
7945
7946 * infcmd.c: Include "regcache.h".
7947 (run_stack_dummy): Use deprecated_grub_regcache_for_registers to
7948 obtain the address of `stop_registers' register buffer.
7949 (print_return_value): Ditto.
7950
7951 * inferior.h (struct regcache): Add opaque declaration.
7952 (stop_registers): Change variable's declared type to ``struct
7953 regcache''.
7954
7955 2002-06-24 Tom Tromey <tromey@redhat.com>
7956
7957 * cli/cli-decode.c (add_show_from_set): Fixed typo in comment.
7958 * target.c (initialize_targets): Fixed typo in
7959 trust-readonly-sections `show' documentation.
7960
7961 * main.c: Marked all strings with _().
7962
7963 2002-06-24 Don Howard <dhoward@redhat.com>
7964
7965 * memattr.c (create_mem_region): Treat hi == 0 as a special case
7966 that means max CORE_ADDR+1.
7967 (lookup_mem_region): Ditto.
7968 (mem_info_command): Ditto.
7969
7970 2002-06-24 Grace Sainsbury <graces@redhat.com>
7971
7972 * config/m68k/tm-m68k.h (DECR_PC_AFTER_BREAK): Remove.
7973 (REGISTER_BYTES_OK): Remove.
7974 (REGISTER_BYTES): Remove.
7975 (STORE_STRUCT_RETURN): Remove.
7976 (DEPRECATED_EXTRACT_RETURN_VALUE): Remove.
7977 (STORE_RETURN_VALUE): Remove.
7978 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
7979 (FRAME_CHAIN): Remove.
7980 (FRAMELESS_FUNCTION_INVOCATION): Remove.
7981 (FRAME_SAVED_PC): Remove.
7982 * m68k-tdep.c (m68k_register_bytes_ok):Add.
7983 (m68k_store_struct_return): Add.
7984 (m68k_deprecated_extract_return_value): Add.
7985 (m68k_deprecated_extract_struct_value_address): Add.
7986 (m68k_store_return_value): Add.
7987 (m68k_frame_chain): Add.
7988 (m68k_frameless_function_invocation): Add.
7989 (m68k_frame_saved_pc): Add.
7990 (m68k_gdbarch_init): added set_gdbarch calls for new
7991 functions and deleted macros.
7992
7993 2002-06-23 Tom Tromey <tromey@redhat.com>
7994
7995 * Makefile.in (HFILES_NO_SRCDIR): Remove old files.
7996 (ALLDEPFILES): Likewise.
7997 (udiheaders): Removed.
7998 (udip2soc.o): Likewise.
7999 (udi2go32.o): Likewise.
8000 (udr.o): Likewise.
8001 (HFILES_WITH_SRCDIR): Don't mention udiheaders.
8002
8003 2002-06-22 Andrew Cagney <ac131313@redhat.com>
8004
8005 * infrun.c (_initialize_infrun): Delete unnecessary call to
8006 build_infrun.
8007
8008 * regcache.h: Update comments describing the regcache_cpy family
8009 of functions.
8010 (regcache_save, regcache_restore): Delete declaration.
8011 (regcache_save_no_passthrough): Delete declaration.
8012 (regcache_restore_no_passthrough): Delete declaration.
8013 * regcache.c (regcache_save): Delete function.
8014 (regcache_save_no_passthrough): Delete function.
8015 (regcache_restore): Delete function.
8016 (regcache_restore_no_passthrough): Delete function.
8017
8018 2002-06-21 Andrew Cagney <ac131313@redhat.com>
8019
8020 * config/m68k/tm-m68k.h: Fix typo.
8021 (FRAME_INIT_SAVED_REGS): Define when non-multi-arch.
8022 (m68k_frame_init_saved_regs): Declare.
8023
8024 2002-06-21 Jim Blandy <jimb@redhat.com>
8025
8026 Remove some vestiges of Harris 88k support.
8027 * dwarf2read.c (decode_locdesc): Remove `#if' block for Harris 88k
8028 register numbering quirk.
8029 * elfread.c (elf_symtab_read): Remove `#if' block for skipping
8030 odd symbols occurring in Harris 88k ELF targets.
8031
8032 2002-06-21 Tom Tromey <tromey@redhat.com>
8033
8034 * gdb_locale.h: New file.
8035 * Makefile.in (GDB_CFLAGS): Define LOCALEDIR.
8036 (defs_h): Added gdb_locale.h.
8037 * configure, config.in: Rebuilt.
8038 * configure.in (PACKAGE): Define.
8039 * defs.h: Include gdb_locale.h.
8040 * main.c (captured_main): Call setlocale, bindtextdomain,
8041 textdomain.
8042
8043 2002-06-21 Dave Brolley <brolley@redhat.com>
8044
8045 From Stan Shebs, Jim Blandy, Mark Salter, Kevin Buettner:
8046 * config/frv/frv.mt: New file.
8047 * config/frv/tm-frv.h: New file.
8048 * configure.tgt: Support frv-*-*.
8049 * Makefile.in (frv-tdep.o): New target.
8050 * frv-tdep.c: New file.
8051 * NEWS: Mention frv.
8052
8053 2002-06-21 Dave Brolley <brolley@redhat.com>
8054
8055 * MAINTAINERS: Add self to "Write After Approval" list.
8056
8057 2002-06-21 Grace Sainsbury <graces@redhat.com>
8058
8059 * config/m68k/tm-m68k.h (REGISTER_BYTE, REGISTER_RAW_SIZE)
8060 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
8061 (REGISTER_VIRTUAL_TYPE, REGISTER_NAMES, TARGET_LONG_DOUBLE_FORMAT)
8062 (FUNCTION_START_OFFSET, SKIP_PROLOGUE, SAVED_PC_AFTER_CALL)
8063 (INNER_THAN, STACK_ALIGN, REGISTER_SIZE): Remove macros.
8064
8065 * m68k-tdep.c: Include arch-utils.h
8066 (m68k_register_raw_size): Add.
8067 (m68k_register_virtual_size): Add.
8068 (m68k_register_virtual_type): Add.
8069 (m68k_register_name): Add.
8070 (m68k_stack_align): Add.
8071 (m68k_register_byte): Add.
8072 (m68k_gdbarch_init): Add set_gdbarch calls for macros removed in
8073 tm-m68k.h.
8074
8075 2002-06-21 Grace Sainsbury <graces@redhat.com>
8076
8077 * m68k-tdep.c (m68k_frame_init_saved_regs): Replace
8078 m68k_find_saved_regs.
8079 (m68k_pop_frame): Removed saved_regs structure, and replaced
8080 references to it with frame->saved_regs.
8081 (m68k_gdbarch_init): Added function calls to initialize the
8082 gdbarch structure.
8083 (m68k_fix_call_dummy): Add.
8084 * config/m68k/tm-m68k.h: (FRAME_FIND_SAVED_REGS): Remove.
8085 (CALL_DUMMY): Remove.
8086 (CALL_DUMMY_LENGTH): Remove.
8087 (CALL_DUMMY_START_OFFSET): Remove.
8088 (CALL_DUMMY_BREAKPOINT_OFFSET): Remove.
8089 (FIX_CALL_DUMMY): Remove.
8090 (PUSH_DUMMY_FRAME): Remove.
8091 (POP_FRAME): Remove.
8092
8093 2002-06-19 Pierre Muller <muller@ics.u-strasbg.fr>
8094
8095 * parse.c (parse_fprintf): New function used to avoid calls to
8096 fprintf in bison parser generated debug code.
8097 * parser-defs.h: Declaration of new parse_fprintf function.
8098 * ada-exp.y, c-exp.y, f-exp.y, jv-exp.y, m2-exp.y, p-exp.y:
8099 Set YYDEBUG to 1 by default.
8100 Set YYFPRINTF as parse_fprintf.
8101
8102 2002-06-21 Michal Ludvig <mludvig@suse.cz>
8103
8104 * dwarf2cfi.c (read_encoded_pointer): Don't handle pointer
8105 encoding anymore.
8106 (pointer_encoding, enum ptr_encoding): New.
8107 (execute_cfa_program): Take care about pointer encoding.
8108 (dwarf2_build_frame_info): Only call parse_frame_info for
8109 .debug_frame and .eh_frame.
8110 (parse_frame_info): New, derived from former dwarf2_build_frame_info.
8111 fixed augmentation handling, added relative addressing,
8112 ignore duplicate FDEs. Added comments.
8113 * dwarf2cfi.c: Reindented.
8114
8115 2002-06-20 Elena Zannoni <ezannoni@redhat.com>
8116
8117 * event-top.c (command_handler): Don't use space_at_cmd_start
8118 unless there is sbrk() on the host. Assign time and space data
8119 to union fields of the appropriate length.
8120
8121 2002-06-20 Michal Ludvig <mludvig@suse.cz>
8122
8123 * x86-64-tdep.c (x86_64_register_nr2name): Rename to
8124 x86_64_register_name. Return type changed to 'const char *'.
8125 (x86_64_register_name2nr): Rename to x86_64_register_number.
8126 (x86_64_gdbarch_init): Update to reflect the change.
8127 * x86-64-tdep.h: Ditto.
8128 * x86-64-linux-nat.c (x86_64_fxsave_offset)
8129 (supply_fpregset): Ditto.
8130
8131 2002-06-19 Andrew Cagney <cagney@redhat.com>
8132
8133 * regcache.h: Update copyright.
8134 (struct regcache, struct gdbarch): Add opaque declarations.
8135 (current_regcache): Declare global variable.
8136 (regcache_read, regcache_write): Add gdbarch parameter.
8137 (regcache_save, regcache_save_no_passthrough)
8138 (regcache_restore, regcache_restore_no_passthrough)
8139 (regcache_dup, regcache_dup_no_passthrough)
8140 (regcache_cpy, regcache_cpy_no_passthrough)
8141 (deprecated_grub_regcache_for_registers)
8142 (deprecated_grub_regcache_for_register_valid)
8143 (regcache_valid_p): Add function declarations.
8144
8145 * regcache.c: Update copyright.
8146 (regcache_descr_handle): New global variable.
8147 (struct regcache_descr): Define.
8148 (init_legacy_regcache_descr, init_regcache_descr): New functions.
8149 (regcache_descr, xfree_regcache_descr): New functions.
8150 (struct regcache): Define.
8151 (regcache_xmalloc, regcache_xfree): New functions.
8152 (regcache_cpy, regcache_cpy_no_passthrough): New functions.
8153 (regcache_dup, regcache_dup_no_passthrough): New functions.
8154 (regcache_valid_p, regcache_read_as_address): New functions.
8155 (deprecated_grub_regcache_for_registers): New function.
8156 (deprecated_grub_regcache_for_register_valid): New function.
8157 (current_regcache): New global variable.
8158 (register_buffer): Add regcache parameter. Update calls.
8159 (regcache_read, regcache_write): Add regcache parameter. Rewrite.
8160 (read_register_gen, write_register_gen): Update register_buffer
8161 call. Test for legacy_p instead of gdbarch_register_read_p or
8162 gdbarch_register_write_p.
8163 (regcache_collect): Update register_buffer call.
8164 (build_regcache): Rewrite. Use deprecated grub functions.
8165 (regcache_save, regcache_save_no_passthrough): New functions.
8166 (regcache_restore, regcache_restore_no_passthrough): New
8167 functions.
8168 (_initialize_regcache): Create the regcache_data_handle. Swap
8169 current_regcache global variable.
8170
8171 * sh-tdep.c (sh_pseudo_register_read): Add current_regcache
8172 parameter to regcache_read and regcache_write calls.
8173 (sh4_register_read): Ditto.
8174 (sh64_pseudo_register_read): Ditto.
8175 (sh64_register_read): Ditto.
8176 (sh_pseudo_register_write): Ditto.
8177 (sh4_register_write): Ditto.
8178 (sh64_pseudo_register_write): Ditto.
8179 (sh64_register_write): Ditto.
8180
8181 * defs.h (XCALLOC): Define.
8182
8183 2002-06-19 Grace Sainsbury <graces@redhat.com>
8184
8185 * config/m68k/tm-m68k.h (GDB_MULTI_ARCH): Added (set to 0).
8186 * m68k-tdep.c (m68k_gdbarch_init): Added.
8187 (m68k_dump_tdep): Added.
8188
8189 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8190
8191 * ada-lang.c (fill_in_ada_prototype): Update comment.
8192
8193 2002-06-19 Daniel Jacobowitz <drow@mvista.com>
8194
8195 * mips-tdep.c (enum mips_abi): Explicitly start at 0. Add
8196 MIPS_ABI_LAST.
8197 (mips_abi_string, mips_abi_strings): New.
8198 (struct gdbarch_tdep): Remove mips_abi_string, add found_abi.
8199 (mips_gdbarch_init): Set tdep->found_abi. Don't set
8200 tdep->mips_abi_string. Honor mips_abi_string. Default to
8201 O32 if no ABI is found.
8202 (mips_dump_tdep): Use mips_abi_strings.
8203 (mips_abi_update): New function.
8204 (_initialize_mips_tdep): Initialize mips_abi_string. Add
8205 ``set mips abi'' and ``show mips abi''. Check the size of
8206 mips_abi_strings.
8207
8208 2002-06-19 Andrew Cagney <cagney@redhat.com>
8209
8210 * i386-linux-tdep.c (i386_linux_register_name): Make return type
8211 constant.
8212
8213 2002-06-18 Joel Brobecker <brobecker@gnat.com>
8214
8215 * alpha-tdep.c (heuristic_proc_desc): Compute the size of the
8216 current frame using only the first stack size adjustment. All
8217 subsequent size adjustments are not considered to be part of
8218 the "static" part of the current frame.
8219 Compute the address of the saved registers relative to the
8220 Frame Pointer ($fp) instead of the Stack Pointer if $fp is
8221 in use in this frame.
8222
8223 2002-06-18 Don Howard <dhoward@redhat.com>
8224
8225 * valops.c (value_ind): Use value_at_lazy() when dereferencing
8226 type int expressions. Thanks to Jim Blandy <jimb@redhat.com> for
8227 suggesting this solution.
8228
8229 2002-06-18 Andrew Cagney <ac131313@redhat.com>
8230
8231 * config/romp/xm-rtbsd.h: Delete file.
8232 * config/romp/rtbsd.mh: Delete file.
8233
8234 2002-06-18 Keith Seitz <keiths@redhat.com>
8235
8236 * breakpoint.c (condition_command): Post breakpoint_modify
8237 when a condition is added to an existing breakpoint.
8238 (commands_command): Likewise for commands.
8239 (set_ignore_count): Likewise for ignore counts.
8240 If no tty, do not simply return, still need to send event
8241 notification.
8242 (ignore_command): Only print a newline if the command came
8243 from a tty.
8244 Don't call breakpoints_changed, since this is now properly
8245 handled by set_ignore_count.
8246
8247 2002-06-18 Andrew Cagney <cagney@redhat.com>
8248
8249 * MAINTAINERS: Note that cris-elf target can be compiled with
8250 -Werror.
8251 * cris-tdep.c (cris_register_name): Make return type constant.
8252 (cris_breakpoint_from_pc): Ditto.
8253
8254 2002-06-18 Michal Ludvig <mludvig@suse.cz>
8255
8256 * frame.h (struct frame_info): Change type of context to
8257 'struct context'.
8258
8259 2002-06-17 Andrew Cagney <cagney@redhat.com>
8260
8261 * gdbarch.sh (REGISTER_NAME): Change return type a constant string
8262 pointer.
8263 * gdbarch.h, gdbarch.c: Regenerate.
8264 * config/mips/tm-mips.h (mips_register_name): Update.
8265 * i386-tdep.h (i386_register_name): Update.
8266 * mips-tdep.c (mips_register_name): Update
8267 * alpha-tdep.c (alpha_register_name): Update.
8268 * arch-utils.c (legacy_register_name): Update.
8269 * arch-utils.h (legacy_register_name): Update.
8270 * avr-tdep.c (avr_register_name): Update.
8271 * ia64-tdep.c (ia64_register_name): Update.
8272 * i386-tdep.c (i386_register_name): Update.
8273 * sparc-tdep.c (sparc32_register_name): Update.
8274 (sparc64_register_name): Update.
8275 (sparclite_register_name): Update.
8276 (sparclet_register_name): Update.
8277 * sh-tdep.c (sh_generic_register_name): Update.
8278 (sh_sh_register_name): Update.
8279 (sh_sh3_register_name): Update.
8280 (sh_sh3e_register_name): Update.
8281 (sh_sh_dsp_register_name): Update.
8282 (sh_sh3_dsp_register_name): Update.
8283 (sh_sh4_register_name): Update.
8284 (sh_sh64_register_name): Update.
8285 * s390-tdep.c (s390_register_name): Update.
8286 * rs6000-tdep.c (rs6000_register_name): Update.
8287 * ns32k-tdep.c (ns32k_register_name_32082): Update.
8288 (ns32k_register_name_32382): Update.
8289 * d10v-tdep.c (d10v_ts2_register_name): Update.
8290 (d10v_ts3_register_name): Update.
8291 * xstormy16-tdep.c (xstormy16_register_name): Update.
8292 * vax-tdep.c (vax_register_name): Update.
8293 * v850-tdep.c (v850_register_name): Update.
8294 * m68hc11-tdep.c (m68hc11_register_name): Update.
8295 * mn10300-tdep.c (mn10300_generic_register_name): Update.
8296 (am33_register_name): Update.
8297
8298 2002-06-17 Grace Sainsbury <graces@redhat.com>
8299
8300 * m68k-tdep.c: Reindented.
8301
8302 2002-06-17 Andrew Cagney <ac131313@redhat.com>
8303
8304 * gdb_indent.sh: Add prgregset_t, fpregset_t, and gregset_t to the
8305 list of predefined types.
8306
8307 2002-06-16 Mark Kettenis <kettenis@gnu.org>
8308
8309 * config/i386/tm-i386.h (REGISTER_VIRTUAL_TYPE,
8310 REGISTER_CONVERTIBLE, REGISTER_CONVERT_TO_VIRTUAL,
8311 REGISTER_CONVERT_TO_RAW): Remove defines.
8312 (i386_register_virtual_type, i386_register_convertible,
8313 i386_register_convert_to_virtual, i386_register_convert_to_raw):
8314 Remove prototypes.
8315 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8316 macros mentioned above.
8317
8318 * config/i386/tm-i386lynx.h (SAVED_PC_AFTER_CALL): Remove define.
8319 (i386lynx_saved_pc_after_call): Remove prototype.
8320 * i386ly-tdep.c: Include "i386-tdep.h".
8321 (i386lynx_saved_pc_after_call): Make static. Use
8322 read_memory_nobpt instead of read_memory. Use
8323 read_memory_unsigned_integer instead of read_memory_integer.
8324 (i386lynx_init_abi): New function.
8325 (i386lynx_coff_osabi_sniffer): New function.
8326 (_initialize_i386bsd_tdep): New function.
8327
8328 * config/i386/tm-i386.h (PARM_BOUNDARY, CALL_DUMMY,
8329 CALL_DUMMY_LENGTH, CALL_DUMMY_START_OFFSET,
8330 CALL_DUMMY_BREAKPOINT_OFFSET, FIX_CALL_DUMMY): Remove defines.
8331 (i386_fix_call_dummy): Remove prototype.
8332 * i386-tdep.c (i386_call_dummy_words): New variable.
8333 (i386_gdbarch_init): Adjust for removal of the
8334 macros mentioned above.
8335
8336 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8337
8338 * command.h (add_setshow_auto_boolean_cmd): Replace
8339 add_set_auto_boolean_cmd.
8340 * cli/cli-decode.c (add_setshow_auto_boolean_cmd): Replace
8341 add_set_auto_boolean_cmd.
8342 * cli/cli-decode.h (add_set_auto_boolean_cmd): Delete declaration.
8343 * mips-tdep.c (_initialize_mips_tdep): Update ``set mips
8344 mask-address'' command.
8345 (show_mask_address): Add cmd parameter.
8346 * remote.c (add_packet_config_cmd): Update. Change type of
8347 set_func and show_func to cmd_sfunc_ftype.
8348 (_initialize_remote): Update `set remote Z-packet'
8349 (show_remote_protocol_qSymbol_packet_cmd): Add cmd parameter.
8350 (show_remote_protocol_e_packet_cmd): Ditto.
8351 (show_remote_protocol_E_packet_cmd): Ditto.
8352 (show_remote_protocol_P_packet_cmd): Ditto.
8353 (show_remote_protocol_Z_software_bp_packet_cmd): Ditto.
8354 (show_remote_protocol_Z_hardware_bp_packet_cmd): Ditto.
8355 (show_remote_protocol_Z_write_wp_packet_cmd): Ditto.
8356 (show_remote_protocol_Z_read_wp_packet_cmd): Ditto.
8357 (show_remote_protocol_Z_access_wp_packet_cmd): Ditto.
8358 (show_remote_protocol_Z_packet_cmd): Ditto.
8359 (show_remote_protocol_binary_download_cmd): Ditto.
8360 (show_remote_cmd): Pass NULL to all of above.
8361
8362 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8363
8364 * config/i386/tm-i386.h (PUSH_ARGUMENTS, STORE_STRUCT_RETURN,
8365 DEPRECATED_EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE,
8366 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS, PUSH_DUMMY_FRAME,
8367 POP_FRAME): Remove defines.
8368 (i386_push_arguments, i386_store_struct_return,
8369 i386_extract_return_value, i386_store_return_value,
8370 i386_extract_struct_value_address, i386_push_dummy_frame,
8371 i386_pop_frame): Renove prototypes.
8372 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8373 macros mentioned above.
8374
8375 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8376
8377 * cli/cli-decode.c (add_setshow_boolean_cmd): Replace
8378 add_set_boolean_cmd.
8379 (add_setshow_cmd): New function.
8380 * command.h (add_setshow_boolean_cmd): Replace
8381 add_set_boolean_cmd.
8382 * remote-rdi.c (_initialize_remote_rdi): Update ``set rdiheartbeat''
8383 and ``set rdiromatzero''.
8384 * maint.c (_initialize_maint_cmds): Update commented out code.
8385 * cli/cli-decode.h (add_set_boolean_cmd): Delete declaration.
8386 * target.c (initialize_targets): Update `set
8387 trust-readonly-sections'.
8388 * remote.c (_initialize_remote): Update `set remotebreak'.
8389
8390 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8391
8392 * config/i386/tm-i386.h (FUNCTION_START_OFFSET, INNER_THAN,
8393 BREAKPOINT, DECR_PC_AFTER_BREAK): Removed.
8394 * i386-tdep.c (i386_skip_prologue): Adjust function signature to
8395 fit into multi-arch framework.
8396 (i386_breakpoint_from_pc): New function.
8397 (i386_gdbarch_init): Adjust for removal of the macros mentioned
8398 above.
8399
8400 * config/i386/tm-i386.h (FRAMELESS_FUNCTION_INVOCATION,
8401 FRAME_ARGS_ADDRESS, FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS,
8402 FRAME_ARGS_SKIP, FRAME_INIT_SAVED_REGS): Remove defines.
8403 (i386_frameless_function_invocation, i386_frame_num_args,
8404 i386_frame_init_saved_regs): Remove prototypes.
8405 * i386-tdep.c (i386_gdbarch_init): Adjust for removal of the
8406 macros mentioned above.
8407
8408 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8409
8410 * cli/cli-decode.c (set_cmd_cfunc): Update.
8411 (set_cmd_sfunc): Update.
8412 * command.h (cmd_cfunc_ftype, cmd_sfunc_ftype): Declare.
8413 (set_cmd_sfunc, set_cmd_cfunc): Update.
8414 * cli/cli-decode.h: Update.
8415
8416 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8417
8418 * i386-sol2-tdep.c (i386_sol2_osabi_sniffer): New function.
8419 (_initialize_i386_sol2_tdep): Register i386_sol2_osabi_sniffer.
8420
8421 2002-06-15 Andrew Cagney <ac131313@redhat.com>
8422
8423 * defs.h (auto_boolean): Declare enum.
8424 * command.h (cmd_auto_boolean): Delete enum.
8425 * mips-tdep.c (mask_address_var): Update.
8426 (mips_mask_address_p): Update.
8427 (show_mask_address): Update.
8428 * remote.c (struct packet_config): Update.
8429 (update_packet_config): Update.
8430 (show_packet_config_cmd): Update.
8431 (packet_ok): Update.
8432 (add_packet_config_cmd): Update.
8433 (_initialize_remote):
8434 * command.h: Update.
8435 * cli/cli-setshow.c (parse_auto_binary_operation): Update.
8436 (do_setshow_command): Update.
8437 * cli/cli-decode.c (add_set_auto_boolean_cmd): Update.
8438 * cli/cli-decode.h: Update.
8439
8440 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8441
8442 * config/i386/tm-cygwin.h, config/i386/tm-fbsd.h,
8443 config/i386/tm-go32.h, config/i386/tm-i386gnu.h,
8444 config/i386/tm-i386sol2.h, config/i386/tm-i386v4.h,
8445 config/i386/tm-linux.h, config/i386/tm-nbsd.h,
8446 config/i386/tm-obsd.h (HAVE_I387_REGS): Remove define.
8447 * config/i386/tm-i386.h: Unconditionally define FLOAT_INFO.
8448
8449 * i386-tdep.c (i386_coff_osabi_sniffer): Add "coff-go32" to the
8450 list of DJGPP COFF targets.
8451
8452 * config/i386/tm-i386.h (REGISTER_SIZE): Remove define.
8453 (NUM_GREGS, NUM_FREGS, NUM_SSE_REGS): Remove defines.
8454 (FP_REGNUM, SP_REGNUM, PC_REGNUM, PS_REGNUM): Remove defines.
8455 (FP0_REGNUM): Remove define.
8456 (MAX_REGISTER_RAW_SIZE, MAX_REGISTER_VIRTUAL_SIZE,
8457 MAX_REGISTER_VIRTUAL_SIZE): Remove define.
8458 (i386_register_virtual_size): Remove protoype.
8459 * i386-tdep.c (i386_register_virtual_size): Removed.
8460 (i386_extract_return_value, i386_store_return_value): Use
8461 FP0_REGNUM instead of NUM_FREGS to determine whether the
8462 floating-point registers are available.
8463 (i386_gdbarch_init): Tweak FIXME about FPU registers.
8464 Adjust for removal of macros mentioned above.
8465
8466 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8467
8468 * i386v4-nat.c: Include "i386-tdep.h". Reformat and tweak various
8469 comments.
8470 (fill_gregset, supply_gregset, supply_fpregset, fill_fpregset):
8471 Remove prototypes.
8472 (supply_gregset, fill_gregset): Remove use of register keyword and
8473 remove declaration for regmap. Use I386_NUM_GREGS instead of
8474 NUM_REGS and NUM_FREGS.
8475 (FPREGSET_FSAVE_OFFSET): Remove.
8476 (supply_fpregset, fill_fpregset): Use FPO_REGNUM instead of
8477 NUM_FREGS to determine whether the floating-point registers are
8478 available.
8479
8480 * i386gnu-nat.c (supply_gregset, gnu_fetch_registers,
8481 gnu_store_registers): Replace usage of NUM_GREGS with
8482 I386_NUM_GREGS.
8483
8484 * i386-linux-nat.c (OLD_CANNOT_FETCH_REGISTER,
8485 OLD_CANNOT_STORE_REGISTER, supply_gregset, fill_gregset): Replace
8486 usage of NUM_GREGS with I386_NUM_GREGS.
8487
8488 * i386-linux-nat.c (fill_gregset): Remove redundant parentheses.
8489
8490 * i386bsd-nat.c: Include "i386-tdep.h".
8491 (supply_gregset, fill_gregset): Replace usage of NUM_GREGS with
8492 I386_NUM_GREGS.
8493
8494 * i386v-nat.c: Remove copnditional inclusion of <asm/debugreg.h>,
8495 and associated comment. They no longer make any sense, since we
8496 don't use this file anymore on Linux.
8497
8498 * config/i386/tm-i386.h (MAX_NUM_REGS): Removed.
8499 * i386-tdep.c (i386_register_offset, i386_register_size): Use
8500 I386_SSE_NUM_REGS instead of MAX_NUM_REGS for the number of
8501 elements in these arrays.
8502 (_initialize_i386_tdep): Use I386_SSE_NUM_REGS instead of
8503 MAX_NUM_REGS.
8504
8505 2002-06-15 Mark Kettenis <kettenis@gnu.org>
8506
8507 * osabi.h (gdb_osabi): Add GDB_OSABI_LYNXOS.
8508 * osabi.c (gdb_osabi_names): Add entry for "LynxOS".
8509
8510 2002-06-14 Andrew Cagney <cagney@redhat.com>
8511
8512 * gdbarch.sh (DEPRECATED_EXTRACT_RETURN_VALUE): Rename
8513 EXTRACT_RETURN_VALUE.
8514 (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Rename
8515 EXTRACT_STRUCT_VALUE_ADDRESS.
8516 * gdbarch.h, gdbarch.c: Regenerate.
8517
8518 * values.c (value_being_returned): Handle
8519 DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS.
8520 (EXTRACT_RETURN_VALUE): Define as DEPRECATED_EXTRACT_RETURN_VALUE.
8521
8522 * arm-linux-tdep.c (arm_linux_init_abi): Update.
8523 * arm-tdep.c (arm_gdbarch_init): Update.
8524 * avr-tdep.c (avr_gdbarch_init): Update.
8525 * cris-tdep.c (cris_gdbarch_init): Update.
8526 * d10v-tdep.c (d10v_gdbarch_init): Update.
8527 * ia64-tdep.c (ia64_gdbarch_init): Update.
8528 * m68hc11-tdep.c (m68hc11_gdbarch_init): Update.
8529 * rs6000-tdep.c (rs6000_gdbarch_init): Update.
8530 * s390-tdep.c (s390_gdbarch_init): Update.
8531 * sh-tdep.c (sh_gdbarch_init): Update.
8532 * s390-tdep.c (s390_gdbarch_init): Update.
8533 * sparc-tdep.c (sparc_gdbarch_init): Update.
8534 * ns32k-tdep.c (ns32k_gdbarch_init): Update.
8535 * v850-tdep.c (v850_gdbarch_init): Update.
8536 * vax-tdep.c (vax_gdbarch_init): Update.
8537 * x86-64-tdep.c (x86_64_gdbarch_init): Update.
8538 * xstormy16-tdep.c (xstormy16_gdbarch_init): Update.
8539
8540 * config/arc/tm-arc.h: Update.
8541 * config/d30v/tm-d30v.h: Update.
8542 * config/fr30/tm-fr30.h: Update.
8543 * config/h8300/tm-h8300.h: Update.
8544 * config/h8500/tm-h8500.h: Update.
8545 * config/i386/tm-i386.h: Update.
8546 * config/i386/tm-ptx.h: Update.
8547 * config/i386/tm-symmetry.h: Update.
8548 * config/i960/tm-i960.h: Update.
8549 * config/m32r/tm-m32r.h: Update.
8550 * config/m68k/tm-delta68.h: Update.
8551 * config/m68k/tm-linux.h: Update.
8552 * config/m68k/tm-m68k.h: Update.
8553 * config/m88k/tm-m88k.h: Update.
8554 * config/mcore/tm-mcore.h: Update.
8555 * config/mips/tm-mips.h: Update.
8556 * config/mn10200/tm-mn10200.h: Update.
8557 * config/pa/tm-hppa.h: Update.
8558 * config/pa/tm-hppa64.h: Update.
8559 * config/sparc/tm-sp64.h: Update.
8560 * config/sparc/tm-sparc.h: Update.
8561 * config/sparc/tm-sparclet.h: Update.
8562 * config/z8k/tm-z8k.h: Update.
8563
8564 2002-06-14 Andrew Cagney <cagney@redhat.com>
8565
8566 * Makefile.in (i386_linux_tdep_h): Define.
8567 (i386_tdep_h, i387_tdep_h): Define.
8568 (i386-linux-nat.o): Add $(i386_linux_tdep_h),
8569 $(i386_tdep_h) and $(i387_tdep_h).
8570 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8571
8572 2002-06-14 Mark Kettenis <kettenis@gnu.org>
8573
8574 * config/i386/tm-i386.h (START_INFERIOR_TRAPS_EXPECTED): Removed.
8575 Already covered by the default.
8576
8577 * config/i386/tm-i386.h (TARGET_LONG_DOUBLE_FORMAT,
8578 TARGET_LONG_DOUBLE_BIT): Remove. * i386-tdep.c
8579 (i386_gdbarch_init): Initialize long_double_format and long_double
8580 bit.
8581
8582 * config/i386/i386sol2.mt (TDEPFILES): Add i386-sol2-tdep.o and
8583 i386bsd-tdep.o. Remove solib.o, solib-svr4.o and solib-legacy.o.
8584 Move these to ...
8585 * config/i386/i386sol2.mh: ... here.
8586 * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Remove define.
8587 (sigtramp_saved_pc, I386V4_SIGTRAMP_SAVED_PC): Don't #undef.
8588 (SIGCONTEXT_PC_OFFSET): Remove define.
8589 (IN_SIGTRAMP): Remove define.
8590 * i386-sol2-tdep.c: New file.
8591
8592 * config/i386/i386nw.mt (TM_FILE): Change to tm-i386.h.
8593 * config/i386/tm-i386nw.h: Removed.
8594
8595 * config/i386/tm-fbsd.h (STAB_REG_TO_REGNUM,
8596 USE_STRUCT_CONVENTION): Remove defines.
8597 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8598 (get_longjmp_target): Remove prototype.
8599 (IN_SIGTRAMP): Remove define.
8600 (i386bsd_in_sigtramp): Remove prototype.
8601 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8602 function. Update comment accordingly
8603 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8604 (FRAME_SAVED_PC): Remove define.
8605 (i386bsd_frame_saved_pc): Remove prototype.
8606 * config/i386/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC,
8607 GET_LONGJMP_TARGET): Remove defines.
8608 (get_longjmp_target): Remove prototype.
8609 (IN_SIGTRAMP): Remove define.
8610 (i386bsd_in_sigtramp): Remove prototype.
8611 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): Turn into a
8612 function. Update comment accordingly
8613 (SIGTRAMP_START, SIGTRAMP): Adjust definition accordingly.
8614 (FRAME_SAVED_PC): Remove define.
8615 (i386bsd_frame_saved_pc): Remove prototype.
8616 * config/i386/tm-nbsdaout.h (i386nbsd_aout_use_struct_convention):
8617 Remove prototype.
8618 (USE_STRUCT_CONVENTION): Remove prototype.
8619 * i386bsd-nat.c (i386bsd_sigcontext_pc_offset): Remove
8620 declaration.
8621 (_initialize_i386bsd_nat): Revise logic to determine some
8622 constants at compile time when compiling a native GDB. Warn if
8623 things don't match up with what we expect.
8624 * i386bsd-tdep.c (i386bsd_sigtramp_start, i386bsd_sigtramp_end):
8625 Remove variables.
8626 (i386bsd_in_sigtramp): Rename tp i386bsd_pc_in_sigtramp. Rewrite
8627 to use date stored in `struct gdbarch_tdep'.
8628 (i386bsd_sigcontext_offset): Remove varaible.
8629 (i386bsd_sigtramp_saved_pc): Make public. Rewrite to use data
8630 stored in `struct gdbarch_tdep'.
8631 (i386bsd_frame_saved_pc): Make static.
8632 (i386bsd_sigtramp_start, i386bsd_sigtramp_end): New functions.
8633 (i386bsd_sc_pc_offset, i386nbsd_sc_pc_offset,
8634 i386fbsd_sigtramp_start, i386fbsd_sigtramp_end,
8635 i386fbsd4_sc_pc_offset): New variables.
8636 (i386bsd_init_abi, i386nbsd_init_abi, i386nbsdelf_init_abi,
8637 i386fbsdaout_init_abi, i386fbsd_init_abi, i386fbsd4_init_abi): New
8638 functions.
8639 (i386bsd_aout_osabi_sniffer, _initialize_i386bsd_tdep): New
8640 functions.
8641 * i386fbsd-nat.c (_initialize_i386fbsd_nat): Fix type in comment.
8642 Modify the value of i386fbsd_sigtramp_start and
8643 i386fbsd_sigtramp_end instead of i386bsd_sigtramp_start and
8644 i386fbsd_sigtramp_end.
8645 * i386nbsd-tdep.c: (i386nbsd_aout_use_struct_convention): Remove
8646 function.
8647
8648 * config/i386/tm-linux.h (I386_LINUX_ORIG_EAX_REGNUM): Move
8649 define to i386-linux-tdep.h.
8650 (NUM_REGS, MAX_NUM_REGS, REGISTER_BYTES, REGISTER_NAME,
8651 REGISTER_BYTE, REGISTER_RAW_SIZE, STAB_REG_TO_REGNUM): Remove
8652 defines.
8653 (i386_linux_register_name, i386_linux_register_byte,
8654 i386_linux_register_raw_size): Remove prototypes.
8655 (i386_linux_svr4_fetch_link_map_offsets): Remove prototype.
8656 (SVR4_FETCH_LINK_MAP_OFFSETS): Remove define.
8657 (IN_SIGTRAMP, FRAME_CHAIN, FRAME_SAVED_PC, SAVED_PC_AFTER_CALL,
8658 TARGET_WRITE_PC): Remove defines.
8659 (i386_linux_in_sigtramp, i386_linux_frame_chain,
8660 i386_linux_frame_saved_pc, i386_linux_saved_pc_after_call,
8661 i386_linux_write_pc): Remove prototypes.
8662 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8663 (get_longjmp_target): Remove prototype.
8664 * i386-linux-tdep.h: New file.
8665 * i386-linux-nat.c: Include "i386-linux-tdep.h".
8666 * i386-linux-tdep.c: Include "i386-tdep.h" and
8667 "i386-linux-tdep.h".
8668 (i386_linux_register_name, i386_linux_register_byte,
8669 i386_linux_register_raw_size, i386_linux_in_sigtramp,
8670 i386_linux_write_pc, i386_linux_svr4_fetch_link_map_offsets):
8671 Make static.
8672 (i386_linux_init_abi): New function.
8673 (_initialize_i386_linux_tdep): New function.
8674
8675 * config/i386/tm-i386.h (SAVED_PC_AFTER_CALL): Remove define.
8676 (i386_saved_pc_after_call): Remove prototype.
8677 (MAX_NUM_REGS): Increase to deal with Linux's orig_eax "register".
8678 (REGISTER_NAME, STAB_REG_TO_REGNUM, SDB_REG_TO_REGNUM,
8679 DWARF_REG_TO_REGNUM, DWARF2_REG_TO_REGNUM): Remove defines.
8680 (i386_register_name, i386_stab_reg_to_regnum,
8681 i386_dwarf_reg_to_regnum): Remove prototypes.
8682 (SIZEOF_GREGS, SIZEOF_FPU_REGS, SIZEOF_FPU_CTL_REGS,
8683 SIZEOF_SSE_REGS): Remove defines.
8684 (REGISTER_BYTES): Remove define.
8685 (REGISTER_BYTE, REGISTER_RAW_SIZE): Remove defines.
8686 (i386_register_byte, i386_register_raw_size): Remove prototypes.
8687 (FRAME_CHAIN, FRAME_SAVED_PC): Remove defines.
8688 (i386_frame_chain, i386_frame_saved_pc): Remove prototypes.
8689 * config/i386/tm-i386v4.h (FRAME_CHAIN_VALID): Remove define.
8690 (JB_ELEMENT_SIZE, JB_PC, JB_EBX, JB_ESI, JB_EDI, JB_EBP, JB_ESP,
8691 JB_EDX, GET_LONGJMP_TARGET): Remove defines.
8692 (get_longjmp_target): Remove prototype.
8693 (I386V4_SIGTRAMP_SAVED_PC, IN_SIGTRAMP): Remove defines.
8694 (sigtramp_saved_pc): Remove define.
8695 (i386v4_sigtramp_saved_pc): Remove prototype.
8696 * config/i386/tm-go32.h (FRAME_CHAIN,
8697 FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC): Remove defines.
8698 (i386go32_frame_saved_pc): Remove prototype.
8699 (JB_ELEMENT_SIZE, JB_PC, GET_LONGJMP_TARGET): Remove defines.
8700 (get_longjmp_target): Remove prototype.
8701 * i386-tdep.h: Include "osabi.h".
8702 (enum i386_abi): Removed.
8703 (enum struct_return): New enum.
8704 (struct gdbarch_tdep): Remove abi member, add osabi, jb_pc_offset,
8705 struct_return, sigtramp_saved_pc, sigtramp_start, sigtramp_end and
8706 sc_pc_offset members.
8707 (i386_gdbarch_register_os_abi): Remove prototype.
8708 (I386_NUM_GREGS, I386_NUM_FREGS, I386_NUM_XREGS,
8709 I386_SSE_NUM_REGS): New defines.
8710 (I386_SIZEOF_GREGS, I386_SIZEOF_FREGS, I386_SIZEOF_XREGS,
8711 I386_SSE_SIZEOF_REGS): New defines.
8712 (i386_register_name, i386_register_byte, i386_register_raw_size):
8713 New prototypes.
8714 (i386_elf_init_abi, i386_svr4_init_abi): New prototypes.
8715 (i386bsd_sigtramp_saved_pc): New prototype.
8716 * i386-tdep.c: Don't include "elf-bfd.h".
8717 (i386_stab_reg_to_regnum, i386_dwarf_reg_to_regnum,
8718 i386_frame_chain, i386_saved_pc_after_call): Make static.
8719 (i386_frame_saved_pc): Rewrite to call architecture dependent
8720 function to deal with signal handlers. Make static.
8721 (i386go32_frame_saved_pc): Removed.
8722 [GET_LONGJMP_TARGET] (JB_PC, JB_ELEMENT_SIZE, get_longjmp_target):
8723 Removed.
8724 (i386_get_longjmp_target): New function.
8725 (default_struct_convention, pcc_struct_convention,
8726 reg_struct_convention, valid_conventions, struct_convention): New
8727 variables.
8728 (i386_use_struct_convention): New function.
8729 (i386v4_sigtramp_saved_pc): Renamed to
8730 i386_svr4_sigtramp_saved_pc. Made static. Moved.
8731 (i386_pc_in_sigtramp): New function.
8732 (i386_abi_names): Removed.
8733 (ABI_TAG_OS_GNU_LINUX, ABI_TAG_OS_GNU_HURD,
8734 ABI_TAG_OS_GNU_SOLARIS, ABI_TAG_OS_FREEBSD, ABI_TAG_OS_NETBSD):
8735 Removed.
8736 (process_note_sections, i386_elf_abi_from_note, i386_elf_abi,
8737 i386_gdbarch_register_os_abi): Removed.
8738 (struct i386_abi_handler): Removed.
8739 (i386_abi_handler_list): Removed.
8740 (i386_svr4_pc_in_sigtramp, i386_go32_pc_in_sigtramp): New
8741 functions.
8742 (i386_elf_init_abi, i386_svr4_init_abi, i386_go32_init_abi,
8743 i386_nw_init_abi): New functions.
8744 (i386_gdbarch_init): Rewritten to use generic OS ABI framework.
8745 Use set_gdbarch_xxx() calls instead of relying on macros for a
8746 number of calls.
8747 (i386_coff_osabi_sniffer, i386_nlm_osabi_sniffer): New functions.
8748 (_initialize_i386_tdep): Add new 'struct-convcention' command.
8749 Register the various architecture variants defined in this file.
8750
8751 2002-06-14 Daniel Jacobowitz <drow@mvista.com>
8752
8753 * gdbtypes.h (TYPE_FLAG_VARARGS): Update comment.
8754 (struct main_type): Remove arg_types member. Update comments for
8755 struct field.
8756 (TYPE_ARG_TYPES): Remove.
8757 (TYPE_FN_FIELD_ARGS): Update.
8758 (smash_to_method_type): Update prototype.
8759
8760 * c-typeprint.c (cp_type_print_method_args): Take method type
8761 instead of argument list. Use new argument layout. Simplify.
8762 (c_type_print_args): Use new argument layout. Simplify.
8763 (c_type_print_base): Update call to cp_type_print_method_args.
8764 * dwarf2read.c (dwarf2_add_member_fn): Remove unneeded type
8765 argument; use die->type instead. Update call to
8766 smash_to_method_type.
8767 (read_structure_scope): Update call to dwarf2_add_member_fn.
8768 * gdbtypes.c (allocate_stub_method): Update comment.
8769 (smash_to_method_type): Take new NARGS and VARARGS arguments.
8770 Use new argument layout.
8771 (check_stub_method): Use new argument layout. Don't count
8772 void as an argument.
8773 (print_arg_types): Update comments. Use new argument layout.
8774 (recursive_dump_type): Don't print arg_types member.
8775 * hpread.c (hpread_read_struct_type): Use new argument layout.
8776 (fixup_class_method_type): Likewise.
8777 (hpread_type_lookup): Likewise.
8778 * stabsread.c (read_type): Update calls to read_args and
8779 smash_to_method_type.
8780 (read_args): Use new argument layout. Simplify.
8781 * valops.c (typecmp): Use new argument layout. Update parameters
8782 and comments. Simplify.
8783 (hand_function_call): Use new argument layout.
8784 (search_struct_method): Update call to typecmp.
8785 (find_overload_match): Use new argument layout.
8786
8787 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8788
8789 * NEWS: Mention multithreaded debug support for gdbserver.
8790
8791 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8792
8793 * MAINTAINERS: Mention NEWS.
8794
8795 2002-06-13 Daniel Jacobowitz <drow@mvista.com>
8796
8797 * mips-tdep.c (PROC_SYMBOL): Add warning comment.
8798 (struct mips_objfile_private, compare_pdr_entries): New.
8799 (non_heuristic_proc_desc): Read the ".pdr" section if it
8800 is present.
8801
8802 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8803
8804 * arm-tdep.c (arm_push_arguments): Rewrite using a two-pass loop.
8805 (arm_debug): New static variable.
8806 (_initialize_arm_tdep): Add ``set debug arm'' command.
8807
8808 2002-06-12 Andrew Cagney <ac131313@redhat.com>
8809
8810 * Makefile.in (sim_arm_h): Define.
8811 (arm-tdep.o): Add $(sim_arm_h) and $(gdb_assert_h).
8812 * arm-tdep.c: Include "gdb/sim-arm.h" and "gdb_assert.h".
8813 (arm_register_sim_regno): New function, map an internal REGNUM
8814 onto a simulator register number.
8815 (arm_gdbarch_init): Set register_sim_regno.
8816
8817 2002-06-09 Aldy Hernandez <aldyh@redhat.com>
8818
8819 * MAINTAINERS: Add self.
8820
8821 2002-06-11 Jim Blandy <jimb@redhat.com>
8822
8823 * source.c (source_info): Mention whether the symtab has
8824 information about preprocessor macros.
8825
8826 Call the command `info macro', not `show macro'.
8827 * macrocmd.c (info_macro_command): Renamed from `show_macro_command'.
8828 Fix error message.
8829 (_initialize_macrocmd): Register `info_macro_command' in
8830 `infolist', not `showlist'.
8831
8832 2002-06-11 Daniel Jacobowitz <drow@mvista.com>
8833
8834 * mips-tdep.c (MIPS_FPU_TYPE, FP_REGISTER_DOUBLE, MIPS_EABI)
8835 (MIPS_LAST_FP_ARG_REGNUM, MIPS_LAST_ARG_REGNUM)
8836 (MIPS_DEFAULT_SAVED_REGSIZE, MIPS_REGS_HAVE_HOME_P)
8837 (MIPS_DEFAULT_STACK_ARGSIZE, GDB_TARGET_IS_MIPS64)
8838 (MIPS_DEFAULT_MASK_ADDRESS_P): Remove obsolete definitions. Define
8839 unconditionally.
8840 (set_mipsfpu_single_command, set_mipsfpu_double_command)
8841 (set_mipsfpu_none_command): Remove if (GDB_MULTI_ARCH).
8842 (_initialize_mips_tdep): Remove dead code.
8843 * config/mips/tm-irix5.h (MIPS_LAST_ARG_REGNUM)
8844 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8845 * config/mips/tm-irix6.h (MIPS_LAST_ARG_REGNUM)
8846 (MIPS_DEFAULT_STACK_ARGSIZE, MIPS_REGS_HAVE_HOME_P): Remove.
8847 * config/mips/tm-mips.h (MIPS_EABI, MIPS_LAST_ARG_REGNUM,
8848 MIPS_LAST_FP_ARG_REGNUM): Remove.
8849
8850 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8851
8852 * dwarf2cfi.c (unwind_tmp_obstack_init): New.
8853 (unwind_tmp_obstack_free, parse_frame_info)
8854 (update_context, cfi_read_fp, cfi_write_fp)
8855 (cfi_frame_chain, cfi_init_extra_frame_info)
8856 (cfi_virtual_frame_pointer): Use the above function.
8857 * dwarf2cfi.c: Reindented (using 'indent dwarf2cfi.c').
8858
8859 2002-06-11 Corinna Vinschen <vinschen@redhat.com>
8860
8861 * v850-tdep.c (v850_type_is_scalar): New function.
8862 (v850_use_struct_convention): Match current gcc implementation
8863 as close as possible.
8864 (v850_push_arguments): Fix stack_offset handling. Don't write
8865 struct_addr into register. This is done by v850_store_struct_return.
8866 (v850_extract_return_value): Care for structs.
8867 (v850_store_return_value): Ditto.
8868 (v850_store_struct_return): Actually write address.
8869
8870 2002-06-11 Michal Ludvig <mludvig@suse.cz>
8871
8872 * x86-64-tdep.c (x86_64_skip_prologue): Fix to work on functions
8873 without debug information too.
8874
8875 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8876
8877 * gdbarch.sh (PRINT_FLOAT_INFO): Add frame and ui_file parameters.
8878 Make multi-arch pure.
8879 * gdbarch.h, gdbarch.c: Re-generate.
8880 * arm-tdep.c (arm_print_float_info): Update.
8881 * arch-utils.h (default_print_float_info): Update.
8882 * arch-utils.c (default_print_float_info): Update.
8883 * infcmd.c (float_info): Update call.
8884
8885 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8886
8887 * Makefile.in (init.c): Move the call to _initialize_gdbtypes to
8888 the front of the initialize list.
8889
8890 2002-06-10 Andrew Cagney <ac131313@redhat.com>
8891
8892 * infrun.c (struct inferior_status): Replace fields
8893 selected_frame_address and selected_level with field
8894 selected_frame_id.
8895 (save_inferior_status): Update. Use get_frame_id.
8896 (struct restore_selected_frame_args): Delete.
8897 (restore_selected_frame): Update. Use frame_find_by_id.
8898 (restore_inferior_status): Update.
8899
8900 * breakpoint.h (struct breakpoint): Change type of
8901 watchpoint_frame to frame_id.
8902 * breakpoint.c (insert_breakpoints): Use frame_find_by_id. Remove
8903 call to get_current_frame.
8904 (do_enable_breakpoint): Use frame_find_by_id. Remove call to
8905 get_current_frame.
8906 (watchpoint_check): Use frame_find_by_id.
8907
8908 * frame.h (record_selected_frame): Delete declaration.
8909 * stack.c (record_selected_frame): Delete function.
8910
8911 * frame.h (struct frame_id): Define.
8912 (get_frame_id): Declare.
8913 (frame_find_by_id): Declare.
8914 * frame.c (frame_find_by_id): New function.
8915 (get_frame_id): New function.
8916
8917 2002-06-10 Andrey Volkov <avolkov@transas.com>
8918
8919 * ser-e7kpc.c: Fix duplicated define and call of
8920 _initialize_ser_e7000pc
8921
8922 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8923
8924 * signals/signals.c (target_signal_from_host): Fix #ifdef
8925 SIGRTMIN case.
8926 (do_target_signal_to_host): Likewise.
8927
8928 2002-06-09 Daniel Jacobowitz <drow@mvista.com>
8929
8930 * mips-tdep.c (mips_find_abi_section): New function.
8931 (mips_gdbarch_init): Call it.
8932
8933 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8934
8935 * solib-svr4.c (init_fetch_link_map_offsets): Simply return
8936 legacy_fetch_link_map_offsets. Adjust comment to reflect reality
8937 after Andrew's 2002-06-08 gdbarch change.
8938
8939 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8940
8941 * i386-linux-nat.c (suppy_gregset): Don't supply
8942 I386_LINUX_ORIG_EAX_REGNUM if there isn't room for it in GDB's
8943 register cache.
8944 (fill_gregset): Don't fetch it under the same circumstances.
8945
8946 2002-06-09 Andrew Cagney <cagney@redhat.com>
8947
8948 * Makefile.in (callback_h): Define.
8949 (remote_sim_h): Update path to remote-sim.h.
8950 (remote-rdp.o): Add $(callback_h).
8951 (remote-sim.o): Use $(callback_h).
8952 * remote-sim.c: Include "gdb/callback.h" and "gdb/remote-sim.h".
8953 * remote-rdp.c: Include "gdb/callback.h".
8954
8955 2002-06-09 Mark Kettenis <kettenis@gnu.org>
8956
8957 * osabi.h (gdb_osabi): Add GDB_OSABI_GO32 and GDB_OSABI_NETWARE.
8958 * osabi.c (gdb_osabi_names): Add "DJGPP" and "NetWare".
8959
8960 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8961
8962 * sparcl-tdep.c: Use __CYGWIN__ instead of __CYGWIN32__.
8963 * rdi-share/serpardr.c: Ditto.
8964 * rdi-share/unixcomm.c: Ditto.
8965 * rdi-share/serdrv.c: Ditto.
8966 * rdi-share/hostchan.h: Ditto.
8967 * rdi-share/hostchan.c: Ditto.
8968 * rdi-share/host.h: Ditto.
8969 * rdi-share/devsw.c: Ditto.
8970
8971 * objfiles.h: Change type of obj_private to void pointer.
8972 * pa64solib.c: Update copyright. Don't include "assert.h", use
8973 strcmp instead of STREQ, use LONGEST, do not use PTR
8974 * somsolib.c: Ditto.
8975
8976 * config/djgpp/fnchange.lst: Fix problems with bfd/elf32-i386.c,
8977 bfd/elf32-i386qnx.c, bfd/elf32-sh.c, bfd/elf32-sh64-nbsd.c,
8978 bfd/elf64-sh64-nbsd.c bfd/elf64-sh64.c.
8979
8980 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8981
8982 * frame.c (GET_SAVED_REGISTER): Delete macro definition.
8983 (default_get_saved_register): Delete function.
8984 * gdbarch.sh (GET_SAVED_REGISTER): Set default to
8985 generic_unwind_get_saved_register.
8986 * gdbarch.h, gdbarch.c: Re-generate.
8987
8988 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8989
8990 * gdbarch.sh (FRAME_CHAIN_VALID): Set default to
8991 generic_func_frame_chain_valid.
8992 * gdbarch.h, gdbarch.c: Re-generate.
8993 * blockframe.c (generic_func_frame_chain_valid): Only check
8994 PC_IN_CALL_DUMMY when generic dummy frames. Don't worry about
8995 passing FP to PC_IN_CALL_DUMMY.
8996 Fix PR gdb/360.
8997
8998 2002-06-08 Andrew Cagney <ac131313@redhat.com>
8999
9000 * gdbarch.sh (struct gdbarch_data): Add field init_p.
9001 (register_gdbarch_data): Initialize init_p.
9002 (gdbarch_data): Initialize data pointer using the init function.
9003 (init_gdbarch_data): Delete function.
9004 (gdbarch_update_p): Update.
9005 (initialize_non_multiarch): Update.
9006 (struct gdbarch): Add field initialized_p.
9007 * gdbarch.h, gdbarch.c: Re-generate.
9008
9009 2002-06-07 Michal Ludvig <mludvig@suse.cz>
9010
9011 * x86-64-linux-nat.c (x86_64_fxsave_offset): New.
9012 (supply_fpregset, fill_fpregset): Don't call i387_*_fxsave,
9013 better do the things actually here.
9014 * x86-64-tdep.c (x86_64_register_name2nr): New.
9015 (x86_64_register_name): Renamed to x86_64_register_nr2name.
9016 (x86_64_gdbarch_init): Respect the above change.
9017 * x86-64-tdep.h (x86_64_register_name2nr)
9018 (x86_64_register_nr2name): Add prototypes.
9019 * config/i386/x86-64linux.mt (TDEPFILES): Remove i387-tdep.o.
9020
9021 2002-06-06 Michael Snyder <msnyder@redhat.com>
9022
9023 * d10v-tdep.c (d10v_push_arguments): Handle struct_return.
9024 Delete extra braces and re-indent.
9025 (d10v_store_return_value): Char return values
9026 must be shifted over by one byte in R0.
9027 (d10v_extract_return_value): Delete extra braces, re-indent.
9028
9029 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9030
9031 * d10v-tdep.c (d10v_read_sp, d10v_read_fp): Add prototype.
9032 (d10v_register_virtual_type): Make $fp and $sp be pointer to data.
9033 (d10v_integer_to_address): Rewrite.
9034 (d10v_frame_init_saved_regs): When reading fp and sp registers use
9035 the d10v specific functions which take care of converting to the
9036 correct space.
9037
9038 2002-06-06 Elena Zannoni <ezannoni@redhat.com>
9039
9040 * config/djgpp/fnchange.lst: Add testsuite files altivec-abi.c,
9041 altivec-abi.exp, altivec-regs.c, altivec-regs.exp.
9042
9043 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9044
9045 * config/alpha/nm-linux.h: Add "config/" prefix to tm, nm and xm
9046 includes.
9047 * config/tm-linux.h: Ditto.
9048 * config/alpha/tm-alphalinux.h: Ditto.
9049 * config/arm/nm-linux.h, config/arm/tm-linux.h: Ditto.
9050 * config/arm/xm-nbsd.h, config/i386/nm-gnu.h: Ditto.
9051 * config/i386/nm-i386lynx.h, config/i386/nm-i386sol2.h: Ditto.
9052 * config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h: Ditto.
9053 * config/i386/nm-linux.h, config/i386/nm-m3.h: Ditto.
9054 * config/i386/nm-ptx4.h, config/i386/nm-x86-64.h: Ditto.
9055 * config/i386/tm-i386gnu.h, config/i386/tm-i386lynx.h: Ditto.
9056 * config/i386/tm-i386m3.h, config/i386/tm-i386sco5.h: Ditto.
9057 * config/i386/tm-i386v4.h, config/i386/tm-linux.h: Ditto.
9058 * config/i386/tm-ptx4.h, config/i386/tm-vxworks.h: Ditto.
9059 * config/i386/xm-i386v4.h, config/i386/xm-nbsd.h: Ditto.
9060 * config/i386/xm-ptx.h, config/i386/xm-ptx4.h: Ditto.
9061 * config/i960/tm-vx960.h, config/ia64/nm-aix.h: Ditto.
9062 * config/ia64/nm-linux.h, config/ia64/tm-aix.h: Ditto.
9063 * config/ia64/tm-linux.h, config/ia64/xm-aix.h: Ditto.
9064 * config/m68k/nm-linux.h, config/m68k/nm-m68klynx.h: Ditto.
9065 * config/m68k/nm-sysv4.h, config/m68k/tm-linux.h: Ditto.
9066 * config/m68k/tm-m68klynx.h, config/m68k/tm-m68kv4.h: Ditto.
9067 * config/m68k/tm-sun2os4.h, config/m68k/tm-sun3os4.h: Ditto.
9068 * config/m68k/tm-vx68.h, config/m68k/xm-m68kv4.h: Ditto.
9069 * config/m68k/xm-nbsd.h, config/m88k/nm-delta88v4.h: Ditto.
9070 * config/m88k/tm-delta88v4.h, config/m88k/xm-delta88v4.h: Ditto.
9071 * config/mips/nm-irix5.h, config/mips/nm-linux.h: Ditto.
9072 * config/mips/tm-linux.h, config/mips/tm-mips64.h: Ditto.
9073 * config/mips/tm-mipsm3.h, config/mips/tm-mipsv4.h: Ditto.
9074 * config/mips/tm-vxmips.h, config/mips/xm-irix5.h: Ditto.
9075 * config/mips/xm-mipsv4.h, config/ns32k/xm-nbsd.h: Ditto.
9076 * config/pa/nm-hppao.h, config/powerpc/nm-linux.h: Ditto.
9077 * config/powerpc/tm-linux.h, config/powerpc/tm-vxworks.h: Ditto.
9078 * config/powerpc/xm-aix.h, config/rs6000/nm-rs6000ly.h: Ditto.
9079 * config/rs6000/tm-rs6000ly.h, config/rs6000/xm-aix4.h: Ditto.
9080 * config/sh/tm-linux.h, config/sparc/nm-linux.h: Ditto.
9081 * config/sparc/nm-sparclynx.h, config/sparc/nm-sun4sol2.h: Ditto.
9082 * config/sparc/tm-linux.h, config/sparc/tm-sp64linux.h: Ditto.
9083 * config/sparc/tm-sp64sim.h, config/sparc/tm-sparclynx.h: Ditto.
9084 * config/sparc/tm-sun4os4.h, config/sparc/tm-sun4sol2.h: Ditto.
9085 * config/sparc/tm-vxsparc.h, config/sparc/xm-sun4sol2.h: Ditto.
9086
9087 2002-05-04 Aidan Skinner <aidan@velvet.net>
9088
9089 * ada-exp.tab.c: New file
9090 * ada-exp.y: New file
9091 * ada-lang.c: New file
9092 * ada-lang.h: New file
9093 * ada-lex.c: New file
9094 * ada-lex.l: New file
9095 * ada-tasks.c: New file
9096 * ada-typeprint.c: New file
9097 * ada-valprint.c: New file
9098
9099 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9100
9101 * ppcnbsd-tdep.c (ppcnbsd_init_abi): Don't set
9102 use_struct_convention to ppc_sysv_abi_broken_use_struct_convention.
9103
9104 2002-06-02 Jason Thorpe <thorpej@wasabisystems.com>
9105
9106 * config/rs6000/aix4.mt (TDEPFILES): Use ppc-sysv-tdep.o
9107 insetead of ppc-linux-tdep.o.
9108 * config/rs6000/rs6000.mt (TDEPFILES): Likewise.
9109 * config/rs6000/rs6000lynx.mt (TDEPFILES): Likewise.
9110
9111 2002-06-02 Andrew Cagney <ac131313@redhat.com>
9112
9113 2002-05-07 Christian Groessler <chris@groessler.org>
9114 * z8k-tdep.c (z8k_print_register_hook): Fix display of 32 and 64
9115 bit register contents for little endian hosts.
9116
9117 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9118
9119 * MAINTAINERS: Mention that any `HP/UX reader' can be changed by
9120 any maintainer.
9121
9122 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9123
9124 * gdbarch.h: Regenerate.
9125
9126 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9127
9128 * MAINTAINERS: Add everyone to write-after-approval list.
9129
9130 2002-06-01 Andrew Cagney <ac131313@redhat.com>
9131
9132 * stack.c (frame_info): Use frame_register_unwind instead of
9133 saved_regs. Mention when the SP is on the stack or in a register.
9134
9135 * frame.h (frame_register_unwind_ftype): Define. Document.
9136 (struct frame_info): Add field register_unwind and
9137 register_unwind_cache.
9138 (frame_register_unwind): Declare.
9139 (generic_unwind_get_saved_register): Declare.
9140
9141 * frame.c (frame_register_unwind): New function.
9142 (generic_unwind_get_saved_register): New function.
9143
9144 * blockframe.c (generic_call_dummy_register_unwind): New function.
9145 (frame_saved_regs_register_unwind): New function.
9146 (set_unwind_by_pc): New function.
9147 (create_new_frame): New function.
9148 (get_prev_frame): New function.
9149
9150 2002-05-30 Andrew Cagney <ac131313@redhat.com>
9151
9152 * a29k-share/: Delete directory.
9153 * remote-vx29k.c: Delete file.
9154
9155 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9156
9157 * config/djgpp/fnchange.lst: Add ns32knbsd-nat.c, ns32knbsd-tdep.c,
9158 ppcnbsd-nat.c, ppcnbsd-tdep.c, sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9159
9160 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9161
9162 * Makefile.in (ALLDEPFILES): Add sparc64nbsd-nat.c,
9163 sparcnbsd-nat.c, and sparcnbsd-tdep.c.
9164 (sparc64nbsd-nat.o)
9165 (sparcnbsd-nat.o)
9166 (sparcnbsd-tdep.o): New dependency lists.
9167 * NEWS: Note new UltraSPARC NetBSD native configuration.
9168 * configure.host (sparc64-*-netbsd*): New host.
9169 * configure.tgt (sparc-*-netbsdelf*)
9170 (sparc-*-netbsd*): Set gdb_target to nbsd.
9171 (sparc64-*-netbsd*): New target.
9172 * sparc64nbsd-nat.c: New file.
9173 * sparcnbsd-nat.c: New file.
9174 * sparcnbsd-tdep.c: New file.
9175 * sparcnbsd-tdep.h: New file.
9176 * config/sparc/nbsd.mt: New file.
9177 * config/sparc/nbsd64.mh: New file.
9178 * config/sparc/nbsd64.mt: New file.
9179 * config/sparc/nbsdaout.mh (NATDEPFILES): Remove corelow.o,
9180 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9181 (HOST_IPC): Remove.
9182 * config/sparc/nbsdaout.mt: Remove.
9183 * config/sparc/nbsdelf.mh (NATDEPFILES): Remove corelow.o,
9184 sparc-nat.o, and solib.o. Add sparcnbsd-nat.o.
9185 (HOST_IPC): Remove.
9186 * config/sparc/nbsdelf.mt: Remove.
9187 * config/sparc/nm-nbsd.h: Update copyright years. Remove all
9188 sparc-nat.c compatiblity defines.
9189 * config/sparc/tm-nbsd.h: Update copyright years. Include solib.h.
9190 (GDB_MULTI_ARCH): Set to GDB_MULTI_ARCH_PARTIAL.
9191 * config/sparc/tm-nbsd64.h: New file.
9192 * config/sparc/tm-nbsdaout.h: Remove.
9193 * config/sparc/xm-nbsd.h: Remove.
9194
9195 2002-05-30 Jason Thorpe <thorpej@wasabisystems.com>
9196
9197 * Makefile.in (sparc-tdep.o): Add osabi.h to dependency list.
9198 * sparc-tdep.c: Include osabi.h.
9199 (gdbarch_tdep): Add osabi member.
9200 (_initialize_sparc_tdep): Use gdbarch_register.
9201 (sparc_gdbarch_init): Use generic OS ABI framework.
9202 (sparc_dump_tdep): New function.
9203
9204 2002-05-30 Kevin Buettner <kevinb@redhat.com>
9205
9206 * corefile.c (do_captured_read_memory_integer): Return non-zero
9207 result.
9208 (safe_read_memory_integer): Copy result of memory read when
9209 status is non-zero. Also, add comments.
9210
9211 2002-05-20 Jason Thorpe <thorpej@wasabisystems.com>
9212
9213 * Makefile.in (ppc_tdep_h): Define.
9214 (ppc-linux-nat.o)
9215 (ppc-linux-tdep.o)
9216 (rs6000-tdep.o): Use $(ppc_tdep_h).
9217 (ppc-sysv-tdep.o)
9218 (ppcnbsd-nat.o)
9219 (ppcnbsd-tdep.o): New dependency lists.
9220 * ppc-tdep.h: Use generic OS ABI framework.
9221 * ppc-linux-tdep.c (_initialize_ppc_linux_tdep)
9222 (ppc_linux_init_abi): New functions.
9223 (ppc_sysv_abi_broken_use_struct_convention)
9224 (ppc_sysv_abi_use_struct_convention)
9225 (ppc_sysv_abi_push_arguments): Move to...
9226 * ppc-sysv-tdep.c: ...here.
9227 * ppcnbsd-nat.c: Don't include gdbcore.h and regcache.h.
9228 * rs6000-tdep.c (process_note_abi_tag_sections)
9229 (get_elfosabi): Remove.
9230 (rs6000_gdbarch_init): Use generic OS ABI framework.
9231 (rs6000_dump_tdep): New function.
9232 (_initialize_rs6000_tdep): Use gdbarch_register.
9233 * config/powerpc/linux.mt (TDEPFILES): Add ppc-sysv-tdep.o.
9234 * config/powerpc/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
9235 * config/powerpc/aix.mt (TDEPFILES): Use ppc-sysv-tdep.o instead
9236 of ppc-linux-tdep.o.
9237 * config/powerpc/nbsd.mt (TDEPFILES): Likewise.
9238 * config/powerpc/ppc-eabi.mt (TDEPFILES): Likewise.
9239 * config/powerpc/ppc-sim.mt (TDEPFILES): Likewise.
9240 * config/powerpc/ppcle-eabi.mt (TDEPFILES): Likewise.
9241 * config/powerpc/ppcle-sim.mt (TDEPFILES): Likewise.
9242 * config/powerpc/vxworks.mt (TDEPFILES): Likewise.
9243
9244 2002-05-29 Jim Blandy <jimb@redhat.com>
9245
9246 * macroscope.c (default_macro_scope): Put `void' in empty argument
9247 list.
9248
9249 2002-05-29 Andrew Cagney <ac131313@redhat.com>
9250
9251 * Makefile.in (arch-utils.o): Add $(sim_regno_h).
9252 * arch-utils.c: Include "sim-regno.h".
9253 * gdbarch.sh: Don't include "sim-regno.h".
9254 * gdbarch.h, gdbarch.c: Regenerate.
9255 * sim-regno.h (legacy_register_sim_regno): Move declaration from
9256 here.
9257 * arch-utils.h (legacy_register_sim_regno): To here.
9258 * remote-sim.c (legacy_register_sim_regno): Move function from
9259 here.
9260 * arch-utils.c (legacy_register_sim_regno): To here.
9261
9262 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9263
9264 * sim-regno.h: New file.
9265 * Makefile.in (sim_regno_h): Define.
9266 (d10v-tdep.o, remote-sim.o): Add dependency on $(sim_regno_h).
9267 * remote-sim.c: Include "sim-regno.h" and "gdb_assert.h".
9268 (legacy_register_sim_regno): New function.
9269 (one2one_register_sim_regno): New function.
9270 (gdbsim_fetch_register): Rewrite.
9271 (gdbsim_store_register): Only store a register when
9272 REGISTER_SIM_REGNO is valid.
9273 * d10v-tdep.c: Include "sim-regno.h".
9274 (d10v_ts2_register_sim_regno): Add legacy_regiter_sim_regno check.
9275 (d10v_ts3_register_sim_regno): Ditto.
9276 * gdbarch.sh: Include "sim-regno.h".
9277 (REGISTER_SIM_REGNO): Set default to legacy_register_sim_regno.
9278 * gdbarch.h, gdbarch.c: Regenerate.
9279 * arch-utils.h (default_register_sim_regno): Delete declaration.
9280 * arch-utils.c (default_register_sim_regno): Delete function.
9281
9282 2002-05-28 Jason Thorpe <thorpej@wasabisystems.com>
9283
9284 * ppcnbsd-nat.c: Rewrite.
9285 * ppcnbsd-tdep.c: New file.
9286 * ppcnbsd-tdep.h: New file.
9287 * config/powerpc/nbsd.mh (NATDEPFILES): Remove corelow.o,
9288 solib.o, and solib-svr4.o.
9289 * config/powerpc/nbsd.mt (TDEPFILES): Add ppcnbsd-tdep.o,
9290 nbsd-tdep.o, and corelow.o.
9291
9292 2002-05-28 Andrew Cagney <ac131313@redhat.com>
9293
9294 * MAINTAINERS (--enable-gdb-build-warnings): Rewrite script to use
9295 `tr' and `sed'. Mention that `broken' targets are not expected to
9296 build.
9297
9298 2002-05-27 Michal Ludvig <mludvig@suse.cz>
9299
9300 * x86-64-tdep.c (x86_64_skip_prologue): Remove obsolete note.
9301 Let PC point right after the prologue before looking up symbols.
9302
9303 2002-05-27 Martin M. Hunt <hunt@redhat.com>
9304
9305 * i386-tdep.c (i386_register_virtual_type): Return
9306 builtin_type_vec128i for SSE registers.
9307
9308 * gdbtypes.h (builtin_type_vec128i): Declare.
9309
9310 * gdbtypes.c (build_builtin_type_vec128i): New function.
9311 (builtin_type_v2_double, builtin_type_v4_int64): New types.
9312 (builtin_type_vec128i): New type for SSE2 128-bit registers.
9313 (build_gdbtypes): Initialize new builtin vector types.
9314 (_initialize_gdbtypes): Register new vector types with gdbarch.
9315
9316 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9317
9318 * MAINTAINERS: ns32k is not longer an obsolete candidate,
9319 since it has been multi-arch'd.
9320 * NEWS: Note that ns32k-*-* is now partial multi-arch.
9321 Move Alpha and VAX multi-arch news entries to same section
9322 as other multi-arch news.
9323
9324 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9325
9326 * ns32k-tdep.c: include gdbtypes.h, inferior.h, regcache.h,
9327 target.s, arch-utils.h, ns32k-tdep.h. Make many functions
9328 static. Rename some register numbers to put them in ns32k-tdep
9329 private namespace.
9330 (ns32k_get_saved_register, ns32k_gdbarch_init_32082,
9331 ns32k_gdbarch_init_32382, ns32k_gdbarch_init, ns32k_dump_tdep): New
9332 functions.
9333 (_initialize_ns32k_tdep): Use gdbarch_register.
9334 * ns32k-tdep.h: New file.
9335 * ns32knbsd-tdep.c: New file.
9336 * config/ns32k/nbsdaout.mt (TDEPFILES): Add ns32knbsd-tdep.o.
9337 * config/ns32k/tm-nbsd.h: Include "ns32k/tm-ns32k.h".
9338 (IN_SOLIB_CALL_TRAMPOLINE, REGISTER_NAME, NUM_REGS,
9339 REGISTER_BYTES, REGISTER_BYTE): Remove.
9340 * config/ns32k/tm-ns32k.h: New file.
9341 * config/ns32k/tm-umax.h: Remove.
9342
9343 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9344
9345 * ns32k-tdep.c (ns32k_saved_pc_after_call,
9346 ns32k_store_struct_return, ns32k_extract_return_value,
9347 ns32k_store_return_value, ns32k_extract_struct_value_address): New
9348 functions.
9349 * config/ns32k/tm-umax.h (SAVED_PC_AFTER_CALL): Define as
9350 ns32k_saved_pc_after_call.
9351 (STORE_STRUCT_RETURN): Define as ns32k_store_struct_return.
9352 (EXTRACT_RETURN_VALUE): Define as ns32k_extract_return_value.
9353 (STORE_RETURN_VALUE): Define as ns32k_store_return_value.
9354 (EXTRACT_STRUCT_VALUE_ADDRESS): Define as
9355 ns32k_extract_struct_value_address.
9356
9357 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9358
9359 * ns32k-tdep.c (ns32k_call_dummy_words, sizeof_ns32k_call_dummy_words,
9360 ns32k_fix_call_dummy): New.
9361 * config/ns32k/tm-umax.h (CALL_DUMMY_WORDS): Define as
9362 ns32k_call_dummy_words.
9363 (SIZEOF_CALL_DUMMY_WORDS): Define as sizeof_ns32k_call_dummy_words.
9364 (CALL_DUMMY, CALL_DUMMY_LENGTH, CALL_DUMMY_ADDR,
9365 CALL_DUMMY_NARGS): Remove.
9366 (FIX_CALL_DUMMY): Define as ns32k_fix_call_dummy.
9367
9368 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9369
9370 * ns32k-tdep.c (ns32k_breakpoint_from_pc, ns32k_frame_chain,
9371 ns32k_frame_saved_pc, ns32k_frame_args_address,
9372 ns32k_frame_locals_address, ns32k_frame_init_saved_regs,
9373 ns32k_push_dummy_frame, ns32k_pop_frame): New functions.
9374 * config/ns32k/tm-nbsd.h (FRAME_SAVED_PC): Remove.
9375 * config/ns32k/tm-umax.h (INNER_THAN): Define as core_addr_lessthan.
9376 (BREAKPOINT_FROM_PC): Define as ns32k_breakpoint_from_pc.
9377 (BREAKPOINT): Remove..
9378 (FRAME_CHAIN): Define as ns32k_frame_chain.
9379 (FRAME_SAVED_PC): Define as ns32k_frame_saved_pc.
9380 (FRAME_ARGS_ADDRESS): Define as ns32k_frame_args_address.
9381 (FRAME_LOCALS_ADDRESS): Define as ns32k_frame_locals_address.
9382 (FRAME_FIND_SAVED_REGS): Remove.
9383 (FRAME_INIT_SAVED_REGS): Define as ns32k_frame_init_saved_regs.
9384 (PUSH_DUMMY_FRAME): Define as ns32k_push_dummy_frame.
9385 (POP_FRAME): Define as ns32k_pop_frame.
9386
9387 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9388
9389 * ns32k-tdep.c (ns32k_register_byte_32082,
9390 ns32k_register_byte_32382, ns32k_register_raw_size,
9391 ns32k_register_virtual_size, ns32k_register_virtual_type): New
9392 functions.
9393 * config/ns32k/tm-nbsd.h (REGISTER_BYTE): Define as
9394 ns32k_register_byte_32382.
9395 * config/ns32k/tm-umax.h: Update copyright years.
9396 (REGISTER_BYTE): Define as ns32k_register_byte_32082.
9397 (REGISTER_RAW_SIZE): Define as ns32k_register_raw_size.
9398 (REGISTER_VIRTUAL_SIZE): Define as ns32k_register_virtual_size.
9399 (REGISTER_VIRTUAL_TYPE): Define as ns32k_register_virtual_type.
9400 (ns32k_get_enter_addr): Fix prototype.
9401
9402 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
9403
9404 * ns32k-tdep.c: Update copyright years.
9405 (ns32k_register_name_32082): New function.
9406 (ns32k_register_name_32382): Ditto.
9407 * config/ns32k/tm-nbsd.h (REGISTER_NAMES): Remove.
9408 (REGISTER_NAME): Define as ns32k_register_name_32382.
9409 * config/ns32k/tm-umax.h (REGISTER_NAMES): Remove.
9410 (REGISTER_NAME): Define as ns32k_register_name_32082.
9411
9412 2002-05-24 Jim Blandy <jimb@redhat.com>
9413
9414 * dwarf2read.c (free_line_header): Use xfree, not free.
9415
9416 2002-05-24 Jason Thorpe <thorpej@wasabisystems.com>
9417
9418 * config/djgpp/fnchange.lst: Add alphabsd-nat.c,
9419 alphabsd-tdep.c, mipsnbsd-nat.c, and mipsnbsd-tdep.c
9420
9421 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9422
9423 * PROBLEMS: Mention s390 and FreeBSD 4.4 build problems.
9424
9425 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9426
9427 From Ross Alexander at NEC Europe:
9428 * config/pa/hpux11w.mh (NATDEPFILES): Add solib.o.
9429
9430 2002-05-23 Michael Snyder <msnyder@redhat.com>
9431
9432 * cli/cli-dump.c (restore_command): Use parse_and_eval_long
9433 for input, rather than parse_and_eval_address.
9434
9435 2002-05-23 Andrew Cagney <ac131313@redhat.com>
9436
9437 * d10v-tdep.c: Include "gdb/sim-d10v.h" instead of "sim-d10v.h".
9438 * Makefile.in (sim_d10v_h): Update definition.
9439
9440 2002-05-24 Andrew Cagney <cagney@redhat.com>
9441
9442 * d10v-tdep.c (d10v_gdbarch_init): Revert old code included in
9443 change `2002-05-22 Michael Snyder' below.
9444 (d10v_push_arguments): Ditto.
9445 (d10v_extract_return_value): Ditto.
9446
9447 2002-05-23 Jim Blandy <jimb@redhat.com>
9448
9449 * macrotab.c (check_for_redefinition): Don't complain if the new
9450 definition is the same as the previous one. Take more arguments
9451 to allow the comparison.
9452 (macro_define_object, macro_define_function): Pass more arguments
9453 to check_for_redefinition.
9454
9455 2002-05-22 Michael Snyder <msnyder@redhat.com>
9456
9457 * d10v-tdep.c: Change a few macros to enums for ease of debugging.
9458 (d10v_frame_chain_valid): Add PC_IN_CALL_DUMMY clause.
9459 (d10v_frame_saved_pc): Add PC_IN_CALL_DUMMY clause.
9460 (d10v_frame_chain): Bail immediately if PC_IN_CALL_DUMMY.
9461 Don't bail if return_pc is PC_IN_CALL_DUMMY.
9462 Add a temp variable to save a call (and a memory read).
9463 (d10v_init_extra_frame_info): Get fi->pc from callee's return_pc
9464 if possible (so that PC_IN_CALL_DUMMY will work).
9465
9466 2002-05-22 Corinna Vinschen <vinschen@redhat.com>
9467
9468 * MAINTAINERS: Remove status `OBSOLETE' from v850.
9469
9470 2002-05-22 Michal Ludvig <mludvig@suse.cz>
9471
9472 * dwarf2cfi.c (frame_state_for): Added safety check for a valid
9473 fde->cie_ptr.
9474 (dwarf2_build_frame_info): Corrected handling of eh_frame.
9475 (dwarf2_build_frame_info): Add offset to fde->initial_location
9476 so that frames of shared libraries are mapped correctly.
9477 (execute_stack_op): Change type of 'result' from ULONGEST to
9478 CORE_ADDR.
9479
9480 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9481
9482 * config/alpha/tm-nbsd.h: Include solib.h.
9483
9484 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9485
9486 * alphanbsd-tdep.c (alphanbsd_sigtramp_offset): Don't make
9487 assumptions about the host's byte order.
9488
9489 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9490
9491 * Makefile.in (alphanbsd-tdep.o, shnbsd-tdep.o): Add solib-svr4.h
9492 to dependency list.
9493 * alphanbsd-tdep.c: Include solib-svr4.h.
9494 * shnbsd-tdep.c: Ditto.
9495
9496 2002-05-22 Jason Thorpe <thorpej@wasabisystems.com>
9497
9498 * Makefile.in (armnbsd-tdep.o): Add solib-svr4.h and
9499 nbsd-tdep.h to dependency list.
9500 * configure.host (arm*-*-netbsdelf*, arm*-*-netbsd*,
9501 i[3456]86-*-netbsdaout*, i[3456]86-*-netbsd*, m68*-*-netbsd*,
9502 ns32k-*-netbsd*, sparc-*-netbsdaout*, sparc-*-netbsd*): Use
9503 nbsdaout.mh and nbsdelf.mh consistently.
9504 * configure.tgt (i[3456]86-*-netbsd*, m68*-*-netbsd*,
9505 ns32k-*-netbsd*, sparc-*-netbsdelf*, sparc-*-netbsd*) Use
9506 nbsdaout.mt and nbsdelf.mh consistently.
9507 * armnbsd-tdep.c: Include nbsd-tdep.h and solib-svr4.h.
9508 (arm_netbsd_elf_init_abi): Use set_solib_svr4_fetch_link_map_offsets
9509 to set nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
9510 * config/nm-nbsd.h: Garbage-collect SVR4_SHARED_LIBS. Move
9511 a.out shared library stuff from here...
9512 * config/nm-nbsdaout.h: ...to here.
9513 * config/tm-nbsd.h: Remove.
9514 * config/alpha/nm-nbsd.h (SVR4_SHARED_LIBS): Remove.
9515 * config/arm/nbsd.mh: Remove.
9516 * config/arm/nbsd.mt (TDEPFILES): Remove solib-sunos.o, add
9517 nbsd-tdep.o.
9518 * config/arm/nbsdaout.mh: New file.
9519 * config/arm/nbsdelf.mh: New file.
9520 * config/arm/nm-nbsdaout.h: New file.
9521 * config/i386/nbsd.mh: Remove.
9522 * config/i386/nbsd.mt: Remove.
9523 * config/i386/nbsdaout.mh: New file.
9524 * config/i386/nbsdaout.mt: New file.
9525 * config/i386/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9526 * config/i386/nbsdelf.mt (TM_FILE): Use tm-nbsd.h.
9527 * config/i386/nm-nbsd.h (REGISTER_U_ADDR,
9528 i386_register_u_addr): Remove.
9529 * config/i386/nm-nbsdaout.h: New file.
9530 * config/i386/nm-nbsdelf.h: Remove.
9531 * config/i386/tm-nbsd.h: Don't include config/tm-nbsd.h.
9532 (USE_STRUCT_CONVENTION): Remove.
9533 * config/i386/tm-nbsdaout.h: New file.
9534 * config/i386/tm-nbsdelf.h: Remove.
9535 * config/m68k/nbsd.mh: Remove.
9536 * config/m68k/nbsd.mt: Remove.
9537 * config/m68k/nbsdaout.mh: New file.
9538 * config/m68k/nbsdaout.mt: New file.
9539 * config/m68k/nm-nbsd.h: Use config/nm-nbsd.h.
9540 * config/m68k/nm-nbsdaout.h: New file.
9541 * config/m68k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9542 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9543 * config/ns32k/nbsd.mh: Remove.
9544 * config/ns32k/nbsd.mt: Remove.
9545 * config/ns32k/nbsdaout.mh: New file.
9546 * config/ns32k/nbsdaout.mt: New file.
9547 * config/ns32k/nm-nbsd.h: Include config/nm-nbsd.h.
9548 * config/ns32k/nm-nbsdaout.h: New file.
9549 * config/ns32k/tm-nbsd.h: Don't include config/tm-nbsd.h.
9550 (IN_SOLIB_CALL_TRAMPOLINE): Define.
9551 * config/powerpc/nm-nbsd.h: Include config/nm-nbsd.h.
9552 (SVR4_SHARED_LIBS): Remove.
9553 * config/powerpc/tm-nbsd.h: Dont' include config/tm-nbsd.h.
9554 * config/sparc/nbsd.mh: Remove.
9555 * config/sparc/nbsd.mt: Remove.
9556 * config/sparc/nbsdaout.mh: New file.
9557 * config/sparc/nbsdaout.mt: New file.
9558 * config/sparc/nbsdelf.mh (NAT_FILE): Use nm-nbsd.h.
9559 * config/sparc/nbsdelf.mt: New file.
9560 * config/sparc/nm-nbsdaout.h: New file.
9561 * config/sparc/nm-nbsdelf.h: Remove.
9562 * config/sparc/tm-nbsd.h: Don't include config/tm-nbsd.h.
9563 * config/sparc/tm-nbsdaout.h: New file.
9564
9565 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9566
9567 * Makefile.in (ALLDEPFILES): Add mipsnbsd-nat.c and
9568 mipsnbsd-tdep.c
9569 (mipsnbsd-nat.o, mipsnbsd-tdep.o): New dependency lists.
9570
9571 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9572
9573 * Makefile.in (ALLDEPFILES): Add shnbsd-tdep.c and
9574 shnbsd-nat.c.
9575 (shnbsd-tdep.o, shnbsd-nat.o): New dependency lists.
9576
9577 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9578
9579 * NEWS: Note new MIPS NetBSD native configuration.
9580 * configure.host (mips*-*-netbsd*): New host.
9581 * configure.tgt (mips*-*-netbsd*): New target.
9582 * mipsnbsd-nat.c: New file.
9583 * mipsnbsd-tdep.c: New file.
9584 * mipsnbsd-tdep.h: New file.
9585 * config/mips/nbsd.mh: New file.
9586 * config/mips/nbsd.mt: New file.
9587 * config/mips/nm-nbsd.h: New file.
9588 * config/mips/tm-nbsd.h: New file.
9589
9590 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
9591
9592 * Makefile.in (SFILES): Add osabi.c.
9593 (COMMON_OBS): Add osabi.o.
9594 (osabi.o): New dependency list.
9595 * osabi.c: New file.
9596 * osabi.h: New file.
9597 * doc/gdbint.texinfo: Document new generic OS ABI framework.
9598
9599 * Makefile.in (alpha_tdep_h): Define and use instead of
9600 alpha-tdep.h.
9601 * alpha-tdep.c (alpha_abi_names, process_note_abi_tag_sections,
9602 get_elfosabi, alpha_abi_handler_list, alpha_gdbarch_register_os_abi):
9603 Remove.
9604 (alpha_gdbarch_init, alpha_dump_tdep): Use generic OS ABI framework.
9605 * alpha-tdep.h: Include osabi.h.
9606 (alpha_abi): Remove.
9607 (gdbarch_tdep): Use generic OS ABI framework.
9608 * alpha-linux-tdep.c (_initialize_alpha_linux_tdep): Use
9609 gdbarch_register_osabi.
9610 * alpha-osf1-tdep.c (_initialize_alpha_osf1_tdep): Likewise.
9611 * alphafbsd-tdep.c (_initialize_alphafbsd_tdep): Likewise.
9612 * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Likewise.
9613
9614 * Makefile.in (sh_tdep_h): Add osabi.h.
9615 * sh-tdep.h (sh_osabi): Remove.
9616 (gdbarch_tdep): Use generic OS ABI framework.
9617 * sh-tdep.c (sh_osabi_names, process_note_abi_tag_sections,
9618 sh_osabi_handler_list, sh_gdbarch_register_os_abi): Remove.
9619 (sh_gdbarch_init, sh_dump_tdep): Use generic OS ABI framework.
9620 * shnbsd-tdep.c (_initialize_shnbsd_tdep): Use gdbarch_register_osabi.
9621
9622 * Makefile.in (arm_tdep_h): Define and use instead of arm-tdep.h.
9623 * arm-linux-tdep.c (_initialize_arm_linux_tdep): Use
9624 gdbarch_register_osabi.
9625 * arm-tdep.c (arm_abi_names, process_note_abi_tag_sections,
9626 arm_abi_handler_list, arm_gdbarch_register_os_abi): Remove.
9627 (get_elfosabi): Rename to...
9628 (arm_elf_osabi_sniffer): ...this. Adjust to use generic OS
9629 ABI framework support routines.
9630 (arm_gdbarch_init): Use generic OS ABI framework.
9631 (arm_dump_tdep): Likewise.
9632 (_initialize_arm_tdep): Likewise.
9633 * arm-tdep.h: Include osabi.h.
9634 (arm_abi): Remove.
9635 (gdbarch_tdep): Remove arm_abi and abi_name members. Add
9636 osabi member.
9637 (arm_gdbarch_register_os_abi): Remove prototype.
9638 * armnbsd-tdep.c (arm_netbsd_aout_osabi_sniffer): New function.
9639 (_initialize_arm_netbsd_tdep): Use gdbarch_register_osabi.
9640
9641 * Makefile.in (mips-tdep.o): Add osabi.h to dependency list.
9642 * mips-tdep.c: Include osabi.h.
9643 (gdbarch_tdep, mips_gdbarch_init, mips_dump_tdep): Use generic
9644 OS ABI framework.
9645
9646 2002-05-20 Kazu Hirata <kazu@cs.umass.edu>
9647
9648 * h8300-tdep.c: Fix formatting.
9649
9650 2002-05-20 Elena Zannoni <ezannoni@redhat.com>
9651
9652 * rs6000-tdep.c (rs6000_do_registers_info): Simplify code for
9653 printing vector registers.
9654
9655 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9656
9657 From Fernando Nasser:
9658 * remote.c (remote_async_open_1): Re-throw the exception when the
9659 connection fails.
9660 (remote_cisco_open): Ditto.
9661 (remote_open_1): Ditto.
9662
9663 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9664
9665 * remote.c (remote_start_remote_dummy): Add uiout parameter.
9666 (remote_start_remote): Add uiout parameter. Pass through to
9667 remote_start_remote_dummy.
9668 (remote_open_1): Use catch_exception instead of catch_errors.
9669 (remote_async_open_1): Ditto.
9670 (remote_cisco_open): Ditto.
9671
9672 2002-05-19 Andrew Cagney <ac131313@redhat.com>
9673
9674 * remote.c (remote_start_remote): Replace PTR with void pointer.
9675 (sigint_remote_twice_token, sigint_remote_token): Ditto. Make
9676 static.
9677
9678 2002-05-18 Andrew Cagney <ac131313@redhat.com>
9679
9680 * gdb_indent.sh: Allow the script to be run in the sim directory.
9681
9682 2002-05-18 Mark Kettenis <kettenis@gnu.org>
9683
9684 * config/i386/nm-cygwin.h (NO_PTRACE_H): Remove define.
9685 * config/i386/nm-go32.h (NO_PTRACE_H): Remove define.
9686
9687 * corelow.c (core_open): Only call set_gdbarch_from_file if
9688 exec_bfd is NULL.
9689
9690 2002-05-17 Andrey Volkov <avolkov@transas.com>
9691
9692 * h8300-tdep.c: Add support of EXR register
9693 * config/h8300/tm-h8300.h: Ditto.
9694
9695 2002-05-17 Andrey Volkov <avolkov@transas.com>
9696
9697 * h8300-tdep.c: Add additional CCR flags (I,UI,H,U)
9698
9699 2002-05-17 Andrey Volkov <avolkov@transas.com>
9700
9701 * h8300-tdep.c: Change literal regnums to REGNO.
9702
9703 2002-05-17 Jim Blandy <jimb@redhat.com>
9704
9705 * NEWS: Note addition of macro support.
9706
9707 Expand preprocessor macros in C expressions.
9708 * c-lang.h: #include "macroexp.h", for macro_lookup_ftype.
9709 (scan_macro_expansion, scanning_macro_expansion,
9710 finished_macro_expansion): New function declarations.
9711 (expression_macro_lookup_func, expression_macro_lookup_baton): New
9712 variable declarations.
9713 * parser-defs.h (expression_context_pc): New declaration.
9714 * parse.c (expression_context_pc): New variable.
9715 (parse_exp_1): Set expression_context_pc, as well as
9716 expression_context_block.
9717 * c-exp.y (yylex): If we're not already reading the result of a
9718 macro expansion, try to macro-expand the next token. When we're
9719 done scanning a macro expansion, switch back to the mainline text.
9720 Commas and `if's in a macro's expansion don't terminate the input.
9721 * c-lang.c: #include "macroscope.h" and "gdb_assert.h".
9722 (macro_original_text, macro_expanded_text,
9723 expression_macro_lookup_func, expression_macro_lookup_baton): New
9724 variables.
9725 (scan_macro_expansion, scanning_macro_expansion,
9726 finished_macro_expansion, scan_macro_cleanup, null_macro_lookup,
9727 c_preprocess_and_parse): New functions.
9728 (c_language_defn, cplus_language_defn, asm_language_defn): Call
9729 c_preprocess_and_parse, instead of c_parse.
9730 * Makefile.in (c_lang_h): Note that this #includes macroexp.h.
9731 (c-lang.o): Note dependency on macroscope.h and gdb_assert.h.
9732
9733 Fri May 17 14:26:19 2002 J"orn Rennecke <joern.rennecke@superh.com>
9734
9735 * sh-tdep.c (gdb_print_insn_sh64): Delete.
9736 (gdb_print_insn_sh): Just set info->endian and use print_insn_sh.
9737 (sh_gdbarch_init): Always use gdb_print_insn_sh.
9738
9739 2002-05-17 Corinna Vinschen <vinschen@redhat.com>
9740
9741 * NEWS: Add section for multi-arched targets. Add v850 to that section.
9742
9743 2002-05-17 Jason Thorpe <thorpej@wasabisystems.com>
9744
9745 * Makefile.in (sh_tdep_h): Define and use.
9746 * config/sh/tm-sh.h (sh_osabi, sh_abi, gdbarch_tdep,
9747 register enum): Move to...
9748 * * sh-tdep.h: ...here.
9749 * sh-tdep.c: Include sh-tdep.h.
9750 * sh3-rom.c: Likewise.
9751 * shnbsd-tdep.c: Likewise.
9752
9753 2002-05-16 Michael Snyder <msnyder@redhat.com>
9754
9755 * arm-tdep.c: Spelling fix in comment.
9756
9757 2002-05-16 Jim Blandy <jimb@redhat.com>
9758
9759 Add commands for manually expanding macros and showing their
9760 definitions.
9761 * macrocmd.c, macroscope.c, macroscope.h: New files.
9762 * Makefile.in (SFILES): Add macrocmd.c, macroscope.c.
9763 (macroscope_h): New variable.
9764 (HFILES_NO_SRCDIR): Add macroscope.h.
9765 (COMMON_OBS): Add macrocmd.o, macroscope.o.
9766 (macroscope.o, macrocmd.o): New rules.
9767
9768 Teach the Dwarf 2 reader to read macro information.
9769 * dwarf2read.c: #include "macrotab.h".
9770 (dwarf_macinfo_buffer): New variable.
9771 (struct dwarf2_pinfo): New members: dwarf_macinfo_buffer, and
9772 dwarf_macinfo_size.
9773 (DWARF_MACINFO_BUFFER, DWARF_MACINFO_SIZE): New macros.
9774 (dwarf2_missing_macinfo_section, dwarf2_macros_too_long,
9775 dwarf2_macros_not_terminated, dwarf2_macro_outside_file,
9776 dwarf2_macro_unmatched_end_file, dwarf2_macro_malformed_definition,
9777 dwarf2_macro_spaces_in_definition): New complaints.
9778 (dwarf2_has_info): Initialize dwarf_macinfo_offset.
9779 (dwarf2_build_psymtabs): Read the .dwarf_macinfo section.
9780 (dwarf2_build_psymtabs_hard): Record the buffer and its size in
9781 the partial symbol table.
9782 (psymtab_to_symtab_1): Set the macinfo buffer and size globals
9783 from what's recorded in the partial symbol table.
9784 (read_file_scope): If the compilation unit has a
9785 `DW_AT_macro_info' attribute, read its macro information.
9786 * Makefile.in (dwarf2read.o): Depend on macrotab.h.
9787
9788 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9789
9790 Fix PR gdb/546
9791 * ser-tcp.c: Don't include <netinet/udp.h>.
9792
9793 2002-05-16 Stephane Carrez <stcarrez@nerim.fr>
9794
9795 * MAINTAINERS: Update my email address.
9796
9797 2002-05-16 Richard Earnshaw <rearnsha@arm.com>
9798
9799 * config/arm/nm-nbsd.h: Use "config/nm-nbsd.h" to include generic
9800 include file of the same name.
9801
9802 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9803
9804 * configure.tgt: Mark v850 as multi-arched.
9805 * config/v850/tm-v850.h: Remove file.
9806 * config/v850/v850.mt: Eliminate TM_FILE.
9807
9808 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9809
9810 * v850-tdep.c: Full multi-arch.
9811 * config/v850/tm-v850.h: Eliminate or move to v850-tdep.c everything.
9812 Define GDB_MULTI_ARCH to 2.
9813
9814 2002-05-16 Pierre Muller <muller@ics.u-strasbg.fr>
9815
9816 * p-exp.y (current_type): New static variable.
9817 Carries the type of the expression at the position that is parsed.
9818 (push_current_type, pop_current_type): Two new functions. Used
9819 to store/restore current_type in expression on specific tokens.
9820 (search_field): New static variable. Set to one after parsing a point
9821 as at that point only a FIELDNAME token should be searched.
9822 (FIELDNAME): New token. After a point only a token belonging to
9823 current_type type definition is allowed.
9824 (all over token rules): reset and change current_type according
9825 to rules.
9826 (exp '[' rule): insert implicit array index field if
9827 exp is a pascal string type.
9828
9829 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9830
9831 * v850-tdep.c: Fix comment for v850_scan_prologue. Remove extra
9832 frame info. Use frame_info's saved_regs instead of matching member
9833 in extra_frame_info throughout.
9834 (v850_frame_init_saved_regs): New function.
9835 (v850_init_extra_frame_info): Move most functionality into
9836 v850_frame_init_saved_regs().
9837 * config/v850/tm-v850.h (EXTRA_FRAME_INFO): Remove definition.
9838 (v850_frame_find_saved_regs): Remove declaration.
9839 (FRAME_FIND_SAVED_REGS): Remove definition.
9840 (v850_frame_init_saved_regs): Add declaration.
9841 (FRAME_INIT_SAVED_REGS): Add definition.
9842
9843 2002-05-16 Corinna Vinschen <vinschen@redhat.com>
9844
9845 * v850-tdep.c: Begin multi-arch'ing v850.
9846 (v850_target_architecture_hook): Remove function.
9847 (v850_gdbarch_init): New function. Add code previously in
9848 v850_target_architecture_hook().
9849 (_initialize_v850_tdep): Don't set target_architecture_hook.
9850 Call register_gdbarch_init() instead.
9851
9852 2002-05-16 Daniel Jacobowitz <drow@mvista.com>
9853
9854 * gdbtypes.h (struct cplus_struct_type): Remove args field.
9855 * hpread.c (hpread_read_struct_type): Remove assignments to args.
9856 (fixup_class_method_type): Likewise.
9857
9858 2002-05-15 Jim Blandy <jimb@redhat.com>
9859
9860 Add macro structures to GDB's symbol tables. Nobody puts anything
9861 in them yet.
9862 * symtab.h (struct symtab): New member: `macro_table'.
9863 * buildsym.h (pending_macros): New global variable.
9864 * buildsym.c: #include "macrotab.h".
9865 (buildsym_init): Initialize `pending_macros'.
9866 (end_symtab): If we found macro information while reading a CU's
9867 debugging info, do build a symtab structure for it. Make the
9868 symtab point to the macro information, and clear the
9869 `pending_macros' pointer which held it while we were reading the
9870 debug info.
9871 (really_free_pendings): Free any pending macro table.
9872 * objfiles.h (struct objfile): New member: `macro_cache'.
9873 * objfiles.c (allocate_objfile): Set allocate and free functions
9874 for the macro cache's objstack.
9875 (free_objfile): Empty the macro cache's obstack.
9876 * symfile.c (reread_symbols): Empty the macro cache's obstack, and
9877 set new allocate and free functions for it.
9878 * solib-sunos.c (allocate_rt_common_objfile): Set allocate and
9879 free functions for the macro cache's objstack. (Why is this
9880 function building its own objfile?)
9881 * symmisc.c (print_objfile_statistics): Print statistics on the
9882 macro bcache.
9883 * Makefile.in: Note that buildsym.o depends on macrotab.h.
9884
9885 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9886
9887 * config/arm/nm-nbsd.h: Use <> for include of config/nm-nbsd.h.
9888 (REGISTER_U_ADDR): Delete definition.
9889 (arm_register_u_addr): Delete declaration.
9890
9891 2002-05-15 Richard Earnshaw <rearnsha@arm.com>
9892
9893 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Renamed from JB_PC.
9894 (ARM_LINUX_JB_ELEMENT_SIZE): Likewise.
9895
9896 2002-05-14 Andrew Cagney <ac131313@redhat.com>
9897
9898 * regcache.c (register_valid): Revise comments refering to "Not
9899 available" and "unavailable".
9900 * frame.c (frame_register_read): Ditto.
9901 * findvar.c (value_of_register): Ditto.
9902
9903 2002-05-15 Andrew Cagney <cagney@redhat.com>
9904
9905 * Makefile.in (remote_sim_h): Replace remote-sim_h.
9906 (remote-sim.o): Update dependencies.
9907 (d10v-tdep.o): Specify dependencies.
9908 (sim_d10v_h): Define.
9909
9910 2002-05-14 Jim Blandy <jimb@redhat.com>
9911
9912 * macroexp.c (init_buffer, gather_arguments, expand): Use NULL, not 0.
9913 * macrotab.c (macro_lookup_inclusion, find_definition,
9914 new_macro_table): Same.
9915
9916 * macroexp.c (currently_rescanning, expand): Use `strcmp () == 0',
9917 not `! strcmp ()'. This is a dubious improvement.
9918 * macrotab.c (macro_lookup_inclusion, find_definition): Same.
9919
9920 * macrotab.c (macro_lookup_inclusion): Initialize `best_depth',
9921 although it's not necessary, to avoid a warning.
9922
9923 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9924
9925 * gdbtypes.h: Update accessor macros to use TYPE_MAIN_TYPE.
9926 (TYPE_CONST, TYPE_VOLATILE, TYPE_CODE_SPACE, TYPE_DATA_SPACE): Use
9927 TYPE_INSTANCE_FLAGS.
9928 (struct main_type): New.
9929 (struct type): Move most members to struct main_type. Change
9930 cv_type and as_type to new type_chain member. Add instance_flags.
9931 (TYPE_MAIN_TYPE, TYPE_CHAIN, TYPE_INSTANCE_FLAGS): New macros.
9932 (TYPE_CV_TYPE, TYPE_AS_TYPE): Remove.
9933 (finish_cv_type): Remove prototype.
9934 * gdbtypes.c (alloc_type): Update comment. Allocate TYPE_MAIN_TYPE.
9935 Set TYPE_CHAIN.
9936 (alloc_type_instance): New function.
9937 (smash_type): New function.
9938 (make_pointer_type, make_reference_type, make_function_type)
9939 (smash_to_member_type, smash_to_method_type): Call smash_type.
9940 (make_qualified_type): New function.
9941 (make_type_with_address_space): Call make_qualified_type.
9942 (make_cv_type): Likewise.
9943 (finish_cv_type): Remove unnecessary function.
9944 (replace_type): Update comment. Copy TYPE_MAIN_TYPE.
9945 (recursive_dump_type): Dump TYPE_CHAIN and TYPE_INSTANCE_FLAGS;
9946 remove TYPE_CV_TYPE and TYPE_AS_TYPE.
9947 * c-typeprint.c (c_type_print_modifier): Use TYPE_INSTANCE_FLAGS.
9948 * dwarf2read.c (read_structure_scope): Don't call finish_cv_type.
9949 * hpread.c (hpread_read_struct_type): Likewise.
9950 * stabsread.c (read_struct_type): Likewise.
9951
9952 2002-05-14 Elena Zannoni <ezannoni@redhat.com>
9953
9954 * configure.tgt: Add a catch all sh* target, for cases like
9955 sh[2,3,4]-elf and sh-hms.
9956
9957 2002-05-14 Keith Seitz <keiths@redhat.com>
9958
9959 * event-loop.c (create_file_handler): Don't do anything but
9960 update data when we are given a fd which we are already
9961 monitoring.
9962
9963 2002-05-14 Michal Ludvig <mludvig@suse.cz>
9964
9965 * dwarf2cfi.c (context_cpy): Copy registers correctly.
9966 (update_context): Use __func__ in warnings.
9967
9968 2002-05-14 Daniel Jacobowitz <drow@mvista.com>
9969
9970 * ser-tcp.c: Include <netinet/udp.h>. Rename tcp_open
9971 and tcp_close to net_open and net_close.
9972 (net_open): Accept "udp:" and "tcp:" specifications. Connect
9973 using UDP if requested. Don't try to disable Nagle on UDP
9974 sockets.
9975 * remote.c (remote_serial_open): New function. Warn about UDP.
9976 (remote_open_1, remote_async_open_1, remote_cisco_open): Call it.
9977
9978 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9979
9980 * MAINTAINERS: List sh-elf as buildable with ,-Werror.
9981
9982 2002-05-13 Elena Zannoni <ezannoni@redhat.com>
9983
9984 * configure.tgt: Remove sh-hms target.
9985 * MAINTAINERS: Don't list sh-hms as a separate target.
9986
9987 2002-05-13 Jim Blandy <jimb@redhat.com>
9988
9989 Add first preprocessor macro-expansion files.
9990 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
9991 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
9992 (splay_tree_h, macroexp_h, macrotab_h): New variable.
9993 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
9994 (COMMON_OBS): Add macrotab.o, macroexp.o.
9995 (macroexp.o, macrotab.o): New rules.
9996
9997 2002-05-13 Andrew Cagney <ac131313@redhat.com>
9998
9999 * config/m88k/tm-m88k.h: Update copyright.
10000 (m88k_target_write_pc): Declare
10001 (TARGET_WRITE_PC): Redefine using m88k_target_write_pc.
10002 (M88K_NNPC_REGNUM): Rename NNPC_REGNUM.
10003 (SHIFT_INST_REGS): Update definition.
10004 * m88k-tdep.c (m88k_target_write_pc): New function. Implement
10005 using old definition of TARGET_WRITE_PC.
10006 * regcache.c (generic_target_write_pc): Delete code handling
10007 NNPC_REGNUM.
10008 * gdbarch.sh (NNPC_REGNUM): Delete.
10009 * gdbarch.h, gdbarch.c: Regenerate.
10010
10011 2002-05-13 Richard Earnshaw <rearnsha@arm.com>
10012
10013 * builtin-regs.c (value_of_builtin_reg): Correctly calculate the
10014 builtin reg number.
10015
10016 2002-05-13 Daniel Jacobowitz <drow@mvista.com>
10017
10018 * ax-gdb.c (gen_sign_extend, gen_fetch, gen_usual_unary)
10019 (gen_cast, gen_scale, gen_add, gen_sub, gen_binop, gen_deref)
10020 (gen_address_of, gen_struct_ref, gen_repeat): Use type
10021 access macros.
10022 * c-typeprint.c (cp_type_print_method_args): Likewise.
10023 (c_type_print_args): Likewise.
10024 * d10v-tdep.c (d10v_push_arguments): Likewise.
10025 (d10v_extract_return_value): Likewise.
10026 * expprint.c (print_subexp): Likewise.
10027 * gdbtypes.c (lookup_primitive_typename): Likewise.
10028 (lookup_template_type, add_mangled_type, print_arg_types): Likewise.
10029 * gdbtypes.h (TYPE_UNSIGNED, TYPE_NOSIGN, TYPE_STUB)
10030 (TYPE_TARGET_STUB, TYPE_STATIC, TYPE_CONST, TYPE_VOLATILE)
10031 (TYPE_PROTOTYPED, TYPE_INCOMPLETE, TYPE_CODE_SPACE, TYPE_VARARGS)
10032 (TYPE_VECTOR): Likewise.
10033 * hpread.c (hpread_read_struct_type)
10034 (fix_static_member_physnames, fixup_class_method_type)
10035 (hpread_type_lookup): Likewise.
10036 * mdebugread.c (parse_symbol, parse_type): Likewise.
10037 * p-lang.c (is_pascal_string_type): Likewise.
10038 * valops.c (hand_function_call): Likewise.
10039 * x86-64-tdep.c (classify_argument): Likewise.
10040
10041 * hpread.c (hpread_read_function_type)
10042 (hpread_read_doc_function_type): Call replace_type.
10043 * dstread.c (create_new_type): Delete.
10044 (decode_dst_structure, process_dst_function): Call alloc_type.
10045 Use type access macros.
10046
10047 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10048
10049 * i387-tdep.c (i387_supply_fxsave): Skip the SSE registers if
10050 the're not supported by the current architecture.
10051 (i387_fill_fxsave): Likewise.
10052
10053 2002-05-12 Fred Fish <fnf@redhat.com>
10054
10055 * symfile.c (default_symfile_offsets): Arrange for uninitialized
10056 sect_index_xxx members to index the first slot in section_offsets
10057 if all of the section_offsets are zero.
10058
10059 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10060
10061 * configure.tgt (sparc-*openbsd): Remove entry accidentially
10062 checked in with last change.
10063
10064 2002-05-12 Mark Kettenis <kettenis@gnu.org>
10065
10066 * configure.tgt (i[3456]86-*-unixware*, i[3456]86-*-unixware2*):
10067 Remove targets. These are canonicalized to i386-*-sysv4.2uw by
10068 config.sub.
10069
10070 2002-05-12 Daniel Jacobowitz <drow@mvista.com>
10071
10072 * Makefile.in: Update dependencies.
10073
10074 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10075
10076 * language.c (local_hex_string_custom): Simplify. Do not depend
10077 on PRINTF_HAS_LONG_LONG or CC_HAS_LONG_LONG.
10078
10079 * memattr.c (mem_info_command): Replace calls to
10080 longest_local_hex_string and longest_local_hex_string_custom.
10081 * buildsym.c (make_blockvector): Ditto.
10082 * solib.c (info_sharedlibrary_command): Ditto.
10083 * tracepoint.c (tracepoints_info): Ditto.
10084 * symtab.c (print_msymbol_info): Ditto.
10085
10086 * language.c (local_hex_string): Delete.
10087 (local_hex_string_custom): Delete.
10088 (longest_local_hex_string): Rename to local_hex_string.
10089 (longest_local_hex_string_custom): Rename to
10090 local_hex_string_custom.
10091 * language.h (local_hex_string): Change parameter type to LONGEST.
10092 (local_hex_string_custom): Ditto.
10093 (longest_local_hex_string): Delete declaration.
10094 (longest_local_hex_string_custom): Ditto.
10095
10096 * solib.c: Update copyright.
10097 * memattr.c: Update copyright.
10098
10099 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10100
10101 * arch-utils.h (legacy_register_to_value): Declare.
10102 (legacy_value_to_register): Declare.
10103 (legacy_convert_register_p): Declare.
10104 * arch-utils.c (legacy_register_to_value): New function.
10105 (legacy_value_to_register): New function.
10106 (legacy_convert_register_p): New function.
10107
10108 * gdbarch.sh (REGISTER_TO_VALUE): Define.
10109 (VALUE_TO_REGISTER): Define.
10110 (CONVERT_REGISTER_P): Define.
10111 * gdbarch.h, gdbarch.c: Regenerate.
10112
10113 * valops.c (value_assign): Use CONVERT_REGISTER_P and
10114 VALUE_TO_REGISTER.
10115 * findvar.c (value_from_register): Use REGISTER_TO_VALUE and
10116 CONVERT_REGISTER_P.
10117
10118 2005-05-11 Daniel Jacobowitz <drow@mvista.com>
10119 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
10120
10121 * Makefile.in: Update dependencies for valops.c.
10122 * valops.c: Include "gdb_assert.h".
10123 (typecmp): Skip THIS parameter to methods.
10124 (find_method_list): Remove static_memfuncp argument,
10125 update callers. Check for stub methods.
10126 (find_value_oload_method_list): Don't set *static_memfuncp.
10127 (find_overload_match): Don't check for stub methods. Assert
10128 that methods are not stubbed. Handle static methods.
10129 (value_find_oload_method_list): Remove static_memfuncp argument.
10130 * gdbtypes.c (check_stub_method): Do not add THIS pointer
10131 to the argument list for static stub methods.
10132 * value.h (value_find_oload_method_list): Update prototype.
10133
10134 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10135
10136 * arch-utils.h (generic_register_size): Declare.
10137 (generic_register_raw_size, generic_register_virtual_size): Delete
10138 declarations.
10139 * arch-utils.c (generic_register_raw_size): Delete.
10140 (generic_register_size): New function.
10141 (generic_register_virtual_size): Delete.
10142
10143 * gdbarch.sh (REGISTER_RAW_SIZE, REGISTER_VIRTUAL_SIZE): Make
10144 default generic_register_size.
10145 * gdbarch.h, gdbarch.c: Re-generate.
10146
10147 * d10v-tdep.c (d10v_gdbarch_init): Use generic_register_size for
10148 register_virtual_size.
10149 * x86-64-tdep.c (x86_64_gdbarch_init): Ditto.
10150 * rs6000-tdep.c (rs6000_gdbarch_init): Ditto.
10151
10152 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10153
10154 * gdbarch.sh (gdbarch_data): Add gdbarch parameter.
10155 * gdbarch.h, gdbarch.c: Regenerate.
10156 * gnu-v3-abi.c: Update copyright.
10157 (vtable_address_point_offset): Update.
10158 (gnuv3_rtti_type): Update.
10159 (gnuv3_baseclass_offset): Update.
10160 * solib-svr4.c (svr4_fetch_link_map_offsets): Update.
10161 (init_fetch_link_map_offsets): Update.
10162 * remote.c (get_remote_state): Update.
10163
10164 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10165
10166 * TODO: Remove value_headof/value_from_vtable_info comment.
10167 * printcmd.c (print_command_1): Don't call value_from_vtable_info.
10168 * values.c (value_headof, value_from_vtable_info): Delete.
10169 * value.h (value_from_vtable_info): Delete prototype.
10170
10171 2002-05-11 Andrew Cagney <ac131313@redhat.com>
10172
10173 * Makefile.in: Replace gdb_assert.h with $(gdb_assert_h),
10174 gdb_string.h with $(gdb_string_h) and gdb_regex.h with
10175 $(gdb_regex_h).
10176 (gdb_assert_h): Define.
10177 (gdb_wait_h): Define.
10178 (gdb_regex_h): Define.
10179
10180 2002-05-11 Daniel Jacobowitz <drow@mvista.com>
10181
10182 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
10183 * linespec.c (find_methods): Handle GCC 3.x template constructors.
10184
10185 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10186
10187 * nbsd-tdep.c: Fix comment.
10188
10189 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10190
10191 * Makefile.in (ALLDEPFILES): Add nbsd-tdep.c.
10192 (alphanbsd-tdep.o): Add nbsd-tdep.h to dependency list.
10193 (nbsd-tdep.o): New dependency list.
10194 * alphanbsd-tdep.c: Don't include solib-svr4.h. Include
10195 nbsd-tdep.h.
10196 (alphanbsd_solib_svr4_fetch_link_map_offsets): Remove.
10197 (alphanbsd_init_abi): Use nbsd_lp64_solib_svr4_fetch_link_map_offsets.
10198 * nbsd-tdep.c: New file.
10199 * nbsd-tdep.h: New file.
10200 * shnbsd-tdep.c: Don't include solib-svr4.h. Include
10201 nbsd-tdep.h.
10202 (shnbsd_solib_svr4_fetch_link_map_offsets): Remove.
10203 (shnbsd_init_abi): Use nbsd_ilp32_solib_svr4_fetch_link_map_offsets.
10204 * config/alpha/nbsd.mt (TDEPFILES): Add nbsd-tdep.o.
10205 * config/sh/nbsd.mt (TDEPFILES): Ditto.
10206
10207 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10208
10209 * config/alpha/nbsd.mh (NATDEPFILES): Remove corelow.o.
10210 * config/alpha/nbsd.mt (TDEPFILES): Add corelow.o.
10211 * config/i386/nbsd.mh (NATDEPFILES): Remove corelow.o.
10212 * config/i386/nbsd.mt (TDEPFILES): Add corelow.o.
10213 * config/i386/nbsdelf.mh (NATDEPFILES): Remove corelow.o.
10214 * config/i386/nbsdelf.mt (TDEPFILES): Add corelow.o.
10215
10216 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10217
10218 * config/i386/nbsd.mh (NATDEPFILES): Use line continuations.
10219 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10220 * config/m68k/nbsd.mh (NATDEPFILES): Likewise.
10221 * config/ns32k/nbsd.mh (NATDEPFILES): Likewise.
10222 * config/powerpc/nbsd.mh (NATDEPFILES): Likewise.
10223 * config/sparc/nbsd.mh (NATDEPFILES): Likewise.
10224 * config/sparc/nbsdelf.mh (NATDEPFILES): Likewise.
10225
10226 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10227
10228 * i386nbsd-nat.c: Delete file. Move fetch_core_registers and
10229 fetch_elfcore_registers to...
10230 * i386nbsd-tdep.c: ...here.
10231 (i386nbsd_use_struct_convention): Rename to...
10232 (i386nbsd_aout_use_struct_convention): ...this.
10233 (i386nbsd_supply_reg): New function.
10234 (i386nbsd_fill_reg): New function.
10235 (fetch_core_registers): Use i386nbsd_supply_reg.
10236 (fetch_elfcore_registers): Likewise.
10237 (_initialize_i386nbsd_tdep): New function.
10238 * config/i386/nbsd.mh (NATDEPFILES): Remove i386nbsd-nat.o.
10239 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10240 * config/i386/nbsdelf.mt (TDEPFILES): Add i386nbsd-tdep.o.
10241 * config/i386/tm-nbsd.h (i386nbsd_use_struct_convention): Rename to...
10242 (i386nbsd_aout_use_struct_convention): ...this.
10243
10244 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10245
10246 * shnbsd-nat.c (fetch_inferior_registers): Use shnbsd_supply_reg.
10247 (store_inferior_registers): Use shnbsd_fill_reg.
10248 * shnbsd-tdep.c (sh_nbsd_supply_registers,
10249 sh_nbsd_supply_register): Collapse into...
10250 (shnbsd_supply_reg): ...this.
10251 (sh_nbsd_fill_registers, sh_nbsd_fill_register): Collapse into...
10252 (shnbsd_fill_reg): ...this.
10253 (sh_nbsd_solib_svr4_fetch_link_map_offsets): Rename to...
10254 (shnbsd_solib_svr4_fetch_link_map_offsets): ...this.
10255 (fetch_core_registers): Use shnbsd_supply_reg.
10256 (fetch_elfcore_registers): Use shnbsd_supply_reg.
10257 (sh_nbsd_core_fns): Rename to...
10258 (shnbsd_core_fns): ...this.
10259 (sh_nbsd_elfcore_fns): Rename to...
10260 (shnbsd_elfcore_fns): ...this.
10261 (sh_nbsd_init_abi): Rename to...
10262 (shnbsd_init_abi): ...this.
10263 (_initialize_sh_nbsd_tdep): Rename to...
10264 (_initialize_shnbsd_tdep): ...this.
10265 * shnbsd-tdep.h (sh_nbsd_supply_registers,
10266 sh_nbsd_supply_register, sh_nbsd_fill_registers,
10267 sh_nbsd_fill_register): Remove prototypes.
10268 (shnbsd_supply_reg, shnbsd_fill_reg): Add prototypes.
10269
10270 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10271
10272 * Makefile.in (ALLDEPFILES): Remove i387-nat.c.
10273 (i387-nat.o): Delete dependency list.
10274 (go32-nat.o): Change i387-nat.h to i387-tdep.h.
10275 (x86-64-linux-nat.o): Likewise.
10276 * i387-nat.c: Delete file, moving contents to...
10277 * i387-tdep.c: ...here.
10278 * i387-nat.h: Rename...
10279 * i387-tdep.h: ...to this.
10280 * go32-nat.c: Include i387-tdep.h instead of i387-nat.h.
10281 * i386-linux-nat.c: Likewise.
10282 * i386bsd-nat.c: Likewise.
10283 * i386gnu-nat.c: Likewise.
10284 * i386nbsd-nat.c: Likewise.
10285 * i386v4-nat.c: Likewise.
10286 * x86-64-linux-nat.c: Likewise.
10287 * config/i386/fbsd.mh (NATDEPFILES): Remove i387-nat.o.
10288 * config/i386/go32.mh (NATDEPFILES): Likewise.
10289 * config/i386/i386gnu.mh (NATDEPFILES): Likewise.
10290 * config/i386/i386sol2.mh (NATDEPFILES): Likewise.
10291 * config/i386/i386v42mp.mh (NATDEPFILES): Likewise.
10292 * config/i386/linux.mh (NATDEPFILES): Likewise.
10293 * config/i386/nbsd.mh (NATDEPFILES): Likewise.
10294 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
10295 * config/i386/obsd.mh (NATDEPFILES): Likewise.
10296 * config/i386/x86-64linux.mh (NATDEPFILES): Likewise.
10297
10298 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10299
10300 * Makefile.in (ALLDEPFILES): Remove alphanbsd-nat.c.
10301 (alphanbsd-nat.o): Remove dependency list.
10302 (alphanbsd-tdep.o): Add $(regcache_h) to dependency list.
10303 * alphanbsd-nat.c: Delete. Contents moved to...
10304 * alphanbsd-tdep.c: ...here.
10305 (_initialize_alphanbsd_tdep): Register core functions.
10306 * config/alpha/nbsd.mh (NATDEPFILES): Remove alphanbsd-nat.o.
10307
10308 2002-05-11 Jason Thorpe <thorpej@wasabisystems.com>
10309
10310 * Makefile.in (ALLDEPFILES): Add alphabsd-tdep.c.
10311 (alphabsd-nat.o): Depend on alphabsd-tdep.h.
10312 (alphanbsd-nat.o): Likewise.
10313 (alphabsd-tdep.o): New dependency list.
10314 * alphabsd-nat.c (supply_gregset): Use alphabsd_supply_reg.
10315 (fill_gregset): Use alphabsd_fill_reg.
10316 (supply_fpregset): Use alphabsd_supply_fpreg.
10317 (fill_fpregset): Use alphabsd_fill_fpreg.
10318 (fetch_inferior_registers): Use struct reg and struct fpreg
10319 rather than gregset_t and fpregset_t. Use alphabsd_supply_reg
10320 and alphabsd_supply_fpreg.
10321 (store_inferior_registers): Use struct reg and struct fpreg
10322 rather than gregset_t and fpregset_t. Use alphabsd_fill_reg
10323 and alphabsd_fill_fpreg.
10324 * alphabsd-tdep.c: New file.
10325 * alphabsd-tdep.h: New file.
10326 * alphanbsd-nat.c (fetch_core_registers): Use alphabsd_supply_fpreg.
10327 (fetch_elfcore_registers): Use alphabsd_supply_reg and
10328 alphabsd_supply_fpreg.
10329 * config/alpha/fbsd.mt (TDEPFILES): Add alphabsd-tdep.o.
10330 * config/alpha/nbsd.mt (TDEPFILES): Likewise.
10331
10332 2002-05-11 Eric Christopher <echristo@redhat.com>
10333
10334 * mips-tdep.c (mips_double_register_type): Fix thinko.
10335 (mips_single_register_type): Ditto.
10336 * MAINTAINERS: Add self.
10337
10338 2002-05-11 Mark Kettenis <kettenis@gnu.org>
10339
10340 * i387-nat.c (i387_supply_register, i387_fill_fsave,
10341 i387_supply_fxsave, i387_fill_fxsave): Rewrite in order to do the
10342 right thing on architectures with different endianness and/or
10343 integer sizes.
10344
10345 2002-05-10 Jason Thorpe <thorpej@wasabisystems.com>
10346
10347 From Christian Limpach <chris@Pin.LU>
10348 * configure.in: Change sed expression which comments out
10349 NATDEPFILES to also comment out continuation lines.
10350 * configure: Regenerate.
10351
10352 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10353
10354 * sh-tdep.c: Clean up code erroneously reintroduced by previous
10355 big patch.
10356
10357 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10358
10359 * sh-tdep.c: Include correct file.
10360
10361 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10362
10363 New support for sh64-elf (sh5) target.
10364
10365 * configure.tgt: For sh64-elf target, default to sh-elf.
10366
10367 * config/sh/tm-sh.h (enum sh-abi): Possible ABI's.
10368 (struct gdbarch_tdep): Add new fields for new registers and ABI
10369 info.
10370
10371 * sh-tdep.c: Include elf-bfd.h, elf/sh.h, gdb/sim-sh.h.
10372 (NUM_PSEUDO_REGS_SH_MEDIA, NUM_PSEUDO_REGS_SH_COMPACT,
10373 MSYMBOL_IS_SPECIAL, IS_ISA32_ADDR, MAKE_ISA32_ADDR,
10374 UNMAKE_ISA32_ADDR, IS_PTABSL_R18, IS_STS_R0, IS_STS_PR,
10375 IS_MOV_TO_R15, IS_MOV_R14, IS_STQ_R18_R14, IS_STQ_R18_R15,
10376 IS_STL_R18_R15, IS_STQ_R14_R15, IS_STL_R14_R15, IS_ADDIL_SP_MEDIA,
10377 IS_ADDI_SP_MEDIA, IS_ADDL_SP_FP_MEDIA, IS_ADD_SP_FP_MEDIA,
10378 IS_MOV_SP_FP_MEDIA, IS_MOV_R0, IS_MOVL_R0, IS_ADD_SP_R0,
10379 IS_MOV_R14_R0, IS_MEDIA_IND_ARG_MOV, IS_MEDIA_ARG_MOV,
10380 IS_MEDIA_MOV_TO_R14, IS_COMPACT_IND_ARG_MOV, IS_COMPACT_ARG_MOV,
10381 IS_COMPACT_MOV_TO_R14, IS_JSR_R0, IS_NOP): New macros.
10382 (sh_sh64_register_name, sh64_elf_make_msymbol_special,
10383 pc_is_isa32, sh_sh64_breakpoint_from_pc, look_for_args_moves,
10384 sh64_skip_prologue_hard_way, sh64_use_struct_convention,
10385 gdb_print_insn_sh64, translate_insn_rn, sh64_frame_chain,
10386 sh64_get_saved_pr, fpp_reg_base_num, is_media_pseudo,
10387 sh64_get_gdb_regnum, sh64_media_reg_base_num,
10388 sh64_compact_reg_base_num, translate_rn_to_arch_reg_num,
10389 sign_extend, sh64_nofp_frame_init_saved_regs,
10390 sh64_init_extra_frame_info, sh64_get_saved_register,
10391 sh64_extract_struct_value_address, sh64_pop_frame,
10392 sh64_push_arguments, sh64_extract_return_value,
10393 sh64_store_return_value, sh64_show_media_regs,
10394 sh64_show_compact_regs, sh64_show_regs, sh_sh64_register_byte,
10395 sh_sh64_register_raw_size, sh_sh64_register_virtual_size,
10396 sh_sh64_register_virtual_type,
10397 sh_sh64_register_convert_to_virtual,
10398 sh_sh64_register_convert_to_raw, sh64_pseudo_register_read,
10399 sh64_register_read, sh64_pseudo_register_write,
10400 sh64_register_write, do_fv_c_register_info, do_dr_c_register_info,
10401 do_r_c_register_info, do_fpp_register_info, do_cr_c_register_info,
10402 sh64_do_pseudo_register, sh_compact_do_registers_info,
10403 sh64_do_registers_info, sh_gdbarch_init): New functions.
10404
10405 2002-05-10 Elena Zannoni <ezannoni@redhat.com>
10406
10407 * sh-tdep.c (sh_breakpoint_from_pc): Add 'const' to return type.
10408
10409 2002-05-10 Daniel Jacobowitz <drow@mvista.com>
10410
10411 * linespec.c (decode_line_1): Check for a double quote after
10412 a filename correctly.
10413
10414 2002-05-10 Jim Blandy <jimb@redhat.com>
10415
10416 Properly track the size of the current objfile's .debug_line section.
10417 * dwarf2read.c (struct dwarf2_pinfo): New member: dwarf_line_size.
10418 (DWARF_LINE_SIZE): New macro.
10419 (dwarf2_build_psymtabs_hard): Record the line section's size in
10420 the partial symbol table.
10421 (psymtab_to_symtab_1): Restore dwarf_line_size from the partial
10422 symbol table.
10423
10424 2002-05-10 Petr Sorfa <petrs@caldera.com>
10425
10426 * ia64-tdep.c: Handle breakpoints on L instruction type
10427 in MLX instruction bundle by moving the breakpoint to
10428 the third slot (X instruction type) as L holds only data.
10429
10430 2002-05-10 Kevin Buettner <kevinb@redhat.com>
10431
10432 * dbxread.c (discarding_local_symbols_complaint): New complaint.
10433 (process_one_symbol): Complain about discarding local symbols
10434 due to a misplaced N_LBRAC entry.
10435
10436 2002-05-09 Elena Zannoni <ezannoni@redhat.com>
10437
10438 From Daniel Berlin <dan@cgsoftware.com>
10439 * linespec.c (find_toplevel_char): '<' and '>' also increase and
10440 decrease the depth we are at, in the case of templates.
10441
10442 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10443
10444 * mips-tdep.c (mips_float_register_type): New function.
10445 (mips_double_register_type): New function.
10446 (mips_print_register): Use them.
10447 (do_fp_register_row): Likewise.
10448
10449 2002-05-09 Daniel Jacobowitz <drow@mvista.com>
10450
10451 * signals/signals.c (signals): Remove conditional compilation around
10452 Mach-specific signals. Move them to after TARGET_SIGNAL_DEFAULT.
10453 (target_signal_from_name): Loop until TARGET_SIGNAL_LAST.
10454
10455 2002-05-09 Michael Snyder <msnyder@redhat.com>
10456
10457 * remote-rdp.c (remote_rdp_can_run): Remove.
10458
10459 2002-05-09 Tom Tromey <tromey@redhat.com>
10460
10461 * jv-valprint.c (java_val_print): Handle `char' as a special case
10462 of TYPE_CODE_INT.
10463
10464 2002-05-09 Michael Snyder <msnyder@redhat.com>
10465
10466 * arm-tdep.c (arm_scan_prologue): Accept strb r(0123),[r11,#-nn],
10467 strh r(0123),[r11,#-nn], str r(0123),[r11,#-nn], as well as
10468 strb r(0123),[sp,#nn], strh r(0123),[sp,#nn] and
10469 str r(0123),[sp,#nn].
10470 (arm_skip_prologue): Ditto. Also make disassembly
10471 order-independent by placing it in a loop.
10472
10473 2002-05-06 Michael Snyder <msnyder@redhat.com>
10474
10475 * stabsread.c (read_type): Add recognition for new attribute:
10476 "@V;" means that an array type is actually a vector.
10477 This is analogous to the vector flag that's been added to dwarf2.
10478
10479 2002-05-09 Mark Kettenis <kettenis@gnu.org>
10480
10481 * i386-tdep.h (i386_abi): New enum.
10482 (struct gdbarch_tdep): Replace os_ident member with abi.
10483 (i386_gdbarch_register_os_abi): New prototype.
10484 * i386-tdep.c (i386_abi_names): New array.
10485 (process_note_abi_tag_sections): Removed.
10486 (process_note_sections): New function.
10487 (i386_elf_abi_from_note, i386_elf_abi): New functions.
10488 (struct i386_abi_handler): New struct.
10489 (i386_abi_handler_list): New variable.
10490 (i386_gdbarch_register_os_abi): New function.
10491 (i386_gdbarch_init): Adapt for the changes given above.
10492
10493 2002-05-08 Daniel Jacobowitz <drow@mvista.com>
10494
10495 * gregset.h: Say "GNU/Linux".
10496
10497 2002-05-08 Elena Zannoni <ezannoni@redhat.com>
10498
10499 * gdbtypes.c : Add new builtin type for 64 bit vectors.
10500 (build_gdbtypes): Build builtin_type_v2_float.
10501 (_initialize_gdbtypes): Register new builtin type.
10502
10503 2002-05-08 Andrew Cagney <ac131313@redhat.com>
10504
10505 * gdbarch.sh (init_gdbarch_swap): Do not clear the swap section.
10506 (clear_gdbarch_swap): New function.
10507 (initialize_non_multiarch): Call.
10508 (gdbarch_update_p): Before calling init(), swap out and clear the
10509 existing architecture.
10510 * gdbarch.c: Regenerate.
10511
10512 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10513
10514 * config/djgpp/fnchange.lst: Add alphanbsd-nat.c and
10515 alphanbsd-tdep.c.
10516
10517 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10518
10519 * sh-nbsd-nat.c: Rename to...
10520 * shnbsd-nat.c: ...this.
10521 * sh-nbsd-tdep.c: Rename to...
10522 * shnbsd-tdep.c: ...this.
10523 * sh-nbsd-tdep.h: Rename to...
10524 * shnbsd-tdep.h: ...this.
10525 * config/sh/nbsd.mh: Use shnbsd-nat.o.
10526 * config/sh/nbsd.mt: Use shnbsd-tdep.o.
10527
10528 2002-05-08 Richard Earnshaw <rearnsha@arm.com>
10529
10530 * remote-rdi.c (_initializie_remote_rdi): Use ANSI-style string
10531 concatenation for command help messages.
10532
10533 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10534
10535 * NEWS: Note new sh*-*-netbsdelf* configuration.
10536 * configure.host: Set gdb_host_cpu to sh for all sh*.
10537 (sh*-*-netbsdelf*): New host.
10538 * configure.tgt: Set gdb_target_cpu to sh for all sh*.
10539 (sh*-*-netbsdelf*): New target.
10540 * sh-nbsd-nat.c: New file.
10541 * sh-nbsd-tdep.c: New file.
10542 * sh-nbsd-tdep.h: New file.
10543 * config/sh/nbsd.mh: New file.
10544 * config/sh/nbsd.mt: New file.
10545 * config/sh/nm-nbsd.h: New file.
10546 * config/sh/tm-nbsd.h: New file.
10547
10548 2002-05-08 Jason Thorpe <thorpej@wasabisystems.com>
10549
10550 * sh-tdep.c (sh_osabi_names): Declare.
10551 (process_note_abi_tag_sections): New function.
10552 (get_elfosabi): Ditto.
10553 (sh_gdbarch_register_os_abi): Ditto.
10554 (sh_dump_tdep): Ditto.
10555 _initialize_sh_tdep): Use gdbarch_register to register
10556 sh_gdbarch_init and sh_dump_tdep.
10557 * config/sh/tm-sh.h (sh_osabi): Declare.
10558 (gdbarch_tdep): Add sh_osabi and osabi_name members.
10559
10560 2002-05-07 Andrew Cagney <ac131313@redhat.com>
10561
10562 * arm-tdep.c (arm_skip_prologue): Handle generic dummy frames.
10563 (thumb_scan_prologue): Ditto.
10564 (arm_find_callers_reg): Ditto.
10565 (arm_frame_chain): Ditto.
10566 (arm_init_extra_frame_info): Ditto.
10567 (arm_frame_saved_pc): Ditto.
10568 (arm_pop_frame): Ditto.
10569 (arm_push_return_address): New function.
10570 (arm_gdbarch_init): Initialize use_generic_dummy_frames,
10571 call_dummy_location, call_dummy_breakpoint_offset_p,
10572 call_dummy_breakpoint_offset, call_dummy_p,
10573 call_dummy_stack_adjust_p, call_dummy_words,
10574 sizeof_call_dummy_words, call_dummy_start_offset,
10575 call_dummy_length, fix_call_dummy, pc_in_call_dummy,
10576 call_dummy_address, push_return_address and push_dummy_frame for
10577 generic dummy frames.
10578
10579 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10580
10581 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Fix error in
10582 size computation for alloca.
10583 (sh_fp_frame_init_saved_regs): Likewise.
10584
10585 2002-05-07 Richard Earnshaw <rearnsha@arm.com>
10586
10587 * arm-tdep.h (ARM_MAX_REGISTER_RAW_SIZE): Define.
10588 (ARM_MAX_REGISTER_VIRTUAL_SIZE): Define.
10589 * arm-tdep.c (arm_store_return_value): Use them.
10590 Use FP_REGISTER_RAW_SIZE when setting the FPA return value.
10591 * remote-rdp.c (remote_rdp_fetch_register): Use
10592 ARM_MAX_REGISTER_RAW_SIZE.
10593 (remote_rdp_store_register): Likewise.
10594
10595 2002-05-07 Michal Ludvig <mludvig@suse.cz>
10596
10597 * dwarf2cfi.c: Code cleanup, removed unused variables,
10598 added default labels to switch {} statements.
10599 * x86-64-tdep.c: Ditto.
10600 * x86-64-linux-nat.c: Ditto.
10601
10602 2002-05-07 Jason Thorpe <thorpej@wasabisystems.com>
10603
10604 * solib.h: Protect against multiple inclusion.
10605
10606 2002-05-06 Jim Blandy <jimb@redhat.com>
10607
10608 Add first preprocessor macro-expansion files.
10609 * macroexp.c, macroexp.h, macrotab.c, macrotab.h: New files.
10610 * Makefile.in (SFILES): Add macrotab.c, macroexp.c.
10611 (splay_tree_h, macroexp_h, macrotab_h): New variable.
10612 (HFILES_NO_SRCDIR): Add macrotab.h, macroexp.h.
10613 (COMMON_OBS): Add macrotab.o, macroexp.o.
10614 (macroexp.o, macrotab.o): New rules.
10615
10616 Separate the job of reading the line number info statement program
10617 header (...expialidocious) out into its own function.
10618 * dwarf2read.c (struct line_head, struct filenames, struct
10619 directories): Replace with...
10620 (struct line_header): New structure, containing the full
10621 contents of the statement program header, including the
10622 include directory and file name tables.
10623 (read_file_scope): If we have line number info, instead of just
10624 calling dwarf_decode_lines to do all the work, call
10625 dwarf_decode_line_header first to get a `struct line_header'
10626 containing the data in the statement program header, and then
10627 pass that to dwarf_decode_lines, which will pick up where that
10628 left off. Be sure to clean up the `struct line_header' object.
10629 (dwarf_decode_line_header, free_line_header, add_include_dir,
10630 add_file_name): New functions.
10631 (dwarf_decode_lines): Move all the code to read the statement
10632 program header into dwarf_decode_line_header. Take the line
10633 header it built as the first argument, instead of the offset to
10634 the compilation unit's line number info. Use the new `struct
10635 line_header' type instead of the old structures. No need to do
10636 cleanups here now, since we don't allocate anything.
10637 (dwarf2_statement_list_fits_in_line_number_section,
10638 dwarf2_line_header_too_long): New complaints.
10639
10640 2002-05-06 Elena Zannoni <ezannoni@redhat.com>
10641
10642 * gdbtypes.c (init_vector_type): New function.
10643 (build_builtin_type_vec128): Simplify the representation of SIMD
10644 registers.
10645 (build_gdbtypes): Initialize new builtin vector types.
10646 (_initialize_gdbtypes): Register new vector types with gdbarch.
10647 (builtin_type_v4_float, builtin_type_v4_int32,
10648 builtin_type_v8_int16, builtin_type_v16_int8,
10649 builtin_type_v2_int32, builtin_type_v4_int16,
10650 builtin_type_v8_int8): New (renamed) SIMD types.
10651
10652 2002-05-06 Mark Kettenis <kettenis@gnu.org>
10653
10654 * i387-nat.c (i387_fill_fsave): Use regcache_collect.
10655 (i387_fill_fxsave): Likewise.
10656
10657 2002-05-05 Alexandre Oliva <aoliva@redhat.com>
10658
10659 * alpha-tdep.c (alpha_extract_return_value): Don't use
10660 non-constant array size in prototype.
10661
10662 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10663
10664 From Brian Taylor <briant at model dot com>:
10665 * ui-out.c (ui_out_field_core_addr): Use the function
10666 longest_local_hex_string_custom'to format addresses > 32 bits
10667 wide.
10668
10669 * ui-out.c (ui_out_field_core_addr): Update comment.
10670
10671 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10672
10673 * stack.c (select_and_print_frame): Make static. Delete the
10674 parameter `level'.
10675 (func_command): Update call.
10676 (select_frame_command): Delete code computing the frame level.
10677 * frame.h (select_and_print_frame): Delete declaration.
10678
10679 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10680
10681 * sparc-tdep.c (sparc_get_saved_register): Comment why
10682 get_prev_frame call is safe.
10683
10684 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10685
10686 * frame.h (select_frame): Delete level parameter.
10687 * stack.c (select_frame): Update. Use frame_relative_level to
10688 obtain the frame's level.
10689 (select_and_print_frame): Update call.
10690 (select_frame_command): Ditto.
10691 (up_silently_base): Ditto.
10692 (down_silently_base): Ditto.
10693 * ocd.c (ocd_start_remote): Ditto.
10694 * remote-rdp.c (remote_rdp_open): Ditto.
10695 * remote-mips.c (mips_initialize): Ditto.
10696 (common_open): Ditto.
10697 * remote-e7000.c (e7000_start_remote): Ditto.
10698 * m3-nat.c (select_thread): Ditto.
10699 * hppa-tdep.c (child_get_current_exception_event): Ditto.
10700 (child_get_current_exception_event): Ditto.
10701 * varobj.c (varobj_create): Ditto.
10702 (varobj_update): Ditto.
10703 (c_value_of_root): Ditto.
10704 * tracepoint.c (finish_tfind_command): Ditto.
10705 * corelow.c (core_open): Ditto.
10706 * arch-utils.c (generic_prepare_to_proceed): Ditto.
10707 * thread.c (info_threads_command): Ditto.
10708 (switch_to_thread): Ditto.
10709 * infrun.c (normal_stop): Ditto.
10710 (restore_selected_frame): Ditto.
10711 (restore_inferior_status): Ditto.
10712 * breakpoint.c (insert_breakpoints): Ditto.
10713 (watchpoint_check): Ditto.
10714 (bpstat_stop_status): Ditto.
10715 (do_enable_breakpoint): Ditto.
10716 * blockframe.c (flush_cached_frames): Ditto.
10717 (reinit_frame_cache): Ditto.
10718
10719 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10720
10721 * MAINTAINERS (Host/Native): Add Jason Thorpe as NetBSD
10722 maintainer.
10723
10724 2002-05-04 Jim Blandy <jimb@redhat.com>
10725
10726 * gdbtypes.c (replace_type): Doc fix.
10727
10728 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10729
10730 * valprint.c (strcat_longest): Delete commented out function.
10731 Update copyright.
10732
10733 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10734
10735 * MAINTAINERS: Mark a29k as deleted.
10736 * NEWS: Mention that a29k was removed. Add OBSOLETE section.
10737 Move new configurations to the top.
10738 * configure.tgt: Remove a29k.
10739 * config/a29k/tm-vx29k.h: Delete.
10740 * config/a29k/vx29k.mt: Delete.
10741 * config/a29k/tm-a29k.h: Delete.
10742 * config/a29k/a29k-udi.mt: Delete.
10743 * config/a29k/a29k.mt: Delete.
10744 * a29k-tdep.c: Delete.
10745 * remote-udi.c: Delete.
10746 * remote-mm.c: Delete.
10747 * remote-eb.c: Delete.
10748 * remote-adapt.c: Delete.
10749 * Makefile.in: Remove obsolete code.
10750 * config/s390/s390x.mt: Ditto.
10751 * config/s390/s390.mt: Ditto.
10752 * config/sparc/sparclynx.mh: Ditto.
10753 * config/sparc/linux.mh: Ditto.
10754 * config/pa/hppaosf.mh: Ditto.
10755 * config/pa/hppabsd.mh: Ditto.
10756 * config/ns32k/nbsd.mt: Ditto.
10757 * config/mips/vr5000.mt: Ditto.
10758 * config/m68k/sun3os4.mh: Ditto.
10759 * config/m68k/nbsd.mt: Ditto.
10760 * config/m68k/m68klynx.mh: Ditto.
10761 * config/m32r/m32r.mt: Ditto.
10762 * config/i386/x86-64linux.mt: Ditto.
10763 * config/i386/nbsdelf.mt: Ditto.
10764 * config/i386/nbsd.mt: Ditto.
10765 * config/i386/i386lynx.mh: Ditto.
10766
10767 2002-05-04 Andrew Cagney <ac131313@redhat.com>
10768
10769 * target.c (debug_print_register): New function. Handle oversize
10770 registers.
10771 (debug_to_fetch_registers): Call.
10772 (debug_to_store_registers): Call.
10773
10774 2002-05-03 Jim Blandy <jimb@redhat.com>
10775
10776 * stabsread.c (cleanup_undefined_types): Use replace_type, not memcpy.
10777 (read_type): Doc fix.
10778 * gdbtypes.c (replace_type): Doc fix.
10779
10780 * stabsread.c (multiply_defined_struct): New complaint.
10781 (read_struct_type): If the type we were passed isn't empty, or
10782 incomplete, don't read the new struct type into it; complain,
10783 and return the original type unchanged. Take a new `type_code'
10784 argument, which is the type code for the new type.
10785 (read_type): Rather than storing the type's type code here, pass
10786 it as an argument to read_struct_type, and let that take care of
10787 storing it. That way, we don't overwrite the original type code,
10788 so read_struct_type can use it to decide whether we're overwriting
10789 something we shouldn't.
10790 (complain_about_struct_wipeout): New function.
10791
10792 2002-05-03 Andrew Cagney <ac131313@redhat.com>
10793
10794 * gdbarch.sh: Assert that gdbarch is non-NULL.
10795 * gdbarch.c: Regenerate.
10796
10797 2002-05-03 Jason Merrill <jason@redhat.com>
10798
10799 * gnu-v3-abi.c (gnuv3_rtti_type): If we get confused, just warn
10800 and return NULL.
10801
10802 2002-05-03 Michal Ludvig <mludvig@suse.cz>
10803
10804 * x86-64-tdep.c (x86_64_dwarf2gdb_regno_map),
10805 (x86_64_dwarf2gdb_regno_map_length),
10806 (x86_64_dwarf2_reg_to_regnum): Added.
10807 (x86_64_gdbarch_init): Added registration of x86_64_dwarf2_reg_to_regnum.
10808 (x86_64_gdbarch_init): Renamed from i386_gdbarch_init.
10809 (_initialize_x86_64_tdep): Synced with the change above.
10810 (x86_64_skip_prologue): Reformulated message.
10811
10812 2002-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
10813
10814 * f-exp.y: Also use new prev_lexptr variable
10815 to improve error reporting. Based on Michael Snyder
10816 2002-04-24 dated patch to c-exp.y.
10817 * jv-exp.y: Likewise.
10818 * m2-exp.y: Likewise.
10819
10820 2002-05-02 Elena Zannoni <ezannoni@redhat.com>
10821
10822 * valops.c (value_arg_coerce): Don't coerce arrays to pointers if
10823 we are dealing with vectors.
10824
10825 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10826
10827 * config/m68k/tm-nbsd.h: Obvious fix,
10828 correct machine name.
10829
10830 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10831
10832 * p-typeprint.c (pascal_type_print_base): Add support
10833 for TYPE_CODE_STRING and TYPE_CODE_BITSTRING.
10834
10835 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10836
10837 * p-lang.c (pascal_create_fundamental_type): Use TYPE_CODE_CHAR
10838 for fondamental pascal 'char' type.
10839
10840 2002-05-02 Pierre Muller <muller@ics.u-strasbg.fr>
10841
10842 * p-lang.h (is_pascal_string_type): Declaration changed,
10843 new sixth argument of type char ** added.
10844 * p-lang.c (is_pascal_string_type): Implementation
10845 changed. Args length_pos, length_size, string_pos, char_size
10846 can now be NULL. New argument arrayname set to the field
10847 name of the char array. Return value set to char array
10848 field index plus one.
10849 * p-valprint.c (pascal_val_print): Adapt to new declaration of
10850 is_pascal_string_type function.
10851
10852 2002-05-02 Andrew Cagney <cagney@redhat.com>
10853
10854 * gdbarch.sh (gdbarch_update_p): Revert 2002-05-02 Andrew Cagney
10855 <cagney@redhat.com> change.
10856 * gdbarch.c: Regenerate.
10857
10858 2002-05-02 Andrew Cagney <cagney@redhat.com>
10859
10860 * gdbarch.sh (gdbarch_update_p): Swap out the old architecture
10861 before probing for a new one. Detect errorenous gdbarch_init
10862 functions.
10863 * gdbarch.c: Regenerate.
10864
10865 2002-05-01 Andrew Cagney <cagney@redhat.com>
10866
10867 * config/mn10200/tm-mn10200.h: Include "symfile.h" and "symtab.h".
10868 * config/mcore/tm-mcore.h: Ditto. Update copyright.
10869 * config/v850/tm-v850.h: Ditto. Update copyright.
10870
10871 2002-04-30 Andrew Cagney <ac131313@redhat.com>
10872
10873 * cris-tdep.c (cris_gdbarch_init): Use arches instead of
10874 current_gdbarch.
10875
10876 2002-04-30 Michael Snyder <msnyder@redhat.com>
10877
10878 * arm-tdep.c: Whitespace clean-ups.
10879 (arm_skip_prologue): Fix thinko; two lines
10880 should have been removed as part of 4/24 change.
10881
10882 2002-04-30 Kevin Buettner <kevinb@redhat.com>
10883
10884 * rs6000-tdep.c: Added comment describing how fpscr register
10885 numbers were chosen.
10886
10887 2002-04-30 Michael Snyder <msnyder@redhat.com>
10888
10889 * gnu-nat.c (gnu_find_memory_regions): Fix merge botch.
10890
10891 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10892
10893 * hpread.c (DNTT_TYPE_VECTOR): Rename from TYPE_VECTOR.
10894 (DNTT_TYPE_VECTOR_LENGTH): Rename from TYPE_VECTOR_LENGTH.
10895 (hpread_symfile_init, hpread_lookup_type): Substitute throughout.
10896
10897 2002-04-29 Kevin Buettner <kevinb@redhat.com>
10898
10899 From Louis Hamilton <hamilton@redhat.com>:
10900 * rs6000-tdep.c (coff/xcoff.h, libxcoff.h): Include.
10901 * xcoffread.c (coff/xcoff.h, libxcoff.h): Likewise.
10902 * rs6000-tdep.c (rs6000_gdbarch_init): Use bfd_xcoff_is_xcoff64(),
10903 not bfd-private xcoff data, to determine wordsize.
10904 * xcoffread.c (read_xcoff_xymtab, read_symbol_lineno): Likewise.
10905
10906 2002-04-29 Andrew Cagney <ac131313@redhat.com>
10907
10908 GDB 5.2 released from 5.2 branch.
10909
10910 2002-04-29 Michal Ludvig <mludvig@suse.cz>
10911
10912 * x86-64-linux-nat.c (fill_gregset): Explicit cast to avoid warning.
10913 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
10914 (x86_64_register_info_table): Added comments with register numbers.
10915
10916 2002-04-29 Elena Zannoni <ezannoni@redhat.com>
10917
10918 * rs6000-tdep.c (rs6000_extract_return_value,
10919 rs6000_store_return_value): Handle returning vectors.
10920 (rs6000_gdbarch_init): Use
10921 ppc_sysv_abi_broken_use_struct_convention for native sysv cases.
10922 * ppc-linux-tdep.c (ppc_sysv_abi_broken_use_struct_convention):
10923 New function.
10924 (ppc_sysv_abi_use_struct_convention): Deal with functions returning
10925 vectors.
10926 (ppc_sysv_abi_push_arguments): Handle vector parameters.
10927 * ppc-tdep.h (ppc_sysv_abi_broken_use_struct_convention): Export.
10928
10929 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10930
10931 * hpread.c (hpread_psymtab_to_symtab_1,
10932 hpread_psymtab_to_symtab): Replace fprintf tab_to_s...)
10933 with fprintf_unfiltered (gdb_stderr,...).
10934
10935 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
10936
10937 * remote-array.c (printf_monitor, write_monitor,
10938 array_insert_breakpoint, array_remove_breakpoint ):
10939 Replace fprintf (stderr,...
10940 with fprintf_unfiltered (gdb_stderr,....
10941 * remote-es.c: Likewise.
10942 * remote-os9k.c: Likewise.
10943 * remote-st.c: Likewise.
10944
10945 2002-04-28 Andreas Schwab <schwab@suse.de>
10946
10947 * config/s390/s390.mh (NATDEPFILES): Remove solib.o, add
10948 linux-proc.o and gcore.o.
10949
10950 2002-04-26 Michal Ludvig <mludvig@suse.cz>
10951
10952 * x86-64-tdep.c (x86_64_skip_prologue): Print note when debugging
10953 code without frame pointers.
10954
10955 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10956
10957 * sparc-tdep.c (sparc_gdbarch_init): Add comment explaining why
10958 ON_STACK is needed.
10959
10960 2002-04-26 Ben Elliston <bje@redhat.com>
10961
10962 * target.c (do_xfer_memory): Correct reference to the new option
10963 "trust-readonly-sections".
10964
10965 2002-04-26 Elena Zannoni <ezannoni@redhat.com>
10966
10967 * gdbtypes.h (TYPE_FLAG_VECTOR, TYPE_VECTOR): Define.
10968 * gdbtypes.c (recursive_dump_type): Output the vector flag.
10969 * dwarf2read.c (dwarf_attr_name): Handle new attribute for
10970 vectors.
10971 (read_array_type): Record the fact that this array type is really a
10972 vector (i.e. are passed in by value).
10973
10974 2002-04-26 Jason Thorpe <thorpej@wasabisystems.com>
10975
10976 * alpha-tdep.h (gdbarch_tdep): Add sigcontext_addr member.
10977 * alpha-tdep.c (alpha_sigcontext_addr): New function.
10978 (alpha_find_saved_regs): Use alpha_sigcontext_addr.
10979 (alpha_gdbarch_init): Initialize tdep->sigcontext_addr.
10980 * alpha-linux-tdep.c: Include frame.h.
10981 (alpha_linux_sigcontext_addr): New function.
10982 (alpha_linux_init_abi): Set tdep->sigcontext_addr to
10983 alpha_linux_sigcontext_addr.
10984 * alpha-osf1-tdep.c: Include gdbcore.h.
10985 (alpha_osf1_sigcontext_addr): New function.
10986 (alpha_osf1_init_abi): Set tdep->sigcontext_addr to
10987 alpha_osf1_sigcontext_addr.
10988 * config/alpha/tm-alpha.h (SIGCONTEXT_ADDR): Remove.
10989 * config/alpha/tm-alphalinux.h (SIGCONTEXT_ADDR): Remove.
10990
10991 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10992
10993 * stack.c (selected_frame_level):
10994 (select_frame): Do not set selected_frame_level.
10995 * frame.h (selected_frame_level): Delete declaration.
10996
10997 2002-04-26 Andrew Cagney <ac131313@redhat.com>
10998
10999 * rs6000-tdep.c (rs6000_gdbarch_init): Only set
11000 convert_from_func_ptr-addr when AIX / PowerOpen.
11001
11002 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11003
11004 * valops.c (hand_function_call): Call
11005 generic_save_call_dummy_addr.
11006 * frame.h (generic_save_call_dummy_addr): Declare.
11007 * blockframe.c (struct dummy_frame): Add fields call_lo and
11008 call_hi.
11009 (generic_find_dummy_frame): Check for PC in range call_lo to
11010 call_hi instead of entry_point_address.
11011 (generic_pc_in_call_dummy): Search the dummy frames for a PC in
11012 the call_lo to call_hi range. Allow for DECR_PC_AFTER_BREAK.
11013 (generic_save_call_dummy_addr): New function.
11014
11015 2002-04-24 David S. Miller <davem@redhat.com>
11016
11017 * sparc-tdep.c (sparc_gdbarch_skip_prologue): Kill, duplicates
11018 sparc_skip_prologue.
11019 (sparc_skip_prologue): Kill frameless_p arg, and use line number
11020 information to find prologue when possible.
11021 (sparc_prologue_frameless_p): Call examine_prologue directly.
11022 (sparc_gdbarch_init): Update set_gdbarch_skip_prologue call.
11023 * config/sparc/tm-sparc.h (sparc_skip_prologue): Update for killed
11024 second argument.
11025 (SKIP_PROLOGUE): Likewise.
11026
11027 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11028
11029 * alpha-tdep.c (alpha_skip_prologue_internal): Remove
11030 GDB_TARGET_HAS_SHARED_LIBS #ifdef and update comment to
11031 indicate that the condition it was testing is always true.
11032 * config/alpha/nm-linux.h (GDB_TARGET_HAS_SHARED_LIBS): Remove.
11033 * config/alpha/nm-nbsd.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11034 * config/alpha/nm-osf.h (GDB_TARGET_HAS_SHARED_LIBS): Ditto.
11035
11036 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11037
11038 * alpha-tdep.h (gdbarch_tdep): Add jb_pc and jb_elt_size members.
11039 * alpha-linux-tdep.c (alpha_linux_init_abi): Initialize
11040 tdep->jb_pc and tdep->jb_elt_size.
11041 * alpha-osf1-tdep.c (alpha_osf1_init_abi): Likewise.
11042 * alphafbsd-tdep.c (alphafbsd_init_abi): Likewise.
11043 * alphanbsd-tdep.c (alphanbsd_init_abi): Likewise.
11044 * alpha-nat.c (get_longjmp_target): Remove.
11045 (JB_ELEMENT_SIZE): Ditto.
11046 (JB_PC): Ditto.
11047 * alpha-tdep.c (alpha_get_longjmp_target): New function.
11048 (alpha_gdbarch_init): Default tdep->jb_pc to -1. If the
11049 OS ABI sets jb_pc to a valid value, set gdbarch_get_longjmp_target
11050 to alpha_get_longjmp_target.
11051 (alpha_dump_tdep): Report tdep->jb_pc and tdep->jb_elt_size.
11052 * config/alpha/nm-linux.h (GET_LONGJMP_TARGET): Remove.
11053 * config/alpha/nm-osf.h (GET_LONGJMP_TARGET): Remove.
11054
11055 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11056
11057 * README: Update to GDB 5.2.
11058
11059 2002-04-25 Andrew Cagney <ac131313@redhat.com>
11060
11061 * gdbarch.sh (LC_ALL): Set to `c'.
11062
11063 2002-04-25 Theodore A. Roth <troth@verinet.com>
11064
11065 * avr-tdep.c: Ran through gdb_indent.sh.
11066
11067 2002-04-25 Theodore A. Roth <troth@verinet.com>
11068
11069 * MAINTAINERS: Add myself as AVR maintainer.
11070 * NEWS: Note new target avr.
11071
11072 2002-04-25 Theodore A. Roth <troth@verinet.com>
11073
11074 * Makefile.in: Add support for AVR target.
11075 * configure.tgt: Add support for AVR target.
11076 * avr-tdep.c: New file
11077 * config/avr/avr.mt: New file.
11078
11079 2002-04-25 Theodore A. Roth <troth@verinet.com>
11080
11081 * MAINTAINERS: Add myself to write-after-approval.
11082
11083 2002-04-24 Pierre Muller <ics.u-strasbg.fr>
11084
11085 * f-lang.c (get_bf_for_fcn): Replace fprintf (stderr,...
11086 with fprintf_unfiltered (gdb_stderr,....
11087
11088 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11089
11090 Fix PR gdb/508.
11091 * symfile.c (add_filename_language): Fix wrong xrealloc size argument.
11092
11093 2002-04-25 Pierre Muller <muller@ics.u-strasbg.fr>
11094
11095 * p-exp.y: Also use new prev_lexptr variable
11096 to improve error reporting. Based on Michael Snyder
11097 2002-04-24 dated patch to c-exp.y.
11098
11099 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11100
11101 * alpha-tdep.c (alpha_breakpoint_from_pc): New function.
11102 (alpha_gdbarch_init): Set gdbarch_breakpoint_from_pc to
11103 alpha_breakpoint_from_pc. Set gdbarch_function_start_offset
11104 to 0.
11105 * config/alpha/tm-alpha.h: Remove forward decls of struct type
11106 and struct value.
11107 (FUNCTION_START_OFFSET): Remove.
11108 (BREAKPOINT): Ditto.
11109
11110 2002-04-25 Jason Thorpe <thorpej@wasabisystems.com>
11111
11112 * MAINTAINERS: Reflect that multi-arch is enabled for VAX.
11113 * NEWS: Ditto.
11114
11115 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11116
11117 * alpha-linux-tdep.c (alpha_linux_pc_in_sigtramp): New function.
11118 (alpha_linux_init_abi): Set gdbarch_pc_in_sigtramp to
11119 alpha_linux_pc_in_sigtramp.
11120 * alpha-osf1-tdep.c (alpha_osf1_pc_in_sigtramp): New function.
11121 (alpha_osf1_init_abi): Set gdbarch_pc_in_sigtramp to
11122 alpha_osf1_pc_in_sigtramp.
11123 * alpha-tdep.c (alpha_osf_in_sigtramp): Remove.
11124 * alphafbsd-tdep.c (alphafbsd_pc_in_sigtramp): New function.
11125 (alphafbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11126 alphafbsd_pc_in_sigtramp.
11127 * alphanbsd-tdep.c (alphanbsd_pc_in_sigtramp): New function.
11128 (alphanbsd_init_abi): Set gdbarch_pc_in_sigtramp to
11129 alphanbsd_pc_in_sigtramp.
11130 * config/alpha/tm-alpha.h (IN_SIGTRAMP): Remove.
11131 * config/alpha/tm-alphalinux.h (IN_SIGTRAMP): Remove.
11132
11133 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11134
11135 * config/alpha/nbsd.mh (NATDEPFILES): Remove solib-legacy.o.
11136
11137 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11138
11139 * Makefile.in (ALLDEPFILES): Add alphanbsd-nat.c and
11140 alphanbsd-tdep.c.
11141 (alphanbsd-nat.o): New dependency list.
11142 (alphanbsd-tdep.o): Ditto.
11143 * NEWS: Note new native NetBSD/alpha configuration.
11144 * alphanbsd-nat.c: New file.
11145 * alphanbsd-tdep.c: Ditto.
11146 * configure.host (alpha*-*-netbsd*): New host.
11147 * configure.tgt (alpha*-*-netbsd*): New target.
11148 * config/alpha/nbsd.mh: New file.
11149 * config/alpha/nbsd.mt: Ditto.
11150 * config/alpha/nm-nbsd.h: Ditto.
11151 * config/alpha/tm-nbsd.h: Ditto.
11152
11153 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11154
11155 * Makefile.in (ALLDEPFILES): Add alpha-osf1-tdep.c.
11156 (alpha-osf1-tdep.o): New dependency list.
11157 * alpha-tdep.h (gdbarch_tdep): Add dynamic_sigtramp_offset
11158 and skip_sigtramp_frame members.
11159 * alpha-linux-tdep.c: Include gdbcore.h.
11160 (alpha_linux_sigtramp_offset): Change return type to LONGEST.
11161 (alpha_linux_init_abi): Initialize tdep->dynamic_sigtramp_offset.
11162 * alpha-osf1-tdep.c: New file.
11163 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Moved to
11164 alpha-osf1-dep.c.
11165 (alpha_frame_past_sigtramp_frame): New function.
11166 (alpha_dynamic_sigtramp_offset): Ditto.
11167 (alpha_proc_desc_is_dyn_sigtramp): Ditto.
11168 (alpha_set_proc_desc_is_dyn_sigtramp): Ditto.
11169 (ALPHA_PROC_SIGTRAMP_MAGIC): Define.
11170 (push_sigtramp_desc): Use alpha_set_proc_desc_is_dyn_sigtramp.
11171 (after_prologue): Use alpha_proc_desc_is_dyn_sigtramp.
11172 (find_proc_desc): Use alpha_dynamic_sigtramp_offset.
11173 (alpha_frame_chain): Use alpha_frame_past_sigtramp_frame.
11174 (alpha_init_extra_frame_info): Use alpha_proc_desc_is_dyn_sigtramp.
11175 (alpha_pop_frame): Use alpha_proc_desc_is_dyn_sigtramp.
11176 (alpha_gdbarch_init): Initialize tdep->dynamic_sigtramp_offset
11177 and tdep->skip_sigtramp_frame. Set gdbarch_skip_trampoline_code
11178 to find_solib_trampoline_target.
11179 * config/alpha/alpha-osf1.mt (TDEPFILES): Add alpha-osf1-tdep.o.
11180 * config/alpha/tm-alpha.h: Remove inclusion of regcache.h.
11181 (SKIP_TRAMPOLINE_CODE): Remove.
11182 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11183 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11184 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11185 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11186 * config/alpha/tm-alphalinux.h (PROC_DESC_IS_DYN_SIGTRAMP): Remove.
11187 (PROC_SIGTRAMP_MAGIC): Ditto.
11188 (PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11189 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11190 (SET_PROC_DESC_IS_DYN_SIGTRAMP): Ditto.
11191 (DYNAMIC_SIGTRAMP_OFFSET): Ditto.
11192 (FRAME_PAST_SIGTRAMP_FRAME): Ditto.
11193
11194 2002-04-24 Jason Thorpe <thorpej@wasabisystems.com>
11195
11196 * NEWS: Note that Alpha targets are now multi-arch.
11197
11198 2002-04-24 Michael Snyder <msnyder@redhat.com>
11199
11200 * parser-defs.h (prev_lexptr): New external variable.
11201 * parse.c (parse_exp_1): Set prev_lexptr to null before
11202 calling the language-specific parser.
11203 * c-exp.y (yylex): Set prev_lexptr to start of current token.
11204 (yyerror): Use prev_lexptr in error reporting.
11205
11206 2002-04-24 Daniel Jacobowitz <drow@mvista.com>
11207
11208 * config/i386/tm-linux.h: Define FILL_FPXREGSET.
11209 * gregset.h: If FILL_FPXREGSET is defined, provide
11210 gdb_fpxregset_t, supply_fpxregset, and fill_fpxregset.
11211 * linux-proc.c (linux_do_thread_registers): If FILL_FPXREGSET
11212 is defined, call fill_fpxregset.
11213
11214 2002-04-24 Roland McGrath <roland@frob.com>
11215
11216 * config/i386/i386gnu.mh (NATDEPFILES): Add core-regset.o here.
11217 * i386gnu-nat.c [HAVE_SYS_PROCFS_H]
11218 (supply_gregset, supply_fpregset): New functions.
11219
11220 * gnu-nat.c (gnu_find_memory_regions): New function.
11221 (init_gnu_ops): Set `to_find_memory_regions' hook to that.
11222 (gnu_xfer_memory): Add a cast.
11223
11224 2002-04-24 Michael Snyder <msnyder@redhat.com>
11225
11226 * arm-tdep.c (arm_scan_prologue): Move "mov ip, sp" into the
11227 loop. Add handling for "str lr, [sp, #-4]!" and for saves
11228 of argument regs ("str r(0123), [r11, #-nn"]).
11229 (arm_skip_prologue): Better handling for frameless functions.
11230 Treat "mov ip, sp" as optional. Recognize "str lr, [sp, #-4]".
11231 (arm_skip_prologue): Recognize str r(0123), [r11, #-nn].
11232
11233 Wed Apr 24 14:22:21 2002 Andrew Cagney <cagney@redhat.com>
11234
11235 * arm-tdep.c (arm_gdbarch_init): Add comment that NUM_REGS nor
11236 NUM_PSEUDO_REGS can be used.
11237
11238 2002-04-24 Andrew Cagney <ac131313@redhat.com>
11239
11240 * arch-utils.h: Update copyright.
11241
11242 * gdbarch.sh (PC_IN_SIGTRAMP): Add.
11243 * gdbarch.h, gdbarch.c: Re-generate.
11244
11245 * inferior.h (IN_SIGTRAMP): Delete definition.
11246 * arch-utils.c (legacy_pc_in_sigtramp): New function.
11247 * arch-utils.h (legacy_pc_in_sigtramp): Declare.
11248
11249 * mips-tdep.c (mips_init_extra_frame_info): Use PC_IN_SIGTRAMP.
11250 (mips_dump_tdep): Do not print value of IN_SIGTRAMP.
11251 * hppa-tdep.c (pc_in_interrupt_handler): Use PC_IN_SIGTRAMP.
11252 (find_proc_framesize): Ditto.
11253 * alpha-tdep.c (alpha_osf_skip_sigtramp_frame): Ditto.
11254 (alpha_init_extra_frame_info): Ditto.
11255 * infrun.c (handle_inferior_event): Ditto.
11256 (handle_inferior_event): Ditto.
11257 (check_sigtramp2): Ditto.
11258 * blockframe.c (create_new_frame): Ditto.
11259 (get_prev_frame): Ditto.
11260 * ppc-linux-tdep.c: Update comments.
11261 * i386-linux-tdep.c: Update comments.
11262 * breakpoint.c (bpstat_what): Update comment.
11263
11264 2002-04-24 David S. Miller <davem@redhat.com>
11265
11266 * i960-tdep.c (register_in_window_p): New function.
11267 (i960_find_saved_register): Use it instead of
11268 REGISTER_IN_WINDOW_P.
11269 * config/i960/tm-i960.h (REGISTER_IN_WINDOW): Delete.
11270
11271 * symtab.h (find_stab_function_addr): Kill extern.
11272 * minsyms.c (find_stab_function_addr): Remove from here...
11273 * dbxread.c: ... to here, and mark it static.
11274
11275 2002-04-20 David S. Miller <davem@redhat.com>
11276
11277 * sparc-tdep.c (sparc_pop_frame): Only need to allocate
11278 SPARC_INTREG_SIZE * 16 bytes for reg_temp.
11279
11280 2002-04-21 David S. Miller <davem@redhat.com>
11281
11282 * remote-vxsparc.c (vx_read_register): Fix typo, we want
11283 REGISTER_RAW_SIZE of SP_REGNUM not CORE_ADDR.
11284 (vx_write_register): Likewise.
11285
11286 2002-04-23 J. Brobecker <brobecker@gnat.com>
11287
11288 * source.c (is_regular_file): New function.
11289 (openp): Check wether file to open is a regular file
11290 to avoid opening directories.
11291
11292 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11293
11294 * findvar.c (extract_signed_integer): Cast printf argument
11295 to suppress format warning.
11296 (extract_unsigned_integer): Likewise.
11297 * infcmd.c (registers_info): Likewise.
11298 * top.c (get_prompt_1): Likewise.
11299 * valops.c (value_assign): Likewise.
11300 * valprint.c (print_decimal): Likewise.
11301
11302 2002-04-22 H.J. Lu (hjl@gnu.org)
11303
11304 * c-exp.y (typebase): Support
11305
11306 [long|long long|short] [signed|unsigned] [int|]
11307
11308 and
11309
11310 signed [long|long long|short] int
11311
11312 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11313
11314 * Makefile.in (vax-tdep.o): Add $(arch_utils_h), $(inferior_h),
11315 and vax-tdep.h.
11316 * vax-tdep.h: New file.
11317 * vax-tdep.c: Include inferior.h, arch-utils.h, and vax-tdep.h.
11318 Make several routines static.
11319 (vax_get_saved_register): New function.
11320 (vax_gdbarch_init): New function.
11321 (_initialize_vax_tdep): Register vax_gdbarch_init.
11322 * config/vax/tm-vax.h: Set GDB_MULTI_ARCH to GDB_MULTI_ARCH_PARTIAL.
11323 Remove macros now under the control of gdbarch.
11324
11325 2002-04-22 Michael Snyder <msnyder@redhat.com>
11326
11327 * arm-tdep.c (arm_skip_prologue): Recognize "sub sp, sp, #nn".
11328 Some whitespace and coding standards tweaks.
11329
11330 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11331
11332 * vax-tdep.c: Include regcache.h.
11333 (vax_call_dummy_words): New.
11334 (sizeof_vax_call_dummy_words): New.
11335 (vax_fix_call_dummy): New function.
11336 (vax_saved_pc_after_call): Ditto.
11337 * config/vax/tm-vax.h: Don't include regcache.h.
11338 (SAVED_PC_AFTER_CALL): Use vax_saved_pc_after_call.
11339 (CALL_DUMMY): Remove.
11340 (CALL_DUMMY_WORDS): Define.
11341 (SIZEOF_CALL_DUMMY_WORDS): Define.
11342 (FIX_CALL_DUMMY): Use vax_fix_call_dummy.
11343
11344 2002-04-18 Michael Snyder <msnyder@redhat.com>
11345
11346 * arm-tdep.h: Change regnum defines to enums for ease of debugging.
11347
11348 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11349
11350 * vax-tdep.c (vax_frame_chain): New function.
11351 (vax_push_dummy_frame): Ditto.
11352 (vax_pop_frame): Ditto.
11353 * config/vax/tm-vax.h (FRAME_CHAIN): vax_frame_chain.
11354 (FRAMELESS_FUNCTION_INVOCATION): Use
11355 generic_frameless_function_invocation_not.
11356 (PUSH_DUMMY_FRAME): Use vax_push_dummy_frame.
11357 (POP_FRAME): Use vax_pop_frame.
11358
11359 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11360
11361 * vax-tdep.c (vax_store_struct_return): New function.
11362 (vax_extract_return_value): Ditto.
11363 (vax_store_return_value): Ditto.
11364 (vax_extract_struct_value_address): Ditto.
11365 * config/vax/tm-vax.h (STORE_STRUCT_RETURN): Use
11366 vax_store_struct_return.
11367 (EXTRACT_RETURN_VALUE): Use vax_extract_return_value.
11368 (STORE_RETURN_VALUE): Use vax_store_return_value.
11369 (EXTRACT_STRUCT_VALUE_ADDRESS): Use vax_extract_struct_value_address.
11370
11371 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11372
11373 * vax-tdep.c (vax_frame_saved_pc): New function.
11374 (vax_frame_args_address_correct): Ditto.
11375 (vax_frame_args_address): Ditto.
11376 (vax_frame_locals_address): Ditto.
11377 (vax_frame_num_args): Move code to be in proximity to
11378 other frame-related functions.
11379 * config/vax/tm-vax.h (INNER_THAN): Use core_addr_lessthan.
11380 (FRAME_SAVED_PC): Use vax_frame_saved_pc.
11381 (FRAME_ARGS_ADDRESS_CORRECT): Use vax_frame_args_address_correct.
11382 (FRAME_ARGS_ADDRESS): Use vax_frame_args_address.
11383 (FRAME_LOCALS_ADDRESS): Use vax_frame_locals_address.
11384
11385 2002-04-22 H.J. Lu (hjl@gnu.org)
11386
11387 * Makefile.in (FLAGS_TO_PASS): Add libdir, mandir, datadir and
11388 includedir.
11389
11390 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11391
11392 * vax-tdep.c (vax_frame_init_saved_regs): New function.
11393 * config/vax/tm-vax.h (FRAME_FIND_SAVED_REGS): Remove.
11394 (FRAME_INIT_SAVED_REGS): New macro.
11395
11396 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11397
11398 * MAINTAINERS: Reflect that the Alpha target has been multi-arch'd.
11399
11400 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11401
11402 * alpha-nat.c (get_longjmp_target): Use ALPHA_* constants
11403 where needed.
11404 (fetch_osf_core_registers): Likewise.
11405 (supply_gregset): Likewise.
11406
11407 2002-04-22 J. Brobecker <brobecker@gnat.com>
11408
11409 * symfile.h (get_section_index): Define.
11410 * symfile.c (get_section_index): New function.
11411 * mdebugread.c (SC_IS_SBSS): New macro.
11412 (SC_IS_BSS): Return true for the scBss storage class only, as
11413 the scSBss storage class refers to the .sbss section.
11414 (parse_partial_symbols): Discard the symbols which associated
11415 section does not exist.
11416 Make sure to use the .sbss section index for symbols which
11417 storage class is scBss, rather than using the .bss section index.
11418
11419 2002-04-22 Jason Thorpe <thorpej@wasabisystems.com>
11420
11421 * vax-tdep.c: Update copyright years.
11422 (vax_register_name): New function.
11423 (vax_register_byte): Ditto.
11424 (vax_register_raw_size): Ditto.
11425 (vax_register_virtual_size): Ditto.
11426 (vax_register_virtual_type): Ditto.
11427 * config/vax/tm-vax.h: Update copyright years.
11428 (REGISTER_NAMES): Remove.
11429 (REGISTER_NAME): Define.
11430 (REGISTER_BYTE): Use vax_register_byte.
11431 (REGISTER_RAW_SIZE): Use vax_register_raw_size.
11432 (REGISTER_VIRTUAL_SIZE): Use vax_register_virtual_size.
11433 (REGISTER_VIRTUAL_TYPE): Use vax_register_virtual_type.
11434
11435 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11436
11437 * config/sparc/tm-sparc.h (sparc_skip_prologue): Restore
11438 declaration
11439 * arc-tdep.c (arc_prologue_frameless_p): Fix syntax error.
11440
11441 2002-04-21 David S. Miller <davem@redhat.com>
11442
11443 * arch-utils.c (generic_prologue_frameless_p): Kill
11444 SKIP_PROLOGUE_FRAMELESS_P code.
11445 * config/arc/tm-arc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11446 references.
11447 (PROLOGUE_FRAMELESS_P, arc_prologue_frameless_p): New.
11448 * arc-tdep.c (arc_prologue_frameless_p): Implement.
11449 * config/arc/tm-sparc.h (SKIP_PROLOGUE_FRAMELESS_P): Delete
11450 references.
11451 (PROLOGUE_FRAMELESS_P, sparc_prologue_frameless_p): New.
11452 * sparc-tdep.c (sparc_prologue_frameless_p): Implement.
11453 (sparc_gdbarch_init): Pass it to
11454 set_gdbarch_prologue_frameless_p.
11455
11456 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11457
11458 * Makefile.in (ALLDEPFILES): Add alphabsd-nat.c.
11459 (alphabsd-nat.o): New dependency list.
11460
11461 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11462
11463 * Makefile.in (ALLDEPFILES): Add alpha-linux-tdep.c and
11464 alphafbsd-tdep.c.
11465 (alpha-linux-tdep.o): New dependency list.
11466 (alphafbsd-tdep.o): Likewise.
11467
11468 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11469
11470 * alpha-linux-tdep.c: New file. Move alpha_linux_sigtramp_offset
11471 to here...
11472 * alpha-tdep.c: ...from here.
11473 * config/alpha/alpha-linux.mt (TDEPFILES): Add alpha-linux-tdep.o.
11474
11475 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11476
11477 * config/alpha/tm-alpha.h: Move alpha_software_single_step
11478 prototype from here...
11479 * alpha-tdep.h: ...to here.
11480
11481 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11482
11483 * frame.h (selected_frame_level): Document as deprecated.
11484 (frame_relative_level): Declare.
11485 * stack.c (frame_relative_level): New function.
11486 (selected_frame_level): Document as deprecated.
11487 (select_frame): Do not set the selected_frame_level.
11488
11489 * stack.c (frame_info, record_selected_frame): Update.
11490 (frame_command, current_frame_command): Update.
11491 (up_silently_base, up_command, down_silently_base): Update.
11492 (down_command): Update.
11493 * inflow.c (kill_command): Update.
11494 * tracepoint.c (finish_tfind_command): Update.
11495 * corelow.c (core_open): Update.
11496 * thread.c (info_threads_command): Update.
11497 (do_captured_thread_select): Update.
11498 * infcmd.c (finish_command): Update.
11499 * breakpoint.c (insert_breakpoints, do_enable_breakpoint): Update.
11500
11501 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11502
11503 * config/alpha/tm-fbsd.h (FRAME_CHAIN_VALID): Remove.
11504
11505 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11506
11507 * arm-tdep.c (arm_breakpoint_from_pc): Make static. Make return
11508 type const.
11509
11510 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11511
11512 * alphafbsd-tdep.c: Update copyright years. Include
11513 alpha-tdep.h.
11514 (alphafbsd_use_struct_convention): Make static.
11515 (alphafbsd_init_abi): New function.
11516 (_initialize_alphafbsd_tdep): New function.
11517 * config/alpha/tm-fbsd.h: Update copyright years.
11518 (USE_STRUCT_CONVENTION): Remove.
11519
11520 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11521
11522 * alpha-tdep.c (alpha_abi_handler): New structure to describe
11523 an Alpha ABI variant.
11524 (alpha_abi_handler_list): Declare.
11525 (alpha_gdbarch_register_os_abi): New function.
11526 (alpha_gdbarch_init): Give registered ABI variant handlers a
11527 chance to tweak the gdbarch once we have set up defaults.
11528 * alpha-tdep.h: Prototype alpha_gdbarch_register_os_abi.
11529
11530 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11531
11532 * alpha-tdep.c (alpha_gdbarch_init): Set coerce_float_to_double
11533 to standard_coerce_float_to_double.
11534 * config/alpha/tm-alpha.h (COERCE_FLOAT_TO_DOUBLE): Remove.
11535
11536 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11537
11538 * alpha-tdep.h (gdbarch_tdep): Add vm_min_address member.
11539 * alpha-tdep.c (heuristic_proc_start): Use vm_min_address
11540 from gdbarch_tdep rather than a constant.
11541 (alpha_gdbarch_init): Initialize tdep->vm_min_address to
11542 the default text address for all Alpha Unix ABIs.
11543 (alpha_dump_tdep): Report the value of tdep->vm_min_address.
11544 * config/alpha/tm-alpha.h (VM_MIN_ADDRESS): Delete.
11545
11546 2002-04-21 Jason Thorpe <thorpej@wasabisystems.com>
11547
11548 * alpha-tdep.h: New file. Includes several Alpha target constants
11549 taken from...
11550 * config/alpha/tm-alpha.h: ...here. Remove macros that we now
11551 let gdbarch deal with.
11552 (GDB_MULTI_ARCH): Define as GDB_MULTI_ARCH_PARTIAL.
11553 * Makefile.in (alpha-nat.o): Add alpha-tdep.h and $(BFD_SRC)/elf-bfd
11554 to dependency list.
11555 * alpha-nat.c: Include alpha-tdep.h. Update for adjusted
11556 Alpha target register names.
11557 * alphabsd-nat.c: Likewise.
11558 * alpha-tdep.c: Include alpha-tdep.h. Update for adjusted
11559 Alpha target register names. Make serveral routines static.
11560 (alpha_get_saved_register): New function.
11561 (alpha_abi_names): New.
11562 (process_note_abi_tag_sections): New function.
11563 (get_elfosabi): New function.
11564 (alpha_gdbarch_init): New function.
11565 (alpha_dump_tdep): New function.
11566 (_initialize_alpha_tdep): Register alpha_gdbarch_init.
11567
11568 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11569
11570 * frame.c (find_saved_register): Delete #ifdef
11571 HAVE_REGISTER_WINDOWS code.
11572 * config/sparc/tm-sparc.h: Update comments.
11573 * config/i960/tm-i960.h (HAVE_REGISTER_WINDOWS): Delete macro.
11574
11575 2002-04-21 Andrew Cagney <ac131313@redhat.com>
11576
11577 * i960-tdep.c (i960_find_saved_register): New function.
11578 (i960_get_saved_register): New function.
11579 * config/i960/tm-i960.h (GET_SAVED_REGISTER): Define.
11580 (i960_get_saved_register): Declare.
11581 * config/i960/tm-i960.h, i960-tdep.c: Update copyright.
11582
11583 2002-04-20 David S. Miller <davem@redhat.com>
11584
11585 * sparc-nat.c (store-inferior_registers): Fix ambiguous else.
11586
11587 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11588
11589 * arm-tdep.c (arm_gdbarch_init): Use gdbarch_num_pseudo_regs
11590 instead of NUM_PSEUDO_REGS.
11591
11592 2002-04-20 David S. Miller <davem@redhat.com>
11593
11594 * config/sparc/tm-linux.h (GDB_MULTI_ARCH): Define to
11595 GDB_MULTI_ARCH_PARTIAL
11596 * config/sparc/tm-sp64linux.h (GDB_MULTI_ARCH): Do not
11597 define, let tm-sp64.h do it.
11598
11599 2002-04-20 Jason Thorpe <thorpej@wasabisystems.com>
11600
11601 * frame.c (find_saved_register): Avoid a NULL pointer
11602 dereference and actually walk the frame list.
11603
11604 2002-04-20 Andrew Cagney <ac131313@redhat.com>
11605
11606 * gdbarch.sh (gdbarch_update_p): Keep the list of architectures
11607 sorted in most most-recent-used order. Document.
11608 * gdbarch.h, gdbarch.c: Regenerate.
11609
11610 2002-04-19 Andrew Cagney <ac131313@redhat.com>
11611
11612 * sparc-tdep.c (sparc_get_saved_register): Use get_prev_frame
11613 instead of ->prev.
11614 * z8k-tdep.c (z8k_frame_chain): Do not use ->prev.
11615 * s390-tdep.c (s390_frame_chain): Do not use ->prev.
11616 * rs6000-tdep.c (frame_get_saved_regs): Use rs6000_frame_chain()
11617 instead of ->prev.
11618
11619 2002-04-19 Elena Zannoni <ezannoni@redhat.com>
11620
11621 Fix PR gdb/471.
11622 * gdbtypes.c (init_simd_type): Rewrite using new functions.
11623 (build_builtin_type_vec128): Ditto.
11624 (append_composite_type_field): Fix calculation of type length in
11625 union case.
11626
11627 2002-04-19 Eli Zaretskii <eliz@is.elta.co.il>
11628
11629 * config/djgpp/README: Update.
11630
11631 * go32-nat.c (store_register): Cast &a_tss to `char *' to avoid a
11632 compiler warnings.
11633
11634 2002-04-19 Jason Thorpe <thorpej@wasabisystems.com>
11635
11636 * alpha-tdep.c (setup_arbitrary_frame): Rename...
11637 (alpha_setup_arbitrary_frame): ...to this.
11638 * config/alpha/tm-alpha.h (SETUP_ARBITRARY_FRAME): Update
11639 for alpha_setup_arbitrary_frame.
11640
11641 2002-04-18 Andrew Cagney <cagney@redhat.com>
11642
11643 * gdbarch.sh (BREAKPOINT_FROM_PC): Return a const buffer.
11644 * gdbarch.h, gdbarch.c: Regenerate.
11645
11646 * defs.h (breakpoint_from_pc_fn): Delete type definition.
11647 * target.h (memory_breakpoint_from_pc): Update declaration.
11648 * config/mcore/tm-mcore.h (mcore_breakpoint_from_p): Ditto.
11649
11650 * arch-utils.c (legacy_breakpoint_from_pc): Update return type.
11651 * mcore-tdep.c (mcore_breakpoint_from_pc): Ditto.
11652 * mem-break.c (memory_breakpoint_from_pc): Ditto.
11653 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Ditto.
11654 * s390-tdep.c (s390_breakpoint_from_pc): Ditto
11655 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Ditto.
11656 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Ditto.
11657 * mips-tdep.c (mips_breakpoint_from_pc): Ditto.
11658 * m68hc11-tdep.c (m68hc11_breakpoint_from_pc): Ditto.
11659 * ia64-tdep.c (ia64_breakpoint_from_pc): Ditto.
11660 * d10v-tdep.c (d10v_breakpoint_from_pc): Ditto.
11661 * arch-utils.c (legacy_breakpoint_from_pc): Ditto..
11662
11663 * mem-break.c (default_memory_insert_breakpoint): Make `bp' a
11664 const pointer.
11665 * monitor.c (monitor_insert_breakpoint): Ditto.
11666 * rs6000-tdep.c (rs6000_software_single_step): Ditto for `breakp'.
11667
11668 * config/mcore/tm-mcore.h: Update copyright.
11669 * mem-break.c: Ditto.
11670 * xstormy16-tdep.c: Ditto.
11671
11672 2002-04-18 Pierre Muller <muller@ics.u-strasbg.fr>
11673
11674 * p-exp.y: Add precedence rule for '^' token.
11675 This removes the shift/reduce conflicts.
11676 Remove the comment concerning these shift/reduce conflicts.
11677
11678 2002-04-18 Elena Zannoni <ezannoni@redhat.com>
11679
11680 * rs6000-tdep.c (COMMON_UISA_NOFP_REGS): New macro.
11681 (registers_powerpc_nofp): New register set for processors
11682 without floating point unit.
11683
11684 2002-04-18 David S. Miller <davem@redhat.com>
11685
11686 * MAINTAINERS: Add myself to write-after-approval.
11687
11688 2002-04-17 Michael Snyder <msnyder@redhat.com>
11689
11690 * MAINTAINERS: Add myself as co-maintainer of testsuite/gdb.asm.
11691
11692 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11693
11694 * rs6000-tdep.c (frame_initial_stack_address): Use
11695 frame_register_read to read the alloca_reg.
11696
11697 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11698
11699 * frame.c (find_saved_register): Find saved registers in the next
11700 not prev frame.
11701 Fix PR gdb/365.
11702
11703 2002-04-17 Andrew Cagney <ac131313@redhat.com>
11704
11705 * gdbarch.sh (LANG): Set to ``c''.
11706
11707 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11708
11709 * PROBLEMS: Mention hppa2.0-hp-hpux10.20 compile problems.
11710
11711 2002-04-15 Andrew Cagney <ac131313@redhat.com>
11712
11713 * bcache.c: Include <stddef.h> and <stdlib.h> after "defs.h".
11714 Update copyright.
11715
11716 * hpread.c (hpread_get_lntt): Add declaration.
11717 Also fix PR gdb/391.
11718
11719 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11720
11721 * acinclude.m4 (AM_PROG_CC_STDC): Import from automake 1.6.
11722 * aclocal.m4, configure: Re-generate.
11723 Fix PR gdb/391.
11724
11725 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11726
11727 * mi/mi-cmd-disas.c (dump_insns): Use TARGET_PRINT_INSN
11728 instead of tm_print_insn.
11729
11730 2002-04-14 Elena Zannoni <ezannoni@redhat.com>
11731
11732 * ppc-bdm.c (bdm_ppc_fetch_registers): Fix typo.
11733
11734 2002-04-14 Andrew Cagney <ac131313@redhat.com>
11735
11736 * config/pa/tm-hppa.h (FRAME_CHAIN_COMBINE): Delete macro.
11737 * blockframe.c (FRAME_CHAIN_COMBINE): Delete macro.
11738 (get_prev_frame): Do not call FRAME_CHAIN_COMBINE.
11739
11740 2002-04-12 Don Howard <dhoward@redhat.com>
11741
11742 * cli/cli-cmds.c (init_cli_cmds): Add new user settable value:
11743 max_user_call_depth.
11744 (init_cmd_lists): Initialize the new value;
11745 * cli/cli-script.c (execute_user_command): Limit the call depth of
11746 user defined commands. This avoids a core-dump when user commands
11747 are infinitly recursive.
11748
11749 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11750
11751 * ppc-tdep.h (struct gdbarch_tdep): Add new member ``lr_frame_offset''.
11752 * rs6000-tdep.c (rs6000_frame_saved_pc): Use ``lr_frame_offset''
11753 from tdep struct instead of DEFAULT_LR_SAVE.
11754 (rs6000_gdbarch_init): Initialize ``lr_frame_offset''.
11755 * config/powerpc/tm-ppc-eabi.h (DEFAULT_LR_SAVE): Delete.
11756 * config/rs6000/tm-rs6000.h (DEFAULT_LR_SAVE): Delete.
11757
11758 2002-04-12 Michael Snyder <msnyder@redhat.com>
11759
11760 * Remote.c: Spelling fix.
11761 * gcore.c (default_derive_heap_segment): Use bfd_section_name.
11762 If no symbol found for "sbrk", try "_sbrk".
11763 (make_output_phdrs): Use bfd_section_name.
11764 (gcore_copy_callback): Use bfd_section_name.
11765 * eval.c: Indentation fix-ups.
11766 * d10v-tdep.c (d10v_make_iaddr): Make it idempotent,
11767 in case it gets applied to an address that is already
11768 in the instruction space.
11769 * cli/cli-decode.c (help_list): Allow long lines to wrap.
11770 * symfile.c: Fix indentation, long lines.
11771 * source.c: White space fix-up.
11772
11773 2002-04-12 Andrew Cagney <cagney@redhat.com>
11774
11775 * defs.h (read_relative_register_raw_bytes): Delete declaration.
11776 * frame.c (frame_register_read): New function. Return non-zero on
11777 success.
11778 (read_relative_register_raw_bytes_for_frame): Delete.
11779 (read_relative_register_raw_bytes): Delete.
11780 * frame.h (frame_register_read): Declare.
11781 * d30v-tdep.c: Update Copyright. Use frame_register_read.
11782 * sh-tdep.c: Ditto.
11783 * infcmd.c (do_registers_info): Ditto.
11784 * hppa-tdep.c: Ditto.
11785 * rs6000-tdep.c: Ditto.
11786 * h8500-tdep.c: Ditto.
11787 * mips-tdep.c: Ditto.
11788 * h8300-tdep.c: Ditto.
11789 * z8k-tdep.c: Ditto.
11790
11791 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11792
11793 From Jimi X <jimix@watson.ibm.com>:
11794 * rs6000-tdep.c (rs6000_gdbarch_init): Use rs6000_* methods for
11795 64-bit SysV ABI.
11796
11797 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11798
11799 From Jimi X <jimix@watson.ibm.com>:
11800 * rs6000-tdep.c (rs6000_gdbarch_init): Compute ``wordsize'' from
11801 bfd info.
11802
11803 2002-04-12 Kevin Buettner <kevinb@redhat.com>
11804
11805 From Jimi X <jimix@watson.ibm.com>:
11806 * rs6000-tdep.c (powerpc64, 630, rs64ii, rs64iii): Define
11807 register sets for these processor variants.
11808
11809 2002-04-11 Daniel Jacobowitz <drow@mvista.com>
11810
11811 * regformats/reg-ppc.dat: Support FPSCR.
11812
11813 2002-04-11 Kevin Buettner <kevinb@redhat.com>
11814
11815 * ppc-tdep.h (struct gdbarch_tdep): Add new field ``ppc_fpscr_regnum''.
11816 * ppc-bdm.c (bdm_ppc_fetch_registers, bdm_ppc_store_registers):
11817 Add fpscr as an invalid/unfetchable register.
11818 * ppc-linux-nat.c (ppc_register_u_addr, store_register)
11819 (fetch_ppc_registers, store_ppc_registers, supply_fpregset)
11820 (fill_fpregset): Add support for register fpscr.
11821 (fetch_ppc_registers, store_ppc_registers, supply_gregset)
11822 (fill_gregset): Account for the fact that register ``mq'' might
11823 not exist.
11824 * rs6000-tdep.c (PPC_UISA_SPRS): Use (unused) slot 70 for fpscr.
11825 (registers_power): Add fpscr to register set at slot 71.
11826 (rs6000_gdbarch_init): Account for the fact that ``mq'' doesn't
11827 exist on most PPC architectures. Initialize ppc_fpscr_regnum.
11828
11829 2002-04-11 Michael Snyder <msnyder@redhat.com>
11830
11831 * configure.in: Autoconfiscate _SYSCALL32 define for solaris.
11832 * configure: Regenerate.
11833 * config.in: Regenerate.
11834 * acconfig.h: Add define for _SYSCALL32.
11835 * core-sol2.c: Remove #define _SYSCALL32.
11836 * solib-legacy.c: Remove #define _SYSCALL32.
11837
11838 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11839
11840 * stack.c (select_frame): Cleanup internal error message, do not
11841 use %p.
11842
11843 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11844
11845 * stack.c (select_frame): Check that selected_frame and the
11846 specified level are as expected.
11847 * blockframe.c (get_prev_frame): Set the `level' from next_frame.
11848 Update copyright.
11849 * frame.h (struct frame_info): Add field `level'. Update
11850 copyright.
11851 Work-in-progress PR gdb/464.
11852
11853 2002-04-10 Andrew Cagney <ac131313@redhat.com>
11854
11855 * maint.c (maint_print_section_info): Rename print_section_info.
11856 (print_bfd_section_info, print_objfile_section_info): Update.
11857 * inferior.h (struct gdbarch): Add opaque declaration.
11858 * gdbarch.sh: Add include of "inferior.h" to gdbarch.sh.
11859 * gdbarch.h: Regenerate.
11860
11861 2002-04-10 Michal Ludvig <mludvig@suse.cz>
11862
11863 * x86-64-linux-nat.c (child_resume, child_xfer_memory): Delete.
11864 (PTRACE_XFER_TYPE): Moved to config/i386/nm-x86-64.h.
11865 (kernel_u_size): Added.
11866 * config/i386/nm-x86-64.h (CHILD_XFER_MEMORY, CHILD_RESUME): Delete.
11867 (PTRACE_XFER_TYPE): Moved here from config/i386/nm-x86-64.h.
11868
11869 2002-04-04 Jim Ingham <jingham@apple.com>
11870
11871 * valarith.c (find_size_for_pointer_math): New function, either returns
11872 the size for a pointer's target, returns 1 for void *, or errors for
11873 incomplete types.
11874 (value_add, value_sub): use find_size_for_pointer_math.
11875
11876 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11877
11878 * linux-low.c (linux_look_up_symbols): New hook.
11879 (linux_target_ops): Add linux_look_up_symbols.
11880 * remote-utils.c (decode_address): New function.
11881 (look_up_one_symbol): New function.
11882 * server.c (handle_query): Call target look_up_symbols hook.
11883 * server.h (look_up_one_symbol): Add prototype.
11884 * target.h (struct target_ops): Add look_up_symbols hook.
11885
11886 2002-04-09 Andrew Cagney <ac131313@redhat.com>
11887
11888 * frame.c (read_relative_register_raw_bytes_for_frame): Do not
11889 override FP_REGNUM with frame->fp. Update copyright.
11890 * parse.c (num_std_regs, std_regs): Delete.
11891 (target_map_name_to_register): Do not search std_regs. Update
11892 function description.
11893 * parser-defs.h (num_std_regs, std_regs, struct std_regs): Delete
11894 declarations. Update copyright.
11895 Fix PR gdb/251.
11896
11897 2002-04-09 Daniel Jacobowitz <drow@mvista.com>
11898
11899 * symtab.h (ALL_BLOCK_SYMBOLS): Don't dereference the pointer
11900 after the last symbol in a block.
11901
11902 2002-04-09 Pierre Muller <muller@ics.u-strasbg.fr>
11903
11904 * p-exp.y (yylex): Handle also the fact that is_a_field_of_this
11905 is non zero as a found symbol.
11906
11907 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11908
11909 * findvar.c: Include "builtin-regs.h".
11910 (value_of_register): Call value_of_builtin_reg when applicable.
11911 * parse.c: Include "builtin-regs.h" and "gdb_assert.h".
11912 (target_map_name_to_register): Call
11913 builtin_reg_map_name_to_regnum.
11914 * Makefile.in (SFILES): Add builtin-regs.c and std-regs.c.
11915 (COMMON_OBS): Add builtin-regs.o and std-regs.o.
11916 (builtin_regs_h): Define.
11917 (builtin-regs.o): New target.
11918 (findvar.o): Add $(builtin_regs_h).
11919 * builtin-regs.c, builtin-regs.h: New files.
11920 * std-regs.c: New file.
11921 Partial fix for PR gdb/251.
11922
11923 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11924
11925 * rs6000-tdep.c (rs6000_gdbarch_init): Don't set tm_print_insn;
11926 it's no longer required.
11927
11928 2002-04-08 Andrew Cagney <ac131313@redhat.com>
11929
11930 * Makefile.in (gdbtk-wrapper.o): Add missing dependencies.
11931
11932 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11933
11934 From Jimi X <jimix@watson.ibm.com>:
11935 * rs6000-tdep.c (rs6000_software_single_step): Use
11936 rs6000_breakpoint_from_pc() to fetch breakpoint instruction
11937 and size. Use target_insert_breakpoint() and
11938 target_remove_breakpoint() to insert and remove breakpoints
11939 instead of explicit memory reads and writes.
11940
11941 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11942
11943 * config/powerpc/tm-ppc-eabi.h (ELF_OBJECT_FORMAT): Delete.
11944 * rs6000-tdep.c (rs6000_push_arguments): Eliminate
11945 ELF_OBJECT_FORMAT ifdef.
11946
11947 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11948
11949 From Jimi X <jimix@watson.ibm.com>:
11950 * rs6000-tdep.c (rs6000_gdbarch_init): Use set_gdbarch_print_insn().
11951
11952 2002-04-08 Kevin Buettner <kevinb@redhat.com>
11953
11954 From Jimi X <jimix@watson.ibm.com>:
11955 * rs6000-tdep.c (rs6000_fix_call_dummy): Delete unused macro
11956 definitions for TOC_ADDR_OFFSET and TARGET_ADDR_OFFSET.
11957
11958 2002-04-07 Mark Kettenis <kettenis@gnu.org>
11959
11960 * fbsd-proc.c (child_pid_to_exec_file, fbsd_find_memory_regions):
11961 s/asprintf/xasprintf/.
11962 (fbsd_make_corefile_notes): s/strdup/xstrdup/.
11963
11964 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11965
11966 I believe Jeff Law denies responsability for this one:
11967 * config/pa/hpux11w.mh (MH_CFLAGS): Add -Dvfork=fork.
11968 * config/pa/hpux11.mh (MH_CFLAGS): Add -Dvfork=fork.
11969 * config/pa/hpux1020.mh (MH_CFLAGS): Add -Dvfork=fork.
11970 Work-around for PR gdb/366.
11971
11972 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11973
11974 * remote-e7000.c (write_small, e7000_read_inferior_memory,
11975 e7000_read_inferior_memory_large, e7000_insert_breakpoint,
11976 e7000_remove_breakpoint): Use paddr_nz() to print addresses.
11977
11978 2002-04-07 Elena Zannoni <ezannoni@redhat.com>
11979
11980 * sh-tdep.c (sh_fp_frame_init_saved_regs,
11981 sh_nofp_frame_init_saved_regs): Use alloca() for 'where'
11982 information.
11983
11984 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11985
11986 * MAINTAINERS (Misc): List Daniel Jacobowitz as the GDBSERVER
11987 maintainer.
11988
11989 2002-04-07 Andrew Cagney <ac131313@redhat.com>
11990
11991 * README (Reporting Bugs in GDB): Document the bug web page as the
11992 prefered way of submitting bugs.
11993 Fix PR gdb/402.
11994
11995 2002-04-06 Andrew Cagney <ac131313@redhat.com>
11996
11997 * gdbarch.sh (FP_REGNUM, PC_REGNUM, SP_REGNUM): Allow default of
11998 -1. Update comment.
11999 * gdbarch.h, gdbarch.c: Re-generate.
12000
12001 2002-04-07 Andreas Schwab <schwab@suse.de>
12002
12003 * m68klinux-nat.c (fill_fpregset): Properly pass address of
12004 buffer to regcache_collect.
12005
12006 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12007
12008 * gdbarch.sh (PS_REGNUM): Add. Document. Default to -1.
12009 * gdbarch.c, gdbarch.h: Re-generate.
12010
12011 2002-04-06 Andrew Cagney <ac131313@redhat.com>
12012
12013 * symtab.c (lookup_symtab): Remove ``const'' from ``rp''
12014 declaration. Fix -Werror.
12015
12016 2002-04-05 Daniel Jacobowitz <drow@mvista.com>
12017
12018 * gdbarch.sh (initialize_non_multiarch): Call init_gdbarch_swap.
12019 * gdbarch.c: Regenerate.
12020
12021 2002-04-05 Michael Snyder <msnyder@redhat.com>
12022
12023 * breakpoint.c (clear_command): Rewrite middle section to
12024 combine two loops with identical control conditions.
12025 Add a cleanup to eliminate a memory leak.
12026 * cli/cli-dump.c (restore_section_callback): Use paddr_nz.
12027
12028 2002-04-05 H.J. Lu (hjl@gnu.org)
12029
12030 * solib-svr4.c (bkpt_names): Add "__start".
12031
12032 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12033
12034 * sparc-tdep.c (sparc_push_dummy_frame): Use GDB_TARGET_IS_SPARC64
12035 as test for 64 bit target.
12036
12037 2002-04-05 Andrew Cagney <ac131313@redhat.com>
12038
12039 * h8500-tdep.c (h8500_write_fp): Delete function.
12040 * dwarf2cfi.c (cfi_write_fp): Document as not used.
12041 * mips-tdep.c (mips_gdbarch_init): Do not set write_fp.
12042 * ia64-tdep.c (ia64_gdbarch_init): Do not set write_fp.
12043 * m68hc11-tdep.c (m68hc11_gdbarch_init): Do not set write_fp.
12044 * rs6000-tdep.c (rs6000_gdbarch_init): Do not set write_fp.
12045 * s390-tdep.c (s390_gdbarch_init): Do not set write_fp.
12046 (s390_write_fp):
12047 * sh-tdep.c (sh_gdbarch_init): Do not set write_fp.
12048 * x86-64-tdep.c (i386_gdbarch_init): Do not set write_fp.
12049 * d10v-tdep.c (d10v_gdbarch_init): Do not set write_fp.
12050 (d10v_write_fp): Delete function.
12051 * inferior.h (write_fp, generic_target_write_fp): Delete
12052 declarations.
12053 * regcache.c (generic_target_write_fp): Delete function.
12054 (write_fp): Delete function.
12055 * gdbarch.sh (TARGET_WRITE_FP): Delete.
12056 * gdbarch.h, gdbarch.c: Regenerate.
12057 * config/v850/tm-v850.h (TARGET_WRITE_FP): Delete macro.
12058 * config/sparc/tm-sp64.h (TARGET_WRITE_FP): Delete macro.
12059 (sparc64_write_fp): Delete declaration.
12060 * config/h8500/tm-h8500.h (TARGET_WRITE_FP): Delete macro.
12061 (h8500_write_fp): Delete declaration.
12062
12063 2002-04-04 Andrew Cagney <ac131313@redhat.com>
12064
12065 * sparc-tdep.c (sparc64_write_fp): Delete.
12066 (sparc_push_dummy_frame): Replace write_fp call with code to store
12067 the FP directly.
12068 (sparc_gdbarch_init): Do not initialize write_fp.
12069
12070 2002-04-05 Kevin Buettner <kevinb@redhat.com>
12071
12072 * rs6000-tdep.c (skip_prologue): Eliminate unused/unreachable
12073 clause.
12074
12075 2002-03-29 Jim Blandy <jimb@redhat.com>
12076
12077 * stack.c (get_selected_block): Add new argument `addr_in_block',
12078 used to return the exact code address we used to select the block,
12079 not just the block.
12080 * blockframe.c (get_frame_block, get_current_block): Same.
12081 * frame.h (get_frame_block, get_current_block,
12082 get_selected_block): Update declarations.
12083 * linespec.c, stack.c, blockframe.c, breakpoint.c, findvar.c,
12084 linespec.c, varobj.c, printcmd.c, symtab.c: Callers changed.
12085
12086 2002-04-05 Michael Snyder <msnyder@redhat.com>
12087
12088 * breakpoint.c (insert_breakpoints): Change 'hw' to 'hardware in
12089 warning message.
12090
12091 2002-04-05 J. Brobecker <brobecker@gnat.com>
12092
12093 * utils.c (xfullpath): New function.
12094 * defs.h (xfullpath): Add declaration.
12095 * source.c (openp): Use xfullpath in place of gdb_realpath to
12096 avoid resolving the basename part of filenames when the
12097 associated file is a symbolic link. This fixes a potential
12098 inconsistency between the filenames known to GDB and the
12099 filenames it prints in the annotations.
12100 * symtab.c (lookup_symtab): Use the new xfullpath function, in order
12101 to be able to match a filename with either the real filename, or
12102 the name of any symbolic link to this file.
12103 (lookup_partial_symtab): Ditto.
12104
12105 2002-04-04 Michael Snyder <msnyder@redhat.com>
12106
12107 * breakpoint.c: Add support for hardware breakpoints in overlays.
12108 (overlay_events_enabled): New state variable.
12109 (insert_breakpoints): Use overlay_events_enabled to decide
12110 whether to attempt to set a breakpoint at the overlay load addr.
12111 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12112 (remove_breakpoint): Use overlay_events_enabled to decide
12113 whether breakpoints need to be removed from overlay load addr.
12114 Handle bp_hardware_breakpoint as well as bp_breakpoint.
12115 (bpstat_stop_status): Handle bp_hardware_breakpoint in overlays.
12116 (create_overlay_event_breakpoint, enable_overlay_breakpoints,
12117 disable_overlay_breakpoints): Update overlay_events_enabled.
12118
12119 2002-04-04 Daniel Jacobowitz <drow@mvista.com>
12120
12121 * dwarf2read.c (struct function_range): New.
12122 (cu_first_fn, cu_last_fn, cu_cached_fn): New.
12123 (check_cu_functions): New.
12124 (read_file_scope): Initialize global function lists.
12125 Call dwarf_decode_line after processing children.
12126 (read_func_scope): Add to global function list.
12127 (dwarf_decode_lines): Call check_cu_functions everywhere
12128 record_line is called. Call record_line with a linenumber
12129 of 0 to mark sequence ends.
12130
12131 2002-04-04 Michal Ludvig <mludvig@suse.cz>
12132
12133 * x86-64-linux-nat.c (child_xfer_memory): x86-64 ptrace() ABI
12134 change sync with glibc.
12135
12136 2002-04-03 Jim Blandy <jimb@redhat.com>
12137
12138 * configure.in: Call AC_C_INLINE.
12139 * configure: Regenerated.
12140
12141 2002-04-01 Daniel Jacobowitz <drow@mvista.com>
12142
12143 * rs6000-tdep.c: Change #include of "bfd/libcoff.h"
12144 and "bfd/libbfd.h" to "libcoff.h" and "libbfd.h".
12145
12146 2002-03-31 Mark Kettenis <kettenis@gnu.org>
12147
12148 * NEWS: Mention gcore support on FreeBSD/i386.
12149
12150 * fbsd-proc.c: New file.
12151 * config/i386/nm-fbsd.h (CHILD_PID_TO_EXEC_FILE): Define.
12152 * config/i386/fbsd.mh (NATDEPFILES): Add gcore.o and fbsd-proc.o.
12153
12154 * lin-lwp.c (child_wait): Check SAVE_ERRNO instead of ERRNO in
12155 while statement.
12156
12157 2002-03-29 Jim Blandy <jimb@redhat.com>
12158
12159 * cli/cli-dump.c (_initialize_cli_dump): Older GCC's tolerate
12160 unescaped newlines in string literals, but newer ones don't. So
12161 escape them.
12162
12163 2002-03-26 Michael Snyder <msnyder@redhat.com>
12164 Andrew Cagney <cagney@redhat.com>
12165
12166 * cli/cli-dump.c: New file. Dump memory to file,
12167 restore file to memory.
12168 * cli/cli-dump.h: New file.
12169 * Makefile.in: Add rules, dependencies for cli-dump.o.
12170 * NEWS: Mention new commands.
12171
12172 2002-03-28 Michael Snyder <msnyder@redhat.com>
12173
12174 * symfile.c (symbol_file_add): Move test for null symbols to later.
12175
12176 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12177
12178 From veksler at il.ibm.com:
12179 * utils.c (gdb_realpath): If canonicalize_file_name fails, return
12180 the xstrduped original path.
12181 Fix PR gdb/417.
12182
12183 2002-03-27 Michael Snyder <msnyder@redhat.com>
12184
12185 * breakpoint.c (_initialize_breakpoint): Clean up help string.
12186 * infcmd.c (_initialize_infcmd): Ditto.
12187 * language.c (_initialize_language): Ditto.
12188 * symfile.c (_initialize_symfile): Ditto.
12189 * top.c (_init_main): Ditto.
12190 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12191
12192 2002-03-27 Elena Zannoni <ezannoni@redhat.com>
12193
12194 * rs6000-tdep.c (struct rs6000_framedata): Add fields for AltiVec
12195 vector registers handling.
12196 (skip_prologue): Handle new AltiVec instructions. Fill in new
12197 fields of frame data.
12198 (frame_get_saved_regs): Fill in information for AltiVec registers.
12199
12200 2002-03-27 Jim Blandy <jimb@redhat.com>
12201
12202 * symtab.h (SYMBOL_INIT_MANGLED_NAME): Turn this macro's body into
12203 a function; leave this macro here to invoke that function.
12204 (symbol_init_mangled_name): Declaration for that function.
12205 * symtab.c (symbol_init_mangled_name): New function.
12206
12207 2002-03-27 Andrew Cagney <ac131313@redhat.com>
12208
12209 * valarith.c: Replace strerror with safe_strerror.
12210 * tracepoint.c: Ditto.
12211 * lin-lwp.c: Ditto.
12212 * go32-nat.c: Ditto.
12213 * inflow.c: Ditto.
12214 * gnu-nat.c: Ditto.
12215
12216 2002-03-27 Andreas Schwab <schwab@suse.de>
12217
12218 * event-top.c (command_line_handler): Remove useless if.
12219
12220 2002-03-27 Andreas Jaeger <aj@suse.de>
12221
12222 * dwarf2cfi.c: Give credit to Daniel Berlin, reformat copyright
12223 comment.
12224
12225 2002-03-27 Michal Ludvig <mludvig@suse.cz>
12226
12227 * x86-64-tdep.h (X86_64_NUM_REGS, X86_64_NUM_GREGS): Delete #defines.
12228 (x86_64_num_regs, x86_64_num_gregs): Added extern variables.
12229 * x86-64-linux-nat.c (x86_64_regmap): Swapped RBX <> RDX, added DS, ES, FS, GS.
12230 (x86_64_linux_dr_get_status, supply_gregset),
12231 (fill_gregset): Changed X86_64_NUM_GREGS to x86_64_num_gregs.
12232 * x86-64-tdep.c (x86_64_register_raw_size_table): Delete.
12233 (x86_64_register_info_table): Add.
12234 (X86_64_NUM_REGS, X86_64_NUM_GREGS): Add.
12235 (x86_64_register_raw_size, x86_64_register_virtual_type),
12236 (x86_64_register_name, _initialize_x86_64_tdep): Changed to reflect new
12237 general x86_64_register_info_table.
12238 (i386_gdbarch_init): gdbarch_register_bytes is now set
12239 dynamicaly during initialization.
12240 * regformats/reg-x86-64.dat: Synced with changes to registers above.
12241 * gdbserver/linux-x86-64-low.c: Ditto.
12242
12243 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12244
12245 * gdbserver/server.c (main): Call target_signal_to_host_p
12246 and target_signal_to_host on signals received from the remote.
12247 * gdbserver/remote-utils.c (prepare_resume_reply): Call
12248 target_signal_from_host on signals sent to the remote.
12249 * gdbserver/server.h: Add prototypes. Include "gdb/signals.h".
12250 * gdbserver/Makefile.in: Add signals.o. Add -I${INCLUDE_DIR}.
12251
12252 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12253
12254 * signals/signals.c: Include "server.h" in gdbserver build.
12255 (target_signal_from_name): Don't use STREQ.
12256 (_initialize_signals): Likewise. Don't include function in
12257 gdbserver build.
12258
12259 2002-03-27 Daniel Jacobowitz <drow@mvista.com>
12260
12261 * signals.c: Moved to...
12262 * signals/signals.c: Here.
12263 * Makefile (signals.o): Update.
12264
12265 2002-03-26 Jeff Law (law@redhat.com)
12266
12267 * somread.c (som_symtab_read): Remove some commented out code and
12268 updated related comments. Do not set the minimal symbol table to
12269 mst_solib_trampoline for ST_ENTRY symbols with SS_LOCAL scope
12270 in a dynamic executable.
12271 * hppa-tdep.c (find_proc_framesize): Sanely handle the case
12272 where we are unable to find the minimal symbol for the given
12273 PC value.
12274
12275 2002-03-25 Jeff Law (law@redhat.com)
12276
12277 * linux-proc.c (read_mapping): Scan up to end of line for filename.
12278
12279 2002-03-25 Michal Ludvig <mludvig@suse.cz>
12280
12281 * x86-64-tdep.c (x86_64_skip_prologue): Rewritten from scratch.
12282
12283 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12284
12285 * command.h: Update copyright.
12286 (struct cmd_list_element): Replace definition with opaque
12287 declaration.
12288 (enum cmd_types): Document that it will eventually be moved to
12289 cli/cli-decode.h
12290 (CMD_DEPRECATED, DEPRECATED_WARN_USER): Delete macros.
12291 (MALLOCED_REPLACEMENT): Delete macro.
12292 * Makefile.in (cli_decode_h): Add $(command_h).
12293 (top.o, completer.o, maint.o): Add dependency on $(cli_decode_h).
12294 * top.c: Include "cli/cli-decode.h".
12295 * completer.c: Include "cli/cli-decode.h".
12296 * maint.c: Include "cli/cli-decode.h".
12297 * cli/cli-decode.h: Include "command.h".
12298 (enum command_class): Delete.
12299 (enum cmd_types): Comment out.
12300 (enum cmd_auto_boolean): Delete.
12301 (enum var_types): Delete.
12302
12303 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12304
12305 * cli/cli-decode.c: Include "gdb_assert.h".
12306 (add_set_or_show_cmd): New static function.
12307 (add_set_cmd): Rewrite. Use add_set_or_show_cmd.
12308 (add_show_from_set): Rewrite. Use add_set_or_show_cmd. Don't copy
12309 all fields, such as func, from the set command.
12310
12311 2002-03-23 Andrew Cagney <ac131313@redhat.com>
12312
12313 * MAINTAINERS (sh-elf): Change warning flag to -w.
12314
12315 2002-03-23 Andrew Cagney <cagney@redhat.com>
12316
12317 * defs.h (error): Add printf format attribute.
12318 * thread-db.c (thread_from_lwp): Fix error format string.
12319 * stack.c (parse_frame_specification): Ditto.
12320 * cli/cli-decode.c (undef_cmd_error): Ditto.
12321 * scm-lang.c (scm_lookup_name): Ditto.
12322 * tracepoint.c (trace_error): Ditto.
12323 * remote-utils.c (usage): Ditto.
12324 * remote.c (compare_sections_command): Ditto.
12325 Fix PR gdb/328.
12326
12327 2002-03-22 Andrew Cagney <ac131313@redhat.com>
12328
12329 * gdbtypes.c (append_composite_type_field): New function.
12330 (init_composite_type): New function.
12331 * gdbtypes.h (append_composite_type_field): Declare.
12332 (init_composite_type): Ditto.
12333
12334 2002-03-22 Elena Zannoni <ezannoni@redhat.com>
12335
12336 * ppc-linux-tdep.c (ppc_sysv_abi_use_struct_convention): New
12337 function.
12338 * ppc-tdep.h (ppc_sysv_abi_use_struct_convention): Export.
12339 * rs6000-tdep.c (rs6000_gdbarch_init): Use different
12340 structure returning convention for SYSV ABI case, but not
12341 for GNU/Linux, FreeBSD, or NetBSD.
12342
12343 2002-03-22 Daniel Jacobowitz <drow@mvista.com>
12344
12345 * symtab.h (lookup_block_symbol): Add mangled_name argument
12346 to prototype.
12347
12348 * symmisc.c (maintenance_check_symtabs): Call lookup_block_symbol
12349 with new mangled_name argument.
12350 * linespec.c (decode_line_1): Likewise.
12351 * valops (value_of_this): Likewise.
12352 * symtab.c (lookup_transparent_type): Likewise.
12353 (lookup_symbol_aux): Likewise. Accept new mangled_name argument.
12354 (lookup_symbol): If we are given a mangled name, pass it down
12355 to lookup_symbol_aux.
12356 (lookup_block_symbol): If we are given a mangled name to check
12357 against, only return symbols which match it.
12358
12359 2002-03-22 Christopher Faylor <cgf@redhat.com>
12360
12361 * win32-nat.c (child_create_inferior): Check for proper shell to use
12362 here, in case the user changes it on the fly.
12363 (_initialize_inftarg): Remove shell path considerations.
12364
12365 2002-03-21 Elena Zannoni <ezannoni@redhat.com>
12366
12367 * rs6000-tdep.c (rs6000_gdbarch_init): Use correct max size value
12368 for gdbarch_max_register_raw_size and max_register_virtual_size.
12369 Adjust copyright year.
12370
12371 2002-03-21 Daniel Jacobowitz <drow@mvista.com>
12372
12373 * dbxread.c (process_one_symbol): Extend the first N_SLINE
12374 in a function to cover the entire beginning of the function
12375 as well if it does not already.
12376
12377 2002-03-21 Tom Rix <trix@redhat.com>
12378
12379 * rs6000-nat.c (rs6000_ptrace32): Renamed from ptrace32.
12380 (rs6000_ptrace64): Renamed from ptrace64.
12381
12382 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12383
12384 * gdbserver/remote-utils.c (remote_open): Don't call
12385 getprotobyname, we're all using TCP here so just use
12386 IPPROTO_TCP.
12387 * gdbserver/gdbreplay.c (remote_open): Ditto.
12388
12389 2002-03-20 Martin M. Hunt <hunt@redhat.com>
12390
12391 * regcache.c (_initialize_regcache): No need to call
12392 build_regcache() at this time; it gets called whenever
12393 the gdbarch changes.
12394
12395 2002-03-20 David O'Brien <obrien@FreeBSD.org>
12396
12397 * sparc-nat.c: Include sys/param.h where possible.
12398
12399 2002-03-20 Daniel Jacobowitz <drow@mvista.com>
12400
12401 Fix PR gdb/422.
12402 * c-lang.c (c_create_fundamental_type): Handle FT_COMPLEX,
12403 FT_DBL_PREC_COMPLEX, and FT_EXT_PREC_COMPLEX.
12404 * dwarf2read.c (read_base_type): Set TYPE_TARGET_TYPE for
12405 complex types.
12406 * stabsread.c (rs6000_builtin_type): Likewise.
12407 (read_sun_floating_type): Likewise.
12408
12409 2002-03-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12410
12411 * stabsread.c (read_member_functions): Remove skip code for duplicate
12412 constructor/destructor methods. Use standard parsing for these
12413 methods and just do not chain them to the list of methods after
12414 parsing.
12415
12416 2002-03-19 Alexandre Oliva <aoliva@redhat.com>
12417
12418 * coffread.c: Remove redundant static declarations. Replace
12419 occurrences of `PTR' with `void *'.
12420 * elfread.c, mdebugread.c, minsyms.c, mipsread.c: Likewise.
12421 * top.h (quit_cover): Likewise.
12422 * defs.h (catch_errors): Likewise.
12423
12424 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12425
12426 * defs.h (XMALLOC): Define.
12427 * gdb-events.sh (XMALLOC): Delete macro.
12428 * gdb-events.c, gdb-events.h: Regenerate.
12429 * gdbarch.sh (XMALLOC): Delete macro.
12430 * gdbarch.c: Regenerate.
12431 * serial.c (XMALLOC): Delete macro.
12432 * ui-file.c (XMALLOC): Ditto.
12433 * ser-unix.h (XMALLOC): Ditto.
12434 * sh-tdep.c (XMALLOC): Ditto.
12435 * ui-out.c (XMALLOC): Ditto.
12436 * utils.c (XMALLOC): Ditto.
12437 * i386-tdep.c (XMALLOC): Ditto.
12438 * gdb-events.c (XMALLOC): Ditto.
12439 * d10v-tdep.c (XMALLOC): Ditto.
12440 * cli-out.c (XMALLOC): Ditto.
12441
12442 * cli-out.c, d10v-tdep.c, gdb-events.c: Update copyright.
12443 * gdb-events.sh, i386-tdep.c, ser-unix.h, serial.c: Ditto.
12444 * ui-file.c, ui-out.c: Ditto.
12445
12446 2002-03-18 Andrew Cagney <ac131313@redhat.com>
12447
12448 * command.h (struct cmd_list_element): Add field context.
12449 (set_cmd_context, get_cmd_context): Declare.
12450 * cli/cli-decode.h: Ditto.
12451 * cli/cli-decode.c (get_cmd_context): New function.
12452 (set_cmd_context): New function.
12453 (add_cmd): Initialize context.
12454 Part of fixing PR gdb/145 and PR gdb/146.
12455
12456 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12457
12458 * cli/cli-decode.c (cmd_type): New function.
12459 * command.h (cmd_type): Declare.
12460 * infrun.c (set_schedlock_func): Call function cmd_type.
12461 * kod.c (kod_set_os): Call cmd_type.
12462 * cris-tdep.c (cris_version_update): Use function cmd_type.
12463 (cris_mode_update, cris_abi_update): Ditto.
12464
12465 * command.h: (execute_cmd_post_hook): Declare.
12466 (execute_cmd_pre_hook): Declare.
12467 * cli/cli-script.c (clear_hook_in_cleanup): New function.
12468 (execute_cmd_post_hook, execute_cmd_pre_hook): New
12469 functions. Execute pre/post hook while ensuring that afterwords
12470 hook_in is cleared.
12471 * top.c (execute_command): Use execute_cmd_post_hook, and
12472 execute_cmd_pre_hook to execute pre/post commands.
12473 * infrun.c (normal_stop): Pass stop_command and not pre_hook to
12474 hook_stop_stub.
12475 (hook_stop_stub): Call execute_cmd_pre_hook.
12476
12477 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12478
12479 * kod.c (kod_set_os): Revert previous change. Is called by ``info
12480 set'' and this leads to a core dump. Move xstrdup of
12481 operating_system to after check that it is not NULL.
12482
12483 2002-03-17 Andrew Cagney <ac131313@redhat.com>
12484
12485 * kod.c (kod_set_os): Remove unnecessary check that
12486 ``command->type'' is set_cmd.
12487
12488 * valprint.c (set_input_radix): Use input_radix.
12489 (set_output_radix): Use output_radix.
12490 (set_input_radix_1, set_output_radix_1): Add FIXME - bad radix
12491 isn't reverted.
12492
12493 2002-03-16 Andrew Cagney <ac131313@redhat.com>
12494
12495 * value.h (struct value): Delete field ``substring_addr''. Change
12496 aligner fields to force_doublest_align, force_longest_align,
12497 force_core_addr_align and force_pointer_aligh.
12498
12499 * value.h (struct value): Fix typo in above change.
12500
12501 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12502
12503 * ia64-tdep.c (ia64_gdbarch_init): Call set_gdbarch_frame_args_skip,
12504 to fix internal_error from ``maintenance print architecture''.
12505
12506 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12507
12508 * cp-valprint.c (cp_is_vtbl_ptr_type): Handle vtbl field type
12509 for gcc versions after gcc-2.8.1.
12510
12511 2002-03-16 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12512
12513 * eval.c (evaluate_subexp_standard): Fix setup of ``this'' pointer
12514 for method resolution. Restore adjustment of ``this'' pointer after
12515 calling value_struct_elt, which was accidentally removed during the
12516 HP merge.
12517
12518 2002-03-15 Andrew Cagney <ac131313@redhat.com>
12519
12520 * eval.c (evaluate_subexp_standard): Pass ``selected_frame'' to
12521 value_of_register.
12522 * findvar.c (value_of_register): Add ``frame'' parameter. Pass to
12523 get_saved_register.
12524 * value.h (value_of_register): Update.
12525
12526 2002-03-14 Richard Henderson <rth@redhat.com>
12527
12528 * configure.in: Detect declaration for canonicalize_file_name.
12529 * utils.c (canonicalize_file_name): Declare, if needed.
12530 (gdb_realpath): Prefer realpath if available and usable.
12531 * config.in, configure: Rebuild.
12532
12533 2002-03-14 Richard Henderson <rth@redhat.com>
12534
12535 * dwarf2read.c (read_array_type): Accept DW_FORM_data8 as
12536 a constant array bound.
12537
12538 * MAINTAINERS: Add myself to write-after-approval.
12539
12540 2002-03-14 Michael Snyder <msnyder@redhat.com>
12541
12542 * symfile.c (syms_from_objfile): Return immediately if no syms.
12543 (symbol_file_add): Return immediately if no syms.
12544 (find_sym_fns): Return immediately if no syms.
12545
12546 2002-03-13 Michal Ludvig <mludvig@suse.cz>
12547
12548 * gdbserver/remote-util.c (remote_open): Print remote-side's
12549 IP address when remote debugging over the network.
12550
12551 2002-03-12 David O'Brien <obrien@FreeBSD.org>
12552
12553 * config/sparc/fbsd.mh: Fix copyright.
12554 * config/sparc/fbsd.mt: Likewise.
12555
12556 2002-03-11 Richard Earnshaw <rearnsha@arm.com>
12557
12558 * MAINTAINERS: Fix typo in name of gdb warnings option.
12559 (x86-64): Fix formating so that this can be parsed by awk.
12560
12561 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12562
12563 * Makefile.in (defs_h): Add $(INCLUDE_DIR)/gdb/signals.h.
12564 * defs.h: Include "gdb/signals.h".
12565 (enum target_signal): Move to $(INCLUDE_DIR)/gdb/signals.h.
12566
12567 2002-03-10 Michal Ludvig <mludvig@suse.cz>
12568
12569 * x86-64-tdep.h (sys/reg.h, x86_64_regmap): Moved to x86-64-linux-nat.c
12570 * x86-64-linux-nat.c (sys/reg.h, x86_64_regmap): Moved here
12571 from x86-64-tdep.h
12572
12573 2002-03-10 Daniel Jacobowitz <drow@mvista.com>
12574 Don Howard <dhoward@redhat.com>
12575
12576 * mips-tdep.c (ST0_FR): Define.
12577 (mips2_fp_compat): New function, temporarily disabled.
12578 (mips_read_fp_register_single): New function.
12579 (mips_read_fp_register_double): New function.
12580 (mips_print_register): Use them.
12581 (do_fp_register_row): Likewise.
12582
12583 2002-03-09 Andrew Cagney <ac131313@redhat.com>
12584
12585 * MAINTAINERS: Add Jim Ingham and Klee Dienes to ``write after
12586 approval''.
12587
12588 2002-03-08 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12589
12590 * stabsread.c (read_member_functions): Fix is_stub test for
12591 static member functions, improve comment.
12592
12593 2002-03-07 Richard Earnshaw <rearnsha@arm.com>
12594
12595 * remote-rdi.c (myprint): Replace 'PTR' with 'void *'.
12596 (mywrite, mywritec, mypause, myreadc, mygets): Likewise.
12597 (_initialize_remote_rdi): Use add_set_boolean_cmd to register
12598 commands that set boolean values.
12599 (arm_rdi_remove_breakpoint): Rewrite to avoid uninitialized warning.
12600 (arm_rdi_resume): Always initialize PC.
12601 (arm_rdi_open): Don't use rslt as a boolean.
12602 (arm_rdi_create_inferior, arm_rdi_close, arm_rdi_resume)
12603 (arm_rdi_fetch_registers, arm_rdi_store_registers)
12604 (arm_rdi_xfer_memory, arm_rdi_files_info, arm_rdi_kill)
12605 (arm_rdi_insert_breakpoint, arm_rdi_remove_breakpoint): Likewise.
12606
12607 2002-03-06 Alexandre Oliva <aoliva@redhat.com>
12608
12609 * configure.in (gdb_cv_bigtoc): Check for -bbigtoc on AIX.
12610 * configure: Rebuilt.
12611
12612 2002-03-06 Stephane Carrez <Stephane.Carrez@worldnet.fr>
12613
12614 * m68hc11-tdep.c (_initialize_m68hc11_tdep): Don't set tm_print_insn.
12615 (m68hc11_gdbarch_init): But use set_gdbarch_print_insn instead.
12616
12617 2002-03-06 Andrew Cagney <ac131313@redhat.com>
12618
12619 * cli/cli-decode.c (set_cmd_completer): New function.
12620 * command.h (set_cmd_completer): Declare.
12621 * cli/cli-decode.h (set_cmd_completer): Ditto.
12622
12623 * breakpoint.c (_initialize_breakpoint): Use set_cmd_completer.
12624 * cli/cli-cmds.c (init_cli_cmds): Ditto.
12625 * win32-nat.c (_initialize_inftarg): Ditto.
12626 * remote-rdi.c (_initialize_remote_rdi): Ditto.
12627 * proc-api.c (_initialize_proc_api): Ditto.
12628 * hppa-tdep.c (_initialize_hppa_tdep): Ditto.
12629 * source.c (_initialize_source): Ditto.
12630 * exec.c (_initialize_exec): Ditto.
12631 * solib.c (_initialize_solib): Ditto.
12632 * top.c (init_main): Ditto.
12633 * tracepoint.c (_initialize_tracepoint): Ditto.
12634 * symfile.c (_initialize_symfile): Ditto.
12635 * printcmd.c (_initialize_printcmd): Ditto.
12636 * infcmd.c (_initialize_infcmd): Ditto.
12637 * corefile.c (_initialize_core): Ditto.
12638
12639 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12640
12641 * MAINTAINERS (Past Maintainers): Add Frank Ch. Eigler.
12642
12643 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12644
12645 * MAINTAINERS: Fix Mac OS X and Objective-C/C++.
12646
12647 2002-03-05 Andrew Cagney <ac131313@redhat.com>
12648
12649 * NEWS: Update headings, 5.2 has branched.
12650
12651 2002-03-04 Daniel Jacobowitz <drow@mvista.com>
12652
12653 * gdbserver/linux-low.c (PTRACE_XFER_TYPE): Change to long.
12654 (num_regs, regmap): Move inside HAVE_LINUX_USRREGS.
12655 (register_addr, REGISTER_RAW_SIZE): Likewise.
12656 (usr_store_inferior_registers): Use PTRACE_XFER_TYPE.
12657 * gdbserver/linux-x86-64-low.c: Remove extra #endif.
12658
12659 2002-03-03 Michal Ludvig <mludvig@suse.cz>
12660
12661 * MAINTAINERS (x86-64): Add myself.
12662 * x86-64-tdep.c (x86_64_push_arguments): Fixed typo naregs->nregs,
12663 changed value_ptr -> struct value *
12664
12665 2002-03-01 David O'Brien <obrien@FreeBSD.org>
12666
12667 * configure.host (sparc64-*-freebsd): Add.
12668 * configure.tgt: Likewise.
12669 * config/sparc/fbsd.mh: New file.
12670 * config/sparc/fbsd.mt: Likewise.
12671 * config/sparc/nm-fbsd.h: Likewise.
12672 * config/sparc/tm-fbsd.h: Likewise.
12673
12674 2002-03-01 Daniel Jacobowitz <drow@mvista.com>
12675
12676 * config/djgpp/fnchange.lst: Add regformats/reg-i386-linux.dat and
12677 regformats/reg-s390x.dat.
12678
12679 2002-03-01 Andrew Cagney <ac131313@redhat.com>
12680
12681 * utils.c: Add FIXME explaining true/false problem.
12682
12683 2002-02-28 Andrew Cagney <ac131313@redhat.com>
12684
12685 * MAINTAINERS (Past Maintainers): Add J.T. Conklin.
12686
12687 2002-02-28 Michael Chastain <mec@shout.net>
12688
12689 * MAINTAINERS: Fix typo: gdb.satbs -> gdb.stabs .
12690
12691 2002-02-28 Daniel Jacobowitz <drow@mvista.com>
12692
12693 * gdbserver/linux-s390-low.c: New file.
12694 * regformats/reg-s390.dat: New file.
12695 * regformats/reg-s390x.dat: New file.
12696 * gdbserver/configure.srv: Add S/390.
12697 * gdbserver/Makefile.in: Add S/390.
12698 * configure.tgt: Enable gdbserver for S/390.
12699
12700 2002-02-28 Eli Zaretskii <eliz@is.elta.co.il>
12701
12702 * go32-nat.c (_initialize_go32_nat): Don't use periods in the
12703 first line of the doc string for "info dos", except at the end of
12704 the sentence, since the short help stops at the first period.
12705
12706 2002-02-28 Jason Merrill <jason@redhat.com>
12707
12708 * dwarf2read.c (dwarf_cfi_name): Add new codes.
12709
12710 2002-02-27 Fred Fish <fnf@redhat.com>
12711
12712 * blockframe.c (generic_fix_call_dummy): Fix obvious typo in
12713 comment (dumy -> dummy).
12714
12715 2002-02-27 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12716
12717 * symtab.c (gdb_mangle_name): Handle fully mangled v3 abi physnames.
12718
12719 2002-02-27 Rodney Brown <rbrown64@csc.com.au>
12720
12721 * utils.c (gdb_realpath): Add pathconf fallback for sco3.2v5.
12722
12723 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12724
12725 * gdbserver/acconfig.h: New file.
12726 * gdbserver/i387-fp.c: New file.
12727 * gdbserver/i387-fp.h: New file.
12728 * gdbserver/linux-x86-64.c: New file.
12729 * regformats/reg-x86-64.dat: New file.
12730 * configure.tgt: Add x86_64-*-linux* gdbserver support.
12731 * gdbserver/configure.srv: Add x86_64-*-linux* and regset support.
12732 * gdbserver/configure.in: Add support for regsets.
12733 * gdbserver/config.in: Regenerate.
12734 * gdbserver/configure: Regenerate.
12735 * gdbserver/Makefile.in: Likewise. Add $(linux_low_h).
12736 * gdbserver/linux-low.h: New file.
12737 * gdbserver/linux-low.c: Include "linux-low.h". Add support
12738 for regsets.
12739 * gdbserver/linux-arm-low.c: Include "linux-low.h".
12740 * gdbserver/linux-ia64-low.c: Include "linux-low.h".
12741 * gdbserver/linux-m68k-low.c: Include "linux-low.h".
12742 * gdbserver/linux-mips-low.c: Include "linux-low.h".
12743 * gdbserver/linux-ppc-low.c: Include "linux-low.h".
12744 * gdbserver/linux-sh-low.c: Include "linux-low.h".
12745 * gdbserver/linux-i386-low.c: Include "linux-low.h". Include
12746 "i387-fp.h". Add PTRACE_GETREGS and friends.
12747 * gdbserver/regcache.c (supply_register): New function.
12748 (supply_register_by_name): New function.
12749 (collect_register): New function.
12750 (collect_register_by_name): New function.
12751
12752 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12753
12754 * gdbserver/Makefile.in (INTERNAL_CFLAGS): Remove -DGDBSERVER.
12755 (config.status): Add configure.srv dependency.
12756 (server_h): Add config.h dependency.
12757
12758 2002-02-27 Daniel Jacobowitz <drow@mvista.com>
12759
12760 * regformats/reg-i386-linux.dat: New file, with $orig_eax.
12761 * gdbserver/Makefile.in: Add rules for reg-i386-linux.o.
12762 * gdbserver/configure.srv: Change i386-*-linux* to use
12763 reg-i386-linux.o.
12764
12765 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12766
12767 * x86-64-tdep.c: Re-indent. Update copyright date.
12768
12769 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12770
12771 From Michal Ludvig <mludvig@suse.cz>:
12772 * x86-64-tdep.c (value.h): Delete.
12773 (gdb_assert.h): Include.
12774 (x86_64_register_convert_to_virtual,
12775 x86_64_register_convert_to_raw ): Add check which lets only
12776 floating-point values to be converted.
12777 (value_push): Delete.
12778 (x86_64_push_arguments): Order of arguments pushed on stack fixed.
12779 (i386_gdbarch_init): Number of register_bytes fixed.
12780
12781 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12782
12783 * MAINTAINERS: Add x86-64 target.
12784
12785 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12786
12787 * memattr.c (mem_command): Eliminate ``true'' and ``false''.
12788 * osfsolib.c (solib_map_sections): Ditto.
12789 * irix5-nat.c (solib_map_sections): Ditto.
12790 * corelow.c (gdb_check_format): Ditto.
12791 * symfile.c (symfile_bfd_open): Ditto.
12792 * solib.c (solib_map_sections): Ditto.
12793 Fix PR gdb/354.
12794
12795 2002-02-26 Andrew Cagney <ac131313@redhat.com>
12796
12797 * remote.c (_initialize_remote): By default, disable ``e'' and
12798 ``E'' step out-of-range packets.
12799
12800 2002-02-26 Andreas Schwab <schwab@suse.de>
12801
12802 * config/m68k/tm-linux.h (FRAME_SAVED_PC): Define as
12803 m68k_linux_frame_saved_pc.
12804 (IN_SIGTRAMP): Define as m68k_linux_in_sigtramp instead of
12805 in_sigtramp.
12806 (SIGCONTEXT_PC_OFFSET): Remove.
12807 * m68klinux-nat.c (m68k_linux_frame_saved_pc,
12808 m68k_linux_sigtramp_saved_pc): New functions.
12809 (IS_SIGTRAMP, IS_RT_SIGTRAMP): Define.
12810 (SIGCONTEXT_PC_OFFSET): Moved here from config/m68k/tm-linux.h.
12811 (UCONTEXT_PC_OFFSET): Define.
12812 (m68k_linux_in_sigtramp): Renamed from in_sigtramp, handle both
12813 non-RT and RT signal trampolines.
12814
12815 2002-02-26 Richard Earnshaw <rearnsha@arm.com>
12816
12817 * config/arm/tm-embed.h (TARGET_UPAGES): Delete.
12818 (TARGET_NBPG, STACK_END_ADDR): Delete
12819 (VARIABLES_INSIDE_BLOCK): Delete.
12820
12821 2002-02-25 Andrew Cagney <ac131313@redhat.com>
12822
12823 * utils.c (perror_with_name): Make string parameter constant.
12824 (print_sys_errmsg): Ditto.
12825 (query): Ditto.
12826 * defs.h (perror_with_name): Update.
12827 (print_sys_errmsg): Update.
12828 (query): Update.
12829
12830 2002-02-25 Daniel Jacobowitz <drow@mvista.com>
12831
12832 From Eliot Dresselhaus <eliot@ayrnetworks.com>:
12833 * gdbserver/linux-mips-low.c (cannot_fetch_register): Fix typo.
12834
12835 2002-02-25 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12836
12837 * rs6000-nat.c (set_host_arch): Do not switch to a new architecture
12838 if it already matches the current architecture from the exec file.
12839 Include arch-utils.h for gdbarch_info_init prototype.
12840 * Makefile.in (rs6000-nat.o): Update dependencies.
12841
12842 2002-02-25 Eli Zaretskii <eliz@is.elta.co.il>
12843
12844 * config/djgpp/djconfig.sh: Set NM=nm and CFLAGS="-g -O2" in the
12845 list of exported variables.
12846
12847 2002-02-24 Daniel Jacobowitz <drow@mvista.com>
12848
12849 * gdbserver/configure.srv: New file.
12850 * gdbserver/configure.in: Use configure.srv instead
12851 of the host/target makefile fragments. Set GDBSERVER_DEPFILES
12852 from it.
12853 * gdbserver/configure: Regenerated.
12854 * gdbserver/terminal.h: New file.
12855 * gdbserver/Makefile.in: Update for configure changes. Remove
12856 more unneeded include paths.
12857
12858 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12859
12860 From wiz at danbala:
12861 * config/sparc/tm-sp64.h: Fix grammar and typos.
12862 Fix PR gdb/287.
12863
12864 2002-02-24 Andrew Cagney <ac131313@redhat.com>
12865
12866 * lin-lwp.c, thread-db.c, defs.h, cris-tdep.c: Replace ``Linux''
12867 with either ``GNU/Linux'' or ``Linux kernel''. Update copyright.
12868 * m68klinux-nat.c, sparc-linux-nat.c, x86-64-linux-nat.c: Ditto.
12869 * x86-64-linux-tdep.c, gregset.h, gdb_wait.h: Ditto.
12870 * ia64-linux-nat.c, infrun.c, linux-proc.c: Ditto.
12871 * proc-service.c, i386-linux-tdep.c, ppc-linux-tdep.c: Ditto.
12872 * s390-tdep.c: Ditto.
12873 * config/nm-linux.h, config/alpha/nm-linux.h: Ditto.
12874 * config/alpha/tm-alpha.h, config/alpha/tm-alphalinux.h:
12875 * config/alpha/xm-alphalinux.h, config/i386/nm-linux.h: Ditto.
12876 * config/i386/nm-x86-64.h, config/i386/tm-linux.h: Ditto.
12877 * config/m68k/tm-linux.h, config/mips/nm-linux.h: Ditto.
12878 * config/mips/tm-linux.h, config/mips/xm-linux.h: Ditto.
12879 * config/powerpc/tm-linux.h, config/s390/nm-linux.h: Ditto.
12880 * config/s390/tm-linux.h, config/sh/tm-linux.h: Ditto.
12881 * config/sparc/nm-linux.h, config/sparc/tm-linux.h: Ditto.
12882 * config/sparc/tm-sp64linux.h, config/sparc/xm-linux.h: Ditto.
12883 Fix PR gdb/378.
12884
12885 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12886
12887 * lin-thread.c: Delete file.
12888 * configure.in (gdb_cv_struct_reg_r_gs): Update comment to refer
12889 to gdb_proc_service.h.
12890 * configure: Re-generate.
12891
12892 * ocd.c (ocd_open): Do not try to open the "ocd" device.
12893 * serial.c (serial_open): Delete check for "ocd".
12894 Fix PR gdb/349.
12895
12896 * Makefile.in (linux-thread.o): Delete target.
12897 * linux-thread.c: Delete file.
12898
12899 * config/djgpp/fnchange.lst: Rename bfd/elf32-sh64.c. Tweak other
12900 renamed SH files to be consistent.
12901
12902 * symtab.c (sort_search_symbols): Use xfree.
12903
12904 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12905
12906 * arm-linux-tdep.c (arm_linux_init_abi): Register
12907 IN_SOLIB_CALL_TRAMPOLINE and SKIP_TRAMPOLINE_CODE
12908 * config/arm/tm-linux.h (IN_SOLIB_CALL_TRAMPOLINE): Replace old
12909 definition with undef, since we don't want the sysvr4 definition.
12910 (SKIP_TRAMPOLINE_CODE): Likewise.
12911
12912 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12913
12914 From 2002-02-22 Alfred M. Szmidt <ams@kemisten.nu>:
12915
12916 * configure.in: (AC_CHECK_FUNCS) Added test for
12917 canonicalize_file_name Regenerated.
12918 * config.in, configure: Regenerated.
12919 * utils.c: (gdb_realpath) If HAVE_CANONICALIZE_FILE_NAME is
12920 defined use canonicalize_file_name.
12921
12922 2002-02-23 Michael Chastain <mec@shout.net>
12923
12924 * MAINTAINERS: Remove Michael Chastain from "paper trail" list.
12925
12926 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12927
12928 * README: Remove references to cygnus.com.
12929 * MAINTAINERS: Change Past Maintainer addresses to ``foo at bar
12930 dot com'' form. Remove references to cygnus.com and sourceware.
12931
12932 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12933
12934 From 2002-02-19 Paul Eggert <eggert@twinsun.com>:
12935 * Makefile.in (VER): Change "head -1" to "sed q", since POSIX
12936 1003.1-2001 no longer allows "head -1".
12937 * gdb/Makefile.in (version.c): Likewise.
12938 * gdb/doc/Makefile.in (GDBvn.texi): Likewise.
12939 * gdb/CONTRIBUTE: Change "diff -c3" to "diff -c", which is
12940 equivalent. POSIX 1003.1-2001 no longer allows "diff -c3".
12941
12942 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12943
12944 * cli/cli-decode.c (cmd_cfunc_eq): New function.
12945 * command.h (cmd_cfunc_eq): Declare.
12946 * cli/cli-decode.h (cmd_cfunc_eq): Ditto.
12947
12948 * cli/cli-cmds.h (is_complete_command): Change parameter to a
12949 ``struct cmd_list_element *''.
12950 * cli/cli-cmds.c (is_complete_command): Update. Use
12951 cmd_cfunc_eq.
12952 * top.c (execute_command): Pass the command to
12953 is_complete_command.
12954 * tracepoint.c: Replace function.cfunc with cmd_cfunc_eq.
12955
12956 2002-02-23 Andrew Cagney <ac131313@redhat.com>
12957
12958 From 2002-02-20 Martin Schwidefsky <schwidefsky@de.ibm.com>:
12959 * config/s390/tm-s390.h (GDB_TARGET_IS_ESAME): Use renamed
12960 architecture defines.
12961 * s390-tdep.c (s390_gdbarch_init): Likewise.
12962
12963 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12964
12965 * arm-linux-tdep.c (arm_linux_extract_return_value): Make static.
12966 (arm_linux_push_arguments): Likewise.
12967 (arm_linux_init_abi): Register them. Also register linux-specific
12968 call_dummy_words.
12969 (find_minsym_and_objfile): Use strcmp, not STREQ.
12970 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Delete.
12971 (arm_linux_call_dummy_words): Delete declaration.
12972 (EXTRACT_RETURN_VALUE, PUSH_ARGUMENTS): Delete.
12973 (arm_linux_extract_return_value, arm_linux_push_arguments): Delete
12974 declarations.
12975 (LOWEST_PC): Delete.
12976
12977 2002-02-23 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
12978
12979 * maint.c (print_section_info): Do not prepend `0x' to filepos
12980 output, it will be handled by local_hex_string_custom.
12981
12982 2002-02-23 Richard Earnshaw <rearnsha@arm.com>
12983
12984 * arm-linux-nat.c (store_newfpe_single): Use regcache_collect.
12985 (store_newfpe_double, store_newfpe_extended, store_fpregister)
12986 (store_register, store_regs, fill_gregset, fill_fpregset): Likewise.
12987
12988 2002-02-22 Jim Blandy <jimb@redhat.com>
12989
12990 Indicate that the bcache functions don't change the strings
12991 they're passed.
12992 * bcache.h (bcache, hash): Add `const' keywords to declarations.
12993 * bcache.c (bcache, hash): Add `const' keywords to definitions.
12994
12995 2002-02-22 Pierre Muller <muller@ics.u-strasbg.fr>
12996
12997 * win32-nat.c (child_create_inferior): Fix create flags setting bug.
12998
12999 2002-02-21 Christopher Faylor <cgf@redhat.com>
13000
13001 * win32-nat.c (register_loaded_dll): Just use raw name when we can't
13002 find the complete path to a loaded DLL.
13003
13004 2002-02-21 Fred Fish <fnf@redhat.com>
13005
13006 * dbxread.c (process_one_symbol): When finding an N_FUN symbol
13007 that marks the end of the range of a function, enter a line number
13008 entry that has a line number of zero and a PC offset that matches
13009 the end of the function. This starts a range of PC's for which no
13010 line number information is known.
13011 * symtab.c (find_pc_sect_line): If our best fit is in a range of
13012 PC's for which no line number info is found (line number is zero)
13013 then we didn't find any valid line information.
13014 * symtab.h: Document use of zero line number entry.
13015
13016 2002-02-21 Elena Zannoni <ezannoni@redhat.com>
13017
13018 * ppc-linux-nat.c (PTRACE_GETVRREGS, PTRACE_SETVRREGS): Define.
13019 (have_ptrace_getvrregs): Define for run time checks.
13020 (gdb_vrregset_t): New type for Altivec register handling.
13021 (fetch_register, store_register): Fetch/store altivec register
13022 when needed.
13023 (fetch_altivec_register, store_altivec_register): New functions.
13024 (supply_vrregset, fill_vrregset): New functions.
13025 (fetch_altivec_registers, store_altivec_registers): New functions.
13026 (fetch_ppc_registers, store_ppc_registers): Fetch/store altivec
13027 registers as well.
13028
13029 2002-02-21 Jiri Smid <smid@suse.cz>
13030
13031 * config/i386/x86-64linux.mh (NATDEPFILES): Remove x86-64-nat.o.
13032
13033 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13034
13035 * Makefile.in (armnbsd-nat.o): Update dependencies.
13036 * armnbsd-nat.c (supply_gregset): New function. Common code to
13037 supply the integer register set.
13038 (supply_fparegset): New function. Similar for FPA registers.
13039 (fetch_regs, fetch_fp_regs): Use them.
13040 (fetch_core_registers): Likewise.
13041 (fetch_elfcore_registers): New function.
13042 (arm_netbsd_elfcore_fns): New core-file type specification.
13043 (_initialize_arm_netbsd_nat): Register it.
13044
13045 2002-02-21 Richard Earnshaw <rearnsha@arm.com>
13046
13047 * armnbsd-nat.c: Include gdbcore.h.
13048 (FETCH_INFERIOR_REGISTERS): Just error if this isn't defined.
13049 (fetch_regs, fetch_fp_regs, store_regs, store_fp_regs): Add explicit
13050 'void' to declaration, to shut up ARI.
13051 (fetch_core_registers): Make static. Rewrite using supply_register.
13052 (arm_netbsd_core_fns): New core-file type specification.
13053 (_initialize_arm_netbsd_nat): New function.
13054
13055 2002-02-21 Christopher Faylor <cgf@redhat.com>
13056
13057 * win32-nat.c (register_loaded_dll): Correctly check for invalid handle
13058 value.
13059
13060 2002-02-20 Christopher Faylor <cgf@redhat.com>
13061
13062 * win32-nat.c (register_loaded_dll): Handle case where FindFirstFile
13063 fails.
13064
13065 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13066
13067 * jv-exp.y (parse_number): Change type of implicit longs
13068 to builtin_type_uint64.
13069
13070 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13071
13072 * gdbserver/linux-low.c (mywait): Change argument to waitpid
13073 to be an integer instead of a `union wait'.
13074
13075 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13076
13077 * mips-linux-nat.c: Call the operating system GNU/Linux.
13078 * mips-linux-tdep.c: Likewise.
13079 * mips-tdep.c: Likewise.
13080
13081 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13082
13083 Fix PR gdb/265.
13084 * jv-exp.y (parse_number): Handle 64-bit integers.
13085
13086 2002-02-20 Daniel Jacobowitz <drow@mvista.com>
13087
13088 * gdbserver/configure.in: Remove AM_PROC_CC_STDC. Change
13089 AC_STDC_HEADERS to AC_HEADER_STDC.
13090 * gdbserver/configure: Regenerated.
13091
13092 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13093
13094 * arc-tdep.c (get_longjmp_target): Only compile this function if JB_PC
13095 is defined.
13096 * sparc-tdep.c (get_longjmp_target): Likewise.
13097
13098 2002-02-20 Richard Earnshaw <rearnsha@arm.com>
13099
13100 * News: Add news about ARM and Multi-arch. Mention the new target
13101 arm*-*-netbsd*.
13102
13103 2002-02-19 Jim Blandy <jimb@redhat.com>
13104
13105 * stabsread.c (error_type_complaint): Improve error message.
13106
13107 2002-02-19 Daniel Jacobowitz <drow@mvista.com>
13108
13109 * gdbserver/README: Update documentation.
13110 * gdbserver/configure.in: Update configury to match documentation.
13111 * gdbserver/Makefile.in: Likewise.
13112 * gdbserver/configure: Regenerated.
13113 * gdbserver/aclocal.m4: New file, generated by aclocal.
13114 * gdbserver/config.in: New file, generated by autoheader.
13115
13116 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13117
13118 * config/djgpp/fnchange.lst: Add change rules for armnbsd-tdep.c and
13119 armnbsd-nat.c.
13120
13121 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13122
13123 * arm-tdep.h (enum arm_float_model): New enum.
13124 (struct gdbarch_tdep): Add fp_model.
13125 * arm-tdep.c (arm_gdbarch_init): Set fp_model in tdep. Defer setting
13126 up floating-point conversions until we know the floating-point model
13127 in use by the inferior. Don't complain about being unable to
13128 determine the ABI of the inferior when we don't have one.
13129 (arm_extract_return_value): Support different floating-point models.
13130 (arm_store_return_value): Likewise.
13131 * armnbsd-tdep.c (arm_netbsd_aout_init_abi): Set fp_model in tdep to
13132 ARM_FLOAT_SOFT.
13133 (arm_netbsd_elf_init_abi): Set fp_model to ARM_FLOAT_SOFT_VFP.
13134
13135 2002-02-19 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13136
13137 * i386-tdep.c (i386_gdbarch_init): Eliminate incorrect use
13138 of ``current_gdbarch''.
13139
13140 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13141
13142 * armnbsd-nat.c : ANSIfy all function declarations.
13143 (fetch_register, fetch_regs, fetch_fp_register, fetch_fp_regs): New.
13144 (fetch_inferior_registers): Re-implement in terms of above.
13145 (store_register, store_regs, store_fp_register, store_fp_regs): New.
13146 (store_inferior_registers): Re-implement in terms of above.
13147
13148 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13149
13150 * arm-linux-nat.c: Linux -> GNU/Linux when not talking about the
13151 kernel.
13152 * arm-linux-tdep.c: Likewise.
13153 * config/arm/tm-linux.h: Likewise.
13154
13155 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13156
13157 * configure.tgt (arm*-*-netbsd*): This variant is now fully multi-arch.
13158 * config/arm/nbsd.mt (TM_FILE): Delete.
13159 * config/arm/tm-nbsd.h: Delete.
13160
13161 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13162
13163 * arm-tdep.c (arm_gdbarch_init): Initialize TARGET_CHAR_SIGNED.
13164 Initialize CALL_DUMMY_LENGTH.
13165
13166 2002-02-19 Richard Earnshaw <rearnsha@arm.com>
13167
13168 * armnbsd-tdep.c (arm_netbsd_aout_in_solib_call_trampoline): New
13169 function.
13170 (arm_netbsd_aout_init_abi): Initialize IN_SOLIB_CALL_TRAMPOLINE.
13171 * config/arm/tm-nbsd.h: Don't include config/tm-nbsd.h, it only
13172 defines one thing and that is incorrect for this port.
13173 (IN_SOLIB_CALL_TRAMPOLINE): Delete.
13174
13175 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13176
13177 * go32-nat.c: add i386-tdep.h include to import FP_REGNUM_P macro.
13178
13179 2002-02-18 Pierre Muller <muller@ics.u-strasbg.fr>
13180
13181 * win32-nat.c (display_selector): New function. Displays information
13182 about the information returned by GetThreadSelectorEntry API function.
13183 (display_selectors): New function. Displays the infomation of
13184 the selector given as argument, or of CS, DS ans FS selectors
13185 if no argument is given.
13186 ( _initialize_inftarg): Add "w32" as info prefix command.
13187 Add "info w32 selector" as command calling display_selectors.
13188
13189 2002-02-19 Pierre Muller <muller@ics.u-strasbg.fr>
13190
13191 * i386-tdep.c (get_longjmp_target): Fix compilation failure
13192 by setting dummy values to JB_PC and JB_ELEMENT_SIZE
13193 if not defined.
13194
13195 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13196
13197 * config/arm/nbsd.mt (TDEPFILES): Add solib-sunos.o.
13198
13199 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13200
13201 * arm-tdep.c (arm_set_call_dummy_breakpoint_offset): New function.
13202 (arm_fix_call_dummy): Call it.
13203 (arm_call_dummy_breakpoint_offset): Delete.
13204 (arm_gdbarch_init): Initialize call_dummy_breakpoint_offset.
13205 * config/arm/tm-arm.h (CALL_DUMMY_BREAKPOINT_OFFSET): Delete.
13206
13207 2002-02-18 Andrew Cagney <ac131313@redhat.com>
13208
13209 * gdbarch.sh (FRAME_CHAIN_VALID): Only require at level 2.
13210 Default to func_frame_chain_valid.
13211 * gdbarch.h, gdbarch.c: Re-generate.
13212 * frame.h (FRAME_CHAIN_VALID): Delete definition.
13213
13214 2002-02-18 Elena Zannoni <ezannoni@redhat.com>
13215
13216 * ppc-linux-nat.c: Update copyright.
13217 (fetch_register, store_register): Add tid parameter, don't compute
13218 tid here.
13219 (fetch_ppc_registers, store_ppc_registers): Add tid
13220 parameter. Pass it along to callees.
13221 (fetch_inferior_registers, store_inferior_registers): Compute tid
13222 here, and pass it to calleed functions.
13223 (fill_gregset, supply_fpregset): Clean up formatting.
13224
13225 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13226
13227 * arm-tdep.c (arm_gdbarch_init): Initialize coerce_float_to_double.
13228 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Delete.
13229
13230 2002-02-18 Richard Earnshaw <rearnsha@arm.com>
13231
13232 * gdbarch.sh (GET_LONGJMP_TARGET): Add rule.
13233 * gdbarch.c gdbarch.h: Regenerate.
13234 * breakpoint.c (create_longjmp_breakpoint): Always compile this
13235 function.
13236 (breakpoint_reset): Test GET_LONGJMP_TARGET_P().
13237 * infrun.c (GET_LONGJMP_TARGET): Delete default definition.
13238 (handle_inferior_event): Test GET_LONGJMP_TARGET_P().
13239
13240 * arm-tdep.h (struct gdbarch_tdep): Add jb_pc and jb_elt_size fields.
13241 * arm-tdep.c (arm_get_longjmp_target): New function.
13242 (arm_gdbarch_init): Initialize jb_pc to -1. If ABI handler changes
13243 this to a positive value register arm_get_longjmp_target as the
13244 longjmp handler.
13245 * arm-linux-tdep.c (arm_get_longjmp_target): Delete.
13246 (arm_linux_init_abi): Set up longjmp description in tdep.
13247 * armnbsd-nat.c (get_longjmp_target): Delete.
13248 * armnbsd-tdep.c (arm_netbsd_init_abi_common): Set up longjmp
13249 description in tdep.
13250 * config/arm/tm-nbsd.h (JB_ELEMENT_SIZE, JB_PC): Delete.
13251 (get_longjmp_target): Delete declaration.
13252 (GET_LONGJMP_TARGET): Delete.
13253 * config/arm/tm-linux.h (arm_get_longjmp_target): Delete declaration.
13254 (GET_LONGJMP_TARGET): Delete.
13255
13256 2002-02-17 Kevin Buettner <kevinb@redhat.com>
13257
13258 From Peter Schauer <pes@regent.e-technik.tu-muenchen.de>:
13259 * ia64-tdep.c (ia64_gdbarch_init): Eliminate incorrect use
13260 of ``current_gdbarch''.
13261
13262 2002-02-17 Tom Tromey <tromey@redhat.com>
13263
13264 * cli/cli-cmds.c (compare_strings): New function.
13265 (complete_command): Only print each unique item once.
13266 * completer.h (complete_line): Declare.
13267 * completer.c (complete_line): New function.
13268 (line_completion_function): Use it.
13269
13270 2002-02-16 Andrew Cagney <ac131313@redhat.com>
13271
13272 * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Default to 64.
13273 * gdbarch.h, gdbarch.c: Re-generate.
13274
13275 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13276
13277 * valarith.c (value_x_unop): Fix decrement; support post-decrement.
13278
13279 2002-02-16 Daniel Jacobowitz <drow@mvista.com>
13280
13281 From Peter Schauer <Peter.Schauer@Regent.E-Technik.TU-Muenchen.DE>:
13282 * valops.c (value_arg_coerce): Don't take the address of a reference
13283 to convert an argument to a reference.
13284
13285 2002-02-15 Christopher Faylor <cgf@redhat.com>
13286
13287 * win32-nat.c (get_image_name): New function.
13288 (handle_load_dll): Use get_image_name function.
13289 (get_child_debug_event): Avoid registering debug events until possibly
13290 execed process is started.
13291 (child_create_inferior): Allow invocation via shell so that command
13292 line redirection, etc. works ok.
13293 (_initialize_inftarg): Add new command: "set shell" to control whether
13294 a shell is used to start a process.
13295
13296 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13297
13298 * gdbserver/linux-mips-low.c (cannot_fetch_register): Use find_regno
13299 instead of find_register_by_number.
13300 (cannot_store_register): Likewise.
13301
13302 2002-02-14 Pierre Muller <muller@ics.u-strasbg.fr>
13303
13304 * dwarf2read.c: Replace fprintf (stderr, ...) by
13305 fprintf_unfiltered (gdb_stderr, ...).
13306
13307 2002-02-15 Daniel Jacobowitz <drow@mvista.com>
13308
13309 * gdbserver/gdbserver.1: Document --attach.
13310
13311 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13312
13313 * arm-tdep.h (struct gdbarch_tdep): Add fields for breakpoint
13314 descriptions.
13315 * arm-tdep.c (arm_default_arm_le_breakpoint)
13316 (arm_default_arm_be_breakpoint, arm_default_thumb_le_breakpoint)
13317 (arm_default_thumb_be_breakpoint): New. Initialize them from
13318 traditional breakpoint defines.
13319 (arm_breakpoint_from_pc): Use new gdbarch_tdep entries.
13320 (arm_gdbarch_init): Initialize new breakpoint variables.
13321 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint): New.
13322 (arm_linux_init_abi): Initialize linux-specific breakpoint.
13323 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint): New.
13324 (arm_netbsd_aout_init_abi, arm_netbsd_elf_init_abi): Split common
13325 code out to ...
13326 (arm_netbsd_init_abi_common): ... here; new function.
13327 * config/arm/tm-arm.h (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT)
13328 (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Delete.
13329 * config/arm/tm-linux.h (ARM_LE_BREAKPOINT): Delete.
13330 * config/arm/tm-nbsd.h (ARM_LE_BREAKPOINT): Delete.
13331
13332 2002-02-15 Richard Earnshaw <rearnsha@arm.com>
13333
13334 * arm-tdep.h (enum arm_abi): New enum.
13335 (struct gdbarch_tdep): New structure.
13336 (LOWEST_PC): Provide a default.
13337 (arm_gdbarch_register_os_abi): Declare new function.
13338 * arm-tdep.c (arm_abi_names): New array.
13339 (process_note_abi_tag_sections): New function.
13340 (get_elfosabi): New function.
13341 (arm_gdbarch_register_os_abi): New function.
13342 (arm_gdbarch_init): Try to determine the ABI of the inferior. If
13343 support for that ABI has been built in, then call the appropriate
13344 configuration routine. Use gdbarch_num_regs() to get the number
13345 of registers.
13346 (arm_dump_tdep): New function.
13347 (arm_init_abi_eabi_v1, arm_init_abi_eabi_v2, arm_init_abi_apcs): New
13348 place-holder functions.
13349 (_initialize_arm_tdep): Register them.
13350 * config/arm/tm-arm.h (LOWEST_PC): Delete.
13351
13352 * armnbsd-tdep.c: New file.
13353 * Makefile.in (armnbsd-tdep.o): Add dependencies.
13354 * config/arm/nbsd.mt (TDEPFILES): Add it.
13355 * config/arm/tm-nbsd.h (LOWEST_PC): Delete.
13356
13357 * armnbsd-nat.c: Include regcache.h.
13358 * Makefile.in (armnbsd-nat.o): Update dependency list.
13359
13360 * arm-tdep.c (arm_get_next_pc): Use printf_filtered for error message.
13361
13362 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13363
13364 * gdbserver/Makefile.in: Fix typos in target rules.
13365
13366 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13367
13368 Fix part of PR gdb/267.
13369 * linespec.c (find_methods): Handle constructors specially for now.
13370
13371 2002-02-14 Corinna Vinschen <vinschen@redhat.com>
13372
13373 * arm-tdep.c (arm_push_arguments): Eliminate special float type
13374 handling.
13375 * config/arm/tm-arm.h (COERCE_FLOAT_TO_DOUBLE): Define to call
13376 standard_coerce_float_to_double().
13377
13378 2002-02-14 Christopher Faylor <cgf@redhat.com>
13379
13380 * config/i386/xm-cygwin.h: Revert inadvertent reinclusion of
13381 GDBINIT_FILENAME.
13382
13383 2002-02-14 Elena Zannoni <ezannoni@redhat.com>
13384
13385 * rs6000-tdep.c (rs6000_gdbarch_init): Don't call
13386 find_variant_by_name, because it confuses the multiarch
13387 framework. Return NULL if there isn't an architecture with the
13388 user supplied name, instead of forcing a different one without
13389 recording the change with the multiarch machinery.
13390 (find_variant_by_name): Delete.
13391
13392 2002-02-14 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13393
13394 * config/i386/i386sol2.mh (NATDEPFILES): Add i387-nat.o, needed by
13395 i386v4-nat.o now. Add gcore.o, Solaris x86 supports gcore.
13396
13397 2002-02-13 Martin M. Hunt <hunt@redhat.com>
13398
13399 * stack.c (print_frame_info_base): When calling
13400 print_frame_info_listing_hook, set current_source_symtab.
13401
13402 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13403
13404 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS,
13405 and remove unused $(INCLUDE_DIR).
13406 Add regcache.c to OBS.
13407 Add generated register protocol files to clean target.
13408 Update dependencies for new objects, obsolete old target code.
13409
13410 * gdbserver/linux-low.c: Remove all platform-specific code to
13411 new files. Remove various dead code. Update to use regcache
13412 functionality.
13413 * gdbserver/remote-utils.c (fromhex): Add return statement
13414 to quiet warning.
13415 (putpkt): Dynamically allocate buf2 because PBUFSIZ is no longer
13416 constant.
13417 (input_interrupt): Add integer parameter to match prototype
13418 of a signal handler.
13419 (outreg): Use register_data ().
13420 (prepare_resume_reply): Use gdbserver_expedite_regs.
13421 * gdbserver/server.c (main): Dynamically allocate own_buf because
13422 PBUFSIZ is no longer constant. Use registers_to_string () and
13423 registers_from_string ().
13424 * gdbserver/server.h: No longer include "defs.h". Add prototypes
13425 for error (), fatal (), and warning (). Update definition of
13426 PBUFSIZ to use regcache functionality. Add include guard.
13427 * gdbserver/utils.c (fatal): Add missing ``const''.
13428 (warning): New function.
13429
13430 * regformats/regdat.sh: Include "regcache.h" in generated files.
13431 Provide init_registers () function.
13432 * regformats/regdef.h: Add prototype for set_register_cache ().
13433 Add include guard.
13434
13435 * gdbserver/linux-arm-low.c: New file.
13436 * gdbserver/linux-i386-low.c: New file.
13437 * gdbserver/linux-ia64-low.c: New file.
13438 * gdbserver/linux-m68k-low.c: New file.
13439 * gdbserver/linux-mips-low.c: New file.
13440 * gdbserver/linux-ppc-low.c: New file.
13441 * gdbserver/linux-sh-low.c: New file.
13442
13443 * gdbserver/regcache.c: New file.
13444 * gdbserver/regcache.h: New file.
13445
13446 * gdbserver/low-linux.c: Removed obsolete file.
13447
13448 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13449
13450 * config/arm/linux.mt: Update GDBSERVER_DEPFILES.
13451 * config/i386/linux.mt: Likewise.
13452 * config/ia64/linux.mt: Likewise.
13453 * config/m68k/linux.mh: Likewise.
13454 * config/powerpc/linux.mh: Likewise.
13455 * config/mips/linux.mt: Likewise.
13456
13457 * config/sh/linux.mt: Add GDBSERVER_DEPFILES.
13458
13459 * config/i386/i386lynx.mh: Mark gdbserver variables
13460 as (currently) obsolete for this target.
13461 * config/i386/nbsd.mt: Likewise.
13462 * config/i386/nbsdelf.mt: Likewise.
13463 * config/m32r/m32r.mt: Likewise.
13464 * config/m68k/m68klynx.mh: Likewise.
13465 * config/m68k/nbsd.mt: Likewise.
13466 * config/m68k/sun3os4.mh: Likewise.
13467 * config/mips/vr5000.mt: Likewise.
13468 * config/ns32k/nbsd.mt: Likewise.
13469 * config/pa/hppabsd.mh: Likewise.
13470 * config/pa/hppaosf.mh: Likewise.
13471 * config/powerpc/nbsd.mt: Likewise.
13472 * config/rs6000/rs6000lynx.mh: Likewise.
13473 * config/s390/s390.mt: Likewise.
13474 * config/s390/s390x.mt: Likewise.
13475 * config/sparc/sparclynx.mh: Likewise.
13476 * config/sparc/sun4os4.mh: Likewise.
13477 * config/i386/x86-64linux.mt: Likewise.
13478 * config/sparc/linux.mh: Likewise.
13479
13480 2002-02-14 Daniel Jacobowitz <drow@mvista.com>
13481
13482 * configure.tgt: Configure gdbserver only for known working
13483 targets. Set ${build_gdbserver} instead of modifying ${configdirs}.
13484 * configure.in: Check ${build_gdbserver}. Put gdbserver/ into
13485 SUBDIRS if it is configured. Update comment for ${nativefile}.
13486 * configure: Regenerated.
13487
13488 2002-02-13 Michael Snyder <msnyder@redhat.com>
13489
13490 * config/i386/i386v42mp.mh: Add gcore.o to NATDEPFILES.
13491
13492 * gcore.c (gcore_command): Use gcore_default_target instead of NULL.
13493 (default_gcore_mach): Just return 0, work around a problem in bfd.
13494 (default_gcore_target): OK to return NULL if exec_bfd is null.
13495 (make_mem_sec): Use a cast, avoid a warning.
13496
13497 * procfs.c (find_memory_regions_callback): Use a cast instead of
13498 calling host_pointer_to_address (which complains if
13499 sizeof (host pointer) != sizeof (target pointer)).
13500 (procfs_make_note_section): Avoid overflow in psargs string.
13501
13502 * procfs.c (procfs_make_note_section): Make the default
13503 implementation return an error.
13504
13505 2002-02-13 Rodney Brown <rbrown64@csc.com.au>
13506
13507 * procfs.c (procfs_make_note_section): Provide a default definition
13508 (for alpha-dec-osf4.0f). Fix typos.
13509
13510 2002-02-13 Elena Zannoni <ezannoni@redhat.com>
13511
13512 * linux-proc.c: Add include of regcache.h.
13513 * Makefile.in (linux-proc.o): Add dependency on regcache.h.
13514
13515 2002-02-13 Andrew Cagney <ac131313@redhat.com>
13516
13517 From 2002-01-18 Greg McGary <greg@mcgary.org>:
13518 * memattr.c (create_mem_region): Disallow useless empty region.
13519 Regions are half-open intervals, so allow [A..B) [B..C) as
13520 non-overlapping.
13521
13522 2002-02-13 Michael Chastain <mec@shout.net>
13523
13524 * defs.h: Kill CONST_PTR.
13525 * c-lang.h (c_builtin_types): Change CONST_PTR to simple "const".
13526 * c-lang.c (c_builtin_types): Likewise.
13527 * ch-lang.c (ch_builtin_types): Likewise.
13528 * f-lang.c (f_builtin_types): Likewise.
13529 * language.c (unknown_builtin_types): Likewise.
13530 * m2-lang.c (m2_builtin_types): Likewise.
13531 * p-lang.c (pascal_builtin_types): Likewise.
13532 * scm-lang.c (c_builtin_types): Likewise.
13533
13534 2002-02-13 Keith Seitz <keiths@redhat.com>
13535
13536 * arm-tdep.h (arm_get_next_pc): Add declaration.
13537
13538 2002-02-13 Richard Earnshaw <rearnsha@arm.com>
13539
13540 * arm-tdep.c (arm_use_struct_convention): Make static. Move to be
13541 with other related struct-returning functions.
13542 (arm_extract_struct_value_address): New function.
13543 (arm_gdbarch_init): Initialize the above in multi-arch vector. Also
13544 initialize float_format, double_format and long_double_format as
13545 appropriate to the endianness of the target.
13546 * config/arm/tm-arm.h (TARGET_DOUBLE_FORMAT): Delete.
13547 (arm_use_struct_convention): Delete declaration.
13548 (USE_STRUCT_CONVENTION, EXTRACT_STRUCT_VALUE_ADDRESS): Delete.
13549
13550 2002-02-13 Keith Seitz <keiths@redhat.com>
13551
13552 * defs.h (core_addr_to_string_nz): New function.
13553
13554 2002-02-13 Mark Kettenis <kettenis@gnu.org>
13555
13556 Apply missing bits of 2002-01-15 patch.
13557 * i386v4-nat.c (supply_fpregset): Use i387_supply_fsave.
13558 (fill_fpregset): Use i387_fill_fsave.
13559
13560 2002-02-12 Keith Seitz <keiths@redhat.com>
13561
13562 * utils.c (core_addr_to_string): Use phex instead of phex_nz.
13563 (core_addr_to_string_nz): New function.
13564
13565 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13566
13567 * arm-linux-nat.c: Really include arm-tdep.h.
13568 * config/arm/tm-linux.h (struct type, struct value): Declare.
13569
13570 2002-02-11 Michael Snyder <msnyder@redhat.com>
13571
13572 * procfs.c: Include elf-bfd.h (for elfcore_write functions).
13573 (gcore section): Ifdef for Solaris and Unixware only.
13574 (procfs_do_thread_registers): Unixware needs one lwpstatus
13575 per thread (not one prstatus or pstatus).
13576 (procfs_make_note_section): Iterate only over kernel threads (lwps),
13577 not over all gdb threads. For unixware, call elfcore_write_pstatus
13578 once before iterating over threads.
13579
13580 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13581
13582 * arm-tdep.h: New file.
13583 * arm-tdep.c: Include arm-tdep.h.
13584 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13585 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13586 (arm_print_float_info, arm_register_type, convert_to_extended)
13587 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13588 (arm_extract_return_value, arm_register_name): Make static.
13589 (arm_software_single_step): Similarly. Fix types in declaration.
13590 (arm_register_byte, arm_register_raw_size, arm_register_virtual_size)
13591 (arm_store_return_value, arm_store_struct_return): New functions.
13592 (arm_gdbarch_init): Register the above functions. Also register
13593 call_dummy_start_offset, sizeof_call_dummy_words,
13594 function_start_offset, inner_than, decr_pc_after_break, fp_regnum,
13595 sp_regnum, pc_regnum, register_bytes, num_regs, max_register_raw_size,
13596 max_register_virtual_size, register_size. Set up
13597 prologue_cache.saved_regs here, rather than ...
13598 (_initialize_arm_tdep): ... here.
13599 * config/arm/tm-arm.h (struct type, struct value): Delete forward
13600 declarations.
13601 (arm_addr_bits_remove, arm_smash_text_address, arm_saved_pc_after_call)
13602 (arm_skip_prologue, arm_call_dummy_words, arm_fix_call_dummy)
13603 (arm_print_float_info, arm_register_type, convert_to_extended)
13604 (arm_elf_make_msymbols_special, arm_coff_make_msymbol_special)
13605 (arm_extract_return_value, arm_register_name): Delete declarations.
13606 (SMASH_TEXT_ADDRESS, ADDR_BITS_REMOVE, FUNCTION_START_OFFSET)
13607 (SKIP_PROLOGUE, SAVED_PC_AFTER_CALL, INNER_THAN, BREAKPOINT_FROM_PC)
13608 (DECR_PC_AFTER_BREAK, PRINT_FLOAT_INFO, REGISTER_SIZE, NUM_REGS)
13609 (REGISTER_NAME, REGISTER_BYTES, REGISTER_BYTE, REGISTER_RAW_SIZE)
13610 (REGISTER_VIRTUAL_SIZE, MAX_REGISTER_RAW_SIZE)
13611 (MAX_REGISTER_VIRTUAL_SIZE, REGISTER_VIRTUAL_TYPE, STORE_STRUCT_RETURN)
13612 (EXTRACT_RETURN_VALUE, STORE_RETURN_VALUE, CALL_DUMMY_WORDS)
13613 (SIZEOF_CALL_DUMMY_WORDS, CALL_DUMMY_START_OFFSET, FIX_CALL_DUMMY)
13614 (SOFTWARE_SINGLE_STEP_P, SOFTWARE_SINGLE_STEP)
13615 (ELF_MAKE_MSYMBOL_SPECIAL, COFF_MAKE_MSYMBOL_SPECIAL) Delete.
13616 (arm_pc_is_thumb, arm_pc_is_thumb_dummy, thumb_get_next_pc)
13617 (arm_get_next_pc): No-longer static -- these are needed by the RDI
13618 interface.
13619 * arm-linux-nat.c arm-linux-tdep.c armnbsd-nat.c: Include arm-tdep.h.
13620 * remote-rdi.c remote-rdp.c: Likewise.
13621 * Makefile.in (arm-linux-nat.o, arm-linux-tdep.o arm-tdep.o)
13622 (armnbsd-nat.o, remote-rdi.o, remote_rdp.o): Update dependencies.
13623 * config/arm/tm-nbsd.h (SOFTWARE_SINGLE_STEP_P): Delete bogus
13624 definition.
13625
13626 * arm-tdep.h (ARM_A1_REGNUM, ARM_A4_REGNUM, ARM_AP_REGNUM)
13627 (ARM_SP_REGNUM, ARM_LR_REGNUM, ARM_PC_REGNUM, ARM_F0_REGNUM)
13628 (ARM_F3_REGNUM, ARM_F7_REGNUM, ARM_FPS_REGNUM, ARM_PS_REGNUM): Renamed
13629 from non-ARM_ prefixed definitions.
13630 * arm-tdep.c armnbsd-nat.c arm-linux-nat.c arm-linux-tdep.c: Update
13631 all uses of above.
13632 * remote-rdi.c remote-rdp.c: Likewise.
13633 * arm-linux-nat.c (ARM_CPSR_REGNUM): Renamed from CPSR_REGNUM.
13634
13635 2002-02-11 Richard Earnshaw <rearnsha@arm.com>
13636
13637 * arm-tdep.c (arm_frameless_function_invocation)
13638 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13639 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13640 (arm_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13641 (arm_pop_frame, arm_get_next_pc): Make static.
13642 (arm_gdbarch_init): Register above in gdbarch structure.
13643 (arm_read_fp): Renamed from arm_target_read_fp.
13644 (arm_pc_is_thumb, arm_pc_is_thumb_dummy): Make static.
13645 * config/arm/tm-arm.h (arm_frameless_function_invocation)
13646 (arm_frame_args_address, arm_frame_locals_address, arm_frame_num_args)
13647 (arm_frame_chain, arm_init_extra_frame_info, arm_frame_saved_pc)
13648 (arm_target_read_fp, arm_frame_init_saved_regs, arm_push_dummy_frame)
13649 (arm_pop_frame, arm_get_next_pc, arm_pc_is_thumb)
13650 (arm_pc_is_thumb_dummy): Delete declarations.
13651 (INIT_EXTRA_FRAME_INFO, TARGET_READ_FP, FRAME_CHAIN)
13652 (FRAMELESS_FUNCTION_INVOCATION, FRAME_SAVED_PC, FRAME_ARGS_ADDRESS)
13653 (FRAME_LOCALS_ADDRESS, FRAME_NUM_ARGS, FRAME_ARGS_SKIP)
13654 (FRAME_INIT_SAVED_REGS, PUSH_DUMMY_FRAME, POP_FRAME): Delete.
13655
13656 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
13657
13658 * symtab.c (compare_search_syms): New function.
13659 (sort_search_symbols): New function.
13660 (search_symbols): Sort symbols after searching rather than
13661 before.
13662
13663 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13664
13665 * NEWS: Linux -> GNU/Linux.
13666
13667 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13668
13669 * gdbarch.sh: For for level one methods, disallow a definition
13670 when partially multi-arched. Add comments explaining rationale.
13671 * gdbarch.h: Re-generate.
13672
13673 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13674
13675 * gdbarch.sh (EXTRA_STACK_ALIGNMENT_NEEDED): Don't require when
13676 multi-arch partial.
13677
13678 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13679
13680 * gdbarch.sh: Map LEVEL onto a symbolic GT_LEVEL. Exit on bad
13681 field. Use diff -u.
13682 * gdbarch.c: Re-generate.
13683
13684 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13685
13686 * config/mips/tm-mips.h (CALL_DUMMY_LOCATION): Delete.
13687 * gdbarch.sh (PUSH_RETURN_ADDRESS): Don't require when multi-arch
13688 partial.
13689
13690 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13691
13692 * gdbarch.sh (REGISTER_CONVERTIBLE): Don't require when
13693 multi-arch partial.
13694 (PUSH_ARGUMENTS): Switch to using predefault.
13695 * gdbarch.c: Regenerate.
13696
13697 2002-02-10 Andrew Cagney <ac131313@redhat.com>
13698
13699 * valops.c (PUSH_ARGUMENTS): Delete definition.
13700 * gdbarch.sh (PUSH_ARGUMENTS): Don't require when multi-arch
13701 partial. Default to default_push_arguments.
13702 * gdbarch.h, gdbarch.c: Regenerate.
13703
13704 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13705
13706 * defs.h (throw_exception): Rename return_to_top_level. Update
13707 comments.
13708 * utils.c (error_stream, internal_verror, quit): Ditto.
13709 * top.c (throw_exception, catcher): Ditto.
13710 * sparclet-rom.c (sparclet_load): Ditto.
13711 * remote.c (interrupt_query, minitelnet): Ditto.
13712 * remote-sds.c (interrupt_query): Ditto.
13713 * remote-mips.c (mips_error, mips_kill): Ditto.
13714 * ocd.c (interrupt_query): Ditto.
13715 * monitor.c (monitor_interrupt_query): Ditto.
13716 * m3-nat.c (suspend_all_threads, thread_resume_command): Ditto.
13717 * target.h: Update comment.
13718
13719 * m3-nat.c, ocd.c, sparclet-rom.c: Update copyright.
13720
13721 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13722
13723 * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Default to
13724 default_double_format.
13725 * gdbarch.h, gdbarch.c: Re-generate.
13726 * findvar.c (floatformat_unknown): Delete variable definition.
13727 * doublest.h (floatformat_unknown): Delete variable declaration.
13728
13729 2002-02-09 Jim Blandy <jimb@redhat.com>
13730
13731 * stabsread.c (read_type): Add code to parse Sun's syntax for
13732 prototyped function types.
13733
13734 2002-02-09 Andrew Cagney <ac131313@redhat.com>
13735
13736 * Makefile.in (SUBDIR_CLI_INITS): Set to SUBDIR_CLI_SRCS.
13737 (SUBDIR_MI_INITS): Set to SUBDIR_MI_SRCS.
13738
13739 2002-02-09 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
13740
13741 * xcoffsolib.c (_initialize_xcoffsolib): Renamed from
13742 _initialize_solib. Fixes name clash with solib.c:_initialize_solib,
13743 now _initialize_xcoffsolib gets called again and overrides the
13744 commands from solib.c in a native configuration.
13745
13746 2002-02-09 Mark Kettenis <kettenis@gnu.org>
13747
13748 * doublest.c (store_typed_floating): Don't try to return a value.
13749 Fixes PR gdb/290.
13750
13751 2002-02-08 Jim Blandy <jimb@redhat.com>
13752
13753 * c-typeprint.c (c_type_print_varspec_suffix): If a function type
13754 is prototyped and has no arguments, print its argument list as
13755 `(void)'.
13756
13757 2002-02-08 Chris Demetriou <cgd@broadcom.com>
13758
13759 * MAINTAINERS (write-after-approval): Add myself.
13760 (paper-trail): I've escaped!
13761
13762 2002-02-08 Christopher Faylor <cgf@redhat.com>
13763
13764 * win32-nat.c (cygwin_pid_to_str): Revert 2002-02-08 change xasprintf
13765 changes.
13766 (_initialize_check_for_gdb_ini): Ditto.
13767
13768 2002-02-08 Martin M. Hunt <hunt@redhat.com>
13769
13770 * win32-nat.c (cygwin_pid_to_str): Fix typo.
13771 xaprintf -> xasprintf.
13772
13773 2002-02-08 Pierre Muller <muller@ics.u-strasbg.fr>
13774
13775 * win32-nat.c: Remove use of printf and sprintf functions.
13776
13777 2002-02-08 Richard Earnshaw <rearnsha@arm.com>
13778
13779 * arm-tdep.c (arm_frame_chain_valid): Make static.
13780 (arm_push_arguments): Likewise.
13781 (arm_gdbarch_init): New function.
13782 (_initialize_arm_tdep): Call it.
13783 * config/arm/tm-arm.h (GDB_MULTI_ARCH): Set to 1.
13784 (TARGET_DOUBLE_FORMAT): Test TARGET_BYTE_ORDER, not target_byte_order.
13785 (FRAME_CHAIN_VALID): Delete.
13786 (arm_frame_chain_valid): Delete declaration.
13787 (PUSH_ARGUMENTS): Delete.
13788 (arm_push_arguments): Delete declaration.
13789 (CALL_DUMMY_P): Delete.
13790
13791 2002-02-08 Andrew Cagney <ac131313@redhat.com>
13792 Corinna Vinschen <vinschen@redhat.com>
13793
13794 * gdbtypes.c (build_gdbtypes): Disable setting a specific float format
13795 on builtin float types.
13796
13797 2002-02-08 Daniel Jacobowitz <drow@mvista.com>
13798
13799 * utils.c: Include <curses.h> before "bfd.h".
13800 * tui/tui-hooks.c: Likewise.
13801 * tui/tui.c: Likewise.
13802 * tui/tuiCommand.c: Likewise.
13803 * tui/tuiData.c: Likewise.
13804 * tui/tuiDataWin.c: Likewise.
13805 * tui/tuiDisassem.c: Likewise.
13806 * tui/tuiGeneralWin.c: Likewise.
13807 * tui/tuiIO.c: Likewise.
13808 * tui/tuiLayout.c: Likewise.
13809 * tui/tuiRegs.c: Likewise.
13810 * tui/tuiSource.c: Likewise.
13811 * tui/tuiSourceWin.c: Likewise.
13812 * tui/tuiStack.c: Likewise.
13813 * tui/tuiWin.c: Likewise.
13814
13815 2002-02-07 Elena Zannoni <ezannoni@redhat.com>
13816
13817 * sh-tdep.c (sh_nofp_frame_init_saved_regs): Extend where[] array
13818 to include space for pseudoregs as well. Update loops accordingly.
13819 (sh_fp_frame_init_saved_regs): Ditto.
13820 (sh_init_extra_frame_info, sh_pop_frame): Split long lines.
13821
13822 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13823
13824 * MAINTAINERS: Andreas Schwab is GNU/Linux m68k maintainer.
13825 Add Richard Earnshaw to Arm maintainers.
13826
13827 2002-02-07 Andrew Cagney <ac131313@redhat.com>
13828
13829 * defs.h (warning_begin): Delete declaration.
13830
13831 * config/powerpc/tm-ppcle-eabi.h (TARGET_BYTE_ORDER_DEFAULT):
13832 Delete macro.
13833
13834 2002-02-07 Michael Snyder <msnyder@redhat.com>
13835
13836 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
13837 Logic bug, remove misplaced else.
13838
13839 2002-02-07 Klee Dienes <klee@apple.com>
13840
13841 * fork-inferior.c (fork_inferior): Add '!' to the list of
13842 characters that need to be quoted when building a string for the
13843 shell. Quote '!' specifically with a backslash, since CSH chokes
13844 when trying to evaluate "str!str".
13845
13846 2002-02-06 Nick Clifton <nickc@cambridge.redhat.com>
13847
13848 * rdi-share/host.h: Only provide a typedef for bool if it is not
13849 defined.
13850
13851 2002-02-04 Michael Snyder <msnyder@redhat.com>
13852
13853 * breakpoint.h (enum bptype): Add new overlay event bp type.
13854 (enable_overlay_breakpoints, disable_overlay_breakpoints): Export.
13855
13856 * breakpoint.c (create_internal_breakpoint): New function.
13857 (internal_breakpoint_number): Moved into create_internal_breakpoint.
13858 (create_longjmp_breakpoint): Use create_internal_breakpoint.
13859 (create_thread_event_breakpoint): Ditto.
13860 (create_solib_event_breakpoint): Ditto.
13861 (create_overlay_event_breakpoint): New function.
13862 (enable_overlay_breakpoints, disable_overlay_breakpoints): New funcs.
13863 (update_breakpoints_after_exec): Delete and re-initialize
13864 overlay event breakpoints after an exec. Add FIXME comment
13865 about longjmp breakpoint.
13866 (print_it_typical): Ignore overlay event breakpoints.
13867 (print_one_breakpoint): Ditto.
13868 (mention): Ditto.
13869 (bpstat_what): Do not stop for overlay event breakpoints.
13870 (delete_breakpoint): Don't delete overlay event breakpoints.
13871 (breakpoint_re_set_one): Delete the overlay event breakpoint.
13872 (breakpoint_re_set): Re-create overlay event breakpoint.
13873
13874 * symfile.c (overlay_auto_command): Enable overlay breakpoints.
13875 (overlay_manual_command): Disable overlay breakpoints.
13876 (overlay_off_command): Disable overlay breakpoints.
13877
13878 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13879
13880 * arm-tdep.c: Include elf-bfd.h and coff/internal.h.
13881 (MSYMBOL_SET_SPECIAL, MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Move defines
13882 to here from config/tm-arm.h.
13883 (coff_sym_is_thumb): Make static.
13884 (arm_elf_make_msymbol_special): New function.
13885 (arm_coff_make_msymbol_special): New function.
13886 * config/arm/tm-arm.h (MSYMBOL_SET_SPECIAL): Delete definition.
13887 (MSYMBOL_IS_SPECIAL, MSYMBOL_SIZE): Likewise.
13888 (coff_sym_is_thumb): Delete declaration.
13889 (arm_elf_make_msymbol_special): Declare.
13890 (arm_coff_make_msymbol_special): Declare.
13891 (ELF_MAKE_MSYMBOL_SPECIAL): Call arm_elf_make_msymbol_special.
13892 (COFF_MAKE_MSYMBOL_SPECIAL): Call arm_coff_make_msymbol_special.
13893
13894 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13895
13896 * arm-tdep.c (arm_software_single_step): ANSIfy function declaration.
13897
13898 2002-02-06 Richard Earnshaw <rearnsha@arm.com>
13899
13900 * gdbarch.sh (PRINT_FLOAT_INFO): Add rule.
13901 * gdbarch.c gdbarch.h: Regenerate.
13902 * arch-utils.c (default_print_float_info): New function.
13903 * arch-utils.h (default_print_float_info): Prototype it.
13904 * infcmd.c (float_info): Call PRINT_FLOAT_INFO.
13905 * doc/gdbint.texinfo (FLOAT_INFO): Mark as deprecated.
13906 (PRINT_FLOAT_INFO): Document it.
13907
13908 * arm-tdep.c (arm_print_float_info): Renamed from arm_float_info.
13909 * config/arm/tm-arm.h (FLOAT_INFO): Delete.
13910 (PRINT_FLOAT_INFO): Define.
13911
13912 2002-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
13913
13914 * win32-nat.c (_initialize_check_for_gdb_ini):
13915 Add typecast to sprintf argument to suppress a warning.
13916
13917 2002-02-05 Pierre Muller <muller@ics.u-strasbg.fr>
13918
13919 * win32-nat.c (last_sig): Changed type of variable to target_signal,
13920 to allow easier handling of pass state.
13921 (DEBUG_EXCEPTION_SIMPLE): New macro, used in handle_exception,
13922 that gives exception name and address.
13923 (handle_exception): Use DEBUG_EXCEPTION_SIMPLE macro
13924 and set last_sig value to ourstatus->value.sig. Some missing
13925 exceptions added.
13926 (child_continue): Correctly report continue_status.
13927 (get_child_debug_event,do_initial_child_stuff): Set last_sig to
13928 TARGET_SIGNAL_0 (new default value).
13929 (child_resume): consider sig argument passed to decide if
13930 the exception should be passed to debuggee or not.
13931
13932 2002-02-05 Michael Snyder <msnyder@redhat.com>
13933
13934 * regcache.c (fetch_register): Call target_fetch_register
13935 only if we don't call FETCH_PSEUDO_REGISTER.
13936 (store_register): Call target_store_register only if we
13937 don't call STORE_PSEUDO_REGISTER.
13938
13939 2002-02-05 Elena Zannoni <ezannoni@redhat.com>
13940
13941 * gdbarch.sh: Add definitions for COFF_MAKEMSYMBOL_SPECIAL and
13942 ELF_MAKE_MSYMBOL_SPECIAL.
13943 * gdbarch.c, gdbarch.h: Regenerate.
13944 * arch-utils.c (default_make_msymbol_special): New function.
13945 * arch-utils.h (default_make_msymbol_special): Export.
13946 * elfread.c (elf_symtab_read): Compile use of
13947 ELF_MAKE_MSYMBOL_SPECIAL unconditionally because it is now
13948 multiarched.
13949 * coffread.c (coff_symtab_read): Ditto, for
13950 COFF_MAKE_MSYMBOL_SPECIAL.
13951
13952 2002-02-05 Jim Blandy <jimb@redhat.com>
13953
13954 * solib-svr4.c (svr4_truncate_ptr): New function.
13955 (svr4_relocate_section_addresses): Do the address arithmetic with
13956 the appropriate truncation for target addresses, even when
13957 CORE_ADDR is larger than a target address.
13958
13959 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13960
13961 * gdbserver/linux-low.c (mywait): Cast second argument of waitpid
13962 to (int *).
13963
13964 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13965
13966 * gdbserver/linux-low.c (kill_inferior): Remove commented out
13967 code.
13968
13969 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13970
13971 * c-valprint.c (c_val_print): Handle TYPE_CODE_COMPLEX.
13972
13973 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13974
13975 * gdbserver/linux-low.c: Remove unused include files.
13976
13977 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13978
13979 * gdbserver/linux-low.c: Define PTRACE_ARG3_TYPE.
13980 (read_inferior_memory): Use it.
13981 (write_inferior_memory): Likewise.
13982
13983 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13984
13985 * gdbserver/linux-low.c (create_inferior): Call strerror instead of
13986 grubbing through sys_errlist.
13987
13988 2002-02-05 Daniel Jacobowitz <drow@mvista.com>
13989
13990 * gdbserver/linux-low.c: New file, copied exactly from low-linux.c.
13991
13992 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
13993 * win32-nat.c (handle_exception): Handle Ctrl-Break exception.
13994
13995 2002-02-04 Andrew Cagney <ac131313@redhat.com>
13996
13997 * cli/cli-decode.c (do_cfunc, set_cmd_cfunc): New functions.
13998 (do_sfunc, set_cmd_sfunc): New functions.
13999
14000 * command.h (struct cmd_list_element): Add field func.
14001 * cli/cli-decode.h (struct cmd_list_element): Ditto.
14002 * command.h (set_cmd_sfunc, set_cmd_cfunc): Declare.
14003 * cli/cli-decode.h: Ditto.
14004
14005 * cli/cli-decode.c (help_cmd): Test for func not cfunc/sfunc.
14006 (help_all, help_cmd_list): Ditto.
14007 (find_cmd, complete_on_cmdlist): Ditto.
14008 * top.c (execute_command): Ditto.
14009
14010 * cli/cli-setshow.c (do_setshow_command): Call func instead of
14011 function.sfunc.
14012
14013 * infcmd.c (notice_args_read): Fix function signature.
14014
14015 * cli/cli-cmds.c (init_cli_cmds): Use set_cmd_sfunc.
14016 * cli/cli-decode.c (add_set_cmd): Ditto.
14017 * utils.c (initialize_utils): Ditto.
14018 * maint.c (_initialize_maint_cmds): Ditto.
14019 * infrun.c (_initialize_infrun): Ditto.
14020 * demangle.c (_initialize_demangler): Ditto.
14021 * remote.c (add_packet_config_cmd): Ditto.
14022 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14023 * cris-tdep.c (_initialize_cris_tdep): Ditto.
14024 * proc-api.c (_initialize_proc_api): Ditto.
14025 * kod.c (_initialize_kod): Ditto.
14026 * valprint.c (_initialize_valprint): Ditto.
14027 * top.c (init_main): Ditto.
14028 * infcmd.c (_initialize_infcmd): Ditto.
14029 * corefile.c (_initialize_core): Ditto.
14030 * arm-tdep.c (_initialize_arm_tdep): Ditto.
14031 * arch-utils.c (initialize_current_architecture): Ditto.
14032 (_initialize_gdbarch_utils): Ditto.
14033 * alpha-tdep.c (_initialize_alpha_tdep): Ditto.
14034
14035 * cli/cli-decode.c (add_cmd): Use set_cmd_cfunc.
14036 * wince.c (_initialize_inftarg): Ditto.
14037 * symfile.c (_initialize_symfile): Ditto.
14038 * mips-tdep.c (_initialize_mips_tdep): Ditto.
14039 * language.c (_initialize_language): Ditto.
14040 * arc-tdep.c (_initialize_arc_tdep): Ditto.
14041
14042 2002-02-04 Michael Snyder <msnyder@redhat.com>
14043
14044 * memattr.c (_initialize_mem): Elaborate the help for 'mem' command.
14045
14046 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14047
14048 * gdbserver/Makefile.in: Add regformats directory to INCLUDE_CFLAGS.
14049 Add rules for building the register data files.
14050
14051 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14052
14053 * regformats/regdat.sh: Add braces to the definition of
14054 expedite_regs_${arch}.
14055
14056 2002-02-04 Daniel Jacobowitz <drow@mvista.com>
14057
14058 * regformats/regdef.h (struct reg): Add comment describing the
14059 requirements for offset and size fields.
14060
14061 2002-02-04 Andreas Schwab <schwab@suse.de>
14062
14063 * config/ia64/linux.mh: Don't set NAT_CLIBS and REGEX.
14064 * config/ia64/linux.mt: Don't set GDBSERVER_LIBS.
14065
14066 2002-02-04 Richard Earnshaw <rearnsha@arm.com>
14067
14068 * gdbarch.sh (copyright): Update years in generated header.
14069 (SMASH_TEXT_ADDRESS): Add rule.
14070 * gdbarch.h, gdbarch.c: Re-generate.
14071 * coffread.c: Multi-arch uses of SMASH_TEXT_ADDRESS.
14072 * dbxread.c: Likewise.
14073 * dwarfread.c: Likewise.
14074 * elfread.c: Likewise.
14075 * somread.c: Likewise.
14076
14077 * arm-tdep.c (arm_smash_text_address): New function.
14078 * config/arm/tm-arm.h (SMASH_TEXT_ADDRESS): Define in terms of above.
14079
14080 2002-02-04 Pierre Muller <muller@ics.u-strasbg.fr>
14081
14082 Add support for hardware watchpoints on win32 native.
14083 * win32-nat.c (CONTEXT_DEBUG_DR macro): Add use of
14084 CONTEXT_DEBUG_REGISTERS.
14085 (dr variable): New variable. Static array containing a local copy
14086 of debug registers.
14087 (debug_registers_changed): New variable. Reflects when debug registers
14088 are changed and need to be written to inferior.
14089 (debug_registers_used): New variable. Reflects when any debug register
14090 was set, used when new threads are created.
14091 (cygwin_set_dr, cygwin_set_dr7, cygwin_get_dr6): New functions used by
14092 i386-nat code.
14093 (thread_rec): Set dr array if id is the thread of current_event .
14094 (child_continue, child_resume): Change the debug registers for all
14095 threads if debug_registers_changed.
14096 (child_add_thread): Change the debug registers if debug_registers_used.
14097 * config/i386/cygwin.mh: Add use of i386-nat.o file.
14098 Link nm.h to new nm-cygwin.h file.
14099 + config/i386/nm-cygwin.h: New file. Contains the macros used for use
14100 of hardware registers.
14101
14102 2002-02-03 Andrew Cagney <ac131313@redhat.com>
14103
14104 * valprint.c (print_floating): Allow non TYPE_CODE_FLT types.
14105 Restore behavour broken by 2002-01-20 Andrew Cagney
14106 <ac131313@redhat.com> IEEE_FLOAT removal.
14107
14108 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14109
14110 * c-valprint.c (c_val_print): Pass a proper valaddr to
14111 cp_print_class_method.
14112 * valops.c (search_struct_method): If there is only one method
14113 and args is NULL, return that method.
14114
14115 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14116
14117 * gdbtypes.c (init_simd_type): Use TYPE_TAG_NAME instead of
14118 accessing tag_name directly.
14119
14120 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14121
14122 * ax-gdb.c (find_field): Use TYPE_TAG_NAME instead
14123 of accessing tag_name directly.
14124
14125 2002-02-03 Daniel Jacobowitz <drow@mvista.com>
14126
14127 PR gdb/280
14128 * gdbtypes.c (replace_type): New function.
14129 * gdbtypes.h (replace_type): Add prototype.
14130 * stabsread.c (read_type): Use replace_type.
14131
14132 2002-02-03 Richard Earnshaw <rearnsha@arm.com>
14133
14134 * Makefile.in (memattr.o): Add missing dependencies rule.
14135
14136 2002-02-03 Peter Schauer <pes@regent.e-technik.tu-muenchen.de>
14137
14138 * breakpoint.c (break_at_finish_command): Really export.
14139 (break_at_finish_at_depth_command): Ditto.
14140 (tbreak_at_finish_command): Ditto.
14141 * hppa-tdep.c: Include completer.h.
14142 * Makefile.in (hppa-tdep.o): Add dependency on $(completer_h).
14143 (COMMON_OBS): Remove duplicate ui-file.o, frame.o, doublest.o.
14144
14145 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14146
14147 * utils.c (do_write): New function.
14148 (error_stream): Rewrite combining the code from error_begin and
14149 verror.
14150 (verror): Rewrite using error_stream.
14151 (error_begin): Delete function.
14152
14153 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14154
14155 * utils.c (error_begin): Make static.
14156 * defs.h (error_begin): Delete declaration.
14157
14158 * linespec.c (cplusplus_error): Replace cplusplus_hint.
14159 (decode_line_1): Use cplusplus_error instead of error_begin,
14160 cplusplus_hint and return_to_top_level.
14161 * coffread.c (coff_symfile_read): Use error instead of error_begin
14162 and return_to_top_level.
14163 * infrun.c (default_skip_permanent_breakpoint): Ditto.
14164
14165 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14166
14167 * language.h (type_error, range_error): Make string parameter
14168 constant.
14169 * language.c (warning_pre_print): Delete extern declaration.
14170 * dwarfread.c (warning_pre_print): Ditto.
14171 * language.c (type_error, range_error): Rewrite to use verror and
14172 vwarning instead of warning_begin.
14173
14174 2002-02-01 Michael Snyder <msnyder@redhat.com>
14175
14176 * breakpoint.c (breakpoint_re_set): Delete ancient #if 0 code.
14177 (set_ignore_count): Move misplaced comment back where it belongs.
14178
14179 2002-02-01 Andrew Cagney <ac131313@redhat.com>
14180
14181 * command.h (NO_FUNCTION): Delete macro.
14182 * cli/cli-decode.h (NO_FUNCTION): Ditto.
14183 * top.c (execute_command): Replace NO_FUNCTION with NULL.
14184 * tracepoint.c (_initialize_tracepoint): Ditto.
14185 * cli/cli-decode.c (add_set_cmd): Ditto.
14186 * cli/cli-cmds.c (init_cli_cmds): Ditto.
14187
14188 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14189
14190 * gnu-v3-abi.c (gnuv3_virtual_fn_field): Update comments.
14191 Update ``this'' pointer when calling virtual functions.
14192
14193 2002-02-01 Michael Snyder <msnyder@redhat.com>
14194
14195 * breakpoint.c (create_temp_exception_breakpoint): Delete.
14196 * hppa-tdep.c: Deprecate xbreak, txbreak and bx commands.
14197
14198 2002-02-01 Daniel Jacobowitz <drow@mvista.com>
14199
14200 * regformats/reg-arm.dat: New file.
14201 * regformats/reg-i386.dat: New file.
14202 * regformats/reg-ia64.dat: New file.
14203 * regformats/reg-m68k.dat: New file.
14204 * regformats/reg-mips.dat: New file.
14205 * regformats/reg-ppc.dat: New file.
14206 * regformats/reg-sh.dat: New file.
14207 * regformats/regdef.h: New file.
14208 * regformats/regdat.sh: New file.
14209
14210 2002-02-01 Richard Earnshaw <reanrsha@arm.com>
14211
14212 * arm-tdep.c (arm_frameless_function_invocation): Add some comments.
14213 (arm_frame_args_address, arm_frame_locals_address): New functions.
14214 (arm_frame_num_args): New function.
14215 * config/tm-arm.h (FRAME_ARGS_ADDRESS): Call arm_frame_args_address.
14216 (FRAME_LOCALS_ADDRESS): Call arm_frame_locals_address.
14217 (FRMA_NUM_ARGS): Call arm_frame_num_args.
14218
14219 2002-01-31 Michael Snyder <msnyder@redhat.com>
14220
14221 * breakpoint.c (break_at_finish_command): Export.
14222 (break_at_finish_at_depth_command): Export.
14223 (tbreak_at_finish_command): Export.
14224 (_initialize_breakpoint): Delete "xbreak" and "txbreak" commands.
14225 * hppa-tdep.c (_initialize_hppa_tdep): Add "xbreak" and
14226 "txbreak" commands, which are HPPA specific.
14227
14228 * printcmd.c (disassemble_command): Remove an ancient
14229 artifact of an old merge.
14230
14231 * symfile.h (enum overlay_debugging_state):
14232 Define enum constant values for overlay mode.
14233 * symfile.c (overlay_debugging): Use enums instead of literals.
14234 (overlay_is_mapped, overlay_auto_command,
14235 overlay_manual_command): Ditto.
14236
14237 * breakpoint.c (insert_breakpoints, remove_breakpoint,
14238 breakpoint_here_p, breakpoint_inserted_here_p,
14239 breakpoint_thread_match, bpstat_stop_status,
14240 describe_other_breakpoints, check_duplicates, clear_command):
14241 Coding standard fixes.
14242
14243 * target.c (target_xfer_memory): Add spaces, coding standard.
14244 (do_xfer_memory): Add missing line to trust-readonly
14245 code: check bfd SEC_READONLY flag for section.
14246
14247 2002-01-31 Andrew Cagney <ac131313@redhat.com>
14248
14249 * PROBLEMS: Fix typo, 5.1->5.1.1.
14250
14251 2002-01-30 Daniel Jacobowitz <drow@mvista.com>
14252
14253 * symtab.c (find_pc_sect_psymtab): Do not search psymtabs for
14254 data symbols, since we search based on textlow and texthigh.
14255 (find_pc_sect_symtab): Likewise.
14256
14257 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14258
14259 * defs.h (vwarning): Declare.
14260 * utils.c (vwarning): New function.
14261 (warning): Call vwarning.
14262 (warning_begin): Delete function.
14263
14264 * rs6000-nat.c (vmap_ldinfo): Use the function warning to print
14265 the warning message.
14266 * d10v-tdep.c (d10v_address_to_pointer) [0]: Delete call to
14267 warning_begin.
14268
14269 2002-01-30 Michael Snyder <msnyder@redhat.com>
14270
14271 * NEWS: Mention "set trust-readonly-sections" command.
14272 Mention generate-core-file command.
14273
14274 2002-01-15 Michael Snyder <msnyder@redhat.com>
14275
14276 * target.c: New command, "set trust-readonly-sections on".
14277 (do_xfer_memory): Honor the suggestion to trust readonly sections
14278 by reading them from the object file instead of from the target.
14279 (initialize_targets): Register command "set trust-readonly-sections".
14280
14281 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14282
14283 * parse.c (target_map_name_to_register): Simplify, search regs and
14284 pseudo-regs using a single loop.
14285
14286 2002-01-30 Andrew Cagney <ac131313@redhat.com>
14287
14288 * PROBLEMS: Note that the i386 fix was missing from 5.1.1.
14289
14290 2002-01-15 Rodney Brown <rbrown64@csc.com.au>
14291
14292 * config/i386/tm-i386v4.h: Define HAVE_I387_REGS.
14293 * config/i386/i386v42mp.mh: Add i387-nat.o .
14294 * i386v4-nat.c: Include i387-nat.h.
14295 (supply_fpregset): Use i387_supply_fsave.
14296 (fill_fpregset): Use i387_fill_fsave.
14297
14298 2002-01-30 Richard Earnshaw <rearnsha@arm.com>
14299
14300 * arm-tdep.c (arm_call_dummy_words): Define.
14301 * arm-linux-tdep.c (arm_linux_call_dummy_words): Define.
14302 * config/arm/tm-arm.h (CALL_DUMMY_P): Define.
14303 (CALL_DUMMY_WORDS): Define.
14304 (arm_call_dummy_words): Declare.
14305 * config/arm/tm-linux.h (CALL_DUMMY_WORDS): Define.
14306 (arm_linux_call_dummy_words): Declare.
14307
14308 2002-01-30 Andreas Schwab <schwab@suse.de>
14309
14310 * m68klinux-nat.c: Fix last change to use regcache_collect
14311 instead of referencing registers[] directly.
14312
14313 2002-01-29 Andrew Cagney <ac131313@redhat.com>
14314
14315 * parse.c (target_map_name_to_register): Delete code wrapped in
14316 #ifdef REGISTER_NAME_ALIAS_HOOK.
14317
14318 2002-01-28 Michael Snyder <msnyder@redhat.com>
14319
14320 * regcache.c (legacy_read_register_gen): Need to be able to
14321 read pseudo-register as well as real register.
14322 (legacy_write_register_gen): Ditto.
14323
14324 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14325
14326 * config/mips/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14327 * config/sparc/tm-sparc.h (TARGET_BYTE_ORDER): Delete.
14328 * config/ns32k/tm-umax.h (TARGET_BYTE_ORDER): Delete.
14329 * config/ia64/tm-ia64.h (TARGET_BYTE_ORDER): Delete.
14330 * config/m32r/tm-m32r.h (TARGET_BYTE_ORDER): Delete.
14331 * config/m68k/tm-m68k.h (TARGET_BYTE_ORDER): Delete.
14332 * config/m88k/tm-m88k.h (TARGET_BYTE_ORDER): Delete.
14333 * config/mn10200/tm-mn10200.h (TARGET_BYTE_ORDER): Delete.
14334 * config/pa/tm-hppa.h (TARGET_BYTE_ORDER): Delete.
14335 * config/sh/tm-wince.h (TARGET_BYTE_ORDER): Delete.
14336 * config/v850/tm-v850.h (TARGET_BYTE_ORDER): Delete.
14337 * config/vax/tm-vax.h (TARGET_BYTE_ORDER): Delete.
14338 * config/z8k/tm-z8k.h (TARGET_BYTE_ORDER): Delete.
14339 * config/i960/tm-i960.h (TARGET_BYTE_ORDER): Delete.
14340 * config/i386/tm-i386.h (TARGET_BYTE_ORDER): Delete.
14341 * config/h8500/tm-h8500.h (TARGET_BYTE_ORDER): Delete.
14342 * config/h8300/tm-h8300.h (TARGET_BYTE_ORDER): Delete.
14343 * config/fr30/tm-fr30.h (TARGET_BYTE_ORDER): Delete.
14344 * config/d30v/tm-d30v.h (TARGET_BYTE_ORDER): Delete.
14345 * config/alpha/tm-alpha.h (TARGET_BYTE_ORDER): Delete.
14346
14347 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14348
14349 * arch-utils.c (TARGET_BYTE_ORDER_DEFAULT): Delete macro.
14350 (target_byte_order): Initialize to BFD_ENDIAN_BIG.
14351 (initialize_current_architecture): Update target_byte_order using
14352 information from BFD.
14353 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_DEFAULT):
14354 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_DEFAULT): Delete.
14355
14356 2002-01-28 Andrew Cagney <ac131313@redhat.com>
14357
14358 * config/vax/tm-vax.h (INVALID_FLOAT): Move macro from here...
14359 * vax-tdep.c (INVALID_FLOAT): To here. Document why it is broken.
14360
14361 * rs6000-tdep.c (rs6000_do_registers_info): Delete code wrapped in
14362 #ifdef INVALID_FLOAT.
14363 * infcmd.c (do_registers_info): Ditto.
14364 * values.c (unpack_double): Ditto. Add comment.
14365
14366 * config/ns32k/tm-umax.h (INVALID_FLOAT): Delete macro that was
14367 already commented out.
14368
14369 2002-01-26 Andreas Schwab <schwab@suse.de>
14370
14371 * config/m68k/nm-linux.h (FETCH_INFERIOR_REGISTERS): Define.
14372 * m68klinux-nat.c: Update ptrace interface for fetching/storing
14373 registers and add support for PTRACE_GETREGS.
14374
14375 2002-01-24 Andrew Cagney <ac131313@redhat.com>
14376
14377 GDB 5.1.1 released from 5.1 branch.
14378 * NEWS: Add 5.1.1 news.
14379 * README: Sync with 5.1 branch.
14380
14381 2002-01-23 Fred Fish <fnf@redhat.com>
14382
14383 * mdebugread.c (parse_partial_symbols): Only copy stabstring1 to
14384 stabstring on initial malloc. Reallocing will copy it for us,
14385 if necessary.
14386
14387 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14388
14389 * Makefile.in (hpread_h): Delete.
14390 (HFILES_NO_SRCDIR): Remove hpread.h.
14391 (ALLDEPFILES): Remove hp-psymtab-read.c and hp-symtab-read.c.
14392 (hpread.o): Update dependencies.
14393 (hp-psymtab-read.o, hp-symtab-read.o): Remove.
14394
14395 * hp-psymtab-read.c: Remove file.
14396 * hp-symtab-read.c: Remove file.
14397 * hpread.h: Remove file.
14398
14399 * hpread.c: Merge all contents of hp-psymtab-read.c,
14400 hp-symtab-read.c and hpread.h into this file, as it was prior to
14401 January 1999.
14402
14403 * config/pa/hpux11w.mh, config/pa/hpux11.mh,
14404 config/pa/hpux1020.mh, config/pa/hppaosf.mh,
14405 config/pa/hppahpux.mh, config/pa/hppabsd.mh (NATDEPFILES):
14406 Remove hp-psymtab-read.o and hp-symtab-read.o, add hpread.o.
14407
14408 2002-01-23 Elena Zannoni <ezannoni@redhat.com>
14409
14410 * ppc-linux-nat.c (ppc_register_u_addr, supply_gregset,
14411 fill_gregset): Call gdbarch_tdep() just once, assign result to
14412 variable and use that, instead of calling the function several
14413 times.
14414
14415 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
14416
14417 * configure.host: Accept sparcv9 as alias for sparc64.
14418 * configure.tgt: Likewise.
14419
14420 2002-01-22 Kevin Buettner <kevinb@redhat.com>
14421
14422 * solib-aix5.c (build_so_list_from_mapfile)
14423 (aix5_relocate_main_executable): Fix xcalloc() calls so order of
14424 arguments is not reversed.
14425 * solib-sunos.c (sunos_relocate_main_executable): Likewise.
14426 * solib-svr4.c (svr4_relocate_main_executable): Likewise.
14427
14428 2002-01-22 Elena Zannoni <ezannoni@redhat.com>
14429
14430 * sh-tdep.c (sh_pseudo_register_read): New function. Renamed and
14431 modified version of obsolete sh_fetch_pseudo_register.
14432 (sh_fetch_pseudo_register): Rename to sh_pseudo_register_read.
14433 (sh4_register_read): New function.
14434 (sh_pseudo_register_write): New function. Renamed and modified
14435 version of obsolete sh_store_pseudo_register.
14436 (sh_store_pseudo_register): Rename to sh_pseudo_register_write.
14437 (sh4_register_write): New function.
14438 (sh_gdbarch_init): Remove setting of gdbarch function
14439 fetch_pseudo_register and store_pseudo_register. Remove setting of
14440 register_convert_to_raw, register_convert_to_virtual,
14441 register_convertible.
14442 (sh_sh4_register_convertible): Delete. No longer needed. All is
14443 taken care by architecture specific functions
14444 register_read/register_write.
14445 (sh_sh4_register_convert_to_virtual): Make static.
14446 (sh_sh4_register_convert_to_raw): Ditto.
14447
14448 2002-01-22 Andrew Cagney <ac131313@redhat.com>
14449
14450 * doublest.c (floatformat_is_negative): Assert FMT is non NULL.
14451 (floatformat_is_nan, floatformat_mantissa): Ditto.
14452
14453 * gdbtypes.c (_initialize_gdbtypes): Initialize TYPE_FLOATFORMAT
14454 for builtin_type_ieee_single_little, builtin_type_ieee_double_big,
14455 builtin_type_ieee_double_little,
14456 builtin_type_ieee_double_littlebyte_bigword,
14457 builtin_type_m68881_ext, builtin_type_i960_ext,
14458 builtin_type_m88110_ext, builtin_type_m88110_harris_ext,
14459 builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword,
14460 builtin_type_ia64_spill_big, builtin_type_ia64_spill_little and
14461 builtin_type_ia64_quad_big, builtin_type_ia64_quad_little.
14462
14463 2002-01-22 Corinna Vinschen <vinschen@redhat.com>
14464
14465 * xstormy16-tdep.c (xstormy16_scan_prologue): Add frameless
14466 parameter. Set frameless flag if it exists and depended of
14467 whether the scanned function is frameless or not.
14468 (xstormy16_skip_prologue): If function is frameless, return
14469 result of xstormy16_scan_prologue().
14470 (xstormy16_frame_init_saved_regs): Adjust xstormy16_scan_prologue()
14471 call.
14472
14473 2002-01-21 Elena Zannoni <ezannoni@redhat.com>
14474
14475 * sh-tdep.c (sh_fp_frame_init_saved_regs, sh_push_arguments,
14476 sh_generic_show_regs, sh3_show_regs, sh3e_show_regs,
14477 sh3_dsp_show_regs, sh4_show_regs, sh_dsp_show_regs,
14478 sh_sh4_register_byte, sh_sh4_register_raw_size,
14479 sh_sh3e_register_virtual_type, sh_sh4_register_virtual_type,
14480 sh_sh4_register_convertible, sh_sh4_register_convert_to_virtual,
14481 sh_sh4_register_convert_to_raw, sh_fetch_pseudo_register,
14482 sh_store_pseudo_register, sh_do_pseudo_register): Call
14483 gdbarch_tdep() just once, assign result to variable and use that,
14484 instead of calling the function several times.
14485
14486 2002-01-20 Mark Kettenis <kettenis@gnu.org>
14487
14488 * go32-nat.c (fetch_register): Use FP_REGNUM_P and FPC_REGNUM_P
14489 macros instead of LAST_FPU_CTRL_REGNUM.
14490 (store_register): Likewise.
14491
14492 2002-01-21 Jim Blandy <jimb@redhat.com>
14493
14494 * infcmd.c (run_command): Check that the `exec' target layer's BFD
14495 is up-to-date before running the program, not just when a program
14496 exits.
14497
14498 2002-01-21 Fred Fish <fnf@redhat.com>
14499
14500 * arm-tdep.c (thumb_skip_prologue): Quit scanning prologue
14501 when we have found all instructions we are looking for.
14502
14503 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14504
14505 * arm-tdep.c (arm_register_name): New function.
14506 (arm_registers_names): Make static.
14507 * config/arm/tm-arm.h (arm_register_names): Delete declaration.
14508 (arm_register_name): Declare.
14509 (REGISTER_NAME): Use it.
14510
14511 2002-01-21 Richard Earnshaw <rearnsha@arm.com>
14512 Kevin Buettner <kevinb@redhat.com>
14513
14514 Convert arm targets to new FRAME interface.
14515 * arm-tdep.c (struct frame_extra_info): Remove fsr.
14516 (arm_frame_find_save_regs): Delete.
14517 (arm_frame_init_saved_regs): New.
14518 (arm_init_extra_frame_info): Alloacte saved_regs as required.
14519 Allocate extra_info as required. Convert all uses of fsr.regs
14520 to use saved_regs, similarly all uses of EXTRA_FRAME_INFO fields
14521 to use extra_info.
14522 (thumb_scan_prologue, arm_scan_prologue, arm_find_callers_reg)
14523 (arm_frame_chain, arm_frame_saved_pc, arm_pop_frame): Likewise.
14524 (check_prologue_cache, save_prologue_cache): Likewise.
14525 (_initialize_arm_tdep): Ensure prologue_cache is correctly set up.
14526 * config/arm/tm-arm.h (EXTRA_FRAME_INFO): Delete.
14527 (FRAME_FIND_SAVED_REGS): Delete.
14528 (arm_frame_find_saved_regs): Delete prototype.
14529 (arm_frame_init_saved_regs): New prototype.
14530 (FRAME_INIT_SAVED_REGS): Define.
14531
14532 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14533
14534 * config/arc/tm-arc.h (IEEE_FLOAT): Delete.
14535
14536 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14537
14538 From Jeff Law <law@redhat.com>:
14539 * infttrace.c: Include <sys/pstat.h>.
14540 (child_pid_to_exec_file): Revamp. Use pstat call to get the
14541 exec file if the ttrace equivalent fails.
14542
14543 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14544
14545 * rdi-share/devsw.c (openLogFile): Delete unused ``struct tm lt''.
14546 (closeLogFile): Ditto.
14547
14548 2002-01-20 Michael Chastain <mec@shout.net>
14549
14550 * top.c (print_gdb_version): Bump copyright year to 2002.
14551
14552 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14553
14554 * MAINTAINERS (Blanket Write Privs): Add Kevin Buettner, Elena
14555 Zannoni and Eli Zaretskii.
14556
14557 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14558
14559 * buildsym.c: Update copyright years.
14560 * c-typeprint.c: Likewise.
14561 * dwarf2read.c: Likewise.
14562 * f-typeprint.c: Likewise.
14563 * gdbtypes.c: Likewise.
14564 * gdbtypes.h: Likewise.
14565 * hp-symtab-read.c: Likewise.
14566 * hpread.c: Likewise.
14567 * mdebugread.c: Likewise.
14568 * p-typeprint.c: Likewise.
14569
14570 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14571
14572 * remote-sim.c (gdbsim_open): Simplify code testing the macro
14573 TARGET_BYTE_ORDER_SELECTABLE_P. Assume the target is always
14574 byte-order selectable.
14575 * sparc-tdep.c (sparc_target_architecture_hook): Ditto.
14576 * arch-utils.c: Ditto.
14577 (set_endian): Ditto.
14578 (set_endian_from_file): Ditto.
14579 * gdbserver/low-sim.c (create_inferior): Ditto.
14580 * gdbarch.sh: Ditto.
14581 * gdbarch.h: Re-generate.
14582 * config/powerpc/tm-ppc-eabi.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14583 * config/sparc/tm-sparclite.h (TARGET_BYTE_ORDER_SELECTABLE):
14584 * config/sparc/tm-sparclet.h (TARGET_BYTE_ORDER_SELECTABLE):
14585 * config/mcore/tm-mcore.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14586 * config/arm/tm-wince.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14587 * config/arm/tm-linux.h (TARGET_BYTE_ORDER_SELECTABLE_P):
14588 * config/arc/tm-arc.h (TARGET_BYTE_ORDER_SELECTABLE):
14589 * config/arm/tm-arm.h (TARGET_BYTE_ORDER_SELECTABLE_P): Delete
14590 macro definition.
14591 * config/mips/tm-wince.h: Remove #undef of macro
14592 TARGET_BYTE_ORDER_SELECTABLE.
14593 * config/sh/tm-wince.h: Ditto.
14594
14595 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14596
14597 * gdbtypes.h (struct cplus_struct_type): Add is_artificial to
14598 member function fields. Add accessor macro
14599 TYPE_FN_FIELD_ARTIFICIAL.
14600 * dwarf2read.c (dwarf2_add_member_fn): Check for artificial methods.
14601 * c-typeprint.c (c_type_print_base): Skip artificial member
14602 functions.
14603
14604 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14605
14606 * f-typeprint.c: Delete unused function f_type_print_args.
14607 * p-typeprint.c: Delete unused function pascal_type_print_args.
14608
14609 2002-01-20 Daniel Jacobowitz <drow@mvista.com>
14610
14611 * gdbtypes.h (struct type): Fix whitespace. Remove obsolete
14612 comment. Add ``artificial'' to ``union field_location''.
14613
14614 * dwarf2read.c: Remove ad-hoc TYPE_FIELD_ARTIFICIAL.
14615
14616 * buildsym.c (finish_block): Initialize TYPE_FIELD_ARTIFICIAL to 0.
14617 * mdebugread.c (parse_symbol): Likewise.
14618 * stabsread.c (define_symbol): Likewise.
14619 * hp-symtab-read.c (hpread_function_type): Likewise, instead of
14620 initializing TYPE_FIELD_BITPOS to n (obsolete).
14621 (hpread_doc_function_type): Likewise.
14622 * hpread.c (hpread_function_type): Likewise.
14623
14624 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14625
14626 * configure.in (host_makefile_frag): Only require a host makefile
14627 fragment when a native build.
14628 * configure: Re-generate.
14629
14630 2002-01-20 Andrew Cagney <ac131313@redhat.com>
14631
14632 * doublest.h (floatformat_from_type): Declare.
14633 * doublest.c (floatformat_from_type): New function.
14634 (convert_typed_floating): Use.
14635
14636 * valprint.c (print_floating): Replace checks for IEEE_FLOAT with
14637 call to function floatformat_from_type.
14638
14639 * gdbarch.sh (IEEE_FLOAT): Delete.
14640 * gdbarch.h, gdbarch.c: Re-generate.
14641 * config/i960/tm-i960.h (IEEE_FLOAT): Delete macro.
14642 * config/i386/tm-i386.h (IEEE_FLOAT): Ditto.
14643 * config/z8k/tm-z8k.h (IEEE_FLOAT): Ditto.
14644 * config/sparc/tm-sparc.h (IEEE_FLOAT): Ditto.
14645 * config/pa/tm-hppa.h (IEEE_FLOAT): Ditto.
14646 * config/m88k/tm-m88k.h (IEEE_FLOAT): Ditto.
14647 * config/m68k/tm-m68k.h (IEEE_FLOAT): Ditto.
14648 * config/h8500/tm-h8500.h (IEEE_FLOAT): Ditto.
14649 * config/h8300/tm-h8300.h (IEEE_FLOAT): Ditto.
14650 * config/fr30/tm-fr30.h (IEEE_FLOAT): Ditto.
14651 * config/arm/tm-arm.h (IEEE_FLOAT): Ditto.
14652 * config/alpha/tm-alpha.h (IEEE_FLOAT): Ditto.
14653
14654 * s390-tdep.c (s390_gdbarch_init): Do not set ieee_float.
14655 * x86-64-tdep.c (i386_gdbarch_init): Ditto.
14656 * sparc-tdep.c (sparc_gdbarch_init): Ditto.
14657 * sh-tdep.c (sh_gdbarch_init): Ditto.
14658 * mips-tdep.c (mips_gdbarch_init): Ditto.
14659 * m68hc11-tdep.c (m68hc11_gdbarch_init): Ditto.
14660 * cris-tdep.c (cris_gdbarch_init): Ditto.
14661
14662 2002-01-20 Jiri Smid <smid@suse.cz>
14663
14664 * configure.host, configure.tgt: Support x86-64.
14665 * NEWS: Note new target x86-64.
14666
14667 * config/i386/x86-64linux.mh (NATDEPFILES): x86-64-nat.o removed.
14668 * x86-64-linux-nat.c (x86_64_register_u_addr): New function.
14669 * config/i386/nm-x86-64.h (ATTACH_LWP): Removed.
14670 * Makefile.in (x86-64-tdep.o, x86-64-linux-tdep.o,
14671 x86-64-linux-nat.o): Fix dependencies.
14672
14673 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14674
14675 * utils.c: Remove #ifndef MALLOC_INCOMPATIBLE.
14676 * config/sparc/xm-sun4os4.h (PTRACE_ARG3_TYPE): Move macro ....
14677 * config/sparc/nm-sun4os4.h (PTRACE_ARG3_TYPE): ... to here.
14678 * config/sparc/xm-sun4os4.h: Delete file.
14679 * config/sparc/sun4os4.mh (XM_FILE): Delete makefile variable.
14680
14681 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14682
14683 * config/sparc/sparclynx.mh (XM_FILE): Delete.
14684 * config/rs6000/rs6000lynx.mh (XM_FILE): Delete.
14685 * config/m68k/m68klynx.mh (XM_FILE): Delete.
14686 * config/i386/i386lynx.mh (XM_FILE): Delete.
14687 * config/rs6000/xm-rs6000ly.h: Delete file.
14688 * config/sparc/xm-sparclynx.h: Delete file.
14689 * config/m68k/xm-m68klynx.h: Delete file.
14690 * config/i386/xm-i386lynx.h: Delete file.
14691 * config/xm-lynx.h: Delete file.
14692 * config/djgpp/fnchange.lst: Update.
14693
14694 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14695
14696 * alpha-tdep.c (alpha_register_byte): New function.
14697 (alpha_register_raw_size): Ditto.
14698 (alpha_register_virtual_size): Ditto.
14699 (alpha_skip_prologue_internal): Renamed from
14700 alpha_skip_prologue.
14701 (alpha_skip_prologue): New version that calls
14702 alpha_skip_prologue_internal.
14703 (alpha_in_lenient_prologue): Use alpha_skip_prologue_internal.
14704 * config/alpha/tm-alpha.h (SKIP_PROLOGUE): Remove
14705 second argument from alpha_skip_prologue.
14706 (REGISTER_BYTE): Use alpha_register_byte.
14707 (REGISTER_RAW_SIZE): Use alpha_register_raw_size.
14708 (REGISTER_VIRTUAL_SIZE): Use alpha_register_virtual_size.
14709 (FRAMELESS_FUNCTION_INVOCATION): Use
14710 generic_frameless_function_invocation_not.
14711 (FRAME_NUM_ARGS): Use frame_num_args_unknown.
14712 (COERCE_FLOAT_TO_DOUBLE): Use standard_coerce_float_to_double.
14713
14714 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14715
14716 * config/mips/xm-news-mips.h: Delete file.
14717 * config/mips/news-mips.mh (XM_FILE): Delete makefile variable.
14718
14719 * config/m88k/xm-m88k.h: Delete file.
14720 * config/m88k/xm-dgux.h: Do not include xm-m88k.h.
14721 * config/m88k/xm-delta88v4.h: Ditto.
14722 * config/m88k/xm-delta88.h: Ditto.
14723
14724 * config/alpha/xm-fbsd.h: Delete file.
14725 * config/alpha/fbsd.mh (XM_FILE): Delete makefile variable.
14726
14727 * config/sparc/xm-sparc.h: Delete file.
14728 * Makefile.in (xm-sun4os4.h): Delete dependency.
14729 * config/sparc/xm-sun4sol2.h: Do not include xm-sparc.h.
14730 * config/sparc/xm-sun4os4.h: Ditto.
14731 * config/sparc/xm-linux.h: Ditto.
14732
14733 * config/i386/xm-windows.h: Delete file.
14734
14735 2002-01-19 Andrew Cagney <ac131313@redhat.com>
14736
14737 * utils.c: Include <sys/param.h> for MAXPATHLEN.
14738 (gdb_realpath): Use MAXPATHLEN when PATH_MAX is not defined.
14739
14740 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14741
14742 * alpha-tdep.c (alpha_call_dummy_words): New.
14743 * config/alpha/tm-alpha.h (CALL_DUMMY): Remove.
14744 (CALL_DUMMY_P): Define.
14745 (CALL_DUMMY_WORDS): Define.
14746 (SIZEOF_CALL_DUMMY_WORDS): Define.
14747
14748 2002-01-19 Per Bothner <per@bothner.com>
14749
14750 * gnu-v3-abi.c (gnuv3_rtti_type): Guard that vtable_symbol_name
14751 isn't NULL, which can happen with some gcj-3.x-produced code.
14752
14753 2002-01-19 Jason Thorpe <thorpej@wasabisystems.com>
14754
14755 * alpha-tdep.c (alpha_register_virtual_type): New function.
14756 (alpha_init_frame_pc_first): Ditto.
14757 (alpha_fix_call_dummy): Ditto.
14758 (alpha_store_struct_return): Ditto.
14759 (alpha_extract_struct_value_address): Ditto.
14760 * config/alpha/tm-alpha.h (REGISTER_VIRTUAL_TYPE): Use
14761 alpha_register_virtual_type.
14762 (STORE_STRUCT_RETURN): Use alpha_store_struct_return.
14763 (EXTRACT_STRUCT_VALUE_ADDRESS): Use
14764 alpha_extract_struct_value_address.
14765 (FIX_CALL_DUMMY): Use alpha_fix_call_dummy.
14766 (INIT_FRAME_PC): Use init_frame_pc_noop.
14767 (INIT_FRAME_PC_FIRST): Use alpha_init_frame_pc_first.
14768
14769 2002-01-19 Mark Kettenis <kettenis@gnu.org>
14770
14771 * i386gnu-nat.c: Include "i386-tdep.h".
14772 (fetch_fpregs): Simplify code dealing with uninitialized floating
14773 point states such that it doesn't require FP7_REGNUM.
14774
14775 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14776
14777 * alpha-tdep.c (frame_extra_info): New.
14778 (alpha_find_saved_regs): Make static. Use
14779 frame->extra_info.
14780 (alpha_frame_init_saved_regs): New function.
14781 (alpha_frame_saved_pc): Use frame->extra_info.
14782 (temp_saved_regs): Don't declare as struct frame_saved_regs.
14783 (heuristic_proc_desc): Adjust for temp_saved_regs changes.
14784 (init_extra_frame_info): Rename to...
14785 (alpha_init_extra_frame_info): ...this. Use frame->extra_info.
14786 (alpha_print_extra_frame_info): New function.
14787 (alpha_frame_locals_address): Ditto.
14788 (alpha_frame_args_address): Ditto.
14789 (alpha_pop_frame): Use frame->extra_info.
14790 * config/alpha/tm-alpha.h (FRAME_ARGS_ADDRESS): Use
14791 alpha_frame_args_address.
14792 (FRAME_LOCALS_ADDRESS): Use alpha_frame_locals_address.
14793 (alpha_find_saved_regs): Remove prototype.
14794 (FRAME_INIT_SAVED_REGS): Use alpha_frame_init_saved_regs.
14795 (EXTRA_FRAME_INFO): Remove.
14796 (INIT_EXTRA_FRAME_INFO): Use alpha_init_extra_frame_info.
14797 (PRINT_EXTRA_FRAME_INFO): Use alpha_print_extra_frame_info.
14798
14799 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14800
14801 * alpha-tdep.c (alpha_osf_in_sigtramp): New function.
14802 (alpha_cannot_fetch_register): Ditto.
14803 (alpha_cannot_store_register): Ditto.
14804 (alpha_register_convertible): Ditto.
14805 (alpha_use_struct_convention): Ditto.
14806 * config/alpha/tm-alpha.h: Update copyright years.
14807 (IN_SIGTRAMP): Use alpha_osf_in_sigtramp.
14808 (INNER_THAN): Use core_addr_lessthan.
14809 (CANNOT_FETCH_REGISTER): Use alpha_cannot_fetch_register.
14810 (CANNOT_STORE_REGISTER): Use alpha_cannot_store_register.
14811 (REGISTER_CONVERTIBLE): Use alpha_register_convertible.
14812 (USE_STRUCT_CONVENTION): Use alpha_use_struct_convention.
14813 (FRAME_CHAIN): Remove unnecessary cast.
14814
14815 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14816
14817 * NEWS: Document that testsuite/gdb.hp/gdb.threads-hp/ is
14818 obsolete.
14819
14820 2002-01-18 Andrew Cagney <ac131313@redhat.com>
14821
14822 * infptrace.c: Remove ATTRIBUTE_UNUSED. Update copyright.
14823 * monitor.c, remote-array.c, remote-bug.c: Ditto.
14824 * remote-e7000.c, remote-es.c, remote-mips.c: Ditto.
14825 * remote-nindy.c, remote-os9k.c, remote-rdi.c: Ditto.
14826 * remote-rdp.c, remote-sds.c, remote-sim.c: Ditto.
14827 * remote-st.c, remote-vx.c, remote.c, win32-nat.c: Ditto.
14828 * x86-64-linux-nat.c: Ditto.
14829
14830 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14831
14832 * alpha-tdep.c (alpha_register_name): New function.
14833 * config/alpha/tm-alpha.h (REGISTER_NAMES): Remove.
14834 (REGISTER_NAME): Define.
14835
14836 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14837
14838 * config/nm-nbsd.h (KERNEL_U_ADDR): Remove.
14839
14840 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14841
14842 * alpha-tdep.c: Update copyright years.
14843 (alpha_next_pc): New function.
14844 (alpha_software_single_step): Ditto.
14845 * config/alpha/tm-alpha.h: Add prototype for
14846 alpha_software_single_step.
14847
14848 2002-01-18 Jason Thorpe <thorpej@wasabisystems.com>
14849
14850 * alphabsd-nat.c: Update copyright years.
14851 (fill_gregset): Use regcache_collect.
14852 (fill_fpregset): Likewise.
14853 (fetch_inferior_registers): Only fetch integer registers
14854 if requested to do so.
14855 (store_inferior_registers): Only store integer registers
14856 if requested to do so.
14857
14858 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14859
14860 * config/alpha/alpha-osf3.mh (XDEPFILES): Delete.
14861 * config/alpha/alpha-osf2.mh (XDEPFILES): Delete.
14862 * config/alpha/alpha-osf1.mh (XDEPFILES): Delete.
14863 * config/alpha/alpha-linux.mh (XDEPFILES): Delete.
14864 * config/alpha/fbsd.mh (XDEPFILES): Delete.
14865 * config/arm/linux.mh (XDEPFILES): Delete.
14866 * config/arm/nbsd.mh (XDEPFILES): Delete.
14867 * config/i386/i386dgux.mh (XDEPFILES): Delete.
14868 * config/i386/i386sol2.mh (XDEPFILES): Delete.
14869 * config/i386/i386m3.mh (XDEPFILES): Delete.
14870 (NATDEPFILES): Move i387-tdep.o and core-aout.o to here.
14871 * config/i386/i386gnu.mh (XDEPFILES): Delete.
14872 * config/i386/fbsd.mh (XDEPFILES): Delete.
14873 * config/i386/i386bsd.mh (XDEPFILES): Delete.
14874 * config/i386/i386sco5.mh (XDEPFILES): Delete.
14875 * config/i386/i386v4.mh (XDEPFILES): Delete.
14876 * config/i386/i386v42mp.mh (XDEPFILES): Delete.
14877 * config/i386/i386sco4.mh (XDEPFILES): Delete.
14878 * config/i386/i386aix.mh (XDEPFILES): Delete.
14879 * config/i386/go32.mh (XDEPFILES): Delete.
14880 * config/i386/cygwin.mh (XDEPFILES): Delete.
14881 * config/i386/i386lynx.mh (XDEPFILES): Delete.
14882 * config/i386/i386mach.mh (XDEPFILES): Delete.
14883 * config/i386/i386v32.mh (XDEPFILES): Delete.
14884 * config/i386/linux.mh (XDEPFILES): Delete.
14885 * config/i386/nbsdelf.mh (XDEPFILES): Delete.
14886 * config/i386/ncr3000.mh (XDEPFILES): Delete.
14887 * config/i386/i386mk.mh (NATDEPFILES): Rename XDEPFILES.
14888 * config/i386/i386sco.mh (XDEPFILES): Delete.
14889 * config/i386/i386v.mh (XDEPFILES): Delete.
14890 * config/i386/nbsd.mh (XDEPFILES): Delete.
14891 * config/i386/ptx.mh (NATDEPFILES): Rename XDEPFILES.
14892 * config/i386/ptx4.mh (NATDEPFILES): Rename XDEPFILES.
14893 * config/i386/symmetry.mh (XDEPFILES): Delete.
14894 * config/i386/obsd.mh (XDEPFILES): Delete.
14895 * config/i386/x86-64linux.mh (XDEPFILES): Delete.
14896 * config/ia64/linux.mh (XDEPFILES): Delete.
14897 * config/ia64/aix.mh (XDEPFILES): Delete.
14898 * config/m68k/apollo68b.mh (XDEPFILES): Delete.
14899 * config/m68k/dpx2.mh (XDEPFILES): Delete.
14900 * config/m68k/3b1.mh (NATDEPFILES): Rename XDEPFILES.
14901 * config/m68k/apollo68v.mh (XDEPFILES): Delete.
14902 * config/m68k/hp300bsd.mh (XDEPFILES): Delete.
14903 * config/m68k/linux.mh (XDEPFILES): Delete.
14904 * config/m68k/m68klynx.mh (XDEPFILES): Delete.
14905 * config/m68k/m68kv4.mh (XDEPFILES): Delete.
14906 * config/m68k/nbsd.mh (XDEPFILES): Delete.
14907 * config/m68k/sun2os3.mh (XDEPFILES): Delete.
14908 * config/m68k/sun2os4.mh (XDEPFILES): Delete.
14909 * config/m68k/sun3os3.mh (XDEPFILES): Delete.
14910 * config/m68k/sun3os4.mh (XDEPFILES): Delete.
14911 * config/m88k/delta88.mh (XDEPFILES): Delete.
14912 * config/m88k/delta88v4.mh (XDEPFILES): Delete.
14913 * config/m88k/m88k.mh (XDEPFILES): Delete.
14914 * config/mips/littlemips.mh (NATDEPFILES): Rename XDEPFILES.
14915 * config/mips/linux.mh (XDEPFILES): Delete.
14916 * config/mips/irix6.mh (XDEPFILES): Delete.
14917 * config/mips/irix5.mh (XDEPFILES): Delete.
14918 * config/mips/irix4.mh (XDEPFILES): Delete.
14919 * config/mips/irix3.mh (XDEPFILES): Delete.
14920 * config/mips/decstation.mh (XDEPFILES): Delete.
14921 * config/mips/mipsm3.mh (XDEPFILES): Delete.
14922 (NATDEPFILES): Move core-aout.o to here.
14923 * config/ns32k/nbsd.mh (XDEPFILES): Delete.
14924 * config/pa/hpux1020.mh (XDEPFILES): Delete.
14925 * config/pa/hppabsd.mh (XDEPFILES): Delete.
14926 * config/pa/hppahpux.mh (XDEPFILES): Delete.
14927 * config/pa/hpux11w.mh (XDEPFILES): Delete.
14928 * config/pa/hppaosf.mh (XDEPFILES): Delete.
14929 * config/pa/hpux11.mh (XDEPFILES): Delete.
14930 * config/powerpc/aix.mh (XDEPFILES): Delete.
14931 * config/powerpc/nbsd.mh (XDEPFILES): Delete.
14932 * config/powerpc/linux.mh (XDEPFILES): Delete.
14933 * config/romp/rtbsd.mh: Rename XDEPFILES.
14934 * config/rs6000/rs6000lynx.mh (XDEPFILES): Delete.
14935 * config/rs6000/aix4.mh (XDEPFILES): Delete.
14936 * config/rs6000/rs6000.mh (XDEPFILES): Delete.
14937 * config/s390/s390.mh (XDEPFILES): Delete.
14938 * config/vax/vaxbsd.mh (NATDEPFILES): Rename XDEPFILES.
14939 * config/sparc/sun4sol2.mh (XDEPFILES): Delete.
14940 * config/sparc/sun4os4.mh (XDEPFILES): Delete.
14941 * config/sparc/sparclynx.mh (XDEPFILES): Delete.
14942 * config/sparc/nbsdelf.mh (XDEPFILES): Delete.
14943 * config/sparc/nbsd.mh (XDEPFILES): Delete.
14944 * config/sparc/linux.mh (XDEPFILES): Delete.
14945 * config/vax/vaxult.mh (XDEPFILES): Delete.
14946 * config/vax/vaxult2.mh (XDEPFILES): Delete.
14947 * Makefile.in (DEPFILES): Remove XDEPFILES.
14948
14949 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14950
14951 * utils.c (internal_verror): Fix comments, default is yes not no.
14952 Update queries to match. Default to quit and dump core.
14953
14954 2002-01-17 Andrew Cagney <ac131313@redhat.com>
14955
14956 * breakpoint.c: Update assuming #if UI_OUT is always true. Update
14957 copyright.
14958 * defs.h, event-top.c, gdbcmd.h: Ditto.
14959 * infcmd.c, infrun.c, main.c, printcmd.c, remote.c: Ditto.
14960 * source.c, stack.c, symfile.c, symtab.c, thread.c: Ditto.
14961 * top.c, cli/cli-cmds.c, cli/cli-decode.c: Ditto.
14962 * cli/cli-script.c, cli/cli-script.h, cli/cli-setshow.c: Ditto.
14963 * mi/ChangeLog, mi/mi-cmd-break.c, mi/mi-cmd-stack.c: Ditto.
14964 * mi/mi-main.c:Ditto.
14965
14966 * stack.c, symfile.c: Update copyright.
14967
14968 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14969
14970 * gdbserver/low-hppabsd.c, gdbserver/low-lynx.c,
14971 gdbserver/low-nbsd.c, gdbserver/low-sim.c,
14972 gdbserver/low-sparc.c, gdbserver/low-sun3.c,
14973 gdbserver/low-linux.c, gdbserver/server.c: Correct copyright notices.
14974
14975 2002-01-17 Daniel Jacobowitz <drow@mvista.com>
14976
14977 * gdbserver/low-hppabsd.c (myattach): New function, returning -1.
14978 * gdbserver/low-lynx.c (myattach): Likewise.
14979 * gdbserver/low-nbsd.c (myattach): Likewise.
14980 * gdbserver/low-sim.c (myattach): Likewise.
14981 * gdbserver/low-sparc.c (myattach): Likewise.
14982 * gdbserver/low-sun3.c (myattach): Likewise.
14983
14984 * gdbserver/low-linux.c (myattach): New function.
14985
14986 * gdbserver/server.c (attach_inferior): New function.
14987 (main): Handle "--attach".
14988
14989 2002-01-16 Andrew Cagney <ac131313@redhat.com>
14990
14991 * MAINTAINERS (language support): Daniel Jacobwitz is C++
14992 maintainer.
14993
14994 2002-01-15 Daniel Jacobowitz <drow@mvista.com>
14995
14996 * c-typeprint.c (is_type_conversion_operator): Add additional
14997 check for non-conversion operators.
14998
14999 2002-01-15 Michael Snyder <msnyder@redhat.com>
15000
15001 * linux-proc.c: Add "info proc" command, a la procfs.c.
15002 (read_mapping): New function, abstract and re-use code.
15003 (linux_find_memory_regions): Use new func read_mapping.
15004 (linux_info_proc_cmd): New function, implement "info proc".
15005 (_initialize_linux_proc): Add new command "info proc".
15006
15007 2002-01-15 Michael Snyder <msnyder@redhat.com>
15008
15009 * symfile.c (generic_load): Use bfd_map_over_sections method
15010 instead of manipulating bfd structure members directly.
15011 (add_section_size_callback): New function, bfd sections callback
15012 used by generic_load.
15013 (load_sections_callback): New function, bfd sections callback
15014 used by generic_load.
15015
15016 2002-01-15 Elena Zannoni <ezannoni@redhat.com>
15017
15018 [Based on work by Jim Blandy]
15019 * gdbtypes.h (builtin_type_v16qi, builtin_type_v8hi): Export.
15020 (builtin_type_vec128): Export.
15021 * gdbtypes.c (builtin_type_v16qi, builtin_type_v8hi): New SIMD
15022 types.
15023 (builtin_type_vec128): New builtin type for 128 bit vector
15024 registers.
15025 (build_gdbtypes): Initialize builtin_type_v16qi and
15026 builtin_type_v8hi. Create the vec128 register builtin type
15027 structure.
15028 (build_builtin_type_vec128): New function.
15029 (_initialize_gdbtypes): Register builtin_type_v16qi and
15030 builtin_type_v8hi with gdbarch. Same for builtin_type_vec128.
15031 * rs6000-tdep.c (rs6000_register_virtual_type): Change type of
15032 AltiVec register to new builtin type.
15033
15034 2001-01-15 Daniel Jacobowitz <drow@mvista.com>
15035
15036 * stabsread.c (read_type): Pass dbx_lookup_type (typenums)
15037 to make_cv_type.
15038
15039 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15040
15041 * config/pa/tm-hppa.h (DEPRECATED_CLEAN_UP_REGISTER_VALUE): Rename
15042 CLEAN_UP_REGISTER_VALUE.
15043 * regcache.c (supply_register): Update only call.
15044
15045 2002-01-14 Andrew Cagney <ac131313@redhat.com>
15046
15047 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15048 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15049 a29k-*-vxworks* targets as obsolete.
15050
15051 2002-01-14 Michael Snyder <msnyder@redhat.com>
15052
15053 * linux-proc.c (linux_do_thread_registers): Ignore fpxregs
15054 until we can resolve portability issues.
15055 * gregset.h: Remove references to fpxregs.
15056 * gcore.c (gcore_command): Initialize note_sec to NULL.
15057
15058 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15059
15060 * signals.c (target_signal_to_name): Rewrite. Only use
15061 signals[].name when in bounds and non-NULL.
15062
15063 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15064
15065 From Petr Ledvina <ledvinap@kae.zcu.cz>:
15066 * signals.c (target_signal_to_name): Verify that SIG is within the
15067 bounds of the signals array.
15068
15069 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15070
15071 * MAINTAINERS: Remove arm-coff and arm-pe from target list.
15072
15073 2002-01-13 Keith Seitz <keiths@redhat.com>
15074
15075 * stack.c (print_frame_info_base): Print the frame's pc
15076 only if when print_frame_info_listing_hook is not defined.
15077
15078 2002-01-13 Keith Seitz <keiths@redhat.com>
15079
15080 * varobj.c (varobj_set_value): Make sure that there were no
15081 errors evaluating the object before attempting to set its
15082 value.
15083 value_cast now properly adjusts VALUE_ADDRESS for baseclasses,
15084 so this offset adjustment is no longer necessary.
15085 (create_child): Don't set the error flag if the child is
15086 a CPLUS_FAKE_CHILD.
15087 (value_of_child): If value_fetch_lazy fails, return NULL
15088 so that callers will be notified that an error occurred.
15089 (c_value_of_variable): Delay check of variable's validity
15090 until later. We actually want all structs and unions to have
15091 the value "{...}".
15092 Do not return "???" for variables which could not be evaluated.
15093 This error condition must be returned to the caller so that it
15094 can get the error condition from gdb.
15095 (cplus_name_of_child): Adjust index for vptr before figuring
15096 out the name of the child.
15097 (cplus_value_of_child): If a child's (real) parent is not valid,
15098 don't even bother trying to give a value for it. Just return
15099 an error. Change all instances in this function.
15100 (cplus_type_of_child): If our parent is one of the "fake"
15101 parents, we need to get at the type of the real parent, and
15102 derive the child's true type using this information.
15103
15104 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15105
15106 From 2002-01-09 John Marshall <johnm@falch.net>:
15107 * CONTRIBUTE, README, TODO: Change sourceware.cygnus.com to
15108 sources.redhat.com, and tweak some related URLs which had
15109 suffered from linkrot.
15110
15111 2002-01-13 Andrew Cagney <ac131313@redhat.com>
15112
15113 From Jeff law:
15114 * hppa-tdep.c (hppa_push_arguments): Correct handling of 5-7 byte
15115 structures passed in registers.
15116
15117 2002-01-13 Eli Zaretskii <eliz@is.elta.co.il>
15118
15119 * go32-nat.c (save_npx) [__DJGPP_MINOR__ < 3]: Remove extraneous
15120 white space which prevented compilation. Reported by DSK
15121 <dsk@student.unsw.edu.au>.
15122
15123 2002-01-11 Michael Snyder <msnyder@redhat.com>
15124
15125 * symfile.c (build_section_addr_info_from_section_tab):
15126 Use bfd access method instead of manipulating bfd directly.
15127 (syms_from_objfile): Ditto.
15128 (simple_overlay_update_1): Ditto.
15129 (simple_overlay_update): Ditto.
15130 (generic_load): Ditto.
15131 (overlay_unmapped_address): FIXME comment, bfd access methods.
15132 (sections_overlap): FIXME comment, bfd access methods.
15133 (pc_in_mapped_range): FIXME comment, bfd access methods.
15134 (pc_in_unmapped_range): FIXME comment, bfd access methods.
15135 (section_is_mapped): FIXME comment, bfd access methods.
15136 (section_is_overlay): FIXME comment, bfd access methods.
15137
15138 * symfile.c (generic_load): Whitespace and long line cleanups.
15139 Remove duplicate variable, change several local variables to
15140 more appropriate data types.
15141 (print_transfer_performance): Use %lu instead of %ld for ulongs.
15142
15143 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15144
15145 From Peter Schauer:
15146 * language.c (longest_local_hex_string_custom): Use phex_nz to
15147 convert NUM to a hex string.
15148
15149 2002-01-12 Elena Zannoni <ezannoni@redhat.com>
15150
15151 * sh-tdep.c (sh_gdbarch_init): Move setting of long_bit earlier in
15152 the function.
15153 Update Copyright year.
15154
15155 2002-01-12 Andrew Cagney <ac131313@redhat.com>
15156
15157 * language.c (longest_raw_hex_string): Delete unused function.
15158
15159 2002-01-11 Petr Sorfa <petrs@caldera.com>
15160
15161 * MAINTAINERS (write-after-approval): Add myself.
15162 * dwarf2read.c (read_tag_string_type): Handling of
15163 DW_AT_byte_size.
15164 (read_tag_string_type): FORTRAN fix to prevent propagation of
15165 first string size.
15166 (set_cu_language): Handling of DW_LANG_Fortran95
15167
15168 2002-01-11 Richard Earnshaw <rearnsha@arm.com>
15169
15170 * armnbsd-nat.c (fetch_inferior_registers): Change inferior_pid ->
15171 GETPID(inferior_ptid).
15172 (store_inferior_registers): Likewise.
15173
15174 2002-01-10 Jason Merrill <jason@redhat.com>
15175
15176 * dwarf2read.c (decode_locdesc): Implement DW_OP_litn, DW_OP_dup.
15177 Fix DW_OP_minus.
15178
15179 2002-01-10 Andrew Cagney <ac131313@redhat.com>
15180
15181 * config/djgpp/fnchange.lst: Add renames for bfd/ChangeLog-0001
15182 and bfd/elf32-sh-nbsd.c.
15183
15184 2002-01-10 Michael Snyder <msnyder@redhat.com>
15185
15186 * NEWS: Mention --pid and corefile/proc-id behavior change.
15187
15188 * Makefile.in: Add rules for gcore.o and linux-proc.o.
15189 * gcore.c: Include cli/cli-decode.h instead of command.h.
15190
15191 * main.c (captured_main): Add new command line option "--pid".
15192 If the second command line argument (following the symbol-file)
15193 begins with a digit, try to attach to it before trying to open
15194 it as a corefile.
15195 (print_gdb_help): Document the "--pid" argument.
15196
15197 2002-01-10 Eli Zaretskii <eliz@is.elta.co.il>
15198
15199 * completer.c (command_completer): New function.
15200
15201 * completer.h <command_completer>: Add prototype.
15202
15203 * cli/cli-cmds.c (init_cli_cmds): Make command_completer be the
15204 completer for the "help" command.
15205
15206 2002-01-09 Jason Merrill <jason@redhat.com>
15207
15208 * c-typeprint.c (is_type_conversion_operator): Fix thinko.
15209
15210 2002-01-09 Michael Snyder <msnyder@redhat.com>
15211
15212 * i386-linux-nat.c (fill_fpxregset): Make global.
15213 (store_fpxregset): Ditto.
15214
15215 * gregset.h (gdb_fpxregset_t): Define.
15216 (supply_fpxregset): Prototype.
15217 (fill_fpxregset): Prototype.
15218
15219 * exec.c (exec_make_note_section): Don't call elfcore_write_prpsinfo.
15220
15221 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15222
15223 * config/arm/arm-tdep.h (arm_software_single_step): Remove PARAMS.
15224 * config/arm/nm-nbsd.h (arm_register_u_addr): Likewise.
15225 * config/arm/tm-nbsd.h (get_longjmp_target): Likewise.
15226
15227 2002-01-09 Andrew Cagney <ac131313@redhat.com>
15228
15229 * MAINTAINERS: Update target maintainer rules so that any
15230 Maintainer can approve a tested patch for a maintenance-only
15231 target.
15232
15233 2002-01-09 Richard Earnshaw <rearnsha@arm.com>
15234
15235 * MAINTAINERS (write-after-approval): Add myself.
15236
15237 * arm-tdep.c (arm_init_extra_frame_info): Cast NULL argument to
15238 IN_SIGTRAMP.
15239
15240 2002-01-08 Michael Snyder <msnyder@redhat.com>
15241
15242 * linux-proc.c (child_pid_to_exec_file): Use readlink to get the
15243 real name of the executable, rather than the /proc name.
15244
15245 2002-01-03 Michael Snyder <msnyder@redhat.com>
15246
15247 Implement a "generate-core-file" command in gdb, save target state.
15248 * gcore.c: New file. Implement new command 'generate-core-file'.
15249 Save a corefile image of the current state of the inferior.
15250 * linux-proc.c: Add linux-specific code for saving corefiles.
15251 * target.h (struct target_ops): Add new target vectors for saving
15252 corefiles; to_find_memory_regions and to_make_corefile_notes.
15253 (target_find_memory_regions): New macro.
15254 (target_make_corefile_notes): New macro.
15255 * target.c (update_current_target): Inherit new target methods.
15256 (dummy_find_memory_regions): New place-holder method.
15257 (dummy_make_corefile_notes): New place-holder method.
15258 (init_dummy_target): Initialize new dummy target vectors.
15259 * exec.c (exec_set_find_memory_regions): New function.
15260 Allow the exec_ops vector for memory regions to be taken over.
15261 (exec_make_note_section): New function, target vector method.
15262 * defs.h (exec_set_find_memory_regions): Export prototype.
15263 * procfs.c (proc_find_memory_regions): New function, corefile method.
15264 (procfs_make_note_section): New function, corefile method.
15265 (init_procfs_ops): Set new target vector pointers.
15266 (find_memory_regions_callback): New function.
15267 (procfs_do_thread_registers): New function.
15268 (procfs_corefile_thread_callback): New function.
15269 * sol-thread.c (sol_find_memory_regions): New function.
15270 (sol_make_note_section): New function.
15271 (init_sol_thread_ops): Initialize new target vectors.
15272 * inftarg.c (inftarg_set_find_memory_regions): New function.
15273 Allow to_find_memory_regions vector to be taken over.
15274 (inftarg_set_make_corefile_notes): New function.
15275 Allow to_make_corefile_notes vector to be taken over.
15276 * thread-db.c (thread_db_new_objfile): Don't activate thread-db
15277 interface layer if not target_has_execution (may be a corefile).
15278 * config/i386/linux.mh: Add gcore.o to NATDEPFILES.
15279 * config/sparc/sun4sol2.mh: Ditto.
15280 * config/alpha/alpha-linux.mh: Ditto.
15281 * config/arm/linux.mh: Ditto.
15282 * config/i386/x86-64linux.mh: Ditto.
15283 * config/ia64/linux.mh: Ditto.
15284 * config/m68k/linux.mh: Ditto.
15285 * config/mips/linux.mh: Ditto.
15286 * config/powerpc/linux.mh: Ditto.
15287 * config/sparc/linux.mh: Ditto.
15288
15289 2002-01-07 Michael Snyder <msnyder@redhat.com>
15290
15291 * arm-linux-nat.c: Remove references to regcache.c internal data
15292 (registers[] and register_valid[]).
15293
15294 2002-01-07 Michael Snyder <msnyder@redhat.com>
15295
15296 * linux-proc.c: New file. Implement child_pid_to_exec_file,
15297 so that attaching to a pid will automatically read the process's
15298 symbol file and shlibs.
15299 * Makefile.in: Add rule for linux-proc.o.
15300 * config/nm-linux.h: Define CHILD_PID_TO_EXEC_FILE.
15301 * config/alpha/alpha-linux.mh: Add linux-proc.o to NATDEPFILES.
15302 * config/arm/linux.mh: Ditto.
15303 * config/i386/linux.mh: Ditto.
15304 * config/i386/x86-64linux.mh: Ditto.
15305 * config/ia64/linux.mh: Ditto.
15306 * config/m68k/linux.mh: Ditto.
15307 * config/mips/linux.mh: Ditto.
15308 * config/powerpc/linux.mh: Ditto.
15309 * config/sparc/linux.mh: Ditto.
15310
15311 2002-01-06 Pierre Muller <muller@ics.u-strasbg.fr>
15312
15313 * win32-nat.c: Add i386-tdep.h dependency.
15314
15315 2002-01-07 Michael Snyder <msnyder@redhat.com>
15316
15317 * solib.c (info_sharedlibrary_command): Use TARGET_PTR_BIT
15318 instead of bfd_get_arch_size. Don't bail out just because
15319 there's no exec_bfd.
15320
15321 * cp-valprint.c (cp_print_value): FIXME comment, alloca size.
15322 * p-valprint.c (pascal_object_print_value): Ditto.
15323 * somread.c (som_symtab_read): Ditto.
15324 * symfile.c (simple_free_overlay_region_table): Ditto.
15325 * valops.c (value_assign): Ditto.
15326
15327 * tracepoint.c (tracepoint_save_command): From Klee Dienes --
15328 use tilde_expand and strerror for opening save-tracepoints file.
15329
15330 * thread-db.c (thread_db_new_objfile): Indendation fix.
15331
15332 * infptrace.c (GDB_MAX_ALLOCA): New define.
15333 (child_xfer_memory): Use xmalloc/xfree instead of alloca if the
15334 size of the buffer exceeds GDB_MAX_ALLOCA (default 1 megabyte,
15335 can be overridden with whatever value is appropriate to the host).
15336 * infttrace.c (child_xfer_memory): Add FIXME warning about use of
15337 alloca to allocate potentially large buffer.
15338 * rs6000-nat.c (child_xfer_memory): Ditto.
15339 * symm-nat.c (child_xfer_memory): Ditto.
15340 * x86-64-linux-nat.c (child_xfer_memory): Ditto.
15341
15342 2002-01-07 Jackie Smith Cashion <jsmith@redhat.com>
15343
15344 From Nick Clifton <nickc@redhat.com>
15345 * d10v-tdep.c: Set STACK_START to 0x200bffe.
15346
15347 2002-01-07 Michael Snyder <msnyder@redhat.com>
15348
15349 * solib-legacy.c (legacy_svr4_fetch_link_map_offsets):
15350 Don't use exec_bfd if it's NULL.
15351
15352 2002-01-06 Mark Kettenis <kettenis@gnu.org>
15353
15354 * valops.c (value_arg_coerce): Fix formatting.
15355
15356 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15357
15358 * hp-psymtab-read.c: Include "gdb_string.h" instead of <string.h>.
15359 * gnu-nat.c: Ditto.
15360
15361 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15362
15363 * MAINTAINERS: Note that alpha-dec-osf4.0a, arc-elf, arm-coff,
15364 arm-elf, arm-pe, d30v-elf, fr30-elf, h8300hms, h8500hms,
15365 i960-coff, m32r-elf, m68k-elf, m88k, mcore-elf, mn10200-elf,
15366 ns32k-netbsd, hppa1.1-hp-proelf, v850-elf, vax-dec-vms5.5 and
15367 z8k-coff have not been multi-arched. Update z8k-coff build
15368 status.
15369
15370 2002-01-06 Andrew Cagney <ac131313@redhat.com>
15371
15372 * MAINTAINERS: Mark a29k target as obsolete.
15373 * Makefile.in (a29k-tdep.o, remote-adapt.o, remote-eb.o)
15374 (remote-mm.o, remote-udi.o): Obsolete. Remove references in
15375 comments.
15376 * NEWS: Note that a29k targets are obsolete.
15377 * a29k-tdep.c: Mark as obsolete.
15378 * configure.tgt: Mark a29k-*-aout*, a29k-*-coff*, a29k-*-elf*,
15379 a29k-*-ebmon*, a29k-*-kern*, a29k-*-none*, a29k-*-udi* and
15380 a29k-*-vxworks* targets as obsolete.
15381 * remote-adapt.c: Obsolete.
15382 * remote-eb.c: Obsolete.
15383 * remote-mm.c: Obsolete.
15384 * remote-udi.c: Obsolete.
15385 * config/a29k/a29k-udi.mt: Obsolete.
15386 * config/a29k/a29k.mt: Obsolete.
15387 * config/a29k/tm-a29k.h: Obsolete.
15388 * config/a29k/tm-vx29k.h: Obsolete.
15389 * config/a29k/vx29k.mt: Obsolete.
15390
15391 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15392
15393 * rs6000-tdep.c (rs6000_do_registers_info): Replace BIG_ENDIAN
15394 with BFD_ENDIAN_BIG.
15395
15396 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15397
15398 * configure.in (AC_CHECK_HEADERS): Do not check for <endian.h>.
15399 * configure, config.in: Re-generate.
15400 * config/vax/xm-vaxbsd.h: Do not include <machine/endian.h>.
15401 * defs.h: Do not include <endian.h>.
15402
15403 2002-01-05 Jason Thorpe <thorpej@wasabisystems.com>
15404
15405 * acconfig.h (HAVE_PT_GETXMMREGS): New.
15406 * config.in: Regenerate.
15407 * configure.in: Update copyright years.
15408 Add test for PT_GETXMMREGS supplied by <sys/ptrace.h>.
15409 * configure: Regenerate.
15410 * i386bsd-nat.c: Update copyright years.
15411 (fill_gregset): Use regcache_collect.
15412 (fetch_inferior_registers): Only fetch integer registers
15413 if requested to do so. Add support for XMM registers
15414 using PT_GETXMMREGS.
15415 (store_inferior_registers): Only store integer registers
15416 if requested to do so. Add support for XMM registers
15417 using PT_SETXMMREGS.
15418 * i386nbsd-nat.c (fetch_inferior_registers): Remove.
15419 (store_inferior_registers): Remove.
15420 (fetch_core_registers): Use supply_gregset and i387_supply_fsave.
15421 (fetch_elfcore_registers): New function.
15422 (i386nbsd_elfcore_fns): New.
15423 (_initialize_i386nbsd_nat): Register i386nbsd_elfcore_fns.
15424 * config/i386/nbsd.mh (NATDEPFILES): Add i387-nat.o and
15425 i386bsd-nat.o.
15426 * config/i386/nbsdelf.mh (NATDEPFILES): Likewise.
15427 * config/i386/nbsd.mt (TDEPFILES): Add i386bsd-nat.o.
15428 * config/i386/nbsdelf.mt (TDEPFILES): Likewise.
15429 * config/i386/tm-nbsd.h: Update copyright years.
15430 (HAVE_SSE_REGS): Define.
15431 (IN_SIGTRAMP): Define as i386bsd_in_sigtramp.
15432 (SIGTRAMP_START): Redefine as i386bsd_sigtramp_start.
15433 (SIGTRAMP_END): Redefine as i386bsd_sigtramp_end.
15434 (SIGCONTEXT_PC_OFFSET): Remove.
15435 (FRAME_SAVED_PC): Define as i386bsd_frame_saved_pc.
15436
15437 2002-01-05 Andrew Cagney <ac131313@redhat.com>
15438
15439 * configure.tgt: Remove powerpc-*-macos* target.
15440 * config/m68k/xm-mpw.h: Delete file.
15441 * config/xm-mpw.h: Delete file.
15442 * ser-mac.c: Delete file.
15443 * mpw-make.sed: Delete file.
15444 * mpw-config.in: Delete file.
15445 * mac-xdep.c: Delete file.
15446 * mac-gdb.r: Delete file.
15447 * mac-defs.h: Delete file.
15448 * mac-nat.c: Delete file.
15449 * config/powerpc/macos.mh: Delete file.
15450 * config/powerpc/macos.mt: Delete file.
15451 * config/powerpc/nm-macos.h: Delete file.
15452 * config/powerpc/tm-macos.h: Delete file.
15453 * source.c (openp, open_source_file): Remove obsolete code.
15454 * top.c (gdb_readline): Ditto.
15455 * utils.c (query): Ditto.
15456 * event-top.c (display_gdb_prompt): Ditto.
15457 * Makefile.in (ser-mac.o): Delete obsolete target.
15458 * NEWS: Update.
15459
15460 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15461
15462 * defs.h (BIG_ENDIAN): Delete macro definition.
15463 * a29k-tdep.c, arch-utils.c, arm-tdep.c, ax-gdb.c, ch-exp.c,
15464 coffread.c, cris-tdep.c, d10v-tdep.c, d30v-tdep.c, defs.h,
15465 findvar.c, infcmd.c, mem-break.c, mips-tdep.c, mn10300-tdep.c,
15466 printcmd.c, remote-os9k.c, remote-rdi.c, remote-rdp.c,
15467 remote-sim.c, remote.c, rs6000-tdep.c, sh-tdep.c, sparcl-tdep.c,
15468 stabsread.c, valops.c, valprint.c, config/a29k/tm-a29k.h,
15469 config/a29k/tm-vx29k.h, config/arm/tm-arm.h,
15470 config/d30v/tm-d30v.h, config/fr30/tm-fr30.h,
15471 config/h8300/tm-h8300.h, config/h8500/tm-h8500.h,
15472 config/m32r/tm-m32r.h, config/m68k/tm-m68k.h,
15473 config/m88k/tm-m88k.h, config/mips/tm-mips.h, config/pa/tm-hppa.h,
15474 config/sparc/tm-sparc.h, config/z8k/tm-z8k.h, mi/mi-cmd-disas.c,
15475 mi/mi-main.c: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15476 * gdbarch.sh: Replace BIG_ENDIAN with BFD_ENDIAN_BIG.
15477 * gdbarch.c: Re-generate.
15478
15479 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15480
15481 * thread-db.c (thread_db_new_objfile): Do not enable thread_db
15482 for core files.
15483
15484 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15485
15486 * config/arm/nbsd.mh (XDEPFILES): Remove ser-tcp.o.
15487
15488 2002-01-04 Andrew Cagney <ac131313@redhat.com>
15489
15490 * value.h (value_ptr): Delete typedef.
15491
15492 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
15493
15494 * i386nbsd-nat.c: Update copyright years.
15495 Include i386-tdep.h.
15496
15497 2002-01-04 Elena Zannoni <ezannoni@redhat.com>
15498
15499 * stabsread.c: Update copyright years.
15500
15501 From Debashis Mahata <debashis.mahata@wipro.com>:
15502 (read_struct_fields): Deal with Sun C compiler erroneous stab
15503 output for structs and unions.
15504 Fix PR gdb/269.
15505
15506 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15507
15508 * p-valprint.c: Include "cp-abi.h" for baseclass_offset
15509 prototype.
15510
15511 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15512
15513 * cp-abi.c: Fix whitespace.
15514 (baseclass_offset): New wrapper function.
15515 * cp-abi.h (baseclass_offset): Add prototype.
15516 (struct cp_abi_ops): Add baseclass_offset pointer.
15517
15518 * valops.c (vb_match): Move to...
15519 * gnu-v2-abi.c (vb_match): here.
15520 * valops.c (baseclass_offset): Move to...
15521 * gnu-v2-abi.c (gnuv2_baseclass_offset): here, and rename.
15522
15523 * gnu-v3-abi.c (gnuv3_baseclass_offset): New function.
15524
15525 * gnu-v2-abi.c (init_gnuv2_ops): Initialize baseclass_offset.
15526 * gnu-v3-abi.c (init_gnuv3_ops): Likewise.
15527 * hpacc-abi.c (init_hpacc_ops): Likewise.
15528
15529 2002-01-04 Daniel Jacobowitz <drow@mvista.com>
15530
15531 * valops.c (find_overload_match): Accept obj as a
15532 reference parameter. Update it before returning.
15533 * value.h (find_overload_match): Update prototype.
15534 * eval.c (evaluate_subexp_standard): Pass object to
15535 find_overload_match by reference.
15536
15537 2002-01-03 Andrew Cagney <ac131313@redhat.com>
15538
15539 * valarith.c: Replace value_ptr with struct value pointer. Remove
15540 register attribute from value declarations.
15541 * valops.c: Ditto.
15542 * value.h: Ditto.
15543 * scm-lang.c (scm_lookup_name): Ditto.
15544
15545 2002-01-03 Michael Snyder <msnyder@redhat.com>
15546
15547 Abstract the functionality of iterating over mapped memory
15548 regions into a general purpose iterator function.
15549 * procfs.c (iterate_over_mappings): New function, general purpose
15550 iterator for memory sections.
15551 (proc_iterate_over_mappings): Reimplement using iterate_over_mappings.
15552 (solib_mappings_callback): New function, callback for above.
15553 (info_proc_mappings): Reimpliment using iterate_over_mappings.
15554 (info_mappings_callback): New function, callback for above.
15555
15556 * procfs.c (proc_set_watchpoint): Add cast to suppress warning.
15557
15558 2002-01-01 Mark Kettenis <kettenis@gnu.org>
15559
15560 * i386-tdep.h (struct gdbarch_tdep): Add `os_ident' member.
15561 * i386-tdep.c: Include "elf-bfd.h".
15562 (process_note_abi_tag_sections): New function.
15563 (i386_gdbarch_init): Add code to recognize various OS/ABI
15564 combinations.
15565
15566 * maint.c (_initialize_maint_cmds): Add missing \ in
15567 string-literal.
15568
15569 For older changes see ChangeLog-2001
15570 \f
15571 Local Variables:
15572 mode: change-log
15573 left-margin: 8
15574 fill-column: 74
15575 version-control: never
15576 End:
This page took 0.330881 seconds and 5 git commands to generate.